@knime/jsonforms 1.9.4 → 1.10.0

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 (77) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{AnyOfTwinlist-D1KycEHY.js → AnyOfTwinlist-DeqIlR2B.js} +1 -1
  3. package/dist/{Button-Dj1USqpr.js → Button-CN9kOg52.js} +1 -1
  4. package/dist/{Checkbox-5l-7O-Rc.js → Checkbox-BECqYUi7.js} +1 -1
  5. package/dist/{CheckboxControl-CcV_DXsi.js → CheckboxControl-YAifFlUs.js} +2 -2
  6. package/dist/{Checkboxes-TSVYIY6A.js → Checkboxes-SN0Gyz3F.js} +2 -2
  7. package/dist/{CheckboxesControl-CEIBobjb.js → CheckboxesControl-B9FhxSt0.js} +2 -2
  8. package/dist/{ComboBoxControl-FTELjHzm.js → ComboBoxControl-CLROGipS.js} +8 -8
  9. package/dist/{DateControl-CF5FYRLV.js → DateControl-BMIbCzdJ.js} +1 -1
  10. package/dist/{DateTimeControl-D1B_TgdP.js → DateTimeControl-CxFb7-M5.js} +2 -2
  11. package/dist/{DateTimeFormatInput--ahcIWAg.js → DateTimeFormatInput-BoT3Fq6o.js} +3 -3
  12. package/dist/{DateTimeFormatPickerControl-BliVRAB0.js → DateTimeFormatPickerControl-Bh6dVZmY.js} +2 -2
  13. package/dist/{DateTimeFormatPickerWithTypeControl-CXseluiT.js → DateTimeFormatPickerWithTypeControl-7Z0nCv1N.js} +3 -3
  14. package/dist/{DateTimeInput-DqqCRfzR.js → DateTimeInput-C4Nh_2EL.js} +6 -6
  15. package/dist/{Dropdown-BfqaIGuC.js → Dropdown-3hPIkzit.js} +5 -5
  16. package/dist/{DropdownControl-D8-qWkOR.js → DropdownControl-UjRCUZHh.js} +4 -4
  17. package/dist/{HorizontalLayout-CWRVRpwR.js → HorizontalLayout-CJ_o8Fs4.js} +1 -1
  18. package/dist/{InputField-C2yLbANc.js → InputField-dinsVJC1.js} +1 -1
  19. package/dist/{IntegerControl-Bz5KWKoG.js → IntegerControl-DYv-Y9M7.js} +1 -1
  20. package/dist/{IntervalControl-B0CHqejJ.js → IntervalControl-ETsNbmWj.js} +11 -11
  21. package/dist/{LoadingDropdown-fVxRhH6V.js → LoadingDropdown-BBu6y57e.js} +3 -3
  22. package/dist/{MultimodeTwinlistControl-DV_0SHHy.js → MultimodeTwinlistControl-B-Fm5b9C.js} +5 -5
  23. package/dist/{MultiselectListBox-Cn7ngRfj.js → MultiselectListBox-DiY_1JbY.js} +1 -1
  24. package/dist/{NameFilter-DTecZo_d.js → NameFilter-ByVouGxz.js} +1 -1
  25. package/dist/{NumberControl-Bv6y2n41.js → NumberControl-8pxttJYW.js} +1 -1
  26. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-6m9utn_F.js → NumberControlBase.vue_vue_type_script_setup_true_lang-0MWDRFG4.js} +2 -2
  27. package/dist/{NumberInput-Ys4Hdd7b.js → NumberInput-BsI5jyyt.js} +1 -1
  28. package/dist/{OneOfDropdown-CDAPUCNY.js → OneOfDropdown-wSdpOv-h.js} +1 -1
  29. package/dist/{RadioControl-B2pjYv6_.js → RadioControl-DrHwFQHw.js} +2 -2
  30. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-CclH-Wwk.js → RadioControlBase.vue_vue_type_script_setup_true_lang-E93Q0_oH.js} +2 -2
  31. package/dist/{RichTextControl-Cp-ZJ8Qo.js → RichTextControl-C0MHCvEi.js} +5 -5
  32. package/dist/{SectionHeading-D0esbYSn.js → SectionHeading-Dupn5jB4.js} +1 -1
  33. package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-u8QsGw29.js +13803 -0
  34. package/dist/{SectionLayout-lUG0FeYA.js → SectionLayout-B1wqBbiJ.js} +3 -3
  35. package/dist/SettingsSubPanel-CENkQVK4.js +5 -0
  36. package/dist/{SettingsSubPanelLayout-BvbwLKfV.js → SettingsSubPanelLayout-BzokvPPl.js} +4 -4
  37. package/dist/{SimpleButtonControl-DWLU_5Ny.js → SimpleButtonControl-C5XhU03v.js} +8 -8
  38. package/dist/{SimpleTwinlistControl-D6ORIuzH.js → SimpleTwinlistControl-B0LaCmtv.js} +2 -2
  39. package/dist/{SingleSelectControl-BKv71LA7.js → SingleSelectControl-CK4-CrfC.js} +2 -2
  40. package/dist/{SortListControl-B5N2Hqr2.js → SortListControl-D-JHzIyw.js} +16 -16
  41. package/dist/{TextAreaControl-Bb1thkUU.js → TextAreaControl-CVjex7AA.js} +1 -1
  42. package/dist/{TextControl-CuiHsefr.js → TextControl-E0OK9u3d.js} +1 -1
  43. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-DqaxrzeR.js → TextControl.vue_vue_type_script_setup_true_lang-DIBicKjn.js} +4 -4
  44. package/dist/{TimeControl-CfdGsohr.js → TimeControl-CjoQmYQT.js} +2 -2
  45. package/dist/{TwinlistControlBase-CYNUKmVM.js → TwinlistControlBase-BRT_sYid.js} +3 -3
  46. package/dist/TwinlistLoadingInfo-BHR4sp2h.js +965 -0
  47. package/dist/{TypedStringFilter-0MA1D7-X.js → TypedStringFilter-C7u3z9EA.js} +1 -1
  48. package/dist/{ValueSwitch-B6rM3Cb9.js → ValueSwitch-CTCKgRvt.js} +1 -1
  49. package/dist/{ValueSwitchControl-avfCCusm.js → ValueSwitchControl-DRC37vZO.js} +1 -1
  50. package/dist/{VerticalLayout-DXyKnMvI.js → VerticalLayout-HTwvzYs2.js} +5 -5
  51. package/dist/{VerticalLayoutBase-D-TX7EUL.js → VerticalLayoutBase-CaUHhg4c.js} +1 -1
  52. package/dist/{ZonedDateTimeControl-BNZ8YhWM.js → ZonedDateTimeControl-Dry6mj8Q.js} +4 -4
  53. package/dist/{_baseEach-FP8ISlsz.js → _baseEach-qp9WwRfp.js} +2 -2
  54. package/dist/_baseIteratee-D1BrioPy.js +516 -0
  55. package/dist/{_getTag-DiktJuv_.js → _getTag-D8q3h3ou.js} +25 -26
  56. package/dist/knime-jsonforms.js +7 -7
  57. package/dist/{localTimeUtils-Bvx7vLrT.js → localTimeUtils-BAL2gOb_.js} +1 -1
  58. package/dist/{magic-string.es-CvzN4vs8.js → magic-string.es-BNAF4une.js} +10 -10
  59. package/dist/src/higherOrderComponents/control/controlToRenderer.d.ts +8 -1
  60. package/dist/src/higherOrderComponents/control/index.d.ts +1 -0
  61. package/dist/src/higherOrderComponents/control/validation/types.d.ts +1 -0
  62. package/dist/src/higherOrderComponents/control/validation/useValidation.d.ts +5 -2
  63. package/dist/src/renderers/defaultRenderers.d.ts +9 -1
  64. package/dist/{svgWithTitle-DMRd3aDh.js → svgWithTitle-BomcA1vs.js} +1 -1
  65. package/dist/testing.js +19 -20
  66. package/dist/toString-DkTEiU39.js +25 -0
  67. package/dist/{useBuiltinValidations-iU8yJR-J.js → useBuiltinValidations-DXisZ150.js} +1 -1
  68. package/dist/{usePossibleValues-CQWkZRBa.js → usePossibleValues-BYX8n8sq.js} +1 -1
  69. package/package.json +1 -1
  70. package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B3PkFXo7.js +0 -13635
  71. package/dist/SettingsSubPanel-DlUlLFts.js +0 -5
  72. package/dist/TwinlistLoadingInfo-CPqVvWp4.js +0 -1044
  73. package/dist/_baseIteratee-DhaGkQLM.js +0 -518
  74. package/dist/isObject-B53jY8Qg.js +0 -7
  75. package/dist/isObjectLike-BatpeCIi.js +0 -29
  76. package/dist/isSymbol-C3_SC0Qp.js +0 -8
  77. package/dist/toString-B9O7P854.js +0 -26
