@knime/jsonforms 1.21.0 → 1.21.2
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 +13 -0
- package/README.md +6 -0
- package/dist/AnyOfTwinlist-BaKgX8A7.js +22 -0
- package/dist/{Checkbox-uBRF2ZKG.js → Checkbox-BnKpZFTE.js} +1 -1
- package/dist/{CheckboxControl-B9Sd2LLd.js → CheckboxControl-5w7zlrdd.js} +1 -1
- package/dist/{CheckboxesControl-CTaoagZv.js → CheckboxesControl-0al-vEKC.js} +2 -2
- package/dist/{ColorControl-DxCjpcHn.js → ColorControl-Dzp0Qztx.js} +1 -1
- package/dist/{ColorPreviewControl-C7MmFIpq.js → ColorPreviewControl-DD9oq2kB.js} +5 -5
- package/dist/{ComboBoxControl-CV4SCOo7.js → ComboBoxControl-BOoPDajP.js} +14 -15
- package/dist/{DateControl-9d_SPymX.js → DateControl-BqYwfkTb.js} +1 -1
- package/dist/{DateTimeControl-nxVjz31-.js → DateTimeControl-CNkPjqie.js} +1 -1
- package/dist/{DateTimeFormatPickerControl-CMgXr7tA.js → DateTimeFormatPickerControl-BawKiO92.js} +1 -1
- package/dist/DateTimeFormatPickerWithTypeControl-BZhGNGGy.js +464 -0
- package/dist/{DropdownControl-BXbRH5G-.js → DropdownControl-C5dZUtMO.js} +2 -2
- package/dist/{ExecutorCoresControl-B04lAS0W.js → ExecutorCoresControl-D_f2Ii7P.js} +2 -2
- package/dist/{ExecutorMemoryControl-CraHGxVJ.js → ExecutorMemoryControl-Bi5ddlwR.js} +2 -2
- package/dist/FileUploadControl-Bpc7-Tjx.js +210 -0
- package/dist/{GridSelectionControl-Cqrr0vTk.js → GridSelectionControl-DS8kT_Nx.js} +17 -17
- package/dist/{HorizontalLayout-BRxOESz6.js → HorizontalLayout-CIcEcUaB.js} +1 -1
- package/dist/{IntegerControl-BG7i8ix-.js → IntegerControl-CNd2Zml6.js} +1 -1
- package/dist/{IntervalControl-YdZin9Wi.js → IntervalControl-BPiRezHq.js} +11 -11
- package/dist/{LinkControl-Ntwn3ko5.js → LinkControl-Bp2h1jSd.js} +3 -3
- package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-CiYSPKlk.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-BRmvlIKr.js} +5 -5
- package/dist/ManualTwinlistControl-Dtx1Qiz7.js +72 -0
- package/dist/{MultiselectListBox-DE0QC--O.js → MultiSelectListBoxControl-DXLGhCNi.js} +103 -78
- package/dist/MultimodeTwinlistControl-CKRsC015.js +4 -0
- package/dist/MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-CV2htSnA.js +157 -0
- package/dist/{NameFilter-dUTC31qA.js → NameFilter-BGJOxdjr.js} +4 -4
- package/dist/{NumberControl-Bi9ixtTO.js → NumberControl-B05C6ECd.js} +1 -1
- package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-BkEh0Ykh.js → NumberControlBase.vue_vue_type_script_setup_true_lang-B64ImWmo.js} +2 -2
- package/dist/{OneOfDropdown-BR4WCua4.js → OneOfDropdown-DFr8wkfK.js} +4 -4
- package/dist/{RadioButtonsWithDescriptionControl-C69ZDGN4.js → RadioButtonsWithDescriptionControl-FxnrFURa.js} +1 -1
- package/dist/{RadioControl-DnF-ishb.js → RadioControl-B3Wse8Ra.js} +2 -2
- package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-DvfaMgRR.js → RadioControlBase.vue_vue_type_script_setup_true_lang-B6fvhFpH.js} +2 -2
- package/dist/{ResourceControlBase-OgchIcbA.js → ResourceControlBase-CS-UW4Kt.js} +2 -2
- package/dist/{RichTextControl-sy7UyTn8.js → RichTextControl-BYuWpXlC.js} +1629 -1489
- package/dist/{SectionHeading-Dfcyl0Yz.js → SectionHeading-DH9g1jBv.js} +1 -1
- package/dist/{SectionLayout-CqIHiM2R.js → SectionLayout-DrSBiXd-.js} +3 -3
- package/dist/SettingsSubPanel-CZu70rLw.js +5 -0
- package/dist/{SettingsSubPanelLayout-DNEqHncD.js → SettingsSubPanelLayout-CR7zIFEo.js} +7 -7
- package/dist/{SimpleButtonControl-BKV86mQ0.js → SimpleButtonControl-B2fHLn6i.js} +8 -8
- package/dist/SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-CwE6CdU-.js +28169 -0
- package/dist/SimpleTwinlistControl-BeebhKhJ.js +22 -0
- package/dist/{SingleSelectControl-CMEjgiNY.js → SingleSelectControl-W6KYjtSP.js} +2 -2
- package/dist/{SingleSelectListBoxControl-zUEWoGd8.js → SingleSelectListBoxControl-Cp_vbfKc.js} +3 -3
- package/dist/SortListControl-b3lDXyoN.js +103 -0
- package/dist/{StyledListItem-Dmiasg50.js → StyledListItem-B97G9CDY.js} +1 -1
- package/dist/{TeamAndSpacesControl-2B_pTWqM.js → TeamAndSpacesControl-BaOQSDum.js} +1 -1
- package/dist/{TeamResourceControl-BFCZeFBI.js → TeamResourceControl-DdB1fE3C.js} +2 -2
- package/dist/{TextAreaControl-DWtOmv7O.js → TextAreaControl-CVRPcJt8.js} +1 -1
- package/dist/{TextControl-DwAc1Lgx.js → TextControl-BqJncTor.js} +1 -1
- package/dist/{TextControl.vue_vue_type_script_setup_true_lang-BvSRuAqp.js → TextControl.vue_vue_type_script_setup_true_lang-C-5QWuaO.js} +2 -2
- package/dist/{TimeControl-n4lsWwMk.js → TimeControl-DvCOb5wo.js} +1 -1
- package/dist/{TimePartInput-DTxykHkb.js → TimePartInput-DGfV6WeZ.js} +1 -1
- package/dist/{TimeframesControl-CPnnV-IY.js → TimeframesControl-7oW8Nb-d.js} +2 -2
- package/dist/{Tooltip-CQD85sdp.js → Tooltip-ZO6iIct2.js} +1 -1
- package/dist/TwinlistControlBase.vue_vue_type_script_setup_true_lang-Ck66siqL.js +42 -0
- package/dist/{TypedStringFilter-7TKnShae.js → TypedStringFilter-cQS5GH50.js} +8 -9
- package/dist/{ValueSwitch-BuQf-fpg.js → ValueSwitch-BXc_PE8P.js} +6 -6
- package/dist/{ValueSwitchControl-DUWpTxo1.js → ValueSwitchControl-CZStDbmJ.js} +1 -1
- package/dist/{VerticalLayout-BR0nc-T3.js → VerticalLayout-BsGmnjxN.js} +2 -2
- package/dist/{VerticalLayoutBase-BmUvz2xm.js → VerticalLayoutBase-CEM6gzmm.js} +1 -1
- package/dist/{ZonedDateTimeControl-4Zlm92zJ.js → ZonedDateTimeControl-BrhYGJwr.js} +2 -2
- package/dist/{_Uint8Array-CgOaNCk1.js → _Uint8Array-DDNG27um.js} +14 -14
- package/dist/{_baseIteratee-B7GNekaD.js → _baseIteratee-CpLcQZ3B.js} +9 -9
- package/dist/knime-jsonforms.css +1 -1
- package/dist/knime-jsonforms.js +113 -102
- package/dist/{localTimeUtils-GW01Jwt9.js → localTimeUtils-DA3ktTUE.js} +1671 -1579
- package/dist/{popper-D54JdmBM.js → popper-70nckCW_.js} +53 -53
- package/dist/src/renderers/defaultRenderers.d.ts +1 -930
- package/dist/src/renderers/sortListRenderer.d.ts +1 -930
- package/dist/src/uiComponents/SortListControl.vue.d.ts +2 -918
- package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +1 -1
- package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +2 -2
- package/dist/src/uiComponents/twinlist/MultimodeTwinlistControl.vue.d.ts +2 -8
- package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +1 -1
- package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +1 -1
- package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +2 -5
- package/dist/src/uiComponents/twinlist/TypedStringFilter.vue.d.ts +1 -1
- package/dist/src/uiComponents/twinlist/toKdsPossibleValues.d.ts +9 -0
- package/dist/testing.js +2 -2
- package/dist/toKdsPossibleValues-BklBg3gG.js +14 -0
- package/dist/{toString-EJiXsCqP.js → toString-N4qKgUAY.js} +1 -1
- package/dist/{useBuiltinValidations-C-jX-GU7.js → useBuiltinValidations-C3nXdk7R.js} +1 -1
- package/dist/{usePossibleValues-CdNvUspy.js → usePossibleValues-CdZtv_zD.js} +1 -1
- package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-De2_vatY.js → useUnknownValuesInTwinlist-BANpCttu.js} +6 -7
- package/package.json +5 -5
- package/dist/AnyOfTwinlist-BXOiwhPe.js +0 -22
- package/dist/DateTimeFormatPickerWithTypeControl-TpmjEZVL.js +0 -442
- package/dist/FileUploadControl-D3Awi7rK.js +0 -197
- package/dist/InputField-BPW3gcOb.js +0 -148
- package/dist/LoadingIcon-DWlZH7u-.js +0 -29
- package/dist/ManualTwinlistControl-Ag2U5qFU.js +0 -79
- package/dist/MultiSelectListBoxControl-yIxxGB8U.js +0 -31
- package/dist/MultimodeTwinlistControl-Cx8g1mbI.js +0 -598
- package/dist/SettingsSubPanel-B5IVsvuc.js +0 -5
- package/dist/SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js +0 -26292
- package/dist/SimpleTwinlistControl-5zMN3nHL.js +0 -25
- package/dist/SortListControl-Rh42JVSy.js +0 -389
- package/dist/TwinlistControlBase-DpODIPuw.js +0 -57
- package/dist/TwinlistLoadingInfo-BwuYp151.js +0 -956
- package/dist/_baseAssignValue-DAm2gl_N.js +0 -19
- package/dist/_baseEach-CpynTt09.js +0 -30
- package/dist/createMissingItem-B00Kg95q.js +0 -4
- package/dist/navigator-e30QQMkl.js +0 -4
- package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +0 -2
- package/dist/useSearch-hpyYQ_6y.js +0 -74
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, toRef as i, openBlock as l, createBlock as a, mergeProps as r, unref as p } from "vue";
|
|
2
|
-
import { u as c } from "./usePossibleValues-CdNvUspy.js";
|
|
3
|
-
import { T as u } from "./TwinlistControlBase-DpODIPuw.js";
|
|
4
|
-
const h = /* @__PURE__ */ s({
|
|
5
|
-
__name: "SimpleTwinlistControl",
|
|
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(e) {
|
|
16
|
-
const o = e, t = i(o, "control"), { possibleValues: n } = c(t);
|
|
17
|
-
return (m, d) => (l(), a(u, r(o, {
|
|
18
|
-
"possible-values": p(n),
|
|
19
|
-
"twinlist-size": o.control.uischema.options?.twinlistSize
|
|
20
|
-
}), null, 16, ["possible-values", "twinlist-size"]));
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
export {
|
|
24
|
-
h as default
|
|
25
|
-
};
|
|
@@ -1,389 +0,0 @@
|
|
|
1
|
-
import { openBlock as V, createElementBlock as x, createElementVNode as g, defineComponent as H, computed as b, ref as T, watch as Z, Fragment as $, createVNode as c, withKeys as B, withModifiers as E, unref as d, withCtx as h, renderSlot as N, normalizeProps as se, guardReactiveProps as ie, nextTick as re, onMounted as ue, createSlots as ce, normalizeClass as j, toDisplayString as z, createBlock as de, createCommentVNode as me } from "vue";
|
|
2
|
-
import { N as M, _ as W, u as pe, y as F, L as ve, E as fe, a3 as P } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js";
|
|
3
|
-
import { i as we } from "./navigator-e30QQMkl.js";
|
|
4
|
-
import { M as be } from "./MultiselectListBox-DE0QC--O.js";
|
|
5
|
-
import { b as he } from "./_baseAssignValue-DAm2gl_N.js";
|
|
6
|
-
import { b as ge } from "./_baseEach-CpynTt09.js";
|
|
7
|
-
import { b as Ve } from "./_baseIteratee-B7GNekaD.js";
|
|
8
|
-
import { i as ke } from "./isArray-WzO_os3q.js";
|
|
9
|
-
import { c as xe } from "./createMissingItem-B00Kg95q.js";
|
|
10
|
-
const O = {
|
|
11
|
-
ArrowUp: "↑",
|
|
12
|
-
ArrowDown: "↓",
|
|
13
|
-
ArrowLeft: "←",
|
|
14
|
-
ArrowRight: "→",
|
|
15
|
-
Enter: "↵",
|
|
16
|
-
" ": "Space",
|
|
17
|
-
// we use event.key and there space is an actual space not the code "Space"
|
|
18
|
-
CtrlOrCmd: "Ctrl"
|
|
19
|
-
}, ye = {
|
|
20
|
-
Shift: "⇧",
|
|
21
|
-
Delete: "⌫",
|
|
22
|
-
CtrlOrCmd: "⌘",
|
|
23
|
-
Ctrl: "⌃",
|
|
24
|
-
Alt: "⌥",
|
|
25
|
-
Enter: "↩"
|
|
26
|
-
}, Y = (e) => {
|
|
27
|
-
const t = (u) => (i) => u[i] ?? i, l = ((...u) => u.reduce((i, p) => (y) => p(i(y))))(
|
|
28
|
-
t(ye),
|
|
29
|
-
t(O)
|
|
30
|
-
), a = t(O);
|
|
31
|
-
return we() ? l(e) : a(e);
|
|
32
|
-
}, q = () => " ", Se = (e, t = q) => e.map(Y).join(t()), Ae = { formatHotkeys: Se, formatHotkey: Y, getDefaultSeparator: q };
|
|
33
|
-
function _e(e, t, n, l) {
|
|
34
|
-
for (var a = e.length, u = n + -1; ++u < a; )
|
|
35
|
-
if (t(e[u], u, e))
|
|
36
|
-
return u;
|
|
37
|
-
return -1;
|
|
38
|
-
}
|
|
39
|
-
function Ce(e) {
|
|
40
|
-
return e !== e;
|
|
41
|
-
}
|
|
42
|
-
function Le(e, t, n) {
|
|
43
|
-
for (var l = n - 1, a = e.length; ++l < a; )
|
|
44
|
-
if (e[l] === t)
|
|
45
|
-
return l;
|
|
46
|
-
return -1;
|
|
47
|
-
}
|
|
48
|
-
function Be(e, t, n) {
|
|
49
|
-
return t === t ? Le(e, t, n) : _e(e, Ce, n);
|
|
50
|
-
}
|
|
51
|
-
function Ee(e, t, n, l) {
|
|
52
|
-
for (var a = -1, u = e == null ? 0 : e.length; ++a < u; ) {
|
|
53
|
-
var i = e[a];
|
|
54
|
-
t(l, i, n(i), e);
|
|
55
|
-
}
|
|
56
|
-
return l;
|
|
57
|
-
}
|
|
58
|
-
function Me(e, t, n, l) {
|
|
59
|
-
return ge(e, function(a, u, i) {
|
|
60
|
-
t(l, a, n(a), i);
|
|
61
|
-
}), l;
|
|
62
|
-
}
|
|
63
|
-
function G(e, t) {
|
|
64
|
-
return function(n, l) {
|
|
65
|
-
var a = ke(n) ? Ee : Me, u = t ? t() : {};
|
|
66
|
-
return a(n, e, Ve(l), u);
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
function J(e, t, n) {
|
|
70
|
-
var l = e == null ? 0 : e.length;
|
|
71
|
-
if (!l)
|
|
72
|
-
return -1;
|
|
73
|
-
var a = 0;
|
|
74
|
-
return Be(e, t, a);
|
|
75
|
-
}
|
|
76
|
-
var $e = G(function(e, t, n) {
|
|
77
|
-
he(e, n, t);
|
|
78
|
-
}), Ue = G(function(e, t, n) {
|
|
79
|
-
e[n ? 0 : 1].push(t);
|
|
80
|
-
}, function() {
|
|
81
|
-
return [[], []];
|
|
82
|
-
});
|
|
83
|
-
const Ie = {
|
|
84
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
85
|
-
fill: "none",
|
|
86
|
-
stroke: "#000",
|
|
87
|
-
"stroke-linejoin": "round",
|
|
88
|
-
viewBox: "0 0 32 32"
|
|
89
|
-
};
|
|
90
|
-
function Fe(e, t) {
|
|
91
|
-
return V(), x("svg", Ie, [...t[0] || (t[0] = [
|
|
92
|
-
g("path", { d: "m27 17.1-11 11-11-11m11 11V3.9" }, null, -1)
|
|
93
|
-
])]);
|
|
94
|
-
}
|
|
95
|
-
const Te = { render: Fe }, Ne = {
|
|
96
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
97
|
-
fill: "none",
|
|
98
|
-
stroke: "#000",
|
|
99
|
-
viewBox: "0 0 32 32"
|
|
100
|
-
};
|
|
101
|
-
function De(e, t) {
|
|
102
|
-
return V(), x("svg", Ne, [...t[0] || (t[0] = [
|
|
103
|
-
g("path", { d: "M23.4 13.4 16 20.8l-7.4-7.4m7.4 7.4V4.5m12.5 23h-25" }, null, -1)
|
|
104
|
-
])]);
|
|
105
|
-
}
|
|
106
|
-
const R = { render: De }, Ke = {
|
|
107
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
108
|
-
fill: "none",
|
|
109
|
-
stroke: "#000",
|
|
110
|
-
"stroke-linejoin": "round",
|
|
111
|
-
viewBox: "0 0 32 32"
|
|
112
|
-
};
|
|
113
|
-
function ze(e, t) {
|
|
114
|
-
return V(), x("svg", Ke, [...t[0] || (t[0] = [
|
|
115
|
-
g("path", { d: "m5 14.9 11-11 11 11m-11-11v24.2" }, null, -1)
|
|
116
|
-
])]);
|
|
117
|
-
}
|
|
118
|
-
const Pe = { render: ze }, Oe = { class: "buttons" }, Re = /* @__PURE__ */ H({
|
|
119
|
-
__name: "SortList",
|
|
120
|
-
props: {
|
|
121
|
-
modelValue: {},
|
|
122
|
-
id: {},
|
|
123
|
-
ariaLabel: {},
|
|
124
|
-
disabled: { type: Boolean },
|
|
125
|
-
possibleValues: {}
|
|
126
|
-
},
|
|
127
|
-
emits: ["update:modelValue"],
|
|
128
|
-
setup(e, { emit: t }) {
|
|
129
|
-
const n = e, l = t, a = b(() => $e(n.possibleValues, "id")), u = b(
|
|
130
|
-
() => n.modelValue.map(
|
|
131
|
-
(o) => a.value[o] ?? xe(o)
|
|
132
|
-
)
|
|
133
|
-
), i = T([]);
|
|
134
|
-
Z(
|
|
135
|
-
() => n.modelValue,
|
|
136
|
-
(o) => {
|
|
137
|
-
const r = new Set(o);
|
|
138
|
-
i.value = i.value.filter((s) => r.has(s));
|
|
139
|
-
}
|
|
140
|
-
);
|
|
141
|
-
const p = b(() => i.value.length === 0), y = (o, r, s) => [
|
|
142
|
-
o.slice(0, r),
|
|
143
|
-
o.slice(r, s),
|
|
144
|
-
o.slice(s)
|
|
145
|
-
], C = (o) => {
|
|
146
|
-
let r = 0;
|
|
147
|
-
return (s) => o(s, r++);
|
|
148
|
-
}, U = (o, r) => Ue(
|
|
149
|
-
o,
|
|
150
|
-
C((s, w) => r(w))
|
|
151
|
-
), k = T(null), L = (o) => ({ to: r } = {}) => {
|
|
152
|
-
const s = i.value.map((_) => J(n.modelValue, _)).sort((_, ae) => _ - ae), w = (o === "up" ? r : null) ?? Math.max(s[0] - 1, 0), I = (o === "down" ? r : null) ?? s[s.length - 1] + 1, [Q, X, ee] = y(
|
|
153
|
-
n.modelValue,
|
|
154
|
-
w,
|
|
155
|
-
I + 1
|
|
156
|
-
), te = new Set(s), [D, K] = U(
|
|
157
|
-
X,
|
|
158
|
-
(_) => te.has(_ + w)
|
|
159
|
-
), [ne, oe] = o === "up" ? [D, K] : [K, D], le = Q.concat(ne, oe, ee);
|
|
160
|
-
l("update:modelValue", le), re(() => {
|
|
161
|
-
o === "up" ? (k.value?.scrollUpIntoView(w - 1), k.value?.setCurrentKeyNavIndex(w)) : (k.value?.scrollDownIntoView(I + 1), k.value?.setCurrentKeyNavIndex(I));
|
|
162
|
-
});
|
|
163
|
-
}, S = L("up"), A = L("down"), m = () => S({ to: 0 }), v = () => A({ to: n.modelValue.length }), f = (o, r) => `${o} (${Ae.formatHotkeys(r)})`;
|
|
164
|
-
return (o, r) => (V(), x($, null, [
|
|
165
|
-
c(be, {
|
|
166
|
-
id: e.id,
|
|
167
|
-
ref_key: "listBox",
|
|
168
|
-
ref: k,
|
|
169
|
-
modelValue: i.value,
|
|
170
|
-
"onUpdate:modelValue": r[0] || (r[0] = (s) => i.value = s),
|
|
171
|
-
"possible-values": u.value,
|
|
172
|
-
ariaLabel: `sortListBox_${e.ariaLabel}`,
|
|
173
|
-
"with-is-empty-state": !0,
|
|
174
|
-
"empty-state-label": "Empty",
|
|
175
|
-
size: 10,
|
|
176
|
-
onKeydown: [
|
|
177
|
-
B(E(d(A), ["alt"]), ["down"]),
|
|
178
|
-
B(E(d(S), ["alt"]), ["up"]),
|
|
179
|
-
B(E(m, ["alt"]), ["home"]),
|
|
180
|
-
B(E(v, ["alt"]), ["end"])
|
|
181
|
-
]
|
|
182
|
-
}, {
|
|
183
|
-
option: h((s) => [
|
|
184
|
-
N(o.$slots, "option", se(ie(s)), void 0, !0)
|
|
185
|
-
]),
|
|
186
|
-
_: 3
|
|
187
|
-
}, 8, ["id", "modelValue", "possible-values", "ariaLabel", "onKeydown"]),
|
|
188
|
-
g("div", Oe, [
|
|
189
|
-
c(M, {
|
|
190
|
-
disabled: p.value,
|
|
191
|
-
title: f("Move to top", ["Alt", "Home"]),
|
|
192
|
-
compact: "",
|
|
193
|
-
onClick: m
|
|
194
|
-
}, {
|
|
195
|
-
default: h(() => [
|
|
196
|
-
c(d(R), { class: "rotated" })
|
|
197
|
-
]),
|
|
198
|
-
_: 1
|
|
199
|
-
}, 8, ["disabled", "title"]),
|
|
200
|
-
c(M, {
|
|
201
|
-
disabled: p.value,
|
|
202
|
-
title: f("Move to bottom", ["Alt", "End"]),
|
|
203
|
-
compact: "",
|
|
204
|
-
onClick: v
|
|
205
|
-
}, {
|
|
206
|
-
default: h(() => [
|
|
207
|
-
c(d(R))
|
|
208
|
-
]),
|
|
209
|
-
_: 1
|
|
210
|
-
}, 8, ["disabled", "title"]),
|
|
211
|
-
c(M, {
|
|
212
|
-
disabled: p.value,
|
|
213
|
-
title: f("Move up", ["Alt", "ArrowUp"]),
|
|
214
|
-
compact: "",
|
|
215
|
-
onClick: d(S)
|
|
216
|
-
}, {
|
|
217
|
-
default: h(() => [
|
|
218
|
-
c(d(Pe))
|
|
219
|
-
]),
|
|
220
|
-
_: 1
|
|
221
|
-
}, 8, ["disabled", "title", "onClick"]),
|
|
222
|
-
c(M, {
|
|
223
|
-
disabled: p.value,
|
|
224
|
-
title: f("Move down", ["Alt", "ArrowDown"]),
|
|
225
|
-
compact: "",
|
|
226
|
-
onClick: d(A)
|
|
227
|
-
}, {
|
|
228
|
-
default: h(() => [
|
|
229
|
-
c(d(Te))
|
|
230
|
-
]),
|
|
231
|
-
_: 1
|
|
232
|
-
}, 8, ["disabled", "title", "onClick"])
|
|
233
|
-
])
|
|
234
|
-
], 64));
|
|
235
|
-
}
|
|
236
|
-
}), He = /* @__PURE__ */ W(Re, [["__scopeId", "data-v-a05c0d25"]]), Ze = {
|
|
237
|
-
class: /* @__PURE__ */ j(["flex", "space-between"])
|
|
238
|
-
}, je = { class: "flex" }, We = "<any unknown new column>", Ye = /* @__PURE__ */ H({
|
|
239
|
-
__name: "SortListControl",
|
|
240
|
-
props: {
|
|
241
|
-
control: {},
|
|
242
|
-
handleChange: { type: Function },
|
|
243
|
-
changeValue: { type: Function },
|
|
244
|
-
disabled: { type: Boolean },
|
|
245
|
-
labelForId: {},
|
|
246
|
-
isValid: { type: Boolean },
|
|
247
|
-
messages: {},
|
|
248
|
-
onRegisterValidation: { type: Function }
|
|
249
|
-
},
|
|
250
|
-
setup(e) {
|
|
251
|
-
const t = e, n = b(() => t.control.data), l = b(
|
|
252
|
-
() => t.control.uischema
|
|
253
|
-
), a = b(
|
|
254
|
-
() => l.value.options?.unknownElementId ?? We
|
|
255
|
-
), u = b(
|
|
256
|
-
() => l.value.options?.unknownElementLabel ?? "Any unknown column"
|
|
257
|
-
), i = b(
|
|
258
|
-
() => l.value.options?.resetSortButtonLabel ?? "Reset all"
|
|
259
|
-
), p = pe(
|
|
260
|
-
l,
|
|
261
|
-
"possibleValues",
|
|
262
|
-
[]
|
|
263
|
-
), y = b(
|
|
264
|
-
() => p.value.concat({
|
|
265
|
-
id: a.value,
|
|
266
|
-
text: u.value,
|
|
267
|
-
special: !0
|
|
268
|
-
})
|
|
269
|
-
), C = (m) => {
|
|
270
|
-
if (n.value.length === 0) {
|
|
271
|
-
S();
|
|
272
|
-
return;
|
|
273
|
-
}
|
|
274
|
-
const v = J(n.value, a.value);
|
|
275
|
-
if (v === -1)
|
|
276
|
-
throw new Error(
|
|
277
|
-
`SortList data have to contain the value "${a.value}"`
|
|
278
|
-
);
|
|
279
|
-
const f = n.value.slice(0, v + 1), o = n.value.slice(v + 1), r = new Set(n.value), s = m.map(({ id: w }) => w).filter((w) => !r.has(w));
|
|
280
|
-
s.length > 0 && t.changeValue(f.concat(s, o));
|
|
281
|
-
};
|
|
282
|
-
ue(() => {
|
|
283
|
-
C(p.value);
|
|
284
|
-
});
|
|
285
|
-
const U = b(
|
|
286
|
-
() => !!p.value?.[0]?.hasOwnProperty("type")
|
|
287
|
-
);
|
|
288
|
-
Z(() => p.value, C);
|
|
289
|
-
const k = () => {
|
|
290
|
-
t.changeValue(n.value.toSorted((m, v) => m.localeCompare(v)));
|
|
291
|
-
}, L = () => {
|
|
292
|
-
t.changeValue(n.value.toSorted((m, v) => v.localeCompare(m)));
|
|
293
|
-
}, S = () => {
|
|
294
|
-
t.changeValue(y.value.map(({ id: m }) => m));
|
|
295
|
-
}, A = T(null);
|
|
296
|
-
return (m, v) => (V(), x($, null, [
|
|
297
|
-
g("div", Ze, [
|
|
298
|
-
g("div", je, [
|
|
299
|
-
c(d(F), {
|
|
300
|
-
variant: "outlined",
|
|
301
|
-
size: "small",
|
|
302
|
-
label: "A - Z",
|
|
303
|
-
onClick: k
|
|
304
|
-
}),
|
|
305
|
-
c(d(F), {
|
|
306
|
-
variant: "outlined",
|
|
307
|
-
size: "small",
|
|
308
|
-
label: "Z - A",
|
|
309
|
-
onClick: L
|
|
310
|
-
})
|
|
311
|
-
]),
|
|
312
|
-
c(d(F), {
|
|
313
|
-
variant: "outlined",
|
|
314
|
-
size: "small",
|
|
315
|
-
label: i.value,
|
|
316
|
-
onClick: S
|
|
317
|
-
}, null, 8, ["label"])
|
|
318
|
-
]),
|
|
319
|
-
c(ve, {
|
|
320
|
-
label: e.control.label,
|
|
321
|
-
onControllingFlowVariableSet: e.changeValue
|
|
322
|
-
}, {
|
|
323
|
-
default: h(({ labelForId: f }) => [
|
|
324
|
-
c(fe, {
|
|
325
|
-
errors: e.messages.errors
|
|
326
|
-
}, {
|
|
327
|
-
default: h(() => [
|
|
328
|
-
c(d(He), {
|
|
329
|
-
id: f ?? void 0,
|
|
330
|
-
ref_key: "controlElement",
|
|
331
|
-
ref: A,
|
|
332
|
-
"possible-values": y.value,
|
|
333
|
-
"model-value": n.value,
|
|
334
|
-
ariaLabel: e.control.label,
|
|
335
|
-
disabled: e.disabled,
|
|
336
|
-
"onUpdate:modelValue": e.changeValue
|
|
337
|
-
}, ce({ _: 2 }, [
|
|
338
|
-
U.value ? {
|
|
339
|
-
name: "option",
|
|
340
|
-
fn: h(({ slotItem: o }) => [
|
|
341
|
-
g("div", {
|
|
342
|
-
class: j([
|
|
343
|
-
"data-type-entry",
|
|
344
|
-
{
|
|
345
|
-
invalid: o.invalid,
|
|
346
|
-
"with-type": o.invalid || o.type?.id,
|
|
347
|
-
special: o.special
|
|
348
|
-
}
|
|
349
|
-
])
|
|
350
|
-
}, [
|
|
351
|
-
o.invalid ? (V(), x($, { key: 0 }, [
|
|
352
|
-
c(d(P), { size: "small" }),
|
|
353
|
-
g("span", null, z(o.text), 1)
|
|
354
|
-
], 64)) : (V(), x($, { key: 1 }, [
|
|
355
|
-
o.type?.id ? (V(), de(d(P), {
|
|
356
|
-
key: 0,
|
|
357
|
-
"icon-name": o.type.id,
|
|
358
|
-
"icon-title": o.type.text,
|
|
359
|
-
size: "small"
|
|
360
|
-
}, null, 8, ["icon-name", "icon-title"])) : me("", !0),
|
|
361
|
-
g("span", null, z(o.text), 1)
|
|
362
|
-
], 64))
|
|
363
|
-
], 2)
|
|
364
|
-
]),
|
|
365
|
-
key: "0"
|
|
366
|
-
} : void 0
|
|
367
|
-
]), 1032, ["id", "possible-values", "model-value", "ariaLabel", "disabled", "onUpdate:modelValue"])
|
|
368
|
-
]),
|
|
369
|
-
_: 2
|
|
370
|
-
}, 1032, ["errors"])
|
|
371
|
-
]),
|
|
372
|
-
icon: h(() => [
|
|
373
|
-
N(m.$slots, "icon", {}, void 0, !0)
|
|
374
|
-
]),
|
|
375
|
-
buttons: h(({ hover: f }) => [
|
|
376
|
-
N(m.$slots, "buttons", {
|
|
377
|
-
hover: f,
|
|
378
|
-
controlHTMLElement: A.value
|
|
379
|
-
}, void 0, !0)
|
|
380
|
-
]),
|
|
381
|
-
_: 3
|
|
382
|
-
}, 8, ["label", "onControllingFlowVariableSet"])
|
|
383
|
-
], 64));
|
|
384
|
-
}
|
|
385
|
-
}), lt = /* @__PURE__ */ W(Ye, [["__scopeId", "data-v-5d998b47"]]);
|
|
386
|
-
export {
|
|
387
|
-
We as DEFAULT_ANY_UNKNOWN_VALUES_ID,
|
|
388
|
-
lt as default
|
|
389
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, markRaw as r, toRef as m, computed as p, openBlock as b, createBlock as f, unref as l, createSlots as h, withCtx as y, createElementVNode as i, normalizeClass as V, createVNode as w, toDisplayString as v } from "vue";
|
|
2
|
-
import { a3 as g, _ as T } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-D4snRy74.js";
|
|
3
|
-
import { a as x } from "./usePossibleValues-CdNvUspy.js";
|
|
4
|
-
import { T as z, a as B } from "./TwinlistLoadingInfo-BwuYp151.js";
|
|
5
|
-
const C = /* @__PURE__ */ u({
|
|
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(e) {
|
|
19
|
-
const t = e, n = r(z), { includedLabel: s, excludedLabel: d } = x(
|
|
20
|
-
m(t, "control")
|
|
21
|
-
), c = p(() => t.possibleValues?.some((o) => o.type));
|
|
22
|
-
return (o, L) => (b(), f(l(B), {
|
|
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(n) : null,
|
|
28
|
-
"hide-options": e.possibleValues === null,
|
|
29
|
-
size: e.twinlistSize,
|
|
30
|
-
"left-label": l(d),
|
|
31
|
-
"right-label": l(s),
|
|
32
|
-
compact: "",
|
|
33
|
-
"show-resize-handle": "",
|
|
34
|
-
"onUpdate:modelValue": e.changeValue
|
|
35
|
-
}, h({ _: 2 }, [
|
|
36
|
-
c.value ? {
|
|
37
|
-
name: "option",
|
|
38
|
-
fn: y(({ slotItem: a }) => [
|
|
39
|
-
i("div", {
|
|
40
|
-
class: V(["data-type-entry", { invalid: a.invalid }])
|
|
41
|
-
}, [
|
|
42
|
-
w(l(g), {
|
|
43
|
-
"icon-name": a?.type?.id,
|
|
44
|
-
"icon-title": a?.type?.text,
|
|
45
|
-
size: "small"
|
|
46
|
-
}, null, 8, ["icon-name", "icon-title"]),
|
|
47
|
-
i("span", null, v(a.text), 1)
|
|
48
|
-
], 2)
|
|
49
|
-
]),
|
|
50
|
-
key: "0"
|
|
51
|
-
} : void 0
|
|
52
|
-
]), 1032, ["id", "disabled", "model-value", "possible-values", "empty-state-component", "hide-options", "size", "left-label", "right-label", "onUpdate:modelValue"]));
|
|
53
|
-
}
|
|
54
|
-
}), D = /* @__PURE__ */ T(C, [["__scopeId", "data-v-2a09e153"]]);
|
|
55
|
-
export {
|
|
56
|
-
D as T
|
|
57
|
-
};
|