Commit Graph

57 Commits

Author SHA1 Message Date
renovate[bot]
0207d78ffe update vue monorepo to v3.2.2 (#7355)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-11 17:43:55 -04:00
rijkvanzanten
9f4e855826 v9.0.0-rc.90 2021-08-11 13:46:49 -04:00
rijkvanzanten
dc9ede85ee v9.0.0-rc.89 2021-08-09 17:27:01 -04:00
renovate[bot]
1fa975e59f update vue monorepo to v3.2.1 (#7293)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-09 21:20:38 +00:00
renovate[bot]
5ad5544bf4 update dependency vue to v3.2.0 (#7289)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-09 16:35:59 -04:00
Nicola Krumschmidt
aca8c1078e Only loads app extensions if SERVE_APP is true (#7275)
This also ensures API/App only load their respective extensions in dev.
2021-08-09 09:44:27 -04:00
renovate[bot]
e43065bc12 update dependency vue-router to v4.0.11 (#7272)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-09 09:38:35 -04:00
Rijk van Zanten
90793d5645 Don't use tags interface for CSV filter (#7258)
Fixes #6778
2021-08-06 23:53:15 +02:00
Rijk van Zanten
d0f6cb35e3 Support dynamic variables in conditional fields (#7202)
* Move accountability type to shared

* Rely on shared for parse-filter

* Install date-fns

* Support dynamic variables in conditional fields

Closes #7157
2021-08-05 01:51:15 +02:00
Rijk van Zanten
ef3d618d6c Add support for app-required field state (#7166)
* Add "required" option to fields

* Move some exceptions to shared

* Do client side validation for required

* Add conditional required support
2021-08-03 23:04:24 +02:00
rijkvanzanten
2a324dd40d v9.0.0-rc.88 2021-08-02 16:54:03 -04:00
Rijk van Zanten
a4767f80ab Fix nested fields check in validate-payload handler (#7135) 2021-08-02 13:32:04 -04:00
Nicola Krumschmidt
d27a673db8 Remove unused field-types.ts from shared (#7127)
The file is identical to fields.ts except for variable names.
2021-08-02 11:50:44 -04:00
renovate[bot]
fb0559c7c3 update dependency joi to v17.4.2 (#7117)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-02 10:00:39 -04:00
Nicola Krumschmidt
ed1eb6e95d Clean up type declarations in shared (#7100)
Hopefully typescript will fully support the "exports" field soon so we
can get rid of this.
2021-07-30 16:14:07 +00:00
rijkvanzanten
37575e4849 v9.0.0-rc.87 2021-07-28 17:15:59 -04:00
Rijk van Zanten
a85c4af4ea Fix mssql max-length doubling (#7041)
Fixes #5236
2021-07-28 18:05:16 +02:00
rijkvanzanten
3390430c04 v9.0.0-rc.86 2021-07-26 18:20:42 -04:00
renovate[bot]
5be0c2ca8c pin dependency lodash to 4.17.21 (#6985)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-26 18:20:27 -04:00
renovate[bot]
e3a3735621 pin dependency joi to 17.4.1 (#6983)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-26 18:08:33 -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
renovate[bot]
961bc80e13 update dependency knex-schema-inspector to v1.5.12 (#6976)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-26 12:20:31 -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
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
renovate[bot]
947cc1d47e update vue monorepo to v3.1.5 (#6863)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-19 09:41:14 -04:00
Nicola Krumschmidt
d3a960a0a0 Make extension loading more robust (#6845)
* Make extension loading more robust

* Remove unnecessary path joining
2021-07-16 13:57:18 -04:00
Nicola Krumschmidt
7898f3ee92 Fix extension loading on Windows (#6862)
Extension path and entrypoint are win32 paths, so they have to be
converted to posix last.
2021-07-16 13:56:51 -04:00
Nicola Krumschmidt
f96eeb2c83 v9.0.0-rc.85 2021-07-15 21:22:54 +02:00
Nicola Krumschmidt
a65c3d3df9 Fix production build on node versions <16 (#6836) 2021-07-15 15:19:04 -04:00
rijkvanzanten
f60deb9ca2 Remove prepublish build step, handled in CI 2021-07-15 14:23:48 -04:00
rijkvanzanten
ddab55d190 v9.0.0-rc.84 2021-07-15 14:10:01 -04:00
rijkvanzanten
2a60a0fd88 Revert "v9.0.0-rc.84"
This reverts commit a4945a64fd.
2021-07-15 10:29:18 -04:00
rijkvanzanten
a4945a64fd v9.0.0-rc.84 2021-07-14 17:26:35 -04:00
rijkvanzanten
628b4efc29 Revert "v9.0.0-rc.84"
This reverts commit 18e62086f7.
2021-07-14 17:25:52 -04:00
rijkvanzanten
18e62086f7 v9.0.0-rc.84 2021-07-14 16:57:41 -04:00
rijkvanzanten
f6807767e4 Handle monorepos in extension discovery 2021-07-14 16:53:28 -04:00
renovate[bot]
0c203b2722 update vue monorepo to v3.1.4 (#6612)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-13 10:11:32 -04:00
Nicola Krumschmidt
4986962523 Add readme files to shared and extension-sdk (#6719) 2021-07-12 14:59:28 +02:00
Nicola Krumschmidt
1989760ccc Allow extension-sdk to bundle API extensions as well (#6735)
This also converts the API extension templates to ESM syntax.
2021-07-11 10:01:18 +02:00
Nicola Krumschmidt
1436340163 Rename ensure-extensions-dirs.ts to align with function name (#6737) 2021-07-09 15:23:04 +00:00
Nicola Krumschmidt
b7a50c5012 Optimize extension-sdk CLI types (#6718)
* Add extension type guards

* Rename validate-extension-package util

* Optimize extension-sdk CLI types
2021-07-09 12:32:07 +02:00
Nicola Krumschmidt
ff393eab3b Add create command to extension-sdk CLI (#6590)
* Add create command to extension-sdk CLI

* Extract extension package.json key name to shared

* Check package.json before building extensions

* Add source field to package.json

* Pin extension-sdk verson in scaffolded package

* Change options color to magenta
2021-07-07 12:34:51 +00:00
renovate[bot]
18d6c0edbe update dependency typescript to v4.3.5 (#6592)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-30 20:02:38 -04:00
Nicola Krumschmidt
a99f23b009 Fix dev script not watching in shared and extension-sdk (#6589) 2021-06-30 19:53:46 -04:00
Nicola Krumschmidt
e764c7c7fb Fix extension loading on windows (#6579)
Javascript import syntax uses URLs instead of paths, so we have to
normalize the extension paths to forward slashes when importing them
inside the virtual entrypoints.

Fixes #6550
2021-06-30 10:03:21 -04:00
rijkvanzanten
04976eb13f v9.0.0-rc.83 2021-06-29 16:18:56 -04:00
rijkvanzanten
872dff6bb8 Fix cleaning order 2021-06-29 09:58:07 -04:00
rijkvanzanten
f46d7e4dd6 v9.0.0-rc.82 2021-06-28 19:32:21 -04:00
Nicola Krumschmidt
ed1127f3b1 Fix extension loading when PUBLIC_URL is absolute without origin (#6534)
* Fix extension loading when PUBLIC_URL is absolute without origin

* Minify extension bundler output

* Make extension loading in dev more robust

* Rename ensureExtensionsDirs to ensureExtensionDirs
2021-06-28 11:20:30 -04:00
rijkvanzanten
a469bb728f v9.0.0-rc.81 2021-06-26 22:09:40 -04:00