@knime/jsonforms 1.12.3 → 1.12.5
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 +15 -0
- package/dist/{AnyOfTwinlist-C2hopPFE.js → AnyOfTwinlist-C64AJ-qM.js} +1 -1
- package/dist/{Button-a3DyR88M.js → Button-BnO2ctHk.js} +1 -1
- package/dist/{CheckboxControl-DoQCgnTf.js → CheckboxControl-CIprz1mr.js} +1 -1
- package/dist/{Checkboxes-DNbu05C7.js → Checkboxes-gk2dQ0ay.js} +1 -1
- package/dist/{CheckboxesControl-DgwL4BAl.js → CheckboxesControl-AxwZBv-d.js} +3 -3
- package/dist/{ComboBoxControl-DSSfSqIC.js → ComboBoxControl-Di7LvbVo.js} +59 -56
- package/dist/{DateControl-DArS42tY.js → DateControl-BxIC9FrW.js} +1 -1
- package/dist/{DateTimeControl-BuZ5D5EW.js → DateTimeControl-CND2Ws6l.js} +2 -2
- package/dist/{DateTimeFormatInput-BJepKEOT.js → DateTimeFormatInput-q3bE9FDf.js} +4 -4
- package/dist/{DateTimeFormatPickerControl-YAKOrguY.js → DateTimeFormatPickerControl-DyqX449y.js} +2 -2
- package/dist/{DateTimeFormatPickerWithTypeControl-CM2eu1Bq.js → DateTimeFormatPickerWithTypeControl-q9Uy4q6l.js} +3 -3
- package/dist/{DateTimeInput-B30lQ3sx.js → DateTimeInput-DMWRo8Rw.js} +6 -6
- package/dist/{Dropdown-Cp5fC5vt.js → Dropdown-CkTNCSyg.js} +3 -3
- package/dist/{DropdownControl-DXtUnm7l.js → DropdownControl-BbpLYzdw.js} +2 -2
- package/dist/{HorizontalLayout-BTxnoo0O.js → HorizontalLayout-L7yybmHw.js} +1 -1
- package/dist/{InputField-B2bBpIrm.js → InputField-DqiHmU2J.js} +1 -1
- package/dist/{IntegerControl-CamhgT4b.js → IntegerControl-D6Brt095.js} +1 -1
- package/dist/{IntervalControl-Dhz8aY9W.js → IntervalControl-DGWMCQvo.js} +4 -4
- package/dist/{LoadingDropdown-DFLGXxJe.js → LoadingDropdown-1EtneC8N.js} +3 -3
- package/dist/{ManualTwinlistControl-C1Bk354m.js → ManualTwinlistControl-V63nnyr_.js} +4 -4
- package/dist/{MultiSelectListBoxControl-DiSPf1p7.js → MultiSelectListBoxControl-B3Mt0AMc.js} +2 -2
- package/dist/{MultimodeTwinlistControl-DnpmvhFB.js → MultimodeTwinlistControl-DTU3GV_1.js} +6 -6
- package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_ca157254_lang-DjGJNwBV.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_ca157254_lang-DEB2RPFe.js} +1 -1
- package/dist/{MultiselectListBox-DMZvKZT2.js → MultiselectListBox-DMA-bS8g.js} +12 -12
- package/dist/{NameFilter-qYooMIRr.js → NameFilter-CirK1jbB.js} +1 -1
- package/dist/{NumberControl-mAvpRa8P.js → NumberControl-C2rDPFM6.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-DsYiLVc0.js → NumberControlBase.vue_vue_type_script_setup_true_lang-BhJ-pM0U.js} +2 -2
- package/dist/{NumberInput-DfYpYs35.js → NumberInput-DgJPSX-t.js} +1 -1
- package/dist/{OneOfDropdown-Dx9oWy6Y.js → OneOfDropdown-kHNHWYo1.js} +1 -1
- package/dist/{RadioControl-C0sZejgk.js → RadioControl-Di8ZHzfP.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-BBZFZcBX.js → RadioControlBase.vue_vue_type_script_setup_true_lang-Dfd0RHVf.js} +3 -3
- package/dist/{RichTextControl-ikOmp5Zc.js → RichTextControl-DkV_1bmO.js} +5 -5
- package/dist/{SectionHeading-DoKeahJG.js → SectionHeading-jyubFaij.js} +1 -1
- package/dist/{SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-Dq3HWX2w.js → SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-f4_oWidN.js} +5012 -4981
- package/dist/{SectionLayout-DqhrTk7G.js → SectionLayout-rsR8zc2o.js} +3 -3
- package/dist/{SettingsSubPanel-BsP2TPpl.js → SettingsSubPanel-Cu9tMmFH.js} +1 -1
- package/dist/{SettingsSubPanelLayout-QgTIOWrJ.js → SettingsSubPanelLayout-IFWJzpyo.js} +4 -4
- package/dist/{SimpleButtonControl-DWOwphdQ.js → SimpleButtonControl-TaYKjvaZ.js} +2 -2
- package/dist/{SimpleTwinlistControl-Bm8f15KT.js → SimpleTwinlistControl-DHSEVMNw.js} +2 -2
- package/dist/{SingleSelectControl-DzoiFSGp.js → SingleSelectControl-DbvPKelZ.js} +2 -2
- package/dist/{SingleSelectListBoxControl-COshImPF.js → SingleSelectListBoxControl-BxvByTfI.js} +3 -3
- package/dist/{SortListControl-D5jBOA2x.js → SortListControl-M2XPJctR.js} +6 -6
- package/dist/{StyledListItem-DCmVSIus.js → StyledListItem-BZD6Sgly.js} +1 -1
- package/dist/{TextAreaControl-ijQXrkd5.js → TextAreaControl-C6a_q86j.js} +1 -1
- package/dist/{TextControl-Di5u3kig.js → TextControl-P30hO_Go.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-DWUPaWoR.js → TextControl.vue_vue_type_script_setup_true_lang-DXxUGEzp.js} +3 -3
- package/dist/{TimeControl-oa9oA0c7.js → TimeControl-CCkMiZi0.js} +2 -2
- package/dist/{TwinlistControlBase-Dm8KSJE0.js → TwinlistControlBase-BF0UtrbI.js} +3 -3
- package/dist/{TwinlistLoadingInfo-Dcbz2hUN.js → TwinlistLoadingInfo-DSi4-BVf.js} +4 -4
- package/dist/{TypedStringFilter-DOox0S1z.js → TypedStringFilter-7K-JOtAd.js} +1 -1
- package/dist/{ValueSwitch-Ba0d4Jda.js → ValueSwitch-p35zJYHc.js} +1 -1
- package/dist/{ValueSwitchControl-BFY2YwjA.js → ValueSwitchControl-Dn9Q7uZJ.js} +1 -1
- package/dist/{VerticalLayout-CdmecqY1.js → VerticalLayout-vUV02amg.js} +2 -2
- package/dist/{VerticalLayoutBase-2Al6mtWQ.js → VerticalLayoutBase-LcRfVrUV.js} +1 -1
- package/dist/{ZonedDateTimeControl-xwK_O0Ue.js → ZonedDateTimeControl-CagN8mx_.js} +4 -4
- package/dist/{_baseEach-kS6aH7yJ.js → _baseEach-8BL3bfU1.js} +2 -2
- package/dist/{_baseIteratee-CcwzbMbu.js → _baseIteratee-Dwk5GuFQ.js} +3 -3
- package/dist/{_getTag-DpK8q53u.js → _getTag-CPfnTOpI.js} +1 -1
- package/dist/index-CoRworrE.js +322 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +7 -7
- package/dist/{localTimeUtils-4g4u5t7X.js → localTimeUtils-BA466gCF.js} +1 -1
- package/dist/{magic-string.es-CWjITDzi.js → magic-string.es-D13vKDHh.js} +1 -1
- package/dist/src/higherOrderComponents/control/util.d.ts +1 -1
- package/dist/src/higherOrderComponents/control/validation/types.d.ts +5 -1
- package/dist/src/higherOrderComponents/control/validation/useValidation.d.ts +1 -1
- package/dist/src/renderers/defaultRenderers.d.ts +3 -3
- package/dist/src/renderers/simpleButtonRenderer.d.ts +3 -3
- package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +3 -3
- package/dist/{svgWithTitle-DGBkWQrO.js → svgWithTitle-IEX8zkIB.js} +1 -1
- package/dist/testing.js +3 -3
- package/dist/{toString-ByDUn5bZ.js → toString-DoCh2Ni9.js} +1 -1
- package/dist/useBuiltinValidations-Ck98ZbJs.js +74 -0
- package/dist/{usePossibleValues-BB4he0jT.js → usePossibleValues-Cjkgr7Bs.js} +1 -1
- package/package.json +4 -4
- package/dist/index-Bf0xDq3g.js +0 -373
- package/dist/useBuiltinValidations-ChTFREt7.js +0 -73
|
@@ -237,7 +237,7 @@ export declare const controls: {
|
|
|
237
237
|
labelForId?: null | undefined;
|
|
238
238
|
isValid: boolean;
|
|
239
239
|
messages: import('../higherOrderComponents/control/validation/types').Messages;
|
|
240
|
-
onRegisterValidation: (validation: import('../higherOrderComponents/control/validation/types').ValidationMethod<undefined>) => void;
|
|
240
|
+
onRegisterValidation: (validation: import('../higherOrderComponents/control/validation/types').ValidationMethod<undefined>) => () => void;
|
|
241
241
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, __VLS_ctx?: {
|
|
242
242
|
slots: {
|
|
243
243
|
buttons?(_: {
|
|
@@ -281,7 +281,7 @@ export declare const controls: {
|
|
|
281
281
|
labelForId?: null | undefined;
|
|
282
282
|
isValid: boolean;
|
|
283
283
|
messages: import('../higherOrderComponents/control/validation/types').Messages;
|
|
284
|
-
onRegisterValidation: (validation: import('../higherOrderComponents/control/validation/types').ValidationMethod<undefined>) => void;
|
|
284
|
+
onRegisterValidation: (validation: import('../higherOrderComponents/control/validation/types').ValidationMethod<undefined>) => () => void;
|
|
285
285
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
286
286
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
287
287
|
attrs: any;
|
|
@@ -329,7 +329,7 @@ export declare const controls: {
|
|
|
329
329
|
labelForId?: null | undefined;
|
|
330
330
|
isValid: boolean;
|
|
331
331
|
messages: import('../higherOrderComponents/control/validation/types').Messages;
|
|
332
|
-
onRegisterValidation: (validation: import('../higherOrderComponents/control/validation/types').ValidationMethod<undefined>) => void;
|
|
332
|
+
onRegisterValidation: (validation: import('../higherOrderComponents/control/validation/types').ValidationMethod<undefined>) => () => void;
|
|
333
333
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
334
334
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
335
335
|
attrs: any;
|
|
@@ -34,7 +34,7 @@ export declare const simpleButtonRenderer: {
|
|
|
34
34
|
labelForId?: null | undefined;
|
|
35
35
|
isValid: boolean;
|
|
36
36
|
messages: import('../higherOrderComponents/control/validation/types').Messages;
|
|
37
|
-
onRegisterValidation: (validation: import('../higherOrderComponents/control/validation/types').ValidationMethod<undefined>) => void;
|
|
37
|
+
onRegisterValidation: (validation: import('../higherOrderComponents/control/validation/types').ValidationMethod<undefined>) => () => void;
|
|
38
38
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, __VLS_ctx?: {
|
|
39
39
|
slots: {
|
|
40
40
|
buttons?(_: {
|
|
@@ -78,7 +78,7 @@ export declare const simpleButtonRenderer: {
|
|
|
78
78
|
labelForId?: null | undefined;
|
|
79
79
|
isValid: boolean;
|
|
80
80
|
messages: import('../higherOrderComponents/control/validation/types').Messages;
|
|
81
|
-
onRegisterValidation: (validation: import('../higherOrderComponents/control/validation/types').ValidationMethod<undefined>) => void;
|
|
81
|
+
onRegisterValidation: (validation: import('../higherOrderComponents/control/validation/types').ValidationMethod<undefined>) => () => void;
|
|
82
82
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
83
83
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
84
84
|
attrs: any;
|
|
@@ -126,7 +126,7 @@ export declare const simpleButtonRenderer: {
|
|
|
126
126
|
labelForId?: null | undefined;
|
|
127
127
|
isValid: boolean;
|
|
128
128
|
messages: import('../higherOrderComponents/control/validation/types').Messages;
|
|
129
|
-
onRegisterValidation: (validation: import('../higherOrderComponents/control/validation/types').ValidationMethod<undefined>) => void;
|
|
129
|
+
onRegisterValidation: (validation: import('../higherOrderComponents/control/validation/types').ValidationMethod<undefined>) => () => void;
|
|
130
130
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
131
131
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
132
132
|
attrs: any;
|
|
@@ -32,7 +32,7 @@ declare const _default: <SettingValue>(__VLS_props: {
|
|
|
32
32
|
labelForId?: null | undefined;
|
|
33
33
|
isValid: boolean;
|
|
34
34
|
messages: import('../higherOrderComponents/control/validation/types').Messages;
|
|
35
|
-
onRegisterValidation: (validation: import('../higherOrderComponents/control/validation/types').ValidationMethod<undefined>) => void;
|
|
35
|
+
onRegisterValidation: (validation: import('../higherOrderComponents/control/validation/types').ValidationMethod<undefined>) => () => void;
|
|
36
36
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, __VLS_ctx?: {
|
|
37
37
|
slots: {
|
|
38
38
|
buttons?(_: {
|
|
@@ -76,7 +76,7 @@ declare const _default: <SettingValue>(__VLS_props: {
|
|
|
76
76
|
labelForId?: null | undefined;
|
|
77
77
|
isValid: boolean;
|
|
78
78
|
messages: import('../higherOrderComponents/control/validation/types').Messages;
|
|
79
|
-
onRegisterValidation: (validation: import('../higherOrderComponents/control/validation/types').ValidationMethod<undefined>) => void;
|
|
79
|
+
onRegisterValidation: (validation: import('../higherOrderComponents/control/validation/types').ValidationMethod<undefined>) => () => void;
|
|
80
80
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
81
81
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
82
82
|
attrs: any;
|
|
@@ -124,7 +124,7 @@ declare const _default: <SettingValue>(__VLS_props: {
|
|
|
124
124
|
labelForId?: null | undefined;
|
|
125
125
|
isValid: boolean;
|
|
126
126
|
messages: import('../higherOrderComponents/control/validation/types').Messages;
|
|
127
|
-
onRegisterValidation: (validation: import('../higherOrderComponents/control/validation/types').ValidationMethod<undefined>) => void;
|
|
127
|
+
onRegisterValidation: (validation: import('../higherOrderComponents/control/validation/types').ValidationMethod<undefined>) => () => void;
|
|
128
128
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
129
129
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
130
130
|
attrs: any;
|
|
@@ -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-f4_oWidN.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 { o as J_, q as H_, e as Y_ } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-
|
|
7
|
-
import { b as Q_ } from "./_baseIteratee-
|
|
6
|
+
import { o as J_, q as H_, e as Y_ } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-f4_oWidN.js";
|
|
7
|
+
import { b as Q_ } from "./_baseIteratee-Dwk5GuFQ.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-D13vKDHh.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, o as g } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-
|
|
1
|
+
import { S as s, o as g } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-f4_oWidN.js";
|
|
2
2
|
import { i as l } from "./isArray-WzO_os3q.js";
|
|
3
3
|
function p(r, t) {
|
|
4
4
|
for (var n = -1, i = r == null ? 0 : r.length, o = Array(i); ++n < i; )
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { onUnmounted as u, toRef as p, computed as d } from "vue";
|
|
2
|
+
import { u as f } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-f4_oWidN.js";
|
|
3
|
+
const h = (t = {}) => t.validation || null, m = (t) => t.replace(/^validation\./, ""), v = (t) => {
|
|
4
|
+
const a = (t.providedOptions ?? []).filter(
|
|
5
|
+
(e) => e.startsWith("validation.")
|
|
6
|
+
);
|
|
7
|
+
return a.length === 0 ? null : a.reduce(
|
|
8
|
+
(e, n) => ({
|
|
9
|
+
...e,
|
|
10
|
+
[m(n)]: f(
|
|
11
|
+
p(t),
|
|
12
|
+
// @ts-expect-error - the valid provided options cannot be inferred
|
|
13
|
+
n
|
|
14
|
+
)
|
|
15
|
+
}),
|
|
16
|
+
{}
|
|
17
|
+
);
|
|
18
|
+
}, s = (t) => Object.entries(t), c = (t, a) => {
|
|
19
|
+
const e = s(t).map(
|
|
20
|
+
([n, { parameters: o, errorMessage: i }]) => ({
|
|
21
|
+
validate: a[n](o),
|
|
22
|
+
errorMessage: i
|
|
23
|
+
})
|
|
24
|
+
);
|
|
25
|
+
return (n) => ({
|
|
26
|
+
errors: e.filter(({ validate: o }) => !o(n)).map(({ errorMessage: o }) => o)
|
|
27
|
+
});
|
|
28
|
+
}, V = (t, a, e) => t === null ? null : c(
|
|
29
|
+
{
|
|
30
|
+
[a]: t
|
|
31
|
+
},
|
|
32
|
+
e
|
|
33
|
+
), M = (t, a, e, n) => {
|
|
34
|
+
const o = [];
|
|
35
|
+
if (t) {
|
|
36
|
+
const i = c(t, e);
|
|
37
|
+
o.push(n(i));
|
|
38
|
+
}
|
|
39
|
+
return a && s(a).map(
|
|
40
|
+
([r, l]) => d(
|
|
41
|
+
() => V(l.value, r, e)
|
|
42
|
+
)
|
|
43
|
+
).map(n).forEach((r) => o.push(r)), o;
|
|
44
|
+
}, b = ({
|
|
45
|
+
validations: t,
|
|
46
|
+
providedValidations: a
|
|
47
|
+
}) => {
|
|
48
|
+
const e = s(t || {}).reduce(
|
|
49
|
+
(n, [o, { parameters: i }]) => ({ ...n, [o]: i }),
|
|
50
|
+
{}
|
|
51
|
+
);
|
|
52
|
+
return d(() => a === null ? e : s(a).map(([n, o]) => ({
|
|
53
|
+
key: n,
|
|
54
|
+
providedValidation: o.value
|
|
55
|
+
})).filter(({ providedValidation: n }) => n !== null).reduce(
|
|
56
|
+
(n, { key: o, providedValidation: i }) => ({
|
|
57
|
+
...n,
|
|
58
|
+
// @ts-expect-error - we know that providedValidation is not null here
|
|
59
|
+
[o]: i.parameters
|
|
60
|
+
}),
|
|
61
|
+
e
|
|
62
|
+
));
|
|
63
|
+
}, O = (t, a) => {
|
|
64
|
+
const { uischema: e } = a.control, { options: n } = e, o = h(n), i = v(e), r = M(
|
|
65
|
+
o,
|
|
66
|
+
i,
|
|
67
|
+
t,
|
|
68
|
+
a.onRegisterValidation
|
|
69
|
+
);
|
|
70
|
+
return u(() => r.forEach((l) => l())), b({ validations: o, providedValidations: i });
|
|
71
|
+
};
|
|
72
|
+
export {
|
|
73
|
+
O as u
|
|
74
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as a } from "vue";
|
|
2
|
-
import { u as o } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-
|
|
2
|
+
import { u as o } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-f4_oWidN.js";
|
|
3
3
|
const t = (s) => {
|
|
4
4
|
const e = a(() => s.value.uischema);
|
|
5
5
|
return { possibleValues: o(e, "possibleValues") };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/jsonforms",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.5",
|
|
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)",
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"focus-trap-vue": "4.0.3",
|
|
16
16
|
"tabbable": "6.2.0",
|
|
17
17
|
"uuid": "10.0.0",
|
|
18
|
-
"@knime/components": "1.29.
|
|
19
|
-
"@knime/rich-text-editor": "1.4.
|
|
18
|
+
"@knime/components": "1.29.1",
|
|
19
|
+
"@knime/rich-text-editor": "1.4.18",
|
|
20
20
|
"@knime/styles": "1.5.0",
|
|
21
|
-
"@knime/utils": "1.4.
|
|
21
|
+
"@knime/utils": "1.4.2"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"consola": "3.x",
|
package/dist/index-Bf0xDq3g.js
DELETED
|
@@ -1,373 +0,0 @@
|
|
|
1
|
-
import { getCurrentScope as $, onScopeDispose as G, unref as N, toRef as j, readonly as K, customRef as q, ref as g, onMounted as C, nextTick as U, getCurrentInstance as k, computed as w, watch as A, shallowRef as X } from "vue";
|
|
2
|
-
function S(e) {
|
|
3
|
-
return $() ? (G(e), !0) : !1;
|
|
4
|
-
}
|
|
5
|
-
function E(e) {
|
|
6
|
-
return typeof e == "function" ? e() : N(e);
|
|
7
|
-
}
|
|
8
|
-
const M = typeof window < "u" && typeof document < "u";
|
|
9
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
10
|
-
const Y = (e) => e != null, J = Object.prototype.toString, Q = (e) => J.call(e) === "[object Object]", R = () => {
|
|
11
|
-
}, Z = /* @__PURE__ */ F();
|
|
12
|
-
function F() {
|
|
13
|
-
var e, t;
|
|
14
|
-
return M && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
15
|
-
}
|
|
16
|
-
function ee(e) {
|
|
17
|
-
return k();
|
|
18
|
-
}
|
|
19
|
-
function de(...e) {
|
|
20
|
-
if (e.length !== 1)
|
|
21
|
-
return j(...e);
|
|
22
|
-
const t = e[0];
|
|
23
|
-
return typeof t == "function" ? K(q(() => ({ get: t, set: R }))) : g(t);
|
|
24
|
-
}
|
|
25
|
-
function te(e, t = !0, n) {
|
|
26
|
-
ee() ? C(e, n) : t ? e() : U(e);
|
|
27
|
-
}
|
|
28
|
-
function h(e) {
|
|
29
|
-
var t;
|
|
30
|
-
const n = E(e);
|
|
31
|
-
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
32
|
-
}
|
|
33
|
-
const y = M ? window : void 0;
|
|
34
|
-
function b(...e) {
|
|
35
|
-
let t, n, o, u;
|
|
36
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, u] = e, t = y) : [t, n, o, u] = e, !t)
|
|
37
|
-
return R;
|
|
38
|
-
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
39
|
-
const s = [], f = () => {
|
|
40
|
-
s.forEach((i) => i()), s.length = 0;
|
|
41
|
-
}, c = (i, l, r, a) => (i.addEventListener(l, r, a), () => i.removeEventListener(l, r, a)), p = A(
|
|
42
|
-
() => [h(t), E(u)],
|
|
43
|
-
([i, l]) => {
|
|
44
|
-
if (f(), !i)
|
|
45
|
-
return;
|
|
46
|
-
const r = Q(l) ? { ...l } : l;
|
|
47
|
-
s.push(
|
|
48
|
-
...n.flatMap((a) => o.map((v) => c(i, a, v, r)))
|
|
49
|
-
);
|
|
50
|
-
},
|
|
51
|
-
{ immediate: !0, flush: "post" }
|
|
52
|
-
), d = () => {
|
|
53
|
-
p(), f();
|
|
54
|
-
};
|
|
55
|
-
return S(d), d;
|
|
56
|
-
}
|
|
57
|
-
let T = !1;
|
|
58
|
-
function pe(e, t, n = {}) {
|
|
59
|
-
const { window: o = y, ignore: u = [], capture: s = !0, detectIframe: f = !1 } = n;
|
|
60
|
-
if (!o)
|
|
61
|
-
return R;
|
|
62
|
-
Z && !T && (T = !0, Array.from(o.document.body.children).forEach((r) => r.addEventListener("click", R)), o.document.documentElement.addEventListener("click", R));
|
|
63
|
-
let c = !0;
|
|
64
|
-
const p = (r) => u.some((a) => {
|
|
65
|
-
if (typeof a == "string")
|
|
66
|
-
return Array.from(o.document.querySelectorAll(a)).some((v) => v === r.target || r.composedPath().includes(v));
|
|
67
|
-
{
|
|
68
|
-
const v = h(a);
|
|
69
|
-
return v && (r.target === v || r.composedPath().includes(v));
|
|
70
|
-
}
|
|
71
|
-
}), i = [
|
|
72
|
-
b(o, "click", (r) => {
|
|
73
|
-
const a = h(e);
|
|
74
|
-
if (!(!a || a === r.target || r.composedPath().includes(a))) {
|
|
75
|
-
if (r.detail === 0 && (c = !p(r)), !c) {
|
|
76
|
-
c = !0;
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
t(r);
|
|
80
|
-
}
|
|
81
|
-
}, { passive: !0, capture: s }),
|
|
82
|
-
b(o, "pointerdown", (r) => {
|
|
83
|
-
const a = h(e);
|
|
84
|
-
c = !p(r) && !!(a && !r.composedPath().includes(a));
|
|
85
|
-
}, { passive: !0 }),
|
|
86
|
-
f && b(o, "blur", (r) => {
|
|
87
|
-
setTimeout(() => {
|
|
88
|
-
var a;
|
|
89
|
-
const v = h(e);
|
|
90
|
-
((a = o.document.activeElement) == null ? void 0 : a.tagName) === "IFRAME" && !(v != null && v.contains(o.document.activeElement)) && t(r);
|
|
91
|
-
}, 0);
|
|
92
|
-
})
|
|
93
|
-
].filter(Boolean);
|
|
94
|
-
return () => i.forEach((r) => r());
|
|
95
|
-
}
|
|
96
|
-
function ne(e) {
|
|
97
|
-
return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
98
|
-
}
|
|
99
|
-
function oe(...e) {
|
|
100
|
-
let t, n, o = {};
|
|
101
|
-
e.length === 3 ? (t = e[0], n = e[1], o = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], o = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
|
|
102
|
-
const {
|
|
103
|
-
target: u = y,
|
|
104
|
-
eventName: s = "keydown",
|
|
105
|
-
passive: f = !1,
|
|
106
|
-
dedupe: c = !1
|
|
107
|
-
} = o, p = ne(t);
|
|
108
|
-
return b(u, s, (i) => {
|
|
109
|
-
i.repeat && E(c) || p(i) && n(i);
|
|
110
|
-
}, f);
|
|
111
|
-
}
|
|
112
|
-
function ve(e, t, n = {}) {
|
|
113
|
-
return oe(e, t, { ...n, eventName: "keydown" });
|
|
114
|
-
}
|
|
115
|
-
function re() {
|
|
116
|
-
const e = g(!1), t = k();
|
|
117
|
-
return t && C(() => {
|
|
118
|
-
e.value = !0;
|
|
119
|
-
}, t), e;
|
|
120
|
-
}
|
|
121
|
-
function P(e) {
|
|
122
|
-
const t = re();
|
|
123
|
-
return w(() => (t.value, !!e()));
|
|
124
|
-
}
|
|
125
|
-
function se(e, t, n = {}) {
|
|
126
|
-
const { window: o = y, ...u } = n;
|
|
127
|
-
let s;
|
|
128
|
-
const f = P(() => o && "MutationObserver" in o), c = () => {
|
|
129
|
-
s && (s.disconnect(), s = void 0);
|
|
130
|
-
}, p = w(() => {
|
|
131
|
-
const r = E(e), a = (Array.isArray(r) ? r : [r]).map(h).filter(Y);
|
|
132
|
-
return new Set(a);
|
|
133
|
-
}), d = A(
|
|
134
|
-
() => p.value,
|
|
135
|
-
(r) => {
|
|
136
|
-
c(), f.value && r.size && (s = new MutationObserver(t), r.forEach((a) => s.observe(a, u)));
|
|
137
|
-
},
|
|
138
|
-
{ immediate: !0, flush: "post" }
|
|
139
|
-
), i = () => s == null ? void 0 : s.takeRecords(), l = () => {
|
|
140
|
-
c(), d();
|
|
141
|
-
};
|
|
142
|
-
return S(l), {
|
|
143
|
-
isSupported: f,
|
|
144
|
-
stop: l,
|
|
145
|
-
takeRecords: i
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
function he(e = {}) {
|
|
149
|
-
var t;
|
|
150
|
-
const {
|
|
151
|
-
window: n = y,
|
|
152
|
-
deep: o = !0,
|
|
153
|
-
triggerOnRemoval: u = !1
|
|
154
|
-
} = e, s = (t = e.document) != null ? t : n == null ? void 0 : n.document, f = () => {
|
|
155
|
-
var d;
|
|
156
|
-
let i = s == null ? void 0 : s.activeElement;
|
|
157
|
-
if (o)
|
|
158
|
-
for (; i != null && i.shadowRoot; )
|
|
159
|
-
i = (d = i == null ? void 0 : i.shadowRoot) == null ? void 0 : d.activeElement;
|
|
160
|
-
return i;
|
|
161
|
-
}, c = g(), p = () => {
|
|
162
|
-
c.value = f();
|
|
163
|
-
};
|
|
164
|
-
return n && (b(n, "blur", (d) => {
|
|
165
|
-
d.relatedTarget === null && p();
|
|
166
|
-
}, !0), b(n, "focus", p, !0)), u && se(s, (d) => {
|
|
167
|
-
d.filter((i) => i.removedNodes.length).map((i) => Array.from(i.removedNodes)).flat().forEach((i) => {
|
|
168
|
-
i === c.value && p();
|
|
169
|
-
});
|
|
170
|
-
}, {
|
|
171
|
-
childList: !0,
|
|
172
|
-
subtree: !0
|
|
173
|
-
}), p(), c;
|
|
174
|
-
}
|
|
175
|
-
function ue(e, t, n = {}) {
|
|
176
|
-
const { window: o = y, ...u } = n;
|
|
177
|
-
let s;
|
|
178
|
-
const f = P(() => o && "ResizeObserver" in o), c = () => {
|
|
179
|
-
s && (s.disconnect(), s = void 0);
|
|
180
|
-
}, p = w(() => Array.isArray(e) ? e.map((l) => h(l)) : [h(e)]), d = A(
|
|
181
|
-
p,
|
|
182
|
-
(l) => {
|
|
183
|
-
if (c(), f.value && o) {
|
|
184
|
-
s = new ResizeObserver(t);
|
|
185
|
-
for (const r of l)
|
|
186
|
-
r && s.observe(r, u);
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
{ immediate: !0, flush: "post" }
|
|
190
|
-
), i = () => {
|
|
191
|
-
c(), d();
|
|
192
|
-
};
|
|
193
|
-
return S(i), {
|
|
194
|
-
isSupported: f,
|
|
195
|
-
stop: i
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
function ce(e, t = { width: 0, height: 0 }, n = {}) {
|
|
199
|
-
const { window: o = y, box: u = "content-box" } = n, s = w(() => {
|
|
200
|
-
var l, r;
|
|
201
|
-
return (r = (l = h(e)) == null ? void 0 : l.namespaceURI) == null ? void 0 : r.includes("svg");
|
|
202
|
-
}), f = g(t.width), c = g(t.height), { stop: p } = ue(
|
|
203
|
-
e,
|
|
204
|
-
([l]) => {
|
|
205
|
-
const r = u === "border-box" ? l.borderBoxSize : u === "content-box" ? l.contentBoxSize : l.devicePixelContentBoxSize;
|
|
206
|
-
if (o && s.value) {
|
|
207
|
-
const a = h(e);
|
|
208
|
-
if (a) {
|
|
209
|
-
const v = a.getBoundingClientRect();
|
|
210
|
-
f.value = v.width, c.value = v.height;
|
|
211
|
-
}
|
|
212
|
-
} else if (r) {
|
|
213
|
-
const a = Array.isArray(r) ? r : [r];
|
|
214
|
-
f.value = a.reduce((v, { inlineSize: m }) => v + m, 0), c.value = a.reduce((v, { blockSize: m }) => v + m, 0);
|
|
215
|
-
} else
|
|
216
|
-
f.value = l.contentRect.width, c.value = l.contentRect.height;
|
|
217
|
-
},
|
|
218
|
-
n
|
|
219
|
-
);
|
|
220
|
-
te(() => {
|
|
221
|
-
const l = h(e);
|
|
222
|
-
l && (f.value = "offsetWidth" in l ? l.offsetWidth : t.width, c.value = "offsetHeight" in l ? l.offsetHeight : t.height);
|
|
223
|
-
});
|
|
224
|
-
const d = A(
|
|
225
|
-
() => h(e),
|
|
226
|
-
(l) => {
|
|
227
|
-
f.value = l ? t.width : 0, c.value = l ? t.height : 0;
|
|
228
|
-
}
|
|
229
|
-
);
|
|
230
|
-
function i() {
|
|
231
|
-
p(), d();
|
|
232
|
-
}
|
|
233
|
-
return {
|
|
234
|
-
width: f,
|
|
235
|
-
height: c,
|
|
236
|
-
stop: i
|
|
237
|
-
};
|
|
238
|
-
}
|
|
239
|
-
function me(e, t) {
|
|
240
|
-
const { containerStyle: n, wrapperProps: o, scrollTo: u, calculateRange: s, currentList: f, containerRef: c } = "itemHeight" in t ? ae(t, e) : le(t, e);
|
|
241
|
-
return {
|
|
242
|
-
list: f,
|
|
243
|
-
scrollTo: u,
|
|
244
|
-
containerProps: {
|
|
245
|
-
ref: c,
|
|
246
|
-
onScroll: () => {
|
|
247
|
-
s();
|
|
248
|
-
},
|
|
249
|
-
style: n
|
|
250
|
-
},
|
|
251
|
-
wrapperProps: o
|
|
252
|
-
};
|
|
253
|
-
}
|
|
254
|
-
function W(e) {
|
|
255
|
-
const t = g(null), n = ce(t), o = g([]), u = X(e);
|
|
256
|
-
return { state: g({ start: 0, end: 10 }), source: u, currentList: o, size: n, containerRef: t };
|
|
257
|
-
}
|
|
258
|
-
function _(e, t, n) {
|
|
259
|
-
return (o) => {
|
|
260
|
-
if (typeof n == "number")
|
|
261
|
-
return Math.ceil(o / n);
|
|
262
|
-
const { start: u = 0 } = e.value;
|
|
263
|
-
let s = 0, f = 0;
|
|
264
|
-
for (let c = u; c < t.value.length; c++) {
|
|
265
|
-
const p = n(c);
|
|
266
|
-
if (s += p, f = c, s > o)
|
|
267
|
-
break;
|
|
268
|
-
}
|
|
269
|
-
return f - u;
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
function z(e, t) {
|
|
273
|
-
return (n) => {
|
|
274
|
-
if (typeof t == "number")
|
|
275
|
-
return Math.floor(n / t) + 1;
|
|
276
|
-
let o = 0, u = 0;
|
|
277
|
-
for (let s = 0; s < e.value.length; s++) {
|
|
278
|
-
const f = t(s);
|
|
279
|
-
if (o += f, o >= n) {
|
|
280
|
-
u = s;
|
|
281
|
-
break;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
return u + 1;
|
|
285
|
-
};
|
|
286
|
-
}
|
|
287
|
-
function V(e, t, n, o, { containerRef: u, state: s, currentList: f, source: c }) {
|
|
288
|
-
return () => {
|
|
289
|
-
const p = u.value;
|
|
290
|
-
if (p) {
|
|
291
|
-
const d = n(e === "vertical" ? p.scrollTop : p.scrollLeft), i = o(e === "vertical" ? p.clientHeight : p.clientWidth), l = d - t, r = d + i + t;
|
|
292
|
-
s.value = {
|
|
293
|
-
start: l < 0 ? 0 : l,
|
|
294
|
-
end: r > c.value.length ? c.value.length : r
|
|
295
|
-
}, f.value = c.value.slice(s.value.start, s.value.end).map((a, v) => ({
|
|
296
|
-
data: a,
|
|
297
|
-
index: v + s.value.start
|
|
298
|
-
}));
|
|
299
|
-
}
|
|
300
|
-
};
|
|
301
|
-
}
|
|
302
|
-
function I(e, t) {
|
|
303
|
-
return (n) => typeof e == "number" ? n * e : t.value.slice(0, n).reduce((u, s, f) => u + e(f), 0);
|
|
304
|
-
}
|
|
305
|
-
function B(e, t, n, o) {
|
|
306
|
-
A([e.width, e.height, t, n], () => {
|
|
307
|
-
o();
|
|
308
|
-
});
|
|
309
|
-
}
|
|
310
|
-
function D(e, t) {
|
|
311
|
-
return w(() => typeof e == "number" ? t.value.length * e : t.value.reduce((n, o, u) => n + e(u), 0));
|
|
312
|
-
}
|
|
313
|
-
const ie = {
|
|
314
|
-
horizontal: "scrollLeft",
|
|
315
|
-
vertical: "scrollTop"
|
|
316
|
-
};
|
|
317
|
-
function H(e, t, n, o) {
|
|
318
|
-
return (u) => {
|
|
319
|
-
o.value && (o.value[ie[e]] = n(u), t());
|
|
320
|
-
};
|
|
321
|
-
}
|
|
322
|
-
function le(e, t) {
|
|
323
|
-
const n = W(t), { state: o, source: u, currentList: s, size: f, containerRef: c } = n, p = { overflowX: "auto" }, { itemWidth: d, overscan: i = 5 } = e, l = _(o, u, d), r = z(u, d), a = V("horizontal", i, r, l, n), v = I(d, u), m = w(() => v(o.value.start)), L = D(d, u);
|
|
324
|
-
B(f, t, c, a);
|
|
325
|
-
const O = H("horizontal", a, v, c), x = w(() => ({
|
|
326
|
-
style: {
|
|
327
|
-
height: "100%",
|
|
328
|
-
width: `${L.value - m.value}px`,
|
|
329
|
-
marginLeft: `${m.value}px`,
|
|
330
|
-
display: "flex"
|
|
331
|
-
}
|
|
332
|
-
}));
|
|
333
|
-
return {
|
|
334
|
-
scrollTo: O,
|
|
335
|
-
calculateRange: a,
|
|
336
|
-
wrapperProps: x,
|
|
337
|
-
containerStyle: p,
|
|
338
|
-
currentList: s,
|
|
339
|
-
containerRef: c
|
|
340
|
-
};
|
|
341
|
-
}
|
|
342
|
-
function ae(e, t) {
|
|
343
|
-
const n = W(t), { state: o, source: u, currentList: s, size: f, containerRef: c } = n, p = { overflowY: "auto" }, { itemHeight: d, overscan: i = 5 } = e, l = _(o, u, d), r = z(u, d), a = V("vertical", i, r, l, n), v = I(d, u), m = w(() => v(o.value.start)), L = D(d, u);
|
|
344
|
-
B(f, t, c, a);
|
|
345
|
-
const O = H("vertical", a, v, c), x = w(() => ({
|
|
346
|
-
style: {
|
|
347
|
-
width: "100%",
|
|
348
|
-
height: `${L.value - m.value}px`,
|
|
349
|
-
marginTop: `${m.value}px`
|
|
350
|
-
}
|
|
351
|
-
}));
|
|
352
|
-
return {
|
|
353
|
-
calculateRange: a,
|
|
354
|
-
scrollTo: O,
|
|
355
|
-
containerStyle: p,
|
|
356
|
-
wrapperProps: x,
|
|
357
|
-
currentList: s,
|
|
358
|
-
containerRef: c
|
|
359
|
-
};
|
|
360
|
-
}
|
|
361
|
-
export {
|
|
362
|
-
ve as a,
|
|
363
|
-
me as b,
|
|
364
|
-
E as c,
|
|
365
|
-
S as d,
|
|
366
|
-
Q as e,
|
|
367
|
-
M as f,
|
|
368
|
-
Z as i,
|
|
369
|
-
R as n,
|
|
370
|
-
pe as o,
|
|
371
|
-
de as t,
|
|
372
|
-
he as u
|
|
373
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { toRef as c, computed as d } from "vue";
|
|
2
|
-
import { u } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-Dq3HWX2w.js";
|
|
3
|
-
const v = (t = {}) => t.validation || null, f = (t) => t.replace(/^validation\./, ""), p = (t) => {
|
|
4
|
-
const i = (t.providedOptions ?? []).filter(
|
|
5
|
-
(n) => n.startsWith("validation.")
|
|
6
|
-
);
|
|
7
|
-
return i.length === 0 ? null : i.reduce(
|
|
8
|
-
(n, o) => ({
|
|
9
|
-
...n,
|
|
10
|
-
[f(o)]: u(
|
|
11
|
-
c(t),
|
|
12
|
-
// @ts-expect-error - the valid provided options cannot be inferred
|
|
13
|
-
o
|
|
14
|
-
)
|
|
15
|
-
}),
|
|
16
|
-
{}
|
|
17
|
-
);
|
|
18
|
-
}, r = (t) => Object.entries(t), s = (t, i) => {
|
|
19
|
-
const n = r(t).map(
|
|
20
|
-
([o, { parameters: e, errorMessage: a }]) => ({
|
|
21
|
-
validate: i[o](e),
|
|
22
|
-
errorMessage: a
|
|
23
|
-
})
|
|
24
|
-
);
|
|
25
|
-
return (o) => ({
|
|
26
|
-
errors: n.filter(({ validate: e }) => !e(o)).map(({ errorMessage: e }) => e)
|
|
27
|
-
});
|
|
28
|
-
}, m = (t, i, n) => t === null ? null : s(
|
|
29
|
-
{
|
|
30
|
-
[i]: t
|
|
31
|
-
},
|
|
32
|
-
n
|
|
33
|
-
), h = (t, i, n, o) => {
|
|
34
|
-
if (t) {
|
|
35
|
-
const e = s(t, n);
|
|
36
|
-
o(e);
|
|
37
|
-
}
|
|
38
|
-
i && r(i).map(
|
|
39
|
-
([a, l]) => d(
|
|
40
|
-
() => m(l.value, a, n)
|
|
41
|
-
)
|
|
42
|
-
).forEach(o);
|
|
43
|
-
}, V = ({
|
|
44
|
-
validations: t,
|
|
45
|
-
providedValidations: i
|
|
46
|
-
}) => {
|
|
47
|
-
const n = r(t || {}).reduce(
|
|
48
|
-
(o, [e, { parameters: a }]) => ({ ...o, [e]: a }),
|
|
49
|
-
{}
|
|
50
|
-
);
|
|
51
|
-
return d(() => i === null ? n : r(i).map(([o, e]) => ({
|
|
52
|
-
key: o,
|
|
53
|
-
providedValidation: e.value
|
|
54
|
-
})).filter(({ providedValidation: o }) => o !== null).reduce(
|
|
55
|
-
(o, { key: e, providedValidation: a }) => ({
|
|
56
|
-
...o,
|
|
57
|
-
// @ts-expect-error - we know that providedValidation is not null here
|
|
58
|
-
[e]: a.parameters
|
|
59
|
-
}),
|
|
60
|
-
n
|
|
61
|
-
));
|
|
62
|
-
}, x = (t, i) => {
|
|
63
|
-
const { uischema: n } = i.control, { options: o } = n, e = v(o), a = p(n);
|
|
64
|
-
return h(
|
|
65
|
-
e,
|
|
66
|
-
a,
|
|
67
|
-
t,
|
|
68
|
-
i.onRegisterValidation
|
|
69
|
-
), V({ validations: e, providedValidations: a });
|
|
70
|
-
};
|
|
71
|
-
export {
|
|
72
|
-
x as u
|
|
73
|
-
};
|