@knime/jsonforms 1.18.1 → 1.18.3
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-Dk_ou9W9.js → AnyOfTwinlist-Dazvw4B4.js} +1 -1
- package/dist/{Button-D8mgaxLU.js → Button-B9K8Q_ls.js} +1 -1
- package/dist/{Checkbox-DD4pKL3h.js → Checkbox-DdXKweFz.js} +1 -1
- package/dist/{CheckboxControl-NTWDDTuK.js → CheckboxControl-BzqEgf9o.js} +1 -1
- package/dist/{Checkboxes-BZyTWKxA.js → Checkboxes-ChAc0Hpr.js} +2 -2
- package/dist/{CheckboxesControl-DYSMiVtJ.js → CheckboxesControl-CRCBm-Jm.js} +3 -3
- package/dist/{ComboBoxControl-LCX4h3aU.js → ComboBoxControl-qGK5uWD-.js} +3 -3
- package/dist/{DateControl-DI6h7HP8.js → DateControl-Cjq7ycTN.js} +1 -1
- package/dist/{DateTimeControl-VgDOif_C.js → DateTimeControl-Bd85wUEs.js} +1 -1
- package/dist/{DateTimeFormatInput-DkqacscY.js → DateTimeFormatInput-D_6Ur5fc.js} +3 -3
- package/dist/{DateTimeFormatPickerControl-BSrOOnCs.js → DateTimeFormatPickerControl-CnboWjaI.js} +2 -2
- package/dist/{DateTimeFormatPickerWithTypeControl-hk-FzFiP.js → DateTimeFormatPickerWithTypeControl-DU5j8t9X.js} +3 -3
- package/dist/{Dropdown-DCj9CrKC.js → Dropdown-D8Yoibbd.js} +27 -26
- package/dist/{DropdownControl-CCP_1uip.js → DropdownControl-BfBd3vWK.js} +3 -3
- package/dist/{HorizontalLayout-BYLOtJxA.js → HorizontalLayout-8bGY4zyH.js} +1 -1
- package/dist/{InputField-Dvezbm7O.js → InputField-CoRMHJBB.js} +1 -1
- package/dist/{IntegerControl-CVJrLhsi.js → IntegerControl-BImNd6JT.js} +1 -1
- package/dist/{IntervalControl-CkUZmAS3.js → IntervalControl-1lk5KcOz.js} +25 -25
- package/dist/Label-Bv_WwkcY.js +76 -0
- package/dist/{LoadingDropdown-BI_31sRO.js → LoadingDropdown-CWyyD3J2.js} +3 -3
- package/dist/{LoadingIcon-DlQBrbLr.js → LoadingIcon-smgH1pv7.js} +1 -1
- package/dist/{ManualTwinlistControl-DZnXKbOp.js → ManualTwinlistControl-C0JsrznZ.js} +4 -4
- package/dist/{MultiSelectListBoxControl-CI5uZ6q4.js → MultiSelectListBoxControl-CtUKcCOW.js} +2 -2
- package/dist/{MultimodeTwinlistControl-VeD41Gre.js → MultimodeTwinlistControl-BRt6YzVD.js} +33 -32
- package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-DQ6N2rm-.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-BTcpvBU1.js} +2 -2
- package/dist/{MultiselectListBox-Dl_jpzqo.js → MultiselectListBox-d4Bi56Ay.js} +7 -6
- package/dist/{NameFilter-CYgrV7af.js → NameFilter-BHWgejRC.js} +1 -1
- package/dist/{NumberControl-ByeZpXkg.js → NumberControl-BYvNdT_l.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-BwL1OLQ_.js → NumberControlBase.vue_vue_type_script_setup_true_lang-DFWSg9Vx.js} +2 -2
- package/dist/{NumberInput-BNOfmKVa.js → NumberInput-Cpk7uKU9.js} +1 -1
- package/dist/{OneOfDropdown-CoyhfG0y.js → OneOfDropdown-DWkW7-lC.js} +1 -1
- package/dist/{RadioControl-CGDyH1c0.js → RadioControl-rAQZJGia.js} +5 -5
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-BfNBgOGr.js → RadioControlBase.vue_vue_type_script_setup_true_lang-Dr4aDwRL.js} +10 -10
- package/dist/{RichTextControl-CkXcfkrB.js → RichTextControl-iuEl3lVI.js} +12 -11
- package/dist/{SectionHeading-CQ5ZhHbM.js → SectionHeading-BdSoJJ3l.js} +1 -1
- package/dist/{SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-CQxP1EIA.js → SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-Ck1bJG4V.js} +4407 -4430
- package/dist/{SectionLayout-k5W0xxod.js → SectionLayout-JjxIRPpw.js} +3 -3
- package/dist/{SettingsSubPanel-C4se578b.js → SettingsSubPanel-DatGZPrU.js} +1 -1
- package/dist/{SettingsSubPanelLayout-BmLlsA43.js → SettingsSubPanelLayout-Bscc0lyG.js} +4 -4
- package/dist/{SimpleButtonControl-DkywfxOh.js → SimpleButtonControl-ApknFRq4.js} +2 -2
- package/dist/{SimpleTwinlistControl-CpfNxe_A.js → SimpleTwinlistControl-wZ2yQ54_.js} +2 -2
- package/dist/{SingleSelectControl-Cn4i_dQA.js → SingleSelectControl-BBKclD2V.js} +2 -2
- package/dist/{SingleSelectListBoxControl-FSDzcglF.js → SingleSelectListBoxControl-1uzGKpvO.js} +10 -9
- package/dist/SortListControl-CRCG6TG9.js +404 -0
- package/dist/{StyledListItem-CAnXva6A.js → StyledListItem-CXiq67XA.js} +1 -1
- package/dist/{TextAreaControl-zDaBkP9F.js → TextAreaControl-CdHSnvE8.js} +1 -1
- package/dist/{TextControl-C_xVOyqJ.js → TextControl-Do4Flznj.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-C_ayUzXZ.js → TextControl.vue_vue_type_script_setup_true_lang-BngtImi_.js} +3 -3
- package/dist/{TimeControl-BFW6Jbz3.js → TimeControl-GH2ZyXcf.js} +1 -1
- package/dist/{TwinlistControlBase-hU63N9DI.js → TwinlistControlBase-C3wRBSsp.js} +9 -9
- package/dist/{TwinlistLoadingInfo-CEKS8EK-.js → TwinlistLoadingInfo-B2wc2FFq.js} +9 -8
- package/dist/{TypedStringFilter-D0CV_lR9.js → TypedStringFilter-DFdfWW1i.js} +1 -1
- package/dist/{ValueSwitch-BX_4vNxr.js → ValueSwitch-2TVNrP6l.js} +7 -6
- package/dist/{ValueSwitchControl-uuYwunJW.js → ValueSwitchControl-DUoZpVIT.js} +1 -1
- package/dist/{VerticalLayout-DuBfkHiD.js → VerticalLayout-BEn1z330.js} +2 -2
- package/dist/{VerticalLayoutBase-BzGelHRs.js → VerticalLayoutBase-C7ZKWjAB.js} +1 -1
- package/dist/{ZonedDateTimeControl-BuxRP-bI.js → ZonedDateTimeControl-BctJD3E1.js} +3 -3
- package/dist/{_baseEach-Bo6-9-dg.js → _baseEach-C0HnJV8j.js} +2 -2
- package/dist/{_baseIteratee-Cn5QShGO.js → _baseIteratee-DQwDvtG7.js} +3 -3
- package/dist/{_getTag-Bvm_nCSV.js → _getTag-ca92LmMG.js} +1 -1
- package/dist/key-BVmvoGXA-CK7GnkTf.js +22 -0
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +7 -7
- package/dist/{localTimeUtils-D8YXvgUG.js → localTimeUtils-DMFM6w4o.js} +6 -6
- package/dist/secret-store-CtLqpWMg-4RawbRIJ.js +22 -0
- package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +1 -1
- package/dist/src/renderers/defaultRenderers.d.ts +5 -119
- package/dist/src/renderers/radioRenderer.d.ts +1 -1
- package/dist/src/renderers/sortListRenderer.d.ts +3 -117
- package/dist/src/renderers/valueSwitchRenderer.d.ts +1 -1
- package/dist/src/uiComponents/RadioControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/RadioControlBase.vue.d.ts +1 -1
- package/dist/src/uiComponents/SortListControl.vue.d.ts +2 -74
- package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +1 -1
- package/dist/testing.js +2 -2
- package/dist/{toString-QZrKsF0R.js → toString-BhPVUumN.js} +1 -1
- package/dist/{useBuiltinValidations-BuK2jQ92.js → useBuiltinValidations-R0Iw63kk.js} +1 -1
- package/dist/{usePossibleValues-mDlctZMJ.js → usePossibleValues-CiGqKaG5.js} +1 -1
- package/dist/v4-CKZ6klMF.js +29 -0
- package/package.json +4 -4
- package/dist/SortListControl-DoMyixya.js +0 -413
|
@@ -1,413 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as k, openBlock as V, createElementVNode as b, defineComponent as j, computed as y, ref as D, watch as W, Fragment as E, createVNode as d, withKeys as L, withModifiers as U, unref as p, withCtx as f, renderSlot as F, normalizeProps as ie, guardReactiveProps as ue, nextTick as ce, onMounted as de, normalizeClass as G, createTextVNode as $, createSlots as me, toDisplayString as O, createBlock as pe, createCommentVNode as ve } from "vue";
|
|
2
|
-
import { G as M, _ as Y, u as fe, L as we, E as be, V as R } from "./SectionHeading.vue_vue_type_style_index_0_scoped_2310b6b8_lang-CQxP1EIA.js";
|
|
3
|
-
import { i as he } from "./navigator-e30QQMkl.js";
|
|
4
|
-
import { M as ge } from "./MultiselectListBox-Dl_jpzqo.js";
|
|
5
|
-
import { g as Ve } from "./_getTag-Bvm_nCSV.js";
|
|
6
|
-
import { b as xe } from "./_baseEach-Bo6-9-dg.js";
|
|
7
|
-
import { b as ye } from "./_baseIteratee-Cn5QShGO.js";
|
|
8
|
-
import { i as ke } from "./isArray-WzO_os3q.js";
|
|
9
|
-
import { c as Ae } from "./createMissingItem-B00Kg95q.js";
|
|
10
|
-
import { B as N } from "./Button-D8mgaxLU.js";
|
|
11
|
-
const H = {
|
|
12
|
-
ArrowUp: "↑",
|
|
13
|
-
ArrowDown: "↓",
|
|
14
|
-
ArrowLeft: "←",
|
|
15
|
-
ArrowRight: "→",
|
|
16
|
-
Enter: "↵",
|
|
17
|
-
" ": "Space",
|
|
18
|
-
// we use event.key and there space is an actual space not the code "Space"
|
|
19
|
-
CtrlOrCmd: "Ctrl"
|
|
20
|
-
}, Se = {
|
|
21
|
-
Shift: "⇧",
|
|
22
|
-
Delete: "⌫",
|
|
23
|
-
CtrlOrCmd: "⌘",
|
|
24
|
-
Ctrl: "⌃",
|
|
25
|
-
Alt: "⌥",
|
|
26
|
-
Enter: "↩"
|
|
27
|
-
}, q = (e) => {
|
|
28
|
-
const t = (r) => (s) => r[s] ?? s, a = ((...r) => r.reduce((s, h) => (S) => h(s(S))))(
|
|
29
|
-
t(Se),
|
|
30
|
-
t(H)
|
|
31
|
-
), l = t(H);
|
|
32
|
-
return he() ? a(e) : l(e);
|
|
33
|
-
}, J = () => " ", Ce = (e, t = J) => e.map(q).join(t()), _e = { formatHotkeys: Ce, formatHotkey: q, getDefaultSeparator: J };
|
|
34
|
-
var z = (function() {
|
|
35
|
-
try {
|
|
36
|
-
var e = Ve(Object, "defineProperty");
|
|
37
|
-
return e({}, "", {}), e;
|
|
38
|
-
} catch {
|
|
39
|
-
}
|
|
40
|
-
})();
|
|
41
|
-
function Be(e, t, o, a) {
|
|
42
|
-
for (var l = e.length, r = o + -1; ++r < l; )
|
|
43
|
-
if (t(e[r], r, e))
|
|
44
|
-
return r;
|
|
45
|
-
return -1;
|
|
46
|
-
}
|
|
47
|
-
function Le(e) {
|
|
48
|
-
return e !== e;
|
|
49
|
-
}
|
|
50
|
-
function Ue(e, t, o) {
|
|
51
|
-
for (var a = o - 1, l = e.length; ++a < l; )
|
|
52
|
-
if (e[a] === t)
|
|
53
|
-
return a;
|
|
54
|
-
return -1;
|
|
55
|
-
}
|
|
56
|
-
function Me(e, t, o) {
|
|
57
|
-
return t === t ? Ue(e, t, o) : Be(e, Le, o);
|
|
58
|
-
}
|
|
59
|
-
function Ee(e, t, o) {
|
|
60
|
-
t == "__proto__" && z ? z(e, t, {
|
|
61
|
-
configurable: !0,
|
|
62
|
-
enumerable: !0,
|
|
63
|
-
value: o,
|
|
64
|
-
writable: !0
|
|
65
|
-
}) : e[t] = o;
|
|
66
|
-
}
|
|
67
|
-
function Ie(e, t, o, a) {
|
|
68
|
-
for (var l = -1, r = e == null ? 0 : e.length; ++l < r; ) {
|
|
69
|
-
var s = e[l];
|
|
70
|
-
t(a, s, o(s), e);
|
|
71
|
-
}
|
|
72
|
-
return a;
|
|
73
|
-
}
|
|
74
|
-
function Te(e, t, o, a) {
|
|
75
|
-
return xe(e, function(l, r, s) {
|
|
76
|
-
t(a, l, o(l), s);
|
|
77
|
-
}), a;
|
|
78
|
-
}
|
|
79
|
-
function Q(e, t) {
|
|
80
|
-
return function(o, a) {
|
|
81
|
-
var l = ke(o) ? Ie : Te, r = t ? t() : {};
|
|
82
|
-
return l(o, e, ye(a), r);
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
function X(e, t, o) {
|
|
86
|
-
var a = e == null ? 0 : e.length;
|
|
87
|
-
if (!a)
|
|
88
|
-
return -1;
|
|
89
|
-
var l = 0;
|
|
90
|
-
return Me(e, t, l);
|
|
91
|
-
}
|
|
92
|
-
var $e = Q(function(e, t, o) {
|
|
93
|
-
Ee(e, o, t);
|
|
94
|
-
}), Ne = Q(function(e, t, o) {
|
|
95
|
-
e[o ? 0 : 1].push(t);
|
|
96
|
-
}, function() {
|
|
97
|
-
return [[], []];
|
|
98
|
-
});
|
|
99
|
-
const De = {
|
|
100
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
101
|
-
fill: "none",
|
|
102
|
-
stroke: "#000",
|
|
103
|
-
"stroke-linejoin": "round",
|
|
104
|
-
viewBox: "0 0 32 32"
|
|
105
|
-
};
|
|
106
|
-
function Fe(e, t) {
|
|
107
|
-
return V(), k("svg", De, [...t[0] || (t[0] = [
|
|
108
|
-
b("path", { d: "m27 17.1-11 11-11-11m11 11V3.9" }, null, -1)
|
|
109
|
-
])]);
|
|
110
|
-
}
|
|
111
|
-
const Ke = { render: Fe }, Pe = {
|
|
112
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
113
|
-
fill: "none",
|
|
114
|
-
stroke: "#000",
|
|
115
|
-
viewBox: "0 0 32 32"
|
|
116
|
-
};
|
|
117
|
-
function Oe(e, t) {
|
|
118
|
-
return V(), k("svg", Pe, [...t[0] || (t[0] = [
|
|
119
|
-
b("path", { d: "M23.4 13.4 16 20.8l-7.4-7.4m7.4 7.4V4.5m12.5 23h-25" }, null, -1)
|
|
120
|
-
])]);
|
|
121
|
-
}
|
|
122
|
-
const Z = { render: Oe }, Re = {
|
|
123
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
124
|
-
fill: "none",
|
|
125
|
-
stroke: "#000",
|
|
126
|
-
"stroke-linejoin": "round",
|
|
127
|
-
viewBox: "0 0 32 32"
|
|
128
|
-
};
|
|
129
|
-
function He(e, t) {
|
|
130
|
-
return V(), k("svg", Re, [...t[0] || (t[0] = [
|
|
131
|
-
b("path", { d: "m5 14.9 11-11 11 11m-11-11v24.2" }, null, -1)
|
|
132
|
-
])]);
|
|
133
|
-
}
|
|
134
|
-
const ze = { render: He }, Ze = { class: "buttons" }, je = /* @__PURE__ */ j({
|
|
135
|
-
__name: "SortList",
|
|
136
|
-
props: {
|
|
137
|
-
modelValue: {},
|
|
138
|
-
id: {},
|
|
139
|
-
ariaLabel: {},
|
|
140
|
-
disabled: { type: Boolean },
|
|
141
|
-
possibleValues: {}
|
|
142
|
-
},
|
|
143
|
-
emits: ["update:modelValue"],
|
|
144
|
-
setup(e, { emit: t }) {
|
|
145
|
-
const o = e, a = t, l = y(() => $e(o.possibleValues, "id")), r = y(
|
|
146
|
-
() => o.modelValue.map(
|
|
147
|
-
(n) => l.value[n] ?? Ae(n)
|
|
148
|
-
)
|
|
149
|
-
), s = D([]);
|
|
150
|
-
W(
|
|
151
|
-
() => o.modelValue,
|
|
152
|
-
(n) => {
|
|
153
|
-
const u = new Set(n);
|
|
154
|
-
s.value = s.value.filter((c) => u.has(c));
|
|
155
|
-
}
|
|
156
|
-
);
|
|
157
|
-
const h = y(() => s.value.length === 0), S = (n, u, c) => [
|
|
158
|
-
n.slice(0, u),
|
|
159
|
-
n.slice(u, c),
|
|
160
|
-
n.slice(c)
|
|
161
|
-
], I = (n) => {
|
|
162
|
-
let u = 0;
|
|
163
|
-
return (c) => n(c, u++);
|
|
164
|
-
}, _ = (n, u) => Ne(
|
|
165
|
-
n,
|
|
166
|
-
I((c, A) => u(A))
|
|
167
|
-
), g = D(null), v = (n) => ({ to: u } = {}) => {
|
|
168
|
-
const c = s.value.map((C) => X(o.modelValue, C)).sort((C, re) => C - re), A = (n === "up" ? u : null) ?? Math.max(c[0] - 1, 0), T = (n === "down" ? u : null) ?? c[c.length - 1] + 1, [ee, te, oe] = S(
|
|
169
|
-
o.modelValue,
|
|
170
|
-
A,
|
|
171
|
-
T + 1
|
|
172
|
-
), ne = new Set(c), [K, P] = _(
|
|
173
|
-
te,
|
|
174
|
-
(C) => ne.has(C + A)
|
|
175
|
-
), [le, ae] = n === "up" ? [K, P] : [P, K], se = ee.concat(le, ae, oe);
|
|
176
|
-
a("update:modelValue", se), ce(() => {
|
|
177
|
-
n === "up" ? (g.value?.scrollUpIntoView(A - 1), g.value?.setCurrentKeyNavIndex(A)) : (g.value?.scrollDownIntoView(T + 1), g.value?.setCurrentKeyNavIndex(T));
|
|
178
|
-
});
|
|
179
|
-
}, i = v("up"), w = v("down"), m = () => i({ to: 0 }), B = () => w({ to: o.modelValue.length }), x = (n, u) => `${n} (${_e.formatHotkeys(u)})`;
|
|
180
|
-
return (n, u) => (V(), k(E, null, [
|
|
181
|
-
d(ge, {
|
|
182
|
-
id: e.id,
|
|
183
|
-
ref_key: "listBox",
|
|
184
|
-
ref: g,
|
|
185
|
-
modelValue: s.value,
|
|
186
|
-
"onUpdate:modelValue": u[0] || (u[0] = (c) => s.value = c),
|
|
187
|
-
"possible-values": r.value,
|
|
188
|
-
ariaLabel: `sortListBox_${e.ariaLabel}`,
|
|
189
|
-
"with-is-empty-state": !0,
|
|
190
|
-
"empty-state-label": "Empty",
|
|
191
|
-
size: 10,
|
|
192
|
-
onKeydown: [
|
|
193
|
-
L(U(p(w), ["alt"]), ["down"]),
|
|
194
|
-
L(U(p(i), ["alt"]), ["up"]),
|
|
195
|
-
L(U(m, ["alt"]), ["home"]),
|
|
196
|
-
L(U(B, ["alt"]), ["end"])
|
|
197
|
-
]
|
|
198
|
-
}, {
|
|
199
|
-
option: f((c) => [
|
|
200
|
-
F(n.$slots, "option", ie(ue(c)), void 0, !0)
|
|
201
|
-
]),
|
|
202
|
-
_: 3
|
|
203
|
-
}, 8, ["id", "modelValue", "possible-values", "ariaLabel", "onKeydown"]),
|
|
204
|
-
b("div", Ze, [
|
|
205
|
-
d(M, {
|
|
206
|
-
disabled: h.value,
|
|
207
|
-
title: x("Move to top", ["Alt", "Home"]),
|
|
208
|
-
compact: "",
|
|
209
|
-
onClick: m
|
|
210
|
-
}, {
|
|
211
|
-
default: f(() => [
|
|
212
|
-
d(p(Z), { class: "rotated" })
|
|
213
|
-
]),
|
|
214
|
-
_: 1
|
|
215
|
-
}, 8, ["disabled", "title"]),
|
|
216
|
-
d(M, {
|
|
217
|
-
disabled: h.value,
|
|
218
|
-
title: x("Move to bottom", ["Alt", "End"]),
|
|
219
|
-
compact: "",
|
|
220
|
-
onClick: B
|
|
221
|
-
}, {
|
|
222
|
-
default: f(() => [
|
|
223
|
-
d(p(Z))
|
|
224
|
-
]),
|
|
225
|
-
_: 1
|
|
226
|
-
}, 8, ["disabled", "title"]),
|
|
227
|
-
d(M, {
|
|
228
|
-
disabled: h.value,
|
|
229
|
-
title: x("Move up", ["Alt", "ArrowUp"]),
|
|
230
|
-
compact: "",
|
|
231
|
-
onClick: p(i)
|
|
232
|
-
}, {
|
|
233
|
-
default: f(() => [
|
|
234
|
-
d(p(ze))
|
|
235
|
-
]),
|
|
236
|
-
_: 1
|
|
237
|
-
}, 8, ["disabled", "title", "onClick"]),
|
|
238
|
-
d(M, {
|
|
239
|
-
disabled: h.value,
|
|
240
|
-
title: x("Move down", ["Alt", "ArrowDown"]),
|
|
241
|
-
compact: "",
|
|
242
|
-
onClick: p(w)
|
|
243
|
-
}, {
|
|
244
|
-
default: f(() => [
|
|
245
|
-
d(p(Ke))
|
|
246
|
-
]),
|
|
247
|
-
_: 1
|
|
248
|
-
}, 8, ["disabled", "title", "onClick"])
|
|
249
|
-
])
|
|
250
|
-
], 64));
|
|
251
|
-
}
|
|
252
|
-
}), We = /* @__PURE__ */ Y(je, [["__scopeId", "data-v-a05c0d25"]]), Ge = {
|
|
253
|
-
class: /* @__PURE__ */ G(["flex", "space-between"])
|
|
254
|
-
}, Ye = { class: "flex" }, qe = "<any unknown new column>", Je = /* @__PURE__ */ j({
|
|
255
|
-
__name: "SortListControl",
|
|
256
|
-
props: {
|
|
257
|
-
control: {},
|
|
258
|
-
handleChange: {},
|
|
259
|
-
changeValue: {},
|
|
260
|
-
disabled: { type: Boolean },
|
|
261
|
-
labelForId: {},
|
|
262
|
-
isValid: { type: Boolean },
|
|
263
|
-
messages: {},
|
|
264
|
-
onRegisterValidation: {},
|
|
265
|
-
anyUnknownValuesId: { default: qe },
|
|
266
|
-
anyUnknownValuesText: { default: "Any unknown column" }
|
|
267
|
-
},
|
|
268
|
-
setup(e) {
|
|
269
|
-
const t = e, o = y(() => t.control.data), a = y(
|
|
270
|
-
() => t.control.uischema
|
|
271
|
-
), l = fe(
|
|
272
|
-
a,
|
|
273
|
-
"possibleValues",
|
|
274
|
-
[]
|
|
275
|
-
), r = y(
|
|
276
|
-
() => l.value.concat({
|
|
277
|
-
id: t.anyUnknownValuesId,
|
|
278
|
-
text: t.anyUnknownValuesText,
|
|
279
|
-
special: !0
|
|
280
|
-
})
|
|
281
|
-
), s = (v) => {
|
|
282
|
-
if (o.value.length === 0) {
|
|
283
|
-
_();
|
|
284
|
-
return;
|
|
285
|
-
}
|
|
286
|
-
const i = X(o.value, t.anyUnknownValuesId);
|
|
287
|
-
if (i === -1)
|
|
288
|
-
throw new Error(
|
|
289
|
-
`SortList data have to contain the value "${t.anyUnknownValuesId}"`
|
|
290
|
-
);
|
|
291
|
-
const w = o.value.slice(0, i + 1), m = o.value.slice(i + 1), B = new Set(o.value), x = v.map(({ id: n }) => n).filter((n) => !B.has(n));
|
|
292
|
-
x.length > 0 && t.changeValue(w.concat(x, m));
|
|
293
|
-
};
|
|
294
|
-
de(() => {
|
|
295
|
-
s(l.value);
|
|
296
|
-
});
|
|
297
|
-
const h = y(
|
|
298
|
-
() => !!l.value?.[0]?.hasOwnProperty("type")
|
|
299
|
-
);
|
|
300
|
-
W(() => l.value, s);
|
|
301
|
-
const S = () => {
|
|
302
|
-
t.changeValue(o.value.toSorted((v, i) => v.localeCompare(i)));
|
|
303
|
-
}, I = () => {
|
|
304
|
-
t.changeValue(o.value.toSorted((v, i) => i.localeCompare(v)));
|
|
305
|
-
}, _ = () => {
|
|
306
|
-
t.changeValue(r.value.map(({ id: v }) => v));
|
|
307
|
-
}, g = D(null);
|
|
308
|
-
return (v, i) => (V(), k(E, null, [
|
|
309
|
-
b("div", Ge, [
|
|
310
|
-
b("div", Ye, [
|
|
311
|
-
d(p(N), {
|
|
312
|
-
"with-border": "",
|
|
313
|
-
compact: "",
|
|
314
|
-
onClick: S
|
|
315
|
-
}, {
|
|
316
|
-
default: f(() => [...i[0] || (i[0] = [
|
|
317
|
-
$("A - Z", -1)
|
|
318
|
-
])]),
|
|
319
|
-
_: 1
|
|
320
|
-
}),
|
|
321
|
-
d(p(N), {
|
|
322
|
-
"with-border": "",
|
|
323
|
-
compact: "",
|
|
324
|
-
onClick: I
|
|
325
|
-
}, {
|
|
326
|
-
default: f(() => [...i[1] || (i[1] = [
|
|
327
|
-
$("Z - A", -1)
|
|
328
|
-
])]),
|
|
329
|
-
_: 1
|
|
330
|
-
})
|
|
331
|
-
]),
|
|
332
|
-
d(p(N), {
|
|
333
|
-
"with-border": "",
|
|
334
|
-
compact: "",
|
|
335
|
-
onClick: _
|
|
336
|
-
}, {
|
|
337
|
-
default: f(() => [...i[2] || (i[2] = [
|
|
338
|
-
$("Reset all", -1)
|
|
339
|
-
])]),
|
|
340
|
-
_: 1
|
|
341
|
-
})
|
|
342
|
-
]),
|
|
343
|
-
d(we, {
|
|
344
|
-
label: e.control.label,
|
|
345
|
-
onControllingFlowVariableSet: e.changeValue
|
|
346
|
-
}, {
|
|
347
|
-
default: f(({ labelForId: w }) => [
|
|
348
|
-
d(be, {
|
|
349
|
-
errors: e.messages.errors
|
|
350
|
-
}, {
|
|
351
|
-
default: f(() => [
|
|
352
|
-
d(p(We), {
|
|
353
|
-
id: w ?? void 0,
|
|
354
|
-
ref_key: "controlElement",
|
|
355
|
-
ref: g,
|
|
356
|
-
"possible-values": r.value,
|
|
357
|
-
"model-value": o.value,
|
|
358
|
-
ariaLabel: e.control.label,
|
|
359
|
-
disabled: e.disabled,
|
|
360
|
-
"onUpdate:modelValue": e.changeValue
|
|
361
|
-
}, me({ _: 2 }, [
|
|
362
|
-
h.value ? {
|
|
363
|
-
name: "option",
|
|
364
|
-
fn: f(({ slotItem: m }) => [
|
|
365
|
-
b("div", {
|
|
366
|
-
class: G([
|
|
367
|
-
"data-type-entry",
|
|
368
|
-
{
|
|
369
|
-
invalid: m.invalid,
|
|
370
|
-
"with-type": m.invalid || m.type?.id,
|
|
371
|
-
special: m.special
|
|
372
|
-
}
|
|
373
|
-
])
|
|
374
|
-
}, [
|
|
375
|
-
m.invalid ? (V(), k(E, { key: 0 }, [
|
|
376
|
-
d(p(R), { size: "small" }),
|
|
377
|
-
b("span", null, O(m.text), 1)
|
|
378
|
-
], 64)) : (V(), k(E, { key: 1 }, [
|
|
379
|
-
m.type?.id ? (V(), pe(p(R), {
|
|
380
|
-
key: 0,
|
|
381
|
-
"icon-name": m.type.id,
|
|
382
|
-
"icon-title": m.type.text,
|
|
383
|
-
size: "small"
|
|
384
|
-
}, null, 8, ["icon-name", "icon-title"])) : ve("", !0),
|
|
385
|
-
b("span", null, O(m.text), 1)
|
|
386
|
-
], 64))
|
|
387
|
-
], 2)
|
|
388
|
-
]),
|
|
389
|
-
key: "0"
|
|
390
|
-
} : void 0
|
|
391
|
-
]), 1032, ["id", "possible-values", "model-value", "ariaLabel", "disabled", "onUpdate:modelValue"])
|
|
392
|
-
]),
|
|
393
|
-
_: 2
|
|
394
|
-
}, 1032, ["errors"])
|
|
395
|
-
]),
|
|
396
|
-
icon: f(() => [
|
|
397
|
-
F(v.$slots, "icon", {}, void 0, !0)
|
|
398
|
-
]),
|
|
399
|
-
buttons: f(({ hover: w }) => [
|
|
400
|
-
F(v.$slots, "buttons", {
|
|
401
|
-
hover: w,
|
|
402
|
-
controlHTMLElement: g.value
|
|
403
|
-
}, void 0, !0)
|
|
404
|
-
]),
|
|
405
|
-
_: 3
|
|
406
|
-
}, 8, ["label", "onControllingFlowVariableSet"])
|
|
407
|
-
], 64));
|
|
408
|
-
}
|
|
409
|
-
}), it = /* @__PURE__ */ Y(Je, [["__scopeId", "data-v-a64b8717"]]);
|
|
410
|
-
export {
|
|
411
|
-
qe as DEFAULT_ANY_UNKNOWN_VALUES_ID,
|
|
412
|
-
it as default
|
|
413
|
-
};
|