@knime/jsonforms 1.21.1 → 1.21.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.
Files changed (94) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +6 -0
  3. package/dist/{AnyOfTwinlist-UXM-U6hT.js → AnyOfTwinlist-By12blUM.js} +1 -1
  4. package/dist/{CheckboxControl-QBXVq5Tw.js → CheckboxControl--qMC4yqR.js} +1 -1
  5. package/dist/{CheckboxesControl-2pd974_e.js → CheckboxesControl-BsOG-QR8.js} +2 -2
  6. package/dist/{ColorControl-CDxRfPzc.js → ColorControl-BX93RNbV.js} +1 -1
  7. package/dist/{ColorPreviewControl-Cg99cain.js → ColorPreviewControl-CFVeFXBp.js} +5 -5
  8. package/dist/ComboBoxControl-M5HOJcy2.js +37 -0
  9. package/dist/{DateControl-DqNL8rlX.js → DateControl-PYVPxPvC.js} +1 -1
  10. package/dist/{DateTimeControl-apf8S1y2.js → DateTimeControl-_8d8iizh.js} +1 -1
  11. package/dist/{DateTimeFormatPickerControl-_4b5Jk3w.js → DateTimeFormatPickerControl-xRNNTLIl.js} +1 -1
  12. package/dist/{DateTimeFormatPickerWithTypeControl-B1jOpszt.js → DateTimeFormatPickerWithTypeControl-CZZBe3PC.js} +11 -11
  13. package/dist/{DropdownControl-CesCAa-A.js → DropdownControl-sGxFWX33.js} +2 -2
  14. package/dist/{ExecutorCoresControl-ILXk2Hk6.js → ExecutorCoresControl-6DB4hS8_.js} +2 -2
  15. package/dist/{ExecutorMemoryControl-De46Fxsm.js → ExecutorMemoryControl-xKHl7IXW.js} +2 -2
  16. package/dist/FileUploadControl-Bjgh9vSl.js +210 -0
  17. package/dist/{GridSelectionControl-CGspDoCC.js → GridSelectionControl-DslOwaNV.js} +17 -17
  18. package/dist/{HorizontalLayout-DPuI5hYY.js → HorizontalLayout-Dl9cC50s.js} +1 -1
  19. package/dist/{IntegerControl-BwGzlwkz.js → IntegerControl-DSzPJs4Z.js} +1 -1
  20. package/dist/{IntervalControl-BHeKHuWm.js → IntervalControl-DoWDLPMP.js} +12 -12
  21. package/dist/{LinkControl-D_0AKRJz.js → LinkControl-BuYI03b_.js} +3 -3
  22. package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-BHersnKa.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-DZ90-rk8.js} +5 -5
  23. package/dist/{ManualTwinlistControl-BMSgSIBJ.js → ManualTwinlistControl-mN3zJTMK.js} +3 -3
  24. package/dist/{MultiselectListBox-DpL-Z03B.js → MultiSelectListBoxControl-CnSublPM.js} +103 -78
  25. package/dist/{MultimodeTwinlistControl-DOJD7vUU.js → MultimodeTwinlistControl-CyZQ54SO.js} +1 -1
  26. package/dist/{MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-BzIvunuA.js → MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-C9JUTbz1.js} +3 -3
  27. package/dist/{NameFilter-B1LEenoh.js → NameFilter-C1u8qsYQ.js} +1 -1
  28. package/dist/{NumberControl-DVzhX3S9.js → NumberControl-qiTgXs6x.js} +1 -1
  29. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-Bb4FK9RQ.js → NumberControlBase.vue_vue_type_script_setup_true_lang-Bs-H6e08.js} +2 -2
  30. package/dist/{OneOfDropdown-BFOyIhv6.js → OneOfDropdown-Dn6QM81-.js} +4 -4
  31. package/dist/{RadioButtonsWithDescriptionControl-oD8Zab-J.js → RadioButtonsWithDescriptionControl-1X9F9obn.js} +1 -1
  32. package/dist/{RadioControl-D6Wm5j7g.js → RadioControl-BdHtNPFC.js} +2 -2
  33. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-CsEFu5wd.js → RadioControlBase.vue_vue_type_script_setup_true_lang-Cp22r9KZ.js} +2 -2
  34. package/dist/{ResourceControlBase-DRlen7vy.js → ResourceControlBase-CDpi3J6s.js} +2 -2
  35. package/dist/{RichTextControl-DPX_lxfc.js → RichTextControl-5o904Fvx.js} +2185 -2187
  36. package/dist/{SectionHeading-DIs2yBVY.js → SectionHeading-CrGc61FB.js} +1 -1
  37. package/dist/{SectionLayout-6ID4pFDm.js → SectionLayout-B9X7fzQ9.js} +3 -3
  38. package/dist/SettingsSubPanel-WzFrc-mQ.js +5 -0
  39. package/dist/{SettingsSubPanelLayout-bSgzF47m.js → SettingsSubPanelLayout-D8j0-HKD.js} +7 -7
  40. package/dist/{SimpleButtonControl-CpO-Xbws.js → SimpleButtonControl-BS6opqJW.js} +8 -8
  41. package/dist/{SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js → SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BuKsDBUW.js} +11510 -11132
  42. package/dist/{SimpleTwinlistControl-BMKo3T2E.js → SimpleTwinlistControl-RlnzOp0j.js} +2 -2
  43. package/dist/{SingleSelectControl-IDX5QUdR.js → SingleSelectControl-DPPwJUq3.js} +2 -2
  44. package/dist/{SingleSelectListBoxControl-CYGArF9u.js → SingleSelectListBoxControl-EMc8u2ik.js} +3 -3
  45. package/dist/SortListControl-Bw3K37ru.js +103 -0
  46. package/dist/{StyledListItem-DA8cbCw1.js → StyledListItem-Bli2itH-.js} +1 -1
  47. package/dist/{TeamAndSpacesControl-BThkHK2b.js → TeamAndSpacesControl-BlvUuAAA.js} +1 -1
  48. package/dist/{TeamResourceControl-CQgq2Bq5.js → TeamResourceControl-DuLmQ7gc.js} +2 -2
  49. package/dist/{TextAreaControl-ykGD_BnL.js → TextAreaControl-DtfB44mR.js} +1 -1
  50. package/dist/{TextControl-QTuQZi2l.js → TextControl-BlUQLMGo.js} +1 -1
  51. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-C1Cs6NXf.js → TextControl.vue_vue_type_script_setup_true_lang-CBke-957.js} +2 -2
  52. package/dist/{TimeControl-W0VRENnH.js → TimeControl-DWzlpLX-.js} +1 -1
  53. package/dist/{TimePartInput-BHzqB1_B.js → TimePartInput-CRP2YYM0.js} +1 -1
  54. package/dist/{TimeframesControl-C12gkBRu.js → TimeframesControl-O_hzJcX5.js} +2 -2
  55. package/dist/{Tooltip-B0QEjsdY.js → Tooltip-C9vAa0Wb.js} +1 -1
  56. package/dist/{TwinlistControlBase.vue_vue_type_script_setup_true_lang-BlaFr27R.js → TwinlistControlBase.vue_vue_type_script_setup_true_lang-DtphbKhB.js} +2 -2
  57. package/dist/{TypedStringFilter-B-LUMedK.js → TypedStringFilter-ByeMPxR6.js} +1 -1
  58. package/dist/{ValueSwitch-BBO_VXIM.js → ValueSwitch-BV9qUd5x.js} +6 -6
  59. package/dist/{ValueSwitchControl-Jz7xZfY-.js → ValueSwitchControl-nW7WtSSM.js} +1 -1
  60. package/dist/{VerticalLayout-CGtB4d8F.js → VerticalLayout-C7_-yu_D.js} +2 -2
  61. package/dist/{VerticalLayoutBase-JY9q-FO2.js → VerticalLayoutBase-eODyPAoq.js} +1 -1
  62. package/dist/{ZonedDateTimeControl-BatkUEiY.js → ZonedDateTimeControl-DlrvZKe4.js} +2 -2
  63. package/dist/{_Uint8Array-Bbzs2Ov4.js → _Uint8Array-BESS0YjU.js} +14 -14
  64. package/dist/{_baseIteratee-pNDg46VS.js → _baseIteratee-BLvJX4uT.js} +9 -9
  65. package/dist/floating-ui.vue-Fx4CxKut.js +1057 -0
  66. package/dist/knime-jsonforms.css +1 -1
  67. package/dist/knime-jsonforms.js +113 -102
  68. package/dist/{localTimeUtils-B5XTvulp.js → localTimeUtils-Bl9xa5Jk.js} +1292 -1268
  69. package/dist/{popper-D54JdmBM.js → popper-iehk3xNV.js} +224 -210
  70. package/dist/src/renderers/defaultRenderers.d.ts +1 -930
  71. package/dist/src/renderers/sortListRenderer.d.ts +1 -930
  72. package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +2 -2
  73. package/dist/src/uiComponents/SortListControl.vue.d.ts +2 -918
  74. package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +3 -1
  75. package/dist/testing.js +2589 -2602
  76. package/dist/{toString-GoK24L1U.js → toString-DXFebvWA.js} +1 -1
  77. package/dist/{useBuiltinValidations-LGrGrHzT.js → useBuiltinValidations-ChnQzGRe.js} +1 -1
  78. package/dist/useDropdownNavigation-2Yhk7zes.js +821 -0
  79. package/dist/{usePossibleValues-ItF87hxE.js → usePossibleValues-B8es3DCW.js} +1 -1
  80. package/dist/{useUnknownValuesInTwinlist-B8gDSha9.js → useUnknownValuesInTwinlist-qv0kKHaD.js} +1 -1
  81. package/package.json +4 -4
  82. package/dist/Checkbox-DiIYr1i-.js +0 -75
  83. package/dist/ComboBoxControl-BoQyPwaV.js +0 -616
  84. package/dist/FileUploadControl-CFQSJwkd.js +0 -197
  85. package/dist/MultiSelectListBoxControl-DbJWOUtn.js +0 -31
  86. package/dist/SettingsSubPanel-BUVqvjIE.js +0 -5
  87. package/dist/SortListControl-LWMW3lAc.js +0 -389
  88. package/dist/_baseAssignValue-DV_dpE4l.js +0 -19
  89. package/dist/_baseEach-RTY-xHIc.js +0 -30
  90. package/dist/close-CwP2mh9x.js +0 -17
  91. package/dist/createMissingItem-B00Kg95q.js +0 -4
  92. package/dist/floating-ui.vue-Bk6u3tWN.js +0 -1060
  93. package/dist/navigator-e30QQMkl.js +0 -4
  94. package/dist/useDropdownNavigation-EOwf_fL0.js +0 -946