@@ -1,1044 +0,0 @@
1
- import { openBlock as m, createElementBlock as w, createElementVNode as v, computed as h, nextTick as ae, resolveComponent as I, createBlock as E, normalizeClass as V, withCtx as T, renderSlot as re, createVNode as p, createCommentVNode as L, defineComponent as le, useCssVars as se, ref as D, normalizeStyle as z, Fragment as ce, renderList as ue, unref as W, pushScopeId as F, popScopeId as q, toRef as Y, toDisplayString as R } from "vue";
2
- import { N as de } from "./arrow-next-Qa8PNb04.js";
3
- import { u as Z } from "./useSearch-hpyYQ_6y.js";
4
- import { i as N } from "./isObject-B53jY8Qg.js";
5
- import { r as he } from "./isObjectLike-BatpeCIi.js";
6
- import { i as fe } from "./isSymbol-C3_SC0Qp.js";
7
- import { _ as H, o as me, r as ve } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B3PkFXo7.js";
8
- import { M as ge } from "./MultiselectListBox-Cn7ngRfj.js";
9
- import { C as be } from "./close-h7XT0ja0.js";
10
- import { I as Se } from "./InputField-C2yLbANc.js";
11
- import { c as X } from "./createMissingItem-B00Kg95q.js";
12
- import { L as we } from "./svgWithTitle-DMRd3aDh.js";
13
- const _e = {
14
- xmlns: "http://www.w3.org/2000/svg",
15
- fill: "none",
16
- stroke: "#000",
17
- "stroke-linejoin": "round",
18
- viewBox: "0 0 32 32"
19
- }, Ie = /* @__PURE__ */ v("circle", {
20
- cx: "13.2",
21
- cy: "13.2",
22
- r: "10"
23
- }, null, -1), pe = /* @__PURE__ */ v("path", { d: "m20.2 20.2 8.6 8.6" }, null, -1), ye = [
24
- Ie,
25
- pe
26
- ];
27
- function ke(e, t) {
28
- return m(), w("svg", _e, [...ye]);
29
- }
30
- const Le = { render: ke };
31
- var xe = /\s/;
32
- function Be(e) {
33
- for (var t = e.length; t-- && xe.test(e.charAt(t)); )
34
- ;
35
- return t;
36
- }
37
- var Ve = /^\s+/;
38
- function Ce(e) {
39
- return e && e.slice(0, Be(e) + 1).replace(Ve, "");
40
- }
41
- var J = NaN, Te = /^[-+]0x[0-9a-f]+$/i, Ee = /^0b[01]+$/i, Me = /^0o[0-7]+$/i, Re = parseInt;
42
- function Q(e) {
43
- if (typeof e == "number")
44
- return e;
45
- if (fe(e))
46
- return J;
47
- if (N(e)) {
48
- var t = typeof e.valueOf == "function" ? e.valueOf() : e;
49
- e = N(t) ? t + "" : t;
50
- }
51
- if (typeof e != "string")
52
- return e === 0 ? e : +e;
53
- e = Ce(e);
54
- var n = Ee.test(e);
55
- return n || Me.test(e) ? Re(e.slice(2), n ? 2 : 8) : Te.test(e) ? J : +e;
56
- }
57
- var P = function() {
58
- return he.Date.now();
59
- }, Ae = "Expected a function", De = Math.max, Ne = Math.min;
60
- function He(e, t, n) {
61
- var s, i, l, d, r, o, b = 0, S = !1, g = !1, _ = !0;
62
- if (typeof e != "function")
63
- throw new TypeError(Ae);
64
- t = Q(t) || 0, N(n) && (S = !!n.leading, g = "maxWait" in n, l = g ? De(Q(n.maxWait) || 0, t) : l, _ = "trailing" in n ? !!n.trailing : _);
65
- function y(a) {
66
- var B = s, M = i;
67
- return s = i = void 0, b = a, d = e.apply(M, B), d;
68
- }
69
- function u(a) {
70
- return b = a, r = setTimeout(x, t), S ? y(a) : d;
71
- }
72
- function c(a) {
73
- var B = a - o, M = a - b, G = t - B;
74
- return g ? Ne(G, l - M) : G;
75
- }
76
- function k(a) {
77
- var B = a - o, M = a - b;
78
- return o === void 0 || B >= t || B < 0 || g && M >= l;
79
- }
80
- function x() {
81
- var a = P();
82
- if (k(a))
83
- return C(a);
84
- r = setTimeout(x, c(a));
85
- }
86
- function C(a) {
87
- return r = void 0, _ && s ? y(a) : (s = i = void 0, d);
88
- }
89
- function O() {
90
- r !== void 0 && clearTimeout(r), b = 0, s = o = i = r = void 0;
91
- }
92
- function U() {
93
- return r === void 0 ? d : C(P());
94
- }
95
- function f() {
96
- var a = P(), B = k(a);
97
- if (s = arguments, i = this, o = a, B) {
98
- if (r === void 0)
99
- return u(o);
100
- if (g)
101
- return clearTimeout(r), r = setTimeout(x, t), y(o);
102
- }
103
- return r === void 0 && (r = setTimeout(x, t)), d;
104
- }
105
- return f.cancel = O, f.flush = U, f;
106
- }
107
- var Oe = "Expected a function";
108
- function Ue(e, t, n) {
109
- var s = !0, i = !0;
110
- if (typeof e != "function")
111
- throw new TypeError(Oe);
112
- return N(n) && (s = "leading" in n ? !!n.leading : s, i = "trailing" in n ? !!n.trailing : i), He(e, t, {
113
- leading: s,
114
- maxWait: t,
115
- trailing: i
116
- });
117
- }
118
- const $ = (e, t, n) => {
119
- const s = h(() => !e.value || e.value.length === 0 ? 0 : e.value.length), i = h(() => 0);
120
- return ((d, r, o) => `${d} of ${r} entries`)(
121
- s.value,
122
- t,
123
- i.value
124
- );
125
- }, ze = {
126
- xmlns: "http://www.w3.org/2000/svg",
127
- fill: "none",
128
- stroke: "#000",
129
- "stroke-linejoin": "round",
130
- viewBox: "0 0 32 32"
131
- }, Pe = /* @__PURE__ */ v("path", { d: "M6 22.7h21.3m-6.8 6.8 6.8-6.8-6.8-6.7M26 9.3H4.7m6.8-6.8L4.7 9.3l6.8 6.7" }, null, -1), Ke = [
132
- Pe
133
- ];
134
- function We(e, t) {
135
- return m(), w("svg", ze, [...Ke]);
136
- }
137
- const Fe = { render: We }, qe = {
138
- xmlns: "http://www.w3.org/2000/svg",
139
- fill: "none",
140
- stroke: "#000",
141
- "stroke-linejoin": "round",
142
- viewBox: "0 0 32 32"
143
- }, je = /* @__PURE__ */ v("path", {
144
- fill: "#000",
145
- stroke: "none",
146
- d: "M13.297 19.097H5.444l-1.763 4.891H1.132L8.29 5.246h2.163l7.17 18.742h-2.536ZM6.19 17.063h6.372L9.371 8.297ZM28.37 23.988q-.205-.412-.334-1.467-1.66 1.725-3.965 1.725-2.06 0-3.385-1.159-1.313-1.171-1.313-2.96 0-2.176 1.647-3.373 1.66-1.21 4.66-1.21h2.317V14.45q0-1.249-.746-1.983-.747-.746-2.202-.746-1.274 0-2.136.643-.863.644-.863 1.558h-2.394q0-1.043.734-2.008.746-.979 2.008-1.545 1.274-.566 2.793-.566 2.407 0 3.772 1.21 1.364 1.197 1.416 3.308v6.41q0 1.919.489 3.051v.206zm-3.951-1.815q1.12 0 2.124-.579 1.004-.58 1.454-1.506V17.23h-1.866q-4.377 0-4.377 2.562 0 1.12.747 1.75.746.631 1.918.631",
147
- class: "text"
148
- }, null, -1), Ge = [
149
- je
150
- ];
151
- function Ye(e, t) {
152
- return m(), w("svg", qe, [...Ge]);
153
- }
154
- const Ze = { render: Ye }, Xe = {
155
- clear: "Clear",
156
- inverseSearch: "Exclude results that match query",
157
- caseSensitive: "Toggle case sensitivity"
158
- }, Je = {
159
- name: "SearchInput",
160
- components: {
161
- InputField: Se,
162
- FunctionButton: me,
163
- CloseIcon: be,
164
- LensIcon: Le,
165
- InverseSearchIcon: Fe,
166
- UpperLowerCaseIcon: Ze
167
- },
168
- props: {
169
- id: {
170
- type: String,
171
- default: null
172
- },
173
- name: {
174
- type: String,
175
- default: null
176
- },
177
- modelValue: {
178
- type: String,
179
- default: ""
180
- },
181
- placeholder: {
182
- type: String,
183
- // A pseudo-placeholder to allow hiding the clear-button without any input
184
- default: " "
185
- },
186
- initialCaseSensitiveSearch: {
187
- default: !1,
188
- type: Boolean
189
- },
190
- initialInverseSearch: {
191
- default: !1,
192
- type: Boolean
193
- },
194
- showCaseSensitiveSearchButton: {
195
- default: !1,
196
- type: Boolean
197
- },
198
- showInverseSearchButton: {
199
- default: !1,
200
- type: Boolean
201
- },
202
- autofocus: {
203
- default: !1,
204
- type: Boolean
205
- },
206
- disabled: {
207
- default: !1,
208
- type: Boolean
209
- },
210
- tooltips: {
211
- type: Object,
212
- default: () => ({})
213
- },
214
- focusOnMount: {
215
- type: Boolean,
216
- default: !1
217
- },
218
- ariaActivedescendant: {
219
- type: String,
220
- default: null
221
- },
222
- ariaOwns: {
223
- type: String,
224
- default: null
225
- },
226
- compact: {
227
- type: Boolean,
228
- default: !1
229
- }
230
- },
231
- emits: [
232
- "clear",
233
- "update:modelValue",
234
- "toggle-case-sensitive-search",
235
- "toggle-inverse-search",
236
- "focus"
237
- ],
238
- expose: ["focus"],
239
- data() {
240
- return {
241
- caseSensitiveSearch: this.initialCaseSensitiveSearch,
242
- inverseSearch: this.initialInverseSearch
243
- };
244
- },
245
- computed: {
246
- showClearButton() {
247
- return !this.disabled && this.modelValue !== "";
248
- },
249
- showSpacer() {
250
- return this.showClearButton && (this.showCaseSensitiveSearchButton || this.showInverseSearchButton);
251
- },
252
- tooltipsWithDefaults() {
253
- return { ...Xe, ...this.tooltips };
254
- }
255
- },
256
- async mounted() {
257
- this.focusOnMount && (await ae(), this.focus());
258
- },
259
- methods: {
260
- clearSearch() {
261
- this.$emit("clear"), this.$emit("update:modelValue", ""), this.focus();
262
- },
263
- toggleCaseSensitiveSearch() {
264
- this.caseSensitiveSearch = !this.caseSensitiveSearch, this.$emit("toggle-case-sensitive-search", this.caseSensitiveSearch), this.focus();
265
- },
266
- toggleInverseSearch() {
267
- this.inverseSearch = !this.inverseSearch, this.$emit("toggle-inverse-search", this.inverseSearch), this.focus();
268
- },
269
- focus() {
270
- this.$refs.searchInput.focus();
271
- }
272
- }
273
- }, Qe = {
274
- key: 0,
275
- class: "icon-slot-wrapper"
276
- }, $e = {
277
- key: 1,
278
- class: "spacer"
279
- };
280
- function et(e, t, n, s, i, l) {
281
- const d = I("LensIcon"), r = I("CloseIcon"), o = I("FunctionButton"), b = I("UpperLowerCaseIcon"), S = I("InverseSearchIcon"), g = I("InputField");
282
- return m(), E(g, {
283
- id: n.id,
284
- ref: "searchInput",
285
- name: n.name,
286
- "model-value": n.modelValue,
287
- placeholder: n.placeholder,
288
- autofocus: n.autofocus,
289
- disabled: n.disabled,
290
- class: V(["search-input", { disabled: n.disabled }]),
291
- autocomplete: "off",
292
- "aria-owns": n.ariaOwns,
293
- "aria-activedescendant": n.ariaActivedescendant,
294
- role: "searchbox",
295
- compact: n.compact,
296
- onFocus: t[0] || (t[0] = (_) => e.$emit("focus", _)),
297
- "onUpdate:modelValue": t[1] || (t[1] = (_) => e.$emit("update:modelValue", _))
298
- }, {
299
- icon: T(() => [
300
- n.disabled ? L("", !0) : (m(), w("div", Qe, [
301
- re(e.$slots, "icon", {}, () => [
302
- p(d)
303
- ], !0)
304
- ]))
305
- ]),
306
- iconRight: T(() => [
307
- l.showClearButton ? (m(), E(o, {
308
- key: 0,
309
- class: "clear-search",
310
- compact: n.compact,
311
- title: l.tooltipsWithDefaults.clear,
312
- onClick: l.clearSearch
313
- }, {
314
- default: T(() => [
315
- p(r)
316
- ]),
317
- _: 1
318
- }, 8, ["compact", "title", "onClick"])) : L("", !0),
319
- l.showSpacer ? (m(), w("span", $e)) : L("", !0),
320
- !n.disabled && n.showCaseSensitiveSearchButton ? (m(), E(o, {
321
- key: 2,
322
- class: "toggle-case-sensitive-search",
323
- compact: n.compact,
324
- active: i.caseSensitiveSearch,
325
- title: l.tooltipsWithDefaults.caseSensitive,
326
- onClick: l.toggleCaseSensitiveSearch
327
- }, {
328
- default: T(() => [
329
- p(b)
330
- ]),
331
- _: 1
332
- }, 8, ["compact", "active", "title", "onClick"])) : L("", !0),
333
- !n.disabled && n.showInverseSearchButton ? (m(), E(o, {
334
- key: 3,
335
- class: "toggle-inverse-search",
336
- compact: n.compact,
337
- title: l.tooltipsWithDefaults.inverseSearch,
338
- active: i.inverseSearch,
339
- onClick: l.toggleInverseSearch
340
- }, {
341
- default: T(() => [
342
- p(S)
343
- ]),
344
- _: 1
345
- }, 8, ["compact", "title", "active", "onClick"])) : L("", !0)
346
- ]),
347
- _: 3
348
- }, 8, ["id", "name", "model-value", "placeholder", "autofocus", "disabled", "class", "aria-owns", "aria-activedescendant", "compact"]);
349
- }
350
- const tt = /* @__PURE__ */ H(Je, [["render", et], ["__scopeId", "data-v-edba0a22"]]), nt = {
351
- xmlns: "http://www.w3.org/2000/svg",
352
- fill: "none",
353
- stroke: "#000",
354
- "stroke-linejoin": "round",
355
- viewBox: "0 0 32 32"
356
- }, lt = /* @__PURE__ */ v("path", { d: "m14.8 5 11 11-11 11M6.2 5l11 11-11 11" }, null, -1), st = [
357
- lt
358
- ];
359
- function it(e, t) {
360
- return m(), w("svg", nt, [...st]);
361
- }
362
- const ot = { render: it }, at = {
363
- xmlns: "http://www.w3.org/2000/svg",
364
- fill: "none",
365
- stroke: "#000",
366
- "stroke-linejoin": "round",
367
- viewBox: "0 0 32 32"
368
- }, rt = /* @__PURE__ */ v("path", { d: "m17.2 27-11-11 11-11m8.6 22-11-11 11-11" }, null, -1), ct = [
369
- rt
370
- ];
371
- function ut(e, t) {
372
- return m(), w("svg", at, [...ct]);
373
- }
374
- const dt = { render: ut }, ht = {
375
- xmlns: "http://www.w3.org/2000/svg",
376
- fill: "none",
377
- stroke: "#000",
378
- "stroke-linejoin": "round",
379
- viewBox: "0 0 32 32"
380
- }, ft = /* @__PURE__ */ v("path", { d: "m21.5 27-11-11 11-11" }, null, -1), mt = [
381
- ft
382
- ];
383
- function vt(e, t) {
384
- return m(), w("svg", ht, [...mt]);
385
- }
386
- const gt = { render: vt }, bt = (e) => (F("data-v-d36066f7"), e = e(), q(), e), St = /* @__PURE__ */ bt(() => /* @__PURE__ */ v("div", { class: "handle" }, null, -1)), wt = [
387
- St
388
- ], _t = 10, ee = "2px", It = /* @__PURE__ */ le({
389
- __name: "ResizeHandle",
390
- props: {
391
- numberOfHandles: {},
392
- handleWidth: {},
393
- connectHandlesOnResize: { type: Boolean, default: !1 },
394
- multipleHandlesHandleGap: { default: "0px" },
395
- disabled: { type: Boolean, default: !1 }
396
- },
397
- emits: ["resize-move", "resize-end"],
398
- setup(e, { emit: t }) {
399
- se((c) => ({
400
- "36bdd4ea": ee
401
- }));
402
- const n = t, s = e, i = D(0), l = D(null), d = h(
403
- () => `calc(${s.handleWidth} + 2 * ${ee})`
404
- ), r = h(
405
- () => s.connectHandlesOnResize && s.numberOfHandles > 1 && l.value !== null
406
- ), o = h(
407
- () => `(${s.numberOfHandles} - 1) * ${s.multipleHandlesHandleGap}`
408
- ), b = h(
409
- () => `(2 * ${s.numberOfHandles})`
410
- ), S = h(
411
- () => `(100% - ${o.value}) / ${b.value}`
412
- ), g = h(
413
- () => `calc(100% - 2 * ${S.value})`
414
- ), _ = (c) => {
415
- s.disabled || (c.target.setPointerCapture(c.pointerId), c.preventDefault(), l.value = c.pointerId, i.value = c.clientY);
416
- }, y = Ue((c) => {
417
- if (l.value === c.pointerId) {
418
- const k = c.clientY - i.value;
419
- (k < 0 && c.offsetY <= 0 || k > 0 && c.offsetY >= 0) && n("resize-move", k), i.value = c.clientY;
420
- }
421
- }, _t), u = (c) => {
422
- l.value === c.pointerId && (i.value = 0, l.value = null, n("resize-end"));
423
- };
424
- return (c, k) => (m(), w("div", {
425
- class: "resize-handle-container",
426
- style: z({ gap: c.multipleHandlesHandleGap })
427
- }, [
428
- r.value ? (m(), w("div", {
429
- key: 0,
430
- class: "handle connection",
431
- style: z({ width: g.value })
432
- }, null, 4)) : L("", !0),
433
- (m(!0), w(ce, null, ue(c.numberOfHandles, (x) => (m(), w("div", {
434
- key: x,
435
- class: V(["handle-container", { disabled: c.disabled }]),
436
- style: z({ width: d.value }),
437
- onPointerdown: _,
438
- onPointerup: u,
439
- onPointermove: k[0] || (k[0] = //@ts-ignore
440
- (...C) => W(y) && W(y)(...C)),
441
- onLostpointercapture: u
442
- }, wt, 38))), 128))
443
- ], 4));
444
- }
445
- }), pt = /* @__PURE__ */ H(It, [["__scopeId", "data-v-d36066f7"]]), A = "Enter", K = 5, ie = 30, oe = 24, yt = 4, kt = 56, Lt = ["left", "right"], xt = yt * oe + 2 * kt, Bt = `calc((100% - ${ie}px) * 1 / 6)`, Vt = (e) => {
446
- const t = h(
447
- () => e.value !== null && "includeUnknownValues" in e.value ? { withUnknownValues: e.value } : { standard: e.value }
448
- ), n = h(() => typeof t.value.standard < "u" ? t.value.standard : t.value.withUnknownValues.includedValues), s = h(
449
- () => {
450
- var o;
451
- return ((o = t.value.withUnknownValues) == null ? void 0 : o.excludedValues) ?? null;
452
- }
453
- ), i = h(
454
- () => {
455
- var o;
456
- return ((o = t.value.withUnknownValues) == null ? void 0 : o.includeUnknownValues) ?? null;
457
- }
458
- ), l = h(
459
- () => i.value === !1
460
- ), d = h(
461
- () => i.value === !0
462
- );
463
- return {
464
- includedValues: n,
465
- excludedValues: s,
466
- showUnknownExcludedValues: l,
467
- showUnknownIncludedValues: d,
468
- getEmitValue: (o, b = (g) => g, S = (g) => g) => t.value.withUnknownValues ? {
469
- includedValues: o,
470
- excludedValues: b(s.value),
471
- includeUnknownValues: S(
472
- t.value.withUnknownValues.includeUnknownValues
473
- )
474
- } : o
475
- };
476
- }, j = {
477
- name: "Twinlist",
478
- components: {
479
- ArrowNextDoubleIcon: ot,
480
- ArrowNextIcon: de,
481
- ArrowPrevDoubleIcon: dt,
482
- ArrowPrevIcon: gt,
483
- MultiselectListBox: ge,
484
- Label: ve,
485
- SearchInput: tt,
486
- ResizeHandle: pt
487
- },
488
- props: {
489
- modelValue: {
490
- type: [Object, Array, null],
491
- default: null
492
- },
493
- initialCaseSensitiveSearch: {
494
- default: !1,
495
- type: Boolean
496
- },
497
- initialSearchTerm: {
498
- type: String,
499
- required: !1,
500
- default: ""
501
- },
502
- /**
503
- * Hiding and disabling
504
- */
505
- showSearch: {
506
- default: !1,
507
- type: Boolean
508
- },
509
- disabled: {
510
- default: !1,
511
- type: Boolean
512
- },
513
- showEmptyState: {
514
- default: !0,
515
- type: Boolean
516
- },
517
- /**
518
- * Labels
519
- */
520
- leftLabel: {
521
- type: String,
522
- required: !0,
523
- default: "Possible values"
524
- },
525
- rightLabel: {
526
- type: String,
527
- required: !0,
528
- default: "Selected values"
529
- },
530
- withSearchLabel: {
531
- default: !1,
532
- type: Boolean
533
- },
534
- searchLabel: {
535
- type: String,
536
- required: !1,
537
- default: "Search values"
538
- },
539
- searchPlaceholder: {
540
- type: String,
541
- required: !1,
542
- default: "Search"
543
- },
544
- unknownValuesText: {
545
- type: String,
546
- required: !1,
547
- default: "Unknown values"
548
- },
549
- /**
550
- * Is only used when emptyStateComponent is null
551
- */
552
- emptyStateLabel: {
553
- default: "No entries in this list",
554
- type: String
555
- },
556
- /**
557
- * this component is displayed centered in the middle of the box in case it is empty
558
- */
559
- emptyStateComponent: {
560
- default: null,
561
- type: Object
562
- },
563
- /**
564
- * Controls the size of the list.
565
- * Number of visible items (for others user need to scroll)
566
- * - 0 means all
567
- * - values 1 - 4 are ignored; 5 is minimum
568
- */
569
- size: {
570
- type: Number,
571
- default: 0,
572
- validator(e) {
573
- return e >= 0;
574
- }
575
- },
576
- showResizeHandle: {
577
- type: Boolean,
578
- default: !1
579
- },
580
- isValid: {
581
- default: !0,
582
- type: Boolean
583
- },
584
- /**
585
- * List of possible values. Each item must have an `id` and a `text` property
586
- * @example
587
- * [{
588
- * id: 'pdf',
589
- * text: 'PDF'
590
- * }, {
591
- * id: 'XLS',
592
- * text: 'Excel',
593
- * }]
594
- */
595
- possibleValues: {
596
- type: Array,
597
- default: () => []
598
- },
599
- compact: {
600
- type: Boolean,
601
- default: !1
602
- }
603
- },
604
- emits: [
605
- /**
606
- * This event gets emitted whenever the user changes the selection.
607
- * In case the modelValue of this Twinlist is with unknown values, the emitted value here will also be.
608
- */
609
- "update:modelValue"
610
- ],
611
- setup(e) {
612
- const {
613
- includedValues: t,
614
- excludedValues: n,
615
- showUnknownExcludedValues: s,
616
- showUnknownIncludedValues: i,
617
- getEmitValue: l
618
- } = Vt(Y(e, "modelValue")), d = D(e.initialSearchTerm), r = D(e.initialCaseSensitiveSearch), o = h(() => e.possibleValues.map((f) => f.id)), b = h(() => new Set(o.value)), S = h(() => t.value ? i.value ? t.value.filter(
619
- (f) => b.value.has(f)
620
- ) : t.value : null), g = h(() => Object.assign(
621
- {},
622
- ...e.possibleValues.map((f, a) => ({
623
- [f.id]: { item: f, index: a }
624
- }))
625
- )), _ = h(() => S.value === null ? [] : S.value.map(
626
- (f) => {
627
- var a;
628
- return ((a = g.value[f]) == null ? void 0 : a.item) || X(f);
629
- }
630
- )), y = Y(e, "showSearch"), u = Z(
631
- d,
632
- r,
633
- _,
634
- y
635
- ), c = h(() => {
636
- if (!n.value) {
637
- const f = new Set(t.value);
638
- return o.value.filter(
639
- (a) => !f.has(a)
640
- );
641
- }
642
- return s.value ? n.value.filter(
643
- (f) => b.value.has(f)
644
- ) : n.value;
645
- }), k = h(() => S.value === null ? [] : c.value.map(
646
- (f) => {
647
- var a;
648
- return ((a = g.value[f]) == null ? void 0 : a.item) || X(f);
649
- }
650
- )), x = Z(
651
- d,
652
- r,
653
- k,
654
- y
655
- ), C = h(() => e.showSearch && d.value !== ""), O = h(() => e.showSearch && C.value ? $(x, c.value.length) : null), U = h(() => {
656
- var f;
657
- return e.showSearch && C.value ? $(
658
- u,
659
- (f = S.value) == null ? void 0 : f.length
660
- ) : null;
661
- });
662
- return {
663
- includedValues: t,
664
- excludedValues: n,
665
- showUnknownExcludedValues: s,
666
- showUnknownIncludedValues: i,
667
- getEmitValue: l,
668
- searchTerm: d,
669
- filteredExcludedItems: x,
670
- filteredIncludedItems: u,
671
- knownExcludedValues: c,
672
- knownIncludedValues: S,
673
- possibleValueIds: o,
674
- possibleValueIdsSet: b,
675
- excludedLabels: O,
676
- includedLabels: U,
677
- caseSensitiveSearch: r,
678
- allIncludedItems: _,
679
- possibleValueMap: g
680
- };
681
- },
682
- data() {
683
- return {
684
- invalidPossibleValueIds: /* @__PURE__ */ new Set(),
685
- rightSelected: [],
686
- leftSelected: [],
687
- unknownValuesId: Symbol("Unknown values"),
688
- constants: Object.freeze({
689
- MIN_LIST_SIZE: K,
690
- BUTTON_HEIGHT: oe,
691
- BUTTON_WIDTH: ie,
692
- RESIZE_HANDLE_WIDTH: Bt,
693
- MAX_HEIGHT_BUTTONS_CENTER_ALIGNMENT: xt
694
- })
695
- };
696
- },
697
- computed: {
698
- listSize() {
699
- const e = this.size === 0 ? this.possibleValues.length : this.size;
700
- return e > K ? e : K;
701
- },
702
- moveAllRightButtonDisabled() {
703
- return this.filteredExcludedItems.length === 0 && !this.showUnknownExcludedValues;
704
- },
705
- moveRightButtonDisabled() {
706
- return this.leftSelected.length === 0;
707
- },
708
- moveAllLeftButtonDisabled() {
709
- return this.filteredIncludedItems.length === 0 && !this.showUnknownIncludedValues;
710
- },
711
- moveLeftButtonDisabled() {
712
- return this.rightSelected.length === 0;
713
- }
714
- },
715
- mounted() {
716
- this.showResizeHandle && this.getListBoxes().forEach((e) => e.initResizeHeight());
717
- },
718
- methods: {
719
- getIndex(e) {
720
- var t;
721
- return ((t = this.possibleValueMap[e]) == null ? void 0 : t.index) ?? -1;
722
- },
723
- compareByOriginalSorting(e, t) {
724
- return this.getIndex(e) - this.getIndex(t);
725
- },
726
- clearSelections() {
727
- this.getListBoxes().forEach((e) => e.clearSelection());
728
- },
729
- moveItems(e, {
730
- toNewIncludedValues: t,
731
- toNewExcludedValues: n
732
- }) {
733
- const s = e.filter((o) => o !== this.unknownValuesId), i = e.length > s.length, l = {
734
- knownValues: s,
735
- movingUnknownValues: i
736
- };
737
- let d = null, r = null;
738
- this.includedValues !== null && (d = t({
739
- previous: this.includedValues,
740
- movingParts: l
741
- })), this.excludedValues && (r = n({
742
- previous: this.knownExcludedValues,
743
- movingParts: l
744
- })), this.clearSelections(), this.$emit(
745
- "update:modelValue",
746
- this.getEmitValue(
747
- d,
748
- () => r,
749
- (o) => i ? !o : o
750
- )
751
- );
752
- },
753
- moveRight(e = null) {
754
- this.moveItems(e ?? this.leftSelected, {
755
- toNewIncludedValues: this.addMovedItems.bind(this),
756
- toNewExcludedValues: this.filterMovedItems.bind(this)
757
- });
758
- },
759
- moveLeft(e = null) {
760
- this.moveItems(e ?? this.rightSelected, {
761
- toNewIncludedValues: this.filterMovedItems.bind(this),
762
- toNewExcludedValues: this.addMovedItems.bind(this)
763
- });
764
- },
765
- /**
766
- * Filters out the moved items and also invalid items if unknown values are being moved.
767
- */
768
- filterMovedItems({
769
- previous: e,
770
- movingParts: { movingUnknownValues: t, knownValues: n }
771
- }) {
772
- const s = new Set(n);
773
- return e.filter(
774
- (i) => !s.has(i) && (!t || this.possibleValueIdsSet.has(i))
775
- );
776
- },
777
- /**
778
- * Adds the given items sorting by the order in the possible values afterwards and removing invalid items
779
- * if unknown values are being moved
780
- */
781
- addMovedItems({
782
- previous: e,
783
- movingParts: { movingUnknownValues: t, knownValues: n }
784
- }) {
785
- return [
786
- ...t ? e.filter((s) => this.possibleValueIdsSet.has(s)) : e,
787
- ...n.filter((s) => this.possibleValueIdsSet.has(s))
788
- ].sort(this.compareByOriginalSorting);
789
- },
790
- onMoveRightButtonClick() {
791
- this.moveRight();
792
- },
793
- onMoveAllRightButtonClick() {
794
- const e = this.filteredExcludedItems.map((t) => t.id);
795
- this.moveRight(
796
- e.concat(
797
- this.showUnknownExcludedValues ? [this.unknownValuesId] : []
798
- )
799
- );
800
- },
801
- onMoveAllRightButtonKey(e) {
802
- e.key === A && (this.onMoveAllRightButtonClick(), this.stopPropagation(e));
803
- },
804
- onMoveRightButtonKey(e) {
805
- e.key === A && (this.moveRight(), this.stopPropagation(e));
806
- },
807
- onMoveLeftButtonClick() {
808
- this.moveLeft();
809
- },
810
- onMoveAllLeftButtonClick() {
811
- const e = this.filteredIncludedItems.map((t) => t.id);
812
- this.moveLeft(
813
- e.concat(
814
- this.showUnknownIncludedValues ? [this.unknownValuesId] : []
815
- )
816
- );
817
- },
818
- onMoveLeftButtonKey(e) {
819
- e.key === A && (this.moveLeft(), this.stopPropagation(e));
820
- },
821
- onMoveAllLeftButtonKey(e) {
822
- e.key === A && (this.onMoveAllLeftButtonClick(), this.stopPropagation(e));
823
- },
824
- stopPropagation(e) {
825
- e.preventDefault(), e.stopPropagation();
826
- },
827
- onLeftListBoxDoubleClick(e) {
828
- this.moveRight([e]);
829
- },
830
- onLeftListBoxShiftDoubleClick(e) {
831
- this.moveRight(e);
832
- },
833
- onRightListBoxDoubleClick(e) {
834
- this.moveLeft([e]);
835
- },
836
- onRightListBoxShiftDoubleClick(e) {
837
- this.moveLeft(e);
838
- },
839
- onLeftInput(e) {
840
- e.length > 0 && this.$refs.right.clearSelection(), this.leftSelected = e;
841
- },
842
- onRightInput(e) {
843
- e.length > 0 && this.$refs.left.clearSelection(), this.rightSelected = e;
844
- },
845
- onSearchInput(e) {
846
- this.searchTerm = e;
847
- },
848
- hasSelection() {
849
- var e;
850
- return (((e = this.includedValues) == null ? void 0 : e.length) ?? 0) > 0;
851
- },
852
- validate() {
853
- const e = !this.filteredIncludedItems.some((t) => t.invalid) && (!this.excludedValues || !this.filteredExcludedItems.some((t) => t.invalid));
854
- return {
855
- isValid: e,
856
- errorMessage: e ? null : "One or more of the selected items is invalid."
857
- };
858
- },
859
- getListBoxes() {
860
- return Lt.map(
861
- (e) => this.$refs[e]
862
- );
863
- },
864
- onResizeMove(e) {
865
- this.getListBoxes().forEach((t) => t.onResizeMove(e));
866
- },
867
- onResizeEnd() {
868
- this.getListBoxes().forEach((e) => e.onResizeEnd());
869
- }
870
- }
871
- }, te = () => {
872
- se((e) => ({
873
- "26ea00eb": `${e.constants.BUTTON_WIDTH}px`,
874
- ab175dd0: `${e.constants.MAX_HEIGHT_BUTTONS_CENTER_ALIGNMENT}px`,
875
- "6a6fa818": `${e.constants.BUTTON_HEIGHT}px`
876
- }));
877
- }, ne = j.setup;
878
- j.setup = ne ? (e, t) => (te(), ne(e, t)) : te;
879
- const Ct = (e) => (F("data-v-4808b939"), e = e(), q(), e), Tt = { class: "twinlist" }, Et = { class: "header" }, Mt = { class: "title" }, Rt = ["title"], At = ["title"], Dt = /* @__PURE__ */ Ct(() => /* @__PURE__ */ v("div", { class: "space" }, null, -1)), Nt = { class: "title" }, Ht = ["title"], Ot = ["title"], Ut = { class: "buttons" };
880
- function zt(e, t, n, s, i, l) {
881
- const d = I("SearchInput"), r = I("Label"), o = I("MultiselectListBox"), b = I("ArrowNextIcon"), S = I("ArrowNextDoubleIcon"), g = I("ArrowPrevIcon"), _ = I("ArrowPrevDoubleIcon"), y = I("ResizeHandle");
882
- return m(), w("div", Tt, [
883
- n.showSearch ? (m(), E(r, {
884
- key: 0,
885
- active: n.withSearchLabel,
886
- text: n.searchLabel,
887
- class: "search-wrapper"
888
- }, {
889
- default: T(({ labelForId: u }) => [
890
- p(d, {
891
- id: u,
892
- ref: "search",
893
- placeholder: n.searchPlaceholder,
894
- "model-value": s.searchTerm,
895
- label: n.searchLabel,
896
- "initial-case-sensitive-search": n.initialCaseSensitiveSearch,
897
- "show-case-sensitive-search-button": "",
898
- disabled: n.disabled,
899
- tooltips: {
900
- inverseSearch: "Move matching to other side"
901
- },
902
- compact: n.compact,
903
- "onUpdate:modelValue": l.onSearchInput,
904
- onToggleCaseSensitiveSearch: t[0] || (t[0] = (c) => s.caseSensitiveSearch = c)
905
- }, null, 8, ["id", "placeholder", "model-value", "label", "initial-case-sensitive-search", "disabled", "compact", "onUpdate:modelValue"])
906
- ]),
907
- _: 1
908
- }, 8, ["active", "text"])) : L("", !0),
909
- v("div", Et, [
910
- v("div", Mt, [
911
- v("div", {
912
- class: "label",
913
- title: n.leftLabel
914
- }, R(n.leftLabel), 9, Rt),
915
- s.excludedLabels ? (m(), w("div", {
916
- key: 0,
917
- title: s.excludedLabels,
918
- class: "info"
919
- }, R(s.excludedLabels), 9, At)) : L("", !0)
920
- ]),
921
- Dt,
922
- v("div", Nt, [
923
- v("div", {
924
- class: "label",
925
- title: n.rightLabel
926
- }, R(n.rightLabel), 9, Ht),
927
- s.includedLabels ? (m(), w("div", {
928
- key: 0,
929
- title: s.includedLabels,
930
- class: "info"
931
- }, R(s.includedLabels), 9, Ot)) : L("", !0)
932
- ])
933
- ]),
934
- v("div", {
935
- class: V(["lists", { disabled: n.disabled }])
936
- }, [
937
- p(o, {
938
- ref: "left",
939
- "with-is-empty-state": n.showEmptyState,
940
- "empty-state-label": n.emptyStateLabel,
941
- "empty-state-component": n.emptyStateComponent,
942
- size: l.listSize,
943
- "min-size": i.constants.MIN_LIST_SIZE,
944
- class: "list-box",
945
- "model-value": i.leftSelected,
946
- "with-bottom-value": s.showUnknownExcludedValues,
947
- "bottom-value": { id: i.unknownValuesId, text: n.unknownValuesText },
948
- "is-valid": n.isValid,
949
- "possible-values": s.filteredExcludedItems,
950
- ariaLabel: n.leftLabel,
951
- disabled: n.disabled,
952
- onDoubleClickOnItem: l.onLeftListBoxDoubleClick,
953
- onDoubleClickShift: l.onLeftListBoxShiftDoubleClick,
954
- onKeyArrowRight: l.moveRight,
955
- "onUpdate:modelValue": l.onLeftInput
956
- }, null, 8, ["with-is-empty-state", "empty-state-label", "empty-state-component", "size", "min-size", "model-value", "with-bottom-value", "bottom-value", "is-valid", "possible-values", "ariaLabel", "disabled", "onDoubleClickOnItem", "onDoubleClickShift", "onKeyArrowRight", "onUpdate:modelValue"]),
957
- v("div", Ut, [
958
- v("div", {
959
- ref: "moveRight",
960
- class: V({ disabled: l.moveRightButtonDisabled || n.disabled }),
961
- role: "button",
962
- tabindex: "0",
963
- onClick: t[1] || (t[1] = (...u) => l.onMoveRightButtonClick && l.onMoveRightButtonClick(...u)),
964
- onKeydown: t[2] || (t[2] = (...u) => l.onMoveRightButtonKey && l.onMoveRightButtonKey(...u))
965
- }, [
966
- p(b, { class: "icon" })
967
- ], 34),
968
- v("div", {
969
- ref: "moveAllRight",
970
- class: V({ disabled: l.moveAllRightButtonDisabled || n.disabled }),
971
- role: "button",
972
- tabindex: "0",
973
- onClick: t[3] || (t[3] = (...u) => l.onMoveAllRightButtonClick && l.onMoveAllRightButtonClick(...u)),
974
- onKeydown: t[4] || (t[4] = (...u) => l.onMoveAllRightButtonKey && l.onMoveAllRightButtonKey(...u))
975
- }, [
976
- p(S, { class: "icon" })
977
- ], 34),
978
- v("div", {
979
- ref: "moveLeft",
980
- class: V({ disabled: l.moveLeftButtonDisabled || n.disabled }),
981
- role: "button",
982
- tabindex: "0",
983
- onClick: t[5] || (t[5] = (...u) => l.onMoveLeftButtonClick && l.onMoveLeftButtonClick(...u)),
984
- onKeydown: t[6] || (t[6] = (...u) => l.onMoveLeftButtonKey && l.onMoveLeftButtonKey(...u))
985
- }, [
986
- p(g, { class: "icon" })
987
- ], 34),
988
- v("div", {
989
- ref: "moveAllLeft",
990
- class: V({ disabled: l.moveAllLeftButtonDisabled || n.disabled }),
991
- role: "button",
992
- tabindex: "0",
993
- onClick: t[7] || (t[7] = (...u) => l.onMoveAllLeftButtonClick && l.onMoveAllLeftButtonClick(...u)),
994
- onKeydown: t[8] || (t[8] = (...u) => l.onMoveAllLeftButtonKey && l.onMoveAllLeftButtonKey(...u))
995
- }, [
996
- p(_, { class: "icon" })
997
- ], 34)
998
- ]),
999
- p(o, {
1000
- ref: "right",
1001
- class: V(["list-box", { "with-empty-state-icon": n.emptyStateComponent }]),
1002
- "model-value": i.rightSelected,
1003
- "with-bottom-value": s.showUnknownIncludedValues,
1004
- "bottom-value": { id: i.unknownValuesId, text: n.unknownValuesText },
1005
- "with-is-empty-state": n.showEmptyState,
1006
- "empty-state-label": n.emptyStateLabel,
1007
- "empty-state-component": n.emptyStateComponent,
1008
- "possible-values": s.filteredIncludedItems,
1009
- size: l.listSize,
1010
- "min-size": i.constants.MIN_LIST_SIZE,
1011
- ariaLabel: n.rightLabel,
1012
- disabled: n.disabled,
1013
- onDoubleClickOnItem: l.onRightListBoxDoubleClick,
1014
- onDoubleClickShift: l.onRightListBoxShiftDoubleClick,
1015
- onKeyArrowLeft: l.moveLeft,
1016
- "onUpdate:modelValue": l.onRightInput
1017
- }, null, 8, ["class", "model-value", "with-bottom-value", "bottom-value", "with-is-empty-state", "empty-state-label", "empty-state-component", "possible-values", "size", "min-size", "ariaLabel", "disabled", "onDoubleClickOnItem", "onDoubleClickShift", "onKeyArrowLeft", "onUpdate:modelValue"])
1018
- ], 2),
1019
- n.showResizeHandle ? (m(), E(y, {
1020
- key: 1,
1021
- "number-of-handles": 2,
1022
- "handle-width": i.constants.RESIZE_HANDLE_WIDTH,
1023
- "connect-handles-on-resize": "",
1024
- "multiple-handles-handle-gap": `${i.constants.BUTTON_WIDTH}px`,
1025
- onResizeMove: l.onResizeMove,
1026
- onResizeEnd: l.onResizeEnd
1027
- }, null, 8, ["handle-width", "multiple-handles-handle-gap", "onResizeMove", "onResizeEnd"])) : L("", !0)
1028
- ]);
1029
- }
1030
- const ln = /* @__PURE__ */ H(j, [["render", zt], ["__scopeId", "data-v-4808b939"]]), Pt = (e) => (F("data-v-52b0b5dd"), e = e(), q(), e), Kt = { class: "info" }, Wt = /* @__PURE__ */ Pt(() => /* @__PURE__ */ v("span", null, "Loading...", -1)), Ft = /* @__PURE__ */ le({
1031
- __name: "TwinlistLoadingInfo",
1032
- setup(e) {
1033
- return (t, n) => (m(), w("div", Kt, [
1034
- Wt,
1035
- p(W(we), { class: "icon" })
1036
- ]));
1037
- }
1038
- }), sn = /* @__PURE__ */ H(Ft, [["__scopeId", "data-v-52b0b5dd"]]);
1039
- export {
1040
- tt as S,
1041
- sn as T,
1042
- ln as a,
1043
- Vt as u
1044
- };