Rijk van Zanten
92e1ee77bd
Add support for Conditional Fields ( #6864 )
...
* Add conditions field to directus_fields
* Add conditions configuration
* Apply conditional overrides
* Handle conditions in nested groups
* Fix reverse mutating conditions
* Start on filter setup interface
* Move field types/constants to shared
* [WIP] Updated client side filter validation
* Support logical operators in client validation step
* Use new validation util in conditions check
* Add nesting in filter seutp
* Add filter rule setup configurator
* Fixes that should've been done in the merge
* Strip out filter-settings interface
TBD in a new PR
* Move browser to index
2021-07-26 18:02:24 -04:00
Nicola Krumschmidt
32972f4c01
Move define extension functions to shared and expose them through extension-sdk ( #6880 )
...
* Move defineInterface to shared
* Split up utils into node and browser utils
* Move defineDisplay to shared
* Move defineLayout to shared
* Move defineModule to shared
* Add defineEndpoint and defineHook to define-extensions
* Expose define extension functions through extension-sdk
* Make route type of defineEndpoint more specific
* Simplify define extension functions
* Deduplicate types and local types definition
* Do not allow functional components in display handler
* Make interface options nullable
* Deduplicate extension types definition
* Fix utils/node exports
2021-07-22 17:02:29 +02:00
Rijk van Zanten
5f7dce54e2
Use stricter Vue eslint setting ( #6833 )
2021-07-15 13:49:59 -04:00
Nicola Krumschmidt
1961dc188b
Port the app to Vue 3 ( #5339 )
...
* Fix linting errors
* Fix remaining catch all routes
* Fix directive registration regression
* Replace $router global with composition function
* Fix v-bind overwrite order in nested-draggable
* Migrate vuedraggable
* Fix building with empty translation files
* Add comment regarding array equality check
* Fix markdown-it plugins import
* Fix newly introduced wrong store usage
* Fix v-button-group model
* Fix v-fancy-select model
* Fix v-field-template model
* Fix v-input model
* Fix v-item-group model
* Fix v-menu model
* Fix v-select model
* Fix v-tabs model
* Fix v-tabs-items model
* Fix v-textarea model
* Fix v-checkbox model
* Fix v-dialog model
* Fix v-drawer model
* Fix v-form model
* Fix v-list model
* Fix v-table model
* Fix v-detail model
* Fix v-radio model
* Fix v-switch model
* Fix files-navigation model
* Fix replace-file model
* Fix bookmark-add model
* Fix bookmark-edit model
* Fix drawer-batch model
* Fix drawer-item model
* Fix file-lightbox model
* Fix image-editor model
* Fix notifications-preview model
* Fix users-invite model
* Lowercase editor component name
* Fix collections-filter model
* Fix filter-input model
* Fix filter-sidebar-detail model
* Fix folder-picker model
* Fix interface-checkboxes model
* Fix interface-code model
* Fix interface-icon model
* Fix interface-repeater model
* Fix refresh-sidebar-detail model
* Fix search-input model
* Fix interface/display component option v-model usage
* Replace calling listener through $attrs with $emit and add emits option
* Add comment regarding useCustomSelection emits
* Fix context menu activation
* Fix collectionsStore access
* Fix popperjs
* Hotfix useGroupable
* Fix notifications-preview old prop name
* Fix module bar tooltip translation
* Fix useSync type signature
* Fix update:layoutOptions emit name
* Fix usePermissions missing imports regression
* Revert changes to docs vuepress instance
* Fix module-relative-resolve vite plugin when serving
* Fix docs
* Fix refresh on first load
* Fix creating new collection
* Fix loading of collection route
* Fix v-dialog/v-menu appear transition
* Access props directly
* Fix v-table clickable
* Fix v-drawer cancelable
* Fix v-icon clickable
* Fix v-input clickable
* Fix v-list-group clickable
* Fix v-list-item clickable
* Fix v-overlay clickable
* Fix header-bar primary button
* Fix v-table item.* slot
* Fix vue warning regarding exposed variables starting with _ or $
* Fix usePermissions
* Add package-lock.json
* Fix v-form unset regression
* Fix vue shims
* Fix useCustomSelection emit
* Make extensions arrays shallow
* Move teleport targets out of the vue app
* Fix v-field-select model
* Fix v-slider model
* Fix v-pagination model
* Fix card model
* Fix v-select item-value prop usage
* Fix layout-sidebar-detail model
* Fix form-field model
* Fix form-field-menu model
* Fix form-field-interface model
* Fix v-form model
* Use kebab-case for modelValue
* Update package-lock.json
* Add missing dependency
* Replace $t with i18n composable
* Replace remaining usages of $t
* Replace $te with i18n composable
* Replace $n with i18n composable
* Disable global injection in vue-i18n
* Replace i18n.global.t usage where composable is already imported
* Replace remaining i18n.global.t usage with composable
* Replace remaining i18n.global usages with composable
* Fix uploadFile emitter regression
* Remove inheritAttrs: false from file-info-sidebar-detail
* Hotfix v-input
* Update .eslintrc.js
* Fix use-preview
* Fix eslint issues
* Remove unused imports
* Fix extension getter type
* Refactor layout structure and fix tabular layout
* Fix build
* Fix cards layout
* Hotfix vuedraggable
* Dev is true again
* Register export-sidebar-detail globally
* Deconstruct layout state
* Fix calendar layout
* Fix cards/calendar layouts
* Fix layout options when switching layout
* Replace marked usage with md util
* Use useLayout everywhere
* Fix type issue
* Fix codemirror dynamic imports
* Fix data-fns dynamic import
* Fix useLayout selection
* Fix v-avatar scoped styling
* Remove unused v-button-group component
* Remove v-deep from v-card-actions
* Replace v-deep in v-dialog
* Use correct pseudoclasses for vue3
* Fix v-deep in v-field-template
* Replace v-deep in v-list-item-content
* Replace v-deep in v-list-item
* v-deep in v-list
* v-deep in v-notice
* Replace breakpoint mixin
* Replace v-deep in v-button
* Enforce empty line before block
* v-deep in v-pagination
* No white lines on the inner brackets of a block please
* Replace v-deep in v-select
* Fix stylelint rule
* Replace v-deep in v-table
* Replace v-deep in v-tabs
* Replace v-deep in rich text input
* Replace v-deep
* Replace v-deep elsewhere
* Needs more stylelint tweaks, but v-deep is done
* Fix translations interface
* Fix date layout
* Fix npm install
* Fix router catch all routes
* Fix layout options
* Remove call to next in router guards
* Remove vue router in-component guards
* Refactor module route registration
* Fix collections module navigation
* Fix settings module navigation
* Fix router-passthrough in devtools
* Refactor docs export and docs route registration
* Import docs routes using exported function
* Remove moduleRelativeResolve vite hack
* Re-add dev scripts
* Fix deprecated hljs usage
* Use activateContextMenu without parens
* Re-add readme/license/editorconfig
* Fix groupable
* Fix initial docs navigation
* Move global app css to app component
* Fix collection navigation icon color
* Fix field setup style
* Fix divider icon style
* Fix optional v-input slots
* Use $slots direct property access
* Fix docs font style
* Fix docs v-deep
* Fix docs add missing styles
* Remove docs style margin
* Fix save options color
* Fix nested v-slotted usage
* Fix v-button exact prop
* Fix v-list-item exact prop
* Fix package-lock.json
* Improve useSync type
* Fix route type error
* Fix bookmark router links
* Add redirect to route with bookmark
* Fix files module folder route
* Fix users module role route
* Add redirect routes to files and roles sub-routes
* Fix users module role active state
* Replace routerPassthrough function with object
* Nest file routes
* Improve module bar hidden check
* Remove slash from module router link
* Fix files and folder navigation
* Revert users route nesting
* Fix buttons in list
* Don't make nav item mandatory in left sidebar
* Fix infinite loop in box open
* Fix interactivity in v-list items
* Fix docs menu jumps
* Fix right click positioning
* Fix missing translations
* Fix close/open alignment of color interface
* Fix code editor interfaces
* Fix relation access in cards layout
* Remove template ref from collection-or-item
* Revert jest-environment-jsdom package update
* Fix package-lock.json
* Resolve vue3 TODO comments
* Fix layout presets
* Remove reactivity fix
* Remove Todo3 comment
* Fix icon color override
* Add error message to useLayoutState
* Add composable to properly transition dialog routes
* Fix new collection transition
* Fix add new role transition
* Fix add new file transition
* Fix activity item transition
* Fix error type in useItems
* Fix collection error dialog transition
* Fix field detail transition
* Fix permissions detail transition
* Fix store getters types
* Update package-lock
* Fix preview icon color
* Fix reference to selections
* Fix linter warnings
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-06-08 15:59:55 -04:00
Sebastian Flick
90a48cce96
fix datetime ( #5534 )
2021-05-07 08:54:12 -04:00
Rijk van Zanten
c4ae4b66cc
Finalize interface names ( #5521 )
...
* Rename button-links->presentation-links
* Rename checkboxes->select-multiple-checkbox
* Rename code->input-code
* Rename checkboxes files
* Rename color->select-color
* Rename divider->presentation-divider
* Rename dropdown-multiselect->select-multiple-dropdown
* Rename hash->input-hash
* Rename icon->select-icon
* Rename image->file-image
* Rename m2a-builder->list-m2a
* Rename many-to-many->list-m2m
* Rename many-to-one->select-dropdown-m2o
* Rename markdown->input-rich-text-md
* Rename notice->presentation-notice
* Rename one-to-many->list-o2m
* Rename radio-buttons->select-radio
* Rename repeater->list
* Rename text-input->input
* Rename textarea->input-multiline
* Rename toggle->boolean
* Rename tree-view->list-o2m-tree-view
* Rename wysiwyg->input-rich-text-html
* Use correct interfaces in system defaults
* Rename collection->system-collection
* Rename collections->system-collections
* Rename display-template->system-display-template
* Rename field->system-field
* Rename interface->system-interface
* Rename interface-options->system-interface-options
* Rename scope->interface-scope
* Rename tfa-setup->system-mfa-setup
* Fix oversights
* Remove old todo
* Some more tweaks
* Add migration, fix dropdown name in system use
* Merge numeric + input
* Replace dropdown->select-dropdown in app use
* Merge slug->input, user->select-dropdown-m2o
* Fix type issue
* Fix seeder field name
2021-05-06 16:49:32 -04:00
Sebastian Flick
a48b0fbd28
Setting the default date to today is a bad idea ( #5332 )
...
If a user selects a year, the day and month are set to today's day and month. This is a very bad idea since people want to sort entries by date. Most of the time only the year is of interest. The entries will be sorted then by the time and day when the were created...
This commit should set the values to the same by default.
2021-04-28 14:49:32 -04:00
Nitwel
93f8b7720c
Fix translations not working on displays, modules... ( #4734 )
...
* generalyze extensions
* replace vue-i18n tranlslations
* replace vue-i18n tranlslations
* add missing commas
* replace translations recursive
* restructure translate
* remove unused i18n
* remove unused i18n
* remove unused i18n
* Remove i18n context in define
* Rename translate util file
* Fix type errors
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-04-08 16:36:55 -04:00
rijkvanzanten
cc9c5e367d
Don't show X on disabled datetime
...
Fixes #4484
2021-03-11 18:49:47 -05:00
rijkvanzanten
a878fa9aad
Fix datetime readonly interactivity
...
Fixes #4387
2021-03-04 17:08:09 -05:00
Nitwel
c2e7c85bbd
Update documentation of app ( #4222 )
...
* move component docs to documentation
* update app docs tables for components
* update docs
* Add components to docs sidebar
* fix generated tables
* fix tables
* rename transitions
* update tables
* update nested components
* update tables
* update tables
* update tables
* update v-table table
* add basic documentation to each component
* remove all stories of storybook
* add missing documentation
* undate tables
* update tables
* update docs sidebar
* update app docs
* remove unused references
* add general readme
* update docs
* make reference titiles smaller
* add reference tag
* improve docs
* update order of tabs in sidebar
* remove all readmes and stories from interfaces/displays
* Cleanup menu
* Remove storybook
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-02-24 17:48:19 -05:00
YannickMol
8fb5c10544
Update midnight DateTime format ( #4076 )
...
Fixes #3870
2021-02-15 17:13:58 -05:00
Nitwel
8d0a23e2e6
add clear button to datetime interface ( #4064 )
2021-02-15 12:58:47 -05:00
Rijk van Zanten
1064d10296
Fix file imports now that vetur supports monorepos ( #4016 )
2021-02-11 13:08:59 -05:00
rijkvanzanten
f05e264c85
Fix datetime interface displayvalue not initializing on load
...
Fixes #3137 , fixes #3252
2021-01-13 17:44:57 -05:00
rijkvanzanten
93b85477c7
Fix include seconds option in datetime interface
...
Fixes #951
2020-11-11 13:48:11 -05:00
rijkvanzanten
f1159d08cd
Fix date io in api
2020-09-28 18:16:27 -04:00
rijkvanzanten
0310d61ca5
Merge branch 'main' into room-cleaning
2020-09-10 11:19:22 -04:00
Nitwel
c2c608cb53
fix datetime emiting without changes
2020-09-09 21:11:59 +02:00
Nitwel
722d95aa40
add description to all interfaces
2020-09-08 13:36:48 +02:00
rijkvanzanten
639f92530f
Add a couple recommended displays
2020-09-03 16:34:07 -04:00
rijkvanzanten
c5dc66fbd1
Fix menu in datetime
2020-08-12 17:20:00 -04:00
rijkvanzanten
5e137bd7b5
Fix capitalization of datetime type
2020-08-11 11:32:43 -04:00
rijkvanzanten
a336998b8d
Revert "Flatten utils"
...
This reverts commit 343599b524 .
2020-08-11 11:24:14 -04:00
rijkvanzanten
343599b524
Flatten utils
2020-08-11 11:13:13 -04:00
rijkvanzanten
886774f779
Rename database/system to schema/meta in app
2020-08-06 13:53:19 -04:00
rijkvanzanten
d1aa5d350e
Move app to app folder
2020-07-29 11:24:52 -04:00