* use `localType` to disable related collection in m2m
this is because `localType` dictates the relationship type (eg. m2m, files), but `type` was only field type (eg. alias, string)
* reset files junction when re-enabling auto fill
* prevent m2m clearing related collection
When re-enabled auto-fill, the updates only contain the autofill, not the m2o related collection value, so it was unintentionally resetting the value even when we are only toggling autofill
* fix autofill for translations
* fix m2a junction autofill toggles
* use getCurrent instead of state
* basic test for fieldDetailStore
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
* fix empty form info
* hide circle
* Allow setting prop icon to false in v-info
* Add inline prop to v-form to disable info icon
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
* treat empty array as null on relational field
* Run prettier
* add unit test
* Fix linter warnings
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
* this works in the form-field setting up for refactor
* refactored the useRaw and made form-field-raw-editor
* add defaults
* add tests for render submitting and cancelling
* add isNil
* delete the comment
* add a cancel button
* change let to const
* add the if statement when it's not a object
* delete the .raw-value and place it in the raw-editor form field
* rename submit to setRawValue
* change submit to set-raw-value
* add a possibility to add a placeholder to the system-raw-editor
* implement the system-raw-editor to the form-field-raw-editor
* update the snapshot and fix the emitted tests
* found out we can disable the gutter and line-numbers
* add a language prop to the system when it's not defined it should default to mustache
* delete style; add language and add type
* update the html in tests
* add input-code for the extended validation
* add default value
* Update form-field-raw-editor.vue language to plaintext
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
* update test
Co-authored-by: Vincent Kempers <vincentkempers@vincents-mbp.lan>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
* Fix thumbs displaying in Files interface
* Use default field value if field exists but its value is undefined
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
* extra checks for valid input
* re-introducing the item drawer for list-items
* making list panel drawer optional
* Cleanup for consistency
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
* missing icontains for strings, missing eq, neq for geo, missing in, nin for dates
* fix unit test
* fix unit test part 2
* Update packages/shared/src/utils/get-filter-operators-for-type.ts
Co-authored-by: ian <licitdev@gmail.com>
* fix tests?
* fix tests?
Co-authored-by: ian <licitdev@gmail.com>
* Add fallback page when no fields are visible in a form
* fixed spacing for the linter
* properly show empty form message for relational drawer items
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
* Do not require primary key on data on create / update
* Do not put fields non nullable if they have default value
* Handle manually entered primary keys (don't have default value)
* Allow uuid PK to be nullable
Co-authored-by: ian <licitdev@gmail.com>