Commit Graph

622 Commits

Author SHA1 Message Date
Oreille
485641c7ec Add folder, template, enableCreate, enableSelect options to the files interface (#9184) 2021-10-27 20:35:11 +02:00
Azri Kahar
280e3f4c22 Use textarea input for textarea placeholder (#9041) 2021-10-25 23:05:39 -04:00
rijkvanzanten
775440ccde Don't enforce rgb modern syntax 2021-10-25 23:00:49 -04:00
renovate[bot]
54ba54d3d6 Update dependency stylelint to v14 (#9016)
* Update dependency stylelint to v14

* Update dependency stylelint-scss to v4

* Update dependency stylelint-order to v5

* Undo command change

* Update stylelint command

* Use modern color syntax

Who knew this was already supported everywhere? Awesome!!

* Update stylelint-config-standard

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-10-25 22:26:57 -04:00
Rijk van Zanten
2720e0c18e Add new field flow (#9109)
* Add new grouping setup to interfaces

* [WIP] Start on new field flow

* Add preview svgs

* Update preview svg

* Add basic saving mechanism. Start on magic

* Add interface options to simple inputs

* Fix missing t

* Fix custom options not rendering

* Fix interface options overrides

* Sync m2o name key

* Setup m2o related collection input

* Add collections generation

* Add circular prevention & type syncing

* Small fixes in m2o context generation

* Move o2m options to fn structure

* Conclude o2m (i think)

* Start on toggle to advanced

* Style advanced toggle button

* Add localType File support, start documenting

* Add presentation/group localtypes

* Use function style interface options in m2m

* Don't require collection prop in field template component

* Implement most of m2m magic

* Restructure store updater

* Finish useFieldDetailStore restructure

* Only register root index in module folders

* Do the thing

* Finish m2m magic, tweak fallback styles

* Fix o2m display template setup

* Remove options comp for translations interface

* Show languages collection picker in translations

* Finish translations alterations

* Add magic for files type

* Officially wave goodbye to the old store setup

It served it's purpose, but what a nightmare to maintain. Welcome to the new version

* Update schema tab

* Add field pane

* Finish interface section

* Add display section

* Add conditions

* Update tabs to use localType from store

* Start on relationship tab

* Update m2m relational setup

* Start on m2o

* Finish m2o setup

* Finish o2m setup

* Add m2a magic

* Various tweaks

* Add m2a setup

* Add save button to advanced flow

* Load existing values on start

* Add upsert to stores, allow updating existing items

* Please the linter gods

* Remove seemingly redundant interface option

@Oreilles Seeing the geometry type is already configured in the schema configuration, this particular option on the interface feels redundant (?)

* Remove unnecessary option component overrides

* Track relationships in required fields for save state

* Fix relations previews on editing existing fields

* Use standard vs advanced for input options

* Remove note from simple field setup

* Add divider to field config

* Use background subdued

* Default required to false

* Add required icons to key/relationship

* Tweak colors

* Fix infinite loop in group creation

* Make setup responsive

* Allow switching interface at will

* Add m2a related collections picker

* Fix relations persisting on field deletion

* Add "Create in Advanced" shortcut

Just for you @joselcvarela

* Fix PK field staging on collection create

* Revert "Remove seemingly redundant interface option"

This reverts commit e5e09a051e.

* Fix map interface options
2021-10-25 20:29:04 -04:00
José Varela
bf2b7e8d01 fix no options in repeater (#9113)
before: page does render if repeater has no options
after: page renders and repeater showe no options
2021-10-25 11:44:49 -04:00
Oreille
7eb2cb1137 Fix filter added twice and remove unnecessary _and node. (#9116) 2021-10-25 11:37:47 -04:00
Oreille
c94d0c4bfe Use default filter operator for type in filter input. (#9103)
* Use default filter operator for type in filter input. Also fix error on geometry operator update.

* Fixed tests.

* Only reset geometry filter value when necessary

* Support `null` for boolean operators.
2021-10-25 11:28:44 -04:00
Oreille
ed0a8aeb15 Ignore codemirror import mode types (#9112) 2021-10-25 11:27:07 -04:00
Oreille
1b64b4472a Bug fixes and improvements (#8995)
* Updated layout and interface mapbox style
* Fixed margin issues around the layout
* Use render-template component to display item popup on hover
* Fixed french translations
2021-10-21 15:30:13 -04:00
Pascal Jufer
5a53d7007e Fix warnings from ESLint (#8969) 2021-10-20 09:23:42 -04:00
Ben Haynes
ac3e11ebb9 Tweak styling of the map layout (#8929)
* style updates

* update attribution styling
2021-10-18 20:19:40 -04:00
Oreille
e68acf5f5c Map layout and interface improvements (#8908)
- Improved marker resolution
- Make the default maker green
- Reduce popup padding in layout
- Capitalize geometry related translations
- Hide geometry_format and geometry_type when disabled
- Set geocoder search bar background color to `--background-page`
- Rename Activate clustering to Cluster Nearby Data
- Default Cluster Nearby Data to `true`
- Update cluster colors to match Directus colors
2021-10-18 11:16:46 -04:00
Rijk van Zanten
9f163ce320 Fix choices not showing up in filter (#8839) 2021-10-15 21:20:37 +00:00
Rijk van Zanten
8f00e37daf Add improved collection organization setup (#8623)
* Add migrations, start on service

* Dont track TODO files

* Update collection types, add collection type

* Allow drag and drop sorting of collections

* Add tooltip

* Add grouping + collapsed state

* Fix nested closed state

* Tweak active drag styling

* Remove collapsed state

* Add folder creation/editing

* Render collections as nested tree in nav

* Fix open active state

* Add dense when collection count > 5

* Add visible toggle

* Add show-hidden toggle

* Fix css specificity

* Add support for query in v-list-group

* Add missing cascade

* Remove collapsed state

* Finish three-way toggle

* Add custom lock icon

* Fix icon size in non-dense

* Redirect to first & open tree on load

* Dont make prop required

* Fix search

* Only apply archive filter when enabled in settings

* Add archive view

* Add translations

* Hide organization fields

* Show system collections
2021-10-15 21:19:00 +00:00
Pascal Jufer
e3bfe69de3 Translation fixes (#8695)
* Implement translation for activity items

Fixes #8415

Also fixes issue with "Open item" link for system collection

* Fix 'Create New' btn translation in list interface

Fixes #8427
Default values needs to return a function to be dynamic
Same for "Empty item" translation

Also use field.name instead of field.field value for field title

* Fix translation of default values in boolean & dropdown interfaces

* Translate note field of system collections in edit mode

* Translate remaining "hard-coded" values

* Add dedicated translation for open folder

* Update app/src/interfaces/list/list.vue

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>

* Use translate-object-values and check if collection starts with
'directus_'

* Use already existing translation keys for activity items

As discussed

* Translate whole data object if system collection

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-10-14 11:29:48 -04:00
Rijk van Zanten
f14e4f1154 Don't use type=search for filter input (#8795) 2021-10-14 11:18:06 -04:00
Nitwel
1231e03ca2 fix translations interface when no langPk field is selected (#8790) 2021-10-14 10:34:51 -04:00
Nitwel
55e3b342ec Add translations display (#8264)
* add translations display

* add progress and lang preview

* format changes

* remove unused

* remove unused

* fix errors and clean up style

* make lang title bold

* Fix imports

* 🧹 Little cleanup

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-10-13 23:31:15 +00:00
Oreille
0a089af30a Fix layouts stuck at page 1 (#8766) 2021-10-13 15:56:12 -04:00
Sam Milledge
0ff35036f6 Fix disabled state of code input (#8761) 2021-10-13 11:01:34 -04:00
Azri Kahar
ffdc0c65bc remove obsolete selectionFilters in O2M tree view (#8756) 2021-10-13 15:52:24 +08:00
tstedjb04
6269065f3a Add datetime placeholder (#8712)
Co-authored-by: dhanaithorn <>
2021-10-12 16:47:17 +00:00
rijkvanzanten
b0c7fa20bd Handle empty toolbar in wysiwyg 2021-10-12 10:45:48 -04:00
Oreille
9b66a77c39 Bug fixes in the new filter interface (#8696)
* Bug fixes in the new filter interface

* Removed `eq`, `neq` filter for geometry type.

* Fixed tests for getFilterOperatorForType on geometry type.

* Removed `eq`, `neq`, `in`, `nin` filter operator for json

* Added `bigInteger` and `float` support in getFilterOperatorForType and fixed tests

* Added input regex pattern for numbers and uuid in filter input component
2021-10-12 09:53:18 -04:00
Oreille
475f6349f0 Map layout and interface improvements (#8628)
* Map layout and interface improvements:
* Disable drag to rotate
* Add keyboard shortcut to delete items
* Hide unselect button when selection is empty
* Add display template setting
* Fixed fitData button behaviour

* Removed unused hoveredFeatureId

* Added translations

* Expose clearFilters to the layout.
2021-10-12 09:50:18 -04:00
Pascal Jufer
23a126b026 Fix eslint warnings and cleanup unused disable-directives (#8718)
* Fix eslint warnings

* Remove unused eslint disable-directives
2021-10-12 09:49:01 -04:00
Azri Kahar
d3a4869a96 Debounce search & filter inputs (#8631)
* debounce search input

* debounce filter input

* rename to emitValueDebounced
2021-10-08 10:46:47 -04:00
Azri Kahar
0ebb932f45 Ignore WYSIWYG change on first load (#8603) 2021-10-07 18:25:57 -04:00
Rijk van Zanten
f64a5bef7e Add new advanced filters experience (#8570)
* Remove advanced filter sidebar detail

So long, and thanks for all the fish.

* Remove filter conversion logic

* Start replacing/removing old skool filters

* Add inline mode for usages in search bar

* Make filter work in header bar

* Emit empty string as null in filter

* Move shared filter types to shared

* Upgrade use-items

* Fix manual sort on tabular

* Cleanup styling in search bar usage

* Tweak styling

* Fix filtering issues

* Update cards

* Remove activeFilterCount from tabular

* Update maps to work with new filters

* Update calendar to new filter/sort structure

* Fix activity module nav/search

* Fix no-results message

* Update file library filtering

* Finalize user search

* Allow filtering in drawer-collection

* Handle cancelled responses semi-gracefully

* Add loading start state timeout

* Replace sort type in api

* Last commit before redoing a bunch

* Finish new visual style

* Remove unused rounded prop from v-menu

* Tweak sizing

* Enough size tweaking for now

* Count all filter operators instead of top

* Fix archive casting

* Fix api build

* Add merge filters util

* Split filter in user vs system

* Fix export sidebar detail

* Show field label on permissions configuration

* Add migration for filter/sort

* Use filters in insights
2021-10-07 18:06:03 -04:00
Adrian Dimitrov
e8bc145a02 Show file-image actions button upon focus; Use hover style for focused buttons (#8614) 2021-10-07 10:36:19 -04:00
Azri Kahar
dc9eb9fb07 autofocus input in Import from URL dialog (#8554) 2021-10-05 09:24:44 -04:00
ian
171eb369cd Add empty object check for permissions (#8513) 2021-10-04 12:35:37 -04:00
Nicola Krumschmidt
46f00d6202 Drop support for display handler functions in favor of functional components and make the routes module config required (#8475)
* Make routes in ModuleConfig required

* Make Panel options nullable

* Clean up InterfaceConfig and LayoutConfig types

* Remove DisplayHandlerFunction and rename handler to component

* Use template interpolation when registering extensions
2021-10-01 11:52:57 -04:00
Nitwel
4fd9f4c31c Add Filter interface (#7492)
* initial tests and preparation for filter interface

* get basic structure down

* improve visuals and interaction

* stop modifying props 🙃

* update logic blocks style

* clean up filter interface

* lint css

* support m2a and simplify visited relations

* allow for recursive loading of fields

* use filter interface on conditions

* Use dynamic useFilterTree instead of old one (#7569)

* use advanced field tree on field template

* update to advanced field tree

* remove old useFieldTree

* update to new design

* add border on nested nodes

* tweak styling

* Fix linter warnings

* Fix field-setup

* clean up interface

* clean up interface

* clean up and rename files

* clean up code

* use default filter structure

* fix changing fields

* Add monospace style option to tooltips

* Various small stylistic tweaks

* Add menu placement

* Cleanup "big interface" usage

* Remove seamless

* Add dropdown on add filter

* Cleanup import/export, add v-select-placeholder-co

* Fix staging issue

* Allow overriding preview slow, fix padding

* Show field path inline

* Cleanup empty state

* Use new filter-interface in permissions setup

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-09-30 17:17:29 -04:00
Nicola Krumschmidt
28a2f4594b Removed unused properties from ModuleConfig (#8468) 2021-09-30 14:14:14 -04:00
Nitwel
bd791bcb95 use display template for button links (#7546) 2021-09-28 19:18:19 -04:00
ian
ff315456e8 Fix relative link routing in button links (#8365)
* Fix relative link routing in button links

* Refactor to href for uniformity
2021-09-28 18:59:17 -04:00
ian
a806dc373a Fix marginTop not implemented in presentation divider (#8379) 2021-09-28 09:52:39 -04:00
Nitwel
cf05527f0e Add dedicated "files" interface (#8110)
* add download button for m2m

* create files interface

* Add migration to use new files interface

* Fix linter warnings

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-09-27 22:27:03 +00:00
Ben Haynes
6801ccf38e Style updates (#8359)
* badge sizing

* tailored chip padding based on size

* list style update

* round language progress bar

* remove whitespace causing odd gap after field

* complress field management grid

* add yellow to color options, make warning yellow
2021-09-27 17:43:30 -04:00
Rijk van Zanten
f5f68417cf Use field key instead of ID for group value (#8349)
* Add migration to replace group ID with group name

* Replace group IDs with field names

* Tweak group interfaces

* Ignore schema export
2021-09-27 15:06:19 -04:00
Nitwel
550a7f3406 fix input not being masked (#8344) 2021-09-27 11:54:05 -04:00
José Varela
437e52a47c use user language as first on translations (#8327) 2021-09-26 19:40:56 -04:00
rijkvanzanten
90cf1be784 Remove email/url example translation 2021-09-22 12:14:33 -04:00
José Varela
de08fd547a Show selected items in drawer collection (#8051)
* show selected items in drawer collection
Instead of hiding items in drawer as far as they are selected,
just show them but selected.

* Remove unused imports/params

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-09-21 15:42:20 -04:00
ian
67215b1426 Fix blank repeater item creation when cancelled (#8169)
* Fixed blank repeater item creation when cancelled

* Fixed unable to save new item

* Fix incorrect merge
2021-09-21 11:38:14 -04:00
Nitwel
282c8ae987 fix having more than 100 languages (#8170) 2021-09-21 11:27:39 -04:00
Nitwel
a66c4b24e1 enable split view only on +2 languages (#8197) 2021-09-21 08:35:47 -04:00
Azri Kahar
cf11946f1d Change some API calls to use getEndpoint utility (#8180) 2021-09-21 00:20:01 -04:00