Commit Graph

552 Commits

Author SHA1 Message Date
Azri Kahar
362f5de75e Fix WYSIWYG field not being cleared after "Save and Create New" (#7754)
* fix WYSIWYG field not being cleared

* return empty string when null for tinymce

* Update app/src/components/v-form/form-field.vue

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-09-03 02:17:31 +00:00
Oreille
d7f50ab6f6 Fixes bug when trying to edit geometry in code interface. (#7778) 2021-09-02 13:49:09 -04:00
Azri Kahar
fc154a8ecc fix WYSIWYG field focus event (#7756) 2021-09-01 18:45:56 -04:00
Nitwel
8b4f67a31a Warn the user when a collapsed group field had an error (#7738)
* warn the user when a collapsed group field had an error

* Replace icon

* Reduce icon size

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-09-01 18:38:45 -04:00
Ben Haynes
eec1e630eb Update WYSIWYG styling 2021-09-01 16:16:51 -04:00
Azri Kahar
2f32b3cacd Fix input-code lint style (#7716) 2021-08-31 10:38:08 -04:00
Nitwel
607e32ea36 Resolve editor/type warnings (#7687)
* resolve editor/type warnings

* dont rename props
2021-08-30 16:54:17 -04:00
Nicola Krumschmidt
d64ca14348 Explicitly set catch parameters to any type (#7654)
This fixes not being able to build the repo due to type issues
introduced by the Typescript 4.4 option "useUnknownInCatchVariables",
which is enabled by default in strict mode.
2021-08-27 10:33:30 -04:00
Nitwel
324b7331d1 fix items not getting matched properly (#7666) 2021-08-27 10:30:14 -04:00
Nitwel
4de40803bb fix computed and watch getting updated to often (#7631) 2021-08-26 15:58:59 -04:00
Nicola Krumschmidt
57442431d5 Make the asset url regex unambiguous (#7603) 2021-08-25 09:34:52 -04:00
Oreille
d4999a4d39 Add mapbox-key to map interface initialization (#7602) 2021-08-25 09:33:27 -04:00
rijkvanzanten
7cc15f2d40 Don't stage empty ? in img url 2021-08-24 20:44:43 -04:00
Jay Cammarano
db9020b378 Display private images in WYSIWYG editor (#7583)
* image is displaying in WYSIWYG

* remove access token before deletion

* remove token is being returned

* preview image displaying correctly

* added image token props handling

* imageToken added as params correctly

* refactor

* Fix regex, fix life's problems

* Remove eslint disable

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-08-24 18:55:51 -04:00
alexkharech
d3a8a13396 added text type to input interface (#7535)
This commit will add additional support for connecting to an existing database PostgreSQL.
The only difference between TEXT and VARCHAR(n) is that you can limit the maximum length of a VARCHAR column.
2021-08-24 14:25:13 -04:00
mikhail sergienko
c24df4ed5a remove undefined fitBounds (#7537) 2021-08-22 11:45:08 -04:00
Rijk van Zanten
301db2e120 Prevent 400 error on translations load for to-be-created items (#7513)
Fixes #7477
2021-08-20 00:36:58 +02:00
Oreille
d2823799f8 Set simple select mode when the value is loaded. (#7505)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-08-19 11:54:12 -04:00
Nitwel
a9791227fd add simple audio support (#7452) 2021-08-17 11:03:59 -04:00
rijkvanzanten
eaa2f47453 Fix translations not fetching all translation previews 2021-08-16 13:43:22 -04:00
rijkvanzanten
718addd2b8 Handle non-existing relations in m2o 2021-08-16 13:39:29 -04:00
Derek Wene
e53414671c Fix group interface start (#7411) 2021-08-13 23:08:07 +02:00
Oreille
83e8814b2d Add support for Geometry type, add Map Layout & Interface (#5684)
* Added map layout

* Cleanup and bug fixes

* Removed package-lock

* Cleanup and fixes

* Small fix

* Added back package-lock

* Saved camera, autofitting option, bug fixes

* Refactor and ui improvements

* Improvements

* Added seled mode

* Removed unused dependency

* Changed selection behaviour, cleanup.

* update import and dependencies

* make custom style into drawer

* remove unused imports

* use lodash functions

* add popups

* allow header to become small

* reorganize settings

* add styling to popup

* change default template

* add projection option

* add basic map interface

* finish simple map

* add mapbox style

* support more mapbox layouts

* add api key option

* add mapbox backgrounds to layout

* warn when no api key is set

* fix for latest version

* Improved map layout and interface, bug fixes, refactoring.

.

.

* Added postgis geometry format, added marker icon shadow

* Made map buttons bigger and their icons thinner. Added transition to header bar.

* Bug fixes and error handling in map interface.

* Moved box-select control out of the map component. Removed material icons sprite and use addImage for marker support.

* Handle MultiGeometry -> Geometry interface error.

* Removed hardcoded styles. Added migrations for basemap column. Lots of refactoring.

Removed hardcoded styles. Added migrations for basemap column. Lots of refactoring.

* Fixed style reloading error. Added translations.

* Moved worker code to lib.

* Removed worker code. Prevent Mapbox from removing access_token from the URL.

* Refactoring.

* Change basemap selection to in-map dropdown for layout and interface.

* Touchscreen selection support and small fixes.

* Small change.

* Fixed unused imports.

* Added support for PostgreSQL identity column

* Renamed migration. Added crs translation.

* Only show fields using the map interface in the map layout.

* Removed logging.

* Reverted Dockerfile change.

* Improved crs support.

* Fixed translations.

* Check for schema identity before updating it.

* Fixed popup not updating on feature hover.

* Added feature hover styling. Fixed layer customization input. Added out of bounds error handling.

* Added geometry type and support for database native geometries.

* Fixed linting.

* Fixed layout.

* Fixed layout.

* Actually fixed linting

* Full support for native geometries
Fixed basemap input
Improved feature popup on hover
Locked interfaced support

* Fixed geometryType option not updating

* Bug fixes in interface

* Fixed crash when empty basemap settings. Fixed fitBounds option not updating.

* Added back storage type option. Improved interface behaviour.

* Dropped wkb because of vendor inconsistency with binary data

* Updated layout to match new geometry type. Fixed geojson payload transform.

* Added missing geometry_format attributes to local types.

* Fixed typos & refactoring

* Removed dependency on proj4

* Fix error when empty map interface options

* Set geometry SRID to 4326 when inserting into the database

* Add support for selectMode

* Fix error on initial source load

* Added geocoder, use GeoJSON for api i/o, removed geometry_format option, refactoring

* Added geometry intersects filter. Created geometry helper class.

* Fix error when null geometryOptions, added mapbox_key setting.

* Moved all geometry parsing/serializing into processGeometries in `payload.ts`. Fixed type errors.

* Migrate to Vue 3

* Use wellknown instead of wkx

* Fixed basemap selection.

* Added available operator for geometry type

* Added nintersects filter, fixed map interface for filter input

* Added intersects_bbox filter & bug fixes.

* Fixed icons rendering

* Fixed cursor icon in select mode

* Added geometry aggregate function

* Fixed geometry processing bug when imported from relational field.

* Fixed error with geocoder instanciation

* Removed @types/maplibre-gl dependency

* Removed fitViewToData options

* Merge remote-tracking branch 'upstream/main' into map-layout

* Fixed style and geometryType in map interface options

* Fixed style change on map interface.

* Improved fitViewToData behaviour

* Fixed type imports and previous merge conflict

* Fixed linting

* Added available operators

* Fix and merge migrations

* Remove outdated p-queue dep

* Fix get-schema column extract

* Replace pg with postgis for local debugging

* Re-add missing import

* Add mapbox as a basemap when key exists

* Remove unused tz flag

* Process delta in payloadservice

* Set default map, add limit number styling

* Default display template to just PK

* Tweak styling of error dialog

* Fix method usage in helpers

* Move sdo_geo to oracle section

* Remove extensions from ts config exclude

* Move geo types to shared, remove _Geometry

* Remove unused type

* Tiny Tweaks

* Remove fit to bounds option in favor of on

* Validate incoming intersects query

* Deepmap filter values

* Add GraphQL support

* No defaultValue for geometryType

* Resolve c

* Fix translations

Co-authored-by: Nitwel <nitwel@arcor.de>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-08-12 22:01:34 +02:00
Adrian Dimitrov
6ef348a118 Schema field types are not translated in the app (#7327)
* Fix field type label translations

* Use translate-object-values util

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-08-10 20:50:05 +02:00
Adrian Dimitrov
670b456237 Fix colors on different types (#7322)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-08-10 16:45:16 +00:00
rijkvanzanten
26a8291e3e Resolve sorting in list-o2m-tree-view on dnd 2021-08-10 11:01:23 -04:00
rijkvanzanten
260506d5cf Improve type checking 2021-08-10 10:23:45 -04:00
Nicola Krumschmidt
b1f1f6d25b Log error message when registering app extension fails (#7274) 2021-08-09 12:09:20 +00:00
Rijk van Zanten
627d843aed Update/tweak groups (#7229)
* Split detail/raw groups, tweak accordion

* Add update groups migration
2021-08-06 00:27:26 +02:00
Rijk van Zanten
fb9ee7ab30 Add show all/selected toggle to tree-select (#7161) 2021-08-03 17:32:01 +02:00
Rijk van Zanten
7a8eeac88b Title format repeater names (#7141)
Fixes #7138
2021-08-02 22:01:56 +02:00
Rijk van Zanten
562d4c4a47 Fix default value of select-icon interface (#7131)
Fixes #7120
2021-08-02 18:14:56 +02:00
Rijk van Zanten
38896075d4 Add accordion group (#7130)
* Start on accordion group

* Add some basic styling to accordion sections

* Update style, add multiple option, add shift-click

* Only toggle-all on multiple option

* Finish styling of accordion sections

* Tweak styling

* Add 'start' option to accordion

* Rename group-raw -> group-standard, add header option

* Replace group-divider with group-standard
2021-08-02 18:12:52 +02:00
Rijk van Zanten
ae40445dee Add a standardized max-height to tree select interface (#7103) 2021-07-30 18:59:02 +02:00
Rijk van Zanten
673818b04e Surface dropdown choices in advanced sidebar filter (#7101)
* Mark scope as system field

* Surface choices in advanced sidebar detail
2021-07-30 18:16:34 +02:00
Phillip Assmann
1bb2531281 First implementation (#7059)
Added the `start_open` and `defaultActive` fields
and translations (for englisch and german)

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-07-29 11:17:19 -04:00
Rijk van Zanten
d94548992e Remove illegal words from translations root (#7045)
Fixes #7033
2021-07-28 18:55:38 +02:00
Luan Mattner Müller
622d90a7e5 Handle autocomplete empty path configurations (#7025) 2021-07-28 10:21:13 -04:00
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
Pascal Jufer
b0eeacffe3 Remove unused 'ref' (eslint warning) (#6921) 2021-07-22 13:25:13 +02:00
Adrian Dimitrov
efe7b076a3 Add default-folder option (#3209)
* Allow set folder for imported files

* Allow passing folder in file/files component; Allow pick folder for file/files/image interfaces.

* Added folder system component for picking folders; Move folder picker the field from data to interface (file, files, image).

* Add custom folder interface; use props for interfaces file/files/image in upload component

* Allow set folder for imported files

* Allow passing folder in file/files component; Allow pick folder for file/files/image interfaces.

* Added folder system component for picking folders; Move folder picker the field from data to interface (file, files, image).

* Add custom folder interface; use props for interfaces file/files/image in upload component

* Update after rebase

* Add storage_default_folder setting, use folder when deploy file

* Fix files options; Add default label option for folder interface.

* Fix set folder for file

* UX

* Add migration for column, undo seed change

* Update nomanclature

* Make sure file library always submits folder, cleanup setting retrieval

* Use indexName on down migrate

* Fix import default folder, rename customPresets->folderPreset

* Rename interface import

* Use undefined as default folder

* Remove deprecated lang file

* Fix display of folder interface, treat null as value

* Move shared composable

* Remove unused ref

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-07-21 17:29:21 -04:00
Nicola Krumschmidt
b61543c0e9 Move DeepPartial to shared (#6886)
Also cleans it up and adds support for readonly arrays.
2021-07-20 11:40:59 -04:00
Rijk van Zanten
ac414877a6 Auto-open groups on search in tree-select (#6838) 2021-07-15 22:18:06 +02:00
Rijk van Zanten
d38681c2ee Add v-md directive (#6835)
* Use stricter Vue eslint setting

* Implement v-md directive

Replaces old uses of v-html + md util

* Fix typo
2021-07-15 18:01:30 +00:00
Rijk van Zanten
5f7dce54e2 Use stricter Vue eslint setting (#6833) 2021-07-15 13:49:59 -04:00
Rijk van Zanten
003d1fe20f Fetch all languages in the translations interface (#6800)
Fixes #6698
2021-07-15 01:03:21 +02:00
Nicola Krumschmidt
2d63a411f1 Fix md editor being empty when editing existing value (#6733)
Fixes #6730
2021-07-14 11:24:12 -04:00
Rijk van Zanten
0a20b90691 Add support for field grouping (#6553)
* Update icon font, add group type to field setup

* Add group type, start on group-raw interface

* Add style for group

* Finish nested groups

* Finish field group setup

* Add type check

* Work on group raw group

* Various

* Fix support for nested groups

* Add group-divider interface

* Remove unused file

* Fix linter warning
2021-06-28 19:17:55 -04:00
Nicola Krumschmidt
8823434046 Fix translations interface options crashing the App (#6530) 2021-06-28 11:04:11 -04:00