4832 Commits

Author SHA1 Message Date
rijkvanzanten
2cb00e8809 v9.17.3 2022-09-06 14:16:25 -04:00
ian
67ca1c266f Merge with M2M junction value when validating in drawer-item (#15433)
* Merge with M2M junction value when validating in drawer-item

* Simplify for null values

* Clear validation error messages on save
2022-09-06 14:14:50 -04:00
rijkvanzanten
a04b733504 v9.17.2 2022-09-06 10:54:03 -04:00
Azri Kahar
f087b3e43c Fix drawer item empty form for o2m/treeview (#15413) 2022-09-06 10:49:21 -04:00
rijkvanzanten
a17a0f4fb9 v9.17.1 2022-09-05 11:38:28 -04:00
Rijk van Zanten
d95394bc98 New Crowdin updates (#15381)
* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Chinese Simplified)

* New translations en-US.yaml (Spanish, Mexico)

* New translations en-US.yaml (Indonesian)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Norwegian)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Turkish)

* Update source file en-US.yaml

* New translations en-US.yaml (French)

* New translations en-US.yaml (Spanish, Chile)

* New translations en-US.yaml (Russian)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Chinese Traditional)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Danish)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Czech)

* New translations en-US.yaml (Spanish, Latin America)

* New translations en-US.yaml (Spanish, Mexico)

