@ghentcdh/json-forms-vue 1.1.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/composables/useFormEvents.d.ts +34 -0
  2. package/composables/useHttpClient.d.ts +12 -0
  3. package/forms/Dispatch.vue.d.ts +10 -0
  4. package/forms/FormComponent.properties.d.ts +64 -0
  5. package/forms/FormComponent.vue.d.ts +95 -0
  6. package/forms/errorMessages.d.ts +10 -0
  7. package/forms/errorMode.d.ts +5 -0
  8. package/forms/modal/FormModal.properties.d.ts +75 -0
  9. package/forms/modal/FormModal.vue.d.ts +353 -0
  10. package/forms/modal/FormModalService.d.ts +42 -0
  11. package/forms/renderers/array/ArrayRenderer.vue.d.ts +7 -0
  12. package/forms/renderers/array/ArrayRenderers.d.ts +10 -0
  13. package/forms/renderers/controls/AutocompleteControlRenderer.vue.d.ts +7 -0
  14. package/forms/renderers/controls/BooleanControlRenderer.vue.d.ts +7 -0
  15. package/forms/renderers/controls/MarkdownControlRenderer.vue.d.ts +7 -0
  16. package/forms/renderers/controls/MultiSelectControlRenderer.vue.d.ts +7 -0
  17. package/forms/renderers/controls/NumberControlRenderer.vue.d.ts +7 -0
  18. package/forms/renderers/controls/SelectControlRenderer.vue.d.ts +7 -0
  19. package/forms/renderers/controls/StringControlRenderer.vue.d.ts +7 -0
  20. package/forms/renderers/controls/TextAreaControlRenderer.vue.d.ts +7 -0
  21. package/forms/renderers/controls/composables/useControlBinding.d.ts +36 -0
  22. package/forms/renderers/controls/composables/useFetchOption.d.ts +17 -0
  23. package/forms/renderers/controls/composables/useInput.d.ts +24 -0
  24. package/forms/renderers/controls/composables/useReadonlyBinding.d.ts +135 -0
  25. package/forms/renderers/controls/composables/useSelectBinding.d.ts +29 -0
  26. package/forms/renderers/controls/index.d.ts +10 -0
  27. package/forms/renderers/controls/readonly/ControlReadonlyRenderer.vue.d.ts +7 -0
  28. package/forms/renderers/controls/readonly/ReadonlyLabel.vue.d.ts +254 -0
  29. package/forms/renderers/controls/readonly/__tests__/formatDate.spec.d.ts +1 -0
  30. package/forms/renderers/controls/readonly/constants.d.ts +2 -0
  31. package/forms/renderers/controls/readonly/displayValue/BooleanValue.vue.d.ts +46 -0
  32. package/forms/renderers/controls/readonly/displayValue/DateValue.vue.d.ts +46 -0
  33. package/forms/renderers/controls/readonly/displayValue/LinkValue.vue.d.ts +46 -0
  34. package/forms/renderers/controls/readonly/displayValue/MarkdownValue.vue.d.ts +46 -0
  35. package/forms/renderers/controls/readonly/displayValue/NotSetValue.vue.d.ts +46 -0
  36. package/forms/renderers/controls/readonly/displayValue/NumberValue.vue.d.ts +46 -0
  37. package/forms/renderers/controls/readonly/displayValue/ObjectValue.vue.d.ts +46 -0
  38. package/forms/renderers/controls/readonly/displayValue/StringValue.vue.d.ts +46 -0
  39. package/forms/renderers/controls/readonly/displayValue/ViewDetailValue.vue.d.ts +46 -0
  40. package/forms/renderers/controls/readonly/displayValue/displayValue.properties.d.ts +23 -0
  41. package/forms/renderers/controls/readonly/displayValue/formatDate.d.ts +25 -0
  42. package/forms/renderers/controls/readonly/displayValue/index.d.ts +1 -0
  43. package/forms/renderers/controls/readonly/index.d.ts +10 -0
  44. package/forms/renderers/controls/readonly/useDisplayValue.d.ts +1 -0
  45. package/forms/renderers/controls/resource.d.ts +262 -0
  46. package/forms/renderers/index.d.ts +43 -0
  47. package/forms/renderers/layout/CollapseLayoutRenderer.vue.d.ts +7 -0
  48. package/forms/renderers/layout/LayoutRenderer.vue.d.ts +7 -0
  49. package/forms/renderers/layout/LayoutRenderers.d.ts +20 -0
  50. package/forms/renderers/layout/ReadOnlyLayoutRenderer.vue.d.ts +7 -0
  51. package/forms/renderers/layout/colspan.d.ts +1 -0
  52. package/forms/renderers/registry.d.ts +7 -0
  53. package/forms/scope.d.ts +4 -0
  54. package/forms/types.d.ts +36 -0
  55. package/http-client.d.ts +14 -0
  56. package/index.d.ts +15 -8
  57. package/index.js +1702 -1077
  58. package/package.json +10 -18
  59. package/repository/CrudRepository.d.ts +34 -0
  60. package/repository/index.d.ts +1 -0
  61. package/table/TableComponent.properties.d.ts +49 -0
  62. package/table/TableComponent.vue.d.ts +92 -0
  63. package/table/TableToolbar.vue.d.ts +36 -0
  64. package/table/cells/index.d.ts +10 -0
  65. package/table/filter/FilterRowInput.vue.d.ts +17 -0
  66. package/table/filter/TableFilter.vue.d.ts +16 -0
  67. package/table/index.d.ts +6 -0
  68. package/testers/__tests__/jsonforms-testers.spec.d.ts +1 -0
  69. package/testers/__tests__/tester.spec.d.ts +1 -0
  70. package/testers/jsonforms-testers.d.ts +27 -0
  71. package/testers/tester.d.ts +16 -0
  72. package/view/modal/ViewModal.properties.d.ts +82 -0
  73. package/view/modal/ViewModal.vue.d.ts +357 -0
  74. package/form.store.d.ts +0 -8
  75. package/index.mjs +0 -1892
  76. package/testing.mjs +0 -1
