@ghentcdh/json-forms-vue 0.6.9 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -4
- package/composables/useFormEvents.d.ts +32 -0
- package/form-with-actions.component.properties.d.ts +40 -0
- package/form-with-actions.component.vue.d.ts +70 -15
- package/form-with-table.component.properties.d.ts +58 -0
- package/form-with-table.component.vue.d.ts +79 -23
- package/form.component.properties.d.ts +45 -0
- package/form.component.vue.d.ts +55 -36
- package/form.store.d.ts +2 -4
- package/index.d.ts +4 -1
- package/index.js +7523 -418
- package/index.mjs +7532 -427
- package/modal/form-modal.props.d.ts +19 -4
- package/modal/form-modal.service.d.ts +8 -3
- package/modal/form-modal.vue.d.ts +3 -0
- package/package.json +1 -1
- package/renderes/layouts/GridLayout.vue.d.ts +73 -0
- package/renderes/tester.d.ts +1 -0
- package/repository/crud.repository.d.ts +3 -2
- package/table/index.d.ts +1 -0
- package/table/table.component.properties.d.ts +34 -0
- package/table/table.component.vue.d.ts +59 -17
- package/demo/owner.d.ts +0 -55
- package/renderes/array/map-array-actions.d.ts +0 -9
- package/state/form.state.d.ts +0 -12
package/README.md
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
# Vue json-forms frontend
|
|
1
|
+
# Vue json-forms frontend
|
|
2
2
|
|
|
3
3
|
A json-forms library for Vue.js that allows you to create forms based on a JSON schema and a UI schema.
|
|
4
4
|
|
|
5
5
|
It uses the components inside `@ghentcdh/ui` for styling
|
|
6
6
|
|
|
7
|
-
|
|
8
7
|
## Install the library
|
|
9
8
|
|
|
10
9
|
```ssh
|
|
@@ -35,9 +34,9 @@ A json form can be shown using the `FormComponent` component. The component requ
|
|
|
35
34
|
import {FormComponent} from '@ghentcdh/json-forms-vue';
|
|
36
35
|
|
|
37
36
|
<div>
|
|
38
|
-
<FormComponent
|
|
37
|
+
<FormComponent
|
|
39
38
|
:schema="schema"
|
|
40
|
-
:
|
|
39
|
+
:ui-schema="uischema"
|
|
41
40
|
v-model="formData" />
|
|
42
41
|
<pre>{{formData}}</pre>
|
|
43
42
|
</div>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Event names that renderers can dispatch up to the form host. Expand this
|
|
3
|
+
* union as new events are needed.
|
|
4
|
+
*/
|
|
5
|
+
export type FormEventName = 'create';
|
|
6
|
+
/**
|
|
7
|
+
* Payload passed along with every form event. `type` is user-defined (e.g.
|
|
8
|
+
* `'author'`, `'keyword'`) so the host can decide what entity to act on.
|
|
9
|
+
*/
|
|
10
|
+
export type FormEventPayload<TData = any, TResult = any> = {
|
|
11
|
+
event: FormEventName;
|
|
12
|
+
type: string;
|
|
13
|
+
data?: TData;
|
|
14
|
+
onSuccess: (result: TResult) => void;
|
|
15
|
+
onError?: (error: unknown) => void;
|
|
16
|
+
};
|
|
17
|
+
export type FormEventDispatch = <TData = any, TResult = any>(payload: FormEventPayload<TData, TResult>) => void;
|
|
18
|
+
export type FormEvents = {
|
|
19
|
+
dispatch: FormEventDispatch;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Bootstraps the form event helper and provides it to descendant renderers.
|
|
23
|
+
* Call this in the component that hosts `<JsonForms>`, passing a dispatch
|
|
24
|
+
* function (typically a wrapper around the component's Vue `emit`) so events
|
|
25
|
+
* bubble up to the parent.
|
|
26
|
+
*/
|
|
27
|
+
export declare const provideFormEvents: (dispatch: FormEventDispatch) => FormEvents;
|
|
28
|
+
/**
|
|
29
|
+
* Inject the form events helper inside a custom control renderer. Returns a
|
|
30
|
+
* no-op when no provider is found, so renderers stay safe to use standalone.
|
|
31
|
+
*/
|
|
32
|
+
export declare const useFormEvents: () => FormEvents;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
export declare const FormWithActionsProperties: {
|
|
3
|
+
/** Unique identifier; the inner form receives `form_${id}` as its id. */
|
|
4
|
+
id: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
required: boolean;
|
|
7
|
+
};
|
|
8
|
+
/** Title shown when creating a new record (`formData.id` is falsy). */
|
|
9
|
+
createTitle: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
required: boolean;
|
|
12
|
+
};
|
|
13
|
+
/** Title shown when editing an existing record. Falls back to `createTitle`. */
|
|
14
|
+
updateTitle: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
};
|
|
17
|
+
/** JSON schema describing the shape of the form data. */
|
|
18
|
+
schema: {
|
|
19
|
+
type: PropType<any>;
|
|
20
|
+
};
|
|
21
|
+
/** UI schema describing the layout and controls. */
|
|
22
|
+
uiSchema: {
|
|
23
|
+
type: PropType<any>;
|
|
24
|
+
};
|
|
25
|
+
/** When provided, the component submits the form to this URI via `FormStore`. */
|
|
26
|
+
uri: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
};
|
|
29
|
+
/** When true, the form content scrolls and the action bar stays pinned. */
|
|
30
|
+
scrollable: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
/** When true, the component takes the full height of its parent. */
|
|
35
|
+
fullHeight: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare const FormWithActionsEmits: string[];
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
import { FormSchemaModel } from '../../core/src/index.ts';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
id: string;
|
|
4
|
-
createTitle: string;
|
|
5
|
-
updateTitle?: string;
|
|
6
|
-
formSchema: Pick<FormSchemaModel, 'form' | 'uri'>;
|
|
7
|
-
};
|
|
8
|
-
type __VLS_PublicProps = {
|
|
9
|
-
modelValue?: any;
|
|
10
|
-
} & __VLS_Props;
|
|
11
1
|
declare function __VLS_template(): {
|
|
12
2
|
attrs: Partial<{}>;
|
|
13
3
|
slots: {
|
|
@@ -17,13 +7,78 @@ declare function __VLS_template(): {
|
|
|
17
7
|
rootEl: HTMLDivElement;
|
|
18
8
|
};
|
|
19
9
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
21
|
-
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
11
|
+
id: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
required: boolean;
|
|
14
|
+
};
|
|
15
|
+
createTitle: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
required: boolean;
|
|
18
|
+
};
|
|
19
|
+
updateTitle: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
};
|
|
22
|
+
schema: {
|
|
23
|
+
type: import('vue').PropType<any>;
|
|
24
|
+
};
|
|
25
|
+
uiSchema: {
|
|
26
|
+
type: import('vue').PropType<any>;
|
|
27
|
+
};
|
|
28
|
+
uri: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
};
|
|
31
|
+
scrollable: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
fullHeight: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
modelValue: {
|
|
40
|
+
type: import('vue').PropType<any>;
|
|
41
|
+
};
|
|
42
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
43
|
"update:modelValue": (value: any) => void;
|
|
23
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
24
|
-
|
|
44
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
45
|
+
id: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
required: boolean;
|
|
48
|
+
};
|
|
49
|
+
createTitle: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
required: boolean;
|
|
52
|
+
};
|
|
53
|
+
updateTitle: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
};
|
|
56
|
+
schema: {
|
|
57
|
+
type: import('vue').PropType<any>;
|
|
58
|
+
};
|
|
59
|
+
uiSchema: {
|
|
60
|
+
type: import('vue').PropType<any>;
|
|
61
|
+
};
|
|
62
|
+
uri: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
};
|
|
65
|
+
scrollable: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
fullHeight: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
modelValue: {
|
|
74
|
+
type: import('vue').PropType<any>;
|
|
75
|
+
};
|
|
76
|
+
}>> & Readonly<{
|
|
25
77
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
26
|
-
}>, {
|
|
78
|
+
}>, {
|
|
79
|
+
scrollable: boolean;
|
|
80
|
+
fullHeight: boolean;
|
|
81
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
27
82
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
83
|
export default _default;
|
|
29
84
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { JsonFormsLayout } from '../../core/src/index.ts';
|
|
3
|
+
import { TableAction } from '../../../ui/src/index.ts';
|
|
4
|
+
/** Generic record type used for form/table data payloads. */
|
|
5
|
+
export type Data = {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
export declare const FormWithTableProperties: {
|
|
9
|
+
/** Unique identifier used to generate the table form id (`form_table_${id}`). */
|
|
10
|
+
id: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
required: boolean;
|
|
13
|
+
};
|
|
14
|
+
/** Heading displayed above the table. */
|
|
15
|
+
tableTitle: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
required: boolean;
|
|
18
|
+
};
|
|
19
|
+
/** Title shown in the create modal. */
|
|
20
|
+
createTitle: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
required: boolean;
|
|
23
|
+
};
|
|
24
|
+
/** Title shown in the edit modal. Falls back to `createTitle`. */
|
|
25
|
+
updateTitle: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
};
|
|
28
|
+
/** Overrides `uri` as the data source for the table. */
|
|
29
|
+
dataUri: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
};
|
|
32
|
+
/** Custom action buttons rendered in each table row. */
|
|
33
|
+
tableActions: {
|
|
34
|
+
type: PropType<TableAction[]>;
|
|
35
|
+
};
|
|
36
|
+
/** Layout for the create/edit modal form. */
|
|
37
|
+
form: {
|
|
38
|
+
type: PropType<JsonFormsLayout>;
|
|
39
|
+
};
|
|
40
|
+
/** Layout for the table columns. */
|
|
41
|
+
table: {
|
|
42
|
+
type: PropType<JsonFormsLayout>;
|
|
43
|
+
};
|
|
44
|
+
/** Layout for the table filter controls. */
|
|
45
|
+
filter: {
|
|
46
|
+
type: PropType<JsonFormsLayout>;
|
|
47
|
+
};
|
|
48
|
+
/** Base URI used by `FormStore` for CRUD operations and as the default table data source. */
|
|
49
|
+
uri: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
};
|
|
52
|
+
/** Default data used when opening the create modal. */
|
|
53
|
+
initialData: {
|
|
54
|
+
type: PropType<Data>;
|
|
55
|
+
default: () => {};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export declare const FormWithTableEmits: string[];
|
|
@@ -1,25 +1,81 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import { Data } from './form-with-table.component.properties';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
id: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
required: boolean;
|
|
6
|
+
};
|
|
7
|
+
tableTitle: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
required: boolean;
|
|
10
|
+
};
|
|
11
|
+
createTitle: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
required: boolean;
|
|
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
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
41
|
+
id: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
required: boolean;
|
|
44
|
+
};
|
|
45
|
+
tableTitle: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
required: boolean;
|
|
48
|
+
};
|
|
49
|
+
createTitle: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
required: boolean;
|
|
52
|
+
};
|
|
53
|
+
updateTitle: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
};
|
|
56
|
+
dataUri: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
};
|
|
59
|
+
tableActions: {
|
|
60
|
+
type: import('vue').PropType<import('../../../ui/src/index.ts').TableAction[]>;
|
|
61
|
+
};
|
|
62
|
+
form: {
|
|
63
|
+
type: import('vue').PropType<import('../../core/src/index.ts').JsonFormsLayout>;
|
|
64
|
+
};
|
|
65
|
+
table: {
|
|
66
|
+
type: import('vue').PropType<import('../../core/src/index.ts').JsonFormsLayout>;
|
|
67
|
+
};
|
|
68
|
+
filter: {
|
|
69
|
+
type: import('vue').PropType<import('../../core/src/index.ts').JsonFormsLayout>;
|
|
70
|
+
};
|
|
71
|
+
uri: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
};
|
|
74
|
+
initialData: {
|
|
75
|
+
type: import('vue').PropType<Data>;
|
|
76
|
+
default: () => {};
|
|
77
|
+
};
|
|
78
|
+
}>> & Readonly<{}>, {
|
|
23
79
|
initialData: Data;
|
|
24
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
80
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
25
81
|
export default _default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { JsonFormsRendererRegistryEntry } from '@jsonforms/core';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
/** Generic record type used for form data payloads. */
|
|
4
|
+
export type Data = {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
};
|
|
7
|
+
/** Payload emitted by the `submit` event of `FormComponent`. */
|
|
8
|
+
export type SubmitFormEvent = {
|
|
9
|
+
/** Current form data at the time of submission. */
|
|
10
|
+
data: Data;
|
|
11
|
+
/** Whether the form passed validation. */
|
|
12
|
+
valid: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare const FormComponentProperties: {
|
|
15
|
+
/** Unique id applied to the `<form>` element and used as `<json-forms>` key. */
|
|
16
|
+
id: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
required: boolean;
|
|
19
|
+
};
|
|
20
|
+
/** JSON schema describing the shape of the form data. */
|
|
21
|
+
schema: {
|
|
22
|
+
type: PropType<any>;
|
|
23
|
+
required: boolean;
|
|
24
|
+
};
|
|
25
|
+
/** UI schema describing the layout and controls. */
|
|
26
|
+
uiSchema: {
|
|
27
|
+
type: PropType<any>;
|
|
28
|
+
required: boolean;
|
|
29
|
+
};
|
|
30
|
+
/** Extra renderer entries merged in front of the built-in tailwind renderers. */
|
|
31
|
+
renderers: {
|
|
32
|
+
type: PropType<JsonFormsRendererRegistryEntry[]>;
|
|
33
|
+
default: undefined;
|
|
34
|
+
};
|
|
35
|
+
/** Disables all controls inside the form. */
|
|
36
|
+
disabled: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
formData: {
|
|
41
|
+
type: PropType<Data>;
|
|
42
|
+
default: () => {};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export declare const FormComponentEmits: string[];
|
package/form.component.vue.d.ts
CHANGED
|
@@ -1,38 +1,57 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
import { Data } from './form.component.properties';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
id: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
required: boolean;
|
|
6
|
+
};
|
|
7
|
+
schema: {
|
|
8
|
+
type: import('vue').PropType<any>;
|
|
9
|
+
required: boolean;
|
|
10
|
+
};
|
|
11
|
+
uiSchema: {
|
|
12
|
+
type: import('vue').PropType<any>;
|
|
13
|
+
required: boolean;
|
|
14
|
+
};
|
|
15
|
+
renderers: {
|
|
16
|
+
type: import('vue').PropType<import('@jsonforms/core').JsonFormsRendererRegistryEntry[]>;
|
|
17
|
+
default: undefined;
|
|
18
|
+
};
|
|
19
|
+
disabled: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
formData: {
|
|
24
|
+
type: import('vue').PropType<Data>;
|
|
25
|
+
default: () => {};
|
|
26
|
+
};
|
|
27
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
28
|
+
id: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
required: boolean;
|
|
31
|
+
};
|
|
32
|
+
schema: {
|
|
33
|
+
type: import('vue').PropType<any>;
|
|
34
|
+
required: boolean;
|
|
35
|
+
};
|
|
36
|
+
uiSchema: {
|
|
37
|
+
type: import('vue').PropType<any>;
|
|
38
|
+
required: boolean;
|
|
39
|
+
};
|
|
40
|
+
renderers: {
|
|
41
|
+
type: import('vue').PropType<import('@jsonforms/core').JsonFormsRendererRegistryEntry[]>;
|
|
42
|
+
default: undefined;
|
|
43
|
+
};
|
|
44
|
+
disabled: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
formData: {
|
|
49
|
+
type: import('vue').PropType<Data>;
|
|
50
|
+
default: () => {};
|
|
51
|
+
};
|
|
52
|
+
}>> & Readonly<{}>, {
|
|
34
53
|
disabled: boolean;
|
|
35
|
-
renderers: JsonFormsRendererRegistryEntry[];
|
|
36
|
-
|
|
37
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
54
|
+
renderers: import('@jsonforms/core').JsonFormsRendererRegistryEntry[];
|
|
55
|
+
formData: Data;
|
|
56
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLFormElement>;
|
|
38
57
|
export default _default;
|
package/form.store.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { FormSchemaModel } from '../../core/src/index.ts';
|
|
2
1
|
export declare class FormStore {
|
|
3
|
-
private readonly
|
|
4
|
-
constructor(
|
|
5
|
-
private get uri();
|
|
2
|
+
private readonly uri;
|
|
3
|
+
constructor(uri: string);
|
|
6
4
|
delete<T>(data: T & {
|
|
7
5
|
id?: string;
|
|
8
6
|
}): Promise<void>;
|
package/index.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
export * from './form.store';
|
|
2
|
+
export * from './form.component.properties';
|
|
3
|
+
export * from './form-with-actions.component.properties';
|
|
4
|
+
export * from './form-with-table.component.properties';
|
|
2
5
|
export * from './renderes/controls';
|
|
3
6
|
export * from './renderes/array';
|
|
4
7
|
export * from './renderes/layouts';
|
|
5
8
|
export * from './renderes/tester';
|
|
6
|
-
export * from './state/form.state';
|
|
7
9
|
export { default as FormWithTableComponent } from './form-with-table.component.vue';
|
|
8
10
|
export { default as FormWithActions } from './form-with-actions.component.vue';
|
|
9
11
|
export { default as FormComponent } from './form.component.vue';
|
|
10
12
|
export * from './modal';
|
|
11
13
|
export * from './table';
|
|
12
14
|
export * from './repository';
|
|
15
|
+
export * from './composables/useFormEvents';
|