* New translations en-US.yaml (French, Canada)
2022-09-05 11:31:55 -04:00
Nitwel
358e6266c0 Add unit tests for useRelationMultiple (#15372)
* add unit tests

* add more tests
2022-09-05 11:14:33 -04:00
GBSTR
213de3f5c6 fix divider not showing/ showing when not needed (drawer-item) (#14605)
* 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>
2022-09-05 16:23:44 +02:00
Kadir ESEN
e7854549fd fix: date-fns date format for tr-TR translations (#15396) 2022-09-04 09:36:14 -04:00
ian
6be7e8f83b Merge with existing item when validating in drawer-item (#15386) 2022-09-04 11:54:24 +02:00
ian
8f7d2f8c5d Set limit as -1 for local exports when field is cleared (#15385) 2022-09-03 15:45:38 -04:00
Azri Kahar
7ccd787975 Fix context menu (#15376) 2022-09-03 21:16:33 +08:00
rijkvanzanten
200c2dd2c7 v9.17.0 2022-09-02 16:17:56 -04:00
rijkvanzanten
ac125cd41f Update docs 2022-09-02 16:14:14 -04:00
Rijk van Zanten
f600d46edf New Crowdin updates (#15166)
* New translations en-US.yaml (German)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Vietnamese)

* New translations en-US.yaml (Vietnamese)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Polish)

* Update source file en-US.yaml

* New translations en-US.yaml (Portuguese, Brazilian)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Hebrew)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (German)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (French)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Italian)

* Update source file en-US.yaml

* New translations en-US.yaml (Spanish, Chile)

* New translations en-US.yaml (Spanish, Latin America)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (French, Canada)

* New translations en-US.yaml (Spanish, Mexico)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Chinese Simplified)

* New translations en-US.yaml (Chinese Simplified)

* New translations en-US.yaml (French)

* New translations en-US.yaml (Polish)
2022-09-02 16:03:14 -04:00
Brainslug
0d56357475 Sort is set to NULL for new items (#15241)
* 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>
2022-09-02 15:58:30 -04:00
Roger Stringer
07135d7250 check that collection exists and not a singleton on panels (#15355)
* check that collection exists and not a singleton on panels

* add a prop to includeSingleton
2022-09-02 15:52:08 -04:00
Rijk van Zanten
4eae2de686 Move updated components to app (#15374)
* Move updated components to app

* Make sure storybook is alive
2022-09-02 14:42:00 -04:00
Nitwel
791f739b66 Reset value when no changes (#15366)
* initial fix

* change fetching

* finish fix

* clean up useRelationMultiple

* fix for m2a
2022-09-02 10:14:11 -04:00
Nitwel
5fe28db539 Add Components Package (#15094)
* 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>
2022-09-01 16:07:31 -04:00
Brainslug
f5befa5bc5 Current items cleared in o2m/m2m when selecting nothing with "add existing" (#15337)
* don't update the state if nothing was selected

* temp disable clearValue for relational fields

Co-authored-by: Nitwel <nitwel@arcor.de>
2022-09-01 14:52:32 -04:00
Brainslug
5915fa9f2b prevent sending "+" as primary key for newly created relational items (#15352) 2022-09-01 13:57:43 +02:00
Nitwel
f0fdd463a0 Fix drawer (#15336)
* start fixing the drawer

* debug

* fix drawer-item

* finish fixing all interfaces
2022-08-31 13:49:25 -04:00
Lukas Schätzle
6a6dab8b5f Always show all upload options (#15128)
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
2022-08-31 13:46:49 -04:00
Petr Hulínský
d7b8ef297e Automatic range on insights graph (#15200)
* Automatic range for insights graph

* Timezone offset

* Refactoring

* Update code based on CR

* Apply suggestions from code review

Co-authored-by: Petr Hulínský <petr.hulinsky@koala42.com>
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2022-08-31 15:26:24 +08:00
Rijk van Zanten
f834605a13 Move get-with-arrays to shared (#15332)
* Move get-with-arrays to shared, add fallback

* Just fallback to undefineds, let the usage handle fallbacks
2022-08-30 17:21:07 -04:00
Rijk van Zanten
43f4efdc9d Add max height to CodeMirror scroller (#15328)
Matches max height of input-rich-text-html

Fixes #15279
2022-08-30 15:43:14 -04:00
Azri Kahar
4e1fbbf629 Fix pagination on disabled o2m and m2m fields (#15304)
* fix pagination on disabled o2m and m2m

* alternative fix and hide per-page

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-08-30 14:55:24 -04:00
Azri Kahar
425ef2f080 refresh on flow run & prompt unsaved changes (#14700) 2022-08-30 14:43:36 -04:00
Nitwel
6e19683a00 add collection info to conditions (#15238)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-08-30 14:40:12 -04:00
ian
a971455216 Add origin to accountability (#15273)
* Add origin to accountability

* Remove origin column from seeds
2022-08-30 14:15:44 -04:00
Brainslug
b2d127dcc8 Default values ignored for validations affected by conditions (#15310)
* added default values when validating items

* abstracted default value parsing to its own util

* Added a basic test

* updated tests

* fixed import

* implementing the same fix for conditions on the drawer-item
2022-08-30 16:46:38 +02:00
Azri Kahar
f77d12eff4 Fix thumbnail overflow in render-template (#15115)
* fix thumbnail overflow in render-template

* new fix for render-template thumbnail in table

* fix thumbnail not working in page titles

* prevent thumbnail overflow in page title
2022-08-29 15:06:57 -04:00
Azri Kahar
08105d0ed2 Revert list style for O2M and M2M interfaces (#15267)
* revert list style for list-o2m

* revert list style for list-m2m
2022-08-25 17:19:18 -04:00
Pascal Jufer
93954af2e2 Add new flow env to allowed list & remove comment leftover (#15268) 2022-08-25 14:11:52 -04:00
Nitwel
f91247260a fix and clean up m2m & o2m (#15220) 2022-08-24 17:52:04 -04:00
Nitwel
e605f2cd64 add missing translations (#15218) 2022-08-24 17:51:48 -04:00
ian
05d05f2cb8 Return empty array if scope is not defined (#15228)
* Return empty array if scope is not defined

* Add empty event trigger text when option is removed
2022-08-24 17:34:04 -04:00
Nitwel
ba3494572a Allow for displaying lists in render template (#15243)
* support arrays in render-template

* allow for rendering lists in render-template
2022-08-24 15:22:10 -04:00
Nitwel
61a8cca102 Fix filter not resetting on bookmarks (#15236)
* fix bug and make code consistent

* clean up unnecessary complexity
2022-08-24 15:21:13 -04:00
Rijk van Zanten
ae55957e82 Don't make variable panels disabled (#15211) 2022-08-22 12:44:41 -04:00
Brainslug
add851ac16 Can't edit o2m relations to directus_files collection (#15210)
* getLocalType confusing m2o and o2m

* first batch of tests for get-local-type

* adding more tests for the get-local-type test
2022-08-22 12:32:06 -04:00
Gerard Lamusse
ef939072cc Fix displaying values from deeper relationships in table (#15155) 2022-08-19 10:42:57 -04:00
ian
13bf30e90a Update workspace tile position only when there are values defined (#15164) 2022-08-19 10:10:05 -04:00
rijkvanzanten
f21f8c4707 v9.16.1 2022-08-19 09:13:10 -04:00
Brainslug
76964b67a3 v-form error: Cannot read properties of undefined (reading 'meta') (#15160)
* do optional chaining for fieldMeta in case it is not loaded yet

* using the loading prop instead of checking values

* Added better typing to catch undefined values
2022-08-19 09:11:47 -04:00
rijkvanzanten
58f6a6fcde v9.16.0 2022-08-18 16:55:44 -04:00
rijkvanzanten
ec024217c3 Update app docs 2022-08-18 16:52:48 -04:00
Rijk van Zanten
3643bbfae4 New Crowdin updates (#14994)
* New translations en-US.yaml (Chinese Traditional)

* New translations en-US.yaml (Serbian (Latin))

* New translations en-US.yaml (Sorani (Kurdish))

* New translations en-US.yaml (Sorani (Kurdish))

* New translations en-US.yaml (Chinese Traditional)

* New translations en-US.yaml (Chinese Traditional)

* New translations en-US.yaml (Chinese Traditional)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Chinese Traditional)

* New translations en-US.yaml (Chinese Traditional)

* New translations en-US.yaml (Chinese Traditional)

* New translations en-US.yaml (Chinese Traditional)

* New translations en-US.yaml (Sorani (Kurdish))

* New translations en-US.yaml (Sorani (Kurdish))

* New translations en-US.yaml (Sorani (Kurdish))

* New translations en-US.yaml (Sorani (Kurdish))

* New translations en-US.yaml (Sorani (Kurdish))

* New translations en-US.yaml (Sorani (Kurdish))

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Chinese Simplified)

* New translations en-US.yaml (French)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (French, Canada)

* Update source file en-US.yaml

* Update source file en-US.yaml

* New translations en-US.yaml (Romanian)

* New translations en-US.yaml (Indonesian)

* New translations en-US.yaml (Persian)

* New translations en-US.yaml (Spanish, Chile)

* New translations en-US.yaml (Thai)

* New translations en-US.yaml (Breton)

* New translations en-US.yaml (Serbian (Latin))

* New translations en-US.yaml (Spanish, Latin America)

* New translations en-US.yaml (Vietnamese)

* New translations en-US.yaml (Russian)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Portuguese)

* New translations en-US.yaml (Serbian (Cyrillic))

* New translations en-US.yaml (Swedish)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Estonian)

* New translations en-US.yaml (English, United Kingdom)

* New translations en-US.yaml (Portuguese, Brazilian)

* New translations en-US.yaml (Chinese Traditional)

* New translations en-US.yaml (French)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Afrikaans)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (Catalan)

* New translations en-US.yaml (Czech)

* New translations en-US.yaml (Danish)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Greek)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Chinese Simplified)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Japanese)

* New translations en-US.yaml (Lithuanian)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Norwegian)

* New translations en-US.yaml (Slovenian)

* New translations en-US.yaml (Ukrainian)

* New translations en-US.yaml (English, Canada)

* New translations en-US.yaml (French, Canada)

* New translations en-US.yaml (Croatian)

* New translations en-US.yaml (Spanish, Mexico)

* New translations en-US.yaml (Sorani (Kurdish))

* Update source file en-US.yaml

* New translations en-US.yaml (Romanian)

* New translations en-US.yaml (Indonesian)

* New translations en-US.yaml (Persian)

* New translations en-US.yaml (Spanish, Chile)

* New translations en-US.yaml (Thai)

* New translations en-US.yaml (Breton)

* New translations en-US.yaml (Serbian (Latin))

* New translations en-US.yaml (Spanish, Latin America)

* New translations en-US.yaml (Vietnamese)

* New translations en-US.yaml (Russian)

* New translations en-US.yaml (Polish)

* New translations en-US.yaml (Serbian (Cyrillic))

* New translations en-US.yaml (Swedish)

* New translations en-US.yaml (Turkish)

* New translations en-US.yaml (Estonian)

* New translations en-US.yaml (English, United Kingdom)

* New translations en-US.yaml (Portuguese, Brazilian)

* New translations en-US.yaml (Chinese Traditional)

* New translations en-US.yaml (French)

* New translations en-US.yaml (Spanish)

* New translations en-US.yaml (Afrikaans)

* New translations en-US.yaml (Arabic)

* New translations en-US.yaml (Bulgarian)

* New translations en-US.yaml (Catalan)

* New translations en-US.yaml (Czech)

* New translations en-US.yaml (Danish)

* New translations en-US.yaml (German)

* New translations en-US.yaml (Finnish)

* New translations en-US.yaml (Hungarian)

* New translations en-US.yaml (Chinese Simplified)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (Lithuanian)

* New translations en-US.yaml (Dutch)

* New translations en-US.yaml (Slovenian)

* New translations en-US.yaml (Ukrainian)

* New translations en-US.yaml (English, Canada)

* New translations en-US.yaml (French, Canada)

* New translations en-US.yaml (Croatian)

* New translations en-US.yaml (Spanish, Mexico)

* New translations en-US.yaml (Sorani (Kurdish))
2022-08-18 16:51:57 -04:00
Brainslug
b9803456e0 Stop groups from rendering before the conditions are applied (#15144)
* update open state if already initialized

* prevent group rendering with default props before data is loaded

* prevent default field options before values are loaded
2022-08-18 15:40:17 -04:00