@knime/jsonforms 1.6.9 → 1.7.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/CHANGELOG.md +18 -0
- package/dist/AnyOfTwinlist-D7gkxtYi.js +22 -0
- package/dist/{BaseButton-B6Z2uYGV.js → BaseButton-nH3iSIOK.js} +1 -1
- package/dist/{Button-B27OsWa6.js → Button-DnQZFkaO.js} +2 -2
- package/dist/{Checkbox-Bl3rvtXe.js → Checkbox-DB9YeQa-.js} +1 -1
- package/dist/{CheckboxControl-BAIwtCZF.js → CheckboxControl-hkHWMBsv.js} +2 -2
- package/dist/{Checkboxes-Cb1lJdBP.js → Checkboxes-C_qM6Iao.js} +2 -2
- package/dist/{CheckboxesControl-CQSzjloD.js → CheckboxesControl-DRNda60A.js} +3 -3
- package/dist/{ComboBoxControl-CmY_qMv_.js → ComboBoxControl-Dd0UZdMx.js} +77 -89
- package/dist/{DateControl-BL2H5BjS.js → DateControl-BmqofCSf.js} +1 -1
- package/dist/{DateTimeControl-BYuJUqBc.js → DateTimeControl-B7uvqC1s.js} +2 -2
- package/dist/{DateTimeFormatInput-BagQnUJb.js → DateTimeFormatInput-CsEAVqAA.js} +3 -3
- package/dist/{DateTimeFormatPickerControl-DmbGr3EH.js → DateTimeFormatPickerControl-BK80kZf0.js} +2 -2
- package/dist/{DateTimeFormatPickerWithTypeControl-CGCdH2_0.js → DateTimeFormatPickerWithTypeControl-CS8APLBp.js} +3 -3
- package/dist/{DateTimeInput-Cbw4cu1f.js → DateTimeInput-DP2yHD9r.js} +14 -13
- package/dist/{Dropdown-xSUsqbQu.js → Dropdown-D8qp_4wZ.js} +30 -29
- package/dist/DropdownControl-B2fs1yBj.js +84 -0
- package/dist/{FunctionButton-BjutjqfY.js → FunctionButton-Bo0NcfGh.js} +2 -2
- package/dist/{HorizontalLayout-HzwqDGLQ.js → HorizontalLayout-Bg5vYcO1.js} +1 -1
- package/dist/{InputField-CWbS01h9.js → InputField-DRLCzzDf.js} +1 -1
- package/dist/{IntegerControl-BNz67bUk.js → IntegerControl-HLRox7w7.js} +1 -1
- package/dist/{IntervalControl-jM22Q0CQ.js → IntervalControl-D-xUIRW3.js} +4 -4
- package/dist/LoadingDropdown-DkxltiwQ.js +40 -0
- package/dist/MultimodeTwinlistControl-CV2v4Y5n.js +526 -0
- package/dist/{MultiselectListBox-D5smzcVZ.js → MultiselectListBox-BFQxtoyR.js} +1 -1
- package/dist/{NameFilter-B9TOgIBA.js → NameFilter-BxfjNVu-.js} +1 -1
- package/dist/{NumberControl-YCMcJfZB.js → NumberControl-Df91UAXl.js} +1 -1
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-DLqtcp04.js +53 -0
- package/dist/{NumberInput-DO8rNjya.js → NumberInput-BLlTeOig.js} +1 -1
- package/dist/OneOfDropdown-CLPbmMt7.js +34 -0
- package/dist/{RadioControl-DK_i_SC9.js → RadioControl-CDi8WbsE.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-B_Dxf3fU.js → RadioControlBase.vue_vue_type_script_setup_true_lang-B6clHvd5.js} +3 -3
- package/dist/{RichTextControl-Bp6N-XYM.js → RichTextControl-YMNSyY3O.js} +6 -6
- package/dist/{SectionHeading-wDPgvJNi.js → SectionHeading-D8h1zy67.js} +1 -1
- package/dist/{SectionLayout-DYLzJvJs.js → SectionLayout-DBiG5Ubc.js} +3 -3
- package/dist/{SettingsSubPanel-DTubXv1M.js → SettingsSubPanel--LD_hsgG.js} +2 -2
- package/dist/{SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-dAvPWPee.js → SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-BM4d25sK.js} +1024 -1022
- package/dist/{SettingsSubPanelLayout-CAtNgx_A.js → SettingsSubPanelLayout-By5U2J68.js} +5 -5
- package/dist/{SimpleButtonControl-D2slFPzs.js → SimpleButtonControl-B47jBtrM.js} +6 -6
- package/dist/SimpleTwinlistControl-DoRJkKPs.js +22 -0
- package/dist/SingleSelectControl-zE9ck9JX.js +58 -0
- package/dist/SortListControl-C5DXqqPG.js +372 -0
- package/dist/{TextAreaControl-CxNkzjdq.js → TextAreaControl-D2-nyO1m.js} +1 -1
- package/dist/{TextControl-j8Bk4RzX.js → TextControl-Ss9_5V2f.js} +1 -1
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-DaEoFVBw.js +93 -0
- package/dist/{TimeControl-vGEtfCEt.js → TimeControl-CblSq-0a.js} +2 -2
- package/dist/TwinlistControlBase-Xe8xQAyG.js +40 -0
- package/dist/{TwinlistLoadingInfo-DnhM2U43.js → TwinlistLoadingInfo-BHhpo_7N.js} +12 -11
- package/dist/TypedNameFilter-N2eeG2VM.js +25 -0
- package/dist/{ValueSwitch-CGXtJV-B.js → ValueSwitch-BI5z5U3F.js} +1 -1
- package/dist/{ValueSwitchControl-dHPRa3vB.js → ValueSwitchControl-CixwDXQs.js} +1 -1
- package/dist/{VerticalLayout-BUWGeKPt.js → VerticalLayout-B8RzC8Vj.js} +2 -2
- package/dist/{VerticalLayoutBase-Tp2IGikj.js → VerticalLayoutBase-Bj_upYbt.js} +1 -1
- package/dist/{ZonedDateTimeControl-Ddjugjzp.js → ZonedDateTimeControl-CZdpjJEK.js} +4 -4
- package/dist/_baseEach-FP8ISlsz.js +31 -0
- package/dist/_baseIteratee-DhaGkQLM.js +518 -0
- package/dist/_getTag-DiktJuv_.js +132 -0
- package/dist/index-Blg1O3Fz.js +15 -0
- package/dist/isArray-WzO_os3q.js +4 -0
- package/dist/isObjectLike-BatpeCIi.js +29 -0
- package/dist/isSymbol-C3_SC0Qp.js +8 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +8 -8
- package/dist/{localTimeUtils-DIFjv2_A.js → localTimeUtils-Dp9bEJDh.js} +1 -1
- package/dist/{magic-string.es-BbItKD7x.js → magic-string.es-CeNBRh1A.js} +1 -1
- package/dist/src/constants/inputFormats.d.ts +2 -2
- package/dist/src/higherOrderComponents/control/validation/types.d.ts +7 -1
- package/dist/src/renderers/defaultRenderers.d.ts +24 -589
- package/dist/src/renderers/dropdownRenderer.d.ts +55 -115
- package/dist/src/renderers/fallbackRenderers.d.ts +1 -241
- package/dist/src/renderers/nameFilterRenderer.d.ts +1 -1
- package/dist/src/renderers/singleSelectRenderer.d.ts +8 -0
- package/dist/src/renderers/sortListRenderer.d.ts +0 -8
- package/dist/src/renderers/twinlistRenderer.d.ts +1 -1
- package/dist/src/renderers/typedNameFilterRenderer.d.ts +1 -0
- package/dist/src/types/ChoicesUiSchema.d.ts +7 -12
- package/dist/src/types/provided.d.ts +0 -2
- package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -86
- package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +2 -13
- package/dist/src/uiComponents/SingleSelectControl.vue.d.ts +20 -0
- package/dist/src/uiComponents/SortListControl.vue.d.ts +4 -4
- package/dist/src/uiComponents/composables/useBuiltinValidations.d.ts +43 -0
- package/dist/src/uiComponents/composables/usePossibleValues.d.ts +24 -0
- package/dist/src/uiComponents/composables/useProvidedState.d.ts +2 -2
- package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +1 -1
- package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -99
- package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +36 -0
- package/dist/src/uiComponents/twinlist/{ColumnFilter.vue.d.ts → TypedNameFilter.vue.d.ts} +1 -1
- package/dist/src/uiComponents/twinlist/useUnknownValuesInTwinlist.d.ts +1 -1
- package/dist/src/utils/index.d.ts +0 -2
- package/dist/{svgWithTitle-Cgc-TGWi.js → svgWithTitle-B5FsAPop.js} +1 -1
- package/dist/testUtils/component.d.ts +4 -0
- package/dist/testing.js +80 -63
- package/dist/toString-B9O7P854.js +26 -0
- package/dist/useBuiltinValidations-8VwUv3RT.js +52 -0
- package/dist/usePossibleValues-CrNcBbpN.js +26 -0
- package/package.json +3 -3
- package/dist/AnyOfTwinlist-C3gbWpq1.js +0 -22
- package/dist/ColumnFilter-DOIYetcH.js +0 -24
- package/dist/ColumnSelect-B8IH25EN.js +0 -68
- package/dist/DropdownControl-DGfi9k8S.js +0 -4
- package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-BvodaKZi.js +0 -237
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-CPj9t6fL.js +0 -60
- package/dist/OneOfDropdown-BoOe32dm.js +0 -35
- package/dist/SimpleTwinlistControl-CrLWO2B2.js +0 -50
- package/dist/SortListControl-v_nVoQsh.js +0 -366
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-qt4UxKcl.js +0 -87
- package/dist/TwinlistControl-Dw5uSnOi.js +0 -554
- package/dist/_baseAssignValue-BPMLYzDH.js +0 -19
- package/dist/_baseEach-B8N_Gx8P.js +0 -31
- package/dist/_baseIsEqual-DmkT9Nkc.js +0 -248
- package/dist/_baseIteratee-DvBmrhnf.js +0 -104
- package/dist/_getTag-DS8v0_uf.js +0 -312
- package/dist/getPossibleValuesFromUiSchema-hQj1TCOR.js +0 -39
- package/dist/index-hm05O8UX.js +0 -16
- package/dist/isSymbol-OFe5xy2f.js +0 -34
- package/dist/src/renderers/columnFilterRenderer.d.ts +0 -1
- package/dist/src/renderers/columnSelectRenderer.d.ts +0 -265
- package/dist/src/uiComponents/ColumnSelect.vue.d.ts +0 -26
- package/dist/src/utils/getPossibleValuesFromUiSchema.d.ts +0 -10
- package/dist/toString-DkbNkGT4.js +0 -25
- /package/dist/src/uiComponents/twinlist/{TwinlistControl.vue.d.ts → MultimodeTwinlistControl.vue.d.ts} +0 -0
|
@@ -1,81 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<
|
|
3
|
-
control: {
|
|
4
|
-
data: any;
|
|
5
|
-
} & Omit<{
|
|
6
|
-
uischema: import('@jsonforms/core').ControlElement;
|
|
7
|
-
schema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
8
|
-
path: string;
|
|
9
|
-
enabled: boolean;
|
|
10
|
-
renderers: import('@jsonforms/core').JsonFormsRendererRegistryEntry[];
|
|
11
|
-
cells: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[] & {
|
|
12
|
-
tester: import('@jsonforms/core').RankedTester;
|
|
13
|
-
cell: any;
|
|
14
|
-
}[];
|
|
15
|
-
config: any;
|
|
16
|
-
label: string;
|
|
17
|
-
description: string;
|
|
18
|
-
required: NonNullable<boolean | undefined>;
|
|
19
|
-
i18nKeyPrefix: string;
|
|
20
|
-
errors: string;
|
|
21
|
-
data: any;
|
|
22
|
-
rootSchema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
23
|
-
id: string;
|
|
24
|
-
visible: boolean;
|
|
25
|
-
}, "data">;
|
|
26
|
-
handleChange: (path: string, value: any) => void;
|
|
27
|
-
changeValue: (newValue: any) => void;
|
|
28
|
-
disabled: boolean;
|
|
29
|
-
labelForId?: null | undefined;
|
|
30
|
-
} & import('../higherOrderComponents/control/validation/types').ValidationSettings<any> & {
|
|
31
|
-
asyncInitialOptions?: Promise<IdAndText[]> | null | undefined;
|
|
32
|
-
controlDataToDropdownValue?: ((data: any) => string) | undefined;
|
|
33
|
-
dropdownValueToControlData?: ((value: string | null) => any) | undefined;
|
|
34
|
-
}>, {
|
|
35
|
-
asyncInitialOptions: null;
|
|
36
|
-
controlDataToDropdownValue: (data: string) => string;
|
|
37
|
-
dropdownValueToControlData: (value: string | null) => string | null;
|
|
38
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
39
|
-
control: {
|
|
40
|
-
data: any;
|
|
41
|
-
} & Omit<{
|
|
42
|
-
uischema: import('@jsonforms/core').ControlElement;
|
|
43
|
-
schema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
44
|
-
path: string;
|
|
45
|
-
enabled: boolean;
|
|
46
|
-
renderers: import('@jsonforms/core').JsonFormsRendererRegistryEntry[];
|
|
47
|
-
cells: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[] & {
|
|
48
|
-
tester: import('@jsonforms/core').RankedTester;
|
|
49
|
-
cell: any;
|
|
50
|
-
}[];
|
|
51
|
-
config: any;
|
|
52
|
-
label: string;
|
|
53
|
-
description: string;
|
|
54
|
-
required: NonNullable<boolean | undefined>;
|
|
55
|
-
i18nKeyPrefix: string;
|
|
56
|
-
errors: string;
|
|
57
|
-
data: any;
|
|
58
|
-
rootSchema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
59
|
-
id: string;
|
|
60
|
-
visible: boolean;
|
|
61
|
-
}, "data">;
|
|
62
|
-
handleChange: (path: string, value: any) => void;
|
|
63
|
-
changeValue: (newValue: any) => void;
|
|
64
|
-
disabled: boolean;
|
|
65
|
-
labelForId?: null | undefined;
|
|
66
|
-
} & import('../higherOrderComponents/control/validation/types').ValidationSettings<any> & {
|
|
67
|
-
asyncInitialOptions?: Promise<IdAndText[]> | null | undefined;
|
|
68
|
-
controlDataToDropdownValue?: ((data: any) => string) | undefined;
|
|
69
|
-
dropdownValueToControlData?: ((value: string | null) => any) | undefined;
|
|
70
|
-
}>, {
|
|
71
|
-
asyncInitialOptions: null;
|
|
72
|
-
controlDataToDropdownValue: (data: string) => string;
|
|
73
|
-
dropdownValueToControlData: (value: string | null) => string | null;
|
|
74
|
-
}>>>, {
|
|
75
|
-
asyncInitialOptions: Promise<IdAndText[]> | null;
|
|
76
|
-
controlDataToDropdownValue: (data: any) => string;
|
|
77
|
-
dropdownValueToControlData: (value: string | null) => any;
|
|
78
|
-
}, {}>, {
|
|
1
|
+
import { VueControlProps } from '../higherOrderComponents/control/types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToOption<VueControlProps<string | null>>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<VueControlProps<string | null>>>>, {}, {}>, {
|
|
79
3
|
icon?(_: {}): any;
|
|
80
4
|
buttons?(_: {
|
|
81
5
|
hover: boolean;
|
|
@@ -83,11 +7,6 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
83
7
|
}): any;
|
|
84
8
|
}>;
|
|
85
9
|
export default _default;
|
|
86
|
-
type __VLS_WithDefaults<P, D> = {
|
|
87
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
88
|
-
default: D[K];
|
|
89
|
-
}> : P[K];
|
|
90
|
-
};
|
|
91
10
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
92
11
|
type __VLS_TypePropsToOption<T> = {
|
|
93
12
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -102,6 +21,3 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
102
21
|
$slots: S;
|
|
103
22
|
};
|
|
104
23
|
};
|
|
105
|
-
type __VLS_PrettifyLocal<T> = {
|
|
106
|
-
[K in keyof T]: T[K];
|
|
107
|
-
} & {};
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default:
|
|
3
|
-
icon?(_: {}): any;
|
|
4
|
-
buttons?(_: {
|
|
5
|
-
hover: boolean;
|
|
6
|
-
controlHTMLElement: null;
|
|
7
|
-
}): any;
|
|
8
|
-
}>;
|
|
1
|
+
import { VueControlPropsForLabelContent } from '../higherOrderComponents';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<VueControlPropsForLabelContent<string | null>>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<VueControlPropsForLabelContent<string | null>>>>, {}, {}>;
|
|
9
3
|
export default _default;
|
|
10
4
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
5
|
type __VLS_TypePropsToOption<T> = {
|
|
@@ -16,8 +10,3 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
16
10
|
required: true;
|
|
17
11
|
};
|
|
18
12
|
};
|
|
19
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
20
|
-
new (): {
|
|
21
|
-
$slots: S;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { VueControlPropsForLabelContent } from '../higherOrderComponents';
|
|
2
|
+
type SingleSelectValue = {
|
|
3
|
+
specialChoice: string;
|
|
4
|
+
} | {
|
|
5
|
+
regularChoice: string;
|
|
6
|
+
} | {
|
|
7
|
+
specialChoice: string;
|
|
8
|
+
regularChoice: string;
|
|
9
|
+
} | undefined | null;
|
|
10
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<VueControlPropsForLabelContent<SingleSelectValue>>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<VueControlPropsForLabelContent<SingleSelectValue>>>>, {}, {}>;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
+
type __VLS_TypePropsToOption<T> = {
|
|
14
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
+
} : {
|
|
17
|
+
type: import('vue').PropType<T[K]>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -28,8 +28,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
28
28
|
disabled: boolean;
|
|
29
29
|
labelForId?: null | undefined;
|
|
30
30
|
} & import('../higherOrderComponents/control/validation/types').ValidationSettings<string[]> & {
|
|
31
|
-
anyUnknownValuesId
|
|
32
|
-
anyUnknownValuesText
|
|
31
|
+
anyUnknownValuesId?: string | undefined;
|
|
32
|
+
anyUnknownValuesText?: string | undefined;
|
|
33
33
|
}>, {
|
|
34
34
|
anyUnknownValuesId: string;
|
|
35
35
|
anyUnknownValuesText: string;
|
|
@@ -62,8 +62,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
62
62
|
disabled: boolean;
|
|
63
63
|
labelForId?: null | undefined;
|
|
64
64
|
} & import('../higherOrderComponents/control/validation/types').ValidationSettings<string[]> & {
|
|
65
|
-
anyUnknownValuesId
|
|
66
|
-
anyUnknownValuesText
|
|
65
|
+
anyUnknownValuesId?: string | undefined;
|
|
66
|
+
anyUnknownValuesText?: string | undefined;
|
|
67
67
|
}>, {
|
|
68
68
|
anyUnknownValuesId: string;
|
|
69
69
|
anyUnknownValuesText: string;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { VueControlProps, VueControlPropsForLabelContent } from '../../higherOrderComponents';
|
|
3
|
+
/**
|
|
4
|
+
* @type {P} - parameters for the validation
|
|
5
|
+
* @type {S} - type of the value to validate
|
|
6
|
+
*/
|
|
7
|
+
export type Validator<P, S> = (params: P) => (value: S) => boolean;
|
|
8
|
+
/**
|
|
9
|
+
* @type {T} - type defining the available built-in validations by id-param pairs
|
|
10
|
+
* @type {S} - type of the value to validate
|
|
11
|
+
*/
|
|
12
|
+
export type Validators<T, S> = {
|
|
13
|
+
[K in keyof T]: Validator<T[K], S>;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* The data provided for a built-in validation.
|
|
17
|
+
* @type {T} - type defining the available built-in validations by id-param pairs
|
|
18
|
+
*/
|
|
19
|
+
export type BuiltinValidation<T, K extends keyof T> = {
|
|
20
|
+
id: K;
|
|
21
|
+
parameters: T[K];
|
|
22
|
+
errorMessage: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* A list of built-in validations typed to T.
|
|
26
|
+
* @type {T} - type defining the available built-in validations by id-param pairs
|
|
27
|
+
*/
|
|
28
|
+
export type BuiltinValidations<T> = Array<{
|
|
29
|
+
[K in keyof T]: BuiltinValidation<T, K>;
|
|
30
|
+
}[keyof T]>;
|
|
31
|
+
/**
|
|
32
|
+
* Composable used within a control to define/handle its built-in validations.
|
|
33
|
+
*
|
|
34
|
+
* @param validators - the handlers for the supported validations
|
|
35
|
+
* @param props - the props of the control
|
|
36
|
+
* @returns a ref containing the validation parameters.
|
|
37
|
+
* This is provided if these are required for custom behavior in the control
|
|
38
|
+
* (e.g. setting the minimum in a number control)
|
|
39
|
+
*
|
|
40
|
+
* @type {T} - type defining the available built-in validations by id-param pairs
|
|
41
|
+
* @type {S} - type of the value to validate, i.e. the type of the data of the control
|
|
42
|
+
*/
|
|
43
|
+
export declare const useBuiltinValidation: <T, S>(validators: Validators<T, S>, props: VueControlProps<S> | VueControlPropsForLabelContent<S>) => Ref<Partial<T>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { ChoicesUiSchema, IdAndText, IncludedExcludedLabelOptions } from '../../types/ChoicesUiSchema';
|
|
3
|
+
export declare const usePossibleValues: <SpecialChoicesProps extends Record<string, any> = {}>(control: Ref<{
|
|
4
|
+
uischema: ChoicesUiSchema<SpecialChoicesProps>;
|
|
5
|
+
}>) => {
|
|
6
|
+
possibleValues: Ref<import('../../types/ChoicesUiSchema').PossibleValue<SpecialChoicesProps>[] | null>;
|
|
7
|
+
};
|
|
8
|
+
export declare const usePossibleColumnChoices: (control: Ref<{
|
|
9
|
+
uischema: ChoicesUiSchema<{
|
|
10
|
+
type: IdAndText;
|
|
11
|
+
}>;
|
|
12
|
+
}>) => {
|
|
13
|
+
possibleValues: Ref<import('../../types/ChoicesUiSchema').PossibleValue<{
|
|
14
|
+
type: IdAndText;
|
|
15
|
+
}>[] | null>;
|
|
16
|
+
};
|
|
17
|
+
export declare const useIncludedExcludedLabels: (control: Ref<{
|
|
18
|
+
uischema: {
|
|
19
|
+
options?: IncludedExcludedLabelOptions;
|
|
20
|
+
};
|
|
21
|
+
}>) => {
|
|
22
|
+
includedLabel: string;
|
|
23
|
+
excludedLabel: string;
|
|
24
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { MaybeRef,
|
|
2
|
-
declare const _default: <T>(stateProviderId: MaybeRef<string | undefined>, defaultValue: T) =>
|
|
1
|
+
import { MaybeRef, Ref } from 'vue';
|
|
2
|
+
declare const _default: <T>(stateProviderId: MaybeRef<string | undefined>, defaultValue: T) => Ref<T>;
|
|
3
3
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VueControlPropsForLabelContent } from '../../higherOrderComponents/control/withLabel';
|
|
2
|
-
import { TwinlistData } from './
|
|
2
|
+
import { TwinlistData } from './MultimodeTwinlistControl.vue';
|
|
3
3
|
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<VueControlPropsForLabelContent<TwinlistData>>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<VueControlPropsForLabelContent<TwinlistData>>>>, {}, {}>;
|
|
4
4
|
export default _default;
|
|
5
5
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,100 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: import('vue').DefineComponent<
|
|
3
|
-
labelForId: string;
|
|
4
|
-
} & {
|
|
5
|
-
twinlistSize?: number | undefined;
|
|
6
|
-
twinlistLeftLabel?: string | undefined;
|
|
7
|
-
twinlistRightLabel?: string | undefined;
|
|
8
|
-
optionsGenerator?: ((control: {
|
|
9
|
-
uischema: import('@jsonforms/core').ControlElement;
|
|
10
|
-
schema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
11
|
-
path: string;
|
|
12
|
-
enabled: boolean;
|
|
13
|
-
renderers: import('@jsonforms/core').JsonFormsRendererRegistryEntry[];
|
|
14
|
-
cells: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[] & {
|
|
15
|
-
tester: import('@jsonforms/core').RankedTester;
|
|
16
|
-
cell: any;
|
|
17
|
-
}[];
|
|
18
|
-
config: any;
|
|
19
|
-
label: string;
|
|
20
|
-
description: string;
|
|
21
|
-
required: NonNullable<boolean | undefined>;
|
|
22
|
-
i18nKeyPrefix: string;
|
|
23
|
-
errors: string;
|
|
24
|
-
data: any;
|
|
25
|
-
rootSchema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
26
|
-
id: string;
|
|
27
|
-
visible: boolean;
|
|
28
|
-
}) => IdAndText[]) | null | undefined;
|
|
29
|
-
}>, {
|
|
30
|
-
twinlistSize: number;
|
|
31
|
-
twinlistLeftLabel: string;
|
|
32
|
-
twinlistRightLabel: string;
|
|
33
|
-
optionsGenerator: null;
|
|
34
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Omit<import('../..').VueControlProps<string[]>, "messages" | "labelForId"> & {
|
|
35
|
-
labelForId: string;
|
|
36
|
-
} & {
|
|
37
|
-
twinlistSize?: number | undefined;
|
|
38
|
-
twinlistLeftLabel?: string | undefined;
|
|
39
|
-
twinlistRightLabel?: string | undefined;
|
|
40
|
-
optionsGenerator?: ((control: {
|
|
41
|
-
uischema: import('@jsonforms/core').ControlElement;
|
|
42
|
-
schema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
43
|
-
path: string;
|
|
44
|
-
enabled: boolean;
|
|
45
|
-
renderers: import('@jsonforms/core').JsonFormsRendererRegistryEntry[];
|
|
46
|
-
cells: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[] & {
|
|
47
|
-
tester: import('@jsonforms/core').RankedTester;
|
|
48
|
-
cell: any;
|
|
49
|
-
}[];
|
|
50
|
-
config: any;
|
|
51
|
-
label: string;
|
|
52
|
-
description: string;
|
|
53
|
-
required: NonNullable<boolean | undefined>;
|
|
54
|
-
i18nKeyPrefix: string;
|
|
55
|
-
errors: string;
|
|
56
|
-
data: any;
|
|
57
|
-
rootSchema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
58
|
-
id: string;
|
|
59
|
-
visible: boolean;
|
|
60
|
-
}) => IdAndText[]) | null | undefined;
|
|
61
|
-
}>, {
|
|
62
|
-
twinlistSize: number;
|
|
63
|
-
twinlistLeftLabel: string;
|
|
64
|
-
twinlistRightLabel: string;
|
|
65
|
-
optionsGenerator: null;
|
|
66
|
-
}>>>, {
|
|
67
|
-
twinlistSize: number;
|
|
68
|
-
twinlistLeftLabel: string;
|
|
69
|
-
twinlistRightLabel: string;
|
|
70
|
-
optionsGenerator: ((control: {
|
|
71
|
-
uischema: import('@jsonforms/core').ControlElement;
|
|
72
|
-
schema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
73
|
-
path: string;
|
|
74
|
-
enabled: boolean;
|
|
75
|
-
renderers: import('@jsonforms/core').JsonFormsRendererRegistryEntry[];
|
|
76
|
-
cells: import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[] & {
|
|
77
|
-
tester: import('@jsonforms/core').RankedTester;
|
|
78
|
-
cell: any;
|
|
79
|
-
}[];
|
|
80
|
-
config: any;
|
|
81
|
-
label: string;
|
|
82
|
-
description: string;
|
|
83
|
-
required: NonNullable<boolean | undefined>;
|
|
84
|
-
i18nKeyPrefix: string;
|
|
85
|
-
errors: string;
|
|
86
|
-
data: any;
|
|
87
|
-
rootSchema: NonNullable<import('@jsonforms/core').JsonSchema>;
|
|
88
|
-
id: string;
|
|
89
|
-
visible: boolean;
|
|
90
|
-
}) => IdAndText[]) | null;
|
|
91
|
-
}, {}>;
|
|
1
|
+
import { VueControlPropsForLabelContent } from '../../higherOrderComponents/control/withLabel';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<VueControlPropsForLabelContent<string[]>>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<VueControlPropsForLabelContent<string[]>>>>, {}, {}>;
|
|
92
3
|
export default _default;
|
|
93
|
-
type __VLS_WithDefaults<P, D> = {
|
|
94
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
95
|
-
default: D[K];
|
|
96
|
-
}> : P[K];
|
|
97
|
-
};
|
|
98
4
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
99
5
|
type __VLS_TypePropsToOption<T> = {
|
|
100
6
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -104,6 +10,3 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
104
10
|
required: true;
|
|
105
11
|
};
|
|
106
12
|
};
|
|
107
|
-
type __VLS_PrettifyLocal<T> = {
|
|
108
|
-
[K in keyof T]: T[K];
|
|
109
|
-
} & {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IdAndText } from '../../types/ChoicesUiSchema';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Omit<import('../..').VueControlProps<string[]>, "messages" | "labelForId"> & {
|
|
3
|
+
labelForId: string;
|
|
4
|
+
} & {
|
|
5
|
+
twinlistSize?: number | undefined;
|
|
6
|
+
possibleValues: IdAndText[] | null;
|
|
7
|
+
}>, {
|
|
8
|
+
twinlistSize: number;
|
|
9
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Omit<import('../..').VueControlProps<string[]>, "messages" | "labelForId"> & {
|
|
10
|
+
labelForId: string;
|
|
11
|
+
} & {
|
|
12
|
+
twinlistSize?: number | undefined;
|
|
13
|
+
possibleValues: IdAndText[] | null;
|
|
14
|
+
}>, {
|
|
15
|
+
twinlistSize: number;
|
|
16
|
+
}>>>, {
|
|
17
|
+
twinlistSize: number;
|
|
18
|
+
}, {}>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithDefaults<P, D> = {
|
|
21
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
22
|
+
default: D[K];
|
|
23
|
+
}> : P[K];
|
|
24
|
+
};
|
|
25
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
|
+
type __VLS_TypePropsToOption<T> = {
|
|
27
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
28
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
29
|
+
} : {
|
|
30
|
+
type: import('vue').PropType<T[K]>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
type __VLS_PrettifyLocal<T> = {
|
|
35
|
+
[K in keyof T]: T[K];
|
|
36
|
+
} & {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VueControlPropsForLabelContent } from '../../higherOrderComponents/control/withLabel';
|
|
2
|
-
import { TwinlistData } from './
|
|
2
|
+
import { TwinlistData } from './MultimodeTwinlistControl.vue';
|
|
3
3
|
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<VueControlPropsForLabelContent<TwinlistData>>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<VueControlPropsForLabelContent<TwinlistData>>>>, {}, {}>;
|
|
4
4
|
export default _default;
|
|
5
5
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { JsonSchema4, JsonSchema7 } from '@jsonforms/core';
|
|
2
2
|
import { PartialDeep } from 'type-fest';
|
|
3
3
|
import { Control } from '../types/Control';
|
|
4
|
-
import { default as getPossibleValuesFromUiSchema } from './getPossibleValuesFromUiSchema';
|
|
5
|
-
export { getPossibleValuesFromUiSchema };
|
|
6
4
|
export declare const optionsMapper: ({ const: id, title: text, }: JsonSchema4 | JsonSchema7) => {
|
|
7
5
|
id: string;
|
|
8
6
|
text: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as r, openBlock as c, createBlock as s, unref as a, h as i } from "vue";
|
|
2
2
|
import { R as d } from "./reload-BhzcZRFp.js";
|
|
3
|
-
import { _ } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-
|
|
3
|
+
import { _ } from "./SettingsSubPanel.vue_vue_type_style_index_0_scoped_67b92e23_lang-BM4d25sK.js";
|
|
4
4
|
const p = /* @__PURE__ */ r({
|
|
5
5
|
__name: "LoadingIcon",
|
|
6
6
|
setup(t) {
|
|
@@ -251,3 +251,7 @@ export declare const getControlBase: (path: string) => {
|
|
|
251
251
|
required: false;
|
|
252
252
|
i18nKeyPrefix: string;
|
|
253
253
|
};
|
|
254
|
+
export declare const useInitialProvidedState: <T>() => {
|
|
255
|
+
addStateProviderListener: Mock<(_id: any, callback: any) => void>;
|
|
256
|
+
provideState: (state: T) => Promise<void>;
|
|
257
|
+
};
|