@ghentcdh/json-forms-vue 1.1.1 → 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.
- package/composables/useFormEvents.d.ts +4 -2
- package/composables/useHttpClient.d.ts +12 -0
- package/forms/FormComponent.properties.d.ts +16 -0
- package/forms/FormComponent.vue.d.ts +28 -1
- package/forms/errorMode.d.ts +1 -0
- package/forms/modal/FormModal.properties.d.ts +11 -0
- package/forms/modal/FormModal.vue.d.ts +83 -5
- package/forms/modal/FormModalService.d.ts +29 -1
- package/forms/renderers/array/ArrayRenderers.d.ts +1 -1
- package/forms/renderers/controls/{composable/UseControlBinding.d.ts → composables/useControlBinding.d.ts} +8 -1
- package/forms/renderers/controls/{composable/UseFetchOption.d.ts → composables/useFetchOption.d.ts} +4 -3
- package/forms/renderers/controls/composables/useReadonlyBinding.d.ts +135 -0
- package/forms/renderers/controls/{composable/UseSelectBinding.d.ts → composables/useSelectBinding.d.ts} +6 -0
- package/forms/renderers/controls/index.d.ts +2 -2
- package/forms/renderers/controls/readonly/ControlReadonlyRenderer.vue.d.ts +7 -0
- package/forms/renderers/controls/readonly/ReadonlyLabel.vue.d.ts +254 -0
- package/forms/renderers/controls/readonly/__tests__/formatDate.spec.d.ts +1 -0
- package/forms/renderers/controls/readonly/constants.d.ts +2 -0
- package/forms/renderers/controls/readonly/displayValue/BooleanValue.vue.d.ts +46 -0
- package/forms/renderers/controls/readonly/displayValue/DateValue.vue.d.ts +46 -0
- package/forms/renderers/controls/readonly/displayValue/LinkValue.vue.d.ts +46 -0
- package/forms/renderers/controls/readonly/displayValue/MarkdownValue.vue.d.ts +46 -0
- package/forms/renderers/controls/readonly/displayValue/NotSetValue.vue.d.ts +46 -0
- package/forms/renderers/controls/readonly/displayValue/NumberValue.vue.d.ts +46 -0
- package/forms/renderers/controls/readonly/displayValue/ObjectValue.vue.d.ts +46 -0
- package/forms/renderers/controls/readonly/displayValue/StringValue.vue.d.ts +46 -0
- package/forms/renderers/controls/readonly/displayValue/ViewDetailValue.vue.d.ts +46 -0
- package/forms/renderers/controls/readonly/displayValue/displayValue.properties.d.ts +23 -0
- package/forms/renderers/controls/readonly/displayValue/formatDate.d.ts +25 -0
- package/forms/renderers/controls/readonly/displayValue/index.d.ts +1 -0
- package/forms/renderers/{layout/LayoutRenders.d.ts → controls/readonly/index.d.ts} +4 -4
- package/forms/renderers/controls/readonly/useDisplayValue.d.ts +1 -0
- package/forms/renderers/controls/{composable/resource.d.ts → resource.d.ts} +88 -13
- package/forms/renderers/index.d.ts +42 -2
- package/forms/{renderes.d.ts → renderers/layout/LayoutRenderers.d.ts} +9 -8
- package/forms/renderers/layout/ReadOnlyLayoutRenderer.vue.d.ts +7 -0
- package/http-client.d.ts +14 -0
- package/index.d.ts +15 -8
- package/index.js +1702 -1077
- package/package.json +14 -22
- package/repository/{crud.repository.d.ts → CrudRepository.d.ts} +9 -7
- package/repository/index.d.ts +1 -1
- package/table/TableComponent.properties.d.ts +49 -0
- package/table/TableComponent.vue.d.ts +92 -0
- package/table/TableToolbar.vue.d.ts +36 -0
- package/table/cells/index.d.ts +10 -0
- package/table/filter/{table-filter.vue.d.ts → FilterRowInput.vue.d.ts} +11 -7
- package/table/filter/TableFilter.vue.d.ts +16 -0
- package/table/index.d.ts +6 -2
- package/testers/__tests__/jsonforms-testers.spec.d.ts +1 -0
- package/testers/__tests__/tester.spec.d.ts +1 -0
- package/testers/jsonforms-testers.d.ts +27 -0
- package/testers/tester.d.ts +16 -0
- package/view/modal/ViewModal.properties.d.ts +82 -0
- package/{forms/FormWithActions.vue.d.ts → view/modal/ViewModal.vue.d.ts} +150 -51
- package/form.store.d.ts +0 -8
- package/forms/FormWithActions.properties.d.ts +0 -52
- package/forms/FormWithTable.properties.d.ts +0 -65
- package/forms/FormWithTable.vue.d.ts +0 -90
- package/renderes/tester.d.ts +0 -11
- package/table/table.component.properties.d.ts +0 -34
- package/table/table.component.vue.d.ts +0 -60
- package/table/table.store.d.ts +0 -29
- /package/forms/renderers/controls/{composable/UseInput.d.ts → composables/useInput.d.ts} +0 -0
- /package/forms/{renderer-registry.d.ts → renderers/registry.d.ts} +0 -0
|
@@ -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';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
tester:
|
|
1
|
+
export declare const readonlyControlRenderers: {
|
|
2
|
+
tester: import('../../../../testers/jsonforms-testers').RankedTester;
|
|
3
3
|
renderer: import('vue').DefineComponent<{
|
|
4
|
-
uischema: import('@jsonforms/core').
|
|
4
|
+
uischema: import('@jsonforms/core').ControlElement;
|
|
5
5
|
schema: import('@jsonforms/core').JsonSchema;
|
|
6
6
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
7
|
-
uischema: import('@jsonforms/core').
|
|
7
|
+
uischema: import('@jsonforms/core').ControlElement;
|
|
8
8
|
schema: import('@jsonforms/core').JsonSchema;
|
|
9
9
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
}[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDisplayValue: (value: any, formValues: any, opts: any) => any;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { HttpClient } from '../../../http-client';
|
|
2
3
|
/** Supported HTTP methods for resource operations. */
|
|
3
4
|
export declare const MethodSchema: z.ZodEnum<{
|
|
4
5
|
delete: "delete";
|
|
@@ -6,6 +7,11 @@ export declare const MethodSchema: z.ZodEnum<{
|
|
|
6
7
|
post: "post";
|
|
7
8
|
put: "put";
|
|
8
9
|
patch: "patch";
|
|
10
|
+
GET: "GET";
|
|
11
|
+
POST: "POST";
|
|
12
|
+
DELETE: "DELETE";
|
|
13
|
+
PUT: "PUT";
|
|
14
|
+
PATCH: "PATCH";
|
|
9
15
|
}>;
|
|
10
16
|
export type Method = z.infer<typeof MethodSchema>;
|
|
11
17
|
export declare const OperationSchema: z.ZodObject<{
|
|
@@ -16,6 +22,11 @@ export declare const OperationSchema: z.ZodObject<{
|
|
|
16
22
|
post: "post";
|
|
17
23
|
put: "put";
|
|
18
24
|
patch: "patch";
|
|
25
|
+
GET: "GET";
|
|
26
|
+
POST: "POST";
|
|
27
|
+
DELETE: "DELETE";
|
|
28
|
+
PUT: "PUT";
|
|
29
|
+
PATCH: "PATCH";
|
|
19
30
|
}>;
|
|
20
31
|
}, z.core.$strip>;
|
|
21
32
|
export type Operation = z.infer<typeof OperationSchema>;
|
|
@@ -27,6 +38,11 @@ export declare const OperationsSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
27
38
|
post: "post";
|
|
28
39
|
put: "put";
|
|
29
40
|
patch: "patch";
|
|
41
|
+
GET: "GET";
|
|
42
|
+
POST: "POST";
|
|
43
|
+
DELETE: "DELETE";
|
|
44
|
+
PUT: "PUT";
|
|
45
|
+
PATCH: "PATCH";
|
|
30
46
|
}>;
|
|
31
47
|
}, z.core.$strip>]>;
|
|
32
48
|
export declare const BooleanOperationSchema: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
@@ -37,6 +53,11 @@ export declare const BooleanOperationSchema: z.ZodDefault<z.ZodOptional<z.ZodUni
|
|
|
37
53
|
post: "post";
|
|
38
54
|
put: "put";
|
|
39
55
|
patch: "patch";
|
|
56
|
+
GET: "GET";
|
|
57
|
+
POST: "POST";
|
|
58
|
+
DELETE: "DELETE";
|
|
59
|
+
PUT: "PUT";
|
|
60
|
+
PATCH: "PATCH";
|
|
40
61
|
}>;
|
|
41
62
|
}, z.core.$strip>]>>>;
|
|
42
63
|
/**
|
|
@@ -63,6 +84,11 @@ export declare const ResourceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
63
84
|
post: "post";
|
|
64
85
|
put: "put";
|
|
65
86
|
patch: "patch";
|
|
87
|
+
GET: "GET";
|
|
88
|
+
POST: "POST";
|
|
89
|
+
DELETE: "DELETE";
|
|
90
|
+
PUT: "PUT";
|
|
91
|
+
PATCH: "PATCH";
|
|
66
92
|
}>;
|
|
67
93
|
}, z.core.$strip>]>>>;
|
|
68
94
|
findOne: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
@@ -73,6 +99,11 @@ export declare const ResourceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
73
99
|
post: "post";
|
|
74
100
|
put: "put";
|
|
75
101
|
patch: "patch";
|
|
102
|
+
GET: "GET";
|
|
103
|
+
POST: "POST";
|
|
104
|
+
DELETE: "DELETE";
|
|
105
|
+
PUT: "PUT";
|
|
106
|
+
PATCH: "PATCH";
|
|
76
107
|
}>;
|
|
77
108
|
}, z.core.$strip>]>>>;
|
|
78
109
|
create: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
@@ -83,6 +114,11 @@ export declare const ResourceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
83
114
|
post: "post";
|
|
84
115
|
put: "put";
|
|
85
116
|
patch: "patch";
|
|
117
|
+
GET: "GET";
|
|
118
|
+
POST: "POST";
|
|
119
|
+
DELETE: "DELETE";
|
|
120
|
+
PUT: "PUT";
|
|
121
|
+
PATCH: "PATCH";
|
|
86
122
|
}>;
|
|
87
123
|
}, z.core.$strip>]>>>;
|
|
88
124
|
update: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
@@ -93,6 +129,11 @@ export declare const ResourceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
93
129
|
post: "post";
|
|
94
130
|
put: "put";
|
|
95
131
|
patch: "patch";
|
|
132
|
+
GET: "GET";
|
|
133
|
+
POST: "POST";
|
|
134
|
+
DELETE: "DELETE";
|
|
135
|
+
PUT: "PUT";
|
|
136
|
+
PATCH: "PATCH";
|
|
96
137
|
}>;
|
|
97
138
|
}, z.core.$strip>]>>>;
|
|
98
139
|
delete: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
@@ -103,6 +144,11 @@ export declare const ResourceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
103
144
|
post: "post";
|
|
104
145
|
put: "put";
|
|
105
146
|
patch: "patch";
|
|
147
|
+
GET: "GET";
|
|
148
|
+
POST: "POST";
|
|
149
|
+
DELETE: "DELETE";
|
|
150
|
+
PUT: "PUT";
|
|
151
|
+
PATCH: "PATCH";
|
|
106
152
|
}>;
|
|
107
153
|
}, z.core.$strip>]>>>;
|
|
108
154
|
lookup: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
@@ -113,6 +159,11 @@ export declare const ResourceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
113
159
|
post: "post";
|
|
114
160
|
put: "put";
|
|
115
161
|
patch: "patch";
|
|
162
|
+
GET: "GET";
|
|
163
|
+
POST: "POST";
|
|
164
|
+
DELETE: "DELETE";
|
|
165
|
+
PUT: "PUT";
|
|
166
|
+
PATCH: "PATCH";
|
|
116
167
|
}>;
|
|
117
168
|
}, z.core.$strip>]>>;
|
|
118
169
|
}, z.core.$strip>;
|
|
@@ -120,50 +171,68 @@ export declare const ResourceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
120
171
|
ui: z.ZodOptional<z.ZodAny>;
|
|
121
172
|
data: z.ZodAny;
|
|
122
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>>;
|
|
123
180
|
}, z.core.$strip>, z.ZodTransform<{
|
|
124
181
|
schema: {
|
|
125
182
|
data: any;
|
|
126
183
|
ui?: any;
|
|
127
|
-
}
|
|
128
|
-
operations: Record<"
|
|
184
|
+
};
|
|
185
|
+
operations: Record<"delete" | "create" | "update" | "findAll" | "findOne" | "lookup", {
|
|
129
186
|
uri: string;
|
|
130
|
-
method: "delete" | "get" | "post" | "put" | "patch";
|
|
187
|
+
method: "delete" | "get" | "post" | "put" | "patch" | "GET" | "POST" | "DELETE" | "PUT" | "PATCH";
|
|
131
188
|
} | null>;
|
|
132
189
|
id: string;
|
|
133
190
|
uri: string;
|
|
191
|
+
schemas?: {
|
|
192
|
+
form?: {
|
|
193
|
+
data: any;
|
|
194
|
+
ui?: any;
|
|
195
|
+
} | undefined;
|
|
196
|
+
} | undefined;
|
|
134
197
|
}, {
|
|
135
198
|
id: string;
|
|
136
199
|
uri: string;
|
|
137
200
|
operations: {
|
|
138
201
|
findAll: boolean | {
|
|
139
202
|
uri: string;
|
|
140
|
-
method: "delete" | "get" | "post" | "put" | "patch";
|
|
203
|
+
method: "delete" | "get" | "post" | "put" | "patch" | "GET" | "POST" | "DELETE" | "PUT" | "PATCH";
|
|
141
204
|
};
|
|
142
205
|
findOne: boolean | {
|
|
143
206
|
uri: string;
|
|
144
|
-
method: "delete" | "get" | "post" | "put" | "patch";
|
|
207
|
+
method: "delete" | "get" | "post" | "put" | "patch" | "GET" | "POST" | "DELETE" | "PUT" | "PATCH";
|
|
145
208
|
};
|
|
146
209
|
create: boolean | {
|
|
147
210
|
uri: string;
|
|
148
|
-
method: "delete" | "get" | "post" | "put" | "patch";
|
|
211
|
+
method: "delete" | "get" | "post" | "put" | "patch" | "GET" | "POST" | "DELETE" | "PUT" | "PATCH";
|
|
149
212
|
};
|
|
150
213
|
update: boolean | {
|
|
151
214
|
uri: string;
|
|
152
|
-
method: "delete" | "get" | "post" | "put" | "patch";
|
|
215
|
+
method: "delete" | "get" | "post" | "put" | "patch" | "GET" | "POST" | "DELETE" | "PUT" | "PATCH";
|
|
153
216
|
};
|
|
154
217
|
delete: boolean | {
|
|
155
218
|
uri: string;
|
|
156
|
-
method: "delete" | "get" | "post" | "put" | "patch";
|
|
219
|
+
method: "delete" | "get" | "post" | "put" | "patch" | "GET" | "POST" | "DELETE" | "PUT" | "PATCH";
|
|
157
220
|
};
|
|
158
221
|
lookup?: string | {
|
|
159
222
|
uri: string;
|
|
160
|
-
method: "delete" | "get" | "post" | "put" | "patch";
|
|
223
|
+
method: "delete" | "get" | "post" | "put" | "patch" | "GET" | "POST" | "DELETE" | "PUT" | "PATCH";
|
|
161
224
|
} | undefined;
|
|
162
225
|
};
|
|
163
226
|
schema?: {
|
|
164
227
|
data: any;
|
|
165
228
|
ui?: any;
|
|
166
229
|
} | undefined;
|
|
230
|
+
schemas?: {
|
|
231
|
+
form?: {
|
|
232
|
+
data: any;
|
|
233
|
+
ui?: any;
|
|
234
|
+
} | undefined;
|
|
235
|
+
} | undefined;
|
|
167
236
|
}>>;
|
|
168
237
|
/**
|
|
169
238
|
* Fetches and validates a resource definition from the given URI.
|
|
@@ -173,15 +242,21 @@ export declare const ResourceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
173
242
|
* @returns Parsed and normalized resource with resolved operations and schemas.
|
|
174
243
|
* @throws If the response does not match {@link ResourceSchema}.
|
|
175
244
|
*/
|
|
176
|
-
export declare const getResourceSchema: (resourceUri: string,
|
|
245
|
+
export declare const getResourceSchema: (resourceUri: string, http: HttpClient) => Promise<{
|
|
177
246
|
schema: {
|
|
178
247
|
data: any;
|
|
179
248
|
ui?: any;
|
|
180
|
-
}
|
|
181
|
-
operations: Record<"
|
|
249
|
+
};
|
|
250
|
+
operations: Record<"delete" | "create" | "update" | "findAll" | "findOne" | "lookup", {
|
|
182
251
|
uri: string;
|
|
183
|
-
method: "delete" | "get" | "post" | "put" | "patch";
|
|
252
|
+
method: "delete" | "get" | "post" | "put" | "patch" | "GET" | "POST" | "DELETE" | "PUT" | "PATCH";
|
|
184
253
|
} | null>;
|
|
185
254
|
id: string;
|
|
186
255
|
uri: string;
|
|
256
|
+
schemas?: {
|
|
257
|
+
form?: {
|
|
258
|
+
data: any;
|
|
259
|
+
ui?: any;
|
|
260
|
+
} | undefined;
|
|
261
|
+
} | undefined;
|
|
187
262
|
}>;
|
|
@@ -1,3 +1,43 @@
|
|
|
1
|
-
export * from './controls';
|
|
2
|
-
export * from './layout/LayoutRenders';
|
|
3
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,19 +1,20 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
tester:
|
|
1
|
+
export declare const layoutRenderers: {
|
|
2
|
+
tester: import('../../../testers/jsonforms-testers').RankedTester;
|
|
3
3
|
renderer: import('vue').DefineComponent<{
|
|
4
|
-
uischema: import('@jsonforms/core').
|
|
4
|
+
uischema: import('@jsonforms/core').UISchemaElement;
|
|
5
5
|
schema: import('@jsonforms/core').JsonSchema;
|
|
6
6
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
7
|
-
uischema: import('@jsonforms/core').
|
|
7
|
+
uischema: import('@jsonforms/core').UISchemaElement;
|
|
8
8
|
schema: import('@jsonforms/core').JsonSchema;
|
|
9
9
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
-
}
|
|
11
|
-
|
|
10
|
+
}[];
|
|
11
|
+
export declare const readonlyLayoutRenderers: {
|
|
12
|
+
tester: import('../../../testers/jsonforms-testers').RankedTester;
|
|
12
13
|
renderer: import('vue').DefineComponent<{
|
|
13
14
|
uischema: import('@jsonforms/core').UISchemaElement;
|
|
14
15
|
schema: import('@jsonforms/core').JsonSchema;
|
|
15
16
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
16
17
|
uischema: import('@jsonforms/core').UISchemaElement;
|
|
17
18
|
schema: import('@jsonforms/core').JsonSchema;
|
|
18
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
19
|
-
}
|
|
19
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
20
|
+
}[];
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
package/http-client.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface HttpClient {
|
|
2
|
+
get<T = any>(url: string, config?: any): Promise<{
|
|
3
|
+
data: T;
|
|
4
|
+
}>;
|
|
5
|
+
post<T = any>(url: string, data?: any, config?: any): Promise<{
|
|
6
|
+
data: T;
|
|
7
|
+
}>;
|
|
8
|
+
patch<T = any>(url: string, data?: any, config?: any): Promise<{
|
|
9
|
+
data: T;
|
|
10
|
+
}>;
|
|
11
|
+
delete<T = any>(url: string, config?: any): Promise<{
|
|
12
|
+
data: T;
|
|
13
|
+
}>;
|
|
14
|
+
}
|
package/index.d.ts
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from './table';
|
|
3
|
-
export * from './repository';
|
|
4
|
-
export * from './composables/useFormEvents';
|
|
1
|
+
export { default as ReadonlyLabel } from './forms/renderers/controls/readonly/ReadonlyLabel.vue';
|
|
5
2
|
export type { ErrorMode } from './forms/errorMode';
|
|
6
|
-
export {
|
|
3
|
+
export type { HttpClient } from './http-client';
|
|
4
|
+
export type { FormModalProp, FormModalResult, } from './forms/modal/FormModal.properties';
|
|
5
|
+
export { useControlBinding, useCustomControlBinding, } from './forms/renderers/controls/composables/useControlBinding';
|
|
6
|
+
export * from './forms/renderers/controls/composables/useReadonlyBinding';
|
|
7
|
+
export { useDisplayValue } from './forms/renderers/controls/readonly/useDisplayValue';
|
|
8
|
+
export * from './composables/useFormEvents';
|
|
9
|
+
export { provideHttpClient, useHttpClient } from './composables/useHttpClient';
|
|
7
10
|
export { default as JsonForm } from './forms/FormComponent.vue';
|
|
8
|
-
export { default as JsonFormWithActions } from './forms/FormWithActions.vue';
|
|
9
|
-
export { default as JsonFormWithTable } from './forms/FormWithTable.vue';
|
|
10
11
|
export { default as JsonFormModal } from './forms/modal/FormModal.vue';
|
|
12
|
+
export { FormModalEmits, FormModalProperties, } from './forms/modal/FormModal.properties';
|
|
11
13
|
export { JsonFormModalService } from './forms/modal/FormModalService';
|
|
12
|
-
export {
|
|
14
|
+
export { customRenderers, readonlyRenderers } from './forms/renderers';
|
|
15
|
+
export { optionIsIgnoreCase } from './testers/tester';
|
|
16
|
+
export { formatError, registerZodErrorMap } from './forms/errorMessages';
|
|
17
|
+
export * from './repository';
|
|
18
|
+
export * from './table';
|
|
19
|
+
export * from './forms/renderers/controls/readonly/displayValue';
|