@@ -1,197 +0,0 @@
1
- import { defineComponent as V, ref as h, computed as g, openBlock as N, createElementBlock as G, createVNode as R, unref as q, createElementVNode as v, toDisplayString as K } from "vue";
2
- import { C as E, G as W, A as $, B as I, y as Y, _ as H } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js";
3
- import { e as J, o as Q, U as w, j as X, a as j, m as U, n as T, i as Z, S as k, g as z } from "./_Uint8Array-Bbzs2Ov4.js";
4
- import { b as ee } from "./_baseAssignValue-DV_dpE4l.js";
5
- import { i as te } from "./isArray-WzO_os3q.js";
6
- var S = Object.create, re = /* @__PURE__ */ (function() {
7
- function e() {
8
- }
9
- return function(t) {
10
- if (!E(t))
11
- return {};
12
- if (S)
13
- return S(t);
14
- e.prototype = t;
15
- var r = new e();
16
- return e.prototype = void 0, r;
17
- };
18
- })();
19
- function ne(e, t) {
20
- for (var r = -1, a = e == null ? 0 : e.length; ++r < a && t(e[r], r, e) !== !1; )
21
- ;
22
- return e;
23
- }
24
- var oe = Object.prototype, ae = oe.hasOwnProperty;
25
- function ce(e, t, r) {
26
- var a = e[t];
27
- (!(ae.call(e, t) && J(a, r)) || r === void 0 && !(t in e)) && ee(e, t, r);
28
- }
29
- var ie = Q(Object.getPrototypeOf, Object), D = typeof exports == "object" && exports && !exports.nodeType && exports, O = D && typeof module == "object" && module && !module.nodeType && module, se = O && O.exports === D, C = se ? W.Buffer : void 0;
30
- C && C.allocUnsafe;
31
- function le(e, t) {
32
- return e.slice();
33
- }
34
- var fe = Object.prototype, ue = fe.hasOwnProperty;
35
- function be(e) {
36
- var t = e.length, r = new e.constructor(t);
37
- return t && typeof e[0] == "string" && ue.call(e, "index") && (r.index = e.index, r.input = e.input), r;
38
- }
39
- function m(e) {
40
- var t = new e.constructor(e.byteLength);
41
- return new w(t).set(new w(e)), t;
42
- }
43
- function pe(e, t) {
44
- var r = m(e.buffer);
45
- return new e.constructor(r, e.byteOffset, e.byteLength);
46
- }
47
- var de = /\w*$/;
48
- function ge(e) {
49
- var t = new e.constructor(e.source, de.exec(e));
50
- return t.lastIndex = e.lastIndex, t;
51
- }
52
- var x = $ ? $.prototype : void 0, F = x ? x.valueOf : void 0;
53
- function ye(e) {
54
- return F ? Object(F.call(e)) : {};
55
- }
56
- function Te(e, t) {
57
- var r = m(e.buffer);
58
- return new e.constructor(r, e.byteOffset, e.length);
59
- }
60
- var je = "[object Boolean]", me = "[object Date]", Ae = "[object Map]", he = "[object Number]", ve = "[object RegExp]", $e = "[object Set]", we = "[object String]", Se = "[object Symbol]", Oe = "[object ArrayBuffer]", Ce = "[object DataView]", xe = "[object Float32Array]", Fe = "[object Float64Array]", Be = "[object Int8Array]", _e = "[object Int16Array]", Ee = "[object Int32Array]", Ie = "[object Uint8Array]", Ue = "[object Uint8ClampedArray]", De = "[object Uint16Array]", Me = "[object Uint32Array]";
61
- function Pe(e, t, r) {
62
- var a = e.constructor;
63
- switch (t) {
64
- case Oe:
65
- return m(e);
66
- case je:
67
- case me:
68
- return new a(+e);
69
- case Ce:
70
- return pe(e);
71
- case xe:
72
- case Fe:
73
- case Be:
74
- case _e:
75
- case Ee:
76
- case Ie:
77
- case Ue:
78
- case De:
79
- case Me:
80
- return Te(e);
81
- case Ae:
82
- return new a();
83
- case he:
84
- case we:
85
- return new a(e);
86
- case ve:
87
- return ge(e);
88
- case $e:
89
- return new a();
90
- case Se:
91
- return ye(e);
92
- }
93
- }
94
- function Le(e) {
95
- return typeof e.constructor == "function" && !X(e) ? re(ie(e)) : {};
96
- }
97
- var Ve = "[object Map]";
98
- function Ne(e) {
99
- return I(e) && j(e) == Ve;
100
- }
101
- var B = T && T.isMap, Ge = B ? U(B) : Ne, Re = "[object Set]";
102
- function qe(e) {
103
- return I(e) && j(e) == Re;
104
- }
105
- var _ = T && T.isSet, Ke = _ ? U(_) : qe, M = "[object Arguments]", We = "[object Array]", Ye = "[object Boolean]", He = "[object Date]", Je = "[object Error]", P = "[object Function]", Qe = "[object GeneratorFunction]", Xe = "[object Map]", Ze = "[object Number]", L = "[object Object]", ke = "[object RegExp]", ze = "[object Set]", et = "[object String]", tt = "[object Symbol]", rt = "[object WeakMap]", nt = "[object ArrayBuffer]", ot = "[object DataView]", at = "[object Float32Array]", ct = "[object Float64Array]", it = "[object Int8Array]", st = "[object Int16Array]", lt = "[object Int32Array]", ft = "[object Uint8Array]", ut = "[object Uint8ClampedArray]", bt = "[object Uint16Array]", pt = "[object Uint32Array]", n = {};
106
- n[M] = n[We] = n[nt] = n[ot] = n[Ye] = n[He] = n[at] = n[ct] = n[it] = n[st] = n[lt] = n[Xe] = n[Ze] = n[L] = n[ke] = n[ze] = n[et] = n[tt] = n[ft] = n[ut] = n[bt] = n[pt] = !0;
107
- n[Je] = n[P] = n[rt] = !1;
108
- function y(e, t, r, a, u, c) {
109
- var o;
110
- if (o !== void 0)
111
- return o;
112
- if (!E(e))
113
- return e;
114
- var p = te(e);
115
- if (p)
116
- o = be(e);
117
- else {
118
- var i = j(e), d = i == P || i == Qe;
119
- if (Z(e))
120
- return le(e);
121
- if (i == L || i == M || d && !u)
122
- o = d ? {} : Le(e);
123
- else {
124
- if (!n[i])
125
- return u ? e : {};
126
- o = Pe(e, i);
127
- }
128
- }
129
- c || (c = new k());
130
- var l = c.get(e);
131
- if (l)
132
- return l;
133
- c.set(e, o), Ke(e) ? e.forEach(function(s) {
134
- o.add(y(s, t, r, s, e, c));
135
- }) : Ge(e) && e.forEach(function(s, f) {
136
- o.set(f, y(s, t, r, f, e, c));
137
- });
138
- var b = z, A = p ? void 0 : b(e);
139
- return ne(A || e, function(s, f) {
140
- A && (f = s, s = e[f]), ce(o, f, y(s, t, r, f, e, c));
141
- }), o;
142
- }
143
- var dt = 1, gt = 4;
144
- function yt(e) {
145
- return y(e, dt | gt);
146
- }
147
- const Tt = { class: "wrapper" }, jt = { class: "filename" }, mt = ["id", "aria-label", "accept", "multiple", "disabled"], At = /* @__PURE__ */ V({
148
- inheritAttrs: !1,
149
- __name: "FileUploadControl",
150
- props: {
151
- control: {},
152
- handleChange: { type: Function },
153
- changeValue: { type: Function },
154
- disabled: { type: Boolean },
155
- isValid: { type: Boolean },
156
- onRegisterValidation: { type: Function },
157
- labelForId: {}
158
- },
159
- setup(e) {
160
- const t = e, r = h(yt(t.control.data)), a = g(
161
- () => t.control.uischema.options?.accept ?? "*"
162
- ), u = g(
163
- () => t.control.uischema.options?.multiple ?? !1
164
- ), c = h(null), o = g(() => r.value?.map?.(({ name: l }) => l).join(", ") || "No file selected"), p = g(() => `Select file${u.value ? "s" : ""}`), i = () => {
165
- c.value?.click();
166
- }, d = (l) => {
167
- const b = l.target;
168
- b.files && (r.value = Array.from(b.files), t.handleChange(t.control.path, Array.from(r.value)));
169
- };
170
- return (l, b) => (N(), G("div", Tt, [
171
- R(q(Y), {
172
- class: "file-select-button",
173
- label: p.value,
174
- "leading-icon": "search",
175
- variant: "outlined",
176
- disabled: e.disabled,
177
- onClick: i
178
- }, null, 8, ["label", "disabled"]),
179
- v("span", jt, K(o.value), 1),
180
- v("input", {
181
- id: e.labelForId,
182
- ref_key: "fileSelector",
183
- ref: c,
184
- "aria-label": e.control.label,
185
- type: "file",
186
- accept: a.value,
187
- multiple: u.value,
188
- disabled: e.disabled,
189
- hidden: "",
190
- onChange: d
191
- }, null, 40, mt)
192
- ]));
193
- }
194
- }), Ot = /* @__PURE__ */ H(At, [["__scopeId", "data-v-7d1e4998"]]);
195
- export {
196
- Ot as default
197
- };
@@ -1,31 +0,0 @@
1
- import { defineComponent as t, toRef as i, openBlock as n, createBlock as s, unref as l } from "vue";
2
- import { u as d } from "./usePossibleValues-ItF87hxE.js";
3
- import { M as u } from "./MultiselectListBox-DpL-Z03B.js";
4
- const f = /* @__PURE__ */ t({
5
- __name: "MultiSelectListBoxControl",
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 a = e, { possibleValues: o } = d(i(a, "control"));
17
- return (c, r) => (n(), s(l(u), {
18
- id: e.labelForId,
19
- "possible-values": l(o) || [],
20
- disabled: e.disabled,
21
- "model-value": e.control.data,
22
- "is-valid": e.isValid,
23
- ariaLabel: e.control.label,
24
- size: e.control.uischema.options?.size,
25
- "onUpdate:modelValue": e.changeValue
26
- }, null, 8, ["id", "possible-values", "disabled", "model-value", "is-valid", "ariaLabel", "size", "onUpdate:modelValue"]));
27
- }
28
- });
29
- export {
30
- f as default
31
- };
@@ -1,5 +0,0 @@
1
- import { _ as a, z as s } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js";
2
- const _ = /* @__PURE__ */ a(s, [["__scopeId", "data-v-25eac96f"]]);
3
- export {
4
- _ as S
5
- };
@@ -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, ar as P } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-Ssy7Zaqp.js";
3
- import { i as we } from "./navigator-e30QQMkl.js";
4
- import { M as be } from "./MultiselectListBox-DpL-Z03B.js";
5
- import { b as he } from "./_baseAssignValue-DV_dpE4l.js";
6
- import { b as ge } from "./_baseEach-RTY-xHIc.js";
7
- import { b as Ve } from "./_baseIteratee-pNDg46VS.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,19 +0,0 @@
1
- import { p as i } from "./_Uint8Array-Bbzs2Ov4.js";
2
- var a = (function() {
3
- try {
4
- var e = i(Object, "defineProperty");
5
- return e({}, "", {}), e;
6
- } catch {
7
- }
8
- })();
9
- function o(e, r, t) {
10
- r == "__proto__" && a ? a(e, r, {
11
- configurable: !0,
12
- enumerable: !0,
13
- value: t,
14
- writable: !0
15
- }) : e[r] = t;
16
- }
17
- export {
18
- o as b
19
- };
@@ -1,30 +0,0 @@
1
- import { k as h, h as b } from "./_Uint8Array-Bbzs2Ov4.js";
2
- function g(n) {
3
- return function(e, r, f) {
4
- for (var i = -1, a = Object(e), t = f(e), u = t.length; u--; ) {
5
- var s = t[++i];
6
- if (r(a[s], s, a) === !1)
7
- break;
8
- }
9
- return e;
10
- };
11
- }
12
- var v = g();
13
- function k(n, e) {
14
- return n && v(n, e, h);
15
- }
16
- function m(n, e) {
17
- return function(r, f) {
18
- if (r == null)
19
- return r;
20
- if (!b(r))
21
- return n(r, f);
22
- for (var i = r.length, a = -1, t = Object(r); ++a < i && f(t[a], a, t) !== !1; )
23
- ;
24
- return r;
25
- };
26
- }
27
- var w = m(k);
28
- export {
29
- w as b
30
- };
@@ -1,17 +0,0 @@
1
- import { openBlock as o, createElementBlock as n, createElementVNode as t } from "vue";
2
- const r = {
3
- xmlns: "http://www.w3.org/2000/svg",
4
- fill: "none",
5
- stroke: "#000",
6
- "stroke-linejoin": "round",
7
- viewBox: "0 0 32 32"
8
- };
9
- function l(s, e) {
10
- return o(), n("svg", r, [...e[0] || (e[0] = [
11
- t("path", { d: "M5 27 27 5M5 5l22 22" }, null, -1)
12
- ])]);
13
- }
14
- const i = { render: l };
15
- export {
16
- i as C
17
- };
@@ -1,4 +0,0 @@
1
- const e = (t) => ({ id: t, text: `(MISSING) ${String(t)}`, invalid: !0 });
2
- export {
3
- e as c
4
- };