@knime/jsonforms 1.14.3 → 1.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/AnyOfTwinlist-BmHETHvW.js +28 -0
  3. package/dist/{Button-BxuGKyL5.js → Button-B9RSLVI2.js} +9 -8
  4. package/dist/CheckboxControl-q88fZSZD.js +58 -0
  5. package/dist/Checkboxes-Bofcg7tl.js +120 -0
  6. package/dist/CheckboxesControl-DY0R1PDD.js +47 -0
  7. package/dist/{ComboBoxControl-Dk02x7sN.js → ComboBoxControl-2r1FWcy-.js} +238 -172
  8. package/dist/DateControl-vnkppn62.js +38 -0
  9. package/dist/DateTimeControl-MkF9G3Xz.js +53 -0
  10. package/dist/DateTimeFormatInput-Ds2VLXw1.js +426 -0
  11. package/dist/DateTimeFormatPickerControl-D3OjZCj7.js +47 -0
  12. package/dist/DateTimeFormatPickerWithTypeControl-DDto-oJk.js +85 -0
  13. package/dist/DateTimeInput-DcwhvMD2.js +11321 -0
  14. package/dist/Dropdown-D49sEHBa.js +663 -0
  15. package/dist/DropdownControl-aeEqC-Yg.js +46 -0
  16. package/dist/HorizontalLayout-D0toQmVl.js +39 -0
  17. package/dist/{InputField-BYxW_-G3.js → InputField-C_aZPs-f.js} +48 -36
  18. package/dist/IntegerControl-DAwniqjW.js +33 -0
  19. package/dist/IntervalControl-Bkuhg0Ga.js +647 -0
  20. package/dist/LoadingDropdown-B9jHjdWV.js +50 -0
  21. package/dist/LoadingIcon-RPBUjTO3.js +23 -0
  22. package/dist/ManualTwinlistControl-DGW-7a2Q.js +90 -0
  23. package/dist/MultiSelectListBoxControl-BYHuC9jL.js +48 -0
  24. package/dist/MultimodeTwinlistControl-oIvgI_FP.js +486 -0
  25. package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-DGKMWtLi.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_bd2eaa56_lang-pnMOUiIt.js} +1 -1
  26. package/dist/{MultiselectListBox-CHvGxAhY.js → MultiselectListBox-CfdPbcn1.js} +105 -86
  27. package/dist/NameFilter-BV68t_P5.js +37 -0
  28. package/dist/NumberControl-Dm01CJW9.js +33 -0
  29. package/dist/NumberControlBase-CN5eTKEm.js +58 -0
  30. package/dist/{NumberInput-DJ38AGiR.js → NumberInput-DWTImcA_.js} +72 -54
  31. package/dist/OneOfDropdown-DuXXP0Qn.js +50 -0
  32. package/dist/RadioControl-X6HLs9F1.js +36 -0
  33. package/dist/RadioControlBase-BGUHTIUl.js +111 -0
  34. package/dist/{RichTextControl-CXY1ULxR.js → RichTextControl-B1mJMs1e.js} +5462 -4668
  35. package/dist/SectionHeading-B6JkPyMh.js +31 -0
  36. package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js +15603 -0
  37. package/dist/SectionLayout-7pXn4OHo.js +61 -0
  38. package/dist/SettingsSubPanel-DToMRoLu.js +48 -0
  39. package/dist/SettingsSubPanelLayout-DnZnghFr.js +83 -0
  40. package/dist/SimpleButtonControl-DOSd92Kq.js +84 -0
  41. package/dist/SimpleTwinlistControl-RBfQTk47.js +31 -0
  42. package/dist/SingleSelectControl-C-GLQD-a.js +73 -0
  43. package/dist/SingleSelectListBoxControl-CDg_1QUT.js +260 -0
  44. package/dist/SortListControl-CWuxKIEb.js +445 -0
  45. package/dist/StyledListItem-NqAG7jSw.js +81 -0
  46. package/dist/TextAreaControl-Dt5ZGrae.js +122 -0
  47. package/dist/TextControl-w9vrCC1T.js +54 -0
  48. package/dist/TimeControl-DiNQSV4K.js +46 -0
  49. package/dist/TwinlistControlBase-CMFEecdr.js +47 -0
  50. package/dist/TwinlistLoadingInfo-Cy6HY-97.js +1080 -0
  51. package/dist/TypedStringFilter-FUF8sqOm.js +32 -0
  52. package/dist/ValueSwitch-Ozmr1YfK.js +162 -0
  53. package/dist/ValueSwitchControl-CdFlHo-2.js +33 -0
  54. package/dist/VerticalLayout-DY8gbasK.js +39 -0
  55. package/dist/VerticalLayoutBase-CpN-KONq.js +32 -0
  56. package/dist/ZonedDateTimeControl-Cg3dAfq5.js +79 -0
  57. package/dist/{_baseEach-cjHvi5iT.js → _baseEach-CWap1NWh.js} +4 -4
  58. package/dist/{_baseIteratee-CIxt0KWU.js → _baseIteratee-D0MXvnuf.js} +27 -27
  59. package/dist/{_getTag-sLUyzSDj.js → _getTag-BvpAzjaz.js} +10 -10
  60. package/dist/{arrow-dropdown-DdgjzLAO.js → arrow-dropdown-eS-nVNCv.js} +9 -3
  61. package/dist/{arrow-next-CIOU5o42.js → arrow-next-BmOStWql.js} +9 -3
  62. package/dist/{close-BuY4mhXV.js → close-0dYG2oDA.js} +9 -3
  63. package/dist/floating-ui.vue-CDo9Kas1.js +1055 -0
  64. package/dist/{hotkeys-kwHHtFKz.js → hotkeys-rxnt4egK.js} +1 -1
  65. package/dist/index-CpKfM262.js +376 -0
  66. package/dist/knime-jsonforms.css +1 -1
  67. package/dist/knime-jsonforms.js +133 -110
  68. package/dist/{localTimeUtils-Dv-1R88J.js → localTimeUtils-CfchSrLG.js} +179 -181
  69. package/dist/magic-string.es-BQ9KnLz-.js +659 -0
  70. package/dist/navigator-e30QQMkl.js +4 -0
  71. package/dist/popper-LGjf7Wza.js +905 -0
  72. package/dist/reload-57Xc2t-6.js +23 -0
  73. package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +26 -22
  74. package/dist/src/higherOrderComponents/control/errorMessage/ErrorLine.vue.d.ts +3 -4
  75. package/dist/src/higherOrderComponents/control/errorMessage/ErrorMessages.vue.d.ts +16 -10
  76. package/dist/src/higherOrderComponents/control/errorMessage/withErrorMessage.d.ts +1 -1
  77. package/dist/src/higherOrderComponents/control/util.d.ts +7 -33
  78. package/dist/src/higherOrderComponents/layout/util.d.ts +1 -17
  79. package/dist/src/layoutComponents/Form.vue.d.ts +12 -4
  80. package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +1 -1
  81. package/dist/src/layoutComponents/SectionLayout.vue.d.ts +13 -5
  82. package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +1 -1
  83. package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +16 -9
  84. package/dist/src/layoutComponents/section/SectionHeading.vue.d.ts +13 -6
  85. package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue.d.ts +2 -2
  86. package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanelBackArrow.vue.d.ts +1 -1
  87. package/dist/src/renderers/dateTimeFormatPickerRenderer.d.ts +2 -2
  88. package/dist/src/renderers/defaultRenderers.d.ts +966 -151
  89. package/dist/src/renderers/dropdownRenderer.d.ts +1 -1
  90. package/dist/src/renderers/fallbackRenderers.d.ts +8 -8
  91. package/dist/src/renderers/horizontalLayoutRenderer.d.ts +1 -1
  92. package/dist/src/renderers/sectionLayoutRenderer.d.ts +4 -4
  93. package/dist/src/renderers/simpleButtonRenderer.d.ts +7 -89
  94. package/dist/src/renderers/sortListRenderer.d.ts +853 -20
  95. package/dist/src/renderers/textMessageRenderer.d.ts +65 -1
  96. package/dist/src/renderers/textRenderer.d.ts +1 -1
  97. package/dist/src/renderers/verticalLayoutRenderer.d.ts +2 -2
  98. package/dist/src/renderers/zonedDateTimeRenderer.d.ts +1 -1
  99. package/dist/src/uiComponents/CheckboxControl.vue.d.ts +15 -6
  100. package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +2 -1
  101. package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +2 -1
  102. package/dist/src/uiComponents/DateControl.vue.d.ts +2 -1
  103. package/dist/src/uiComponents/DateTimeControl.vue.d.ts +2 -1
  104. package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +2 -1
  105. package/dist/src/uiComponents/DateTimeFormatPickerWithTypeControl.vue.d.ts +2 -1
  106. package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -1
  107. package/dist/src/uiComponents/IntegerControl.vue.d.ts +2 -1
  108. package/dist/src/uiComponents/IntervalControl.vue.d.ts +2 -1
  109. package/dist/src/uiComponents/MultiSelectListBoxControl.vue.d.ts +2 -1
  110. package/dist/src/uiComponents/NumberControl.vue.d.ts +2 -1
  111. package/dist/src/uiComponents/NumberControlBase.vue.d.ts +5 -9
  112. package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +2 -1
  113. package/dist/src/uiComponents/RadioControl.vue.d.ts +2 -1
  114. package/dist/src/uiComponents/RadioControlBase.vue.d.ts +4 -8
  115. package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +5 -129
  116. package/dist/src/uiComponents/SingleSelectControl.vue.d.ts +2 -1
  117. package/dist/src/uiComponents/SingleSelectListBoxControl.vue.d.ts +2 -1
  118. package/dist/src/uiComponents/SortListControl.vue.d.ts +845 -12
  119. package/dist/src/uiComponents/TextAreaControl.vue.d.ts +2 -1
  120. package/dist/src/uiComponents/TextControl.vue.d.ts +203 -3
  121. package/dist/src/uiComponents/TextMessageControl.vue.d.ts +2 -1
  122. package/dist/src/uiComponents/TimeControl.vue.d.ts +2 -1
  123. package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +2 -1
  124. package/dist/src/uiComponents/ZonedDateTimeControl.vue.d.ts +2 -1
  125. package/dist/src/uiComponents/composables/useProvidedState.d.ts +1 -1
  126. package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +1 -1
  127. package/dist/src/uiComponents/richTextControl/DialogLinkModal.vue.d.ts +3 -1
  128. package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +230 -1
  129. package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +2 -1
  130. package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +2 -1
  131. package/dist/src/uiComponents/twinlist/MultimodeTwinlistControl.vue.d.ts +8 -15
  132. package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +2 -1
  133. package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -1
  134. package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +5 -10
  135. package/dist/src/uiComponents/twinlist/TypedStringFilter.vue.d.ts +2 -1
  136. package/dist/testUtils/component.d.ts +18 -18
  137. package/dist/testing.js +8688 -8655
  138. package/dist/{toString-C_MqBj3_.js → toString-C-X8cE7K.js} +1 -1
  139. package/dist/{useBuiltinValidations-DP7OS71z.js → useBuiltinValidations-D0WuEacN.js} +1 -1
  140. package/dist/useDropdownNavigation-BfCXUheD.js +817 -0
  141. package/dist/usePossibleValues-DTVXBGRC.js +16 -0
  142. package/package.json +14 -14
  143. package/dist/AnyOfTwinlist-Cwxtyt0Q.js +0 -22
  144. package/dist/CheckboxControl-Oe97HhY3.js +0 -40
  145. package/dist/Checkboxes-DIPjJhPO.js +0 -103
  146. package/dist/CheckboxesControl-5QlPmjwv.js +0 -41
  147. package/dist/DateControl-CddCObVg.js +0 -29
  148. package/dist/DateTimeControl-DyXUJBHE.js +0 -54
  149. package/dist/DateTimeFormatInput-bO1zHUyp.js +0 -381
  150. package/dist/DateTimeFormatPickerControl-Dq25_JV2.js +0 -43
  151. package/dist/DateTimeFormatPickerWithTypeControl-DZib_x-B.js +0 -79
  152. package/dist/DateTimeInput-CEYEV8dt.js +0 -11204
  153. package/dist/Dropdown-CJj0CUA8.js +0 -604
  154. package/dist/DropdownControl-BNQKWzTT.js +0 -31
  155. package/dist/HorizontalLayout-6GwurgkR.js +0 -25
  156. package/dist/IntegerControl-DZIY-wb_.js +0 -20
  157. package/dist/IntervalControl-Yts36_MI.js +0 -546
  158. package/dist/LoadingDropdown-Dw-0WQ8x.js +0 -40
  159. package/dist/ManualTwinlistControl-C3NnAug1.js +0 -85
  160. package/dist/MultiSelectListBoxControl-3Q41S4aA.js +0 -34
  161. package/dist/MultimodeTwinlistControl-B2Jven29.js +0 -470
  162. package/dist/NameFilter-D0hKO5Fr.js +0 -24
  163. package/dist/NumberControl-DkeQT1iR.js +0 -20
  164. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-B9K5qEs3.js +0 -53
  165. package/dist/OneOfDropdown-NAgE-mPP.js +0 -34
  166. package/dist/RadioControl-DjrysNQ_.js +0 -24
  167. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-WaVJMdQq.js +0 -114
  168. package/dist/SectionHeading-BU1W5lDr.js +0 -19
  169. package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js +0 -14015
  170. package/dist/SectionLayout-CJP4sYyB.js +0 -46
  171. package/dist/SettingsSubPanel-KxEyzlB6.js +0 -5
  172. package/dist/SettingsSubPanelLayout-YBNVPQOD.js +0 -61
  173. package/dist/SimpleButtonControl-ejyUwJdL.js +0 -61
  174. package/dist/SimpleTwinlistControl-qXQxRI7h.js +0 -28
  175. package/dist/SingleSelectControl-B0JgDv7j.js +0 -58
  176. package/dist/SingleSelectListBoxControl-ClQOxnxW.js +0 -235
  177. package/dist/SortListControl-mvJofiWn.js +0 -375
  178. package/dist/StyledListItem-BXz08pEQ.js +0 -72
  179. package/dist/TextAreaControl-S4aoqAv1.js +0 -111
  180. package/dist/TextControl-rJrjrBw8.js +0 -4
  181. package/dist/TextControl.vue_vue_type_script_setup_true_lang-Bf6GB1zX.js +0 -50
  182. package/dist/TimeControl-DfhE8yu9.js +0 -42
  183. package/dist/TwinlistControlBase-D1l9t7Up.js +0 -40
  184. package/dist/TwinlistLoadingInfo-CQRx9cEu.js +0 -963
  185. package/dist/TypedStringFilter-C6JhWCCC.js +0 -29
  186. package/dist/ValueSwitch-CUYV7v67.js +0 -131
  187. package/dist/ValueSwitchControl-IP9SxrUs.js +0 -20
  188. package/dist/VerticalLayout-D2eQSYgv.js +0 -30
  189. package/dist/VerticalLayoutBase-DRfHwc4t.js +0 -20
  190. package/dist/ZonedDateTimeControl-Bi8cV34A.js +0 -75
  191. package/dist/floating-ui.vue-B-MrqKCT.js +0 -1019
  192. package/dist/index-CoRworrE.js +0 -322
  193. package/dist/magic-string.es-D-aKzDFf.js +0 -858
  194. package/dist/navigator-D_R-txCf.js +0 -7
  195. package/dist/popper-CRR--9mA.js +0 -907
  196. package/dist/reload-BVbCGubF.js +0 -17
  197. package/dist/src/JsonFormsDialog.vue.d.ts +0 -46
  198. package/dist/svgWithTitle-Cr3Pu3wr.js +0 -18
  199. package/dist/useDropdownNavigation-7o7SRJSo.js +0 -781
  200. package/dist/usePossibleValues-lz0Rcu_N.js +0 -20
