@knime/jsonforms 1.10.4 → 1.11.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 +6 -0
- package/dist/{AnyOfTwinlist-Dvwh44EZ.js → AnyOfTwinlist-C0BYfhuc.js} +1 -1
- package/dist/{Button-CO9MECNO.js → Button-B2PevR13.js} +1 -1
- package/dist/{CheckboxControl-D-jcEMx9.js → CheckboxControl-C9Eo-Get.js} +12 -13
- package/dist/{Checkboxes-Djk9SPMd.js → Checkboxes-BoSLHg-R.js} +16 -17
- package/dist/{CheckboxesControl-Di7XI4Ea.js → CheckboxesControl-9OOMWktT.js} +2 -2
- package/dist/{ComboBoxControl-CBsM1Bf0.js → ComboBoxControl-BQx3TWoL.js} +10 -11
- package/dist/{DateControl-B4ztx3dj.js → DateControl-CfI2AD4P.js} +1 -1
- package/dist/{DateTimeControl-BtVVcmZ0.js → DateTimeControl-BCvP4qo5.js} +2 -2
- package/dist/{DateTimeFormatInput-BUZQIU2y.js → DateTimeFormatInput-B9g7at3r.js} +3 -3
- package/dist/{DateTimeFormatPickerControl-BY0t3CWJ.js → DateTimeFormatPickerControl-B9O1f_mH.js} +2 -2
- package/dist/{DateTimeFormatPickerWithTypeControl-CE9vz--D.js → DateTimeFormatPickerWithTypeControl-ueXR9GQl.js} +3 -3
- package/dist/{DateTimeInput-B6b6ntsL.js → DateTimeInput-B_U-QJmL.js} +6 -6
- package/dist/{Dropdown-c0-3hZhQ.js → Dropdown-B_NNidgA.js} +2 -2
- package/dist/DropdownControl-HNf0y3og.js +31 -0
- package/dist/{HorizontalLayout-C5eOQMLy.js → HorizontalLayout-CMdaU98F.js} +1 -1
- package/dist/{InputField-C_Kwnh2D.js → InputField-DKobsHBJ.js} +1 -1
- package/dist/{IntegerControl-Ch5uGTZX.js → IntegerControl-9YzuybpQ.js} +1 -1
- package/dist/{IntervalControl-DPEsNxzq.js → IntervalControl-DWOlVutr.js} +3 -3
- package/dist/{LoadingDropdown-DVtYSqZi.js → LoadingDropdown-DjDkU0GJ.js} +3 -3
- package/dist/{MultiSelectListBoxControl-HLKnQuLK.js → MultiSelectListBoxControl-Dwxf-Auj.js} +2 -2
- package/dist/{MultimodeTwinlistControl-06t2HfAA.js → MultimodeTwinlistControl-CgIOZGiK.js} +5 -5
- package/dist/{MultiselectListBox-DB1_x4Gm.js → MultiselectListBox-DVWx2L8G.js} +2 -2
- package/dist/{NameFilter-BPtDd_ZM.js → NameFilter-CIEZ3MXY.js} +1 -1
- package/dist/{NumberControl-D3aijNOg.js → NumberControl-BTGdHGGc.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-HvcHTpTJ.js → NumberControlBase.vue_vue_type_script_setup_true_lang-Cs69LvYa.js} +2 -2
- package/dist/{NumberInput-BwvuSJTp.js → NumberInput-B_xx1SLE.js} +1 -1
- package/dist/{OneOfDropdown-BHdTyh4E.js → OneOfDropdown-1Vh8BGXT.js} +1 -1
- package/dist/{RadioControl-CSsd4PtY.js → RadioControl-LOA6Mp-I.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-DDINkVnv.js → RadioControlBase.vue_vue_type_script_setup_true_lang-BO1C66xG.js} +2 -2
- package/dist/{RichTextControl-CyrN2sAf.js → RichTextControl-BV881LVa.js} +14 -15
- package/dist/{SectionHeading-BteoPwU6.js → SectionHeading-9w_hIbyv.js} +1 -1
- package/dist/{SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-Dq1Jv6TX.js → SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CrLBs-gn.js} +5577 -5449
- package/dist/{SectionLayout-CesW02NL.js → SectionLayout-CTkFSsDA.js} +3 -3
- package/dist/{SettingsSubPanel-BLd9zMXy.js → SettingsSubPanel-BbZP8Ymj.js} +1 -1
- package/dist/{SettingsSubPanelLayout-DTKtp5ps.js → SettingsSubPanelLayout-s00rjvBL.js} +4 -4
- package/dist/{SimpleButtonControl-B8m2_6Ba.js → SimpleButtonControl-CuOsmR2j.js} +2 -2
- package/dist/{SimpleTwinlistControl-CMhamSbA.js → SimpleTwinlistControl-CYOMlGEL.js} +2 -2
- package/dist/{SingleSelectControl-KpBNyVJl.js → SingleSelectControl-Dw1VHL_S.js} +2 -2
- package/dist/{SingleSelectListBoxControl-Cb9f-wp8.js → SingleSelectListBoxControl-fJHYO33a.js} +3 -3
- package/dist/{SortListControl-BT5e4z1B.js → SortListControl-BvbvFUOf.js} +6 -6
- package/dist/{StyledListItem-BmFWRFnF.js → StyledListItem-Cpvg8mvO.js} +1 -1
- package/dist/{TextAreaControl-Bd_i3FxI.js → TextAreaControl-D9rNGe7P.js} +1 -1
- package/dist/{TextControl-BKxooSfk.js → TextControl-j_CdOruM.js} +1 -1
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-Drnp3Zra.js +54 -0
- package/dist/{TimeControl-DqxbMcYs.js → TimeControl-BR-v1k78.js} +2 -2
- package/dist/{TwinlistControlBase-C4NeGHHS.js → TwinlistControlBase-C-LwkBvD.js} +3 -3
- package/dist/{TwinlistLoadingInfo-DVAd49mv.js → TwinlistLoadingInfo-C0fjx5Ik.js} +4 -4
- package/dist/{TypedStringFilter-BvYWgmR2.js → TypedStringFilter-C2m_LzO-.js} +1 -1
- package/dist/{ValueSwitch-DJjWcjH3.js → ValueSwitch-D4b_VjAX.js} +1 -1
- package/dist/{ValueSwitchControl-B-mOeS-W.js → ValueSwitchControl-D5Wvvjkl.js} +1 -1
- package/dist/{VerticalLayout-C1g92Q4d.js → VerticalLayout-BWdIxoLw.js} +2 -2
- package/dist/{VerticalLayoutBase-BrH1Nr0z.js → VerticalLayoutBase-BDXZiCFe.js} +1 -1
- package/dist/{ZonedDateTimeControl-blZIZcV0.js → ZonedDateTimeControl-DxYaZt1o.js} +4 -4
- package/dist/{_baseEach-C1cC1iYK.js → _baseEach-CeIQwrHm.js} +2 -2
- package/dist/{_baseIteratee-CapP6YsQ.js → _baseIteratee-CcE6KGT4.js} +17 -17
- package/dist/{_getTag-CphCWFRC.js → _getTag--DhdlgdA.js} +15 -15
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +7 -7
- package/dist/{localTimeUtils-C73txZxM.js → localTimeUtils-CCm4ffv1.js} +1 -1
- package/dist/{magic-string.es-DwkmLaDE.js → magic-string.es-qNw6JCs_.js} +10 -10
- package/dist/src/higherOrderComponents/control/withLabel.d.ts +3 -0
- package/dist/src/renderers/defaultRenderers.d.ts +2 -50
- package/dist/src/renderers/dropdownRenderer.d.ts +1 -25
- package/dist/src/renderers/fallbackRenderers.d.ts +1 -25
- package/dist/src/renderers/textRenderer.d.ts +1 -25
- package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -13
- package/dist/src/uiComponents/TextControl.vue.d.ts +4 -13
- package/dist/src/uiComponents/composables/useHideOnNull.d.ts +2 -4
- package/dist/{svgWithTitle-BYet-mD6.js → svgWithTitle-CMKpJKYe.js} +1 -1
- package/dist/testing.js +3 -3
- package/dist/{toString-zfY2ugmM.js → toString-BNdfvkwo.js} +1 -1
- package/dist/{useBuiltinValidations-CQ7jhonx.js → useBuiltinValidations-CPGk0tzm.js} +1 -1
- package/dist/{usePossibleValues-DJHSR3yJ.js → usePossibleValues-C_KA5P1k.js} +1 -1
- package/package.json +1 -1
- package/dist/Checkbox-C3WOC8SX.js +0 -75
- package/dist/DropdownControl-rZt5v61Q.js +0 -84
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-Bs3-RJsw.js +0 -93
- package/dist/useHideOnNull-CCfNP3O7.js +0 -42
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { M as ht } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CrLBs-gn.js";
|
|
2
2
|
var q = { exports: {} };
|
|
3
3
|
(function(E, t) {
|
|
4
4
|
(function(e, n) {
|
|
@@ -129,7 +129,7 @@ var q = { exports: {} };
|
|
|
129
129
|
continue;
|
|
130
130
|
}
|
|
131
131
|
const R = o(i, 0), U = R & 1, A = R & 2, T = R & 4;
|
|
132
|
-
let
|
|
132
|
+
let Y = null, D = F, _;
|
|
133
133
|
if (U) {
|
|
134
134
|
const L = o(i, b);
|
|
135
135
|
m = o(i, b === L ? m : 0), b = L, _ = [g, x, 0, 0, L, m];
|
|
@@ -139,9 +139,9 @@ var q = { exports: {} };
|
|
|
139
139
|
const L = S, I = C;
|
|
140
140
|
S = o(i, S);
|
|
141
141
|
const j = L === S;
|
|
142
|
-
C = o(i, j ? C : 0), w = o(i, j && I === C ? w : 0),
|
|
142
|
+
C = o(i, j ? C : 0), w = o(i, j && I === C ? w : 0), Y = [S, C, w];
|
|
143
143
|
}
|
|
144
|
-
if (_.callsite =
|
|
144
|
+
if (_.callsite = Y, k(i, p)) {
|
|
145
145
|
D = [];
|
|
146
146
|
do {
|
|
147
147
|
y = g, v = x;
|
|
@@ -176,7 +176,7 @@ var q = { exports: {} };
|
|
|
176
176
|
}
|
|
177
177
|
function J(a, h, i, l) {
|
|
178
178
|
const d = a[h], { 0: g, 1: b, 2: m, 3: S, isScope: C, callsite: w, bindings: y } = d;
|
|
179
|
-
l[0] < g ? (
|
|
179
|
+
l[0] < g ? (W(i, l[0], g), l[0] = g, l[1] = 0) : h > 0 && i.write(44), l[1] = c(i, d[1], l[1]);
|
|
180
180
|
const v = (d.length === 6 ? 1 : 0) | (w ? 2 : 0) | (C ? 4 : 0);
|
|
181
181
|
if (c(i, v, 0), d.length === 6) {
|
|
182
182
|
const { 4: p, 5: x } = d;
|
|
@@ -203,9 +203,9 @@ var q = { exports: {} };
|
|
|
203
203
|
break;
|
|
204
204
|
h = J(a, h, i, l);
|
|
205
205
|
}
|
|
206
|
-
return l[0] < m ? (
|
|
206
|
+
return l[0] < m ? (W(i, l[0], m), l[0] = m, l[1] = 0) : i.write(44), l[1] = c(i, S, l[1]), h;
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function W(a, h, i) {
|
|
209
209
|
do
|
|
210
210
|
a.write(59);
|
|
211
211
|
while (++h < i);
|
|
@@ -371,7 +371,7 @@ const gt = Object.prototype.toString;
|
|
|
371
371
|
function pt(E) {
|
|
372
372
|
return gt.call(E) === "[object Object]";
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function K(E) {
|
|
375
375
|
const t = E.split(`
|
|
376
376
|
`), e = [];
|
|
377
377
|
for (let n = 0, s = 0; n < t.length; n++)
|
|
@@ -493,7 +493,7 @@ class Q {
|
|
|
493
493
|
}
|
|
494
494
|
generateDecodedMap(t) {
|
|
495
495
|
t = t || {};
|
|
496
|
-
const e = 0, n = Object.keys(this.storedNames), s = new wt(t.hires), r =
|
|
496
|
+
const e = 0, n = Object.keys(this.storedNames), s = new wt(t.hires), r = K(this.original);
|
|
497
497
|
return this.intro && s.advance(this.intro), this.firstChunk.eachNext((u) => {
|
|
498
498
|
const f = r(u.start);
|
|
499
499
|
u.intro.length && s.advance(u.intro), u.edited ? s.addEdit(
|
|
@@ -736,7 +736,7 @@ class Q {
|
|
|
736
736
|
}
|
|
737
737
|
_splitChunk(t, e) {
|
|
738
738
|
if (t.edited && t.content.length) {
|
|
739
|
-
const s =
|
|
739
|
+
const s = K(this.original)(e);
|
|
740
740
|
throw new Error(
|
|
741
741
|
`Cannot split a chunk that has already been edited (${s.line}:${s.column} – "${t.original}")`
|
|
742
742
|
);
|
|
@@ -3,6 +3,9 @@ export type VueControlPropsForLabelContent<D> = Omit<VueControlProps<D>, "labelF
|
|
|
3
3
|
labelForId: string;
|
|
4
4
|
};
|
|
5
5
|
export type VueControlThatRequiresLabelWrapper<D> = PropsToComponent<VueControlPropsForLabelContent<D>>;
|
|
6
|
+
export type VueControlExposed = {
|
|
7
|
+
focus?: () => void;
|
|
8
|
+
};
|
|
6
9
|
export declare const withLabel: (config?: {
|
|
7
10
|
fill: boolean;
|
|
8
11
|
}) => <D>({ control, tester, name, __asyncSetup, }: import('./util').SpecialControlRenderer<VueControlThatRequiresLabelWrapper<D>>) => import('./util').SpecialControlRenderer<VueControl<D>>;
|
|
@@ -10,31 +10,7 @@ export declare const controls: {
|
|
|
10
10
|
__asyncSetup?: (() => Promise<void>) | undefined;
|
|
11
11
|
control: import('../higherOrderComponents/control/types').VueControl<string>;
|
|
12
12
|
};
|
|
13
|
-
textRenderer:
|
|
14
|
-
name: string;
|
|
15
|
-
control: {
|
|
16
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../higherOrderComponents/control/types').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
17
|
-
P: {};
|
|
18
|
-
B: {};
|
|
19
|
-
D: {};
|
|
20
|
-
C: {};
|
|
21
|
-
M: {};
|
|
22
|
-
Defaults: {};
|
|
23
|
-
}, Readonly<import('../higherOrderComponents/control/types').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
24
|
-
__isFragment?: undefined;
|
|
25
|
-
__isTeleport?: undefined;
|
|
26
|
-
__isSuspense?: undefined;
|
|
27
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('../higherOrderComponents/control/types').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
28
|
-
$slots: {
|
|
29
|
-
icon?(_: {}): any;
|
|
30
|
-
buttons?(_: {
|
|
31
|
-
hover: boolean;
|
|
32
|
-
controlHTMLElement: HTMLElement | null;
|
|
33
|
-
}): any;
|
|
34
|
-
};
|
|
35
|
-
});
|
|
36
|
-
tester: (uischema: import('@jsonforms/core').UISchemaElement, schema: import('@jsonforms/core').JsonSchema, context: import('@jsonforms/core').TesterContext) => number;
|
|
37
|
-
};
|
|
13
|
+
textRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<string | null>>;
|
|
38
14
|
checkboxRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<boolean>>;
|
|
39
15
|
anyOfTwinlistRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<string[]>>;
|
|
40
16
|
numberFallbackRenderer: {
|
|
@@ -350,31 +326,7 @@ export declare const controls: {
|
|
|
350
326
|
/**
|
|
351
327
|
* Containing an optional checkbox. Keep Label in control until we have a framework for that.
|
|
352
328
|
*/
|
|
353
|
-
dropdownRenderer:
|
|
354
|
-
name: string;
|
|
355
|
-
control: {
|
|
356
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../higherOrderComponents/control/types').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
357
|
-
P: {};
|
|
358
|
-
B: {};
|
|
359
|
-
D: {};
|
|
360
|
-
C: {};
|
|
361
|
-
M: {};
|
|
362
|
-
Defaults: {};
|
|
363
|
-
}, Readonly<import('../higherOrderComponents/control/types').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
364
|
-
__isFragment?: undefined;
|
|
365
|
-
__isTeleport?: undefined;
|
|
366
|
-
__isSuspense?: undefined;
|
|
367
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('../higherOrderComponents/control/types').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
368
|
-
$slots: {
|
|
369
|
-
icon?(_: {}): any;
|
|
370
|
-
buttons?(_: {
|
|
371
|
-
hover: boolean;
|
|
372
|
-
controlHTMLElement: null;
|
|
373
|
-
}): any;
|
|
374
|
-
};
|
|
375
|
-
});
|
|
376
|
-
tester: (uischema: import('@jsonforms/core').UISchemaElement, schema: import('@jsonforms/core').JsonSchema, context: import('@jsonforms/core').TesterContext) => number;
|
|
377
|
-
};
|
|
329
|
+
dropdownRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<string | null>>;
|
|
378
330
|
};
|
|
379
331
|
export declare const layouts: {
|
|
380
332
|
verticalLayoutFallbackRenderer: {
|
|
@@ -1,25 +1 @@
|
|
|
1
|
-
export declare const dropdownRenderer:
|
|
2
|
-
name: string;
|
|
3
|
-
control: {
|
|
4
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('..').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
5
|
-
P: {};
|
|
6
|
-
B: {};
|
|
7
|
-
D: {};
|
|
8
|
-
C: {};
|
|
9
|
-
M: {};
|
|
10
|
-
Defaults: {};
|
|
11
|
-
}, Readonly<import('..').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
12
|
-
__isFragment?: undefined;
|
|
13
|
-
__isTeleport?: undefined;
|
|
14
|
-
__isSuspense?: undefined;
|
|
15
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('..').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
16
|
-
$slots: {
|
|
17
|
-
icon?(_: {}): any;
|
|
18
|
-
buttons?(_: {
|
|
19
|
-
hover: boolean;
|
|
20
|
-
controlHTMLElement: null;
|
|
21
|
-
}): any;
|
|
22
|
-
};
|
|
23
|
-
});
|
|
24
|
-
tester: (uischema: import('@jsonforms/core').UISchemaElement, schema: import('@jsonforms/core').JsonSchema, context: import('@jsonforms/core').TesterContext) => number;
|
|
25
|
-
};
|
|
1
|
+
export declare const dropdownRenderer: import('../higherOrderComponents').SpecialControlRenderer<import('../higherOrderComponents').VueControl<string | null>>;
|
|
@@ -6,31 +6,7 @@ export declare const fallbackControlRenderers: {
|
|
|
6
6
|
__asyncSetup?: (() => Promise<void>) | undefined;
|
|
7
7
|
control: import('../higherOrderComponents/control/types').VueControl<string>;
|
|
8
8
|
};
|
|
9
|
-
textRenderer:
|
|
10
|
-
name: string;
|
|
11
|
-
control: {
|
|
12
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../higherOrderComponents/control/types').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
13
|
-
P: {};
|
|
14
|
-
B: {};
|
|
15
|
-
D: {};
|
|
16
|
-
C: {};
|
|
17
|
-
M: {};
|
|
18
|
-
Defaults: {};
|
|
19
|
-
}, Readonly<import('../higherOrderComponents/control/types').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
20
|
-
__isFragment?: undefined;
|
|
21
|
-
__isTeleport?: undefined;
|
|
22
|
-
__isSuspense?: undefined;
|
|
23
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('../higherOrderComponents/control/types').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
24
|
-
$slots: {
|
|
25
|
-
icon?(_: {}): any;
|
|
26
|
-
buttons?(_: {
|
|
27
|
-
hover: boolean;
|
|
28
|
-
controlHTMLElement: HTMLElement | null;
|
|
29
|
-
}): any;
|
|
30
|
-
};
|
|
31
|
-
});
|
|
32
|
-
tester: (uischema: import('@jsonforms/core').UISchemaElement, schema: import('@jsonforms/core').JsonSchema, context: import('@jsonforms/core').TesterContext) => number;
|
|
33
|
-
};
|
|
9
|
+
textRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<string | null>>;
|
|
34
10
|
checkboxRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<boolean>>;
|
|
35
11
|
anyOfTwinlistRenderer: import('..').SpecialControlRenderer<import('../higherOrderComponents/control/types').VueControl<string[]>>;
|
|
36
12
|
numberFallbackRenderer: {
|
|
@@ -1,25 +1 @@
|
|
|
1
|
-
export declare const textRenderer:
|
|
2
|
-
name: string;
|
|
3
|
-
control: {
|
|
4
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('..').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
5
|
-
P: {};
|
|
6
|
-
B: {};
|
|
7
|
-
D: {};
|
|
8
|
-
C: {};
|
|
9
|
-
M: {};
|
|
10
|
-
Defaults: {};
|
|
11
|
-
}, Readonly<import('..').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
12
|
-
__isFragment?: undefined;
|
|
13
|
-
__isTeleport?: undefined;
|
|
14
|
-
__isSuspense?: undefined;
|
|
15
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('..').VueControlProps<string | null>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
16
|
-
$slots: {
|
|
17
|
-
icon?(_: {}): any;
|
|
18
|
-
buttons?(_: {
|
|
19
|
-
hover: boolean;
|
|
20
|
-
controlHTMLElement: HTMLElement | null;
|
|
21
|
-
}): any;
|
|
22
|
-
};
|
|
23
|
-
});
|
|
24
|
-
tester: (uischema: import('@jsonforms/core').UISchemaElement, schema: import('@jsonforms/core').JsonSchema, context: import('@jsonforms/core').TesterContext) => number;
|
|
25
|
-
};
|
|
1
|
+
export declare const textRenderer: import('../higherOrderComponents').SpecialControlRenderer<import('../higherOrderComponents').VueControl<string | null>>;
|
|
@@ -1,14 +1,3 @@
|
|
|
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/control/withLabel';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<VueControlPropsForLabelContent<string | null>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<VueControlPropsForLabelContent<string | null>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
3
|
export default _default;
|
|
10
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
11
|
-
new (): {
|
|
12
|
-
$slots: S;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
hover: boolean;
|
|
6
|
-
controlHTMLElement: HTMLElement | null;
|
|
7
|
-
}): any;
|
|
8
|
-
}>;
|
|
1
|
+
import { VueControlPropsForLabelContent } from '../higherOrderComponents/control/withLabel';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<VueControlPropsForLabelContent<string | null>, {
|
|
3
|
+
focus?: (() => void) | undefined;
|
|
4
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<VueControlPropsForLabelContent<string | null>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
5
|
export default _default;
|
|
10
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
11
|
-
new (): {
|
|
12
|
-
$slots: S;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { Control } from '../../types/Control';
|
|
3
|
-
declare const _default: ({ control, disabled, controlElement, }: {
|
|
3
|
+
declare const _default: ({ control, disabled, changeValue, controlElement, }: {
|
|
4
4
|
control: Ref<Control>;
|
|
5
5
|
disabled: Ref<boolean>;
|
|
6
|
+
changeValue: (value: unknown) => void;
|
|
6
7
|
controlElement: Ref<{
|
|
7
8
|
focus?: () => void;
|
|
8
9
|
} | null>;
|
|
9
|
-
}, setters: {
|
|
10
|
-
setDefault: () => void;
|
|
11
|
-
setNull: () => void;
|
|
12
10
|
}) => {
|
|
13
11
|
showCheckbox: import('vue').ComputedRef<any>;
|
|
14
12
|
showControl: import('vue').ComputedRef<boolean>;
|
|
@@ -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-BVbCGubF.js";
|
|
3
|
-
import { _ } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-
|
|
3
|
+
import { _ } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CrLBs-gn.js";
|
|
4
4
|
const p = /* @__PURE__ */ r({
|
|
5
5
|
__name: "LoadingIcon",
|
|
6
6
|
setup(t) {
|
package/dist/testing.js
CHANGED
|
@@ -3,8 +3,8 @@ var L_ = (e, t, n) => t in e ? j_(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var G = (e, t, n) => L_(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import * as nh from "vue";
|
|
5
5
|
import { initDirectivesForSSR as F_, nextTick as fo, defineComponent as ui, computed as kr, h as xn, shallowReactive as B_, reactive as V_, ref as rh, createApp as q_, transformVNodeArgs as W_, setDevtoolsHook as U_, Transition as z_, BaseTransition as K_, TransitionGroup as X_, isRef as G_ } from "vue";
|
|
6
|
-
import { n as J_, o as H_, b as Y_ } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-
|
|
7
|
-
import { b as Q_ } from "./_baseIteratee-
|
|
6
|
+
import { n as J_, o as H_, b as Y_ } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CrLBs-gn.js";
|
|
7
|
+
import { b as Q_ } from "./_baseIteratee-CcE6KGT4.js";
|
|
8
8
|
function Z_(e, t) {
|
|
9
9
|
return e > t;
|
|
10
10
|
}
|
|
@@ -9512,7 +9512,7 @@ function Bw(e, t) {
|
|
|
9512
9512
|
return s + 1;
|
|
9513
9513
|
}
|
|
9514
9514
|
async function Vw(e, t) {
|
|
9515
|
-
const n = (await import("./magic-string.es-
|
|
9515
|
+
const n = (await import("./magic-string.es-qNw6JCs_.js")).default, r = new Set(t.map((i) => i.file));
|
|
9516
9516
|
await Promise.all(
|
|
9517
9517
|
Array.from(r).map(async (i) => {
|
|
9518
9518
|
const s = t.filter((c) => c.file === i), o = await e.readSnapshotFile(i), a = new n(o);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as s, n as g } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-
|
|
1
|
+
import { S as s, n as g } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CrLBs-gn.js";
|
|
2
2
|
import { i as l } from "./isArray-WzO_os3q.js";
|
|
3
3
|
function p(n, r) {
|
|
4
4
|
for (var t = -1, i = n == null ? 0 : n.length, o = Array(i); ++t < i; )
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as r } from "vue";
|
|
2
|
-
import { u as d } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-
|
|
2
|
+
import { u as d } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CrLBs-gn.js";
|
|
3
3
|
const l = (e = {}) => e.validations ?? [], c = (e = {}) => (e.validationProviders ?? []).map(
|
|
4
4
|
(i) => d(i, null)
|
|
5
5
|
), s = (e, i) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as a } from "vue";
|
|
2
|
-
import { u as c } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-
|
|
2
|
+
import { u as c } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CrLBs-gn.js";
|
|
3
3
|
const t = (s) => {
|
|
4
4
|
var e;
|
|
5
5
|
const u = a(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/jsonforms",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "Internal JSON Forms integration for frontend KNIME projects",
|
|
5
5
|
"homepage": "https://knime.github.io/webapps-common/",
|
|
6
6
|
"license": "GPL 3 and Additional Permissions according to Sec. 7 (SEE the file LICENSE)",
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { openBlock as s, createElementBlock as i, normalizeClass as o, createElementVNode as d, renderSlot as c } from "vue";
|
|
2
|
-
import { _ as u } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-Dq1Jv6TX.js";
|
|
3
|
-
const r = {
|
|
4
|
-
name: "Checkbox",
|
|
5
|
-
props: {
|
|
6
|
-
id: {
|
|
7
|
-
type: String,
|
|
8
|
-
default: null
|
|
9
|
-
},
|
|
10
|
-
name: {
|
|
11
|
-
type: String,
|
|
12
|
-
default: null
|
|
13
|
-
},
|
|
14
|
-
modelValue: {
|
|
15
|
-
type: Boolean,
|
|
16
|
-
default: !1
|
|
17
|
-
},
|
|
18
|
-
disabled: {
|
|
19
|
-
default: !1,
|
|
20
|
-
type: Boolean
|
|
21
|
-
},
|
|
22
|
-
invalid: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: !1
|
|
25
|
-
},
|
|
26
|
-
/**
|
|
27
|
-
* Controls the size of the label
|
|
28
|
-
* supported values:
|
|
29
|
-
* - regular
|
|
30
|
-
* - large
|
|
31
|
-
*/
|
|
32
|
-
labelSize: {
|
|
33
|
-
type: String,
|
|
34
|
-
default: "regular",
|
|
35
|
-
validator: (e) => ["regular", "large"].includes(e)
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
emits: ["update:modelValue"],
|
|
39
|
-
computed: {
|
|
40
|
-
classes() {
|
|
41
|
-
return ["checkbox", this.labelSize, { disabled: this.disabled }];
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
methods: {
|
|
45
|
-
onInput(e) {
|
|
46
|
-
const { checked: l } = e.target;
|
|
47
|
-
consola.trace("Checkbox value changed to", l), this.$emit("update:modelValue", l);
|
|
48
|
-
},
|
|
49
|
-
isChecked() {
|
|
50
|
-
return this.$refs.input.checked;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}, f = ["id", "name", "checked", "disabled"];
|
|
54
|
-
function m(e, l, a, h, p, t) {
|
|
55
|
-
return s(), i("label", {
|
|
56
|
-
class: o([t.classes, { invalid: a.invalid }])
|
|
57
|
-
}, [
|
|
58
|
-
d("input", {
|
|
59
|
-
id: a.id,
|
|
60
|
-
ref: "input",
|
|
61
|
-
name: a.name,
|
|
62
|
-
checked: a.modelValue,
|
|
63
|
-
disabled: a.disabled,
|
|
64
|
-
type: "checkbox",
|
|
65
|
-
onChange: l[0] || (l[0] = (...n) => t.onInput && t.onInput(...n))
|
|
66
|
-
}, null, 40, f),
|
|
67
|
-
d("span", null, [
|
|
68
|
-
c(e.$slots, "default", {}, void 0, !0)
|
|
69
|
-
])
|
|
70
|
-
], 2);
|
|
71
|
-
}
|
|
72
|
-
const _ = /* @__PURE__ */ u(r, [["render", m], ["__scopeId", "data-v-ff0025cf"]]);
|
|
73
|
-
export {
|
|
74
|
-
_ as C
|
|
75
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, ref as c, toRef as k, computed as p, openBlock as s, createBlock as i, withCtx as l, unref as a, normalizeProps as y, mergeProps as L, createCommentVNode as m, createVNode as w, renderSlot as b } from "vue";
|
|
2
|
-
import { L as F, E as D } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-Dq1Jv6TX.js";
|
|
3
|
-
import { u as E } from "./useHideOnNull-CCfNP3O7.js";
|
|
4
|
-
import { u as N } from "./usePossibleValues-DJHSR3yJ.js";
|
|
5
|
-
import { L as B } from "./LoadingDropdown-DVtYSqZi.js";
|
|
6
|
-
import { C as P } from "./Checkbox-C3WOC8SX.js";
|
|
7
|
-
const I = /* @__PURE__ */ C({
|
|
8
|
-
__name: "DropdownControl",
|
|
9
|
-
props: {
|
|
10
|
-
control: {},
|
|
11
|
-
handleChange: { type: Function },
|
|
12
|
-
changeValue: { type: Function },
|
|
13
|
-
disabled: { type: Boolean },
|
|
14
|
-
labelForId: {},
|
|
15
|
-
isValid: { type: Boolean },
|
|
16
|
-
messages: {},
|
|
17
|
-
onRegisterValidation: { type: Function }
|
|
18
|
-
},
|
|
19
|
-
setup(h) {
|
|
20
|
-
const o = h, r = c(null), { possibleValues: n } = N(k(o, "control")), d = c(o.control.data), f = (e) => e.length > 0 ? e[0].id : null, { showCheckbox: V, showControl: g, checkboxProps: v } = E(
|
|
21
|
-
{
|
|
22
|
-
control: p(() => o.control),
|
|
23
|
-
disabled: p(() => o.disabled),
|
|
24
|
-
controlElement: r
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
setDefault: () => {
|
|
28
|
-
!d.value && n.value ? o.changeValue(
|
|
29
|
-
f(n.value)
|
|
30
|
-
) : o.changeValue(d.value);
|
|
31
|
-
},
|
|
32
|
-
setNull: () => {
|
|
33
|
-
o.changeValue(null);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
return (e, H) => {
|
|
38
|
-
var u;
|
|
39
|
-
return s(), i(F, {
|
|
40
|
-
label: e.control.label,
|
|
41
|
-
"hide-control-header": (u = e.control.uischema.options) == null ? void 0 : u.hideControlHeader
|
|
42
|
-
}, {
|
|
43
|
-
"before-label": l(() => [
|
|
44
|
-
a(V) ? (s(), i(a(P), y(L({ key: 0 }, a(v))), null, 16)) : m("", !0)
|
|
45
|
-
]),
|
|
46
|
-
default: l(({ labelForId: t }) => [
|
|
47
|
-
a(g) ? (s(), i(D, {
|
|
48
|
-
key: 0,
|
|
49
|
-
errors: e.messages.errors
|
|
50
|
-
}, {
|
|
51
|
-
default: l(() => [
|
|
52
|
-
w(B, {
|
|
53
|
-
id: t ?? "",
|
|
54
|
-
ref_key: "controlElement",
|
|
55
|
-
ref: r,
|
|
56
|
-
ariaLabel: e.control.label,
|
|
57
|
-
disabled: e.disabled,
|
|
58
|
-
"model-value": e.control.data ?? "",
|
|
59
|
-
"possible-values": a(n),
|
|
60
|
-
"is-valid": e.isValid,
|
|
61
|
-
compact: "",
|
|
62
|
-
"onUpdate:modelValue": e.changeValue
|
|
63
|
-
}, null, 8, ["id", "ariaLabel", "disabled", "model-value", "possible-values", "is-valid", "onUpdate:modelValue"])
|
|
64
|
-
]),
|
|
65
|
-
_: 2
|
|
66
|
-
}, 1032, ["errors"])) : m("", !0)
|
|
67
|
-
]),
|
|
68
|
-
icon: l(() => [
|
|
69
|
-
b(e.$slots, "icon")
|
|
70
|
-
]),
|
|
71
|
-
buttons: l(({ hover: t }) => [
|
|
72
|
-
b(e.$slots, "buttons", {
|
|
73
|
-
hover: t,
|
|
74
|
-
controlHTMLElement: r.value
|
|
75
|
-
})
|
|
76
|
-
]),
|
|
77
|
-
_: 3
|
|
78
|
-
}, 8, ["label", "hide-control-header"]);
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
export {
|
|
83
|
-
I as default
|
|
84
|
-
};
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { defineComponent as k, ref as y, computed as m, openBlock as d, createBlock as i, withCtx as t, unref as r, normalizeProps as E, mergeProps as B, createCommentVNode as u, createVNode as F, renderSlot as h } from "vue";
|
|
2
|
-
import { u as L, L as P, E as w } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-Dq1Jv6TX.js";
|
|
3
|
-
import { u as N } from "./useBuiltinValidations-CQ7jhonx.js";
|
|
4
|
-
import { u as $ } from "./useHideOnNull-CCfNP3O7.js";
|
|
5
|
-
import { C as H } from "./Checkbox-C3WOC8SX.js";
|
|
6
|
-
import { I } from "./InputField-C_Kwnh2D.js";
|
|
7
|
-
const z = /* @__PURE__ */ k({
|
|
8
|
-
__name: "TextControl",
|
|
9
|
-
props: {
|
|
10
|
-
control: {},
|
|
11
|
-
handleChange: { type: Function },
|
|
12
|
-
changeValue: { type: Function },
|
|
13
|
-
disabled: { type: Boolean },
|
|
14
|
-
labelForId: {},
|
|
15
|
-
isValid: { type: Boolean },
|
|
16
|
-
messages: {},
|
|
17
|
-
onRegisterValidation: { type: Function }
|
|
18
|
-
},
|
|
19
|
-
setup(b) {
|
|
20
|
-
var c, p;
|
|
21
|
-
const l = b;
|
|
22
|
-
N(
|
|
23
|
-
{
|
|
24
|
-
pattern: ({ pattern: e }) => {
|
|
25
|
-
const o = new RegExp(`^(${e})$`);
|
|
26
|
-
return (n) => o.test(n ?? "");
|
|
27
|
-
},
|
|
28
|
-
minLength: ({ minLength: e }) => (o) => ((o == null ? void 0 : o.length) ?? 0) >= e,
|
|
29
|
-
maxLength: ({ maxLength: e }) => (o) => ((o == null ? void 0 : o.length) ?? 0) <= e
|
|
30
|
-
},
|
|
31
|
-
l
|
|
32
|
-
);
|
|
33
|
-
const f = L(
|
|
34
|
-
(c = l.control.uischema.options) == null ? void 0 : c.placeholderProvider,
|
|
35
|
-
((p = l.control.uischema.options) == null ? void 0 : p.placeholder) ?? ""
|
|
36
|
-
), a = y(null), { showCheckbox: g, showControl: V, checkboxProps: C } = $(
|
|
37
|
-
{
|
|
38
|
-
control: m(() => l.control),
|
|
39
|
-
disabled: m(() => l.disabled),
|
|
40
|
-
controlElement: a
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
setDefault: () => l.changeValue(""),
|
|
44
|
-
setNull: () => l.changeValue(null)
|
|
45
|
-
}
|
|
46
|
-
);
|
|
47
|
-
return (e, o) => {
|
|
48
|
-
var n;
|
|
49
|
-
return d(), i(P, {
|
|
50
|
-
label: e.control.label,
|
|
51
|
-
"hide-control-header": (n = e.control.uischema.options) == null ? void 0 : n.hideControlHeader
|
|
52
|
-
}, {
|
|
53
|
-
"before-label": t(() => [
|
|
54
|
-
r(g) ? (d(), i(r(H), E(B({ key: 0 }, r(C))), null, 16)) : u("", !0)
|
|
55
|
-
]),
|
|
56
|
-
default: t(({ labelForId: s }) => [
|
|
57
|
-
r(V) ? (d(), i(w, {
|
|
58
|
-
key: 0,
|
|
59
|
-
errors: e.messages.errors
|
|
60
|
-
}, {
|
|
61
|
-
default: t(() => [
|
|
62
|
-
F(r(I), {
|
|
63
|
-
id: s,
|
|
64
|
-
ref_key: "controlElement",
|
|
65
|
-
ref: a,
|
|
66
|
-
placeholder: r(f),
|
|
67
|
-
"model-value": e.control.data,
|
|
68
|
-
disabled: e.disabled,
|
|
69
|
-
"is-valid": e.isValid,
|
|
70
|
-
compact: "",
|
|
71
|
-
"onUpdate:modelValue": e.changeValue
|
|
72
|
-
}, null, 8, ["id", "placeholder", "model-value", "disabled", "is-valid", "onUpdate:modelValue"])
|
|
73
|
-
]),
|
|
74
|
-
_: 2
|
|
75
|
-
}, 1032, ["errors"])) : u("", !0)
|
|
76
|
-
]),
|
|
77
|
-
icon: t(() => [
|
|
78
|
-
h(e.$slots, "icon")
|
|
79
|
-
]),
|
|
80
|
-
buttons: t(({ hover: s }) => [
|
|
81
|
-
h(e.$slots, "buttons", {
|
|
82
|
-
hover: s,
|
|
83
|
-
controlHTMLElement: a.value
|
|
84
|
-
})
|
|
85
|
-
]),
|
|
86
|
-
_: 3
|
|
87
|
-
}, 8, ["label", "hide-control-header"]);
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
export {
|
|
92
|
-
z as _
|
|
93
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { computed as u, unref as a, watch as h, nextTick as m } from "vue";
|
|
2
|
-
const f = ({
|
|
3
|
-
control: o,
|
|
4
|
-
disabled: d,
|
|
5
|
-
controlElement: i
|
|
6
|
-
}, c) => {
|
|
7
|
-
const t = u(
|
|
8
|
-
() => {
|
|
9
|
-
var e, l;
|
|
10
|
-
return ((l = (e = a(o).uischema) == null ? void 0 : e.options) == null ? void 0 : l.hideOnNull) ?? !1;
|
|
11
|
-
}
|
|
12
|
-
), s = u(
|
|
13
|
-
() => a(o).data === null || typeof a(o).data > "u"
|
|
14
|
-
), n = u(() => !(t.value && s.value));
|
|
15
|
-
h(
|
|
16
|
-
() => n.value,
|
|
17
|
-
() => m(() => {
|
|
18
|
-
var e, l;
|
|
19
|
-
return (l = (e = i.value) == null ? void 0 : e.focus) == null ? void 0 : l.call(e);
|
|
20
|
-
})
|
|
21
|
-
);
|
|
22
|
-
const p = (e) => c[e ? "setDefault" : "setNull"]();
|
|
23
|
-
return {
|
|
24
|
-
showCheckbox: t,
|
|
25
|
-
showControl: n,
|
|
26
|
-
checkboxProps: u(() => ({
|
|
27
|
-
modelValue: !s.value,
|
|
28
|
-
"onUpdate:modelValue": p,
|
|
29
|
-
disabled: a(d),
|
|
30
|
-
/**
|
|
31
|
-
* These styles grant that the checkbox aligns with the label when placed in a LabeledControl
|
|
32
|
-
*/
|
|
33
|
-
style: {
|
|
34
|
-
marginTop: "-3px",
|
|
35
|
-
marginRight: "-15px"
|
|
36
|
-
}
|
|
37
|
-
}))
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
export {
|
|
41
|
-
f as u
|
|
42
|
-
};
|