@@ -0,0 +1,46 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ direction: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ path: {
7
+ type: StringConstructor;
8
+ required: true;
9
+ };
10
+ displayValue: {
11
+ type: import('vue').PropType<unknown>;
12
+ required: true;
13
+ };
14
+ options: {
15
+ type: ObjectConstructor;
16
+ required: true;
17
+ };
18
+ value: {
19
+ type: import('vue').PropType<unknown>;
20
+ required: true;
21
+ };
22
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
+ direction: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ path: {
28
+ type: StringConstructor;
29
+ required: true;
30
+ };
31
+ displayValue: {
32
+ type: import('vue').PropType<unknown>;
33
+ required: true;
34
+ };
35
+ options: {
36
+ type: ObjectConstructor;
37
+ required: true;
38
+ };
39
+ value: {
40
+ type: import('vue').PropType<unknown>;
41
+ required: true;
42
+ };
43
+ }>> & Readonly<{}>, {
44
+ direction: string;
45
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
46
+ export default _default;
@@ -0,0 +1,46 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ direction: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ path: {
7
+ type: StringConstructor;
8
+ required: true;
9
+ };
10
+ displayValue: {
11
+ type: import('vue').PropType<unknown>;
12
+ required: true;
13
+ };
14
+ options: {
15
+ type: ObjectConstructor;
16
+ required: true;
17
+ };
18
+ value: {
19
+ type: import('vue').PropType<unknown>;
20
+ required: true;
21
+ };
22
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
+ direction: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ path: {
28
+ type: StringConstructor;
29
+ required: true;
30
+ };
31
+ displayValue: {
32
+ type: import('vue').PropType<unknown>;
33
+ required: true;
34
+ };
35
+ options: {
36
+ type: ObjectConstructor;
37
+ required: true;
38
+ };
39
+ value: {
40
+ type: import('vue').PropType<unknown>;
41
+ required: true;
42
+ };
43
+ }>> & Readonly<{}>, {
44
+ direction: string;
45
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLParagraphElement>;
46
+ export default _default;
@@ -0,0 +1,46 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ direction: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ path: {
7
+ type: StringConstructor;
8
+ required: true;
9
+ };
10
+ displayValue: {
11
+ type: import('vue').PropType<unknown>;
12
+ required: true;
13
+ };
14
+ options: {
15
+ type: ObjectConstructor;
16
+ required: true;
17
+ };
18
+ value: {
19
+ type: import('vue').PropType<unknown>;
20
+ required: true;
21
+ };
22
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
+ direction: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ path: {
28
+ type: StringConstructor;
29
+ required: true;
30
+ };
31
+ displayValue: {
32
+ type: import('vue').PropType<unknown>;
33
+ required: true;
34
+ };
35
+ options: {
36
+ type: ObjectConstructor;
37
+ required: true;
38
+ };
39
+ value: {
40
+ type: import('vue').PropType<unknown>;
41
+ required: true;
42
+ };
43
+ }>> & Readonly<{}>, {
44
+ direction: string;
45
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLAnchorElement>;
46
+ export default _default;
@@ -0,0 +1,46 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ direction: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ path: {
7
+ type: StringConstructor;
8
+ required: true;
9
+ };
10
+ displayValue: {
11
+ type: import('vue').PropType<unknown>;
12
+ required: true;
13
+ };
14
+ options: {
15
+ type: ObjectConstructor;
16
+ required: true;
17
+ };
18
+ value: {
19
+ type: import('vue').PropType<unknown>;
20
+ required: true;
21
+ };
22
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
+ direction: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ path: {
28
+ type: StringConstructor;
29
+ required: true;
30
+ };
31
+ displayValue: {
32
+ type: import('vue').PropType<unknown>;
33
+ required: true;
34
+ };
35
+ options: {
36
+ type: ObjectConstructor;
37
+ required: true;
38
+ };
39
+ value: {
40
+ type: import('vue').PropType<unknown>;
41
+ required: true;
42
+ };
43
+ }>> & Readonly<{}>, {
44
+ direction: string;
45
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
46
+ export default _default;
@@ -0,0 +1,46 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ direction: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ path: {
7
+ type: StringConstructor;
8
+ required: true;
9
+ };
10
+ displayValue: {
11
+ type: import('vue').PropType<unknown>;
12
+ required: true;
13
+ };
14
+ options: {
15
+ type: ObjectConstructor;
16
+ required: true;
17
+ };
18
+ value: {
19
+ type: import('vue').PropType<unknown>;
20
+ required: true;
21
+ };
22
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
+ direction: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ path: {
28
+ type: StringConstructor;
29
+ required: true;
30
+ };
31
+ displayValue: {
32
+ type: import('vue').PropType<unknown>;
33
+ required: true;
34
+ };
35
+ options: {
36
+ type: ObjectConstructor;
37
+ required: true;
38
+ };
39
+ value: {
40
+ type: import('vue').PropType<unknown>;
41
+ required: true;
42
+ };
43
+ }>> & Readonly<{}>, {
44
+ direction: string;
45
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLParagraphElement>;
46
+ export default _default;
@@ -0,0 +1,46 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ direction: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ path: {
7
+ type: StringConstructor;
8
+ required: true;
9
+ };
10
+ displayValue: {
11
+ type: import('vue').PropType<unknown>;
12
+ required: true;
13
+ };
14
+ options: {
15
+ type: ObjectConstructor;
16
+ required: true;
17
+ };
18
+ value: {
19
+ type: import('vue').PropType<unknown>;
20
+ required: true;
21
+ };
22
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
+ direction: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ path: {
28
+ type: StringConstructor;
29
+ required: true;
30
+ };
31
+ displayValue: {
32
+ type: import('vue').PropType<unknown>;
33
+ required: true;
34
+ };
35
+ options: {
36
+ type: ObjectConstructor;
37
+ required: true;
38
+ };
39
+ value: {
40
+ type: import('vue').PropType<unknown>;
41
+ required: true;
42
+ };
43
+ }>> & Readonly<{}>, {
44
+ direction: string;
45
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
46
+ export default _default;
@@ -0,0 +1,46 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ direction: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ path: {
7
+ type: StringConstructor;
8
+ required: true;
9
+ };
10
+ displayValue: {
11
+ type: import('vue').PropType<unknown>;
12
+ required: true;
13
+ };
14
+ options: {
15
+ type: ObjectConstructor;
16
+ required: true;
17
+ };
18
+ value: {
19
+ type: import('vue').PropType<unknown>;
20
+ required: true;
21
+ };
22
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
+ direction: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ path: {
28
+ type: StringConstructor;
29
+ required: true;
30
+ };
31
+ displayValue: {
32
+ type: import('vue').PropType<unknown>;
33
+ required: true;
34
+ };
35
+ options: {
36
+ type: ObjectConstructor;
37
+ required: true;
38
+ };
39
+ value: {
40
+ type: import('vue').PropType<unknown>;
41
+ required: true;
42
+ };
43
+ }>> & Readonly<{}>, {
44
+ direction: string;
45
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLPreElement>;
46
+ export default _default;
@@ -0,0 +1,46 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ direction: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ path: {
7
+ type: StringConstructor;
8
+ required: true;
9
+ };
10
+ displayValue: {
11
+ type: import('vue').PropType<unknown>;
12
+ required: true;
13
+ };
14
+ options: {
15
+ type: ObjectConstructor;
16
+ required: true;
17
+ };
18
+ value: {
19
+ type: import('vue').PropType<unknown>;
20
+ required: true;
21
+ };
22
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
+ direction: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ path: {
28
+ type: StringConstructor;
29
+ required: true;
30
+ };
31
+ displayValue: {
32
+ type: import('vue').PropType<unknown>;
33
+ required: true;
34
+ };
35
+ options: {
36
+ type: ObjectConstructor;
37
+ required: true;
38
+ };
39
+ value: {
40
+ type: import('vue').PropType<unknown>;
41
+ required: true;
42
+ };
43
+ }>> & Readonly<{}>, {
44
+ direction: string;
45
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
46
+ export default _default;
@@ -0,0 +1,46 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ direction: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ path: {
7
+ type: StringConstructor;
8
+ required: true;
9
+ };
10
+ displayValue: {
11
+ type: import('vue').PropType<unknown>;
12
+ required: true;
13
+ };
14
+ options: {
15
+ type: ObjectConstructor;
16
+ required: true;
17
+ };
18
+ value: {
19
+ type: import('vue').PropType<unknown>;
20
+ required: true;
21
+ };
22
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
+ direction: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ path: {
28
+ type: StringConstructor;
29
+ required: true;
30
+ };
31
+ displayValue: {
32
+ type: import('vue').PropType<unknown>;
33
+ required: true;
34
+ };
35
+ options: {
36
+ type: ObjectConstructor;
37
+ required: true;
38
+ };
39
+ value: {
40
+ type: import('vue').PropType<unknown>;
41
+ required: true;
42
+ };
43
+ }>> & Readonly<{}>, {
44
+ direction: string;
45
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
46
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import { PropType } from 'vue';
2
+ export declare const DisplayValueProperties: {
3
+ direction: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ path: {
8
+ type: StringConstructor;
9
+ required: true;
10
+ };
11
+ displayValue: {
12
+ type: PropType<unknown>;
13
+ required: true;
14
+ };
15
+ options: {
16
+ type: ObjectConstructor;
17
+ required: true;
18
+ };
19
+ value: {
20
+ type: PropType<unknown>;
21
+ required: true;
22
+ };
23
+ };
@@ -0,0 +1,25 @@
1
+ export type FormatDateOptions = {
2
+ /** Append the time after the date. @default true */
3
+ withTime?: boolean;
4
+ /** Append a relative suffix (e.g. "4 days ago"). @default false */
5
+ relative?: boolean;
6
+ /** BCP-47 locale. @default 'en-GB' */
7
+ locale?: string;
8
+ /**
9
+ * IANA time zone used for rendering. Stored values are UTC, so the default
10
+ * keeps the displayed value deterministic and aligned with the data.
11
+ * @default 'UTC'
12
+ */
13
+ timeZone?: string;
14
+ /** Reference point for the relative suffix. @default new Date() */
15
+ now?: Date;
16
+ };
17
+ /**
18
+ * Format an ISO date/date-time string (or Date) for readonly display.
19
+ * Returns `null` for empty or unparseable input so callers can show a
20
+ * placeholder.
21
+ */
22
+ export declare const formatDate: (value: unknown, { withTime, locale, timeZone, }?: FormatDateOptions) => string | null;
23
+ export declare const relativeDate: (value: unknown, { locale, now }?: FormatDateOptions) => string | undefined;
24
+ export declare const parseDate: (value: string | Date | any) => Date | null;
25
+ export declare const isDate: (value: string | Date | any) => boolean;
@@ -0,0 +1 @@
1
+ export { default as ViewDetailValue } from './ViewDetailValue.vue';
@@ -0,0 +1,10 @@
1
+ export declare const readonlyControlRenderers: {
2
+ tester: import('../../../../testers/jsonforms-testers').RankedTester;
3
+ renderer: import('vue').DefineComponent<{
4
+ uischema: import('@jsonforms/core').ControlElement;
5
+ schema: import('@jsonforms/core').JsonSchema;
6
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
7
+ uischema: import('@jsonforms/core').ControlElement;
8
+ schema: import('@jsonforms/core').JsonSchema;
9
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ }[];
@@ -0,0 +1 @@
1
+ export declare const useDisplayValue: (value: any, formValues: any, opts: any) => any;