Johann Rekowski
bd5ca64db3
Fix spacings and icons on presentation link buttons ( #6361 )
...
* Fixed spacings between presentation-link buttons
* Fixed cut off icons on persentation-link buttons
* Use flex gap instead of margin
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-06-22 19:45:06 -04:00
Rijk van Zanten
0766f6b608
Fix creating custom names for recommend collection fields on new collection setup drawer ( #6451 )
...
Fixes #6381
2021-06-22 19:22:05 -04:00
Rijk van Zanten
5e5d0a0e41
Fix display template on collection detail page ( #6442 )
...
* Tweak spacing of checkboxes tree
* Fix scoping of attrs on v-field-template
Fixes #6422
2021-06-22 17:26:11 -04:00
Rijk van Zanten
bdbd63bb5c
Add checkboxes-tree interface ( #6441 )
...
* Add checkboxes-tree interface
* Fix nested disabled state
2021-06-22 17:21:19 -04:00
rijkvanzanten
4366cceb1e
Fix linter warning
2021-06-22 11:29:59 -04:00
rijkvanzanten
f42d7b55b1
Tweak to check
2021-06-21 17:26:22 -04:00
Rijk van Zanten
6c98ef6516
Workaround bug introduced in vue-router ( #6412 )
2021-06-21 17:16:08 -04:00
Rijk van Zanten
0d899f097d
Add ability to specify what fields to clone on "Save as Copy" ( #6379 )
...
* Start on tree-select component
* Stop propagation on label click as well
* Setup temp debug route
* Add value-combining=all
* Add branch mode
* Add leaf mode
* Add indeterminate state
* Add search
* Keep group state alive during search
* Fetch existing item based on clone fields data
* Add interface for setup
* Tweak field structure of m2a items
* Use collection name in checkbox
* Remove temp test
2021-06-18 16:37:27 -04:00
Rijk van Zanten
092a3266ed
Fixed issue that would prevent the "Import from URL" functionality to work in a many to many interface ( #6289 )
...
Fixes #6287
2021-06-15 14:08:59 -04:00
rijkvanzanten
d041053ce7
Remove comment
2021-06-11 09:48:01 -04:00
dependabot[bot]
cd2e24d82c
Bump vuedraggable from 4.0.1 to 4.0.3 ( #6197 )
...
* Bump vuedraggable from 4.0.1 to 4.0.3
Bumps [vuedraggable](https://github.com/SortableJS/Vue.Draggable ) from 4.0.1 to 4.0.3.
- [Release notes](https://github.com/SortableJS/Vue.Draggable/releases )
- [Commits](https://github.com/SortableJS/Vue.Draggable/commits )
---
updated-dependencies:
- dependency-name: vuedraggable
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update vite as well
* Update vite, fix imports
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-06-11 09:43:31 -04:00
Nicola Krumschmidt
f55a2072e1
Refactor bookmark query navigation ( #6170 )
...
* Revert back to using query params for bookmarks
Aka "this hurts so much"
* Fix collection navigation active state
* Add active and query props to v-button
Also unify active and activated state.
* Remove not needed exact prop from collections navigation
2021-06-10 15:11:01 -04:00
rijkvanzanten
094819acb7
Fix styling of list-rows
2021-06-09 17:46:22 -04:00
Nicola Krumschmidt
12a3b22aa1
App type improvements ( #6151 )
...
* Fix v-table interalItems type
* Fix useGroupable return type
* Fix useCollection return type
* Fix useCustomSelection return type
* Fix useElementSize return type
* Fix useFormFields return type
* Fix useItem return type
* Fix useItems return type
* Prepend composable return type name with "Usable"
* Fix usePreset return type
* Fix useScrollDistance return type
* Fix useTitle return type
* Fix useWindowSize return type
* Fix usePermissions return type
* Fix useTemplateData return type
* Fix a few type issues in field store
* Fix extension getter return types
* Fix hydrate store type issue and double-hydrating users store
* Fix code interface type issue
* Fix m2m composables return types
* Fix html editor composables return types
* Fix collections module composables return types
* Fix files module composable return type
* Fix settings module composable return type
* Fix settings module roles composables return types
* Fix settings module users composable return type
* Fix return type issues in utils and a nasty parameter overwrite
* Fix modelValue casing in template
2021-06-09 11:18:21 -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
Rijk van Zanten
79835d6c83
Fixed right click handler not extending beyond nav items ( #6049 )
...
Fixes #6016
2021-06-03 21:06:18 -04:00
Oreille
22f2e4662f
Add support for adding a collection accent color ( #5818 )
...
* Added icon_color to directus_collections
Added migrations
Added color property to select-icon
Fixed select-icon placeholder
* Use icon color in collection header bar.
* Set `collection` and `note` fields to hald witdh
* Rename icon_color->color
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-06-03 13:04:19 -04:00
Rijk van Zanten
5c66c53478
Enhance translations interface previews ( #5860 )
...
* Delete what was previously added
The reasons of which are beyond me
* Don't default to having the first nested field opened
* Add options for translations / language templates
* Pull previews and render based on secondary display template
* Add changeset
2021-05-24 20:56:29 -04:00
rijkvanzanten
374e6e5a7d
Set size limit on v-error
2021-05-24 14:16:47 -04:00
rijkvanzanten
a40d75a184
Improve hitbox registration in v-menu
...
Fixes #5774
2021-05-21 22:13:02 -04:00
rijkvanzanten
a0512f8b5e
Sanitize all user inputted md
2021-05-14 16:04:36 -04:00
dependabot[bot]
bc30ee2bde
Bump prettier from 2.2.1 to 2.3.0 ( #5593 )
...
* Bump prettier from 2.2.1 to 2.3.0
Bumps [prettier](https://github.com/prettier/prettier ) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.2.1...2.3.0 )
Signed-off-by: dependabot[bot] <support@github.com >
* Fix lint issues for updated prettier
* Lets remove dev: true again so we can auto-add it later why don't we
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-05-11 10:38:42 -04:00
Rijk van Zanten
f0042a7a3d
Create input-autocomplete-api interface ( #5524 )
2021-05-06 18:37:42 -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
Rijk van Zanten
0dbc0d3b36
Default active list to null, remove self-toggle ( #5470 )
...
Fixes #5414
2021-05-04 19:48:31 -04:00
rijkvanzanten
010eabad27
Format remaining md files
2021-05-04 18:52:08 -04:00
Pascal Jufer
1a39b4bc6d
lint-staged: Reintroduce Prettier for md files ( #5382 )
2021-04-30 08:44:47 -04:00
Jian Liao
c438917096
Issue 5344 ( #5346 )
...
* add more ignore pattern for git
* revert the change for api/.gitignore
* fix issue-5344 support autofocus on first non-readonly form field on open drawer
* fix use a more accurate variable name
* Rename autofocusonfirstitem to autofocus
Co-authored-by: Jian Liao <jianliao@adobe.com >
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-04-30 01:13:55 +00:00
rijkvanzanten
fb31653ade
Fix remaining stylelint problems
2021-04-29 16:08:14 -04:00
rijkvanzanten
801e868554
Fix remaining eslint errors
...
h/t @paescuj
2021-04-29 15:55:12 -04:00
Pascal Jufer
acd41eb0be
Syntax fixes ( #5367 )
...
* Declare return types on functions
And a very few other type related minor fixes
* Minor syntax fixes
* Remove unnecessary escape chars in regexes
* Remove unnecessary awaits
* Replace deprecated req.connection with req.socket
* Replace deprecated upload with uploadOne
* Remove unnecessary eslint-disable-next-line comments
* Comment empty functions / catch or finally clauses
* Fix irregular whitespaces
* Add missing returns (null)
* Remove unreachable code
* A few logical fixes
* Remove / Handle non-null assertions which are certainly unnecessary (e.g. in
tests)
2021-04-29 12:11:43 -04:00
cynova
56d634ce16
handle enter key for existing sessions ( #5277 )
...
* handle enter key for existing sessions
* replace with more declarative approach
Co-authored-by: Sean Goff <sean318@hotmail.ch >
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
2021-04-27 12:01:40 -04:00
Ben Haynes
bd206ea5d5
Minimize edited badge
2021-04-22 17:42:40 -04:00
rijkvanzanten
7929ae312b
Add skeleton loaders to o2m/m2m
2021-04-22 17:12:20 -04:00
Ben Haynes
76f67e1d71
Clean up button icon alignment
2021-04-22 16:54:22 -04:00
rijkvanzanten
15dbc31f07
Add primary highlight on drag
2021-04-22 16:50:30 -04:00
Ben Haynes
63a6397625
Fix page jumping on repeater entry
2021-04-22 16:26:15 -04:00
Ben Haynes
de94e5d898
repeater styling
2021-04-22 16:07:00 -04:00
rijkvanzanten
cb4bf88e66
Tweak relational interfaces
...
Squashed commit of the following:
commit ade7ce72e7dac9908504eacf420875baaae1cc47
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 13:16:03 2021 -0400
Add no-items notice
commit e47dd5ac1f28300a33478a2be3c50496859b09fc
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 13:13:58 2021 -0400
Remove files interface
commit 2925fb9c86719c48006f7b2619df7fd26bf7b523
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 13:10:44 2021 -0400
Fix sort field in m2m
commit 009e2b1fd99f7a31f20fba04cd9980eaa3566ac8
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 13:06:45 2021 -0400
Add dense at item count
commit 83b088f4da3ea4a1d7e030f34a07aa1cb2235b43
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 12:05:40 2021 -0400
Tweak rendering of thumbnails inside relational interfaces
commit 06770a0f16e344ab62c0228b87824a6c00ad39bc
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 11:36:07 2021 -0400
Rename $file->$thumbnail, render properly in render-template
commit 954fd725629ce055459a7925be4aaddf3fb723c2
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 11:35:53 2021 -0400
Fix injection on v-field-select
commit 83073dea2fc26af61a5155adddd5d4e3afa5cb14
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 11:35:39 2021 -0400
Adjust for virtual $thumbnail field on files
commit ee57b8316479204c0a5c931c86807afde55423a1
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 10:49:35 2021 -0400
Don't hardcode file/user relations
commit 31ed92c5a785f20b7dc58bb62f35f6e31c95cfc6
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 10:49:22 2021 -0400
Allow injecting temporary fields in field template
commit 9d98d4fe4def7bdba12d1613bd08bdb9bd9e1431
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 10:36:53 2021 -0400
Render collection level template in placeholder
commit 0e0dda1e9f5a930ce3c73c2f8003d98853d58bc0
Merge: 65fa8084f 1e3b64bf9
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 10:35:21 2021 -0400
Merge branch 'main' into relational-tweaks
commit 65fa8084f84aa1a90686fe6407a6d54ca47d1371
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 10:29:03 2021 -0400
Make input container relative
commit 0674a0a00faa5df2208b466114721ba5d5116bf7
Author: rijkvanzanten <rijkvanzanten@me.com >
Date: Thu Apr 22 10:28:44 2021 -0400
Add placeholder option to v-field-template
2021-04-22 13:16:20 -04:00
Nitwel
7d64c8ab47
Relational consistency ( #4093 )
...
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com >
2021-04-21 23:31:12 +00:00
Nicola Krumschmidt
30b16cca89
Reset v-textfield to null when cleared ( #5141 )
...
* Reset v-textfield to null when cleared
* Add option to configure nullable to textarea interface
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
2021-04-19 10:49:27 -04:00
Nicola Krumschmidt
d6f2a96bd6
Reset v-field-template to null when cleared ( #5144 )
2021-04-19 14:39:24 +00:00
Oreille
95a636dbc0
Pass loading prop to form-field-interface ( #5104 )
...
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com >
2021-04-16 14:26:40 +00:00
rijkvanzanten
d43c88095e
Don't allow singletons to be selected in m2a context
...
Closes #4406
2021-04-15 12:04:02 -04:00
rijkvanzanten
f6a1043c6f
Fix dot notation support in table row
...
While keeping it functional
Fixes #5080
2021-04-15 11:33:24 -04:00
rijkvanzanten
ab112d26e7
Tweak error code retrieval
2021-04-14 18:39:47 -04:00
Ben Haynes
0b54975f67
fixes #5017
2021-04-14 17:22:44 -04:00
Nicola Krumschmidt
0f64b00a73
Fix the edited dot if the field value is falsy ( #5054 )
2021-04-14 10:44:38 -04:00
Rijk van Zanten
bcac4b80c2
Fix perf regression in translations ( #5041 )
...
* Only translate extensions on language load
* Make table-row functional
2021-04-13 17:00:22 -04:00
rijkvanzanten
0f5a98f4f2
Fix unique error extraction in MySQL
...
Fixes #4995
2021-04-12 17:28:41 -04:00