@ghentcdh/json-forms-vue 2.0.0 → 3.0.1
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.
- package/index.d.ts +6 -19
- package/index.js +8 -2516
- package/package.json +8 -14
- package/composables/useFormEvents.d.ts +0 -34
- package/composables/useHttpClient.d.ts +0 -12
- package/forms/Dispatch.vue.d.ts +0 -10
- package/forms/FormComponent.properties.d.ts +0 -64
- package/forms/FormComponent.vue.d.ts +0 -95
- package/forms/errorMessages.d.ts +0 -10
- package/forms/errorMode.d.ts +0 -5
- package/forms/modal/FormModal.properties.d.ts +0 -75
- package/forms/modal/FormModal.vue.d.ts +0 -353
- package/forms/modal/FormModalService.d.ts +0 -42
- package/forms/renderers/array/ArrayRenderer.vue.d.ts +0 -7
- package/forms/renderers/array/ArrayRenderers.d.ts +0 -10
- package/forms/renderers/controls/AutocompleteControlRenderer.vue.d.ts +0 -7
- package/forms/renderers/controls/BooleanControlRenderer.vue.d.ts +0 -7
- package/forms/renderers/controls/MarkdownControlRenderer.vue.d.ts +0 -7
- package/forms/renderers/controls/MultiSelectControlRenderer.vue.d.ts +0 -7
- package/forms/renderers/controls/NumberControlRenderer.vue.d.ts +0 -7
- package/forms/renderers/controls/SelectControlRenderer.vue.d.ts +0 -7
- package/forms/renderers/controls/StringControlRenderer.vue.d.ts +0 -7
- package/forms/renderers/controls/TextAreaControlRenderer.vue.d.ts +0 -7
- package/forms/renderers/controls/composables/useControlBinding.d.ts +0 -36
- package/forms/renderers/controls/composables/useFetchOption.d.ts +0 -17
- package/forms/renderers/controls/composables/useInput.d.ts +0 -24
- package/forms/renderers/controls/composables/useReadonlyBinding.d.ts +0 -135
- package/forms/renderers/controls/composables/useSelectBinding.d.ts +0 -29
- package/forms/renderers/controls/index.d.ts +0 -10
- package/forms/renderers/controls/readonly/ControlReadonlyRenderer.vue.d.ts +0 -7
- package/forms/renderers/controls/readonly/ReadonlyLabel.vue.d.ts +0 -254
- package/forms/renderers/controls/readonly/__tests__/formatDate.spec.d.ts +0 -1
- package/forms/renderers/controls/readonly/constants.d.ts +0 -2
- package/forms/renderers/controls/readonly/displayValue/BooleanValue.vue.d.ts +0 -46
- package/forms/renderers/controls/readonly/displayValue/DateValue.vue.d.ts +0 -46
- package/forms/renderers/controls/readonly/displayValue/LinkValue.vue.d.ts +0 -46
- package/forms/renderers/controls/readonly/displayValue/MarkdownValue.vue.d.ts +0 -46
- package/forms/renderers/controls/readonly/displayValue/NotSetValue.vue.d.ts +0 -46
- package/forms/renderers/controls/readonly/displayValue/NumberValue.vue.d.ts +0 -46
- package/forms/renderers/controls/readonly/displayValue/ObjectValue.vue.d.ts +0 -46
- package/forms/renderers/controls/readonly/displayValue/StringValue.vue.d.ts +0 -46
- package/forms/renderers/controls/readonly/displayValue/ViewDetailValue.vue.d.ts +0 -46
- package/forms/renderers/controls/readonly/displayValue/displayValue.properties.d.ts +0 -23
- package/forms/renderers/controls/readonly/displayValue/formatDate.d.ts +0 -25
- package/forms/renderers/controls/readonly/displayValue/index.d.ts +0 -1
- package/forms/renderers/controls/readonly/index.d.ts +0 -10
- package/forms/renderers/controls/readonly/useDisplayValue.d.ts +0 -1
- package/forms/renderers/controls/resource.d.ts +0 -262
- package/forms/renderers/index.d.ts +0 -43
- package/forms/renderers/layout/CollapseLayoutRenderer.vue.d.ts +0 -7
- package/forms/renderers/layout/LayoutRenderer.vue.d.ts +0 -7
- package/forms/renderers/layout/LayoutRenderers.d.ts +0 -20
- package/forms/renderers/layout/ReadOnlyLayoutRenderer.vue.d.ts +0 -7
- package/forms/renderers/layout/colspan.d.ts +0 -1
- package/forms/renderers/registry.d.ts +0 -7
- package/forms/scope.d.ts +0 -4
- package/forms/types.d.ts +0 -36
- package/http-client.d.ts +0 -14
- package/repository/CrudRepository.d.ts +0 -34
- package/repository/index.d.ts +0 -1
- package/table/TableComponent.properties.d.ts +0 -49
- package/table/TableComponent.vue.d.ts +0 -92
- package/table/TableToolbar.vue.d.ts +0 -36
- package/table/cells/index.d.ts +0 -10
- package/table/filter/FilterRowInput.vue.d.ts +0 -17
- package/table/filter/TableFilter.vue.d.ts +0 -16
- package/table/index.d.ts +0 -6
- package/testers/__tests__/jsonforms-testers.spec.d.ts +0 -1
- package/testers/__tests__/tester.spec.d.ts +0 -1
- package/testers/jsonforms-testers.d.ts +0 -27
- package/testers/tester.d.ts +0 -16
- package/testing/index.d.ts +0 -0
- package/testing.js +0 -1
- package/view/modal/ViewModal.properties.d.ts +0 -82
- package/view/modal/ViewModal.vue.d.ts +0 -357
|
@@ -1,46 +0,0 @@
|
|
|
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;
|
|
@@ -1,46 +0,0 @@
|
|
|
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;
|
|
@@ -1,46 +0,0 @@
|
|
|
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;
|
|
@@ -1,46 +0,0 @@
|
|
|
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;
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ViewDetailValue } from './ViewDetailValue.vue';
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
}[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useDisplayValue: (value: any, formValues: any, opts: any) => any;
|
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { HttpClient } from '../../../http-client';
|
|
3
|
-
/** Supported HTTP methods for resource operations. */
|
|
4
|
-
export declare const MethodSchema: z.ZodEnum<{
|
|
5
|
-
delete: "delete";
|
|
6
|
-
get: "get";
|
|
7
|
-
post: "post";
|
|
8
|
-
put: "put";
|
|
9
|
-
patch: "patch";
|
|
10
|
-
GET: "GET";
|
|
11
|
-
POST: "POST";
|
|
12
|
-
DELETE: "DELETE";
|
|
13
|
-
PUT: "PUT";
|
|
14
|
-
PATCH: "PATCH";
|
|
15
|
-
}>;
|
|
16
|
-
export type Method = z.infer<typeof MethodSchema>;
|
|
17
|
-
export declare const OperationSchema: z.ZodObject<{
|
|
18
|
-
uri: z.ZodString;
|
|
19
|
-
method: z.ZodEnum<{
|
|
20
|
-
delete: "delete";
|
|
21
|
-
get: "get";
|
|
22
|
-
post: "post";
|
|
23
|
-
put: "put";
|
|
24
|
-
patch: "patch";
|
|
25
|
-
GET: "GET";
|
|
26
|
-
POST: "POST";
|
|
27
|
-
DELETE: "DELETE";
|
|
28
|
-
PUT: "PUT";
|
|
29
|
-
PATCH: "PATCH";
|
|
30
|
-
}>;
|
|
31
|
-
}, z.core.$strip>;
|
|
32
|
-
export type Operation = z.infer<typeof OperationSchema>;
|
|
33
|
-
export declare const OperationsSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
34
|
-
uri: z.ZodString;
|
|
35
|
-
method: z.ZodEnum<{
|
|
36
|
-
delete: "delete";
|
|
37
|
-
get: "get";
|
|
38
|
-
post: "post";
|
|
39
|
-
put: "put";
|
|
40
|
-
patch: "patch";
|
|
41
|
-
GET: "GET";
|
|
42
|
-
POST: "POST";
|
|
43
|
-
DELETE: "DELETE";
|
|
44
|
-
PUT: "PUT";
|
|
45
|
-
PATCH: "PATCH";
|
|
46
|
-
}>;
|
|
47
|
-
}, z.core.$strip>]>;
|
|
48
|
-
export declare const BooleanOperationSchema: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
49
|
-
uri: z.ZodString;
|
|
50
|
-
method: z.ZodEnum<{
|
|
51
|
-
delete: "delete";
|
|
52
|
-
get: "get";
|
|
53
|
-
post: "post";
|
|
54
|
-
put: "put";
|
|
55
|
-
patch: "patch";
|
|
56
|
-
GET: "GET";
|
|
57
|
-
POST: "POST";
|
|
58
|
-
DELETE: "DELETE";
|
|
59
|
-
PUT: "PUT";
|
|
60
|
-
PATCH: "PATCH";
|
|
61
|
-
}>;
|
|
62
|
-
}, z.core.$strip>]>>>;
|
|
63
|
-
/**
|
|
64
|
-
* Zod schema that validates and transforms a resource definition from the API.
|
|
65
|
-
*
|
|
66
|
-
* Accepts a resource descriptor with an `id`, base `uri`, CRUD `operations`,
|
|
67
|
-
* and optional `schema` (JSON Schema + UI schema). During parsing:
|
|
68
|
-
*
|
|
69
|
-
* - If `schema.data` is present but `schema.ui` is missing, a UI schema is
|
|
70
|
-
* auto-generated via {@link uiFromJsonSchema} using a GridLayout.
|
|
71
|
-
* - Each operation is normalized to `{ uri, method }` or `null` based on
|
|
72
|
-
* its value (`true` inherits the base uri, a string overrides the uri,
|
|
73
|
-
* an object is used as-is, `false`/`undefined` maps to `null`).
|
|
74
|
-
*/
|
|
75
|
-
export declare const ResourceSchema: z.ZodPipe<z.ZodObject<{
|
|
76
|
-
id: z.ZodString;
|
|
77
|
-
uri: z.ZodString;
|
|
78
|
-
operations: z.ZodObject<{
|
|
79
|
-
findAll: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
80
|
-
uri: z.ZodString;
|
|
81
|
-
method: z.ZodEnum<{
|
|
82
|
-
delete: "delete";
|
|
83
|
-
get: "get";
|
|
84
|
-
post: "post";
|
|
85
|
-
put: "put";
|
|
86
|
-
patch: "patch";
|
|
87
|
-
GET: "GET";
|
|
88
|
-
POST: "POST";
|
|
89
|
-
DELETE: "DELETE";
|
|
90
|
-
PUT: "PUT";
|
|
91
|
-
PATCH: "PATCH";
|
|
92
|
-
}>;
|
|
93
|
-
}, z.core.$strip>]>>>;
|
|
94
|
-
findOne: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
95
|
-
uri: z.ZodString;
|
|
96
|
-
method: z.ZodEnum<{
|
|
97
|
-
delete: "delete";
|
|
98
|
-
get: "get";
|
|
99
|
-
post: "post";
|
|
100
|
-
put: "put";
|
|
101
|
-
patch: "patch";
|
|
102
|
-
GET: "GET";
|
|
103
|
-
POST: "POST";
|
|
104
|
-
DELETE: "DELETE";
|
|
105
|
-
PUT: "PUT";
|
|
106
|
-
PATCH: "PATCH";
|
|
107
|
-
}>;
|
|
108
|
-
}, z.core.$strip>]>>>;
|
|
109
|
-
create: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
110
|
-
uri: z.ZodString;
|
|
111
|
-
method: z.ZodEnum<{
|
|
112
|
-
delete: "delete";
|
|
113
|
-
get: "get";
|
|
114
|
-
post: "post";
|
|
115
|
-
put: "put";
|
|
116
|
-
patch: "patch";
|
|
117
|
-
GET: "GET";
|
|
118
|
-
POST: "POST";
|
|
119
|
-
DELETE: "DELETE";
|
|
120
|
-
PUT: "PUT";
|
|
121
|
-
PATCH: "PATCH";
|
|
122
|
-
}>;
|
|
123
|
-
}, z.core.$strip>]>>>;
|
|
124
|
-
update: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
125
|
-
uri: z.ZodString;
|
|
126
|
-
method: z.ZodEnum<{
|
|
127
|
-
delete: "delete";
|
|
128
|
-
get: "get";
|
|
129
|
-
post: "post";
|
|
130
|
-
put: "put";
|
|
131
|
-
patch: "patch";
|
|
132
|
-
GET: "GET";
|
|
133
|
-
POST: "POST";
|
|
134
|
-
DELETE: "DELETE";
|
|
135
|
-
PUT: "PUT";
|
|
136
|
-
PATCH: "PATCH";
|
|
137
|
-
}>;
|
|
138
|
-
}, z.core.$strip>]>>>;
|
|
139
|
-
delete: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
140
|
-
uri: z.ZodString;
|
|
141
|
-
method: z.ZodEnum<{
|
|
142
|
-
delete: "delete";
|
|
143
|
-
get: "get";
|
|
144
|
-
post: "post";
|
|
145
|
-
put: "put";
|
|
146
|
-
patch: "patch";
|
|
147
|
-
GET: "GET";
|
|
148
|
-
POST: "POST";
|
|
149
|
-
DELETE: "DELETE";
|
|
150
|
-
PUT: "PUT";
|
|
151
|
-
PATCH: "PATCH";
|
|
152
|
-
}>;
|
|
153
|
-
}, z.core.$strip>]>>>;
|
|
154
|
-
lookup: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
155
|
-
uri: z.ZodString;
|
|
156
|
-
method: z.ZodEnum<{
|
|
157
|
-
delete: "delete";
|
|
158
|
-
get: "get";
|
|
159
|
-
post: "post";
|
|
160
|
-
put: "put";
|
|
161
|
-
patch: "patch";
|
|
162
|
-
GET: "GET";
|
|
163
|
-
POST: "POST";
|
|
164
|
-
DELETE: "DELETE";
|
|
165
|
-
PUT: "PUT";
|
|
166
|
-
PATCH: "PATCH";
|
|
167
|
-
}>;
|
|
168
|
-
}, z.core.$strip>]>>;
|
|
169
|
-
}, z.core.$strip>;
|
|
170
|
-
schema: z.ZodOptional<z.ZodObject<{
|
|
171
|
-
ui: z.ZodOptional<z.ZodAny>;
|
|
172
|
-
data: z.ZodAny;
|
|
173
|
-
}, z.core.$strip>>;
|
|
174
|
-
schemas: z.ZodOptional<z.ZodObject<{
|
|
175
|
-
form: z.ZodOptional<z.ZodObject<{
|
|
176
|
-
ui: z.ZodOptional<z.ZodAny>;
|
|
177
|
-
data: z.ZodAny;
|
|
178
|
-
}, z.core.$strip>>;
|
|
179
|
-
}, z.core.$strip>>;
|
|
180
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
181
|
-
schema: {
|
|
182
|
-
data: any;
|
|
183
|
-
ui?: any;
|
|
184
|
-
};
|
|
185
|
-
operations: Record<"delete" | "create" | "update" | "findAll" | "findOne" | "lookup", {
|
|
186
|
-
uri: string;
|
|
187
|
-
method: "delete" | "get" | "post" | "put" | "patch" | "GET" | "POST" | "DELETE" | "PUT" | "PATCH";
|
|
188
|
-
} | null>;
|
|
189
|
-
id: string;
|
|
190
|
-
uri: string;
|
|
191
|
-
schemas?: {
|
|
192
|
-
form?: {
|
|
193
|
-
data: any;
|
|
194
|
-
ui?: any;
|
|
195
|
-
} | undefined;
|
|
196
|
-
} | undefined;
|
|
197
|
-
}, {
|
|
198
|
-
id: string;
|
|
199
|
-
uri: string;
|
|
200
|
-
operations: {
|
|
201
|
-
findAll: boolean | {
|
|
202
|
-
uri: string;
|
|
203
|
-
method: "delete" | "get" | "post" | "put" | "patch" | "GET" | "POST" | "DELETE" | "PUT" | "PATCH";
|
|
204
|
-
};
|
|
205
|
-
findOne: boolean | {
|
|
206
|
-
uri: string;
|
|
207
|
-
method: "delete" | "get" | "post" | "put" | "patch" | "GET" | "POST" | "DELETE" | "PUT" | "PATCH";
|
|
208
|
-
};
|
|
209
|
-
create: boolean | {
|
|
210
|
-
uri: string;
|
|
211
|
-
method: "delete" | "get" | "post" | "put" | "patch" | "GET" | "POST" | "DELETE" | "PUT" | "PATCH";
|
|
212
|
-
};
|
|
213
|
-
update: boolean | {
|
|
214
|
-
uri: string;
|
|
215
|
-
method: "delete" | "get" | "post" | "put" | "patch" | "GET" | "POST" | "DELETE" | "PUT" | "PATCH";
|
|
216
|
-
};
|
|
217
|
-
delete: boolean | {
|
|
218
|
-
uri: string;
|
|
219
|
-
method: "delete" | "get" | "post" | "put" | "patch" | "GET" | "POST" | "DELETE" | "PUT" | "PATCH";
|
|
220
|
-
};
|
|
221
|
-
lookup?: string | {
|
|
222
|
-
uri: string;
|
|
223
|
-
method: "delete" | "get" | "post" | "put" | "patch" | "GET" | "POST" | "DELETE" | "PUT" | "PATCH";
|
|
224
|
-
} | undefined;
|
|
225
|
-
};
|
|
226
|
-
schema?: {
|
|
227
|
-
data: any;
|
|
228
|
-
ui?: any;
|
|
229
|
-
} | undefined;
|
|
230
|
-
schemas?: {
|
|
231
|
-
form?: {
|
|
232
|
-
data: any;
|
|
233
|
-
ui?: any;
|
|
234
|
-
} | undefined;
|
|
235
|
-
} | undefined;
|
|
236
|
-
}>>;
|
|
237
|
-
/**
|
|
238
|
-
* Fetches and validates a resource definition from the given URI.
|
|
239
|
-
*
|
|
240
|
-
* @param resourceUri - Endpoint that returns the resource descriptor JSON.
|
|
241
|
-
* @param skipAuth - When `true`, uses plain axios instead of the authenticated API client.
|
|
242
|
-
* @returns Parsed and normalized resource with resolved operations and schemas.
|
|
243
|
-
* @throws If the response does not match {@link ResourceSchema}.
|
|
244
|
-
*/
|
|
245
|
-
export declare const getResourceSchema: (resourceUri: string, http: HttpClient) => Promise<{
|
|
246
|
-
schema: {
|
|
247
|
-
data: any;
|
|
248
|
-
ui?: any;
|
|
249
|
-
};
|
|
250
|
-
operations: Record<"delete" | "create" | "update" | "findAll" | "findOne" | "lookup", {
|
|
251
|
-
uri: string;
|
|
252
|
-
method: "delete" | "get" | "post" | "put" | "patch" | "GET" | "POST" | "DELETE" | "PUT" | "PATCH";
|
|
253
|
-
} | null>;
|
|
254
|
-
id: string;
|
|
255
|
-
uri: string;
|
|
256
|
-
schemas?: {
|
|
257
|
-
form?: {
|
|
258
|
-
data: any;
|
|
259
|
-
ui?: any;
|
|
260
|
-
} | undefined;
|
|
261
|
-
} | undefined;
|
|
262
|
-
}>;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export * from './array/ArrayRenderers';
|
|
2
|
-
export * from './controls';
|
|
3
|
-
export * from './controls/composables/useControlBinding';
|
|
4
|
-
export * from './controls/readonly';
|
|
5
|
-
export * from './layout/LayoutRenderers';
|
|
6
|
-
export declare const customRenderers: ({
|
|
7
|
-
tester: import('../../testers/jsonforms-testers').RankedTester;
|
|
8
|
-
renderer: import('vue').DefineComponent<{
|
|
9
|
-
uischema: import('@jsonforms/core').UISchemaElement;
|
|
10
|
-
schema: import('@jsonforms/core').JsonSchema;
|
|
11
|
-
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
12
|
-
uischema: import('@jsonforms/core').UISchemaElement;
|
|
13
|
-
schema: import('@jsonforms/core').JsonSchema;
|
|
14
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
-
} | {
|
|
16
|
-
tester: import('../../testers/jsonforms-testers').RankedTester;
|
|
17
|
-
renderer: import('vue').DefineComponent<{
|
|
18
|
-
uischema: import('@jsonforms/core').ControlElement;
|
|
19
|
-
schema: import('@jsonforms/core').JsonSchema;
|
|
20
|
-
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
21
|
-
uischema: import('@jsonforms/core').ControlElement;
|
|
22
|
-
schema: import('@jsonforms/core').JsonSchema;
|
|
23
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
24
|
-
})[];
|
|
25
|
-
export declare const readonlyRenderers: ({
|
|
26
|
-
tester: import('../../testers/jsonforms-testers').RankedTester;
|
|
27
|
-
renderer: import('vue').DefineComponent<{
|
|
28
|
-
uischema: import('@jsonforms/core').UISchemaElement;
|
|
29
|
-
schema: import('@jsonforms/core').JsonSchema;
|
|
30
|
-
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
31
|
-
uischema: import('@jsonforms/core').UISchemaElement;
|
|
32
|
-
schema: import('@jsonforms/core').JsonSchema;
|
|
33
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
34
|
-
} | {
|
|
35
|
-
tester: import('../../testers/jsonforms-testers').RankedTester;
|
|
36
|
-
renderer: import('vue').DefineComponent<{
|
|
37
|
-
uischema: import('@jsonforms/core').ControlElement;
|
|
38
|
-
schema: import('@jsonforms/core').JsonSchema;
|
|
39
|
-
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
40
|
-
uischema: import('@jsonforms/core').ControlElement;
|
|
41
|
-
schema: import('@jsonforms/core').JsonSchema;
|
|
42
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
43
|
-
})[];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { JsonSchema, UISchemaElement } from '@jsonforms/core';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
uischema: UISchemaElement;
|
|
4
|
-
schema: JsonSchema;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { JsonSchema, UISchemaElement } from '@jsonforms/core';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
uischema: UISchemaElement;
|
|
4
|
-
schema: JsonSchema;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
-
export default _default;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare const layoutRenderers: {
|
|
2
|
-
tester: import('../../../testers/jsonforms-testers').RankedTester;
|
|
3
|
-
renderer: import('vue').DefineComponent<{
|
|
4
|
-
uischema: import('@jsonforms/core').UISchemaElement;
|
|
5
|
-
schema: import('@jsonforms/core').JsonSchema;
|
|
6
|
-
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
7
|
-
uischema: import('@jsonforms/core').UISchemaElement;
|
|
8
|
-
schema: import('@jsonforms/core').JsonSchema;
|
|
9
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
}[];
|
|
11
|
-
export declare const readonlyLayoutRenderers: {
|
|
12
|
-
tester: import('../../../testers/jsonforms-testers').RankedTester;
|
|
13
|
-
renderer: import('vue').DefineComponent<{
|
|
14
|
-
uischema: import('@jsonforms/core').UISchemaElement;
|
|
15
|
-
schema: import('@jsonforms/core').JsonSchema;
|
|
16
|
-
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
17
|
-
uischema: import('@jsonforms/core').UISchemaElement;
|
|
18
|
-
schema: import('@jsonforms/core').JsonSchema;
|
|
19
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
20
|
-
}[];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { JsonSchema, UISchemaElement } from '@jsonforms/core';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
uischema: UISchemaElement;
|
|
4
|
-
schema: JsonSchema;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const COLSPAN: Record<number, string>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { JsonSchema, UISchemaElement } from '@jsonforms/core';
|
|
2
|
-
import { Component } from 'vue';
|
|
3
|
-
export interface RendererEntry {
|
|
4
|
-
tester: (uischema: UISchemaElement, schema: JsonSchema, context?: unknown) => number;
|
|
5
|
-
renderer: Component;
|
|
6
|
-
}
|
|
7
|
-
export declare function findRenderer(registry: RendererEntry[], uischema: UISchemaElement, schema: JsonSchema): Component | null;
|
package/forms/scope.d.ts
DELETED
package/forms/types.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export type { JsonSchema } from '@jsonforms/core';
|
|
2
|
-
export interface UiElementOptions {
|
|
3
|
-
format?: string;
|
|
4
|
-
colspan?: number;
|
|
5
|
-
styles?: {
|
|
6
|
-
width?: string;
|
|
7
|
-
control?: {
|
|
8
|
-
wrapper?: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
uri?: string;
|
|
12
|
-
valueKey?: string;
|
|
13
|
-
labelKey?: string;
|
|
14
|
-
enableCreate?: boolean;
|
|
15
|
-
options?: Array<{
|
|
16
|
-
label: string;
|
|
17
|
-
value: string;
|
|
18
|
-
}>;
|
|
19
|
-
placeholder?: string;
|
|
20
|
-
label?: string;
|
|
21
|
-
hideLabel?: boolean;
|
|
22
|
-
readonly?: boolean;
|
|
23
|
-
visible?: boolean;
|
|
24
|
-
layout?: 'row' | 'column';
|
|
25
|
-
hideActions?: boolean;
|
|
26
|
-
dataField?: string;
|
|
27
|
-
skipAuth?: boolean;
|
|
28
|
-
type?: string;
|
|
29
|
-
}
|
|
30
|
-
export interface UiElement {
|
|
31
|
-
type: 'Control' | 'GridLayout' | 'VerticalLayout' | 'HorizontalLayout' | 'CollapseLayout';
|
|
32
|
-
scope?: string;
|
|
33
|
-
elements?: UiElement[];
|
|
34
|
-
options?: UiElementOptions;
|
|
35
|
-
label?: string;
|
|
36
|
-
}
|