Commit Graph

563 Commits

Author SHA1 Message Date
rijkvanzanten
4e624d5c7a Move default module listing to app 2021-09-15 16:07:43 -04:00
Jay Cammarano
e243a33cd9 Add new translations interface (#7727)
* added v-select and button to start sidebyside view

* v-chip next to field name on translations

* v-chip color changed

* add baisc logic

* finish inner workings of translation interface

* finish design

* clean up code

* remove unused prop

* small tweaks

* finish translation interface

* fix lang icon

* tweak styling

* Use v-model over separate bind+event

* Tweak margin definition

* Add class to field-name to prevent span confusion

* Rename classes to match var names

* Add limit -1, remove commented code

* Tweak toggle tooltip wording

* Add hover state to v-icons

* Use self-closing elements

* Remove unused imports

* Rename newVal->sideBySideEnabled

* Use filter + length instead of reducer

* Fix param typo

* Move dividers into main translations component

* Base initial language on fetched languages array

* Move styling to language-select, simplify component

* Don't rely on deep styling

* Tweak interactive state of chip

* Use existing form-grid for side-by-side layoutin

* Only fetch preview values when we dont have them yet

* Improve stability of edited status

* Fix hover state of v-icon

Co-authored-by: Nitwel <nitwel@arcor.de>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-09-15 13:03:08 -04:00
Rijk van Zanten
d750c7ebc4 Move module setup to Project Settings (#8012)
* Move module bar setup to project settings

* Add system modules interface to dnd configure module bar

* Cleanup order

* Crucially important typo

* Add ability to add custom links

* Show correct initial value marker
2021-09-14 18:07:46 -04:00
Ben Haynes
28868e60f8 Various style updates (#7972)
* fix card selection dot always being on

* new mapbox styles

* updated styles for field notes

* update bookmark icon

* increase currrent user avatar opactiy

* Clean up info notes

* divider style updates

* divider rule styling

* notice styling

* update revision drawer pane order

* tighten up revision drawer list

* notice copy updates

* revision spacing

* revision date divider styling

* shorter revision date in drawer dropdown

* add no value to revision diffs

* v-detail icons

* revisions styling

* fix sort icon hover

* adjust global and private vertical form spacing

* reduce navigation and v-list sizing

* slightly reduce module and info sidebar size
2021-09-10 15:01:58 -04:00
Aleš Vaupotič
df1feaffe8 Right icon hides for numeric input (#7966) 2021-09-10 08:19:05 -04:00
Oreille
fa14233e92 Fixed mapbox-gl-draw css not being applied and moved logo (#7950)
* Fixed mapbox-gl-draw css not being applied and moved logo to bottom right

* Remove unused import

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2021-09-09 18:11:23 +00:00
Oreille
86a5a5087d Fix basemap tileSize condition (#7921)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-09-08 11:39:46 -04:00
Oreille
f28a052974 Add tileSize parameter to basemap options (#7918)
* Added tileSize parameter to basemap options

* Fix blurry icon in map interface.
2021-09-08 10:37:14 -04:00
Oreille
44ff1484f6 Fix map interface controls not showing (#7812) 2021-09-03 12:08:31 -04:00
Dieter Luypaert
689ac586a1 Datetime interface "Set to now" sets seconds to 0 (#7794)
When "Include seconds" is disabled.

Fixes #7779
2021-09-03 10:55:23 -04:00
Nitwel
737e60e2bf fix wrong icon (#7800) 2021-09-03 09:14:49 -04:00
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