@knime/jsonforms 1.15.0 → 1.15.1
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 +8 -0
- package/dist/AnyOfTwinlist-BmHETHvW.js +28 -0
- package/dist/{Button-Cqwayw73.js → Button-B9RSLVI2.js} +8 -7
- package/dist/CheckboxControl-q88fZSZD.js +58 -0
- package/dist/Checkboxes-Bofcg7tl.js +120 -0
- package/dist/CheckboxesControl-DY0R1PDD.js +47 -0
- package/dist/{ComboBoxControl-R0DlbAdT.js → ComboBoxControl-2r1FWcy-.js} +234 -165
- package/dist/DateControl-vnkppn62.js +38 -0
- package/dist/DateTimeControl-MkF9G3Xz.js +53 -0
- package/dist/DateTimeFormatInput-Ds2VLXw1.js +426 -0
- package/dist/DateTimeFormatPickerControl-D3OjZCj7.js +47 -0
- package/dist/DateTimeFormatPickerWithTypeControl-DDto-oJk.js +85 -0
- package/dist/{DateTimeInput-Cs0KqlOS.js → DateTimeInput-DcwhvMD2.js} +421 -377
- package/dist/{Dropdown-BEx-cvXH.js → Dropdown-D49sEHBa.js} +140 -85
- package/dist/DropdownControl-aeEqC-Yg.js +46 -0
- package/dist/HorizontalLayout-D0toQmVl.js +39 -0
- package/dist/{InputField-OkFB9VHZ.js → InputField-C_aZPs-f.js} +48 -36
- package/dist/IntegerControl-DAwniqjW.js +33 -0
- package/dist/IntervalControl-Bkuhg0Ga.js +647 -0
- package/dist/LoadingDropdown-B9jHjdWV.js +50 -0
- package/dist/LoadingIcon-RPBUjTO3.js +23 -0
- package/dist/ManualTwinlistControl-DGW-7a2Q.js +90 -0
- package/dist/MultiSelectListBoxControl-BYHuC9jL.js +48 -0
- package/dist/MultimodeTwinlistControl-oIvgI_FP.js +486 -0
- package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-2fVBipAl.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_bd2eaa56_lang-pnMOUiIt.js} +1 -1
- package/dist/{MultiselectListBox-CMTJnAWr.js → MultiselectListBox-CfdPbcn1.js} +96 -72
- package/dist/NameFilter-BV68t_P5.js +37 -0
- package/dist/NumberControl-Dm01CJW9.js +33 -0
- package/dist/NumberControlBase-CN5eTKEm.js +58 -0
- package/dist/{NumberInput-BepS3tAK.js → NumberInput-DWTImcA_.js} +72 -54
- package/dist/OneOfDropdown-DuXXP0Qn.js +50 -0
- package/dist/RadioControl-X6HLs9F1.js +36 -0
- package/dist/RadioControlBase-BGUHTIUl.js +111 -0
- package/dist/{RichTextControl-CE6whfV5.js → RichTextControl-B1mJMs1e.js} +4126 -3777
- package/dist/SectionHeading-B6JkPyMh.js +31 -0
- package/dist/{SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js → SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js} +5456 -5284
- package/dist/SectionLayout-7pXn4OHo.js +61 -0
- package/dist/SettingsSubPanel-DToMRoLu.js +48 -0
- package/dist/SettingsSubPanelLayout-DnZnghFr.js +83 -0
- package/dist/SimpleButtonControl-DOSd92Kq.js +84 -0
- package/dist/SimpleTwinlistControl-RBfQTk47.js +31 -0
- package/dist/SingleSelectControl-C-GLQD-a.js +73 -0
- package/dist/SingleSelectListBoxControl-CDg_1QUT.js +260 -0
- package/dist/SortListControl-CWuxKIEb.js +445 -0
- package/dist/StyledListItem-NqAG7jSw.js +81 -0
- package/dist/TextAreaControl-Dt5ZGrae.js +122 -0
- package/dist/TextControl-w9vrCC1T.js +54 -0
- package/dist/TimeControl-DiNQSV4K.js +46 -0
- package/dist/TwinlistControlBase-CMFEecdr.js +47 -0
- package/dist/TwinlistLoadingInfo-Cy6HY-97.js +1080 -0
- package/dist/TypedStringFilter-FUF8sqOm.js +32 -0
- package/dist/ValueSwitch-Ozmr1YfK.js +162 -0
- package/dist/ValueSwitchControl-CdFlHo-2.js +33 -0
- package/dist/VerticalLayout-DY8gbasK.js +39 -0
- package/dist/VerticalLayoutBase-CpN-KONq.js +32 -0
- package/dist/ZonedDateTimeControl-Cg3dAfq5.js +79 -0
- package/dist/{_baseEach-DdH9cM67.js → _baseEach-CWap1NWh.js} +2 -2
- package/dist/{_baseIteratee-BGt-t7Os.js → _baseIteratee-D0MXvnuf.js} +3 -3
- package/dist/{_getTag-DAFySze4.js → _getTag-BvpAzjaz.js} +1 -1
- package/dist/{arrow-dropdown-BAFsD8Su.js → arrow-dropdown-eS-nVNCv.js} +7 -1
- package/dist/{arrow-next-BQVCxGb8.js → arrow-next-BmOStWql.js} +7 -1
- package/dist/{close-DGt8x-x_.js → close-0dYG2oDA.js} +7 -1
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +134 -108
- package/dist/{localTimeUtils-NIKgHnIr.js → localTimeUtils-CfchSrLG.js} +1 -1
- package/dist/{reload-DCdbNLa2.js → reload-57Xc2t-6.js} +7 -1
- package/dist/testing.js +2 -2
- package/dist/{toString-BhubvA3m.js → toString-C-X8cE7K.js} +1 -1
- package/dist/{useBuiltinValidations-Boxrm71q.js → useBuiltinValidations-D0WuEacN.js} +1 -1
- package/dist/{usePossibleValues-DXuWWBh_.js → usePossibleValues-DTVXBGRC.js} +1 -1
- package/package.json +4 -4
- package/dist/AnyOfTwinlist-Co_sJAsc.js +0 -22
- package/dist/CheckboxControl-C10_DX1N.js +0 -40
- package/dist/Checkboxes-DWOxHiUX.js +0 -103
- package/dist/CheckboxesControl-BMRFgmO_.js +0 -38
- package/dist/DateControl-DAGAM92B.js +0 -29
- package/dist/DateTimeControl-DJhIb_U4.js +0 -45
- package/dist/DateTimeFormatInput-BhLQzC-P.js +0 -373
- package/dist/DateTimeFormatPickerControl-V7pxRYaW.js +0 -40
- package/dist/DateTimeFormatPickerWithTypeControl-3fa75rGw.js +0 -76
- package/dist/DropdownControl-DEIA5VD4.js +0 -31
- package/dist/HorizontalLayout-DCfhMNq4.js +0 -25
- package/dist/IntegerControl-Om8J7hch.js +0 -20
- package/dist/IntervalControl-B7UbyyD-.js +0 -545
- package/dist/LoadingDropdown-CINkq_Sw.js +0 -40
- package/dist/ManualTwinlistControl-BLTfr2gT.js +0 -79
- package/dist/MultiSelectListBoxControl-j1TaFtQj.js +0 -31
- package/dist/MultimodeTwinlistControl-BsFqHRFM.js +0 -459
- package/dist/NameFilter-d5k6rDVY.js +0 -24
- package/dist/NumberControl-Kc3hvVef.js +0 -20
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-BOCR1qXG.js +0 -50
- package/dist/OneOfDropdown-CLwVXrbC.js +0 -33
- package/dist/RadioControl-DpziR8nA.js +0 -24
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-DVIeg5W1.js +0 -104
- package/dist/SectionHeading-D7znCZXu.js +0 -19
- package/dist/SectionLayout-BhXDOzqB.js +0 -46
- package/dist/SettingsSubPanel-x9uWGoiu.js +0 -5
- package/dist/SettingsSubPanelLayout-BPHBM5n5.js +0 -62
- package/dist/SimpleButtonControl-DfCSlgZS.js +0 -61
- package/dist/SimpleTwinlistControl-CBalniCf.js +0 -25
- package/dist/SingleSelectControl-DC4w0ata.js +0 -58
- package/dist/SingleSelectListBoxControl-CKj-p8jZ.js +0 -232
- package/dist/SortListControl-BIUyPjCi.js +0 -377
- package/dist/StyledListItem-D-HJWfo5.js +0 -72
- package/dist/TextAreaControl-D28TQZEY.js +0 -108
- package/dist/TextControl-DUDBWcHy.js +0 -4
- package/dist/TextControl.vue_vue_type_script_setup_true_lang-DpAd3yOu.js +0 -47
- package/dist/TimeControl-HRooO_z3.js +0 -36
- package/dist/TwinlistControlBase-Brfh5pqZ.js +0 -40
- package/dist/TwinlistLoadingInfo-C4Tta00d.js +0 -946
- package/dist/TypedStringFilter-CdvgPKhD.js +0 -26
- package/dist/ValueSwitch-W4y1YvNM.js +0 -131
- package/dist/ValueSwitchControl-BaXH8Cjx.js +0 -20
- package/dist/VerticalLayout-ChAmRKNj.js +0 -30
- package/dist/VerticalLayoutBase-DAk4vfH5.js +0 -20
- package/dist/ZonedDateTimeControl-Qb57KmMT.js +0 -69
- package/dist/svgWithTitle-CnTmPYAB.js +0 -18
|
@@ -1,377 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as C, openBlock as S, createElementVNode as V, defineComponent as R, computed as g, ref as N, watch as Z, Fragment as j, createVNode as c, withKeys as U, withModifiers as B, unref as p, withCtx as f, nextTick as ae, onMounted as se, normalizeClass as re, createTextVNode as T, renderSlot as D } from "vue";
|
|
2
|
-
import { v as M, _ as W, u as ie, L as ue, E as de } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
|
|
3
|
-
import { i as ce } from "./navigator-e30QQMkl.js";
|
|
4
|
-
import { M as me } from "./MultiselectListBox-CMTJnAWr.js";
|
|
5
|
-
import { g as pe } from "./_getTag-DAFySze4.js";
|
|
6
|
-
import { b as fe } from "./_baseEach-DdH9cM67.js";
|
|
7
|
-
import { b as ve } from "./_baseIteratee-BGt-t7Os.js";
|
|
8
|
-
import { i as we } from "./isArray-WzO_os3q.js";
|
|
9
|
-
import { c as be } from "./createMissingItem-B00Kg95q.js";
|
|
10
|
-
import { B as $ } from "./Button-Cqwayw73.js";
|
|
11
|
-
const O = {
|
|
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
|
-
}, he = {
|
|
21
|
-
Shift: "⇧",
|
|
22
|
-
Delete: "⌫",
|
|
23
|
-
CtrlOrCmd: "⌘",
|
|
24
|
-
Ctrl: "⌃",
|
|
25
|
-
Alt: "⌥",
|
|
26
|
-
Enter: "↩"
|
|
27
|
-
}, z = (t) => {
|
|
28
|
-
const e = (i) => (r) => i[r] ?? r, s = ((...i) => i.reduce((r, w) => (_) => w(r(_))))(
|
|
29
|
-
e(he),
|
|
30
|
-
e(O)
|
|
31
|
-
), a = e(O);
|
|
32
|
-
return ce() ? s(t) : a(t);
|
|
33
|
-
}, Y = () => " ", ge = (t, e = Y) => t.map(z).join(e()), Ve = { formatHotkeys: ge, formatHotkey: z, getDefaultSeparator: Y };
|
|
34
|
-
var P = function() {
|
|
35
|
-
try {
|
|
36
|
-
var t = pe(Object, "defineProperty");
|
|
37
|
-
return t({}, "", {}), t;
|
|
38
|
-
} catch {
|
|
39
|
-
}
|
|
40
|
-
}();
|
|
41
|
-
function _e(t, e, o, s) {
|
|
42
|
-
for (var a = t.length, i = o + -1; ++i < a; )
|
|
43
|
-
if (e(t[i], i, t))
|
|
44
|
-
return i;
|
|
45
|
-
return -1;
|
|
46
|
-
}
|
|
47
|
-
function ke(t) {
|
|
48
|
-
return t !== t;
|
|
49
|
-
}
|
|
50
|
-
function xe(t, e, o) {
|
|
51
|
-
for (var s = o - 1, a = t.length; ++s < a; )
|
|
52
|
-
if (t[s] === e)
|
|
53
|
-
return s;
|
|
54
|
-
return -1;
|
|
55
|
-
}
|
|
56
|
-
function Ae(t, e, o) {
|
|
57
|
-
return e === e ? xe(t, e, o) : _e(t, ke, o);
|
|
58
|
-
}
|
|
59
|
-
function Ce(t, e, o) {
|
|
60
|
-
e == "__proto__" && P ? P(t, e, {
|
|
61
|
-
configurable: !0,
|
|
62
|
-
enumerable: !0,
|
|
63
|
-
value: o,
|
|
64
|
-
writable: !0
|
|
65
|
-
}) : t[e] = o;
|
|
66
|
-
}
|
|
67
|
-
function Se(t, e, o, s) {
|
|
68
|
-
for (var a = -1, i = t == null ? 0 : t.length; ++a < i; ) {
|
|
69
|
-
var r = t[a];
|
|
70
|
-
e(s, r, o(r), t);
|
|
71
|
-
}
|
|
72
|
-
return s;
|
|
73
|
-
}
|
|
74
|
-
function Ie(t, e, o, s) {
|
|
75
|
-
return fe(t, function(a, i, r) {
|
|
76
|
-
e(s, a, o(a), r);
|
|
77
|
-
}), s;
|
|
78
|
-
}
|
|
79
|
-
function q(t, e) {
|
|
80
|
-
return function(o, s) {
|
|
81
|
-
var a = we(o) ? Se : Ie, i = e ? e() : {};
|
|
82
|
-
return a(o, t, ve(s), i);
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
function G(t, e, o) {
|
|
86
|
-
var s = t == null ? 0 : t.length;
|
|
87
|
-
if (!s)
|
|
88
|
-
return -1;
|
|
89
|
-
var a = 0;
|
|
90
|
-
return Ae(t, e, a);
|
|
91
|
-
}
|
|
92
|
-
var ye = q(function(t, e, o) {
|
|
93
|
-
Ce(t, o, e);
|
|
94
|
-
}), Le = q(function(t, e, o) {
|
|
95
|
-
t[o ? 0 : 1].push(e);
|
|
96
|
-
}, function() {
|
|
97
|
-
return [[], []];
|
|
98
|
-
});
|
|
99
|
-
const Ue = {
|
|
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 Be(t, e) {
|
|
107
|
-
return S(), C("svg", Ue, e[0] || (e[0] = [
|
|
108
|
-
V("path", { d: "m27 17.1-11 11-11-11m11 11V3.9" }, null, -1)
|
|
109
|
-
]));
|
|
110
|
-
}
|
|
111
|
-
const Me = { render: Be }, Ee = {
|
|
112
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
113
|
-
fill: "none",
|
|
114
|
-
stroke: "#000",
|
|
115
|
-
viewBox: "0 0 32 32"
|
|
116
|
-
};
|
|
117
|
-
function Te(t, e) {
|
|
118
|
-
return S(), C("svg", Ee, e[0] || (e[0] = [
|
|
119
|
-
V("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 H = { render: Te }, $e = {
|
|
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 Ne(t, e) {
|
|
130
|
-
return S(), C("svg", $e, e[0] || (e[0] = [
|
|
131
|
-
V("path", { d: "m5 14.9 11-11 11 11m-11-11v24.2" }, null, -1)
|
|
132
|
-
]));
|
|
133
|
-
}
|
|
134
|
-
const Fe = { render: Ne }, Ke = { class: "buttons" }, De = /* @__PURE__ */ R({
|
|
135
|
-
__name: "SortList",
|
|
136
|
-
props: {
|
|
137
|
-
modelValue: {},
|
|
138
|
-
id: {},
|
|
139
|
-
ariaLabel: {},
|
|
140
|
-
disabled: { type: Boolean },
|
|
141
|
-
possibleValues: {}
|
|
142
|
-
},
|
|
143
|
-
emits: ["update:modelValue"],
|
|
144
|
-
setup(t, { emit: e }) {
|
|
145
|
-
const o = t, s = e, a = g(() => ye(o.possibleValues, "id")), i = g(
|
|
146
|
-
() => o.modelValue.map(
|
|
147
|
-
(l) => a.value[l] ?? be(l)
|
|
148
|
-
)
|
|
149
|
-
), r = N([]);
|
|
150
|
-
Z(
|
|
151
|
-
() => o.modelValue,
|
|
152
|
-
(l) => {
|
|
153
|
-
const d = new Set(l);
|
|
154
|
-
r.value = r.value.filter((m) => d.has(m));
|
|
155
|
-
}
|
|
156
|
-
);
|
|
157
|
-
const w = g(() => r.value.length === 0), _ = (l, d, m) => [
|
|
158
|
-
l.slice(0, d),
|
|
159
|
-
l.slice(d, m),
|
|
160
|
-
l.slice(m)
|
|
161
|
-
], I = (l) => {
|
|
162
|
-
let d = 0;
|
|
163
|
-
return (m) => l(m, d++);
|
|
164
|
-
}, y = (l, d) => Le(
|
|
165
|
-
l,
|
|
166
|
-
I((m, h) => d(h))
|
|
167
|
-
), n = N(null), u = (l) => ({ to: d } = {}) => {
|
|
168
|
-
const m = r.value.map((A) => G(o.modelValue, A)).sort((A, le) => A - le), h = (l === "up" ? d : null) ?? Math.max(m[0] - 1, 0), E = (l === "down" ? d : null) ?? m[m.length - 1] + 1, [J, Q, X] = _(
|
|
169
|
-
o.modelValue,
|
|
170
|
-
h,
|
|
171
|
-
E + 1
|
|
172
|
-
), ee = new Set(m), [F, K] = y(
|
|
173
|
-
Q,
|
|
174
|
-
(A) => ee.has(A + h)
|
|
175
|
-
), [te, oe] = l === "up" ? [F, K] : [K, F], ne = J.concat(te, oe, X);
|
|
176
|
-
s("update:modelValue", ne), ae(() => {
|
|
177
|
-
l === "up" ? (n.value?.scrollUpIntoView(h - 1), n.value?.setCurrentKeyNavIndex(h)) : (n.value?.scrollDownIntoView(E + 1), n.value?.setCurrentKeyNavIndex(E));
|
|
178
|
-
});
|
|
179
|
-
}, v = u("up"), k = u("down"), L = () => v({ to: 0 }), x = () => k({ to: o.modelValue.length }), b = (l, d) => `${l} (${Ve.formatHotkeys(d)})`;
|
|
180
|
-
return (l, d) => (S(), C(j, null, [
|
|
181
|
-
c(me, {
|
|
182
|
-
id: l.id,
|
|
183
|
-
ref_key: "listBox",
|
|
184
|
-
ref: n,
|
|
185
|
-
modelValue: r.value,
|
|
186
|
-
"onUpdate:modelValue": d[0] || (d[0] = (m) => r.value = m),
|
|
187
|
-
"possible-values": i.value,
|
|
188
|
-
ariaLabel: `sortListBox_${l.ariaLabel}`,
|
|
189
|
-
"with-is-empty-state": !0,
|
|
190
|
-
"empty-state-label": "Empty",
|
|
191
|
-
size: 10,
|
|
192
|
-
onKeydown: [
|
|
193
|
-
U(B(p(k), ["alt"]), ["down"]),
|
|
194
|
-
U(B(p(v), ["alt"]), ["up"]),
|
|
195
|
-
U(B(L, ["alt"]), ["home"]),
|
|
196
|
-
U(B(x, ["alt"]), ["end"])
|
|
197
|
-
]
|
|
198
|
-
}, null, 8, ["id", "modelValue", "possible-values", "ariaLabel", "onKeydown"]),
|
|
199
|
-
V("div", Ke, [
|
|
200
|
-
c(M, {
|
|
201
|
-
disabled: w.value,
|
|
202
|
-
title: b("Move to top", ["Alt", "Home"]),
|
|
203
|
-
compact: "",
|
|
204
|
-
onClick: L
|
|
205
|
-
}, {
|
|
206
|
-
default: f(() => [
|
|
207
|
-
c(p(H), { class: "rotated" })
|
|
208
|
-
]),
|
|
209
|
-
_: 1
|
|
210
|
-
}, 8, ["disabled", "title"]),
|
|
211
|
-
c(M, {
|
|
212
|
-
disabled: w.value,
|
|
213
|
-
title: b("Move to bottom", ["Alt", "End"]),
|
|
214
|
-
compact: "",
|
|
215
|
-
onClick: x
|
|
216
|
-
}, {
|
|
217
|
-
default: f(() => [
|
|
218
|
-
c(p(H))
|
|
219
|
-
]),
|
|
220
|
-
_: 1
|
|
221
|
-
}, 8, ["disabled", "title"]),
|
|
222
|
-
c(M, {
|
|
223
|
-
disabled: w.value,
|
|
224
|
-
title: b("Move up", ["Alt", "ArrowUp"]),
|
|
225
|
-
compact: "",
|
|
226
|
-
onClick: p(v)
|
|
227
|
-
}, {
|
|
228
|
-
default: f(() => [
|
|
229
|
-
c(p(Fe))
|
|
230
|
-
]),
|
|
231
|
-
_: 1
|
|
232
|
-
}, 8, ["disabled", "title", "onClick"]),
|
|
233
|
-
c(M, {
|
|
234
|
-
disabled: w.value,
|
|
235
|
-
title: b("Move down", ["Alt", "ArrowDown"]),
|
|
236
|
-
compact: "",
|
|
237
|
-
onClick: p(k)
|
|
238
|
-
}, {
|
|
239
|
-
default: f(() => [
|
|
240
|
-
c(p(Me))
|
|
241
|
-
]),
|
|
242
|
-
_: 1
|
|
243
|
-
}, 8, ["disabled", "title", "onClick"])
|
|
244
|
-
])
|
|
245
|
-
], 64));
|
|
246
|
-
}
|
|
247
|
-
}), Oe = /* @__PURE__ */ W(De, [["__scopeId", "data-v-d6a73624"]]), Pe = {
|
|
248
|
-
class: /* @__PURE__ */ re(["flex", "space-between"])
|
|
249
|
-
}, He = { class: "flex" }, Re = "<any unknown new column>", Ze = /* @__PURE__ */ R({
|
|
250
|
-
__name: "SortListControl",
|
|
251
|
-
props: {
|
|
252
|
-
control: {},
|
|
253
|
-
handleChange: {},
|
|
254
|
-
changeValue: {},
|
|
255
|
-
disabled: { type: Boolean },
|
|
256
|
-
labelForId: {},
|
|
257
|
-
isValid: { type: Boolean },
|
|
258
|
-
messages: {},
|
|
259
|
-
onRegisterValidation: {},
|
|
260
|
-
anyUnknownValuesId: { default: Re },
|
|
261
|
-
anyUnknownValuesText: { default: "Any unknown column" }
|
|
262
|
-
},
|
|
263
|
-
setup(t) {
|
|
264
|
-
const e = t, o = g(() => e.control.data), s = g(
|
|
265
|
-
() => e.control.uischema
|
|
266
|
-
), a = ie(
|
|
267
|
-
s,
|
|
268
|
-
"possibleValues",
|
|
269
|
-
[]
|
|
270
|
-
), i = g(
|
|
271
|
-
() => a.value.concat({
|
|
272
|
-
id: e.anyUnknownValuesId,
|
|
273
|
-
text: e.anyUnknownValuesText,
|
|
274
|
-
special: !0
|
|
275
|
-
})
|
|
276
|
-
), r = (n) => {
|
|
277
|
-
if (o.value.length === 0) {
|
|
278
|
-
I();
|
|
279
|
-
return;
|
|
280
|
-
}
|
|
281
|
-
const u = G(o.value, e.anyUnknownValuesId);
|
|
282
|
-
if (u === -1)
|
|
283
|
-
throw new Error(
|
|
284
|
-
`SortList data have to contain the value "${e.anyUnknownValuesId}"`
|
|
285
|
-
);
|
|
286
|
-
const v = o.value.slice(0, u + 1), k = o.value.slice(u + 1), L = new Set(o.value), x = n.map(({ id: b }) => b).filter((b) => !L.has(b));
|
|
287
|
-
x.length > 0 && e.changeValue(v.concat(x, k));
|
|
288
|
-
};
|
|
289
|
-
se(() => {
|
|
290
|
-
r(a.value);
|
|
291
|
-
}), Z(() => a.value, r);
|
|
292
|
-
const w = () => {
|
|
293
|
-
e.changeValue(o.value.toSorted((n, u) => n.localeCompare(u)));
|
|
294
|
-
}, _ = () => {
|
|
295
|
-
e.changeValue(o.value.toSorted((n, u) => u.localeCompare(n)));
|
|
296
|
-
}, I = () => {
|
|
297
|
-
e.changeValue(i.value.map(({ id: n }) => n));
|
|
298
|
-
}, y = N(null);
|
|
299
|
-
return (n, u) => (S(), C(j, null, [
|
|
300
|
-
V("div", Pe, [
|
|
301
|
-
V("div", He, [
|
|
302
|
-
c(p($), {
|
|
303
|
-
"with-border": "",
|
|
304
|
-
compact: "",
|
|
305
|
-
onClick: w
|
|
306
|
-
}, {
|
|
307
|
-
default: f(() => u[0] || (u[0] = [
|
|
308
|
-
T("A - Z", -1)
|
|
309
|
-
])),
|
|
310
|
-
_: 1,
|
|
311
|
-
__: [0]
|
|
312
|
-
}),
|
|
313
|
-
c(p($), {
|
|
314
|
-
"with-border": "",
|
|
315
|
-
compact: "",
|
|
316
|
-
onClick: _
|
|
317
|
-
}, {
|
|
318
|
-
default: f(() => u[1] || (u[1] = [
|
|
319
|
-
T("Z - A", -1)
|
|
320
|
-
])),
|
|
321
|
-
_: 1,
|
|
322
|
-
__: [1]
|
|
323
|
-
})
|
|
324
|
-
]),
|
|
325
|
-
c(p($), {
|
|
326
|
-
"with-border": "",
|
|
327
|
-
compact: "",
|
|
328
|
-
onClick: I
|
|
329
|
-
}, {
|
|
330
|
-
default: f(() => u[2] || (u[2] = [
|
|
331
|
-
T("Reset all", -1)
|
|
332
|
-
])),
|
|
333
|
-
_: 1,
|
|
334
|
-
__: [2]
|
|
335
|
-
})
|
|
336
|
-
]),
|
|
337
|
-
c(ue, {
|
|
338
|
-
label: n.control.label,
|
|
339
|
-
onControllingFlowVariableSet: n.changeValue
|
|
340
|
-
}, {
|
|
341
|
-
default: f(({ labelForId: v }) => [
|
|
342
|
-
c(de, {
|
|
343
|
-
errors: n.messages.errors
|
|
344
|
-
}, {
|
|
345
|
-
default: f(() => [
|
|
346
|
-
c(p(Oe), {
|
|
347
|
-
id: v ?? void 0,
|
|
348
|
-
ref_key: "controlElement",
|
|
349
|
-
ref: y,
|
|
350
|
-
"possible-values": i.value,
|
|
351
|
-
"model-value": o.value,
|
|
352
|
-
ariaLabel: n.control.label,
|
|
353
|
-
disabled: n.disabled,
|
|
354
|
-
"onUpdate:modelValue": n.changeValue
|
|
355
|
-
}, null, 8, ["id", "possible-values", "model-value", "ariaLabel", "disabled", "onUpdate:modelValue"])
|
|
356
|
-
]),
|
|
357
|
-
_: 2
|
|
358
|
-
}, 1032, ["errors"])
|
|
359
|
-
]),
|
|
360
|
-
icon: f(() => [
|
|
361
|
-
D(n.$slots, "icon", {}, void 0, !0)
|
|
362
|
-
]),
|
|
363
|
-
buttons: f(({ hover: v }) => [
|
|
364
|
-
D(n.$slots, "buttons", {
|
|
365
|
-
hover: v,
|
|
366
|
-
controlHTMLElement: y.value
|
|
367
|
-
}, void 0, !0)
|
|
368
|
-
]),
|
|
369
|
-
_: 3
|
|
370
|
-
}, 8, ["label", "onControllingFlowVariableSet"])
|
|
371
|
-
], 64));
|
|
372
|
-
}
|
|
373
|
-
}), tt = /* @__PURE__ */ W(Ze, [["__scopeId", "data-v-27f80d69"]]);
|
|
374
|
-
export {
|
|
375
|
-
Re as DEFAULT_ANY_UNKNOWN_VALUES_ID,
|
|
376
|
-
tt as default
|
|
377
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as s, openBlock as n, mergeProps as d, withModifiers as o, toDisplayString as a } from "vue";
|
|
2
|
-
import { _ as m } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
|
|
3
|
-
const f = {
|
|
4
|
-
name: "StyledListItem",
|
|
5
|
-
props: {
|
|
6
|
-
text: {
|
|
7
|
-
type: String,
|
|
8
|
-
default: " "
|
|
9
|
-
},
|
|
10
|
-
selected: {
|
|
11
|
-
type: Boolean,
|
|
12
|
-
default: !1
|
|
13
|
-
},
|
|
14
|
-
disabled: {
|
|
15
|
-
type: Boolean,
|
|
16
|
-
default: !1
|
|
17
|
-
},
|
|
18
|
-
invalid: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
default: !1
|
|
21
|
-
},
|
|
22
|
-
/**
|
|
23
|
-
* Styles the item distinct to the other ones by adding a margin, adjusting the font-style and -height and
|
|
24
|
-
* rounding the corners
|
|
25
|
-
*/
|
|
26
|
-
special: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: !1
|
|
29
|
-
},
|
|
30
|
-
lineHeight: {
|
|
31
|
-
type: Number,
|
|
32
|
-
default: null
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
emits: [
|
|
36
|
-
"mousedown",
|
|
37
|
-
"mousemove",
|
|
38
|
-
"dblclick-exact",
|
|
39
|
-
"dblclick-shift",
|
|
40
|
-
"click",
|
|
41
|
-
"focus"
|
|
42
|
-
]
|
|
43
|
-
}, u = ["title", "aria-selected"];
|
|
44
|
-
function r(i, e, t, c, y, b) {
|
|
45
|
-
return n(), s("li", d(i.$attrs, {
|
|
46
|
-
role: "option",
|
|
47
|
-
title: t.text,
|
|
48
|
-
style: {
|
|
49
|
-
...t.lineHeight !== null ? { lineHeight: `${t.lineHeight}px` } : {}
|
|
50
|
-
},
|
|
51
|
-
class: {
|
|
52
|
-
selected: t.selected,
|
|
53
|
-
invalid: t.invalid,
|
|
54
|
-
empty: !t.text.trim(),
|
|
55
|
-
disabled: t.disabled,
|
|
56
|
-
special: t.special
|
|
57
|
-
},
|
|
58
|
-
"aria-selected": t.selected,
|
|
59
|
-
onClick: e[0] || (e[0] = (l) => i.$emit("click", l)),
|
|
60
|
-
onFocus: e[1] || (e[1] = (l) => i.$emit("focus", l)),
|
|
61
|
-
onDblclick: [
|
|
62
|
-
e[2] || (e[2] = o((l) => i.$emit("dblclick-shift"), ["shift"])),
|
|
63
|
-
e[3] || (e[3] = o((l) => i.$emit("dblclick-exact"), ["exact"]))
|
|
64
|
-
],
|
|
65
|
-
onMousedown: e[4] || (e[4] = (l) => i.$emit("mousedown", l)),
|
|
66
|
-
onMousemove: e[5] || (e[5] = (l) => i.$emit("mousemove", l))
|
|
67
|
-
}), a(t.text), 17, u);
|
|
68
|
-
}
|
|
69
|
-
const g = /* @__PURE__ */ m(f, [["render", r], ["__scopeId", "data-v-a04fa87b"]]);
|
|
70
|
-
export {
|
|
71
|
-
g as S
|
|
72
|
-
};
|
|
@@ -1,108 +0,0 @@
|
|
|
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-DR31vaIu.js";
|
|
3
|
-
const V = {
|
|
4
|
-
name: "TextArea",
|
|
5
|
-
props: {
|
|
6
|
-
modelValue: {
|
|
7
|
-
default: "",
|
|
8
|
-
type: [Number, String]
|
|
9
|
-
},
|
|
10
|
-
id: {
|
|
11
|
-
type: String,
|
|
12
|
-
default: null
|
|
13
|
-
},
|
|
14
|
-
name: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: null
|
|
17
|
-
},
|
|
18
|
-
/**
|
|
19
|
-
* Validity controlled by the parent component to be flexible.
|
|
20
|
-
*/
|
|
21
|
-
isValid: {
|
|
22
|
-
default: !0,
|
|
23
|
-
type: Boolean
|
|
24
|
-
},
|
|
25
|
-
cols: {
|
|
26
|
-
default: 12,
|
|
27
|
-
type: Number
|
|
28
|
-
},
|
|
29
|
-
rows: {
|
|
30
|
-
default: 4,
|
|
31
|
-
type: Number
|
|
32
|
-
},
|
|
33
|
-
placeholder: {
|
|
34
|
-
default: null,
|
|
35
|
-
type: String
|
|
36
|
-
},
|
|
37
|
-
inputClasses: {
|
|
38
|
-
default: "",
|
|
39
|
-
type: String
|
|
40
|
-
},
|
|
41
|
-
title: {
|
|
42
|
-
default: null,
|
|
43
|
-
type: String
|
|
44
|
-
},
|
|
45
|
-
disabled: {
|
|
46
|
-
default: !1,
|
|
47
|
-
type: Boolean
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
emits: ["update:modelValue"],
|
|
51
|
-
methods: {
|
|
52
|
-
getValue() {
|
|
53
|
-
return this.$refs.input.value;
|
|
54
|
-
},
|
|
55
|
-
onInput() {
|
|
56
|
-
this.$emit("update:modelValue", this.getValue());
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}, y = ["id", "name", "title", "value", "cols", "disabled", "rows", "placeholder"], _ = {
|
|
60
|
-
key: 0,
|
|
61
|
-
class: "invalid-marker"
|
|
62
|
-
};
|
|
63
|
-
function b(a, t, e, v, C, n) {
|
|
64
|
-
return l(), d("div", {
|
|
65
|
-
class: s({ disabled: e.disabled })
|
|
66
|
-
}, [
|
|
67
|
-
r("textarea", c(a.$attrs, {
|
|
68
|
-
id: e.id,
|
|
69
|
-
ref: "input",
|
|
70
|
-
name: e.name,
|
|
71
|
-
title: e.title,
|
|
72
|
-
value: e.modelValue,
|
|
73
|
-
class: e.inputClasses,
|
|
74
|
-
cols: e.cols,
|
|
75
|
-
disabled: e.disabled,
|
|
76
|
-
rows: e.rows,
|
|
77
|
-
placeholder: e.placeholder,
|
|
78
|
-
onInput: t[0] || (t[0] = (...i) => n.onInput && n.onInput(...i))
|
|
79
|
-
}), null, 16, y),
|
|
80
|
-
e.isValid ? u("", !0) : (l(), d("span", _))
|
|
81
|
-
], 2);
|
|
82
|
-
}
|
|
83
|
-
const h = /* @__PURE__ */ o(V, [["render", b], ["__scopeId", "data-v-022c4652"]]), g = /* @__PURE__ */ m({
|
|
84
|
-
__name: "TextAreaControl",
|
|
85
|
-
props: {
|
|
86
|
-
control: {},
|
|
87
|
-
handleChange: { type: Function },
|
|
88
|
-
changeValue: { type: Function },
|
|
89
|
-
disabled: { type: Boolean },
|
|
90
|
-
isValid: { type: Boolean },
|
|
91
|
-
onRegisterValidation: { type: Function },
|
|
92
|
-
labelForId: {}
|
|
93
|
-
},
|
|
94
|
-
setup(a) {
|
|
95
|
-
return (t, e) => (l(), p(f(h), {
|
|
96
|
-
id: t.labelForId,
|
|
97
|
-
class: "text-area-input",
|
|
98
|
-
"model-value": t.control.data,
|
|
99
|
-
disabled: t.disabled,
|
|
100
|
-
rows: t.control.uischema.options?.rows,
|
|
101
|
-
"is-valid": t.isValid,
|
|
102
|
-
"onUpdate:modelValue": t.changeValue
|
|
103
|
-
}, null, 8, ["id", "model-value", "disabled", "rows", "is-valid", "onUpdate:modelValue"]));
|
|
104
|
-
}
|
|
105
|
-
}), B = /* @__PURE__ */ o(g, [["__scopeId", "data-v-36a8d374"]]);
|
|
106
|
-
export {
|
|
107
|
-
B as default
|
|
108
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
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-Boxrm71q.js";
|
|
3
|
-
import { u as g } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
|
|
4
|
-
import { I as F } from "./InputField-OkFB9VHZ.js";
|
|
5
|
-
const B = /* @__PURE__ */ s({
|
|
6
|
-
__name: "TextControl",
|
|
7
|
-
props: {
|
|
8
|
-
control: {},
|
|
9
|
-
handleChange: { type: Function },
|
|
10
|
-
changeValue: { type: Function },
|
|
11
|
-
disabled: { type: Boolean },
|
|
12
|
-
isValid: { type: Boolean },
|
|
13
|
-
onRegisterValidation: { type: Function },
|
|
14
|
-
labelForId: {}
|
|
15
|
-
},
|
|
16
|
-
setup(t, { expose: i }) {
|
|
17
|
-
const l = t;
|
|
18
|
-
f(
|
|
19
|
-
{
|
|
20
|
-
pattern: ({ pattern: e }) => {
|
|
21
|
-
const o = new RegExp(`^(${e})$`);
|
|
22
|
-
return (p) => o.test(p ?? "");
|
|
23
|
-
},
|
|
24
|
-
minLength: ({ minLength: e }) => (o) => (o?.length ?? 0) >= e,
|
|
25
|
-
maxLength: ({ maxLength: e }) => (o) => (o?.length ?? 0) <= e
|
|
26
|
-
},
|
|
27
|
-
l
|
|
28
|
-
);
|
|
29
|
-
const d = u(() => l.control.uischema), r = g(d, "placeholder", ""), n = c(null);
|
|
30
|
-
return i({
|
|
31
|
-
focus: () => n.value?.focus()
|
|
32
|
-
}), (e, o) => (h(), m(a(F), {
|
|
33
|
-
id: e.labelForId,
|
|
34
|
-
ref_key: "inputField",
|
|
35
|
-
ref: n,
|
|
36
|
-
placeholder: a(r),
|
|
37
|
-
"model-value": e.control.data,
|
|
38
|
-
disabled: e.disabled,
|
|
39
|
-
"is-valid": e.isValid,
|
|
40
|
-
compact: "",
|
|
41
|
-
"onUpdate:modelValue": e.changeValue
|
|
42
|
-
}, null, 8, ["id", "placeholder", "model-value", "disabled", "is-valid", "onUpdate:modelValue"]));
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
export {
|
|
46
|
-
B as _
|
|
47
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, computed as e, createBlock as m, openBlock as p, unref as i } from "vue";
|
|
2
|
-
import { D as h } from "./DateTimeInput-Cs0KqlOS.js";
|
|
3
|
-
import { l as t } from "./localTimeUtils-NIKgHnIr.js";
|
|
4
|
-
const b = /* @__PURE__ */ c({
|
|
5
|
-
__name: "TimeControl",
|
|
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(a) {
|
|
16
|
-
const l = a, d = e(() => t.fromString(l.control.data)), s = e(() => l.control.uischema.options), r = e(
|
|
17
|
-
() => s.value?.showMilliseconds ?? !0
|
|
18
|
-
);
|
|
19
|
-
return (o, n) => (p(), m(i(h), {
|
|
20
|
-
id: o.labelForId,
|
|
21
|
-
"model-value": d.value,
|
|
22
|
-
required: !0,
|
|
23
|
-
compact: "",
|
|
24
|
-
disabled: o.disabled,
|
|
25
|
-
"show-date": !1,
|
|
26
|
-
"show-time": !0,
|
|
27
|
-
"show-seconds": s.value?.showSeconds,
|
|
28
|
-
"show-milliseconds": r.value,
|
|
29
|
-
"is-valid": o.isValid,
|
|
30
|
-
"onUpdate:modelValue": n[0] || (n[0] = (u) => o.changeValue(i(t).toString(u)))
|
|
31
|
-
}, null, 8, ["id", "model-value", "disabled", "show-seconds", "show-milliseconds", "is-valid"]));
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
export {
|
|
35
|
-
b as default
|
|
36
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
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-DXuWWBh_.js";
|
|
3
|
-
import { T as b, a as c } from "./TwinlistLoadingInfo-C4Tta00d.js";
|
|
4
|
-
import { _ as f } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
|
|
5
|
-
const h = /* @__PURE__ */ t({
|
|
6
|
-
__name: "TwinlistControlBase",
|
|
7
|
-
props: {
|
|
8
|
-
control: {},
|
|
9
|
-
handleChange: {},
|
|
10
|
-
changeValue: {},
|
|
11
|
-
disabled: { type: Boolean },
|
|
12
|
-
isValid: { type: Boolean },
|
|
13
|
-
onRegisterValidation: {},
|
|
14
|
-
labelForId: {},
|
|
15
|
-
twinlistSize: { default: 10 },
|
|
16
|
-
possibleValues: {}
|
|
17
|
-
},
|
|
18
|
-
setup(o) {
|
|
19
|
-
const a = o, s = d(b), { includedLabel: n, excludedLabel: i } = m(
|
|
20
|
-
p(a, "control")
|
|
21
|
-
);
|
|
22
|
-
return (e, w) => (u(), r(l(c), {
|
|
23
|
-
id: e.labelForId,
|
|
24
|
-
disabled: e.disabled,
|
|
25
|
-
"model-value": e.control.data,
|
|
26
|
-
"possible-values": e.possibleValues ?? [],
|
|
27
|
-
"empty-state-component": e.possibleValues === null ? l(s) : null,
|
|
28
|
-
"hide-options": e.possibleValues === null,
|
|
29
|
-
size: e.twinlistSize,
|
|
30
|
-
"left-label": l(i),
|
|
31
|
-
"right-label": l(n),
|
|
32
|
-
compact: "",
|
|
33
|
-
"show-resize-handle": "",
|
|
34
|
-
"onUpdate:modelValue": e.changeValue
|
|
35
|
-
}, null, 8, ["id", "disabled", "model-value", "possible-values", "empty-state-component", "hide-options", "size", "left-label", "right-label", "onUpdate:modelValue"]));
|
|
36
|
-
}
|
|
37
|
-
}), I = /* @__PURE__ */ f(h, [["__scopeId", "data-v-53bdd2f6"]]);
|
|
38
|
-
export {
|
|
39
|
-
I as T
|
|
40
|
-
};
|