Commit Graph

662 Commits

Author SHA1 Message Date
Azri Kahar
1bad781db5 fix translation input blur on revert to old value (#10068) 2021-12-01 14:19:08 -05:00
Azri Kahar
646cc3a0d6 Hide options for date type in datetime interface (#10073)
* hide options for date type in datetime interface

* clear options when switching to date
2021-12-01 14:18:35 -05:00
Azri Kahar
1c8181c6c1 add colorOn & colorOff to checkbox interface (#10149) 2021-12-01 14:02:57 -05:00
Azri Kahar
23b9e22344 add text path to autocomplete api input (#10183) 2021-12-01 11:36:05 -05:00
Ben Haynes
59c45c92e2 add crop and contain options, increase full height (#9628)
* add crop and contain options, increase full height

* template literal string tweak

* Update app/src/interfaces/file-image/file-image.vue

Co-authored-by: Azri Kahar <azrikahar@outlook.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-12-01 15:38:30 +00:00
Azri Kahar
481d03df7d add dot indicator to groups with modified fields (#10147) 2021-11-30 19:29:38 -05:00
ian
1f9dfb5722 Set isEditorDirty flag before saving changes (#10048) 2021-11-25 10:52:31 -05:00
Oreille
b55abff734 Fix tag interface allowCustom default value to true (#10021) 2021-11-24 17:13:20 -05:00
José Varela
7eb106e229 fix color picker position (#10009) 2021-11-24 17:11:53 -05:00
Azri Kahar
bebea58a88 fix translations input issues (#9803)
Co-authored-by: Jose Varela <joselcvarela@gmail.com>
2021-11-24 16:17:12 -05:00
José Varela
6dc551b7db Fix M2O display inside M2M relations (#9533)
* Fix M2O display inside M2M relations

* Fix fetching every time value changed
2021-11-24 16:02:07 -05:00
Oreille
f669fec5eb Remove geometryFormat from map interface options. (#9750)
* Remove geometryFormat from map interface options.

* resolve lint warnings

Co-authored-by: Azri Kahar <azrikahar@outlook.com>
2021-11-15 10:17:42 -05:00
ian
b9c3e18796 Fix existing files drawer selection (#9609)
Co-authored-by: Jose Varela <joselcvarela@gmail.com>
2021-11-11 14:40:18 -05:00
rijkvanzanten
c0ea45fa05 Prevent system-filter from crashing on unknown field 2021-11-11 14:35:46 -05:00
José Varela
153c3d55a3 Fix missing initialItems added on M2M (#9736)
@rijkvanzanten I am merging this because it was approved on M2M and it's preventing users from selecting files.
2021-11-11 17:24:25 +00:00
Azri Kahar
b1494e8a22 Fix repeater interface template (#9588) 2021-11-09 10:44:32 -05:00
José Varela
528abe4593 Import 'Fira Mono' & 'Merriweather' into WYSIWYG (#9618)
* import 'Fira Mono' into wysiwyg

* use import statements for monospace & serif fonts

Co-authored-by: Azri Kahar <azrikahar@outlook.com>
2021-11-09 10:16:22 -05:00
Azri Kahar
7050a9f489 fix elements z-index higher than app header bar (#9530) 2021-11-06 16:18:25 -04:00
José Varela
bbd6e13e1e Fix lose data on M2M (#9548)
* save initial items of m2m relation

* merge initial, draft and selected on new selection
2021-11-06 16:13:38 -04:00
Adrian Dimitrov
b8fabe46f2 Fix missing and wrong translations (#9537) 2021-11-05 12:30:59 -04:00
Pascal Jufer
111a3ef231 Update package-lock.json & fix warning from eslint (#9509)
* Update package-lock.json

To reflect latest release

* Fix warning from eslint
2021-11-05 09:56:34 -04:00
Azri Kahar
deae8cd929 fix repeater field names title format (#9504) 2021-11-05 09:40:56 -04:00
Oreille
5f43b20ebf Update geometric types and patch new field flow. (#9397)
* Update geometric types and patch new field flow.

* Add migration

* Fixed migrations

* Also fixed migrations

* Update migration ID

* Cleanup type selector a bit

* Add missing fallback interface/display for new types

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-11-04 21:47:54 -04:00
Oreille
ef3da32ab3 Properly handle M2A fields in fieldStore and useFieldTree (#9432)
* Properly handle M2A fields in fieldStore and useFieldTree

* Fix addNode

* Rewrote use-field-tree

* Remember visited paths

* Fix error whith undefined relation.meta
2021-11-04 20:35:05 -04:00
Nicola Krumschmidt
ae15f39091 Clean up interface options type (#9447) 2021-11-04 18:31:31 -04:00
Rijk van Zanten
d3639983df Fix presentation-links interfaces (#9485)
Fixes #9457
2021-11-04 18:57:26 +00:00
Rijk van Zanten
71ec7115c0 Fix nested system-interface-options usage (#9483)
* Improve null check in list

* Fix options syncing in system-interface-options
2021-11-04 18:12:37 +00:00
Rémi Alvergnat
3cd32d533b Fix invalid collection for Interface Display Template for M2M relationships (#9420)
* Fix invalid collection for Interface Display Template (#9419)

* use o2m ollection on m2m interface

* apply same fix on files

Co-authored-by: Jose Varela <joselcvarela@gmail.com>
2021-11-04 13:20:55 -04:00
Rijk van Zanten
65291b95c4 Allow dynamic user variables to be used with filter rules (cont.) (#9376)
* Move permissions extraction to accountability

* Fix permissions retrieval for public user

* Fetch user / role context in permissions middleware

* Remove unnecessary parseFilter

* Rename schemaCache to systemCache

* Add permissions caching

* Add system cache invalidation on permission changes

* Improve caching perf by reducing scope

* Add note to docs

* Clarify compatibility with conditional fields/filters

* Fix lint warning

* Allow nested vars in system-filter-input

* Add custom getter function that resolves arrays

* Add is-dynamic-variable util

* Export new util

* Cleanup parse filter

* Fix build

* Move debounce up to use-items

* Remove unused prop

* 🧹

* Fix input pattern usage w/ vars

* Remove debounce from search-input, increase throttle
2021-11-03 16:56:16 -04:00
Azri Kahar
22d4de7c5b Add placeholder to Language Indicator Field for first Translations setup (#9337)
* Hide Language Indicator Field initially

* fix lint error

* revert hiding languageFIeld & add placeholder
2021-11-03 15:30:59 -04:00
Rémi Alvergnat
1bd43bd25f Fix hover effect on o2m and m2a lists (#9412) (#9414) 2021-11-03 15:12:08 +00:00
d1rOn
ca964b7ac2 Translations interface fix (#9333)
* Translations interface fix

Fixes issue

* Translations interface fix (2)
2021-11-02 09:48:15 -04:00
Azri Kahar
d1a1d73b11 Prevent file input preloading drawer (#9282) 2021-11-01 18:12:28 -04:00
Azri Kahar
fcd3b1e345 fix lint warnings (#9287)
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-11-01 17:34:20 -04:00
Oreille
6331ad0347 Map layout and interface improvements (#9288)
* Map layout and interface improvements
* Fix marker not showing up on geocoder search
* Replaced geocoder search placeholder
* Fix geocoder hit area
* Fix item popup positioning
* Removed unselect button
* Removed "No results" popup
* Removed option to filter map on demand vs automatically
* Renamed Geometry field option
* Added placeholder to template option
* Hide "Delete" button when no feature are selected

* Lint fix

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-11-01 16:33:09 -04:00
Azri Kahar
40917d3cf5 Update translation icon in interface selector (#9292)
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-11-01 19:34:02 +00:00
Azri Kahar
c53a539fdd Input code json (#9291)
* remove language selection for input code type JSON

* lint as json when type is json

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-11-01 18:35:59 +00:00
Oreille
088abac83b Fix dynamic variables not working anymore in UUID filter (#9180)
* Fix $CURRENT_USER not working anymore in UUID filter

* $Handle CURRENT_ROLE too
2021-10-29 12:26:46 -04:00
Oreille
1a52c23761 Map interface improvements (#9239)
* Add tooltips on feature hover on the interface
* Add marker on geocoder search result
* Improve map interface style
2021-10-29 12:24:45 -04:00
Theraloss
a682e89c95 Append access_token to images in WYSIWYG only once (#9062)
* append access_token to image in wysiwyg only once

* do not append token in previewUrl when clicking an image from wysiwyg

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-10-29 16:08:25 +00:00
Oreille
485641c7ec Add folder, template, enableCreate, enableSelect options to the files interface (#9184) 2021-10-27 20:35:11 +02:00
Azri Kahar
280e3f4c22 Use textarea input for textarea placeholder (#9041) 2021-10-25 23:05:39 -04:00
rijkvanzanten
775440ccde Don't enforce rgb modern syntax 2021-10-25 23:00:49 -04:00
renovate[bot]
54ba54d3d6 Update dependency stylelint to v14 (#9016)
* Update dependency stylelint to v14

* Update dependency stylelint-scss to v4

* Update dependency stylelint-order to v5

* Undo command change

* Update stylelint command

* Use modern color syntax

Who knew this was already supported everywhere? Awesome!!

* Update stylelint-config-standard

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-10-25 22:26:57 -04:00
Rijk van Zanten
2720e0c18e Add new field flow (#9109)
* Add new grouping setup to interfaces

* [WIP] Start on new field flow

* Add preview svgs

* Update preview svg

* Add basic saving mechanism. Start on magic

* Add interface options to simple inputs

* Fix missing t

* Fix custom options not rendering

* Fix interface options overrides

* Sync m2o name key

* Setup m2o related collection input

* Add collections generation

* Add circular prevention & type syncing

* Small fixes in m2o context generation

* Move o2m options to fn structure

* Conclude o2m (i think)

* Start on toggle to advanced

* Style advanced toggle button

* Add localType File support, start documenting

* Add presentation/group localtypes

* Use function style interface options in m2m

* Don't require collection prop in field template component

* Implement most of m2m magic

* Restructure store updater

* Finish useFieldDetailStore restructure

* Only register root index in module folders

* Do the thing

* Finish m2m magic, tweak fallback styles

* Fix o2m display template setup

* Remove options comp for translations interface

* Show languages collection picker in translations

* Finish translations alterations

* Add magic for files type

* Officially wave goodbye to the old store setup

It served it's purpose, but what a nightmare to maintain. Welcome to the new version

* Update schema tab

* Add field pane

* Finish interface section

* Add display section

* Add conditions

* Update tabs to use localType from store

* Start on relationship tab

* Update m2m relational setup

* Start on m2o

* Finish m2o setup

* Finish o2m setup

* Add m2a magic

* Various tweaks

* Add m2a setup

* Add save button to advanced flow

* Load existing values on start

* Add upsert to stores, allow updating existing items

* Please the linter gods

* Remove seemingly redundant interface option

@Oreilles Seeing the geometry type is already configured in the schema configuration, this particular option on the interface feels redundant (?)

* Remove unnecessary option component overrides

* Track relationships in required fields for save state

* Fix relations previews on editing existing fields

* Use standard vs advanced for input options

* Remove note from simple field setup

* Add divider to field config

* Use background subdued

* Default required to false

* Add required icons to key/relationship

* Tweak colors

* Fix infinite loop in group creation

* Make setup responsive

* Allow switching interface at will

* Add m2a related collections picker

* Fix relations persisting on field deletion

* Add "Create in Advanced" shortcut

Just for you @joselcvarela

* Fix PK field staging on collection create

* Revert "Remove seemingly redundant interface option"

This reverts commit e5e09a051e.

* Fix map interface options
2021-10-25 20:29:04 -04:00
José Varela
bf2b7e8d01 fix no options in repeater (#9113)
before: page does render if repeater has no options
after: page renders and repeater showe no options
2021-10-25 11:44:49 -04:00
Oreille
7eb2cb1137 Fix filter added twice and remove unnecessary _and node. (#9116) 2021-10-25 11:37:47 -04:00
Oreille
c94d0c4bfe Use default filter operator for type in filter input. (#9103)
* Use default filter operator for type in filter input. Also fix error on geometry operator update.

* Fixed tests.

* Only reset geometry filter value when necessary

* Support `null` for boolean operators.
2021-10-25 11:28:44 -04:00
Oreille
ed0a8aeb15 Ignore codemirror import mode types (#9112) 2021-10-25 11:27:07 -04:00
Oreille
1b64b4472a Bug fixes and improvements (#8995)
* Updated layout and interface mapbox style
* Fixed margin issues around the layout
* Use render-template component to display item popup on hover
* Fixed french translations
2021-10-21 15:30:13 -04:00