@ghentcdh/json-forms-vue 0.8.6 → 1.0.2

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 (72) hide show
  1. package/form.store.d.ts +1 -1
  2. package/forms/Dispatch.vue.d.ts +10 -0
  3. package/forms/FormComponent.properties.d.ts +48 -0
  4. package/{form.component.vue.d.ts → forms/FormComponent.vue.d.ts} +19 -17
  5. package/forms/FormWithActions.properties.d.ts +52 -0
  6. package/forms/FormWithActions.vue.d.ts +258 -0
  7. package/forms/FormWithTable.properties.d.ts +65 -0
  8. package/{form-with-table.component.vue.d.ts → forms/FormWithTable.vue.d.ts} +24 -15
  9. package/forms/errorMessages.d.ts +10 -0
  10. package/forms/errorMode.d.ts +4 -0
  11. package/forms/modal/FormModal.properties.d.ts +64 -0
  12. package/forms/modal/FormModal.vue.d.ts +275 -0
  13. package/{modal/form-modal.service.d.ts → forms/modal/FormModalService.d.ts} +4 -5
  14. package/forms/renderer-registry.d.ts +7 -0
  15. package/forms/renderers/array/ArrayRenderer.vue.d.ts +7 -0
  16. package/forms/renderers/array/ArrayRenderers.d.ts +10 -0
  17. package/forms/renderers/controls/AutocompleteControlRenderer.vue.d.ts +7 -0
  18. package/forms/renderers/controls/BooleanControlRenderer.vue.d.ts +7 -0
  19. package/forms/renderers/controls/MarkdownControlRenderer.vue.d.ts +7 -0
  20. package/forms/renderers/controls/MultiSelectControlRenderer.vue.d.ts +7 -0
  21. package/forms/renderers/controls/NumberControlRenderer.vue.d.ts +7 -0
  22. package/forms/renderers/controls/SelectControlRenderer.vue.d.ts +7 -0
  23. package/forms/renderers/controls/StringControlRenderer.vue.d.ts +7 -0
  24. package/forms/renderers/controls/TextAreaControlRenderer.vue.d.ts +7 -0
  25. package/forms/renderers/controls/composable/UseControlBinding.d.ts +29 -0
  26. package/forms/renderers/controls/composable/UseFetchOption.d.ts +16 -0
  27. package/forms/renderers/controls/composable/UseInput.d.ts +24 -0
  28. package/forms/renderers/controls/composable/UseSelectBinding.d.ts +23 -0
  29. package/forms/renderers/controls/composable/resource.d.ts +187 -0
  30. package/forms/renderers/controls/index.d.ts +10 -0
  31. package/forms/renderers/index.d.ts +3 -0
  32. package/forms/renderers/layout/CollapseLayoutRenderer.vue.d.ts +7 -0
  33. package/forms/renderers/layout/LayoutRenderer.vue.d.ts +7 -0
  34. package/forms/renderers/layout/LayoutRenders.d.ts +10 -0
  35. package/forms/renderers/layout/colspan.d.ts +1 -0
  36. package/forms/renderes.d.ts +19 -0
  37. package/forms/scope.d.ts +4 -0
  38. package/forms/types.d.ts +36 -0
  39. package/index.d.ts +9 -12
  40. package/index.js +1827 -1504
  41. package/index.mjs +1878 -1555
  42. package/package.json +4 -5
  43. package/renderes/tester.d.ts +2 -0
  44. package/form-with-actions.component.properties.d.ts +0 -40
  45. package/form-with-actions.component.vue.d.ts +0 -88
  46. package/form-with-table.component.properties.d.ts +0 -58
  47. package/form.component.properties.d.ts +0 -49
  48. package/modal/form-modal.props.d.ts +0 -30
  49. package/modal/form-modal.vue.d.ts +0 -35
  50. package/modal/index.d.ts +0 -3
  51. package/renderes/array/ArrayRenderer.vue.d.ts +0 -74
  52. package/renderes/array/index.d.ts +0 -76
  53. package/renderes/controls/AutocompleteControlRenderer.vue.d.ts +0 -74
  54. package/renderes/controls/BooleanControlRenderer.vue.d.ts +0 -74
  55. package/renderes/controls/IntegerControlRenderer.vue.d.ts +0 -74
  56. package/renderes/controls/MarkdownControlRenderer.vue.d.ts +0 -74
  57. package/renderes/controls/MultiSelectControlRender.vue.d.ts +0 -74
  58. package/renderes/controls/NumberControlRenderer.vue.d.ts +0 -74
  59. package/renderes/controls/SelectControlRender.vue.d.ts +0 -74
  60. package/renderes/controls/StringControlRenderer.vue.d.ts +0 -74
  61. package/renderes/controls/TextAreaControlRenderer.vue.d.ts +0 -74
  62. package/renderes/controls/index.d.ts +0 -675
  63. package/renderes/index.d.ts +0 -817
  64. package/renderes/layouts/CollapseLayout.vue.d.ts +0 -73
  65. package/renderes/layouts/GridLayout.vue.d.ts +0 -73
  66. package/renderes/layouts/HorizontalLayout.vue.d.ts +0 -73
  67. package/renderes/layouts/VerticalLayout.vue.d.ts +0 -73
  68. package/renderes/layouts/index.d.ts +0 -75
  69. package/standalone/emits.d.ts +0 -5
  70. package/standalone/properties.d.ts +0 -2
  71. package/utils/style.d.ts +0 -6
  72. package/utils/vanillaControl.d.ts +0 -15
@@ -0,0 +1,64 @@
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
+ };
@@ -0,0 +1,275 @@
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,7 +1,7 @@
1
- import { SizeType } from '../../../core/src/index.ts';
2
- import { FormModalResult } from './index';
3
- import { FormEventPayload } from '../composables/useFormEvents';
4
- export declare class FormModalService {
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
5
  static openModal<DATA = any>({ initialData, modalTitle, schema, uiSchema, modalSize, onClose, onEvents, }: {
6
6
  initialData?: DATA;
7
7
  schema: any;
@@ -9,7 +9,6 @@ export declare class FormModalService {
9
9
  modalSize?: SizeType;
10
10
  modalTitle: string;
11
11
  onClose: (result: FormModalResult) => void;
12
- /** Callback for form events dispatched by custom renderers inside the modal. */
13
12
  onEvents?: (payload: FormEventPayload) => void;
14
13
  }): void;
15
14
  }
@@ -0,0 +1,7 @@
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;
@@ -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;
@@ -0,0 +1,10 @@
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
+ }[];
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,29 @@
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
+ };
@@ -0,0 +1,16 @@
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
+ }>;
@@ -0,0 +1,24 @@
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>;
@@ -0,0 +1,23 @@
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
+ };