@knime/jsonforms 1.4.2 → 1.5.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-ZSMUfL9L.js → AnyOfTwinlist-C3M6wWi-.js} +8 -6
- package/dist/{BaseButton-DaHwEJS7.js → BaseButton-8vDrj52e.js} +1 -1
- package/dist/{Button-Bw_2CUrZ.js → Button-Bngb_I70.js} +2 -2
- package/dist/{Checkbox-CClH5v1O.js → Checkbox-DSfVQlDb.js} +1 -1
- package/dist/CheckboxControl-D85aBRJ6.js +41 -0
- package/dist/{Checkboxes-D4qPaeYl.js → Checkboxes-DUJ3v5jU.js} +2 -2
- package/dist/CheckboxesControl-8Aa7XOuf.js +41 -0
- package/dist/{ColumnFilter-C7RkEFw3.js → ColumnFilter-BzCVLydy.js} +7 -5
- package/dist/{ColumnSelect-CofZcttu.js → ColumnSelect-DK7NqI5Q.js} +21 -18
- package/dist/{ComboBoxControl-C9KmCrJL.js → ComboBoxControl-CEXpJltI.js} +17 -14
- package/dist/{DateControl-CzO-FHO5.js → DateControl-CjRiy7d1.js} +6 -4
- package/dist/{DateTimeControl-1FXkgKJC.js → DateTimeControl-CaDuNC_u.js} +18 -15
- package/dist/{DateTimeFormatPickerControl-CoY0tjuj.js → DateTimeFormatPickerControl-DDTmhBMD.js} +29 -27
- package/dist/{DateTimeInput-BS4u5oiH.js → DateTimeInput-96g3nCth.js} +7 -7
- package/dist/{Dropdown-DY6B_Cwm.js → Dropdown-CQKvBlYB.js} +4 -4
- package/dist/{DropdownControl-BOx53GRG.js → DropdownControl-B0x5hFXM.js} +1 -1
- package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-DAT1V1G_.js +237 -0
- package/dist/{FunctionButton-fTG-kCKu.js → FunctionButton-CapvFBi0.js} +2 -2
- package/dist/{HorizontalLayout-B6G89LUS.js → HorizontalLayout-k7vmjzLP.js} +1 -1
- package/dist/{InputField-Ciw2sHfy.js → InputField-DhyBnTBT.js} +1 -1
- package/dist/IntegerControl-ByZYNQ-Z.js +20 -0
- package/dist/{IntervalControl-Cv3oVrKV.js → IntervalControl-DhujNXBe.js} +37 -35
- package/dist/{MultiselectListBox-Ds0W-GHB.js → MultiselectListBox-6f4JE0Ny.js} +1 -1
- package/dist/{NameFilter-BpyjqqIg.js → NameFilter-DJhwpboP.js} +7 -5
- package/dist/NumberControl-CU94dpBh.js +20 -0
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-6vn1oT7O.js +60 -0
- package/dist/{NumberInput-Cq6cNPOt.js → NumberInput-Io3ZSWBF.js} +1 -1
- package/dist/OneOfDropdown-C04RF5gK.js +35 -0
- package/dist/RadioControl-Ni6f_qCw.js +24 -0
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-CJRt1KAq.js → RadioControlBase.vue_vue_type_script_setup_true_lang-RgveiB05.js} +11 -9
- package/dist/{RichTextControl-DfLozxjM.js → RichTextControl-hHIvuaDd.js} +9 -7
- package/dist/{SectionLayout-B8lhvDwV.js → SectionLayout-DEKmJPJl.js} +2 -2
- package/dist/SimpleButtonControl-R0DY_FSx.js +61 -0
- package/dist/{SimpleTwinlistControl--SlX5r8j.js → SimpleTwinlistControl-Bvhr9f3x.js} +16 -13
- package/dist/SortListControl-CsrP-QT8.js +366 -0
- package/dist/{TextAreaControl-Cxe1N51h.js → TextAreaControl-CNH7s35f.js} +25 -22
- package/dist/{TextControl-C97DTUxi.js → TextControl-C1ZKoreI.js} +1 -1
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-BhX-hMgT.js +87 -0
- package/dist/TimeControl-Bwt1kRki.js +33 -0
- package/dist/{TwinlistControl-Cw71wnqH.js → TwinlistControl-DJ88Q4I-.js} +21 -18
- package/dist/{TwinlistLoadingInfo-5dgWG85L.js → TwinlistLoadingInfo-gheFM17g.js} +9 -9
- package/dist/{ValueSwitch-Ds5TMrQM.js → ValueSwitch-B08Mz10g.js} +1 -1
- package/dist/ValueSwitchControl-BbJHzaom.js +20 -0
- package/dist/{VerticalLayout-FdSZVMXg.js → VerticalLayout-ptrtpOrD.js} +2 -2
- package/dist/{VerticalLayoutBase-BM2Lzz4_.js → VerticalLayoutBase-B8FGVlzl.js} +1 -1
- package/dist/{VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js → VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js} +5705 -5674
- package/dist/ZonedDateTimeControl-70XjGsqQ.js +70 -0
- package/dist/{_baseAssignValue-BHZMmalr.js → _baseAssignValue-BPMLYzDH.js} +1 -1
- package/dist/{_baseEach-CFl6drhJ.js → _baseEach-B8N_Gx8P.js} +2 -2
- package/dist/{_baseIsEqual-CBeH4t67.js → _baseIsEqual-DmkT9Nkc.js} +3 -3
- package/dist/{_baseIteratee-BLHhVAua.js → _baseIteratee-DvBmrhnf.js} +3 -3
- package/dist/{_getTag-ryBefWgF.js → _getTag-DS8v0_uf.js} +33 -34
- package/dist/isSymbol-OFe5xy2f.js +34 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +26 -26
- package/dist/{localTimeUtils-DzcBbZvn.js → localTimeUtils-CzJjTpP3.js} +1 -1
- package/dist/src/JsonFormsDialog.vue.d.ts +2 -2
- package/dist/src/higherOrderComponents/control/ErrorMessage.vue.d.ts +15 -0
- package/dist/src/higherOrderComponents/control/ErrorMessageWrapper.vue.d.ts +22 -0
- package/dist/src/higherOrderComponents/control/index.d.ts +1 -1
- package/dist/src/higherOrderComponents/control/types.d.ts +2 -1
- package/dist/src/higherOrderComponents/control/util.d.ts +18 -2
- package/dist/src/higherOrderComponents/control/validation/types.d.ts +10 -0
- package/dist/src/higherOrderComponents/control/validation/useValidation.d.ts +9 -0
- package/dist/src/higherOrderComponents/control/withErrorMessage.d.ts +4 -0
- package/dist/src/higherOrderComponents/control/withLabel.d.ts +9 -0
- package/dist/src/renderers/checkboxRenderer.d.ts +1 -192
- package/dist/src/renderers/checkboxesRenderer.d.ts +1 -3
- package/dist/src/renderers/columnFilterRenderer.d.ts +1 -3
- package/dist/src/renderers/columnSelectRenderer.d.ts +56 -0
- package/dist/src/renderers/comboBoxRenderer.d.ts +1 -3
- package/dist/src/renderers/dateTimeFormatPickerRenderer.d.ts +1 -3
- package/dist/src/renderers/dateTimeRenderer.d.ts +1 -3
- package/dist/src/renderers/defaultRenderers.d.ts +299 -247
- package/dist/src/renderers/dropdownRenderer.d.ts +48 -0
- package/dist/src/renderers/fallbackRenderers.d.ts +91 -189
- package/dist/src/renderers/integerRenderer.d.ts +1 -3
- package/dist/src/renderers/intervalRenderer.d.ts +1 -3
- package/dist/src/renderers/localDateRenderer.d.ts +1 -3
- package/dist/src/renderers/localTimeRenderer.d.ts +1 -3
- package/dist/src/renderers/nameFilterRenderer.d.ts +1 -3
- package/dist/src/renderers/numberRenderer.d.ts +1 -3
- package/dist/src/renderers/radioRenderer.d.ts +1 -3
- package/dist/src/renderers/richTextRenderer.d.ts +1 -3
- package/dist/src/renderers/simpleButtonRenderer.d.ts +9 -0
- package/dist/src/renderers/sortListRenderer.d.ts +48 -0
- package/dist/src/renderers/textAreaRenderer.d.ts +1 -3
- package/dist/src/renderers/textMessageRenderer.d.ts +24 -0
- package/dist/src/renderers/textRenderer.d.ts +48 -0
- package/dist/src/renderers/twinlistRenderer.d.ts +2 -6
- package/dist/src/renderers/valueSwitchRenderer.d.ts +1 -3
- package/dist/src/renderers/zonedDateTimeRenderer.d.ts +4 -6
- package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/DateControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/DateTimeControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/DropdownControl.vue.d.ts +58 -3
- package/dist/src/uiComponents/IntegerControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/IntervalControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/NumberControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/NumberControlBase.vue.d.ts +2 -2
- package/dist/src/uiComponents/RadioControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/RadioControlBase.vue.d.ts +2 -2
- package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +9 -0
- package/dist/src/uiComponents/SortListControl.vue.d.ts +58 -3
- package/dist/src/uiComponents/TextAreaControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/TimeControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/index.d.ts +1 -1
- package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +1 -1
- package/dist/src/uiComponents/twinlist/ColumnFilter.vue.d.ts +1 -1
- package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +1 -1
- package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -2
- package/dist/src/uiComponents/twinlist/TwinlistControl.vue.d.ts +2 -2
- package/dist/{svgWithTitle-CkdEuLiz.js → svgWithTitle-YSv0CfBl.js} +1 -1
- package/dist/testUtils/component.d.ts +70 -7
- package/dist/testUtils/renderer.d.ts +1 -1
- package/dist/testing.js +203 -199
- package/dist/toString-DkbNkGT4.js +25 -0
- package/package.json +1 -1
- package/dist/CheckboxControl-DNlnK4C9.js +0 -42
- package/dist/CheckboxesControl-CcQ3PLSm.js +0 -38
- package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-Cvtd3Y7S.js +0 -226
- package/dist/ErrorMessage-BDO-x3Uz.js +0 -23
- package/dist/IntegerControl-C0jzMmDK.js +0 -18
- package/dist/NumberControl-DFJ7GW28.js +0 -18
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-BVjv3GjM.js +0 -42
- package/dist/OneOfDropdown-fpE_aGK6.js +0 -32
- package/dist/RadioControl-BMvmjgc4.js +0 -22
- package/dist/SimpleButtonControl-Cc2jhvsQ.js +0 -58
- package/dist/SortListControl-BFZehvrs.js +0 -356
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-CHTtVr4t.js +0 -69
- package/dist/TimeControl-CFFsz8tR.js +0 -30
- package/dist/ValueSwitchControl-CljMpNHI.js +0 -18
- package/dist/ZonedDateTimeControl-CCtdviwP.js +0 -66
- package/dist/isSymbol-CSje8ekq.js +0 -8
- package/dist/src/higherOrderComponents/control/addLabel.d.ts +0 -12
- package/dist/src/uiComponents/ErrorMessage.vue.d.ts +0 -23
- package/dist/toString-ld_LFpvz.js +0 -26
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as p } from "./arrow-dropdown-DjUxzjqC.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import { resolveComponent as h, openBlock as o, createElementBlock as d, normalizeClass as l, createElementVNode as n, createCommentVNode as f, withModifiers as r, createVNode as m } from "vue";
|
|
4
|
-
import { _ as V } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-
|
|
4
|
+
import { _ as V } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
5
5
|
const c = 200, g = 50, v = 0.1, E = 1, I = {
|
|
6
6
|
name: "NumberInput",
|
|
7
7
|
components: {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineComponent as c, openBlock as m, createBlock as u, mergeProps as d, unref as f, withCtx as t, renderSlot as s } from "vue";
|
|
2
|
+
import { o as y } from "./index-hm05O8UX.js";
|
|
3
|
+
import { _ as h } from "./DropdownControl.vue_vue_type_script_setup_true_lang-DAT1V1G_.js";
|
|
4
|
+
const F = /* @__PURE__ */ c({
|
|
5
|
+
__name: "OneOfDropdown",
|
|
6
|
+
props: {
|
|
7
|
+
control: {},
|
|
8
|
+
handleChange: { type: Function },
|
|
9
|
+
changeValue: { type: Function },
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
labelForId: {},
|
|
12
|
+
isValid: { type: Boolean },
|
|
13
|
+
messages: {},
|
|
14
|
+
onRegisterValidation: { type: Function }
|
|
15
|
+
},
|
|
16
|
+
setup(i) {
|
|
17
|
+
var n, e;
|
|
18
|
+
const a = ((e = (n = i.control.schema) == null ? void 0 : n.oneOf) == null ? void 0 : e.map(y)) ?? [], p = Promise.resolve(a);
|
|
19
|
+
return (o, g) => (m(), u(h, d({ ...o.$attrs, ...o.$props }, { "async-initial-options": f(p) }), {
|
|
20
|
+
icon: t(() => [
|
|
21
|
+
s(o.$slots, "icon")
|
|
22
|
+
]),
|
|
23
|
+
buttons: t(({ hover: r, controlHTMLElement: l }) => [
|
|
24
|
+
s(o.$slots, "buttons", {
|
|
25
|
+
hover: r,
|
|
26
|
+
controlHTMLElement: l
|
|
27
|
+
})
|
|
28
|
+
]),
|
|
29
|
+
_: 3
|
|
30
|
+
}, 16, ["async-initial-options"]));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
F as default
|
|
35
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineComponent as e, openBlock as n, createBlock as t, mergeProps as a } from "vue";
|
|
2
|
+
import { _ as r } from "./RadioControlBase.vue_vue_type_script_setup_true_lang-RgveiB05.js";
|
|
3
|
+
import { _ as p } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
4
|
+
const i = /* @__PURE__ */ e({
|
|
5
|
+
__name: "RadioControl",
|
|
6
|
+
props: {
|
|
7
|
+
control: {},
|
|
8
|
+
handleChange: { type: Function },
|
|
9
|
+
changeValue: { type: Function },
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
isValid: { type: Boolean },
|
|
12
|
+
onRegisterValidation: { type: Function },
|
|
13
|
+
labelForId: {}
|
|
14
|
+
},
|
|
15
|
+
setup(s) {
|
|
16
|
+
return (o, l) => (n(), t(r, a(o.$props, {
|
|
17
|
+
type: "radio",
|
|
18
|
+
class: "radio"
|
|
19
|
+
}), null, 16));
|
|
20
|
+
}
|
|
21
|
+
}), m = /* @__PURE__ */ p(i, [["__scopeId", "data-v-6720fee0"]]);
|
|
22
|
+
export {
|
|
23
|
+
m as default
|
|
24
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { resolveComponent as c, openBlock as m, createBlock as p, normalizeClass as b, defineComponent as f, computed as s, ref as v, onMounted as B, resolveDynamicComponent as
|
|
2
|
-
import { o as
|
|
3
|
-
import { B as _, V as g } from "./ValueSwitch-
|
|
4
|
-
import { _ as C } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-
|
|
1
|
+
import { resolveComponent as c, openBlock as m, createBlock as p, normalizeClass as b, defineComponent as f, computed as s, ref as v, onMounted as B, resolveDynamicComponent as y, createCommentVNode as V } from "vue";
|
|
2
|
+
import { o as h } from "./index-hm05O8UX.js";
|
|
3
|
+
import { B as _, V as g } from "./ValueSwitch-B08Mz10g.js";
|
|
4
|
+
import { _ as C } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
5
5
|
const R = {
|
|
6
6
|
name: "RadioButtons",
|
|
7
7
|
components: {
|
|
@@ -64,13 +64,15 @@ function S(a, t, o, d, i, u) {
|
|
|
64
64
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => a.$emit("update:modelValue", e))
|
|
65
65
|
}, null, 8, ["id", "possible-values", "model-value", "disabled", "class"]);
|
|
66
66
|
}
|
|
67
|
-
const
|
|
67
|
+
const F = /* @__PURE__ */ C(R, [["render", S], ["__scopeId", "data-v-e428929b"]]), U = /* @__PURE__ */ f({
|
|
68
68
|
__name: "RadioControlBase",
|
|
69
69
|
props: {
|
|
70
70
|
control: {},
|
|
71
71
|
handleChange: { type: Function },
|
|
72
72
|
changeValue: { type: Function },
|
|
73
73
|
disabled: { type: Boolean },
|
|
74
|
+
isValid: { type: Boolean },
|
|
75
|
+
onRegisterValidation: { type: Function },
|
|
74
76
|
labelForId: {},
|
|
75
77
|
type: {}
|
|
76
78
|
},
|
|
@@ -84,12 +86,12 @@ const k = /* @__PURE__ */ C(R, [["render", S], ["__scopeId", "data-v-e428929b"]]
|
|
|
84
86
|
return ((e = t.control.uischema.options) == null ? void 0 : e.disabledOptions) ?? [];
|
|
85
87
|
}
|
|
86
88
|
), i = (e) => d.value.includes(e.id) ? { ...e, disabled: !0 } : e, u = s(
|
|
87
|
-
() => t.type === "valueSwitch" ? g :
|
|
89
|
+
() => t.type === "valueSwitch" ? g : F
|
|
88
90
|
), l = v(null);
|
|
89
91
|
return B(() => {
|
|
90
92
|
var e, n, r;
|
|
91
|
-
l.value = (r = (n = (e = t.control) == null ? void 0 : e.schema) == null ? void 0 : n.oneOf) == null ? void 0 : r.map(
|
|
92
|
-
}), (e, n) => l.value ? (m(), p(
|
|
93
|
+
l.value = (r = (n = (e = t.control) == null ? void 0 : e.schema) == null ? void 0 : n.oneOf) == null ? void 0 : r.map(h).map(i);
|
|
94
|
+
}), (e, n) => l.value ? (m(), p(y(u.value), {
|
|
93
95
|
key: 0,
|
|
94
96
|
id: e.labelForId,
|
|
95
97
|
"possible-values": l.value,
|
|
@@ -98,7 +100,7 @@ const k = /* @__PURE__ */ C(R, [["render", S], ["__scopeId", "data-v-e428929b"]]
|
|
|
98
100
|
"model-value": e.control.data,
|
|
99
101
|
compact: "",
|
|
100
102
|
"onUpdate:modelValue": e.changeValue
|
|
101
|
-
}, null, 8, ["id", "possible-values", "alignment", "disabled", "model-value", "onUpdate:modelValue"])) :
|
|
103
|
+
}, null, 8, ["id", "possible-values", "alignment", "disabled", "model-value", "onUpdate:modelValue"])) : V("", !0);
|
|
102
104
|
}
|
|
103
105
|
});
|
|
104
106
|
export {
|
|
@@ -2,16 +2,16 @@ import { defineComponent as ge, ref as ee, computed as Me, onMounted as On, watc
|
|
|
2
2
|
import { a as Id, c as Dd } from "./popper-CRR--9mA.js";
|
|
3
3
|
import { i as Ka, g as Wa } from "./navigator-BYUFe-z3.js";
|
|
4
4
|
import { C as Rd } from "./close-h7XT0ja0.js";
|
|
5
|
-
import { F as ao } from "./FunctionButton-
|
|
6
|
-
import { _ as Xe, n as Qo } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-
|
|
7
|
-
import { B as qi } from "./Button-
|
|
8
|
-
import { I as Zo } from "./InputField-
|
|
5
|
+
import { F as ao } from "./FunctionButton-CapvFBi0.js";
|
|
6
|
+
import { _ as Xe, n as Qo } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
7
|
+
import { B as qi } from "./Button-Bngb_I70.js";
|
|
8
|
+
import { I as Zo } from "./InputField-DhyBnTBT.js";
|
|
9
9
|
import { u as Ua, f as qa, s as Ja, a as Ga } from "./floating-ui.vue.esm-B1dY_Hbh.js";
|
|
10
10
|
import { o as Ld } from "./index-CkuSIXs2.js";
|
|
11
11
|
import { A as Pd } from "./arrow-next-CvdR0-WC.js";
|
|
12
12
|
import { u as Bd } from "./useDropdownNavigation-D6ZenVxz.js";
|
|
13
|
-
import { C as Fd } from "./Checkbox-
|
|
14
|
-
import { t as $d } from "./toString-
|
|
13
|
+
import { C as Fd } from "./Checkbox-DSfVQlDb.js";
|
|
14
|
+
import { t as $d } from "./toString-DkbNkGT4.js";
|
|
15
15
|
const zd = (n, e) => (n % e + e) % e;
|
|
16
16
|
/*!
|
|
17
17
|
* tabbable 6.2.0
|
|
@@ -17834,6 +17834,8 @@ const Hk = { render: zk }, Vk = { class: "tools" }, _k = /* @__PURE__ */ ge({
|
|
|
17834
17834
|
handleChange: { type: Function },
|
|
17835
17835
|
changeValue: { type: Function },
|
|
17836
17836
|
disabled: { type: Boolean },
|
|
17837
|
+
isValid: { type: Boolean },
|
|
17838
|
+
onRegisterValidation: { type: Function },
|
|
17837
17839
|
labelForId: {}
|
|
17838
17840
|
},
|
|
17839
17841
|
setup(n) {
|
|
@@ -17889,7 +17891,7 @@ const Hk = { render: zk }, Vk = { class: "tools" }, _k = /* @__PURE__ */ ge({
|
|
|
17889
17891
|
_: 1
|
|
17890
17892
|
}, 8, ["id", "class", "model-value", "editable", "disabled", "link-tool-options", "custom-extensions", "onUpdate:modelValue"]));
|
|
17891
17893
|
}
|
|
17892
|
-
}), dv = /* @__PURE__ */ Xe(Gk, [["__scopeId", "data-v-
|
|
17894
|
+
}), dv = /* @__PURE__ */ Xe(Gk, [["__scopeId", "data-v-4497c003"]]);
|
|
17893
17895
|
export {
|
|
17894
17896
|
dv as default
|
|
17895
17897
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as n, ref as u, openBlock as s, createElementBlock as i, createElementVNode as l, createTextVNode as c, toDisplayString as d, renderSlot as m, createVNode as p, withCtx as h, createBlock as y, unref as f } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { V as $ } from "./VerticalLayoutBase-
|
|
2
|
+
import { q as v, _ as b } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
3
|
+
import { V as $ } from "./VerticalLayoutBase-B8FGVlzl.js";
|
|
4
4
|
const V = { class: "section-header" }, k = /* @__PURE__ */ n({
|
|
5
5
|
__name: "SectionLayout",
|
|
6
6
|
props: {
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { defineComponent as u, openBlock as s, createBlock as p, resolveDynamicComponent as f, computed as r, ref as g, createElementBlock as _, createVNode as b, unref as y, withCtx as B, createCommentVNode as C, createTextVNode as h, toDisplayString as k, renderSlot as I } from "vue";
|
|
2
|
+
import { k as V, _ as F } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
3
|
+
import { R as S } from "./reload-BhzcZRFp.js";
|
|
4
|
+
import { B as $ } from "./Button-Bngb_I70.js";
|
|
5
|
+
const x = /* @__PURE__ */ u({
|
|
6
|
+
__name: "DynamicIcon",
|
|
7
|
+
props: {
|
|
8
|
+
icon: {}
|
|
9
|
+
},
|
|
10
|
+
setup(a) {
|
|
11
|
+
const e = {
|
|
12
|
+
reload: S
|
|
13
|
+
};
|
|
14
|
+
return (t, l) => (s(), p(f(e[t.icon])));
|
|
15
|
+
}
|
|
16
|
+
}), D = /* @__PURE__ */ u({
|
|
17
|
+
__name: "SimpleButtonControl",
|
|
18
|
+
props: {
|
|
19
|
+
control: {},
|
|
20
|
+
handleChange: { type: Function },
|
|
21
|
+
changeValue: { type: Function },
|
|
22
|
+
disabled: { type: Boolean },
|
|
23
|
+
labelForId: {},
|
|
24
|
+
isValid: { type: Boolean },
|
|
25
|
+
messages: {},
|
|
26
|
+
onRegisterValidation: { type: Function }
|
|
27
|
+
},
|
|
28
|
+
setup(a) {
|
|
29
|
+
const e = a, t = r(() => !e.control.enabled), l = r(() => e.control.uischema.options.triggerId), i = r(
|
|
30
|
+
() => e.control.uischema.options.icon
|
|
31
|
+
), d = V("trigger"), m = () => {
|
|
32
|
+
d({ id: l.value });
|
|
33
|
+
}, n = g(!1);
|
|
34
|
+
return (c, o) => (s(), _("div", {
|
|
35
|
+
class: "simple-button-input",
|
|
36
|
+
onMouseover: o[0] || (o[0] = (v) => n.value = !0),
|
|
37
|
+
onMouseleave: o[1] || (o[1] = (v) => n.value = !1)
|
|
38
|
+
}, [
|
|
39
|
+
b(y($), {
|
|
40
|
+
compact: "",
|
|
41
|
+
"with-border": "",
|
|
42
|
+
disabled: t.value,
|
|
43
|
+
class: "button-input",
|
|
44
|
+
onClick: m
|
|
45
|
+
}, {
|
|
46
|
+
default: B(() => [
|
|
47
|
+
i.value ? (s(), p(x, {
|
|
48
|
+
key: 0,
|
|
49
|
+
icon: i.value
|
|
50
|
+
}, null, 8, ["icon"])) : C("", !0),
|
|
51
|
+
h(k(c.control.label), 1)
|
|
52
|
+
]),
|
|
53
|
+
_: 1
|
|
54
|
+
}, 8, ["disabled"]),
|
|
55
|
+
I(c.$slots, "buttons", { hover: n.value }, void 0, !0)
|
|
56
|
+
], 32));
|
|
57
|
+
}
|
|
58
|
+
}), j = /* @__PURE__ */ F(D, [["__scopeId", "data-v-71d12dcd"]]);
|
|
59
|
+
export {
|
|
60
|
+
j as default
|
|
61
|
+
};
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { k as m, u as f, _ as
|
|
3
|
-
import { a as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as d, computed as r, markRaw as u, openBlock as p, createBlock as c, unref as i } from "vue";
|
|
2
|
+
import { k as m, u as f, _ as h } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
3
|
+
import { a as b, T as v } from "./TwinlistLoadingInfo-gheFM17g.js";
|
|
4
|
+
const w = /* @__PURE__ */ d({
|
|
5
5
|
__name: "SimpleTwinlistControl",
|
|
6
6
|
props: {
|
|
7
7
|
control: {},
|
|
8
8
|
handleChange: {},
|
|
9
9
|
changeValue: {},
|
|
10
10
|
disabled: { type: Boolean },
|
|
11
|
+
isValid: { type: Boolean },
|
|
12
|
+
onRegisterValidation: {},
|
|
11
13
|
labelForId: {},
|
|
12
14
|
twinlistSize: { default: 10 },
|
|
13
15
|
twinlistLeftLabel: { default: "Excludes" },
|
|
14
16
|
twinlistRightLabel: { default: "Includes" },
|
|
15
17
|
optionsGenerator: { type: [null, Function], default: null }
|
|
16
18
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const l =
|
|
19
|
+
setup(t) {
|
|
20
|
+
const l = t, s = m("getPossibleValuesFromUiSchema"), a = r(
|
|
19
21
|
() => {
|
|
20
22
|
var e;
|
|
21
23
|
return (e = l.control.uischema.options) == null ? void 0 : e.choicesProvider;
|
|
@@ -23,26 +25,27 @@ const v = /* @__PURE__ */ r({
|
|
|
23
25
|
), o = f(
|
|
24
26
|
a,
|
|
25
27
|
null
|
|
26
|
-
),
|
|
28
|
+
), n = u(b);
|
|
27
29
|
return a.value || (l.optionsGenerator === null ? s(l.control).then((e) => {
|
|
28
30
|
o.value = e;
|
|
29
|
-
}) : o.value = l.optionsGenerator(l.control)), (e, g) => (p(), c(
|
|
31
|
+
}) : o.value = l.optionsGenerator(l.control)), (e, g) => (p(), c(i(v), {
|
|
30
32
|
id: e.labelForId,
|
|
31
33
|
disabled: e.disabled,
|
|
32
34
|
"model-value": e.control.data,
|
|
33
|
-
"possible-values":
|
|
34
|
-
"empty-state-component":
|
|
35
|
-
"hide-options":
|
|
35
|
+
"possible-values": i(o) ?? [],
|
|
36
|
+
"empty-state-component": i(o) === null ? i(n) : null,
|
|
37
|
+
"hide-options": i(o) === null,
|
|
36
38
|
size: e.twinlistSize,
|
|
37
39
|
"left-label": e.twinlistLeftLabel,
|
|
38
40
|
"right-label": e.twinlistRightLabel,
|
|
41
|
+
"is-valid": e.isValid,
|
|
39
42
|
compact: "",
|
|
40
43
|
"show-resize-handle": "",
|
|
41
44
|
"filter-chosen-values-on-possible-values-change": !1,
|
|
42
45
|
"onUpdate:modelValue": e.changeValue
|
|
43
|
-
}, null, 8, ["id", "disabled", "model-value", "possible-values", "empty-state-component", "hide-options", "size", "left-label", "right-label", "onUpdate:modelValue"]));
|
|
46
|
+
}, null, 8, ["id", "disabled", "model-value", "possible-values", "empty-state-component", "hide-options", "size", "left-label", "right-label", "is-valid", "onUpdate:modelValue"]));
|
|
44
47
|
}
|
|
45
|
-
}), I = /* @__PURE__ */
|
|
48
|
+
}), I = /* @__PURE__ */ h(w, [["__scopeId", "data-v-164a53c2"]]);
|
|
46
49
|
export {
|
|
47
50
|
I as default
|
|
48
51
|
};
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
import { openBlock as S, createElementBlock as A, createElementVNode as k, defineComponent as Z, computed as _, ref as N, watch as W, Fragment as z, createVNode as u, withKeys as L, withModifiers as B, unref as p, withCtx as f, nextTick as ae, onMounted as re, createTextVNode as F, renderSlot as O, normalizeClass as ie } from "vue";
|
|
2
|
+
import { _ as Y, u as ce, k as ue, L as de, o as me } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-Do6BV4CX.js";
|
|
3
|
+
import { w as pe } from "./getPossibleValuesFromUiSchema-hQj1TCOR.js";
|
|
4
|
+
import { i as fe } from "./navigator-BYUFe-z3.js";
|
|
5
|
+
import { F as M } from "./FunctionButton-CapvFBi0.js";
|
|
6
|
+
import { M as he } from "./MultiselectListBox-6f4JE0Ny.js";
|
|
7
|
+
import { b as we } from "./_baseAssignValue-BPMLYzDH.js";
|
|
8
|
+
import { b as ve } from "./_baseEach-B8N_Gx8P.js";
|
|
9
|
+
import { b as be } from "./_baseIteratee-DvBmrhnf.js";
|
|
10
|
+
import { i as ge } from "./toString-DkbNkGT4.js";
|
|
11
|
+
import { c as Ve } from "./createMissingItem-B00Kg95q.js";
|
|
12
|
+
import { B as T } from "./Button-Bngb_I70.js";
|
|
13
|
+
const R = {
|
|
14
|
+
ArrowUp: "↑",
|
|
15
|
+
ArrowDown: "↓",
|
|
16
|
+
ArrowLeft: "←",
|
|
17
|
+
ArrowRight: "→",
|
|
18
|
+
Enter: "↵",
|
|
19
|
+
" ": "Space",
|
|
20
|
+
// we use event.key and there space is an actual space not the code "Space"
|
|
21
|
+
CtrlOrCmd: "Ctrl"
|
|
22
|
+
}, _e = {
|
|
23
|
+
Shift: "⇧",
|
|
24
|
+
Delete: "⌫",
|
|
25
|
+
CtrlOrCmd: "⌘",
|
|
26
|
+
Ctrl: "⌃",
|
|
27
|
+
Alt: "⌥",
|
|
28
|
+
Enter: "↩"
|
|
29
|
+
}, q = (t) => {
|
|
30
|
+
const e = (r) => (i) => r[i] ?? i, a = ((...r) => r.reduce((i, w) => (x) => w(i(x))))(
|
|
31
|
+
e(_e),
|
|
32
|
+
e(R)
|
|
33
|
+
), l = e(R);
|
|
34
|
+
return fe() ? a(t) : l(t);
|
|
35
|
+
}, G = () => " ", ke = (t, e = G) => t.map(q).join(e()), xe = { formatHotkeys: ke, formatHotkey: q, getDefaultSeparator: G };
|
|
36
|
+
function Se(t, e, o, a) {
|
|
37
|
+
for (var l = t.length, r = o + -1; ++r < l; )
|
|
38
|
+
if (e(t[r], r, t))
|
|
39
|
+
return r;
|
|
40
|
+
return -1;
|
|
41
|
+
}
|
|
42
|
+
function Ae(t) {
|
|
43
|
+
return t !== t;
|
|
44
|
+
}
|
|
45
|
+
function Ce(t, e, o) {
|
|
46
|
+
for (var a = o - 1, l = t.length; ++a < l; )
|
|
47
|
+
if (t[a] === e)
|
|
48
|
+
return a;
|
|
49
|
+
return -1;
|
|
50
|
+
}
|
|
51
|
+
function Ie(t, e, o) {
|
|
52
|
+
return e === e ? Ce(t, e, o) : Se(t, Ae, o);
|
|
53
|
+
}
|
|
54
|
+
function ye(t, e, o, a) {
|
|
55
|
+
for (var l = -1, r = t == null ? 0 : t.length; ++l < r; ) {
|
|
56
|
+
var i = t[l];
|
|
57
|
+
e(a, i, o(i), t);
|
|
58
|
+
}
|
|
59
|
+
return a;
|
|
60
|
+
}
|
|
61
|
+
function Ue(t, e, o, a) {
|
|
62
|
+
return ve(t, function(l, r, i) {
|
|
63
|
+
e(a, l, o(l), i);
|
|
64
|
+
}), a;
|
|
65
|
+
}
|
|
66
|
+
function J(t, e) {
|
|
67
|
+
return function(o, a) {
|
|
68
|
+
var l = ge(o) ? ye : Ue, r = e ? e() : {};
|
|
69
|
+
return l(o, t, be(a), r);
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function Q(t, e, o) {
|
|
73
|
+
var a = t == null ? 0 : t.length;
|
|
74
|
+
if (!a)
|
|
75
|
+
return -1;
|
|
76
|
+
var l = 0;
|
|
77
|
+
return Ie(t, e, l);
|
|
78
|
+
}
|
|
79
|
+
var Le = J(function(t, e, o) {
|
|
80
|
+
we(t, o, e);
|
|
81
|
+
}), Be = J(function(t, e, o) {
|
|
82
|
+
t[o ? 0 : 1].push(e);
|
|
83
|
+
}, function() {
|
|
84
|
+
return [[], []];
|
|
85
|
+
});
|
|
86
|
+
const Me = {
|
|
87
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
88
|
+
fill: "none",
|
|
89
|
+
stroke: "#000",
|
|
90
|
+
"stroke-linejoin": "round",
|
|
91
|
+
viewBox: "0 0 32 32"
|
|
92
|
+
}, $e = /* @__PURE__ */ k("path", { d: "m27 17.1-11 11-11-11m11 11V3.9" }, null, -1), Ee = [
|
|
93
|
+
$e
|
|
94
|
+
];
|
|
95
|
+
function Fe(t, e) {
|
|
96
|
+
return S(), A("svg", Me, [...Ee]);
|
|
97
|
+
}
|
|
98
|
+
const Te = { render: Fe }, Ne = {
|
|
99
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
100
|
+
fill: "none",
|
|
101
|
+
stroke: "#000",
|
|
102
|
+
viewBox: "0 0 32 32"
|
|
103
|
+
}, Ke = /* @__PURE__ */ k("path", { d: "M23.4 13.4 16 20.8l-7.4-7.4m7.4 7.4V4.5m12.5 23h-25" }, null, -1), Pe = [
|
|
104
|
+
Ke
|
|
105
|
+
];
|
|
106
|
+
function De(t, e) {
|
|
107
|
+
return S(), A("svg", Ne, [...Pe]);
|
|
108
|
+
}
|
|
109
|
+
const j = { render: De }, He = {
|
|
110
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
111
|
+
fill: "none",
|
|
112
|
+
stroke: "#000",
|
|
113
|
+
"stroke-linejoin": "round",
|
|
114
|
+
viewBox: "0 0 32 32"
|
|
115
|
+
}, Oe = /* @__PURE__ */ k("path", { d: "m5 14.9 11-11 11 11m-11-11v24.2" }, null, -1), Re = [
|
|
116
|
+
Oe
|
|
117
|
+
];
|
|
118
|
+
function je(t, e) {
|
|
119
|
+
return S(), A("svg", He, [...Re]);
|
|
120
|
+
}
|
|
121
|
+
const Ze = { render: je }, We = { class: "buttons" }, ze = /* @__PURE__ */ Z({
|
|
122
|
+
__name: "SortList",
|
|
123
|
+
props: {
|
|
124
|
+
modelValue: {},
|
|
125
|
+
id: {},
|
|
126
|
+
ariaLabel: {},
|
|
127
|
+
disabled: { type: Boolean },
|
|
128
|
+
possibleValues: {}
|
|
129
|
+
},
|
|
130
|
+
emits: ["update:modelValue"],
|
|
131
|
+
setup(t, { emit: e }) {
|
|
132
|
+
const o = t, a = e, l = _(() => Le(o.possibleValues, "id")), r = _(
|
|
133
|
+
() => o.modelValue.map(
|
|
134
|
+
(n) => l.value[n] ?? Ve(n)
|
|
135
|
+
)
|
|
136
|
+
), i = N([]);
|
|
137
|
+
W(
|
|
138
|
+
() => o.modelValue,
|
|
139
|
+
(n) => {
|
|
140
|
+
const c = new Set(n);
|
|
141
|
+
i.value = i.value.filter((d) => c.has(d));
|
|
142
|
+
}
|
|
143
|
+
);
|
|
144
|
+
const w = _(() => i.value.length === 0), x = (n, c, d) => [
|
|
145
|
+
n.slice(0, c),
|
|
146
|
+
n.slice(c, d),
|
|
147
|
+
n.slice(d)
|
|
148
|
+
], $ = (n) => {
|
|
149
|
+
let c = 0;
|
|
150
|
+
return (d) => n(d, c++);
|
|
151
|
+
}, C = (n, c) => Be(
|
|
152
|
+
n,
|
|
153
|
+
$((d, V) => c(V))
|
|
154
|
+
), v = N(null), s = (n) => ({ to: c } = {}) => {
|
|
155
|
+
const d = i.value.map((b) => Q(o.modelValue, b)).sort((b, U) => b - U), V = (n === "up" ? c : null) ?? Math.max(d[0] - 1, 0), E = (n === "down" ? c : null) ?? d[d.length - 1] + 1, [X, ee, te] = x(
|
|
156
|
+
o.modelValue,
|
|
157
|
+
V,
|
|
158
|
+
E + 1
|
|
159
|
+
), oe = new Set(d), [K, P] = C(
|
|
160
|
+
ee,
|
|
161
|
+
(b) => oe.has(b + V)
|
|
162
|
+
), [ne, le] = n === "up" ? [K, P] : [P, K], se = X.concat(ne, le, te);
|
|
163
|
+
a("update:modelValue", se), ae(() => {
|
|
164
|
+
var b, U, D, H;
|
|
165
|
+
n === "up" ? ((b = v.value) == null || b.scrollUpIntoView(V - 1), (U = v.value) == null || U.setCurrentKeyNavIndex(V)) : ((D = v.value) == null || D.scrollDownIntoView(E + 1), (H = v.value) == null || H.setCurrentKeyNavIndex(E));
|
|
166
|
+
});
|
|
167
|
+
}, m = s("up"), h = s("down"), I = () => m({ to: 0 }), y = () => h({ to: o.modelValue.length }), g = (n, c) => `${n} (${xe.formatHotkeys(c)})`;
|
|
168
|
+
return (n, c) => (S(), A(z, null, [
|
|
169
|
+
u(he, {
|
|
170
|
+
id: n.id,
|
|
171
|
+
ref_key: "listBox",
|
|
172
|
+
ref: v,
|
|
173
|
+
modelValue: i.value,
|
|
174
|
+
"onUpdate:modelValue": c[0] || (c[0] = (d) => i.value = d),
|
|
175
|
+
"possible-values": r.value,
|
|
176
|
+
ariaLabel: `sortListBox_${n.ariaLabel}`,
|
|
177
|
+
"with-is-empty-state": !0,
|
|
178
|
+
"empty-state-label": "Empty",
|
|
179
|
+
size: 10,
|
|
180
|
+
onKeydown: [
|
|
181
|
+
L(B(p(h), ["alt"]), ["down"]),
|
|
182
|
+
L(B(p(m), ["alt"]), ["up"]),
|
|
183
|
+
L(B(I, ["alt"]), ["home"]),
|
|
184
|
+
L(B(y, ["alt"]), ["end"])
|
|
185
|
+
]
|
|
186
|
+
}, null, 8, ["id", "modelValue", "possible-values", "ariaLabel", "onKeydown"]),
|
|
187
|
+
k("div", We, [
|
|
188
|
+
u(M, {
|
|
189
|
+
disabled: w.value,
|
|
190
|
+
title: g("Move to top", ["Alt", "Home"]),
|
|
191
|
+
compact: "",
|
|
192
|
+
onClick: I
|
|
193
|
+
}, {
|
|
194
|
+
default: f(() => [
|
|
195
|
+
u(p(j), { class: "rotated" })
|
|
196
|
+
]),
|
|
197
|
+
_: 1
|
|
198
|
+
}, 8, ["disabled", "title"]),
|
|
199
|
+
u(M, {
|
|
200
|
+
disabled: w.value,
|
|
201
|
+
title: g("Move to bottom", ["Alt", "End"]),
|
|
202
|
+
compact: "",
|
|
203
|
+
onClick: y
|
|
204
|
+
}, {
|
|
205
|
+
default: f(() => [
|
|
206
|
+
u(p(j))
|
|
207
|
+
]),
|
|
208
|
+
_: 1
|
|
209
|
+
}, 8, ["disabled", "title"]),
|
|
210
|
+
u(M, {
|
|
211
|
+
disabled: w.value,
|
|
212
|
+
title: g("Move up", ["Alt", "ArrowUp"]),
|
|
213
|
+
compact: "",
|
|
214
|
+
onClick: p(m)
|
|
215
|
+
}, {
|
|
216
|
+
default: f(() => [
|
|
217
|
+
u(p(Ze))
|
|
218
|
+
]),
|
|
219
|
+
_: 1
|
|
220
|
+
}, 8, ["disabled", "title", "onClick"]),
|
|
221
|
+
u(M, {
|
|
222
|
+
disabled: w.value,
|
|
223
|
+
title: g("Move down", ["Alt", "ArrowDown"]),
|
|
224
|
+
compact: "",
|
|
225
|
+
onClick: p(h)
|
|
226
|
+
}, {
|
|
227
|
+
default: f(() => [
|
|
228
|
+
u(p(Te))
|
|
229
|
+
]),
|
|
230
|
+
_: 1
|
|
231
|
+
}, 8, ["disabled", "title", "onClick"])
|
|
232
|
+
])
|
|
233
|
+
], 64));
|
|
234
|
+
}
|
|
235
|
+
}), Ye = /* @__PURE__ */ Y(ze, [["__scopeId", "data-v-116782be"]]), qe = {
|
|
236
|
+
class: /* @__PURE__ */ ie(["flex", "space-between", "with-padding"])
|
|
237
|
+
}, Ge = { class: "flex" }, Je = "<any unknown new column>", Qe = /* @__PURE__ */ Z({
|
|
238
|
+
__name: "SortListControl",
|
|
239
|
+
props: {
|
|
240
|
+
control: {},
|
|
241
|
+
handleChange: {},
|
|
242
|
+
changeValue: {},
|
|
243
|
+
disabled: { type: Boolean },
|
|
244
|
+
labelForId: {},
|
|
245
|
+
isValid: { type: Boolean },
|
|
246
|
+
messages: {},
|
|
247
|
+
onRegisterValidation: {},
|
|
248
|
+
anyUnknownValuesId: { default: Je },
|
|
249
|
+
anyUnknownValuesText: { default: "Any unknown column" }
|
|
250
|
+
},
|
|
251
|
+
setup(t) {
|
|
252
|
+
const e = t, o = _(() => e.control.data), a = _(
|
|
253
|
+
() => e.control.uischema.options.choicesProvider
|
|
254
|
+
), l = pe(
|
|
255
|
+
ce(
|
|
256
|
+
a,
|
|
257
|
+
[]
|
|
258
|
+
),
|
|
259
|
+
e.control
|
|
260
|
+
), r = _(
|
|
261
|
+
() => l.value.concat({
|
|
262
|
+
id: e.anyUnknownValuesId,
|
|
263
|
+
text: e.anyUnknownValuesText,
|
|
264
|
+
special: !0
|
|
265
|
+
})
|
|
266
|
+
), i = (s) => {
|
|
267
|
+
if (o.value.length === 0) {
|
|
268
|
+
C();
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
const m = Q(o.value, e.anyUnknownValuesId);
|
|
272
|
+
if (m === -1)
|
|
273
|
+
throw new Error(
|
|
274
|
+
`SortList data have to contain the value "${e.anyUnknownValuesId}"`
|
|
275
|
+
);
|
|
276
|
+
const h = o.value.slice(0, m + 1), I = o.value.slice(m + 1), y = new Set(o.value), g = s.map(({ id: n }) => n).filter((n) => !y.has(n));
|
|
277
|
+
g.length > 0 && e.changeValue(h.concat(g, I));
|
|
278
|
+
}, w = ue("getPossibleValuesFromUiSchema");
|
|
279
|
+
re(async () => {
|
|
280
|
+
const s = e.control.uischema.options.possibleValues;
|
|
281
|
+
s ? l.value = s : a.value || (l.value = await w(e.control));
|
|
282
|
+
}), W(() => l.value, i);
|
|
283
|
+
const x = () => {
|
|
284
|
+
e.changeValue(o.value.toSorted((s, m) => s.localeCompare(m)));
|
|
285
|
+
}, $ = () => {
|
|
286
|
+
e.changeValue(o.value.toSorted((s, m) => m.localeCompare(s)));
|
|
287
|
+
}, C = () => {
|
|
288
|
+
e.changeValue(r.value.map(({ id: s }) => s));
|
|
289
|
+
}, v = N(null);
|
|
290
|
+
return (s, m) => (S(), A(z, null, [
|
|
291
|
+
k("div", qe, [
|
|
292
|
+
k("div", Ge, [
|
|
293
|
+
u(p(T), {
|
|
294
|
+
"with-border": "",
|
|
295
|
+
compact: "",
|
|
296
|
+
onClick: x
|
|
297
|
+
}, {
|
|
298
|
+
default: f(() => [
|
|
299
|
+
F("A - Z")
|
|
300
|
+
]),
|
|
301
|
+
_: 1
|
|
302
|
+
}),
|
|
303
|
+
u(p(T), {
|
|
304
|
+
"with-border": "",
|
|
305
|
+
compact: "",
|
|
306
|
+
onClick: $
|
|
307
|
+
}, {
|
|
308
|
+
default: f(() => [
|
|
309
|
+
F("Z - A")
|
|
310
|
+
]),
|
|
311
|
+
_: 1
|
|
312
|
+
})
|
|
313
|
+
]),
|
|
314
|
+
u(p(T), {
|
|
315
|
+
"with-border": "",
|
|
316
|
+
compact: "",
|
|
317
|
+
onClick: C
|
|
318
|
+
}, {
|
|
319
|
+
default: f(() => [
|
|
320
|
+
F("Reset all")
|
|
321
|
+
]),
|
|
322
|
+
_: 1
|
|
323
|
+
})
|
|
324
|
+
]),
|
|
325
|
+
u(de, {
|
|
326
|
+
label: s.control.label,
|
|
327
|
+
onControllingFlowVariableSet: s.changeValue
|
|
328
|
+
}, {
|
|
329
|
+
default: f(({ labelForId: h }) => [
|
|
330
|
+
u(me, {
|
|
331
|
+
errors: s.messages.errors
|
|
332
|
+
}, {
|
|
333
|
+
default: f(() => [
|
|
334
|
+
u(p(Ye), {
|
|
335
|
+
id: h ?? void 0,
|
|
336
|
+
ref_key: "controlElement",
|
|
337
|
+
ref: v,
|
|
338
|
+
"possible-values": r.value,
|
|
339
|
+
"model-value": o.value,
|
|
340
|
+
ariaLabel: s.control.label,
|
|
341
|
+
disabled: s.disabled,
|
|
342
|
+
compact: "",
|
|
343
|
+
"onUpdate:modelValue": s.changeValue
|
|
344
|
+
}, null, 8, ["id", "possible-values", "model-value", "ariaLabel", "disabled", "onUpdate:modelValue"])
|
|
345
|
+
]),
|
|
346
|
+
_: 2
|
|
347
|
+
}, 1032, ["errors"])
|
|
348
|
+
]),
|
|
349
|
+
icon: f(() => [
|
|
350
|
+
O(s.$slots, "icon", {}, void 0, !0)
|
|
351
|
+
]),
|
|
352
|
+
buttons: f(({ hover: h }) => [
|
|
353
|
+
O(s.$slots, "buttons", {
|
|
354
|
+
hover: h,
|
|
355
|
+
controlHTMLElement: v.value
|
|
356
|
+
}, void 0, !0)
|
|
357
|
+
]),
|
|
358
|
+
_: 3
|
|
359
|
+
}, 8, ["label", "onControllingFlowVariableSet"])
|
|
360
|
+
], 64));
|
|
361
|
+
}
|
|
362
|
+
}), dt = /* @__PURE__ */ Y(Qe, [["__scopeId", "data-v-680f85e3"]]);
|
|
363
|
+
export {
|
|
364
|
+
Je as DEFAULT_ANY_UNKNOWN_VALUES_ID,
|
|
365
|
+
dt as default
|
|
366
|
+
};
|