@ghentcdh/json-forms-vue 1.1.1 → 3.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/index.d.ts +6 -12
- package/index.js +8 -1891
- package/package.json +16 -30
- package/composables/useFormEvents.d.ts +0 -32
- package/form.store.d.ts +0 -8
- package/forms/Dispatch.vue.d.ts +0 -10
- package/forms/FormComponent.properties.d.ts +0 -48
- package/forms/FormComponent.vue.d.ts +0 -68
- package/forms/FormWithActions.properties.d.ts +0 -52
- package/forms/FormWithActions.vue.d.ts +0 -258
- package/forms/FormWithTable.properties.d.ts +0 -65
- package/forms/FormWithTable.vue.d.ts +0 -90
- package/forms/errorMessages.d.ts +0 -10
- package/forms/errorMode.d.ts +0 -4
- package/forms/modal/FormModal.properties.d.ts +0 -64
- package/forms/modal/FormModal.vue.d.ts +0 -275
- package/forms/modal/FormModalService.d.ts +0 -14
- package/forms/renderer-registry.d.ts +0 -7
- 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/composable/UseControlBinding.d.ts +0 -29
- package/forms/renderers/controls/composable/UseFetchOption.d.ts +0 -16
- package/forms/renderers/controls/composable/UseInput.d.ts +0 -24
- package/forms/renderers/controls/composable/UseSelectBinding.d.ts +0 -23
- package/forms/renderers/controls/composable/resource.d.ts +0 -187
- package/forms/renderers/controls/index.d.ts +0 -10
- package/forms/renderers/index.d.ts +0 -3
- package/forms/renderers/layout/CollapseLayoutRenderer.vue.d.ts +0 -7
- package/forms/renderers/layout/LayoutRenderer.vue.d.ts +0 -7
- package/forms/renderers/layout/LayoutRenders.d.ts +0 -10
- package/forms/renderers/layout/colspan.d.ts +0 -1
- package/forms/renderes.d.ts +0 -19
- package/forms/scope.d.ts +0 -4
- package/forms/types.d.ts +0 -36
- package/renderes/tester.d.ts +0 -11
- package/repository/crud.repository.d.ts +0 -32
- package/repository/index.d.ts +0 -1
- package/table/filter/table-filter.vue.d.ts +0 -13
- package/table/index.d.ts +0 -2
- 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/testing/index.d.ts +0 -0
- package/testing.js +0 -1
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { Data } from './FormWithTable.properties';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
-
id: {
|
|
4
|
-
type: StringConstructor;
|
|
5
|
-
required: true;
|
|
6
|
-
};
|
|
7
|
-
tableTitle: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
required: true;
|
|
10
|
-
};
|
|
11
|
-
createTitle: {
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
required: true;
|
|
14
|
-
};
|
|
15
|
-
updateTitle: {
|
|
16
|
-
type: StringConstructor;
|
|
17
|
-
};
|
|
18
|
-
dataUri: {
|
|
19
|
-
type: StringConstructor;
|
|
20
|
-
};
|
|
21
|
-
tableActions: {
|
|
22
|
-
type: import('vue').PropType<import('../../../../ui/src/index.ts').TableAction[]>;
|
|
23
|
-
};
|
|
24
|
-
form: {
|
|
25
|
-
type: import('vue').PropType<import('../../../core/src/index.ts').JsonFormsLayout>;
|
|
26
|
-
};
|
|
27
|
-
table: {
|
|
28
|
-
type: import('vue').PropType<import('../../../core/src/index.ts').JsonFormsLayout>;
|
|
29
|
-
};
|
|
30
|
-
filter: {
|
|
31
|
-
type: import('vue').PropType<import('../../../core/src/index.ts').JsonFormsLayout>;
|
|
32
|
-
};
|
|
33
|
-
uri: {
|
|
34
|
-
type: StringConstructor;
|
|
35
|
-
};
|
|
36
|
-
initialData: {
|
|
37
|
-
type: import('vue').PropType<Data>;
|
|
38
|
-
default: () => {};
|
|
39
|
-
};
|
|
40
|
-
errorMode: {
|
|
41
|
-
type: import('vue').PropType<import('./errorMode').ErrorMode>;
|
|
42
|
-
default: "onBlur";
|
|
43
|
-
};
|
|
44
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
45
|
-
id: {
|
|
46
|
-
type: StringConstructor;
|
|
47
|
-
required: true;
|
|
48
|
-
};
|
|
49
|
-
tableTitle: {
|
|
50
|
-
type: StringConstructor;
|
|
51
|
-
required: true;
|
|
52
|
-
};
|
|
53
|
-
createTitle: {
|
|
54
|
-
type: StringConstructor;
|
|
55
|
-
required: true;
|
|
56
|
-
};
|
|
57
|
-
updateTitle: {
|
|
58
|
-
type: StringConstructor;
|
|
59
|
-
};
|
|
60
|
-
dataUri: {
|
|
61
|
-
type: StringConstructor;
|
|
62
|
-
};
|
|
63
|
-
tableActions: {
|
|
64
|
-
type: import('vue').PropType<import('../../../../ui/src/index.ts').TableAction[]>;
|
|
65
|
-
};
|
|
66
|
-
form: {
|
|
67
|
-
type: import('vue').PropType<import('../../../core/src/index.ts').JsonFormsLayout>;
|
|
68
|
-
};
|
|
69
|
-
table: {
|
|
70
|
-
type: import('vue').PropType<import('../../../core/src/index.ts').JsonFormsLayout>;
|
|
71
|
-
};
|
|
72
|
-
filter: {
|
|
73
|
-
type: import('vue').PropType<import('../../../core/src/index.ts').JsonFormsLayout>;
|
|
74
|
-
};
|
|
75
|
-
uri: {
|
|
76
|
-
type: StringConstructor;
|
|
77
|
-
};
|
|
78
|
-
initialData: {
|
|
79
|
-
type: import('vue').PropType<Data>;
|
|
80
|
-
default: () => {};
|
|
81
|
-
};
|
|
82
|
-
errorMode: {
|
|
83
|
-
type: import('vue').PropType<import('./errorMode').ErrorMode>;
|
|
84
|
-
default: "onBlur";
|
|
85
|
-
};
|
|
86
|
-
}>> & Readonly<{}>, {
|
|
87
|
-
errorMode: import('./errorMode').ErrorMode;
|
|
88
|
-
initialData: Data;
|
|
89
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
90
|
-
export default _default;
|
package/forms/errorMessages.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Transforms raw Zod error messages into human-readable ones.
|
|
3
|
-
* Returns original message if no pattern matches.
|
|
4
|
-
*/
|
|
5
|
-
export declare const formatError: (message: string | undefined) => string | undefined;
|
|
6
|
-
/**
|
|
7
|
-
* Registers a global Zod error map for friendlier default messages.
|
|
8
|
-
* Call once at app startup or in FormComponent setup.
|
|
9
|
-
*/
|
|
10
|
-
export declare const registerZodErrorMap: () => void;
|
package/forms/errorMode.d.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { ExtractPublicPropTypes, PropType } from 'vue';
|
|
2
|
-
import { SizeType } from '../../../../core/src/index.ts';
|
|
3
|
-
import { FormEventPayload } from '../../composables/useFormEvents';
|
|
4
|
-
import { ErrorMode } from '../errorMode';
|
|
5
|
-
export declare const FormModalProperties: {
|
|
6
|
-
/** Title displayed in the modal header. */
|
|
7
|
-
modalTitle: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
required: true;
|
|
10
|
-
};
|
|
11
|
-
/** Label for the save button. */
|
|
12
|
-
saveLabel: {
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
default: string;
|
|
15
|
-
};
|
|
16
|
-
/** Label for the cancel button. */
|
|
17
|
-
cancelLabel: {
|
|
18
|
-
type: StringConstructor;
|
|
19
|
-
default: string;
|
|
20
|
-
};
|
|
21
|
-
/** JSON schema describing the shape of the form data. */
|
|
22
|
-
schema: {
|
|
23
|
-
type: PropType<any>;
|
|
24
|
-
required: true;
|
|
25
|
-
};
|
|
26
|
-
/** UI schema describing the layout and controls. */
|
|
27
|
-
uiSchema: {
|
|
28
|
-
type: PropType<any>;
|
|
29
|
-
required: true;
|
|
30
|
-
};
|
|
31
|
-
/** Modal width (`'xs'`, `'sm'`, `'md'`, `'lg'`, `'xl'`). */
|
|
32
|
-
modalSize: {
|
|
33
|
-
type: PropType<SizeType>;
|
|
34
|
-
default: string;
|
|
35
|
-
};
|
|
36
|
-
/** Callback invoked when the modal closes (with result or `null` on cancel). */
|
|
37
|
-
onClose: {
|
|
38
|
-
type: PropType<(result: any) => void>;
|
|
39
|
-
required: true;
|
|
40
|
-
};
|
|
41
|
-
/** Callback for form events dispatched by custom renderers. */
|
|
42
|
-
onEvents: {
|
|
43
|
-
type: PropType<(payload: FormEventPayload) => void>;
|
|
44
|
-
};
|
|
45
|
-
/** Initial form data to populate the form with. */
|
|
46
|
-
data: {
|
|
47
|
-
type: PropType<any>;
|
|
48
|
-
required: true;
|
|
49
|
-
};
|
|
50
|
-
/** When validation errors are shown. */
|
|
51
|
-
errorMode: {
|
|
52
|
-
type: PropType<ErrorMode>;
|
|
53
|
-
default: "onBlur";
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
export type FormModalProp = ExtractPublicPropTypes<typeof FormModalProperties>;
|
|
57
|
-
export declare const FormModalEmits: string[];
|
|
58
|
-
/** Result payload returned when the modal is submitted. */
|
|
59
|
-
export type FormModalResult<DATA = any> = {
|
|
60
|
-
/** The form data at the time of submission. */
|
|
61
|
-
data: DATA;
|
|
62
|
-
/** Whether the form passed validation. */
|
|
63
|
-
valid: boolean;
|
|
64
|
-
};
|
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
attrs: Partial<{}>;
|
|
3
|
-
slots: {
|
|
4
|
-
'content-before'?(_: {}): any;
|
|
5
|
-
'content-after'?(_: {}): any;
|
|
6
|
-
};
|
|
7
|
-
refs: {
|
|
8
|
-
formRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
9
|
-
id: {
|
|
10
|
-
type: StringConstructor;
|
|
11
|
-
required: true;
|
|
12
|
-
};
|
|
13
|
-
name: {
|
|
14
|
-
type: StringConstructor;
|
|
15
|
-
default: string;
|
|
16
|
-
};
|
|
17
|
-
schema: {
|
|
18
|
-
type: import('vue').PropType<any>;
|
|
19
|
-
required: true;
|
|
20
|
-
};
|
|
21
|
-
uiSchema: {
|
|
22
|
-
type: import('vue').PropType<any>;
|
|
23
|
-
required: true;
|
|
24
|
-
};
|
|
25
|
-
disabled: {
|
|
26
|
-
type: BooleanConstructor;
|
|
27
|
-
default: boolean;
|
|
28
|
-
};
|
|
29
|
-
formData: {
|
|
30
|
-
type: import('vue').PropType<import('../FormComponent.properties').Data>;
|
|
31
|
-
default: () => {};
|
|
32
|
-
};
|
|
33
|
-
errorMode: {
|
|
34
|
-
type: import('vue').PropType<import('../errorMode').ErrorMode>;
|
|
35
|
-
default: "onChanges";
|
|
36
|
-
};
|
|
37
|
-
}>> & Readonly<{}>, {
|
|
38
|
-
markSubmitted: () => void;
|
|
39
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
40
|
-
errorMode: import('../errorMode').ErrorMode;
|
|
41
|
-
disabled: boolean;
|
|
42
|
-
name: string;
|
|
43
|
-
formData: import('../FormComponent.properties').Data;
|
|
44
|
-
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLFormElement, import('vue').ComponentProvideOptions, {
|
|
45
|
-
P: {};
|
|
46
|
-
B: {};
|
|
47
|
-
D: {};
|
|
48
|
-
C: {};
|
|
49
|
-
M: {};
|
|
50
|
-
Defaults: {};
|
|
51
|
-
}, Readonly<import('vue').ExtractPropTypes<{
|
|
52
|
-
id: {
|
|
53
|
-
type: StringConstructor;
|
|
54
|
-
required: true;
|
|
55
|
-
};
|
|
56
|
-
name: {
|
|
57
|
-
type: StringConstructor;
|
|
58
|
-
default: string;
|
|
59
|
-
};
|
|
60
|
-
schema: {
|
|
61
|
-
type: import('vue').PropType<any>;
|
|
62
|
-
required: true;
|
|
63
|
-
};
|
|
64
|
-
uiSchema: {
|
|
65
|
-
type: import('vue').PropType<any>;
|
|
66
|
-
required: true;
|
|
67
|
-
};
|
|
68
|
-
disabled: {
|
|
69
|
-
type: BooleanConstructor;
|
|
70
|
-
default: boolean;
|
|
71
|
-
};
|
|
72
|
-
formData: {
|
|
73
|
-
type: import('vue').PropType<import('../FormComponent.properties').Data>;
|
|
74
|
-
default: () => {};
|
|
75
|
-
};
|
|
76
|
-
errorMode: {
|
|
77
|
-
type: import('vue').PropType<import('../errorMode').ErrorMode>;
|
|
78
|
-
default: "onChanges";
|
|
79
|
-
};
|
|
80
|
-
}>> & Readonly<{}>, {
|
|
81
|
-
markSubmitted: () => void;
|
|
82
|
-
}, {}, {}, {}, {
|
|
83
|
-
errorMode: import('../errorMode').ErrorMode;
|
|
84
|
-
disabled: boolean;
|
|
85
|
-
name: string;
|
|
86
|
-
formData: import('../FormComponent.properties').Data;
|
|
87
|
-
}> | null;
|
|
88
|
-
};
|
|
89
|
-
rootEl: HTMLDialogElement;
|
|
90
|
-
};
|
|
91
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
92
|
-
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
93
|
-
modalTitle: {
|
|
94
|
-
type: StringConstructor;
|
|
95
|
-
required: true;
|
|
96
|
-
};
|
|
97
|
-
saveLabel: {
|
|
98
|
-
type: StringConstructor;
|
|
99
|
-
default: string;
|
|
100
|
-
};
|
|
101
|
-
cancelLabel: {
|
|
102
|
-
type: StringConstructor;
|
|
103
|
-
default: string;
|
|
104
|
-
};
|
|
105
|
-
schema: {
|
|
106
|
-
type: import('vue').PropType<any>;
|
|
107
|
-
required: true;
|
|
108
|
-
};
|
|
109
|
-
uiSchema: {
|
|
110
|
-
type: import('vue').PropType<any>;
|
|
111
|
-
required: true;
|
|
112
|
-
};
|
|
113
|
-
modalSize: {
|
|
114
|
-
type: import('vue').PropType<import('../../../../core/src/index.ts').SizeType>;
|
|
115
|
-
default: string;
|
|
116
|
-
};
|
|
117
|
-
onClose: {
|
|
118
|
-
type: import('vue').PropType<(result: any) => void>;
|
|
119
|
-
required: true;
|
|
120
|
-
};
|
|
121
|
-
onEvents: {
|
|
122
|
-
type: import('vue').PropType<(payload: import('../..').FormEventPayload) => void>;
|
|
123
|
-
};
|
|
124
|
-
data: {
|
|
125
|
-
type: import('vue').PropType<any>;
|
|
126
|
-
required: true;
|
|
127
|
-
};
|
|
128
|
-
errorMode: {
|
|
129
|
-
type: import('vue').PropType<import('../errorMode').ErrorMode>;
|
|
130
|
-
default: "onBlur";
|
|
131
|
-
};
|
|
132
|
-
modelValue: {
|
|
133
|
-
type: import('vue').PropType<any>;
|
|
134
|
-
};
|
|
135
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
136
|
-
"update:modelValue": (value: any) => void;
|
|
137
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
138
|
-
modalTitle: {
|
|
139
|
-
type: StringConstructor;
|
|
140
|
-
required: true;
|
|
141
|
-
};
|
|
142
|
-
saveLabel: {
|
|
143
|
-
type: StringConstructor;
|
|
144
|
-
default: string;
|
|
145
|
-
};
|
|
146
|
-
cancelLabel: {
|
|
147
|
-
type: StringConstructor;
|
|
148
|
-
default: string;
|
|
149
|
-
};
|
|
150
|
-
schema: {
|
|
151
|
-
type: import('vue').PropType<any>;
|
|
152
|
-
required: true;
|
|
153
|
-
};
|
|
154
|
-
uiSchema: {
|
|
155
|
-
type: import('vue').PropType<any>;
|
|
156
|
-
required: true;
|
|
157
|
-
};
|
|
158
|
-
modalSize: {
|
|
159
|
-
type: import('vue').PropType<import('../../../../core/src/index.ts').SizeType>;
|
|
160
|
-
default: string;
|
|
161
|
-
};
|
|
162
|
-
onClose: {
|
|
163
|
-
type: import('vue').PropType<(result: any) => void>;
|
|
164
|
-
required: true;
|
|
165
|
-
};
|
|
166
|
-
onEvents: {
|
|
167
|
-
type: import('vue').PropType<(payload: import('../..').FormEventPayload) => void>;
|
|
168
|
-
};
|
|
169
|
-
data: {
|
|
170
|
-
type: import('vue').PropType<any>;
|
|
171
|
-
required: true;
|
|
172
|
-
};
|
|
173
|
-
errorMode: {
|
|
174
|
-
type: import('vue').PropType<import('../errorMode').ErrorMode>;
|
|
175
|
-
default: "onBlur";
|
|
176
|
-
};
|
|
177
|
-
modelValue: {
|
|
178
|
-
type: import('vue').PropType<any>;
|
|
179
|
-
};
|
|
180
|
-
}>> & Readonly<{
|
|
181
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
182
|
-
}>, {
|
|
183
|
-
errorMode: import('../errorMode').ErrorMode;
|
|
184
|
-
saveLabel: string;
|
|
185
|
-
cancelLabel: string;
|
|
186
|
-
modalSize: "xs" | "sm" | "lg" | "xl";
|
|
187
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
188
|
-
formRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
189
|
-
id: {
|
|
190
|
-
type: StringConstructor;
|
|
191
|
-
required: true;
|
|
192
|
-
};
|
|
193
|
-
name: {
|
|
194
|
-
type: StringConstructor;
|
|
195
|
-
default: string;
|
|
196
|
-
};
|
|
197
|
-
schema: {
|
|
198
|
-
type: import('vue').PropType<any>;
|
|
199
|
-
required: true;
|
|
200
|
-
};
|
|
201
|
-
uiSchema: {
|
|
202
|
-
type: import('vue').PropType<any>;
|
|
203
|
-
required: true;
|
|
204
|
-
};
|
|
205
|
-
disabled: {
|
|
206
|
-
type: BooleanConstructor;
|
|
207
|
-
default: boolean;
|
|
208
|
-
};
|
|
209
|
-
formData: {
|
|
210
|
-
type: import('vue').PropType<import('../FormComponent.properties').Data>;
|
|
211
|
-
default: () => {};
|
|
212
|
-
};
|
|
213
|
-
errorMode: {
|
|
214
|
-
type: import('vue').PropType<import('../errorMode').ErrorMode>;
|
|
215
|
-
default: "onChanges";
|
|
216
|
-
};
|
|
217
|
-
}>> & Readonly<{}>, {
|
|
218
|
-
markSubmitted: () => void;
|
|
219
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
220
|
-
errorMode: import('../errorMode').ErrorMode;
|
|
221
|
-
disabled: boolean;
|
|
222
|
-
name: string;
|
|
223
|
-
formData: import('../FormComponent.properties').Data;
|
|
224
|
-
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLFormElement, import('vue').ComponentProvideOptions, {
|
|
225
|
-
P: {};
|
|
226
|
-
B: {};
|
|
227
|
-
D: {};
|
|
228
|
-
C: {};
|
|
229
|
-
M: {};
|
|
230
|
-
Defaults: {};
|
|
231
|
-
}, Readonly<import('vue').ExtractPropTypes<{
|
|
232
|
-
id: {
|
|
233
|
-
type: StringConstructor;
|
|
234
|
-
required: true;
|
|
235
|
-
};
|
|
236
|
-
name: {
|
|
237
|
-
type: StringConstructor;
|
|
238
|
-
default: string;
|
|
239
|
-
};
|
|
240
|
-
schema: {
|
|
241
|
-
type: import('vue').PropType<any>;
|
|
242
|
-
required: true;
|
|
243
|
-
};
|
|
244
|
-
uiSchema: {
|
|
245
|
-
type: import('vue').PropType<any>;
|
|
246
|
-
required: true;
|
|
247
|
-
};
|
|
248
|
-
disabled: {
|
|
249
|
-
type: BooleanConstructor;
|
|
250
|
-
default: boolean;
|
|
251
|
-
};
|
|
252
|
-
formData: {
|
|
253
|
-
type: import('vue').PropType<import('../FormComponent.properties').Data>;
|
|
254
|
-
default: () => {};
|
|
255
|
-
};
|
|
256
|
-
errorMode: {
|
|
257
|
-
type: import('vue').PropType<import('../errorMode').ErrorMode>;
|
|
258
|
-
default: "onChanges";
|
|
259
|
-
};
|
|
260
|
-
}>> & Readonly<{}>, {
|
|
261
|
-
markSubmitted: () => void;
|
|
262
|
-
}, {}, {}, {}, {
|
|
263
|
-
errorMode: import('../errorMode').ErrorMode;
|
|
264
|
-
disabled: boolean;
|
|
265
|
-
name: string;
|
|
266
|
-
formData: import('../FormComponent.properties').Data;
|
|
267
|
-
}> | null;
|
|
268
|
-
}, HTMLDialogElement>;
|
|
269
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
270
|
-
export default _default;
|
|
271
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
272
|
-
new (): {
|
|
273
|
-
$slots: S;
|
|
274
|
-
};
|
|
275
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SizeType } from '../../../../core/src/index.ts';
|
|
2
|
-
import { FormModalResult } from './FormModal.properties';
|
|
3
|
-
import { FormEventPayload } from '../../composables/useFormEvents';
|
|
4
|
-
export declare class JsonFormModalService {
|
|
5
|
-
static openModal<DATA = any>({ initialData, modalTitle, schema, uiSchema, modalSize, onClose, onEvents, }: {
|
|
6
|
-
initialData?: DATA;
|
|
7
|
-
schema: any;
|
|
8
|
-
uiSchema: any;
|
|
9
|
-
modalSize?: SizeType;
|
|
10
|
-
modalTitle: string;
|
|
11
|
-
onClose: (result: FormModalResult) => void;
|
|
12
|
-
onEvents?: (payload: FormEventPayload) => void;
|
|
13
|
-
}): void;
|
|
14
|
-
}
|
|
@@ -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;
|
|
@@ -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,10 +0,0 @@
|
|
|
1
|
-
export declare const arrayRenderers: {
|
|
2
|
-
tester: (uischema: import('@jsonforms/core').UISchemaElement, schema: import('@jsonforms/core').JsonSchema, context: import('@jsonforms/core').TesterContext) => number;
|
|
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, {}, HTMLDivElement>;
|
|
10
|
-
}[];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ControlElement, JsonSchema } from '@jsonforms/core';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
uischema: ControlElement;
|
|
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,7 +0,0 @@
|
|
|
1
|
-
import { ControlElement, JsonSchema } from '@jsonforms/core';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
uischema: ControlElement;
|
|
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 { ControlElement, JsonSchema } from '@jsonforms/core';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
uischema: ControlElement;
|
|
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, {}, HTMLFieldSetElement>;
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ControlElement, JsonSchema } from '@jsonforms/core';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
uischema: ControlElement;
|
|
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 { ControlElement, JsonSchema } from '@jsonforms/core';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
uischema: ControlElement;
|
|
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, {}, HTMLFieldSetElement>;
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ControlElement, JsonSchema } from '@jsonforms/core';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
uischema: ControlElement;
|
|
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 { ControlElement, JsonSchema } from '@jsonforms/core';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
uischema: ControlElement;
|
|
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, {}, HTMLFieldSetElement>;
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ControlElement, JsonSchema } from '@jsonforms/core';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
uischema: ControlElement;
|
|
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, {}, HTMLFieldSetElement>;
|
|
7
|
-
export default _default;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ControlElement, JsonSchema } from '@jsonforms/core';
|
|
2
|
-
import { FieldContext } from 'vee-validate';
|
|
3
|
-
import { Ref } from 'vue';
|
|
4
|
-
import { ControlOption } from '../../../../../../core/src/index.ts';
|
|
5
|
-
import { UseInputOptions } from './UseInput';
|
|
6
|
-
export type useCustomProps = (uischema: ControlElement, schema: JsonSchema, field: FieldContext, options: any) => Ref<any>;
|
|
7
|
-
export declare const useCustomControlBinding: <CONTROL_OPTION extends ControlOption = ControlOption>({ useProps, setDefaultValue, }?: {
|
|
8
|
-
useProps?: useCustomProps;
|
|
9
|
-
setDefaultValue?: (field: FieldContext) => void;
|
|
10
|
-
}) => (uischema: ControlElement, schema: JsonSchema, options?: {}) => {
|
|
11
|
-
wrapper: import('vue').ComputedRef<any>;
|
|
12
|
-
value: Ref<unknown, unknown>;
|
|
13
|
-
field: FieldContext<unknown>;
|
|
14
|
-
onBlur: () => void;
|
|
15
|
-
onChange: () => void;
|
|
16
|
-
appliedOptions: import('vue').ComputedRef<{
|
|
17
|
-
[key: string]: any;
|
|
18
|
-
} | CONTROL_OPTION>;
|
|
19
|
-
};
|
|
20
|
-
export declare const useControlBinding: (uischema: ControlElement, schema: JsonSchema, options?: UseInputOptions) => {
|
|
21
|
-
wrapper: import('vue').ComputedRef<any>;
|
|
22
|
-
value: Ref<unknown, unknown>;
|
|
23
|
-
field: FieldContext<unknown>;
|
|
24
|
-
onBlur: () => void;
|
|
25
|
-
onChange: () => void;
|
|
26
|
-
appliedOptions: import('vue').ComputedRef<ControlOption | {
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
}>;
|
|
29
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AutocompleteAllOptions } from '../../../../../../core/src/index.ts';
|
|
2
|
-
/**
|
|
3
|
-
* Resolves autocomplete configuration from control options.
|
|
4
|
-
*
|
|
5
|
-
* Dispatches to either {@link useRemoteOption} (when `uri` is set) or
|
|
6
|
-
* {@link useResourceOptions} (when `resource` is set). Returns a unified
|
|
7
|
-
* config object with `fetchOptions`, label/value keys, and optional
|
|
8
|
-
* inline-create form details.
|
|
9
|
-
*/
|
|
10
|
-
export declare const useFetchOptions: (options: AutocompleteAllOptions) => Promise<{
|
|
11
|
-
fetchOptions: null;
|
|
12
|
-
labelKey: string | undefined;
|
|
13
|
-
valueKey: string | undefined;
|
|
14
|
-
enableCreate: boolean;
|
|
15
|
-
form: null;
|
|
16
|
-
}>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ControlElement, JsonSchema } from '@jsonforms/core';
|
|
2
|
-
import { FieldContext } from 'vee-validate';
|
|
3
|
-
import { MyStyles } from '../../../../../../../ui/src/index.ts';
|
|
4
|
-
export interface InputProps {
|
|
5
|
-
id: string;
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
errors?: string;
|
|
9
|
-
label: string;
|
|
10
|
-
visible: boolean;
|
|
11
|
-
required: boolean;
|
|
12
|
-
enabled: boolean;
|
|
13
|
-
isFocused: boolean;
|
|
14
|
-
isTouched: boolean;
|
|
15
|
-
hideLabel: boolean;
|
|
16
|
-
styles: MyStyles;
|
|
17
|
-
width: string;
|
|
18
|
-
type: string;
|
|
19
|
-
}
|
|
20
|
-
export interface UseInputOptions {
|
|
21
|
-
overrides?: Partial<InputProps>;
|
|
22
|
-
defaultType?: string;
|
|
23
|
-
}
|
|
24
|
-
export declare const useInputProps: (uischema: ControlElement, schema: JsonSchema, field: FieldContext, options?: UseInputOptions) => import('vue').ComputedRef<InputProps>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ControlElement, JsonSchema } from '@jsonforms/core';
|
|
2
|
-
import { FieldContext } from 'vee-validate';
|
|
3
|
-
import { AutocompleteAllOptions, SelectOptions } from '../../../../../../core/src/index.ts';
|
|
4
|
-
export declare const useSelectBinding: (uischema: ControlElement, schema: JsonSchema, options?: {}) => {
|
|
5
|
-
wrapper: import('vue').ComputedRef<any>;
|
|
6
|
-
value: import('vue').Ref<unknown, unknown>;
|
|
7
|
-
field: FieldContext<unknown>;
|
|
8
|
-
onBlur: () => void;
|
|
9
|
-
onChange: () => void;
|
|
10
|
-
appliedOptions: import('vue').ComputedRef<SelectOptions | {
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}>;
|
|
13
|
-
};
|
|
14
|
-
export declare const useAutocompleteBinding: (uischema: ControlElement, schema: JsonSchema, options?: {}) => {
|
|
15
|
-
wrapper: import('vue').ComputedRef<any>;
|
|
16
|
-
value: import('vue').Ref<unknown, unknown>;
|
|
17
|
-
field: FieldContext<unknown>;
|
|
18
|
-
onBlur: () => void;
|
|
19
|
-
onChange: () => void;
|
|
20
|
-
appliedOptions: import('vue').ComputedRef<AutocompleteAllOptions | {
|
|
21
|
-
[key: string]: any;
|
|
22
|
-
}>;
|
|
23
|
-
};
|