@knime/jsonforms 1.15.3 → 1.15.4
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 +9 -0
- package/dist/{AnyOfTwinlist-KB0IjyOd.js → AnyOfTwinlist-6zK9fZTP.js} +1 -1
- package/dist/{Button-B6NccR4s.js → Button-BbVMc9wp.js} +1 -1
- package/dist/{CheckboxControl-CYfjLF_Q.js → CheckboxControl-B5XfJGgR.js} +1 -1
- package/dist/{Checkboxes-D2Of8wBA.js → Checkboxes-UYgHsXqG.js} +1 -1
- package/dist/{CheckboxesControl-BktrOnVe.js → CheckboxesControl-BOXtRP6l.js} +3 -3
- package/dist/{ComboBoxControl-BUOtNRUR.js → ComboBoxControl-CiWFlJaW.js} +2 -2
- package/dist/{DateControl-CR9yBHT0.js → DateControl-AwVSUTGi.js} +1 -1
- package/dist/{DateTimeControl-mxyPurHh.js → DateTimeControl-Cn0Mr_M-.js} +1 -1
- package/dist/{DateTimeFormatInput-CRxeQ0Zh.js → DateTimeFormatInput-CVuxdr8R.js} +3 -3
- package/dist/{DateTimeFormatPickerControl-CehuGkzU.js → DateTimeFormatPickerControl-DfOzUhmm.js} +2 -2
- package/dist/{DateTimeFormatPickerWithTypeControl-mC42XrIO.js → DateTimeFormatPickerWithTypeControl-BjUJXxp9.js} +3 -3
- package/dist/{Dropdown-BeD0EGmH.js → Dropdown-M8dd5F3K.js} +2 -2
- package/dist/{DropdownControl-BzJ4RWdp.js → DropdownControl-C7cMjvBf.js} +2 -2
- package/dist/{HorizontalLayout-D7SNG8xY.js → HorizontalLayout-DVXrW5Ft.js} +1 -1
- package/dist/{InputField-Z_TvmegD.js → InputField-SPaDhf8S.js} +1 -1
- package/dist/{IntegerControl-BumFaaD0.js → IntegerControl-kPwCljA4.js} +1 -1
- package/dist/{IntervalControl-CsmmAUQZ.js → IntervalControl-BCht36Fn.js} +3 -3
- package/dist/{LoadingDropdown-rhddxaPI.js → LoadingDropdown-UdCcglK8.js} +3 -3
- package/dist/{LoadingIcon-Fu4ZKrdj.js → LoadingIcon-lBxrKibx.js} +1 -1
- package/dist/{ManualTwinlistControl-phvyxHwm.js → ManualTwinlistControl-DNF0MMxm.js} +4 -4
- package/dist/{MultiSelectListBoxControl-8TfBURKM.js → MultiSelectListBoxControl-BgSB7gJa.js} +2 -2
- package/dist/{MultimodeTwinlistControl-Dm1PWjAe.js → MultimodeTwinlistControl-C8gSrZ_R.js} +6 -6
- package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_2c8e8d82_lang-BR3eNADi.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_2c8e8d82_lang-W4oTCLra.js} +1 -1
- package/dist/{MultiselectListBox-B31ZfMfu.js → MultiselectListBox-BpEhz7eo.js} +2 -2
- package/dist/{NameFilter-BA29AcPW.js → NameFilter-BOtDoNms.js} +1 -1
- package/dist/{NumberControl-Da2etxiM.js → NumberControl-D8NbE40Q.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-BNrHgQ8S.js → NumberControlBase.vue_vue_type_script_setup_true_lang-DyiRRo12.js} +2 -2
- package/dist/{NumberInput-DYMhWjUe.js → NumberInput-B9tTtrib.js} +1 -1
- package/dist/{OneOfDropdown-DKmDvBWW.js → OneOfDropdown-BsmuBQy8.js} +1 -1
- package/dist/{RadioControl-BXUGZ9wv.js → RadioControl-BLtwBQcH.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-W1ekTlJW.js → RadioControlBase.vue_vue_type_script_setup_true_lang-BWCyiB2d.js} +3 -3
- package/dist/{RichTextControl-CmHdELxR.js → RichTextControl-DFYxgoEe.js} +4 -4
- package/dist/{SectionHeading-BG2yzVJD.js → SectionHeading-CkLlXQSB.js} +1 -1
- package/dist/{SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CB-Psmtt.js → SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-1tIJbzpq.js} +34 -34
- package/dist/{SectionLayout-Bnm0Jl3H.js → SectionLayout-CQcfFF8g.js} +3 -3
- package/dist/{SettingsSubPanel-BY9KQcH7.js → SettingsSubPanel-DGExJukD.js} +1 -1
- package/dist/{SettingsSubPanelLayout-DWhYLL3Z.js → SettingsSubPanelLayout-D9ZpHZQj.js} +4 -4
- package/dist/{SimpleButtonControl-bjRoDhnR.js → SimpleButtonControl--00n7Ynn.js} +2 -2
- package/dist/{SimpleTwinlistControl-DqRByJvP.js → SimpleTwinlistControl-CCDs7tAh.js} +2 -2
- package/dist/{SingleSelectControl-C8xAQWvt.js → SingleSelectControl-C-XkI5YA.js} +2 -2
- package/dist/{SingleSelectListBoxControl-DOA07yeJ.js → SingleSelectListBoxControl-Cd0cDHMx.js} +3 -3
- package/dist/SortListControl-KSqyhKAz.js +417 -0
- package/dist/{StyledListItem-B9I3u4_i.js → StyledListItem-BPqJ4rUi.js} +1 -1
- package/dist/{TextAreaControl-C7ICVJ17.js → TextAreaControl-B52DiQQQ.js} +1 -1
- package/dist/{TextControl-9dzJf6hH.js → TextControl-DRX2qSZI.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-B2nV46-b.js → TextControl.vue_vue_type_script_setup_true_lang-C7wSG3ql.js} +3 -3
- package/dist/{TimeControl-cbvEThGD.js → TimeControl-Bsy22N7z.js} +1 -1
- package/dist/{TwinlistControlBase-D6ffMZbh.js → TwinlistControlBase-CEKD1kRu.js} +3 -3
- package/dist/{TwinlistLoadingInfo-CB-TBzpK.js → TwinlistLoadingInfo-D2V6kqnl.js} +4 -4
- package/dist/{TypedStringFilter-C8njK-LK.js → TypedStringFilter-C-lEcW_H.js} +1 -1
- package/dist/{ValueSwitch-BkpbDab4.js → ValueSwitch-v07bmQdY.js} +1 -1
- package/dist/{ValueSwitchControl-DuvmApeV.js → ValueSwitchControl-Cn2k3mrc.js} +1 -1
- package/dist/{VerticalLayout-Cpti_fKY.js → VerticalLayout-DNIKjU1d.js} +2 -2
- package/dist/{VerticalLayoutBase-BHsF4RN4.js → VerticalLayoutBase-C8aQhkFj.js} +1 -1
- package/dist/{ZonedDateTimeControl-CjOD_mZp.js → ZonedDateTimeControl-DWOD_b_2.js} +3 -3
- package/dist/{_baseEach-V7XhUaXb.js → _baseEach-q1l79Klx.js} +2 -2
- package/dist/{_baseIteratee-C1so1JZP.js → _baseIteratee-CjLkzWI9.js} +3 -3
- package/dist/{_getTag-BHYRy9P4.js → _getTag-DzwJWu2z.js} +1 -1
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +7 -7
- package/dist/{localTimeUtils-_Nz5xQcb.js → localTimeUtils-y-GlzeYK.js} +6 -6
- package/dist/src/renderers/defaultRenderers.d.ts +586 -520
- package/dist/src/renderers/sortListRenderer.d.ts +586 -520
- package/dist/src/uiComponents/SortListControl.vue.d.ts +499 -433
- package/dist/testing.js +2 -2
- package/dist/{toString-B48cVDY_.js → toString-B4_JidM_.js} +1 -1
- package/dist/{useBuiltinValidations-CllSUxkL.js → useBuiltinValidations-CebEtZph.js} +1 -1
- package/dist/{usePossibleValues-DwOe-HFF.js → usePossibleValues-6q6wH1Vp.js} +1 -1
- package/package.json +3 -3
- package/dist/SortListControl-BfpG7HYZ.js +0 -377
|
@@ -0,0 +1,417 @@
|
|
|
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 p, withKeys as L, withModifiers as U, unref as v, withCtx as f, renderSlot as F, normalizeProps as ie, guardReactiveProps as ue, nextTick as de, onMounted as ce, normalizeClass as Y, createTextVNode as $, createSlots as pe, toDisplayString as O, createBlock as me, createCommentVNode as ve } from "vue";
|
|
2
|
+
import { D as R } from "./index-DVwliH8a.js";
|
|
3
|
+
import { v as M, _ as q, u as fe, L as we, E as be } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-1tIJbzpq.js";
|
|
4
|
+
import { i as he } from "./navigator-e30QQMkl.js";
|
|
5
|
+
import { M as ge } from "./MultiselectListBox-BpEhz7eo.js";
|
|
6
|
+
import { g as Ve } from "./_getTag-DzwJWu2z.js";
|
|
7
|
+
import { b as _e } from "./_baseEach-q1l79Klx.js";
|
|
8
|
+
import { b as ye } from "./_baseIteratee-CjLkzWI9.js";
|
|
9
|
+
import { i as ke } from "./isArray-WzO_os3q.js";
|
|
10
|
+
import { c as xe } from "./createMissingItem-B00Kg95q.js";
|
|
11
|
+
import { B as N } from "./Button-BbVMc9wp.js";
|
|
12
|
+
const H = {
|
|
13
|
+
ArrowUp: "↑",
|
|
14
|
+
ArrowDown: "↓",
|
|
15
|
+
ArrowLeft: "←",
|
|
16
|
+
ArrowRight: "→",
|
|
17
|
+
Enter: "↵",
|
|
18
|
+
" ": "Space",
|
|
19
|
+
// we use event.key and there space is an actual space not the code "Space"
|
|
20
|
+
CtrlOrCmd: "Ctrl"
|
|
21
|
+
}, Ae = {
|
|
22
|
+
Shift: "⇧",
|
|
23
|
+
Delete: "⌫",
|
|
24
|
+
CtrlOrCmd: "⌘",
|
|
25
|
+
Ctrl: "⌃",
|
|
26
|
+
Alt: "⌥",
|
|
27
|
+
Enter: "↩"
|
|
28
|
+
}, G = (t) => {
|
|
29
|
+
const e = (i) => (s) => i[s] ?? s, a = ((...i) => i.reduce((s, h) => (A) => h(s(A))))(
|
|
30
|
+
e(Ae),
|
|
31
|
+
e(H)
|
|
32
|
+
), l = e(H);
|
|
33
|
+
return he() ? a(t) : l(t);
|
|
34
|
+
}, J = () => " ", Se = (t, e = J) => t.map(G).join(e()), Ce = { formatHotkeys: Se, formatHotkey: G, getDefaultSeparator: J };
|
|
35
|
+
var z = function() {
|
|
36
|
+
try {
|
|
37
|
+
var t = Ve(Object, "defineProperty");
|
|
38
|
+
return t({}, "", {}), t;
|
|
39
|
+
} catch {
|
|
40
|
+
}
|
|
41
|
+
}();
|
|
42
|
+
function Be(t, e, o, a) {
|
|
43
|
+
for (var l = t.length, i = o + -1; ++i < l; )
|
|
44
|
+
if (e(t[i], i, t))
|
|
45
|
+
return i;
|
|
46
|
+
return -1;
|
|
47
|
+
}
|
|
48
|
+
function Le(t) {
|
|
49
|
+
return t !== t;
|
|
50
|
+
}
|
|
51
|
+
function Ue(t, e, o) {
|
|
52
|
+
for (var a = o - 1, l = t.length; ++a < l; )
|
|
53
|
+
if (t[a] === e)
|
|
54
|
+
return a;
|
|
55
|
+
return -1;
|
|
56
|
+
}
|
|
57
|
+
function Me(t, e, o) {
|
|
58
|
+
return e === e ? Ue(t, e, o) : Be(t, Le, o);
|
|
59
|
+
}
|
|
60
|
+
function Ee(t, e, o) {
|
|
61
|
+
e == "__proto__" && z ? z(t, e, {
|
|
62
|
+
configurable: !0,
|
|
63
|
+
enumerable: !0,
|
|
64
|
+
value: o,
|
|
65
|
+
writable: !0
|
|
66
|
+
}) : t[e] = o;
|
|
67
|
+
}
|
|
68
|
+
function Ie(t, e, o, a) {
|
|
69
|
+
for (var l = -1, i = t == null ? 0 : t.length; ++l < i; ) {
|
|
70
|
+
var s = t[l];
|
|
71
|
+
e(a, s, o(s), t);
|
|
72
|
+
}
|
|
73
|
+
return a;
|
|
74
|
+
}
|
|
75
|
+
function Te(t, e, o, a) {
|
|
76
|
+
return _e(t, function(l, i, s) {
|
|
77
|
+
e(a, l, o(l), s);
|
|
78
|
+
}), a;
|
|
79
|
+
}
|
|
80
|
+
function Q(t, e) {
|
|
81
|
+
return function(o, a) {
|
|
82
|
+
var l = ke(o) ? Ie : Te, i = e ? e() : {};
|
|
83
|
+
return l(o, t, ye(a), i);
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function X(t, e, o) {
|
|
87
|
+
var a = t == null ? 0 : t.length;
|
|
88
|
+
if (!a)
|
|
89
|
+
return -1;
|
|
90
|
+
var l = 0;
|
|
91
|
+
return Me(t, e, l);
|
|
92
|
+
}
|
|
93
|
+
var $e = Q(function(t, e, o) {
|
|
94
|
+
Ee(t, o, e);
|
|
95
|
+
}), Ne = Q(function(t, e, o) {
|
|
96
|
+
t[o ? 0 : 1].push(e);
|
|
97
|
+
}, function() {
|
|
98
|
+
return [[], []];
|
|
99
|
+
});
|
|
100
|
+
const De = {
|
|
101
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
102
|
+
fill: "none",
|
|
103
|
+
stroke: "#000",
|
|
104
|
+
"stroke-linejoin": "round",
|
|
105
|
+
viewBox: "0 0 32 32"
|
|
106
|
+
};
|
|
107
|
+
function Fe(t, e) {
|
|
108
|
+
return V(), k("svg", De, e[0] || (e[0] = [
|
|
109
|
+
b("path", { d: "m27 17.1-11 11-11-11m11 11V3.9" }, null, -1)
|
|
110
|
+
]));
|
|
111
|
+
}
|
|
112
|
+
const Ke = { render: Fe }, Pe = {
|
|
113
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
114
|
+
fill: "none",
|
|
115
|
+
stroke: "#000",
|
|
116
|
+
viewBox: "0 0 32 32"
|
|
117
|
+
};
|
|
118
|
+
function Oe(t, e) {
|
|
119
|
+
return V(), k("svg", Pe, e[0] || (e[0] = [
|
|
120
|
+
b("path", { d: "M23.4 13.4 16 20.8l-7.4-7.4m7.4 7.4V4.5m12.5 23h-25" }, null, -1)
|
|
121
|
+
]));
|
|
122
|
+
}
|
|
123
|
+
const Z = { render: Oe }, Re = {
|
|
124
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
125
|
+
fill: "none",
|
|
126
|
+
stroke: "#000",
|
|
127
|
+
"stroke-linejoin": "round",
|
|
128
|
+
viewBox: "0 0 32 32"
|
|
129
|
+
};
|
|
130
|
+
function He(t, e) {
|
|
131
|
+
return V(), k("svg", Re, e[0] || (e[0] = [
|
|
132
|
+
b("path", { d: "m5 14.9 11-11 11 11m-11-11v24.2" }, null, -1)
|
|
133
|
+
]));
|
|
134
|
+
}
|
|
135
|
+
const ze = { render: He }, Ze = { class: "buttons" }, je = /* @__PURE__ */ j({
|
|
136
|
+
__name: "SortList",
|
|
137
|
+
props: {
|
|
138
|
+
modelValue: {},
|
|
139
|
+
id: {},
|
|
140
|
+
ariaLabel: {},
|
|
141
|
+
disabled: { type: Boolean },
|
|
142
|
+
possibleValues: {}
|
|
143
|
+
},
|
|
144
|
+
emits: ["update:modelValue"],
|
|
145
|
+
setup(t, { emit: e }) {
|
|
146
|
+
const o = t, a = e, l = y(() => $e(o.possibleValues, "id")), i = y(
|
|
147
|
+
() => o.modelValue.map(
|
|
148
|
+
(n) => l.value[n] ?? xe(n)
|
|
149
|
+
)
|
|
150
|
+
), s = D([]);
|
|
151
|
+
W(
|
|
152
|
+
() => o.modelValue,
|
|
153
|
+
(n) => {
|
|
154
|
+
const d = new Set(n);
|
|
155
|
+
s.value = s.value.filter((c) => d.has(c));
|
|
156
|
+
}
|
|
157
|
+
);
|
|
158
|
+
const h = y(() => s.value.length === 0), A = (n, d, c) => [
|
|
159
|
+
n.slice(0, d),
|
|
160
|
+
n.slice(d, c),
|
|
161
|
+
n.slice(c)
|
|
162
|
+
], I = (n) => {
|
|
163
|
+
let d = 0;
|
|
164
|
+
return (c) => n(c, d++);
|
|
165
|
+
}, C = (n, d) => Ne(
|
|
166
|
+
n,
|
|
167
|
+
I((c, x) => d(x))
|
|
168
|
+
), g = D(null), r = (n) => ({ to: d } = {}) => {
|
|
169
|
+
const c = s.value.map((S) => X(o.modelValue, S)).sort((S, re) => S - re), x = (n === "up" ? d : null) ?? Math.max(c[0] - 1, 0), T = (n === "down" ? d : null) ?? c[c.length - 1] + 1, [ee, te, oe] = A(
|
|
170
|
+
o.modelValue,
|
|
171
|
+
x,
|
|
172
|
+
T + 1
|
|
173
|
+
), ne = new Set(c), [K, P] = C(
|
|
174
|
+
te,
|
|
175
|
+
(S) => ne.has(S + x)
|
|
176
|
+
), [le, ae] = n === "up" ? [K, P] : [P, K], se = ee.concat(le, ae, oe);
|
|
177
|
+
a("update:modelValue", se), de(() => {
|
|
178
|
+
n === "up" ? (g.value?.scrollUpIntoView(x - 1), g.value?.setCurrentKeyNavIndex(x)) : (g.value?.scrollDownIntoView(T + 1), g.value?.setCurrentKeyNavIndex(T));
|
|
179
|
+
});
|
|
180
|
+
}, u = r("up"), w = r("down"), m = () => u({ to: 0 }), B = () => w({ to: o.modelValue.length }), _ = (n, d) => `${n} (${Ce.formatHotkeys(d)})`;
|
|
181
|
+
return (n, d) => (V(), k(E, null, [
|
|
182
|
+
p(ge, {
|
|
183
|
+
id: n.id,
|
|
184
|
+
ref_key: "listBox",
|
|
185
|
+
ref: g,
|
|
186
|
+
modelValue: s.value,
|
|
187
|
+
"onUpdate:modelValue": d[0] || (d[0] = (c) => s.value = c),
|
|
188
|
+
"possible-values": i.value,
|
|
189
|
+
ariaLabel: `sortListBox_${n.ariaLabel}`,
|
|
190
|
+
"with-is-empty-state": !0,
|
|
191
|
+
"empty-state-label": "Empty",
|
|
192
|
+
size: 10,
|
|
193
|
+
onKeydown: [
|
|
194
|
+
L(U(v(w), ["alt"]), ["down"]),
|
|
195
|
+
L(U(v(u), ["alt"]), ["up"]),
|
|
196
|
+
L(U(m, ["alt"]), ["home"]),
|
|
197
|
+
L(U(B, ["alt"]), ["end"])
|
|
198
|
+
]
|
|
199
|
+
}, {
|
|
200
|
+
option: f((c) => [
|
|
201
|
+
F(n.$slots, "option", ie(ue(c)), void 0, !0)
|
|
202
|
+
]),
|
|
203
|
+
_: 3
|
|
204
|
+
}, 8, ["id", "modelValue", "possible-values", "ariaLabel", "onKeydown"]),
|
|
205
|
+
b("div", Ze, [
|
|
206
|
+
p(M, {
|
|
207
|
+
disabled: h.value,
|
|
208
|
+
title: _("Move to top", ["Alt", "Home"]),
|
|
209
|
+
compact: "",
|
|
210
|
+
onClick: m
|
|
211
|
+
}, {
|
|
212
|
+
default: f(() => [
|
|
213
|
+
p(v(Z), { class: "rotated" })
|
|
214
|
+
]),
|
|
215
|
+
_: 1
|
|
216
|
+
}, 8, ["disabled", "title"]),
|
|
217
|
+
p(M, {
|
|
218
|
+
disabled: h.value,
|
|
219
|
+
title: _("Move to bottom", ["Alt", "End"]),
|
|
220
|
+
compact: "",
|
|
221
|
+
onClick: B
|
|
222
|
+
}, {
|
|
223
|
+
default: f(() => [
|
|
224
|
+
p(v(Z))
|
|
225
|
+
]),
|
|
226
|
+
_: 1
|
|
227
|
+
}, 8, ["disabled", "title"]),
|
|
228
|
+
p(M, {
|
|
229
|
+
disabled: h.value,
|
|
230
|
+
title: _("Move up", ["Alt", "ArrowUp"]),
|
|
231
|
+
compact: "",
|
|
232
|
+
onClick: v(u)
|
|
233
|
+
}, {
|
|
234
|
+
default: f(() => [
|
|
235
|
+
p(v(ze))
|
|
236
|
+
]),
|
|
237
|
+
_: 1
|
|
238
|
+
}, 8, ["disabled", "title", "onClick"]),
|
|
239
|
+
p(M, {
|
|
240
|
+
disabled: h.value,
|
|
241
|
+
title: _("Move down", ["Alt", "ArrowDown"]),
|
|
242
|
+
compact: "",
|
|
243
|
+
onClick: v(w)
|
|
244
|
+
}, {
|
|
245
|
+
default: f(() => [
|
|
246
|
+
p(v(Ke))
|
|
247
|
+
]),
|
|
248
|
+
_: 1
|
|
249
|
+
}, 8, ["disabled", "title", "onClick"])
|
|
250
|
+
])
|
|
251
|
+
], 64));
|
|
252
|
+
}
|
|
253
|
+
}), We = /* @__PURE__ */ q(je, [["__scopeId", "data-v-a05c0d25"]]), Ye = {
|
|
254
|
+
class: /* @__PURE__ */ Y(["flex", "space-between"])
|
|
255
|
+
}, qe = { class: "flex" }, Ge = "<any unknown new column>", Je = /* @__PURE__ */ j({
|
|
256
|
+
__name: "SortListControl",
|
|
257
|
+
props: {
|
|
258
|
+
control: {},
|
|
259
|
+
handleChange: {},
|
|
260
|
+
changeValue: {},
|
|
261
|
+
disabled: { type: Boolean },
|
|
262
|
+
labelForId: {},
|
|
263
|
+
isValid: { type: Boolean },
|
|
264
|
+
messages: {},
|
|
265
|
+
onRegisterValidation: {},
|
|
266
|
+
anyUnknownValuesId: { default: Ge },
|
|
267
|
+
anyUnknownValuesText: { default: "Any unknown column" }
|
|
268
|
+
},
|
|
269
|
+
setup(t) {
|
|
270
|
+
const e = t, o = y(() => e.control.data), a = y(
|
|
271
|
+
() => e.control.uischema
|
|
272
|
+
), l = fe(
|
|
273
|
+
a,
|
|
274
|
+
"possibleValues",
|
|
275
|
+
[]
|
|
276
|
+
), i = y(
|
|
277
|
+
() => l.value.concat({
|
|
278
|
+
id: e.anyUnknownValuesId,
|
|
279
|
+
text: e.anyUnknownValuesText,
|
|
280
|
+
special: !0
|
|
281
|
+
})
|
|
282
|
+
), s = (r) => {
|
|
283
|
+
if (o.value.length === 0) {
|
|
284
|
+
C();
|
|
285
|
+
return;
|
|
286
|
+
}
|
|
287
|
+
const u = X(o.value, e.anyUnknownValuesId);
|
|
288
|
+
if (u === -1)
|
|
289
|
+
throw new Error(
|
|
290
|
+
`SortList data have to contain the value "${e.anyUnknownValuesId}"`
|
|
291
|
+
);
|
|
292
|
+
const w = o.value.slice(0, u + 1), m = o.value.slice(u + 1), B = new Set(o.value), _ = r.map(({ id: n }) => n).filter((n) => !B.has(n));
|
|
293
|
+
_.length > 0 && e.changeValue(w.concat(_, m));
|
|
294
|
+
};
|
|
295
|
+
ce(() => {
|
|
296
|
+
s(l.value);
|
|
297
|
+
});
|
|
298
|
+
const h = y(
|
|
299
|
+
() => !!l.value?.[0]?.hasOwnProperty("type")
|
|
300
|
+
);
|
|
301
|
+
W(() => l.value, s);
|
|
302
|
+
const A = () => {
|
|
303
|
+
e.changeValue(o.value.toSorted((r, u) => r.localeCompare(u)));
|
|
304
|
+
}, I = () => {
|
|
305
|
+
e.changeValue(o.value.toSorted((r, u) => u.localeCompare(r)));
|
|
306
|
+
}, C = () => {
|
|
307
|
+
e.changeValue(i.value.map(({ id: r }) => r));
|
|
308
|
+
}, g = D(null);
|
|
309
|
+
return (r, u) => (V(), k(E, null, [
|
|
310
|
+
b("div", Ye, [
|
|
311
|
+
b("div", qe, [
|
|
312
|
+
p(v(N), {
|
|
313
|
+
"with-border": "",
|
|
314
|
+
compact: "",
|
|
315
|
+
onClick: A
|
|
316
|
+
}, {
|
|
317
|
+
default: f(() => u[0] || (u[0] = [
|
|
318
|
+
$("A - Z", -1)
|
|
319
|
+
])),
|
|
320
|
+
_: 1,
|
|
321
|
+
__: [0]
|
|
322
|
+
}),
|
|
323
|
+
p(v(N), {
|
|
324
|
+
"with-border": "",
|
|
325
|
+
compact: "",
|
|
326
|
+
onClick: I
|
|
327
|
+
}, {
|
|
328
|
+
default: f(() => u[1] || (u[1] = [
|
|
329
|
+
$("Z - A", -1)
|
|
330
|
+
])),
|
|
331
|
+
_: 1,
|
|
332
|
+
__: [1]
|
|
333
|
+
})
|
|
334
|
+
]),
|
|
335
|
+
p(v(N), {
|
|
336
|
+
"with-border": "",
|
|
337
|
+
compact: "",
|
|
338
|
+
onClick: C
|
|
339
|
+
}, {
|
|
340
|
+
default: f(() => u[2] || (u[2] = [
|
|
341
|
+
$("Reset all", -1)
|
|
342
|
+
])),
|
|
343
|
+
_: 1,
|
|
344
|
+
__: [2]
|
|
345
|
+
})
|
|
346
|
+
]),
|
|
347
|
+
p(we, {
|
|
348
|
+
label: r.control.label,
|
|
349
|
+
onControllingFlowVariableSet: r.changeValue
|
|
350
|
+
}, {
|
|
351
|
+
default: f(({ labelForId: w }) => [
|
|
352
|
+
p(be, {
|
|
353
|
+
errors: r.messages.errors
|
|
354
|
+
}, {
|
|
355
|
+
default: f(() => [
|
|
356
|
+
p(v(We), {
|
|
357
|
+
id: w ?? void 0,
|
|
358
|
+
ref_key: "controlElement",
|
|
359
|
+
ref: g,
|
|
360
|
+
"possible-values": i.value,
|
|
361
|
+
"model-value": o.value,
|
|
362
|
+
ariaLabel: r.control.label,
|
|
363
|
+
disabled: r.disabled,
|
|
364
|
+
"onUpdate:modelValue": r.changeValue
|
|
365
|
+
}, pe({ _: 2 }, [
|
|
366
|
+
h.value ? {
|
|
367
|
+
name: "option",
|
|
368
|
+
fn: f(({ slotItem: m }) => [
|
|
369
|
+
b("div", {
|
|
370
|
+
class: Y([
|
|
371
|
+
"data-type-entry",
|
|
372
|
+
{
|
|
373
|
+
invalid: m.invalid,
|
|
374
|
+
"with-type": m.invalid || m.type?.id,
|
|
375
|
+
special: m.special
|
|
376
|
+
}
|
|
377
|
+
])
|
|
378
|
+
}, [
|
|
379
|
+
m.invalid ? (V(), k(E, { key: 0 }, [
|
|
380
|
+
p(v(R), { size: "small" }),
|
|
381
|
+
b("span", null, O(m.text), 1)
|
|
382
|
+
], 64)) : (V(), k(E, { key: 1 }, [
|
|
383
|
+
m.type?.id ? (V(), me(v(R), {
|
|
384
|
+
key: 0,
|
|
385
|
+
"icon-name": m.type.id,
|
|
386
|
+
"icon-title": m.type.text,
|
|
387
|
+
size: "small"
|
|
388
|
+
}, null, 8, ["icon-name", "icon-title"])) : ve("", !0),
|
|
389
|
+
b("span", null, O(m.text), 1)
|
|
390
|
+
], 64))
|
|
391
|
+
], 2)
|
|
392
|
+
]),
|
|
393
|
+
key: "0"
|
|
394
|
+
} : void 0
|
|
395
|
+
]), 1032, ["id", "possible-values", "model-value", "ariaLabel", "disabled", "onUpdate:modelValue"])
|
|
396
|
+
]),
|
|
397
|
+
_: 2
|
|
398
|
+
}, 1032, ["errors"])
|
|
399
|
+
]),
|
|
400
|
+
icon: f(() => [
|
|
401
|
+
F(r.$slots, "icon", {}, void 0, !0)
|
|
402
|
+
]),
|
|
403
|
+
buttons: f(({ hover: w }) => [
|
|
404
|
+
F(r.$slots, "buttons", {
|
|
405
|
+
hover: w,
|
|
406
|
+
controlHTMLElement: g.value
|
|
407
|
+
}, void 0, !0)
|
|
408
|
+
]),
|
|
409
|
+
_: 3
|
|
410
|
+
}, 8, ["label", "onControllingFlowVariableSet"])
|
|
411
|
+
], 64));
|
|
412
|
+
}
|
|
413
|
+
}), ut = /* @__PURE__ */ q(Je, [["__scopeId", "data-v-3f67679b"]]);
|
|
414
|
+
export {
|
|
415
|
+
Ge as DEFAULT_ANY_UNKNOWN_VALUES_ID,
|
|
416
|
+
ut as default
|
|
417
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as s, openBlock as n, mergeProps as d, withModifiers as o, renderSlot as a, createTextVNode as m, toDisplayString as f } from "vue";
|
|
2
|
-
import { _ as u } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-
|
|
2
|
+
import { _ as u } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-1tIJbzpq.js";
|
|
3
3
|
const r = {
|
|
4
4
|
name: "StyledListItem",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as d, openBlock as l, normalizeClass as s, createElementVNode as r, createCommentVNode as u, mergeProps as c, defineComponent as m, createBlock as p, unref as f } from "vue";
|
|
2
|
-
import { _ as o } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-
|
|
2
|
+
import { _ as o } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-1tIJbzpq.js";
|
|
3
3
|
const V = {
|
|
4
4
|
name: "TextArea",
|
|
5
5
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as s, computed as u, ref as c, createBlock as m, openBlock as h, unref as a } from "vue";
|
|
2
|
-
import { u as f } from "./useBuiltinValidations-
|
|
3
|
-
import { u as g } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-
|
|
4
|
-
import { I as F } from "./InputField-
|
|
2
|
+
import { u as f } from "./useBuiltinValidations-CebEtZph.js";
|
|
3
|
+
import { u as g } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-1tIJbzpq.js";
|
|
4
|
+
import { I as F } from "./InputField-SPaDhf8S.js";
|
|
5
5
|
const B = /* @__PURE__ */ s({
|
|
6
6
|
__name: "TextControl",
|
|
7
7
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as c, computed as o, createBlock as m, openBlock as p, unref as i } from "vue";
|
|
2
|
-
import { l as a, D as h } from "./localTimeUtils-
|
|
2
|
+
import { l as a, D as h } from "./localTimeUtils-y-GlzeYK.js";
|
|
3
3
|
const v = /* @__PURE__ */ c({
|
|
4
4
|
__name: "TimeControl",
|
|
5
5
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as t, markRaw as d, toRef as p, createBlock as r, openBlock as u, unref as l } from "vue";
|
|
2
|
-
import { a as m } from "./usePossibleValues-
|
|
3
|
-
import { T as b, a as c } from "./TwinlistLoadingInfo-
|
|
4
|
-
import { _ as f } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-
|
|
2
|
+
import { a as m } from "./usePossibleValues-6q6wH1Vp.js";
|
|
3
|
+
import { T as b, a as c } from "./TwinlistLoadingInfo-D2V6kqnl.js";
|
|
4
|
+
import { _ as f } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-1tIJbzpq.js";
|
|
5
5
|
const h = /* @__PURE__ */ t({
|
|
6
6
|
__name: "TwinlistControlBase",
|
|
7
7
|
props: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createElementBlock as v, openBlock as d, createElementVNode as r, computed as u, nextTick as te, resolveComponent as w, createBlock as V, normalizeClass as L, withCtx as k, createCommentVNode as y, createVNode as I, renderSlot as H, defineComponent as Z, useCssVars as X, ref as E, normalizeStyle as D, Fragment as ne, renderList as le, unref as N, toRef as O, toDisplayString as R, normalizeProps as P, guardReactiveProps as K } from "vue";
|
|
2
2
|
import { N as se } from "./arrow-next-BQVCxGb8.js";
|
|
3
3
|
import { u as W } from "./useSearch-hpyYQ_6y.js";
|
|
4
|
-
import { G as oe, H as ie, _ as T, v as ae, y as ue } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-
|
|
5
|
-
import { M as de } from "./MultiselectListBox-
|
|
4
|
+
import { G as oe, H as ie, _ as T, v as ae, y as ue } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-1tIJbzpq.js";
|
|
5
|
+
import { M as de } from "./MultiselectListBox-BpEhz7eo.js";
|
|
6
6
|
import { C as ce } from "./close-DGt8x-x_.js";
|
|
7
|
-
import { I as re } from "./InputField-
|
|
7
|
+
import { I as re } from "./InputField-SPaDhf8S.js";
|
|
8
8
|
import { c as F } from "./createMissingItem-B00Kg95q.js";
|
|
9
|
-
import { L as he } from "./LoadingIcon-
|
|
9
|
+
import { L as he } from "./LoadingIcon-lBxrKibx.js";
|
|
10
10
|
const me = {
|
|
11
11
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12
12
|
fill: "none",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as l, computed as a, createBlock as s, openBlock as i, mergeProps as p } from "vue";
|
|
2
|
-
import r from "./MultimodeTwinlistControl-
|
|
2
|
+
import r from "./MultimodeTwinlistControl-C8gSrZ_R.js";
|
|
3
3
|
const d = /* @__PURE__ */ l({
|
|
4
4
|
__name: "TypedStringFilter",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, createElementBlock as d, openBlock as o, Fragment as n, renderList as v, normalizeClass as i, createElementVNode as s, renderSlot as p, createCommentVNode as B, toDisplayString as r, resolveComponent as V, createBlock as $, withCtx as g, normalizeProps as h, guardReactiveProps as S } from "vue";
|
|
2
|
-
import { B as k, _ as m } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-
|
|
2
|
+
import { B as k, _ as m } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-1tIJbzpq.js";
|
|
3
3
|
const w = u({
|
|
4
4
|
name: "BaseRadioButtons",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, createBlock as n, openBlock as t, mergeProps as a } from "vue";
|
|
2
|
-
import { _ as p } from "./RadioControlBase.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as p } from "./RadioControlBase.vue_vue_type_script_setup_true_lang-BWCyiB2d.js";
|
|
3
3
|
const s = /* @__PURE__ */ o({
|
|
4
4
|
__name: "ValueSwitchControl",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as o, createBlock as a, openBlock as l, withCtx as s, unref as n } from "vue";
|
|
2
|
-
import { x as u } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-
|
|
3
|
-
import { V as m } from "./VerticalLayoutBase-
|
|
2
|
+
import { x as u } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-1tIJbzpq.js";
|
|
3
|
+
import { V as m } from "./VerticalLayoutBase-C8aQhkFj.js";
|
|
4
4
|
const d = /* @__PURE__ */ o({
|
|
5
5
|
__name: "VerticalLayout",
|
|
6
6
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as s, createElementBlock as r, openBlock as o, Fragment as n, renderList as c, renderSlot as l } from "vue";
|
|
2
|
-
import { _ } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-
|
|
2
|
+
import { _ } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-1tIJbzpq.js";
|
|
3
3
|
const p = { class: "vertical-layout" }, m = /* @__PURE__ */ s({
|
|
4
4
|
__name: "VerticalLayoutBase",
|
|
5
5
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as p, computed as a, createElementBlock as v, openBlock as V, createVNode as u, unref as m } from "vue";
|
|
2
|
-
import { t as b, f, D as h } from "./localTimeUtils-
|
|
3
|
-
import { _ as T } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-
|
|
4
|
-
import { D as w } from "./Dropdown-
|
|
2
|
+
import { t as b, f, D as h } from "./localTimeUtils-y-GlzeYK.js";
|
|
3
|
+
import { _ as T } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-1tIJbzpq.js";
|
|
4
|
+
import { D as w } from "./Dropdown-M8dd5F3K.js";
|
|
5
5
|
const g = ["id"], C = /* @__PURE__ */ p({
|
|
6
6
|
__name: "ZonedDateTimeControl",
|
|
7
7
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as h } from "./_baseIteratee-
|
|
2
|
-
import { d as b } from "./_getTag-
|
|
1
|
+
import { k as h } from "./_baseIteratee-CjLkzWI9.js";
|
|
2
|
+
import { d as b } from "./_getTag-DzwJWu2z.js";
|
|
3
3
|
function g(n) {
|
|
4
4
|
return function(e, r, f) {
|
|
5
5
|
for (var i = -1, a = Object(e), t = f(e), u = t.length; u--; ) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as Y, a as $, b as Q, c as fn, d as un, g as ln, M as W, e as N, f as _n } from "./_getTag-
|
|
2
|
-
import { o as V, I as on, S as H, J as F, G as hn } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-
|
|
1
|
+
import { i as Y, a as $, b as Q, c as fn, d as un, g as ln, M as W, e as N, f as _n } from "./_getTag-DzwJWu2z.js";
|
|
2
|
+
import { o as V, I as on, S as H, J as F, G as hn } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-1tIJbzpq.js";
|
|
3
3
|
import { i as O } from "./isArray-WzO_os3q.js";
|
|
4
|
-
import { t as pn } from "./toString-
|
|
4
|
+
import { t as pn } from "./toString-B4_JidM_.js";
|
|
5
5
|
function dn(n) {
|
|
6
6
|
return n;
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as I, K as i, I as o, J as v, M as _ } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-
|
|
1
|
+
import { G as I, K as i, I as o, J as v, M as _ } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-1tIJbzpq.js";
|
|
2
2
|
var V = "[object AsyncFunction]", D = "[object Function]", U = "[object GeneratorFunction]", G = "[object Proxy]";
|
|
3
3
|
function E(r) {
|
|
4
4
|
if (!I(r))
|