@ghentcdh/json-forms-vue 1.1.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/composables/useFormEvents.d.ts +34 -0
- package/composables/useHttpClient.d.ts +12 -0
- package/forms/Dispatch.vue.d.ts +10 -0
- package/forms/FormComponent.properties.d.ts +64 -0
- package/forms/FormComponent.vue.d.ts +95 -0
- package/forms/errorMessages.d.ts +10 -0
- package/forms/errorMode.d.ts +5 -0
- package/forms/modal/FormModal.properties.d.ts +75 -0
- package/forms/modal/FormModal.vue.d.ts +353 -0
- package/forms/modal/FormModalService.d.ts +42 -0
- package/forms/renderers/array/ArrayRenderer.vue.d.ts +7 -0
- package/forms/renderers/array/ArrayRenderers.d.ts +10 -0
- package/forms/renderers/controls/AutocompleteControlRenderer.vue.d.ts +7 -0
- package/forms/renderers/controls/BooleanControlRenderer.vue.d.ts +7 -0
- package/forms/renderers/controls/MarkdownControlRenderer.vue.d.ts +7 -0
- package/forms/renderers/controls/MultiSelectControlRenderer.vue.d.ts +7 -0
- package/forms/renderers/controls/NumberControlRenderer.vue.d.ts +7 -0
- package/forms/renderers/controls/SelectControlRenderer.vue.d.ts +7 -0
- package/forms/renderers/controls/StringControlRenderer.vue.d.ts +7 -0
- package/forms/renderers/controls/TextAreaControlRenderer.vue.d.ts +7 -0
- package/forms/renderers/controls/composables/useControlBinding.d.ts +36 -0
- package/forms/renderers/controls/composables/useFetchOption.d.ts +17 -0
- package/forms/renderers/controls/composables/useInput.d.ts +24 -0
- package/forms/renderers/controls/composables/useReadonlyBinding.d.ts +135 -0
- package/forms/renderers/controls/composables/useSelectBinding.d.ts +29 -0
- package/forms/renderers/controls/index.d.ts +10 -0
- package/forms/renderers/controls/readonly/ControlReadonlyRenderer.vue.d.ts +7 -0
- package/forms/renderers/controls/readonly/ReadonlyLabel.vue.d.ts +254 -0
- package/forms/renderers/controls/readonly/__tests__/formatDate.spec.d.ts +1 -0
- package/forms/renderers/controls/readonly/constants.d.ts +2 -0
- package/forms/renderers/controls/readonly/displayValue/BooleanValue.vue.d.ts +46 -0
- package/forms/renderers/controls/readonly/displayValue/DateValue.vue.d.ts +46 -0
- package/forms/renderers/controls/readonly/displayValue/LinkValue.vue.d.ts +46 -0
- package/forms/renderers/controls/readonly/displayValue/MarkdownValue.vue.d.ts +46 -0
- package/forms/renderers/controls/readonly/displayValue/NotSetValue.vue.d.ts +46 -0
- package/forms/renderers/controls/readonly/displayValue/NumberValue.vue.d.ts +46 -0
- package/forms/renderers/controls/readonly/displayValue/ObjectValue.vue.d.ts +46 -0
- package/forms/renderers/controls/readonly/displayValue/StringValue.vue.d.ts +46 -0
- package/forms/renderers/controls/readonly/displayValue/ViewDetailValue.vue.d.ts +46 -0
- package/forms/renderers/controls/readonly/displayValue/displayValue.properties.d.ts +23 -0
- package/forms/renderers/controls/readonly/displayValue/formatDate.d.ts +25 -0
- package/forms/renderers/controls/readonly/displayValue/index.d.ts +1 -0
- package/forms/renderers/controls/readonly/index.d.ts +10 -0
- package/forms/renderers/controls/readonly/useDisplayValue.d.ts +1 -0
- package/forms/renderers/controls/resource.d.ts +262 -0
- package/forms/renderers/index.d.ts +43 -0
- package/forms/renderers/layout/CollapseLayoutRenderer.vue.d.ts +7 -0
- package/forms/renderers/layout/LayoutRenderer.vue.d.ts +7 -0
- package/forms/renderers/layout/LayoutRenderers.d.ts +20 -0
- package/forms/renderers/layout/ReadOnlyLayoutRenderer.vue.d.ts +7 -0
- package/forms/renderers/layout/colspan.d.ts +1 -0
- package/forms/renderers/registry.d.ts +7 -0
- package/forms/scope.d.ts +4 -0
- package/forms/types.d.ts +36 -0
- package/http-client.d.ts +14 -0
- package/index.d.ts +15 -8
- package/index.js +1702 -1077
- package/package.json +10 -18
- package/repository/CrudRepository.d.ts +34 -0
- package/repository/index.d.ts +1 -0
- package/table/TableComponent.properties.d.ts +49 -0
- package/table/TableComponent.vue.d.ts +92 -0
- package/table/TableToolbar.vue.d.ts +36 -0
- package/table/cells/index.d.ts +10 -0
- package/table/filter/FilterRowInput.vue.d.ts +17 -0
- package/table/filter/TableFilter.vue.d.ts +16 -0
- package/table/index.d.ts +6 -0
- package/testers/__tests__/jsonforms-testers.spec.d.ts +1 -0
- package/testers/__tests__/tester.spec.d.ts +1 -0
- package/testers/jsonforms-testers.d.ts +27 -0
- package/testers/tester.d.ts +16 -0
- package/view/modal/ViewModal.properties.d.ts +82 -0
- package/view/modal/ViewModal.vue.d.ts +357 -0
- package/form.store.d.ts +0 -8
- package/index.mjs +0 -1892
- package/testing.mjs +0 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { SizeType } from '../../../../core/src/index.ts';
|
|
2
|
+
import { FormModalResult } from './FormModal.properties';
|
|
3
|
+
import { FormEventPayload } from '../../composables/useFormEvents';
|
|
4
|
+
import { HttpClient } from '../../http-client';
|
|
5
|
+
export declare class JsonFormModalService {
|
|
6
|
+
static openModal<DATA = any>({ initialData, modalTitle, schema, uiSchema, modalSize, onClose, onEvents, http, renderers, }: {
|
|
7
|
+
initialData?: DATA;
|
|
8
|
+
schema: any;
|
|
9
|
+
uiSchema: any;
|
|
10
|
+
modalSize?: SizeType;
|
|
11
|
+
modalTitle: string;
|
|
12
|
+
onClose: (result: FormModalResult) => void;
|
|
13
|
+
onEvents?: (payload: FormEventPayload) => void;
|
|
14
|
+
http?: HttpClient;
|
|
15
|
+
renderers?: any[];
|
|
16
|
+
}): void;
|
|
17
|
+
static openViewModal<DATA = any>({ data, modalTitle, schema, uiSchema, modalSize, onClose, onEdit, onDelete, renderers, onView, }: {
|
|
18
|
+
data?: DATA;
|
|
19
|
+
schema: any;
|
|
20
|
+
uiSchema: any;
|
|
21
|
+
modalSize?: SizeType;
|
|
22
|
+
renderers?: any[];
|
|
23
|
+
modalTitle: string;
|
|
24
|
+
onClose?: () => void;
|
|
25
|
+
/**
|
|
26
|
+
* Called when the user clicks Edit.
|
|
27
|
+
* Passed as `onEdit` so Vue's v-bind spread in modalWrapper wires it as
|
|
28
|
+
* a listener for the `edit` event emitted by ViewModal.
|
|
29
|
+
*/
|
|
30
|
+
onEdit?: (data: DATA) => void;
|
|
31
|
+
/**
|
|
32
|
+
* Called when the user clicks Delete.
|
|
33
|
+
* Passed as `onDelete` so Vue's v-bind spread in modalWrapper wires it as
|
|
34
|
+
* a listener for the `delete` event emitted by ViewModal.
|
|
35
|
+
*/
|
|
36
|
+
onDelete?: (data: DATA) => void;
|
|
37
|
+
/**
|
|
38
|
+
* Called when the user clicks view in the form.
|
|
39
|
+
*/
|
|
40
|
+
onView?: (data: any) => void;
|
|
41
|
+
}): void;
|
|
42
|
+
}
|
|
@@ -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: import('../../../testers/jsonforms-testers').RankedTester;
|
|
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,36 @@
|
|
|
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
|
+
additionalProps?: useCustomProps;
|
|
10
|
+
setDefaultValue?: (field: FieldContext) => void;
|
|
11
|
+
}) => (uischema: ControlElement, schema: JsonSchema, options?: {}) => {
|
|
12
|
+
formValues: import('vee-validate').GenericObject;
|
|
13
|
+
uischema: ControlElement;
|
|
14
|
+
schema: JsonSchema;
|
|
15
|
+
wrapper: import('vue').ComputedRef<any>;
|
|
16
|
+
value: Ref<unknown, unknown>;
|
|
17
|
+
field: FieldContext<unknown>;
|
|
18
|
+
onBlur: () => void;
|
|
19
|
+
onChange: () => void;
|
|
20
|
+
appliedOptions: import('vue').ComputedRef<{
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
} | CONTROL_OPTION>;
|
|
23
|
+
};
|
|
24
|
+
export declare const useControlBinding: (uischema: ControlElement, schema: JsonSchema, options?: UseInputOptions) => {
|
|
25
|
+
formValues: import('vee-validate').GenericObject;
|
|
26
|
+
uischema: ControlElement;
|
|
27
|
+
schema: JsonSchema;
|
|
28
|
+
wrapper: import('vue').ComputedRef<any>;
|
|
29
|
+
value: Ref<unknown, unknown>;
|
|
30
|
+
field: FieldContext<unknown>;
|
|
31
|
+
onBlur: () => void;
|
|
32
|
+
onChange: () => void;
|
|
33
|
+
appliedOptions: import('vue').ComputedRef<ControlOption | {
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
}>;
|
|
36
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AutocompleteAllOptions } from '../../../../../../core/src/index.ts';
|
|
2
|
+
import { HttpClient } from '../../../../http-client';
|
|
3
|
+
/**
|
|
4
|
+
* Resolves autocomplete configuration from control options.
|
|
5
|
+
*
|
|
6
|
+
* Dispatches to either {@link useRemoteOption} (when `uri` is set) or
|
|
7
|
+
* {@link useResourceOptions} (when `resource` is set). Returns a unified
|
|
8
|
+
* config object with `fetchOptions`, label/value keys, and optional
|
|
9
|
+
* inline-create form details.
|
|
10
|
+
*/
|
|
11
|
+
export declare const useFetchOptions: (options: AutocompleteAllOptions, http: HttpClient, formValues?: any) => Promise<{
|
|
12
|
+
fetchOptions: ((searchTerm: string, signal: AbortSignal) => Promise<any>) | null;
|
|
13
|
+
labelKey: string | undefined;
|
|
14
|
+
valueKey: string | undefined;
|
|
15
|
+
enableCreate: boolean;
|
|
16
|
+
form: Record<string, any> | null;
|
|
17
|
+
}>;
|
|
@@ -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,135 @@
|
|
|
1
|
+
import { ControlElement, JsonSchema } from '@jsonforms/core';
|
|
2
|
+
import { FieldContext } from 'vee-validate';
|
|
3
|
+
import { ControlOption } from '../../../../../../core/src/index.ts';
|
|
4
|
+
import { useCustomProps } from './useControlBinding';
|
|
5
|
+
import { UseInputOptions } from './useInput';
|
|
6
|
+
export declare const isLink: (value: string) => boolean;
|
|
7
|
+
export declare const getNestedValue: (value: any, opts: any, formValues: any) => any;
|
|
8
|
+
export declare const useCustomReadonlyControlBinding: <CONTROL_OPTION extends ControlOption = ControlOption>({ useProps, setDefaultValue, }?: {
|
|
9
|
+
useProps?: useCustomProps;
|
|
10
|
+
additionalProps?: useCustomProps;
|
|
11
|
+
setDefaultValue?: (field: FieldContext) => void;
|
|
12
|
+
}) => (uischema: ControlElement, schema: JsonSchema, options?: {}) => {
|
|
13
|
+
wrapper: import('vue').ComputedRef<any>;
|
|
14
|
+
appliedOptions: import('vue').ComputedRef<{
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
} | CONTROL_OPTION>;
|
|
17
|
+
displayWrapper: import('vue').ComputedRef<{
|
|
18
|
+
component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
19
|
+
direction: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
path: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
displayValue: {
|
|
28
|
+
type: import('vue').PropType<unknown>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
options: {
|
|
32
|
+
type: ObjectConstructor;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
value: {
|
|
36
|
+
type: import('vue').PropType<unknown>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
40
|
+
direction: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
path: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
required: true;
|
|
47
|
+
};
|
|
48
|
+
displayValue: {
|
|
49
|
+
type: import('vue').PropType<unknown>;
|
|
50
|
+
required: true;
|
|
51
|
+
};
|
|
52
|
+
options: {
|
|
53
|
+
type: ObjectConstructor;
|
|
54
|
+
required: true;
|
|
55
|
+
};
|
|
56
|
+
value: {
|
|
57
|
+
type: import('vue').PropType<unknown>;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
60
|
+
}>> & Readonly<{}>, {
|
|
61
|
+
direction: string;
|
|
62
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
63
|
+
value: {
|
|
64
|
+
value: unknown;
|
|
65
|
+
path: string;
|
|
66
|
+
displayValue: any;
|
|
67
|
+
options: {
|
|
68
|
+
[key: string]: any;
|
|
69
|
+
};
|
|
70
|
+
direction: "ltr" | "rtl";
|
|
71
|
+
};
|
|
72
|
+
}>;
|
|
73
|
+
};
|
|
74
|
+
export declare const useReadonlyControlBinding: (uischema: ControlElement, schema: JsonSchema, options?: UseInputOptions) => {
|
|
75
|
+
wrapper: import('vue').ComputedRef<any>;
|
|
76
|
+
appliedOptions: import('vue').ComputedRef<ControlOption | {
|
|
77
|
+
[key: string]: any;
|
|
78
|
+
}>;
|
|
79
|
+
displayWrapper: import('vue').ComputedRef<{
|
|
80
|
+
component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
81
|
+
direction: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
path: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
required: true;
|
|
88
|
+
};
|
|
89
|
+
displayValue: {
|
|
90
|
+
type: import('vue').PropType<unknown>;
|
|
91
|
+
required: true;
|
|
92
|
+
};
|
|
93
|
+
options: {
|
|
94
|
+
type: ObjectConstructor;
|
|
95
|
+
required: true;
|
|
96
|
+
};
|
|
97
|
+
value: {
|
|
98
|
+
type: import('vue').PropType<unknown>;
|
|
99
|
+
required: true;
|
|
100
|
+
};
|
|
101
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
102
|
+
direction: {
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
default: string;
|
|
105
|
+
};
|
|
106
|
+
path: {
|
|
107
|
+
type: StringConstructor;
|
|
108
|
+
required: true;
|
|
109
|
+
};
|
|
110
|
+
displayValue: {
|
|
111
|
+
type: import('vue').PropType<unknown>;
|
|
112
|
+
required: true;
|
|
113
|
+
};
|
|
114
|
+
options: {
|
|
115
|
+
type: ObjectConstructor;
|
|
116
|
+
required: true;
|
|
117
|
+
};
|
|
118
|
+
value: {
|
|
119
|
+
type: import('vue').PropType<unknown>;
|
|
120
|
+
required: true;
|
|
121
|
+
};
|
|
122
|
+
}>> & Readonly<{}>, {
|
|
123
|
+
direction: string;
|
|
124
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
125
|
+
value: {
|
|
126
|
+
value: unknown;
|
|
127
|
+
path: string;
|
|
128
|
+
displayValue: any;
|
|
129
|
+
options: {
|
|
130
|
+
[key: string]: any;
|
|
131
|
+
};
|
|
132
|
+
direction: "ltr" | "rtl";
|
|
133
|
+
};
|
|
134
|
+
}>;
|
|
135
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
formValues: import('vee-validate').GenericObject;
|
|
6
|
+
uischema: ControlElement;
|
|
7
|
+
schema: JsonSchema;
|
|
8
|
+
wrapper: import('vue').ComputedRef<any>;
|
|
9
|
+
value: import('vue').Ref<unknown, unknown>;
|
|
10
|
+
field: FieldContext<unknown>;
|
|
11
|
+
onBlur: () => void;
|
|
12
|
+
onChange: () => void;
|
|
13
|
+
appliedOptions: import('vue').ComputedRef<SelectOptions | {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}>;
|
|
16
|
+
};
|
|
17
|
+
export declare const useAutocompleteBinding: (uischema: ControlElement, schema: JsonSchema, options?: {}) => {
|
|
18
|
+
formValues: import('vee-validate').GenericObject;
|
|
19
|
+
uischema: ControlElement;
|
|
20
|
+
schema: JsonSchema;
|
|
21
|
+
wrapper: import('vue').ComputedRef<any>;
|
|
22
|
+
value: import('vue').Ref<unknown, unknown>;
|
|
23
|
+
field: FieldContext<unknown>;
|
|
24
|
+
onBlur: () => void;
|
|
25
|
+
onChange: () => void;
|
|
26
|
+
appliedOptions: import('vue').ComputedRef<AutocompleteAllOptions | {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}>;
|
|
29
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const controlRenderers: {
|
|
2
|
+
tester: import('../../../testers/jsonforms-testers').RankedTester;
|
|
3
|
+
renderer: import('vue').DefineComponent<{
|
|
4
|
+
uischema: import('@jsonforms/core').ControlElement;
|
|
5
|
+
schema: import('@jsonforms/core').JsonSchema;
|
|
6
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
7
|
+
uischema: import('@jsonforms/core').ControlElement;
|
|
8
|
+
schema: import('@jsonforms/core').JsonSchema;
|
|
9
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
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,254 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: any;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
11
|
+
id: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: undefined;
|
|
14
|
+
};
|
|
15
|
+
placeholder: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: undefined;
|
|
18
|
+
};
|
|
19
|
+
description: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: undefined;
|
|
22
|
+
};
|
|
23
|
+
errors: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: undefined;
|
|
26
|
+
};
|
|
27
|
+
label: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: undefined;
|
|
30
|
+
};
|
|
31
|
+
visible: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
required: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
enabled: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
isFocused: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
isTouched: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
hideLabel: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
styles: {
|
|
56
|
+
type: import('vue').PropType<import('../../../../../../../ui/src/index.ts').MyStyles>;
|
|
57
|
+
default: () => {
|
|
58
|
+
readonly group: {
|
|
59
|
+
readonly root: "group";
|
|
60
|
+
readonly label: "text-primary text-lg font-bold";
|
|
61
|
+
readonly item: "group-item";
|
|
62
|
+
};
|
|
63
|
+
readonly verticalLayout: {
|
|
64
|
+
readonly root: "flex flex-col gap-x-2";
|
|
65
|
+
readonly item: "w-full";
|
|
66
|
+
};
|
|
67
|
+
readonly horizontalLayout: {
|
|
68
|
+
readonly root: "flex flex-row gap-x-2";
|
|
69
|
+
readonly item: "w-full";
|
|
70
|
+
};
|
|
71
|
+
readonly arrayList: {
|
|
72
|
+
readonly root: "fieldset";
|
|
73
|
+
readonly legend: "fieldset-legend text-xl capitalize";
|
|
74
|
+
};
|
|
75
|
+
readonly control: {
|
|
76
|
+
readonly root: "fieldset";
|
|
77
|
+
readonly wrapper: "fieldset";
|
|
78
|
+
readonly label: "fieldset-legend";
|
|
79
|
+
readonly error: "";
|
|
80
|
+
readonly input: "input";
|
|
81
|
+
readonly textarea: "textarea h-32";
|
|
82
|
+
readonly checkbox: "checkbox";
|
|
83
|
+
readonly select: "input pr-14";
|
|
84
|
+
readonly description: "form-control--description label text-xs text-gray-500";
|
|
85
|
+
};
|
|
86
|
+
readonly fixedArrayList: {
|
|
87
|
+
readonly root: "flex flex-row gap-x-2";
|
|
88
|
+
readonly item: "w-full";
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
width: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
size: {
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
default: undefined;
|
|
99
|
+
};
|
|
100
|
+
hideErrors: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: boolean;
|
|
103
|
+
};
|
|
104
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
105
|
+
id: {
|
|
106
|
+
type: StringConstructor;
|
|
107
|
+
default: undefined;
|
|
108
|
+
};
|
|
109
|
+
placeholder: {
|
|
110
|
+
type: StringConstructor;
|
|
111
|
+
default: undefined;
|
|
112
|
+
};
|
|
113
|
+
description: {
|
|
114
|
+
type: StringConstructor;
|
|
115
|
+
default: undefined;
|
|
116
|
+
};
|
|
117
|
+
errors: {
|
|
118
|
+
type: StringConstructor;
|
|
119
|
+
default: undefined;
|
|
120
|
+
};
|
|
121
|
+
label: {
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
default: undefined;
|
|
124
|
+
};
|
|
125
|
+
visible: {
|
|
126
|
+
type: BooleanConstructor;
|
|
127
|
+
default: boolean;
|
|
128
|
+
};
|
|
129
|
+
required: {
|
|
130
|
+
type: BooleanConstructor;
|
|
131
|
+
default: boolean;
|
|
132
|
+
};
|
|
133
|
+
enabled: {
|
|
134
|
+
type: BooleanConstructor;
|
|
135
|
+
default: boolean;
|
|
136
|
+
};
|
|
137
|
+
isFocused: {
|
|
138
|
+
type: BooleanConstructor;
|
|
139
|
+
default: boolean;
|
|
140
|
+
};
|
|
141
|
+
isTouched: {
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
default: boolean;
|
|
144
|
+
};
|
|
145
|
+
hideLabel: {
|
|
146
|
+
type: BooleanConstructor;
|
|
147
|
+
default: boolean;
|
|
148
|
+
};
|
|
149
|
+
styles: {
|
|
150
|
+
type: import('vue').PropType<import('../../../../../../../ui/src/index.ts').MyStyles>;
|
|
151
|
+
default: () => {
|
|
152
|
+
readonly group: {
|
|
153
|
+
readonly root: "group";
|
|
154
|
+
readonly label: "text-primary text-lg font-bold";
|
|
155
|
+
readonly item: "group-item";
|
|
156
|
+
};
|
|
157
|
+
readonly verticalLayout: {
|
|
158
|
+
readonly root: "flex flex-col gap-x-2";
|
|
159
|
+
readonly item: "w-full";
|
|
160
|
+
};
|
|
161
|
+
readonly horizontalLayout: {
|
|
162
|
+
readonly root: "flex flex-row gap-x-2";
|
|
163
|
+
readonly item: "w-full";
|
|
164
|
+
};
|
|
165
|
+
readonly arrayList: {
|
|
166
|
+
readonly root: "fieldset";
|
|
167
|
+
readonly legend: "fieldset-legend text-xl capitalize";
|
|
168
|
+
};
|
|
169
|
+
readonly control: {
|
|
170
|
+
readonly root: "fieldset";
|
|
171
|
+
readonly wrapper: "fieldset";
|
|
172
|
+
readonly label: "fieldset-legend";
|
|
173
|
+
readonly error: "";
|
|
174
|
+
readonly input: "input";
|
|
175
|
+
readonly textarea: "textarea h-32";
|
|
176
|
+
readonly checkbox: "checkbox";
|
|
177
|
+
readonly select: "input pr-14";
|
|
178
|
+
readonly description: "form-control--description label text-xs text-gray-500";
|
|
179
|
+
};
|
|
180
|
+
readonly fixedArrayList: {
|
|
181
|
+
readonly root: "flex flex-row gap-x-2";
|
|
182
|
+
readonly item: "w-full";
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
width: {
|
|
187
|
+
type: StringConstructor;
|
|
188
|
+
default: string;
|
|
189
|
+
};
|
|
190
|
+
size: {
|
|
191
|
+
type: StringConstructor;
|
|
192
|
+
default: undefined;
|
|
193
|
+
};
|
|
194
|
+
hideErrors: {
|
|
195
|
+
type: BooleanConstructor;
|
|
196
|
+
default: boolean;
|
|
197
|
+
};
|
|
198
|
+
}>> & Readonly<{}>, {
|
|
199
|
+
size: string;
|
|
200
|
+
label: string;
|
|
201
|
+
required: boolean;
|
|
202
|
+
id: string;
|
|
203
|
+
placeholder: string;
|
|
204
|
+
width: string;
|
|
205
|
+
styles: {
|
|
206
|
+
readonly group: {
|
|
207
|
+
readonly root: "group";
|
|
208
|
+
readonly label: "text-primary text-lg font-bold";
|
|
209
|
+
readonly item: "group-item";
|
|
210
|
+
};
|
|
211
|
+
readonly verticalLayout: {
|
|
212
|
+
readonly root: "flex flex-col gap-x-2";
|
|
213
|
+
readonly item: "w-full";
|
|
214
|
+
};
|
|
215
|
+
readonly horizontalLayout: {
|
|
216
|
+
readonly root: "flex flex-row gap-x-2";
|
|
217
|
+
readonly item: "w-full";
|
|
218
|
+
};
|
|
219
|
+
readonly arrayList: {
|
|
220
|
+
readonly root: "fieldset";
|
|
221
|
+
readonly legend: "fieldset-legend text-xl capitalize";
|
|
222
|
+
};
|
|
223
|
+
readonly control: {
|
|
224
|
+
readonly root: "fieldset";
|
|
225
|
+
readonly wrapper: "fieldset";
|
|
226
|
+
readonly label: "fieldset-legend";
|
|
227
|
+
readonly error: "";
|
|
228
|
+
readonly input: "input";
|
|
229
|
+
readonly textarea: "textarea h-32";
|
|
230
|
+
readonly checkbox: "checkbox";
|
|
231
|
+
readonly select: "input pr-14";
|
|
232
|
+
readonly description: "form-control--description label text-xs text-gray-500";
|
|
233
|
+
};
|
|
234
|
+
readonly fixedArrayList: {
|
|
235
|
+
readonly root: "flex flex-row gap-x-2";
|
|
236
|
+
readonly item: "w-full";
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
hideLabel: boolean;
|
|
240
|
+
visible: boolean;
|
|
241
|
+
errors: string;
|
|
242
|
+
isTouched: boolean;
|
|
243
|
+
description: string;
|
|
244
|
+
enabled: boolean;
|
|
245
|
+
isFocused: boolean;
|
|
246
|
+
hideErrors: boolean;
|
|
247
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
248
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
249
|
+
export default _default;
|
|
250
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
251
|
+
new (): {
|
|
252
|
+
$slots: S;
|
|
253
|
+
};
|
|
254
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|