@ghentcdh/json-forms-vue 0.0.2-22
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/README.md +44 -0
- package/demo/owner.d.ts +55 -0
- package/form-with-actions.component.vue.d.ts +18 -0
- package/form-with-table.component.vue.d.ts +25 -0
- package/form.component.vue.d.ts +36 -0
- package/form.store.d.ts +11 -0
- package/index.css +1597 -0
- package/index.d.ts +10 -0
- package/index.js +9610 -0
- package/index.mjs +9610 -0
- package/modal/form-modal.props.d.ts +15 -0
- package/modal/form-modal.service.d.ts +10 -0
- package/modal/form-modal.vue.d.ts +32 -0
- package/modal/index.d.ts +3 -0
- package/package.json +19 -0
- package/renderes/array/ArrayRenderer.vue.d.ts +186 -0
- package/renderes/array/FixedArrayRenderer.vue.d.ts +127 -0
- package/renderes/array/index.d.ts +1 -0
- package/renderes/array/map-array-actions.d.ts +9 -0
- package/renderes/controls/BooleanControlRenderer.vue.d.ts +112 -0
- package/renderes/controls/IntegerControlRenderer.vue.d.ts +113 -0
- package/renderes/controls/MarkdownControlRenderer.vue.d.ts +111 -0
- package/renderes/controls/NumberControlRenderer.vue.d.ts +113 -0
- package/renderes/controls/StringControlRenderer.vue.d.ts +112 -0
- package/renderes/controls/TextAreaControlRenderer.vue.d.ts +110 -0
- package/renderes/controls/autocomplete/AutocompleteControlRenderer.vue.d.ts +99 -0
- package/renderes/controls/index.d.ts +7 -0
- package/renderes/index.d.ts +3 -0
- package/renderes/layouts/index.d.ts +1 -0
- package/renderes/tester.d.ts +7 -0
- package/repository/crud.repository.d.ts +36 -0
- package/repository/index.d.ts +1 -0
- package/standalone/emits.d.ts +5 -0
- package/standalone/properties.d.ts +2 -0
- package/state/form.state.d.ts +12 -0
- package/table/filter/table-filter.vue.d.ts +13 -0
- package/table/index.d.ts +1 -0
- package/table/table.component.vue.d.ts +18 -0
- package/table/table.store.d.ts +24 -0
- package/utils/style.d.ts +4 -0
- package/utils/vanillaControl.d.ts +13 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { JsonFormsLayout } from '../../../core/src/index.ts';
|
|
2
|
+
import { FormEventListener } from '../state/form.state';
|
|
3
|
+
export type FormModalProps = {
|
|
4
|
+
modalTitle: string;
|
|
5
|
+
saveLabel?: string;
|
|
6
|
+
cancelLabel?: string;
|
|
7
|
+
formSchema: JsonFormsLayout;
|
|
8
|
+
eventListener?: FormEventListener;
|
|
9
|
+
onClose: (result: any) => void;
|
|
10
|
+
data: any;
|
|
11
|
+
};
|
|
12
|
+
export type FormModalResult<DATA = any> = {
|
|
13
|
+
data: DATA;
|
|
14
|
+
valid: boolean;
|
|
15
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JsonFormsLayout } from '../../../core/src/index.ts';
|
|
2
|
+
import { FormModalResult } from './index';
|
|
3
|
+
export declare class FormModalService {
|
|
4
|
+
static openModal<DATA = any>({ initialData, modalTitle, formSchema, onClose, }: {
|
|
5
|
+
initialData?: DATA;
|
|
6
|
+
formSchema: JsonFormsLayout;
|
|
7
|
+
modalTitle: string;
|
|
8
|
+
onClose: (result: FormModalResult) => void;
|
|
9
|
+
}): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { FormModalProps } from './form-modal.props';
|
|
2
|
+
type __VLS_Props = FormModalProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
modelValue?: any;
|
|
5
|
+
} & __VLS_Props;
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
'content-before'?(_: {}): any;
|
|
10
|
+
'content-after'?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: HTMLDialogElement;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
closeModal: (...args: any[]) => void;
|
|
18
|
+
"update:modelValue": (value: any) => void;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
20
|
+
onCloseModal?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
cancelLabel: string;
|
|
24
|
+
saveLabel: string;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDialogElement>;
|
|
26
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
package/modal/index.d.ts
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ghentcdh/json-forms-vue",
|
|
3
|
+
"version": "0.0.2-22",
|
|
4
|
+
"main": "./index.js",
|
|
5
|
+
"types": "./index.d.ts",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"import": "./index.mjs",
|
|
9
|
+
"require": "./index.js"
|
|
10
|
+
},
|
|
11
|
+
"./index.css": {
|
|
12
|
+
"import": "./index.css"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/GhentCDH/ghentcdh-monorepo.git"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { ControlElement, JsonFormsRendererRegistryEntry } from '@jsonforms/core';
|
|
2
|
+
import { IconEnum } from '../../../../../ui/src/index.ts';
|
|
3
|
+
import { Action } from './map-array-actions';
|
|
4
|
+
declare const controlRenderer: import('vue').DefineComponent<{
|
|
5
|
+
schema: import('@jsonforms/core').JsonSchema;
|
|
6
|
+
uischema: ControlElement;
|
|
7
|
+
path: string;
|
|
8
|
+
enabled?: boolean | undefined;
|
|
9
|
+
renderers?: JsonFormsRendererRegistryEntry[] | undefined;
|
|
10
|
+
cells?: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[] | undefined;
|
|
11
|
+
config?: any;
|
|
12
|
+
}, {
|
|
13
|
+
control: import('vue').ComputedRef<import('@jsonforms/vue').Required<ReturnType<typeof import('@jsonforms/core').mapStateToArrayControlProps>>>;
|
|
14
|
+
} & import('@jsonforms/core').DispatchPropsOfArrayControl & {
|
|
15
|
+
styles: import('@jsonforms/vue-vanilla').Styles;
|
|
16
|
+
appliedOptions: import('vue').ComputedRef<any>;
|
|
17
|
+
childUiSchema: import('vue').ComputedRef<import('@jsonforms/core').UISchemaElement>;
|
|
18
|
+
childLabelForIndex: (index: number) => string;
|
|
19
|
+
}, {}, {
|
|
20
|
+
IconEnum(): typeof IconEnum;
|
|
21
|
+
noData(): boolean;
|
|
22
|
+
actions(): Action[];
|
|
23
|
+
showDelete(): boolean;
|
|
24
|
+
translations(): any;
|
|
25
|
+
labelKey(): string;
|
|
26
|
+
}, {
|
|
27
|
+
composePaths: (path1: string, path2: string) => string;
|
|
28
|
+
createDefaultValue: (schema: import('@jsonforms/core').JsonSchema, rootSchema: import('@jsonforms/core').JsonSchema) => any;
|
|
29
|
+
deleteButtonClick(index: number): void;
|
|
30
|
+
dispatchEvent: (event: any, data: any) => void;
|
|
31
|
+
addButtonClick(): void;
|
|
32
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
33
|
+
schema: import('@jsonforms/core').JsonSchema;
|
|
34
|
+
uischema: ControlElement;
|
|
35
|
+
path: string;
|
|
36
|
+
enabled?: boolean | undefined;
|
|
37
|
+
renderers?: JsonFormsRendererRegistryEntry[] | undefined;
|
|
38
|
+
cells?: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[] | undefined;
|
|
39
|
+
config?: any;
|
|
40
|
+
}> & Readonly<{}>, {
|
|
41
|
+
enabled: boolean;
|
|
42
|
+
config: Record<string, any>;
|
|
43
|
+
renderers: JsonFormsRendererRegistryEntry[];
|
|
44
|
+
cells: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[];
|
|
45
|
+
}, {}, {
|
|
46
|
+
DispatchRenderer: import('vue').DefineComponent<{
|
|
47
|
+
schema: {
|
|
48
|
+
required: true;
|
|
49
|
+
type: import('vue').PropType<import('@jsonforms/core').JsonSchema>;
|
|
50
|
+
};
|
|
51
|
+
uischema: {
|
|
52
|
+
required: true;
|
|
53
|
+
type: import('vue').PropType<import('@jsonforms/core').UISchemaElement>;
|
|
54
|
+
};
|
|
55
|
+
path: {
|
|
56
|
+
required: true;
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
};
|
|
59
|
+
enabled: {
|
|
60
|
+
required: false;
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: undefined;
|
|
63
|
+
};
|
|
64
|
+
renderers: {
|
|
65
|
+
required: boolean;
|
|
66
|
+
type: import('vue').PropType<import('@jsonforms/core').JsonFormsRendererRegistryEntry[]>;
|
|
67
|
+
default: undefined;
|
|
68
|
+
};
|
|
69
|
+
cells: {
|
|
70
|
+
required: boolean;
|
|
71
|
+
type: import('vue').PropType<import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[]>;
|
|
72
|
+
default: undefined;
|
|
73
|
+
};
|
|
74
|
+
config: {
|
|
75
|
+
required: boolean;
|
|
76
|
+
type: ObjectConstructor;
|
|
77
|
+
default: undefined;
|
|
78
|
+
};
|
|
79
|
+
}, {
|
|
80
|
+
renderer: import('vue').ComputedRef<{
|
|
81
|
+
config: any;
|
|
82
|
+
uischema: NonNullable<import('@jsonforms/core').UISchemaElement | undefined>;
|
|
83
|
+
schema: NonNullable<import('@jsonforms/core').JsonSchema | undefined>;
|
|
84
|
+
enabled: NonNullable<boolean | undefined>;
|
|
85
|
+
visible: NonNullable<boolean | undefined>;
|
|
86
|
+
path: string;
|
|
87
|
+
renderers: import('@jsonforms/core').JsonFormsRendererRegistryEntry[];
|
|
88
|
+
cells: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[];
|
|
89
|
+
uischemas: import('@jsonforms/core').JsonFormsUISchemaRegistryEntry[];
|
|
90
|
+
}>;
|
|
91
|
+
rootSchema: import('vue').ComputedRef<NonNullable<import('@jsonforms/core').JsonSchema>>;
|
|
92
|
+
}, unknown, {
|
|
93
|
+
determinedRenderer(): any;
|
|
94
|
+
}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
95
|
+
schema: {
|
|
96
|
+
required: true;
|
|
97
|
+
type: import('vue').PropType<import('@jsonforms/core').JsonSchema>;
|
|
98
|
+
};
|
|
99
|
+
uischema: {
|
|
100
|
+
required: true;
|
|
101
|
+
type: import('vue').PropType<import('@jsonforms/core').UISchemaElement>;
|
|
102
|
+
};
|
|
103
|
+
path: {
|
|
104
|
+
required: true;
|
|
105
|
+
type: StringConstructor;
|
|
106
|
+
};
|
|
107
|
+
enabled: {
|
|
108
|
+
required: false;
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: undefined;
|
|
111
|
+
};
|
|
112
|
+
renderers: {
|
|
113
|
+
required: boolean;
|
|
114
|
+
type: import('vue').PropType<import('@jsonforms/core').JsonFormsRendererRegistryEntry[]>;
|
|
115
|
+
default: undefined;
|
|
116
|
+
};
|
|
117
|
+
cells: {
|
|
118
|
+
required: boolean;
|
|
119
|
+
type: import('vue').PropType<import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[]>;
|
|
120
|
+
default: undefined;
|
|
121
|
+
};
|
|
122
|
+
config: {
|
|
123
|
+
required: boolean;
|
|
124
|
+
type: ObjectConstructor;
|
|
125
|
+
default: undefined;
|
|
126
|
+
};
|
|
127
|
+
}>>, {
|
|
128
|
+
enabled: boolean;
|
|
129
|
+
renderers: import('@jsonforms/core').JsonFormsRendererRegistryEntry[];
|
|
130
|
+
cells: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[];
|
|
131
|
+
config: Record<string, any>;
|
|
132
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
133
|
+
Btn: {
|
|
134
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('libs/ui/src/button/btn.vue').ButtonProps> & Readonly<{
|
|
135
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
136
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
137
|
+
click: (...args: any[]) => void;
|
|
138
|
+
}, import('vue').PublicProps, {
|
|
139
|
+
type: import('libs/ui/src/button/const').ButtonType;
|
|
140
|
+
size: import('../../../../../ui/src/index.ts').Size;
|
|
141
|
+
disabled: boolean;
|
|
142
|
+
as: import('libs/ui/src/button/const').ButtonTag;
|
|
143
|
+
outline: boolean;
|
|
144
|
+
color: import('../../../../../ui/src/index.ts').Color;
|
|
145
|
+
square: boolean;
|
|
146
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
147
|
+
P: {};
|
|
148
|
+
B: {};
|
|
149
|
+
D: {};
|
|
150
|
+
C: {};
|
|
151
|
+
M: {};
|
|
152
|
+
Defaults: {};
|
|
153
|
+
}, Readonly<import('libs/ui/src/button/btn.vue').ButtonProps> & Readonly<{
|
|
154
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
155
|
+
}>, {}, {}, {}, {}, {
|
|
156
|
+
type: import('libs/ui/src/button/const').ButtonType;
|
|
157
|
+
size: import('../../../../../ui/src/index.ts').Size;
|
|
158
|
+
disabled: boolean;
|
|
159
|
+
as: import('libs/ui/src/button/const').ButtonTag;
|
|
160
|
+
outline: boolean;
|
|
161
|
+
color: import('../../../../../ui/src/index.ts').Color;
|
|
162
|
+
square: boolean;
|
|
163
|
+
}>;
|
|
164
|
+
__isFragment?: never;
|
|
165
|
+
__isTeleport?: never;
|
|
166
|
+
__isSuspense?: never;
|
|
167
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('libs/ui/src/button/btn.vue').ButtonProps> & Readonly<{
|
|
168
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
169
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
170
|
+
click: (...args: any[]) => void;
|
|
171
|
+
}, string, {
|
|
172
|
+
type: import('libs/ui/src/button/const').ButtonType;
|
|
173
|
+
size: import('../../../../../ui/src/index.ts').Size;
|
|
174
|
+
disabled: boolean;
|
|
175
|
+
as: import('libs/ui/src/button/const').ButtonTag;
|
|
176
|
+
outline: boolean;
|
|
177
|
+
color: import('../../../../../ui/src/index.ts').Color;
|
|
178
|
+
square: boolean;
|
|
179
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
180
|
+
$slots: {
|
|
181
|
+
default?(_: {}): any;
|
|
182
|
+
};
|
|
183
|
+
});
|
|
184
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
185
|
+
export default controlRenderer;
|
|
186
|
+
export declare const entry: JsonFormsRendererRegistryEntry;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { ControlElement, JsonFormsRendererRegistryEntry } from '@jsonforms/core';
|
|
2
|
+
declare const controlRenderer: import('vue').DefineComponent<{
|
|
3
|
+
schema: import('@jsonforms/core').JsonSchema;
|
|
4
|
+
uischema: ControlElement;
|
|
5
|
+
path: string;
|
|
6
|
+
enabled?: boolean | undefined;
|
|
7
|
+
renderers?: JsonFormsRendererRegistryEntry[] | undefined;
|
|
8
|
+
cells?: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[] | undefined;
|
|
9
|
+
config?: any;
|
|
10
|
+
}, {
|
|
11
|
+
control: import('vue').ComputedRef<import('@jsonforms/vue').Required<ReturnType<typeof import('@jsonforms/core').mapStateToArrayControlProps>>>;
|
|
12
|
+
} & import('@jsonforms/core').DispatchPropsOfArrayControl & {
|
|
13
|
+
styles: import('@jsonforms/vue-vanilla').Styles;
|
|
14
|
+
appliedOptions: import('vue').ComputedRef<any>;
|
|
15
|
+
childUiSchema: import('vue').ComputedRef<import('@jsonforms/core').UISchemaElement>;
|
|
16
|
+
childLabelForIndex: (index: number) => string;
|
|
17
|
+
}, {}, {
|
|
18
|
+
noData(): boolean;
|
|
19
|
+
translations(): any;
|
|
20
|
+
labelKey(): string;
|
|
21
|
+
}, {
|
|
22
|
+
composePaths: (path1: string, path2: string) => string;
|
|
23
|
+
createDefaultValue: (schema: import('@jsonforms/core').JsonSchema, rootSchema: import('@jsonforms/core').JsonSchema) => any;
|
|
24
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
25
|
+
schema: import('@jsonforms/core').JsonSchema;
|
|
26
|
+
uischema: ControlElement;
|
|
27
|
+
path: string;
|
|
28
|
+
enabled?: boolean | undefined;
|
|
29
|
+
renderers?: JsonFormsRendererRegistryEntry[] | undefined;
|
|
30
|
+
cells?: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[] | undefined;
|
|
31
|
+
config?: any;
|
|
32
|
+
}> & Readonly<{}>, {
|
|
33
|
+
enabled: boolean;
|
|
34
|
+
config: Record<string, any>;
|
|
35
|
+
renderers: JsonFormsRendererRegistryEntry[];
|
|
36
|
+
cells: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[];
|
|
37
|
+
}, {}, {
|
|
38
|
+
DispatchRenderer: import('vue').DefineComponent<{
|
|
39
|
+
schema: {
|
|
40
|
+
required: true;
|
|
41
|
+
type: import('vue').PropType<import('@jsonforms/core').JsonSchema>;
|
|
42
|
+
};
|
|
43
|
+
uischema: {
|
|
44
|
+
required: true;
|
|
45
|
+
type: import('vue').PropType<import('@jsonforms/core').UISchemaElement>;
|
|
46
|
+
};
|
|
47
|
+
path: {
|
|
48
|
+
required: true;
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
};
|
|
51
|
+
enabled: {
|
|
52
|
+
required: false;
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: undefined;
|
|
55
|
+
};
|
|
56
|
+
renderers: {
|
|
57
|
+
required: boolean;
|
|
58
|
+
type: import('vue').PropType<import('@jsonforms/core').JsonFormsRendererRegistryEntry[]>;
|
|
59
|
+
default: undefined;
|
|
60
|
+
};
|
|
61
|
+
cells: {
|
|
62
|
+
required: boolean;
|
|
63
|
+
type: import('vue').PropType<import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[]>;
|
|
64
|
+
default: undefined;
|
|
65
|
+
};
|
|
66
|
+
config: {
|
|
67
|
+
required: boolean;
|
|
68
|
+
type: ObjectConstructor;
|
|
69
|
+
default: undefined;
|
|
70
|
+
};
|
|
71
|
+
}, {
|
|
72
|
+
renderer: import('vue').ComputedRef<{
|
|
73
|
+
config: any;
|
|
74
|
+
uischema: NonNullable<import('@jsonforms/core').UISchemaElement | undefined>;
|
|
75
|
+
schema: NonNullable<import('@jsonforms/core').JsonSchema | undefined>;
|
|
76
|
+
enabled: NonNullable<boolean | undefined>;
|
|
77
|
+
visible: NonNullable<boolean | undefined>;
|
|
78
|
+
path: string;
|
|
79
|
+
renderers: import('@jsonforms/core').JsonFormsRendererRegistryEntry[];
|
|
80
|
+
cells: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[];
|
|
81
|
+
uischemas: import('@jsonforms/core').JsonFormsUISchemaRegistryEntry[];
|
|
82
|
+
}>;
|
|
83
|
+
rootSchema: import('vue').ComputedRef<NonNullable<import('@jsonforms/core').JsonSchema>>;
|
|
84
|
+
}, unknown, {
|
|
85
|
+
determinedRenderer(): any;
|
|
86
|
+
}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
87
|
+
schema: {
|
|
88
|
+
required: true;
|
|
89
|
+
type: import('vue').PropType<import('@jsonforms/core').JsonSchema>;
|
|
90
|
+
};
|
|
91
|
+
uischema: {
|
|
92
|
+
required: true;
|
|
93
|
+
type: import('vue').PropType<import('@jsonforms/core').UISchemaElement>;
|
|
94
|
+
};
|
|
95
|
+
path: {
|
|
96
|
+
required: true;
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
};
|
|
99
|
+
enabled: {
|
|
100
|
+
required: false;
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: undefined;
|
|
103
|
+
};
|
|
104
|
+
renderers: {
|
|
105
|
+
required: boolean;
|
|
106
|
+
type: import('vue').PropType<import('@jsonforms/core').JsonFormsRendererRegistryEntry[]>;
|
|
107
|
+
default: undefined;
|
|
108
|
+
};
|
|
109
|
+
cells: {
|
|
110
|
+
required: boolean;
|
|
111
|
+
type: import('vue').PropType<import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[]>;
|
|
112
|
+
default: undefined;
|
|
113
|
+
};
|
|
114
|
+
config: {
|
|
115
|
+
required: boolean;
|
|
116
|
+
type: ObjectConstructor;
|
|
117
|
+
default: undefined;
|
|
118
|
+
};
|
|
119
|
+
}>>, {
|
|
120
|
+
enabled: boolean;
|
|
121
|
+
renderers: import('@jsonforms/core').JsonFormsRendererRegistryEntry[];
|
|
122
|
+
cells: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[];
|
|
123
|
+
config: Record<string, any>;
|
|
124
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
125
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
126
|
+
export default controlRenderer;
|
|
127
|
+
export declare const entry: JsonFormsRendererRegistryEntry;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const arrayRenderers: import('@jsonforms/core').JsonFormsRendererRegistryEntry[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Router } from 'vue-router';
|
|
2
|
+
import { ArrayAction } from '../../../../core/src/index.ts';
|
|
3
|
+
import { IconEnum } from '../../../../../ui/src/index.ts';
|
|
4
|
+
export type Action = {
|
|
5
|
+
label: string;
|
|
6
|
+
icon: IconEnum;
|
|
7
|
+
show: (element: any) => boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const mapArrayActions: (router: Router, actions: ArrayAction[]) => Action[];
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { ControlElement, JsonFormsRendererRegistryEntry } from '@jsonforms/core';
|
|
2
|
+
declare const controlRenderer: import('vue').DefineComponent<{
|
|
3
|
+
schema: import('@jsonforms/core').JsonSchema;
|
|
4
|
+
uischema: ControlElement;
|
|
5
|
+
path: string;
|
|
6
|
+
enabled?: boolean | undefined;
|
|
7
|
+
renderers?: JsonFormsRendererRegistryEntry[] | undefined;
|
|
8
|
+
cells?: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[] | undefined;
|
|
9
|
+
config?: any;
|
|
10
|
+
}, {
|
|
11
|
+
control: import('vue').ComputedRef<{
|
|
12
|
+
uischema: ControlElement;
|
|
13
|
+
schema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
14
|
+
path: string;
|
|
15
|
+
enabled: boolean;
|
|
16
|
+
renderers: JsonFormsRendererRegistryEntry[];
|
|
17
|
+
cells: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[] & {
|
|
18
|
+
tester: import('@jsonforms/core').RankedTester;
|
|
19
|
+
cell: any;
|
|
20
|
+
}[];
|
|
21
|
+
config: any;
|
|
22
|
+
label: string;
|
|
23
|
+
description: string;
|
|
24
|
+
required: NonNullable<boolean | undefined>;
|
|
25
|
+
i18nKeyPrefix: string;
|
|
26
|
+
errors: string;
|
|
27
|
+
data: any;
|
|
28
|
+
rootSchema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
29
|
+
id: string;
|
|
30
|
+
visible: boolean;
|
|
31
|
+
}>;
|
|
32
|
+
} & import('@jsonforms/core').DispatchPropsOfControl & {
|
|
33
|
+
controlWrapper: import('vue').ComputedRef<any>;
|
|
34
|
+
isFocused: import('vue').Ref<boolean, boolean>;
|
|
35
|
+
isTouched: import('vue').Ref<boolean, boolean>;
|
|
36
|
+
onFocus: () => void;
|
|
37
|
+
onBlur: () => void;
|
|
38
|
+
styles: import('@jsonforms/vue-vanilla').Styles;
|
|
39
|
+
appliedOptions: import('vue').ComputedRef<any>;
|
|
40
|
+
onChange: (event: Event) => void;
|
|
41
|
+
}, {}, {
|
|
42
|
+
controlWrapper(): any;
|
|
43
|
+
}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
44
|
+
schema: import('@jsonforms/core').JsonSchema;
|
|
45
|
+
uischema: ControlElement;
|
|
46
|
+
path: string;
|
|
47
|
+
enabled?: boolean | undefined;
|
|
48
|
+
renderers?: JsonFormsRendererRegistryEntry[] | undefined;
|
|
49
|
+
cells?: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[] | undefined;
|
|
50
|
+
config?: any;
|
|
51
|
+
}> & Readonly<{}>, {
|
|
52
|
+
enabled: boolean;
|
|
53
|
+
config: Record<string, any>;
|
|
54
|
+
renderers: JsonFormsRendererRegistryEntry[];
|
|
55
|
+
cells: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[];
|
|
56
|
+
}, {}, {
|
|
57
|
+
ControlWrapper: {
|
|
58
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../../../../ui/src/index.ts').ControlProperties> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
59
|
+
label: string;
|
|
60
|
+
styles: import('../../../../../ui/src/index.ts').MyStyles;
|
|
61
|
+
id: string;
|
|
62
|
+
required: boolean;
|
|
63
|
+
description: string;
|
|
64
|
+
errors: string;
|
|
65
|
+
visible: boolean;
|
|
66
|
+
enabled: boolean;
|
|
67
|
+
isFocused: boolean;
|
|
68
|
+
isTouched: boolean;
|
|
69
|
+
hideLabel: boolean;
|
|
70
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLFieldSetElement, import('vue').ComponentProvideOptions, {
|
|
71
|
+
P: {};
|
|
72
|
+
B: {};
|
|
73
|
+
D: {};
|
|
74
|
+
C: {};
|
|
75
|
+
M: {};
|
|
76
|
+
Defaults: {};
|
|
77
|
+
}, Readonly<import('../../../../../ui/src/index.ts').ControlProperties> & Readonly<{}>, {}, {}, {}, {}, {
|
|
78
|
+
label: string;
|
|
79
|
+
styles: import('../../../../../ui/src/index.ts').MyStyles;
|
|
80
|
+
id: string;
|
|
81
|
+
required: boolean;
|
|
82
|
+
description: string;
|
|
83
|
+
errors: string;
|
|
84
|
+
visible: boolean;
|
|
85
|
+
enabled: boolean;
|
|
86
|
+
isFocused: boolean;
|
|
87
|
+
isTouched: boolean;
|
|
88
|
+
hideLabel: boolean;
|
|
89
|
+
}>;
|
|
90
|
+
__isFragment?: never;
|
|
91
|
+
__isTeleport?: never;
|
|
92
|
+
__isSuspense?: never;
|
|
93
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('../../../../../ui/src/index.ts').ControlProperties> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
94
|
+
label: string;
|
|
95
|
+
styles: import('../../../../../ui/src/index.ts').MyStyles;
|
|
96
|
+
id: string;
|
|
97
|
+
required: boolean;
|
|
98
|
+
description: string;
|
|
99
|
+
errors: string;
|
|
100
|
+
visible: boolean;
|
|
101
|
+
enabled: boolean;
|
|
102
|
+
isFocused: boolean;
|
|
103
|
+
isTouched: boolean;
|
|
104
|
+
hideLabel: boolean;
|
|
105
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
106
|
+
$slots: {
|
|
107
|
+
default?(_: {}): any;
|
|
108
|
+
};
|
|
109
|
+
});
|
|
110
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
111
|
+
export default controlRenderer;
|
|
112
|
+
export declare const entry: JsonFormsRendererRegistryEntry;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { ControlElement, JsonFormsRendererRegistryEntry } from '@jsonforms/core';
|
|
2
|
+
declare const controlRenderer: import('vue').DefineComponent<{
|
|
3
|
+
schema: import('@jsonforms/core').JsonSchema;
|
|
4
|
+
uischema: ControlElement;
|
|
5
|
+
path: string;
|
|
6
|
+
enabled?: boolean | undefined;
|
|
7
|
+
renderers?: JsonFormsRendererRegistryEntry[] | undefined;
|
|
8
|
+
cells?: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[] | undefined;
|
|
9
|
+
config?: any;
|
|
10
|
+
}, {
|
|
11
|
+
control: import('vue').ComputedRef<{
|
|
12
|
+
uischema: ControlElement;
|
|
13
|
+
schema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
14
|
+
path: string;
|
|
15
|
+
enabled: boolean;
|
|
16
|
+
renderers: JsonFormsRendererRegistryEntry[];
|
|
17
|
+
cells: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[] & {
|
|
18
|
+
tester: import('@jsonforms/core').RankedTester;
|
|
19
|
+
cell: any;
|
|
20
|
+
}[];
|
|
21
|
+
config: any;
|
|
22
|
+
label: string;
|
|
23
|
+
description: string;
|
|
24
|
+
required: NonNullable<boolean | undefined>;
|
|
25
|
+
i18nKeyPrefix: string;
|
|
26
|
+
errors: string;
|
|
27
|
+
data: any;
|
|
28
|
+
rootSchema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
29
|
+
id: string;
|
|
30
|
+
visible: boolean;
|
|
31
|
+
}>;
|
|
32
|
+
} & import('@jsonforms/core').DispatchPropsOfControl & {
|
|
33
|
+
controlWrapper: import('vue').ComputedRef<any>;
|
|
34
|
+
isFocused: import('vue').Ref<boolean, boolean>;
|
|
35
|
+
isTouched: import('vue').Ref<boolean, boolean>;
|
|
36
|
+
onFocus: () => void;
|
|
37
|
+
onBlur: () => void;
|
|
38
|
+
styles: import('@jsonforms/vue-vanilla').Styles;
|
|
39
|
+
appliedOptions: import('vue').ComputedRef<any>;
|
|
40
|
+
onChange: (event: Event) => void;
|
|
41
|
+
}, {}, {
|
|
42
|
+
step(): number;
|
|
43
|
+
inputClass(): any[];
|
|
44
|
+
}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
45
|
+
schema: import('@jsonforms/core').JsonSchema;
|
|
46
|
+
uischema: ControlElement;
|
|
47
|
+
path: string;
|
|
48
|
+
enabled?: boolean | undefined;
|
|
49
|
+
renderers?: JsonFormsRendererRegistryEntry[] | undefined;
|
|
50
|
+
cells?: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[] | undefined;
|
|
51
|
+
config?: any;
|
|
52
|
+
}> & Readonly<{}>, {
|
|
53
|
+
enabled: boolean;
|
|
54
|
+
config: Record<string, any>;
|
|
55
|
+
renderers: JsonFormsRendererRegistryEntry[];
|
|
56
|
+
cells: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[];
|
|
57
|
+
}, {}, {
|
|
58
|
+
ControlWrapper: {
|
|
59
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../../../../ui/src/index.ts').ControlProperties> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
60
|
+
label: string;
|
|
61
|
+
styles: import('../../../../../ui/src/index.ts').MyStyles;
|
|
62
|
+
id: string;
|
|
63
|
+
required: boolean;
|
|
64
|
+
description: string;
|
|
65
|
+
errors: string;
|
|
66
|
+
visible: boolean;
|
|
67
|
+
enabled: boolean;
|
|
68
|
+
isFocused: boolean;
|
|
69
|
+
isTouched: boolean;
|
|
70
|
+
hideLabel: boolean;
|
|
71
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLFieldSetElement, import('vue').ComponentProvideOptions, {
|
|
72
|
+
P: {};
|
|
73
|
+
B: {};
|
|
74
|
+
D: {};
|
|
75
|
+
C: {};
|
|
76
|
+
M: {};
|
|
77
|
+
Defaults: {};
|
|
78
|
+
}, Readonly<import('../../../../../ui/src/index.ts').ControlProperties> & Readonly<{}>, {}, {}, {}, {}, {
|
|
79
|
+
label: string;
|
|
80
|
+
styles: import('../../../../../ui/src/index.ts').MyStyles;
|
|
81
|
+
id: string;
|
|
82
|
+
required: boolean;
|
|
83
|
+
description: string;
|
|
84
|
+
errors: string;
|
|
85
|
+
visible: boolean;
|
|
86
|
+
enabled: boolean;
|
|
87
|
+
isFocused: boolean;
|
|
88
|
+
isTouched: boolean;
|
|
89
|
+
hideLabel: boolean;
|
|
90
|
+
}>;
|
|
91
|
+
__isFragment?: never;
|
|
92
|
+
__isTeleport?: never;
|
|
93
|
+
__isSuspense?: never;
|
|
94
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('../../../../../ui/src/index.ts').ControlProperties> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
95
|
+
label: string;
|
|
96
|
+
styles: import('../../../../../ui/src/index.ts').MyStyles;
|
|
97
|
+
id: string;
|
|
98
|
+
required: boolean;
|
|
99
|
+
description: string;
|
|
100
|
+
errors: string;
|
|
101
|
+
visible: boolean;
|
|
102
|
+
enabled: boolean;
|
|
103
|
+
isFocused: boolean;
|
|
104
|
+
isTouched: boolean;
|
|
105
|
+
hideLabel: boolean;
|
|
106
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
107
|
+
$slots: {
|
|
108
|
+
default?(_: {}): any;
|
|
109
|
+
};
|
|
110
|
+
});
|
|
111
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
112
|
+
export default controlRenderer;
|
|
113
|
+
export declare const entry: JsonFormsRendererRegistryEntry;
|