@@ -1,963 +0,0 @@
1
- import { openBlock as d, createElementBlock as v, createElementVNode as r, computed as u, nextTick as Q, resolveComponent as w, createBlock as V, normalizeClass as k, withCtx as x, renderSlot as $, createVNode as I, createCommentVNode as y, defineComponent as j, useCssVars as q, ref as T, normalizeStyle as D, Fragment as ee, renderList as te, unref as H, toRef as U, toDisplayString as R } from "vue";
2
- import { N as ne } from "./arrow-next-CIOU5o42.js";
3
- import { u as O } from "./useSearch-hpyYQ_6y.js";
4
- import { D as le, G as se, _ as A, r as oe, x as ie } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js";
5
- import { M as ae } from "./MultiselectListBox-CHvGxAhY.js";
6
- import { C as ue } from "./close-BuY4mhXV.js";
7
- import { I as ce } from "./InputField-BYxW_-G3.js";
8
- import { c as P } from "./createMissingItem-B00Kg95q.js";
9
- import { L as de } from "./svgWithTitle-Cr3Pu3wr.js";
10
- const re = {
11
- xmlns: "http://www.w3.org/2000/svg",
12
- fill: "none",
13
- stroke: "#000",
14
- "stroke-linejoin": "round",
15
- viewBox: "0 0 32 32"
16
- };
17
- function he(e, t) {
18
- return d(), v("svg", re, t[0] || (t[0] = [
19
- r("circle", {
20
- cx: "13.2",
21
- cy: "13.2",
22
- r: "10"
23
- }, null, -1),
24
- r("path", { d: "m20.2 20.2 8.6 8.6" }, null, -1)
25
- ]));
26
- }
27
- const me = { render: he };
28
- var ve = "Expected a function";
29
- function fe(e, t, n) {
30
- var s = !0, o = !0;
31
- if (typeof e != "function")
32
- throw new TypeError(ve);
33
- return se(n) && (s = "leading" in n ? !!n.leading : s, o = "trailing" in n ? !!n.trailing : o), le(e, t, {
34
- leading: s,
35
- maxWait: t,
36
- trailing: o
37
- });
38
- }
39
- const K = (e, t, n) => {
40
- const s = u(() => !e.value || e.value.length === 0 ? 0 : e.value.length), o = u(() => 0);
41
- return ((m, f, i) => `${m} of ${f} entries`)(
42
- s.value,
43
- t,
44
- o.value
45
- );
46
- }, we = {
47
- xmlns: "http://www.w3.org/2000/svg",
48
- fill: "none",
49
- stroke: "#000",
50
- "stroke-linejoin": "round",
51
- viewBox: "0 0 32 32"
52
- };
53
- function be(e, t) {
54
- return d(), v("svg", we, t[0] || (t[0] = [
55
- r("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)
56
- ]));
57
- }
58
- const ge = { render: be }, Se = {
59
- xmlns: "http://www.w3.org/2000/svg",
60
- fill: "none",
61
- stroke: "#000",
62
- "stroke-linejoin": "round",
63
- viewBox: "0 0 32 32"
64
- };
65
- function Ie(e, t) {
66
- return d(), v("svg", Se, t[0] || (t[0] = [
67
- r("path", {
68
- fill: "#000",
69
- stroke: "none",
70
- 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",
71
- class: "text"
72
- }, null, -1)
73
- ]));
74
- }
75
- const pe = { render: Ie }, _e = {
76
- clear: "Clear",
77
- inverseSearch: "Exclude results that match query",
78
- caseSensitive: "Toggle case sensitivity"
79
- }, ye = {
80
- name: "SearchInput",
81
- components: {
82
- InputField: ce,
83
- FunctionButton: oe,
84
- CloseIcon: ue,
85
- LensIcon: me,
86
- InverseSearchIcon: ge,
87
- UpperLowerCaseIcon: pe
88
- },
89
- props: {
90
- id: {
91
- type: String,
92
- default: null
93
- },
94
- name: {
95
- type: String,
96
- default: null
97
- },
98
- modelValue: {
99
- type: String,
100
- default: ""
101
- },
102
- placeholder: {
103
- type: String,
104
- // A pseudo-placeholder to allow hiding the clear-button without any input
105
- default: " "
106
- },
107
- initialCaseSensitiveSearch: {
108
- default: !1,
109
- type: Boolean
110
- },
111
- initialInverseSearch: {
112
- default: !1,
113
- type: Boolean
114
- },
115
- showCaseSensitiveSearchButton: {
116
- default: !1,
117
- type: Boolean
118
- },
119
- showInverseSearchButton: {
120
- default: !1,
121
- type: Boolean
122
- },
123
- autofocus: {
124
- default: !1,
125
- type: Boolean
126
- },
127
- disabled: {
128
- default: !1,
129
- type: Boolean
130
- },
131
- tooltips: {
132
- type: Object,
133
- default: () => ({})
134
- },
135
- focusOnMount: {
136
- type: Boolean,
137
- default: !1
138
- },
139
- ariaActivedescendant: {
140
- type: String,
141
- default: null
142
- },
143
- ariaOwns: {
144
- type: String,
145
- default: null
146
- },
147
- compact: {
148
- type: Boolean,
149
- default: !1
150
- }
151
- },
152
- emits: [
153
- "clear",
154
- "update:modelValue",
155
- "toggle-case-sensitive-search",
156
- "toggle-inverse-search",
157
- "focus"
158
- ],
159
- expose: ["focus"],
160
- data() {
161
- return {
162
- caseSensitiveSearch: this.initialCaseSensitiveSearch,
163
- inverseSearch: this.initialInverseSearch
164
- };
165
- },
166
- computed: {
167
- showClearButton() {
168
- return !this.disabled && this.modelValue !== "";
169
- },
170
- showSpacer() {
171
- return this.showClearButton && (this.showCaseSensitiveSearchButton || this.showInverseSearchButton);
172
- },
173
- tooltipsWithDefaults() {
174
- return { ..._e, ...this.tooltips };
175
- }
176
- },
177
- async mounted() {
178
- this.focusOnMount && (await Q(), this.focus());
179
- },
180
- methods: {
181
- clearSearch() {
182
- this.$emit("clear"), this.$emit("update:modelValue", ""), this.focus();
183
- },
184
- toggleCaseSensitiveSearch() {
185
- this.caseSensitiveSearch = !this.caseSensitiveSearch, this.$emit("toggle-case-sensitive-search", this.caseSensitiveSearch), this.focus();
186
- },
187
- toggleInverseSearch() {
188
- this.inverseSearch = !this.inverseSearch, this.$emit("toggle-inverse-search", this.inverseSearch), this.focus();
189
- },
190
- focus() {
191
- this.$refs.searchInput.focus();
192
- }
193
- }
194
- }, Le = {
195
- key: 0,
196
- class: "icon-slot-wrapper"
197
- }, ke = {
198
- key: 1,
199
- class: "spacer"
200
- };
201
- function Be(e, t, n, s, o, l) {
202
- const m = w("LensIcon"), f = w("CloseIcon"), i = w("FunctionButton"), S = w("UpperLowerCaseIcon"), b = w("InverseSearchIcon"), g = w("InputField");
203
- return d(), V(g, {
204
- id: n.id,
205
- ref: "searchInput",
206
- name: n.name,
207
- "model-value": n.modelValue,
208
- placeholder: n.placeholder,
209
- autofocus: n.autofocus,
210
- disabled: n.disabled,
211
- class: k(["search-input", { disabled: n.disabled }]),
212
- autocomplete: "off",
213
- "aria-owns": n.ariaOwns,
214
- "aria-activedescendant": n.ariaActivedescendant,
215
- role: "searchbox",
216
- compact: n.compact,
217
- onFocus: t[0] || (t[0] = (p) => e.$emit("focus", p)),
218
- "onUpdate:modelValue": t[1] || (t[1] = (p) => e.$emit("update:modelValue", p))
219
- }, {
220
- icon: x(() => [
221
- n.disabled ? y("", !0) : (d(), v("div", Le, [
222
- $(e.$slots, "icon", {}, () => [
223
- I(m)
224
- ], !0)
225
- ]))
226
- ]),
227
- iconRight: x(() => [
228
- l.showClearButton ? (d(), V(i, {
229
- key: 0,
230
- class: "clear-search",
231
- compact: n.compact,
232
- title: l.tooltipsWithDefaults.clear,
233
- onClick: l.clearSearch
234
- }, {
235
- default: x(() => [
236
- I(f)
237
- ]),
238
- _: 1
239
- }, 8, ["compact", "title", "onClick"])) : y("", !0),
240
- l.showSpacer ? (d(), v("span", ke)) : y("", !0),
241
- !n.disabled && n.showCaseSensitiveSearchButton ? (d(), V(i, {
242
- key: 2,
243
- class: "toggle-case-sensitive-search",
244
- compact: n.compact,
245
- active: o.caseSensitiveSearch,
246
- title: l.tooltipsWithDefaults.caseSensitive,
247
- onClick: l.toggleCaseSensitiveSearch
248
- }, {
249
- default: x(() => [
250
- I(S)
251
- ]),
252
- _: 1
253
- }, 8, ["compact", "active", "title", "onClick"])) : y("", !0),
254
- !n.disabled && n.showInverseSearchButton ? (d(), V(i, {
255
- key: 3,
256
- class: "toggle-inverse-search",
257
- compact: n.compact,
258
- title: l.tooltipsWithDefaults.inverseSearch,
259
- active: o.inverseSearch,
260
- onClick: l.toggleInverseSearch
261
- }, {
262
- default: x(() => [
263
- I(b)
264
- ]),
265
- _: 1
266
- }, 8, ["compact", "title", "active", "onClick"])) : y("", !0)
267
- ]),
268
- _: 3
269
- }, 8, ["id", "name", "model-value", "placeholder", "autofocus", "disabled", "class", "aria-owns", "aria-activedescendant", "compact"]);
270
- }
271
- const xe = /* @__PURE__ */ A(ye, [["render", Be], ["__scopeId", "data-v-edba0a22"]]), Ve = {
272
- xmlns: "http://www.w3.org/2000/svg",
273
- fill: "none",
274
- stroke: "#000",
275
- "stroke-linejoin": "round",
276
- viewBox: "0 0 32 32"
277
- };
278
- function Ce(e, t) {
279
- return d(), v("svg", Ve, t[0] || (t[0] = [
280
- r("path", { d: "m14.8 5 11 11-11 11M6.2 5l11 11-11 11" }, null, -1)
281
- ]));
282
- }
283
- const Me = { render: Ce }, Re = {
284
- xmlns: "http://www.w3.org/2000/svg",
285
- fill: "none",
286
- stroke: "#000",
287
- "stroke-linejoin": "round",
288
- viewBox: "0 0 32 32"
289
- };
290
- function Ee(e, t) {
291
- return d(), v("svg", Re, t[0] || (t[0] = [
292
- r("path", { d: "m17.2 27-11-11 11-11m8.6 22-11-11 11-11" }, null, -1)
293
- ]));
294
- }
295
- const Te = { render: Ee }, Ae = {
296
- xmlns: "http://www.w3.org/2000/svg",
297
- fill: "none",
298
- stroke: "#000",
299
- "stroke-linejoin": "round",
300
- viewBox: "0 0 32 32"
301
- };
302
- function De(e, t) {
303
- return d(), v("svg", Ae, t[0] || (t[0] = [
304
- r("path", { d: "m21.5 27-11-11 11-11" }, null, -1)
305
- ]));
306
- }
307
- const ze = { render: De }, He = 10, W = "2px", Ne = /* @__PURE__ */ j({
308
- __name: "ResizeHandle",
309
- props: {
310
- numberOfHandles: {},
311
- handleWidth: {},
312
- connectHandlesOnResize: { type: Boolean, default: !1 },
313
- multipleHandlesHandleGap: { default: "0px" },
314
- disabled: { type: Boolean, default: !1 }
315
- },
316
- emits: ["resize-move", "resize-end"],
317
- setup(e, { emit: t }) {
318
- q((a) => ({
319
- aa149252: W
320
- }));
321
- const n = t, s = e, o = T(0), l = T(null), m = u(
322
- () => `calc(${s.handleWidth} + 2 * ${W})`
323
- ), f = u(
324
- () => s.connectHandlesOnResize && s.numberOfHandles > 1 && l.value !== null
325
- ), i = u(
326
- () => `(${s.numberOfHandles} - 1) * ${s.multipleHandlesHandleGap}`
327
- ), S = u(
328
- () => `(2 * ${s.numberOfHandles})`
329
- ), b = u(
330
- () => `(100% - ${i.value}) / ${S.value}`
331
- ), g = u(
332
- () => `calc(100% - 2 * ${b.value})`
333
- ), p = (a) => {
334
- s.disabled || (a.target.setPointerCapture(a.pointerId), a.preventDefault(), l.value = a.pointerId, o.value = a.clientY);
335
- }, B = fe((a) => {
336
- if (l.value === a.pointerId) {
337
- const _ = a.clientY - o.value;
338
- (_ < 0 && a.offsetY <= 0 || _ > 0 && a.offsetY >= 0) && n("resize-move", _), o.value = a.clientY;
339
- }
340
- }, He), c = (a) => {
341
- l.value === a.pointerId && (o.value = 0, l.value = null, n("resize-end"));
342
- };
343
- return (a, _) => (d(), v("div", {
344
- class: "resize-handle-container",
345
- style: D({ gap: a.multipleHandlesHandleGap })
346
- }, [
347
- f.value ? (d(), v("div", {
348
- key: 0,
349
- class: "handle connection",
350
- style: D({ width: g.value })
351
- }, null, 4)) : y("", !0),
352
- (d(!0), v(ee, null, te(a.numberOfHandles, (C) => (d(), v("div", {
353
- key: C,
354
- class: k(["handle-container", { disabled: a.disabled }]),
355
- style: D({ width: m.value }),
356
- onPointerdown: p,
357
- onPointerup: c,
358
- onPointermove: _[0] || (_[0] = //@ts-ignore
359
- (...M) => H(B) && H(B)(...M)),
360
- onLostpointercapture: c
361
- }, _[1] || (_[1] = [
362
- r("div", { class: "handle" }, null, -1)
363
- ]), 38))), 128))
364
- ], 4));
365
- }
366
- }), Ue = /* @__PURE__ */ A(Ne, [["__scopeId", "data-v-2123c51f"]]), E = "Enter", z = 5, Y = 30, Z = 24, Oe = 4, Pe = 56, Ke = ["left", "right"], We = Oe * Z + 2 * Pe, Fe = `calc((100% - ${Y}px) * 1 / 6)`, Ge = (e) => {
367
- const t = u(
368
- () => e.value !== null && "includeUnknownValues" in e.value ? { withUnknownValues: e.value } : { standard: e.value }
369
- ), n = u(() => typeof t.value.standard < "u" ? t.value.standard : t.value.withUnknownValues.includedValues), s = u(
370
- () => {
371
- var i;
372
- return ((i = t.value.withUnknownValues) == null ? void 0 : i.excludedValues) ?? null;
373
- }
374
- ), o = u(
375
- () => {
376
- var i;
377
- return ((i = t.value.withUnknownValues) == null ? void 0 : i.includeUnknownValues) ?? null;
378
- }
379
- ), l = u(
380
- () => o.value === !1
381
- ), m = u(
382
- () => o.value === !0
383
- );
384
- return {
385
- includedValues: n,
386
- excludedValues: s,
387
- showUnknownExcludedValues: l,
388
- showUnknownIncludedValues: m,
389
- getEmitValue: (i, S = (g) => g, b = (g) => g) => t.value.withUnknownValues ? {
390
- includedValues: i,
391
- excludedValues: S(s.value),
392
- includeUnknownValues: b(
393
- t.value.withUnknownValues.includeUnknownValues
394
- )
395
- } : i
396
- };
397
- }, N = {
398
- name: "Twinlist",
399
- components: {
400
- ArrowNextDoubleIcon: Me,
401
- ArrowNextIcon: ne,
402
- ArrowPrevDoubleIcon: Te,
403
- ArrowPrevIcon: ze,
404
- MultiselectListBox: ae,
405
- Label: ie,
406
- SearchInput: xe,
407
- ResizeHandle: Ue
408
- },
409
- props: {
410
- modelValue: {
411
- type: [Object, Array, null],
412
- default: null
413
- },
414
- initialCaseSensitiveSearch: {
415
- default: !1,
416
- type: Boolean
417
- },
418
- initialSearchTerm: {
419
- type: String,
420
- required: !1,
421
- default: ""
422
- },
423
- /**
424
- * Hiding and disabling
425
- */
426
- showSearch: {
427
- default: !1,
428
- type: Boolean
429
- },
430
- disabled: {
431
- default: !1,
432
- type: Boolean
433
- },
434
- showEmptyState: {
435
- default: !0,
436
- type: Boolean
437
- },
438
- /**
439
- * Labels
440
- */
441
- leftLabel: {
442
- type: String,
443
- default: "Possible values"
444
- },
445
- rightLabel: {
446
- type: String,
447
- default: "Selected values"
448
- },
449
- withSearchLabel: {
450
- default: !1,
451
- type: Boolean
452
- },
453
- searchLabel: {
454
- type: String,
455
- required: !1,
456
- default: "Search values"
457
- },
458
- searchPlaceholder: {
459
- type: String,
460
- required: !1,
461
- default: "Search"
462
- },
463
- unknownValuesText: {
464
- type: String,
465
- required: !1,
466
- default: "Unknown values"
467
- },
468
- /**
469
- * Is only used when emptyStateComponent is null
470
- */
471
- emptyStateLabel: {
472
- default: "No entries in this list",
473
- type: String
474
- },
475
- /**
476
- * this component is displayed centered in the middle of the box in case it is empty
477
- */
478
- emptyStateComponent: {
479
- default: null,
480
- type: Object
481
- },
482
- /**
483
- * Controls the size of the list.
484
- * Number of visible items (for others user need to scroll)
485
- * - 0 means all
486
- * - values 1 - 4 are ignored; 5 is minimum
487
- */
488
- size: {
489
- type: Number,
490
- default: 0,
491
- validator(e) {
492
- return e >= 0;
493
- }
494
- },
495
- showResizeHandle: {
496
- type: Boolean,
497
- default: !1
498
- },
499
- isValid: {
500
- default: !0,
501
- type: Boolean
502
- },
503
- /**
504
- * List of possible values. Each item must have an `id` and a `text` property
505
- * @example
506
- * [{
507
- * id: 'pdf',
508
- * text: 'PDF'
509
- * }, {
510
- * id: 'XLS',
511
- * text: 'Excel',
512
- * }]
513
- */
514
- possibleValues: {
515
- type: Array,
516
- default: () => []
517
- },
518
- compact: {
519
- type: Boolean,
520
- default: !1
521
- }
522
- },
523
- emits: [
524
- /**
525
- * This event gets emitted whenever the user changes the selection.
526
- * In case the modelValue of this Twinlist is with unknown values, the emitted value here will also be.
527
- */
528
- "update:modelValue"
529
- ],
530
- setup(e) {
531
- const {
532
- includedValues: t,
533
- excludedValues: n,
534
- showUnknownExcludedValues: s,
535
- showUnknownIncludedValues: o,
536
- getEmitValue: l
537
- } = Ge(U(e, "modelValue")), m = T(e.initialSearchTerm), f = T(e.initialCaseSensitiveSearch), i = u(() => e.possibleValues.map((h) => h.id)), S = u(() => new Set(i.value)), b = u(() => t.value ? o.value ? t.value.filter(
538
- (h) => S.value.has(h)
539
- ) : t.value : null), g = u(() => Object.assign(
540
- {},
541
- ...e.possibleValues.map((h, L) => ({
542
- [h.id]: { item: h, index: L }
543
- }))
544
- )), p = u(() => b.value === null ? [] : b.value.map(
545
- (h) => {
546
- var L;
547
- return ((L = g.value[h]) == null ? void 0 : L.item) || P(h);
548
- }
549
- )), B = U(e, "showSearch"), c = O(
550
- m,
551
- f,
552
- p,
553
- B
554
- ), a = u(() => {
555
- if (!n.value) {
556
- const h = new Set(t.value);
557
- return i.value.filter(
558
- (L) => !h.has(L)
559
- );
560
- }
561
- return s.value ? n.value.filter(
562
- (h) => S.value.has(h)
563
- ) : n.value;
564
- }), _ = u(() => b.value === null ? [] : a.value.map(
565
- (h) => {
566
- var L;
567
- return ((L = g.value[h]) == null ? void 0 : L.item) || P(h);
568
- }
569
- )), C = O(
570
- m,
571
- f,
572
- _,
573
- B
574
- ), M = u(() => e.showSearch && m.value !== ""), X = u(() => e.showSearch && M.value ? K(C, a.value.length) : null), J = u(() => {
575
- var h;
576
- return e.showSearch && M.value ? K(
577
- c,
578
- (h = b.value) == null ? void 0 : h.length
579
- ) : null;
580
- });
581
- return {
582
- includedValues: t,
583
- excludedValues: n,
584
- showUnknownExcludedValues: s,
585
- showUnknownIncludedValues: o,
586
- getEmitValue: l,
587
- searchTerm: m,
588
- filteredExcludedItems: C,
589
- filteredIncludedItems: c,
590
- knownExcludedValues: a,
591
- knownIncludedValues: b,
592
- possibleValueIds: i,
593
- possibleValueIdsSet: S,
594
- excludedLabels: X,
595
- includedLabels: J,
596
- caseSensitiveSearch: f,
597
- allIncludedItems: p,
598
- possibleValueMap: g
599
- };
600
- },
601
- data() {
602
- return {
603
- invalidPossibleValueIds: /* @__PURE__ */ new Set(),
604
- rightSelected: [],
605
- leftSelected: [],
606
- unknownValuesId: Symbol("Unknown values"),
607
- constants: Object.freeze({
608
- MIN_LIST_SIZE: z,
609
- BUTTON_HEIGHT: Z,
610
- BUTTON_WIDTH: Y,
611
- RESIZE_HANDLE_WIDTH: Fe,
612
- MAX_HEIGHT_BUTTONS_CENTER_ALIGNMENT: We
613
- })
614
- };
615
- },
616
- computed: {
617
- listSize() {
618
- const e = this.size === 0 ? this.possibleValues.length : this.size;
619
- return e > z ? e : z;
620
- },
621
- moveAllRightButtonDisabled() {
622
- return this.filteredExcludedItems.length === 0 && !this.showUnknownExcludedValues;
623
- },
624
- moveRightButtonDisabled() {
625
- return this.leftSelected.length === 0;
626
- },
627
- moveAllLeftButtonDisabled() {
628
- return this.filteredIncludedItems.length === 0 && !this.showUnknownIncludedValues;
629
- },
630
- moveLeftButtonDisabled() {
631
- return this.rightSelected.length === 0;
632
- }
633
- },
634
- mounted() {
635
- this.showResizeHandle && this.getListBoxes().forEach((e) => e.initResizeHeight());
636
- },
637
- methods: {
638
- getIndex(e) {
639
- var t;
640
- return ((t = this.possibleValueMap[e]) == null ? void 0 : t.index) ?? -1;
641
- },
642
- compareByOriginalSorting(e, t) {
643
- return this.getIndex(e) - this.getIndex(t);
644
- },
645
- clearSelections() {
646
- this.getListBoxes().forEach((e) => e.clearSelection());
647
- },
648
- moveItems(e, {
649
- toNewIncludedValues: t,
650
- toNewExcludedValues: n
651
- }) {
652
- const s = e.filter((i) => i !== this.unknownValuesId), o = e.length > s.length, l = {
653
- knownValues: s,
654
- movingUnknownValues: o
655
- };
656
- let m = null, f = null;
657
- this.includedValues !== null && (m = t({
658
- previous: this.includedValues,
659
- movingParts: l
660
- })), this.excludedValues && (f = n({
661
- previous: this.knownExcludedValues,
662
- movingParts: l
663
- })), this.clearSelections(), this.$emit(
664
- "update:modelValue",
665
- this.getEmitValue(
666
- m,
667
- () => f,
668
- (i) => o ? !i : i
669
- )
670
- );
671
- },
672
- moveRight(e = null) {
673
- this.moveItems(e ?? this.leftSelected, {
674
- toNewIncludedValues: this.addMovedItems.bind(this),
675
- toNewExcludedValues: this.filterMovedItems.bind(this)
676
- });
677
- },
678
- moveLeft(e = null) {
679
- this.moveItems(e ?? this.rightSelected, {
680
- toNewIncludedValues: this.filterMovedItems.bind(this),
681
- toNewExcludedValues: this.addMovedItems.bind(this)
682
- });
683
- },
684
- /**
685
- * Filters out the moved items and also invalid items if unknown values are being moved.
686
- */
687
- filterMovedItems({
688
- previous: e,
689
- movingParts: { movingUnknownValues: t, knownValues: n }
690
- }) {
691
- const s = new Set(n);
692
- return e.filter(
693
- (o) => !s.has(o) && (!t || this.possibleValueIdsSet.has(o))
694
- );
695
- },
696
- /**
697
- * Adds the given items sorting by the order in the possible values afterwards and removing invalid items
698
- * if unknown values are being moved
699
- */
700
- addMovedItems({
701
- previous: e,
702
- movingParts: { movingUnknownValues: t, knownValues: n }
703
- }) {
704
- return [
705
- ...t ? e.filter((s) => this.possibleValueIdsSet.has(s)) : e,
706
- ...n.filter((s) => this.possibleValueIdsSet.has(s))
707
- ].sort(this.compareByOriginalSorting);
708
- },
709
- onMoveRightButtonClick() {
710
- this.moveRight();
711
- },
712
- onMoveAllRightButtonClick() {
713
- const e = this.filteredExcludedItems.map((t) => t.id);
714
- this.moveRight(
715
- e.concat(
716
- this.showUnknownExcludedValues ? [this.unknownValuesId] : []
717
- )
718
- );
719
- },
720
- onMoveAllRightButtonKey(e) {
721
- e.key === E && (this.onMoveAllRightButtonClick(), this.stopPropagation(e));
722
- },
723
- onMoveRightButtonKey(e) {
724
- e.key === E && (this.moveRight(), this.stopPropagation(e));
725
- },
726
- onMoveLeftButtonClick() {
727
- this.moveLeft();
728
- },
729
- onMoveAllLeftButtonClick() {
730
- const e = this.filteredIncludedItems.map((t) => t.id);
731
- this.moveLeft(
732
- e.concat(
733
- this.showUnknownIncludedValues ? [this.unknownValuesId] : []
734
- )
735
- );
736
- },
737
- onMoveLeftButtonKey(e) {
738
- e.key === E && (this.moveLeft(), this.stopPropagation(e));
739
- },
740
- onMoveAllLeftButtonKey(e) {
741
- e.key === E && (this.onMoveAllLeftButtonClick(), this.stopPropagation(e));
742
- },
743
- stopPropagation(e) {
744
- e.preventDefault(), e.stopPropagation();
745
- },
746
- onLeftListBoxDoubleClick(e) {
747
- this.moveRight([e]);
748
- },
749
- onLeftListBoxShiftDoubleClick(e) {
750
- this.moveRight(e);
751
- },
752
- onRightListBoxDoubleClick(e) {
753
- this.moveLeft([e]);
754
- },
755
- onRightListBoxShiftDoubleClick(e) {
756
- this.moveLeft(e);
757
- },
758
- onLeftInput(e) {
759
- e.length > 0 && this.$refs.right.clearSelection(), this.leftSelected = e;
760
- },
761
- onRightInput(e) {
762
- e.length > 0 && this.$refs.left.clearSelection(), this.rightSelected = e;
763
- },
764
- onSearchInput(e) {
765
- this.searchTerm = e;
766
- },
767
- hasSelection() {
768
- var e;
769
- return (((e = this.includedValues) == null ? void 0 : e.length) ?? 0) > 0;
770
- },
771
- validate() {
772
- const e = !this.filteredIncludedItems.some((t) => t.invalid) && (!this.excludedValues || !this.filteredExcludedItems.some((t) => t.invalid));
773
- return {
774
- isValid: e,
775
- errorMessage: e ? null : "One or more of the selected items is invalid."
776
- };
777
- },
778
- getListBoxes() {
779
- return Ke.map(
780
- (e) => this.$refs[e]
781
- );
782
- },
783
- onResizeMove(e) {
784
- this.getListBoxes().forEach((t) => t.onResizeMove(e));
785
- },
786
- onResizeEnd() {
787
- this.getListBoxes().forEach((e) => e.onResizeEnd());
788
- }
789
- }
790
- }, F = () => {
791
- q((e) => ({
792
- "075e49be": `${e.constants.BUTTON_WIDTH}px`,
793
- a6106a36: `${e.constants.MAX_HEIGHT_BUTTONS_CENTER_ALIGNMENT}px`,
794
- cef70cb6: `${e.constants.BUTTON_HEIGHT}px`
795
- }));
796
- }, G = N.setup;
797
- N.setup = G ? (e, t) => (F(), G(e, t)) : F;
798
- const je = { class: "twinlist" }, qe = { class: "header" }, Ye = { class: "title" }, Ze = ["title"], Xe = ["title"], Je = { class: "title" }, Qe = ["title"], $e = ["title"], et = { class: "buttons" };
799
- function tt(e, t, n, s, o, l) {
800
- const m = w("SearchInput"), f = w("Label"), i = w("MultiselectListBox"), S = w("ArrowNextIcon"), b = w("ArrowNextDoubleIcon"), g = w("ArrowPrevIcon"), p = w("ArrowPrevDoubleIcon"), B = w("ResizeHandle");
801
- return d(), v("div", je, [
802
- n.showSearch ? (d(), V(f, {
803
- key: 0,
804
- active: n.withSearchLabel,
805
- text: n.searchLabel,
806
- class: "search-wrapper"
807
- }, {
808
- default: x(({ labelForId: c }) => [
809
- I(m, {
810
- id: c,
811
- ref: "search",
812
- placeholder: n.searchPlaceholder,
813
- "model-value": s.searchTerm,
814
- label: n.searchLabel,
815
- "initial-case-sensitive-search": n.initialCaseSensitiveSearch,
816
- "show-case-sensitive-search-button": "",
817
- disabled: n.disabled,
818
- tooltips: {
819
- inverseSearch: "Move matching to other side"
820
- },
821
- compact: n.compact,
822
- "onUpdate:modelValue": l.onSearchInput,
823
- onToggleCaseSensitiveSearch: t[0] || (t[0] = (a) => s.caseSensitiveSearch = a)
824
- }, null, 8, ["id", "placeholder", "model-value", "label", "initial-case-sensitive-search", "disabled", "compact", "onUpdate:modelValue"])
825
- ]),
826
- _: 1
827
- }, 8, ["active", "text"])) : y("", !0),
828
- r("div", qe, [
829
- r("div", Ye, [
830
- r("div", {
831
- class: "label",
832
- title: n.leftLabel
833
- }, R(n.leftLabel), 9, Ze),
834
- s.excludedLabels ? (d(), v("div", {
835
- key: 0,
836
- title: s.excludedLabels,
837
- class: "info"
838
- }, R(s.excludedLabels), 9, Xe)) : y("", !0)
839
- ]),
840
- t[9] || (t[9] = r("div", { class: "space" }, null, -1)),
841
- r("div", Je, [
842
- r("div", {
843
- class: "label",
844
- title: n.rightLabel
845
- }, R(n.rightLabel), 9, Qe),
846
- s.includedLabels ? (d(), v("div", {
847
- key: 0,
848
- title: s.includedLabels,
849
- class: "info"
850
- }, R(s.includedLabels), 9, $e)) : y("", !0)
851
- ])
852
- ]),
853
- r("div", {
854
- class: k(["lists", { disabled: n.disabled }])
855
- }, [
856
- I(i, {
857
- ref: "left",
858
- "with-is-empty-state": n.showEmptyState,
859
- "empty-state-label": n.emptyStateLabel,
860
- "empty-state-component": n.emptyStateComponent,
861
- size: l.listSize,
862
- "min-size": o.constants.MIN_LIST_SIZE,
863
- class: "list-box",
864
- "model-value": o.leftSelected,
865
- "with-bottom-value": s.showUnknownExcludedValues,
866
- "bottom-value": { id: o.unknownValuesId, text: n.unknownValuesText },
867
- "is-valid": n.isValid,
868
- "possible-values": s.filteredExcludedItems,
869
- ariaLabel: n.leftLabel,
870
- disabled: n.disabled,
871
- onDoubleClickOnItem: l.onLeftListBoxDoubleClick,
872
- onDoubleClickShift: l.onLeftListBoxShiftDoubleClick,
873
- onKeyArrowRight: l.moveRight,
874
- "onUpdate:modelValue": l.onLeftInput
875
- }, 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"]),
876
- r("div", et, [
877
- r("div", {
878
- ref: "moveRight",
879
- class: k({ disabled: l.moveRightButtonDisabled || n.disabled }),
880
- role: "button",
881
- tabindex: "0",
882
- onClick: t[1] || (t[1] = (...c) => l.onMoveRightButtonClick && l.onMoveRightButtonClick(...c)),
883
- onKeydown: t[2] || (t[2] = (...c) => l.onMoveRightButtonKey && l.onMoveRightButtonKey(...c))
884
- }, [
885
- I(S, { class: "icon" })
886
- ], 34),
887
- r("div", {
888
- ref: "moveAllRight",
889
- class: k({ disabled: l.moveAllRightButtonDisabled || n.disabled }),
890
- role: "button",
891
- tabindex: "0",
892
- onClick: t[3] || (t[3] = (...c) => l.onMoveAllRightButtonClick && l.onMoveAllRightButtonClick(...c)),
893
- onKeydown: t[4] || (t[4] = (...c) => l.onMoveAllRightButtonKey && l.onMoveAllRightButtonKey(...c))
894
- }, [
895
- I(b, { class: "icon" })
896
- ], 34),
897
- r("div", {
898
- ref: "moveLeft",
899
- class: k({ disabled: l.moveLeftButtonDisabled || n.disabled }),
900
- role: "button",
901
- tabindex: "0",
902
- onClick: t[5] || (t[5] = (...c) => l.onMoveLeftButtonClick && l.onMoveLeftButtonClick(...c)),
903
- onKeydown: t[6] || (t[6] = (...c) => l.onMoveLeftButtonKey && l.onMoveLeftButtonKey(...c))
904
- }, [
905
- I(g, { class: "icon" })
906
- ], 34),
907
- r("div", {
908
- ref: "moveAllLeft",
909
- class: k({ disabled: l.moveAllLeftButtonDisabled || n.disabled }),
910
- role: "button",
911
- tabindex: "0",
912
- onClick: t[7] || (t[7] = (...c) => l.onMoveAllLeftButtonClick && l.onMoveAllLeftButtonClick(...c)),
913
- onKeydown: t[8] || (t[8] = (...c) => l.onMoveAllLeftButtonKey && l.onMoveAllLeftButtonKey(...c))
914
- }, [
915
- I(p, { class: "icon" })
916
- ], 34)
917
- ]),
918
- I(i, {
919
- ref: "right",
920
- class: k(["list-box", { "with-empty-state-icon": n.emptyStateComponent }]),
921
- "model-value": o.rightSelected,
922
- "with-bottom-value": s.showUnknownIncludedValues,
923
- "bottom-value": { id: o.unknownValuesId, text: n.unknownValuesText },
924
- "with-is-empty-state": n.showEmptyState,
925
- "empty-state-label": n.emptyStateLabel,
926
- "empty-state-component": n.emptyStateComponent,
927
- "possible-values": s.filteredIncludedItems,
928
- size: l.listSize,
929
- "min-size": o.constants.MIN_LIST_SIZE,
930
- ariaLabel: n.rightLabel,
931
- disabled: n.disabled,
932
- onDoubleClickOnItem: l.onRightListBoxDoubleClick,
933
- onDoubleClickShift: l.onRightListBoxShiftDoubleClick,
934
- onKeyArrowLeft: l.moveLeft,
935
- "onUpdate:modelValue": l.onRightInput
936
- }, 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"])
937
- ], 2),
938
- n.showResizeHandle ? (d(), V(B, {
939
- key: 1,
940
- "number-of-handles": 2,
941
- "handle-width": o.constants.RESIZE_HANDLE_WIDTH,
942
- "connect-handles-on-resize": "",
943
- "multiple-handles-handle-gap": `${o.constants.BUTTON_WIDTH}px`,
944
- onResizeMove: l.onResizeMove,
945
- onResizeEnd: l.onResizeEnd
946
- }, null, 8, ["handle-width", "multiple-handles-handle-gap", "onResizeMove", "onResizeEnd"])) : y("", !0)
947
- ]);
948
- }
949
- const mt = /* @__PURE__ */ A(N, [["render", tt], ["__scopeId", "data-v-6c9be4a2"]]), nt = { class: "info" }, lt = /* @__PURE__ */ j({
950
- __name: "TwinlistLoadingInfo",
951
- setup(e) {
952
- return (t, n) => (d(), v("div", nt, [
953
- n[0] || (n[0] = r("span", null, "Loading...", -1)),
954
- I(H(de), { class: "icon" })
955
- ]));
956
- }
957
- }), vt = /* @__PURE__ */ A(lt, [["__scopeId", "data-v-52b0b5dd"]]);
958
- export {
959
- xe as S,
960
- vt as T,
961
- mt as a,
962
- Ge as u
963
- };