* init
* add field (variable key)
* panel index option
* remove custom component
* attempt at implementing virtual m2o logic
* adding o2m layout
* moved drawer and implementing display items for o2m
* removed o2m draggable, added limit for o2m and implemented diplay templates
* style fix for single relation
* fixed deselect for o2m
* enforce multi limit
* fixed adding items for o2m and clear all button
* abstracted away displayItem logic and cleaned up code
* add selection to drawer-collection
* fix graphql error on init
* only store an array for multiple relations
* udated var names
* use dense display for 5 items and up
* use full width for the limit option
* fixed deselect for single relation
* removed unused notices
* type fix
* clear the cache when switching collections
added required flags in options
updated label to be in line with the variable panel
* added multiple label
* fix time series options filter
it should attempt to JSON.parse() when possible, and skip parsing when there's undefined values
* remove unused styles
* prevent negative limit
* keep multiple-relation top-aligned
* fixed pronblem with deselecting/reselecting items
* keep action buttons sticky at the bottom
* text-only styling for multiple-relation buttons
* use <button> and remove unnecessary styles
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: ian <licitdev@gmail.com>
* Allow user to send a WYSIWYG email body
* Revert "Allow user to send a WYSIWYG email body"
This reverts commit b65aeb4efc.
* Use a dropdown to select between WYSIWYG and Markdown Editor
* Change input-rich-text-* to wysiwyg or markdown
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
* fix form divider when opened from drawer item
* remove redundant functions
* change back the form order to what is was
* add the option to swap between relation fields and junction fields
* fix language
* added m2m options as dropdown with more abilities
* remove the hide options and put off instead
* remove the off option from m2m junctionFieldLocation
Co-authored-by: Gabriel Shtenberg <gabriels@brainpop.com>
Co-authored-by: dev name <devn@brainpop.com>
* Fix sort field assignment in relationships
* fixed a merge error
* add sort logic to API
* using isNil for a more concise condition expression
* Removed the custom getSortMax function in favor of Math.max
* increment sort value accordingly for bulk creates
* make reordering sort start with 1 instead of 0
* account for bulk create in API side
* removed the redundant frontend sorting code
* reverted change from pr #14987
* updated selectedOnPage to support both item duplication and sorting
* Revert "account for bulk create in API side"
This reverts commit b37ed207f3.
* re-add bulk create increment sort logic
* prevent sending "+" as primary key for newly created relational items (#15353)
* re-add the removed new line as it felt odd
* ensure sql query fires once only
* fix return value
* use `.max()`
Co-authored-by: André Gaul <andre@gaul.io>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
* move components without dependencies to packages
* make every components use vue script setup
* move components and utils from shared to @directus/components
* fix imports
* move over some more components
* get rid of unnecessary isEmpty and notEmpty
* move pagination
* fix missing !
* move groupable components
* move text-overflow and useElementSize
* fix icons not being shown
* add first unit tests
* remove capitalizeFirst
* simple cleanup
* add css-var unit test
* move over most other components
* make every component use script setup
* add some more unit tests
* add more tests and burn v-switch to the ground. 🔥
* add checkbox tests
* start with next test
* add storybook
* add more pages to storybook
* add final stories
* fix stories actions
* improve action fix
* cleaning props and adding tests
* unit tests -.-
* add some documentation to components
* Add docs to each prop
* clean storybook paths
* add more unit tests
* apply v-select fix
* update lock file
* small tweaks
* move back to shared
* fix imports
* fix imports
* cleaning
* stories to typescript
* Fix version number
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>