@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,7 +1,7 @@
1
- import { toRef as x, watch as S, resolveComponent as y, openBlock as h, createElementBlock as u, normalizeClass as p, normalizeStyle as I, createElementVNode as m, mergeProps as C, withKeys as a, withModifiers as d, normalizeProps as v, guardReactiveProps as w, Fragment as V, renderList as k, createBlock as g, resolveDynamicComponent as D, toDisplayString as H, createCommentVNode as b, createVNode as B } from "vue";
2
- import { u as K } from "./index-CoRworrE.js";
3
- import { S as N } from "./StyledListItem-BXz08pEQ.js";
4
- import { A, _ as L } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js";
1
+ import { toRef as x, watch as S, resolveComponent as p, createElementBlock as u, openBlock as h, normalizeStyle as y, normalizeClass as I, createElementVNode as f, createCommentVNode as g, mergeProps as v, withKeys as a, withModifiers as d, normalizeProps as C, guardReactiveProps as w, Fragment as V, renderList as k, createBlock as b, resolveDynamicComponent as D, toDisplayString as B, createVNode as H } from "vue";
2
+ import { u as K } from "./index-CpKfM262.js";
3
+ import { S as N } from "./StyledListItem-NqAG7jSw.js";
4
+ import { B as L, _ as A } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
5
5
  const T = (e, t) => {
6
6
  let i, r = 0;
7
7
  return (...l) => {
@@ -12,14 +12,14 @@ const T = (e, t) => {
12
12
  r = n, e(s, o);
13
13
  }, t);
14
14
  };
15
- }, O = 250, z = {
15
+ }, M = 250, O = {
16
16
  name: "MultiselectListBox",
17
17
  components: { StyledListItem: N },
18
18
  props: {
19
19
  id: {
20
20
  type: String,
21
21
  default() {
22
- return `MultiselectListBox-${A()}`;
22
+ return `MultiselectListBox-${L()}`;
23
23
  }
24
24
  },
25
25
  modelValue: {
@@ -131,10 +131,9 @@ const T = (e, t) => {
131
131
  return S(
132
132
  () => e.possibleValues,
133
133
  () => {
134
- var n;
135
134
  if (!i.ref.value)
136
135
  return;
137
- const o = ((n = i.ref.value) == null ? void 0 : n.scrollTop) ?? 0;
136
+ const o = i.ref.value?.scrollTop ?? 0;
138
137
  s(
139
138
  Math.max(
140
139
  Math.min(
@@ -195,10 +194,9 @@ const T = (e, t) => {
195
194
  }
196
195
  },
197
196
  mounted() {
198
- var t, i;
199
197
  window.addEventListener("mouseup", this.onStopDrag);
200
- const e = (i = this.modelValue) == null ? void 0 : i[((t = this.modelValue) == null ? void 0 : t.length) - 1];
201
- this.currentKeyNavIndex = this.possibleValues.map((r) => r.id).indexOf(e);
198
+ const e = this.modelValue?.[this.modelValue?.length - 1];
199
+ this.currentKeyNavIndex = this.possibleValues.map((t) => t.id).indexOf(e);
202
200
  },
203
201
  beforeUnmount() {
204
202
  window.removeEventListener("mouseup", this.onStopDrag);
@@ -210,15 +208,14 @@ const T = (e, t) => {
210
208
  createDebouncedHandleCtrlClick() {
211
209
  this.debouncedHandleCtrlClick = T((e, t) => {
212
210
  this.handleCtrlClick(e, t);
213
- }, O);
211
+ }, M);
214
212
  },
215
213
  // Define debouncedHandleCtrlClick as a method
216
214
  debouncedHandleCtrlClick(e, t) {
217
215
  this.debouncedHandleCtrlClick || this.createDebouncedHandleCtrlClick(), this.debouncedHandleCtrlClick(e, t);
218
216
  },
219
217
  isCurrentValue(e) {
220
- var t;
221
- return (t = this.selectedValues) == null ? void 0 : t.includes(e);
218
+ return this.selectedValues?.includes(e);
222
219
  },
223
220
  handleCtrlClick(e, t) {
224
221
  this.currentKeyNavIndex = t, this.toggleSelection(e);
@@ -301,16 +298,15 @@ const T = (e, t) => {
301
298
  addToSelection(e) {
302
299
  let t = !1;
303
300
  const i = this.selectedValues;
304
- return i != null && i.includes(e) || (i == null || i.push(e), t = !0), this.setSelected(i), t;
301
+ return i?.includes(e) || (i?.push(e), t = !0), this.setSelected(i), t;
305
302
  },
306
303
  removeFromSelection(e) {
307
304
  let t = !1;
308
305
  const i = this.selectedValues;
309
- return i != null && i.includes(e) && (i.splice(i.indexOf(e), 1), t = !0), this.setSelected(i), t;
306
+ return i?.includes(e) && (i.splice(i.indexOf(e), 1), t = !0), this.setSelected(i), t;
310
307
  },
311
308
  toggleSelection(e) {
312
- var t;
313
- (t = this.selectedValues) != null && t.includes(e) ? this.removeFromSelection(e) : this.addToSelection(e);
309
+ this.selectedValues?.includes(e) ? this.removeFromSelection(e) : this.addToSelection(e);
314
310
  },
315
311
  setSelectedNoShiftReset(e) {
316
312
  consola.trace("MultiselectListBox setSelected on", e), this.selectedValues = e, this.$emit("update:modelValue", e);
@@ -414,8 +410,7 @@ const T = (e, t) => {
414
410
  return `option-${this.id}-${i}`;
415
411
  },
416
412
  focus() {
417
- var e;
418
- this.disabled || (e = this.containerProps.ref.value) == null || e.focus();
413
+ this.disabled || this.containerProps.ref.value?.focus();
419
414
  },
420
415
  clearSelection() {
421
416
  this.disabled || this.setSelected([]);
@@ -436,7 +431,7 @@ const T = (e, t) => {
436
431
  this.resizeHeight = this.computeBoxHeight(Math.round(e));
437
432
  }
438
433
  }
439
- }, M = { class: "box" }, P = ["id", "aria-label", "aria-activedescendant"], E = {
434
+ }, z = { class: "box" }, P = ["id", "aria-label", "aria-activedescendant"], E = {
440
435
  key: 0,
441
436
  class: "empty-state"
442
437
  }, R = { key: 1 }, U = {
@@ -444,72 +439,96 @@ const T = (e, t) => {
444
439
  role: "bottom-box"
445
440
  };
446
441
  function F(e, t, i, r, l, s) {
447
- const o = y("StyledListItem");
448
- return h(), u("div", {
449
- class: p(["multiselect-list-box", { invalid: !i.isValid, disabled: i.disabled }]),
450
- style: I(s.cssStyleSize)
451
- }, [
452
- m("div", M, [
453
- m("ul", C(r.containerProps, {
454
- id: i.id,
455
- role: "listbox",
456
- tabindex: "0",
457
- class: { disabled: i.disabled, "empty-box": s.showEmptyState },
458
- "aria-label": i.ariaLabel,
459
- "aria-activedescendant": s.generateOptionId(s.getCurrentKeyNavItem()),
460
- onKeydown: [
461
- t[1] || (t[1] = a(d((...n) => s.onCtrlA && s.onCtrlA(...n), ["ctrl", "prevent", "exact"]), ["a"])),
462
- t[2] || (t[2] = a(d((...n) => s.onArrowUp && s.onArrowUp(...n), ["prevent", "exact"]), ["up"])),
463
- t[3] || (t[3] = a(d((...n) => s.onArrowDown && s.onArrowDown(...n), ["prevent", "exact"]), ["down"])),
464
- t[4] || (t[4] = a(d((...n) => s.onArrowUpShift && s.onArrowUpShift(...n), ["shift", "prevent", "exact"]), ["up"])),
465
- t[5] || (t[5] = a(d((...n) => s.onArrowDownShift && s.onArrowDownShift(...n), ["shift", "prevent", "exact"]), ["down"])),
466
- t[6] || (t[6] = a(d((...n) => s.onArrowLeft && s.onArrowLeft(...n), ["prevent", "exact"]), ["left"])),
467
- t[7] || (t[7] = a(d((...n) => s.onArrowRight && s.onArrowRight(...n), ["prevent", "exact"]), ["right"])),
468
- t[8] || (t[8] = a(d((...n) => s.onHomeKey && s.onHomeKey(...n), ["prevent", "exact"]), ["home"])),
469
- t[9] || (t[9] = a(d((...n) => s.onEndKey && s.onEndKey(...n), ["prevent", "exact"]), ["end"]))
470
- ],
471
- onMousedown: t[10] || (t[10] = (...n) => s.onStartDrag && s.onStartDrag(...n)),
472
- onMousemove: t[11] || (t[11] = (...n) => s.onDrag && s.onDrag(...n))
473
- }), [
474
- m("div", v(w(r.wrapperProps)), [
475
- (h(!0), u(V, null, k(r.list, ({ data: n, index: c }) => (h(), g(o, {
476
- id: s.generateOptionId(n),
477
- key: `listbox-${n.id}`,
478
- text: n.text,
479
- "data-option-index": c,
480
- "line-height": r.optionLineHeight,
481
- selected: s.isCurrentValue(n.id),
482
- invalid: n.invalid,
483
- special: n.special,
442
+ const o = p("StyledListItem");
443
+ return h(), u(
444
+ "div",
445
+ {
446
+ class: I(["multiselect-list-box", { invalid: !i.isValid, disabled: i.disabled }]),
447
+ style: y(s.cssStyleSize)
448
+ },
449
+ [
450
+ f("div", z, [
451
+ f("ul", v(r.containerProps, {
452
+ id: i.id,
453
+ role: "listbox",
454
+ tabindex: "0",
455
+ class: { disabled: i.disabled, "empty-box": s.showEmptyState },
456
+ "aria-label": i.ariaLabel,
457
+ "aria-activedescendant": s.generateOptionId(s.getCurrentKeyNavItem()),
458
+ onKeydown: [
459
+ t[1] || (t[1] = a(d((...n) => s.onCtrlA && s.onCtrlA(...n), ["ctrl", "prevent", "exact"]), ["a"])),
460
+ t[2] || (t[2] = a(d((...n) => s.onArrowUp && s.onArrowUp(...n), ["prevent", "exact"]), ["up"])),
461
+ t[3] || (t[3] = a(d((...n) => s.onArrowDown && s.onArrowDown(...n), ["prevent", "exact"]), ["down"])),
462
+ t[4] || (t[4] = a(d((...n) => s.onArrowUpShift && s.onArrowUpShift(...n), ["shift", "prevent", "exact"]), ["up"])),
463
+ t[5] || (t[5] = a(d((...n) => s.onArrowDownShift && s.onArrowDownShift(...n), ["shift", "prevent", "exact"]), ["down"])),
464
+ t[6] || (t[6] = a(d((...n) => s.onArrowLeft && s.onArrowLeft(...n), ["prevent", "exact"]), ["left"])),
465
+ t[7] || (t[7] = a(d((...n) => s.onArrowRight && s.onArrowRight(...n), ["prevent", "exact"]), ["right"])),
466
+ t[8] || (t[8] = a(d((...n) => s.onHomeKey && s.onHomeKey(...n), ["prevent", "exact"]), ["home"])),
467
+ t[9] || (t[9] = a(d((...n) => s.onEndKey && s.onEndKey(...n), ["prevent", "exact"]), ["end"]))
468
+ ],
469
+ onMousedown: t[10] || (t[10] = (...n) => s.onStartDrag && s.onStartDrag(...n)),
470
+ onMousemove: t[11] || (t[11] = (...n) => s.onDrag && s.onDrag(...n))
471
+ }), [
472
+ f(
473
+ "div",
474
+ C(w(r.wrapperProps)),
475
+ [
476
+ (h(!0), u(
477
+ V,
478
+ null,
479
+ k(r.list, ({ data: n, index: c }) => (h(), b(o, {
480
+ id: s.generateOptionId(n),
481
+ key: `listbox-${n.id}`,
482
+ text: n.text,
483
+ "data-option-index": c,
484
+ "line-height": r.optionLineHeight,
485
+ selected: s.isCurrentValue(n.id),
486
+ invalid: n.invalid,
487
+ special: n.special,
488
+ disabled: i.disabled,
489
+ onClick: (m) => s.handleClick(m, n.id, c),
490
+ onDblclickShift: t[0] || (t[0] = (m) => s.handleShiftDblClick()),
491
+ onDblclickExact: (m) => s.handleDblClick(n.id, c)
492
+ }, null, 8, ["id", "text", "data-option-index", "line-height", "selected", "invalid", "special", "disabled", "onClick", "onDblclickExact"]))),
493
+ 128
494
+ /* KEYED_FRAGMENT */
495
+ ))
496
+ ],
497
+ 16
498
+ /* FULL_PROPS */
499
+ )
500
+ ], 16, P),
501
+ s.showEmptyState ? (h(), u("div", E, [
502
+ i.emptyStateComponent ? (h(), b(D(i.emptyStateComponent), { key: 0 })) : (h(), u(
503
+ "span",
504
+ R,
505
+ B(i.emptyStateLabel),
506
+ 1
507
+ /* TEXT */
508
+ ))
509
+ ])) : g("v-if", !0),
510
+ i.withBottomValue ? (h(), u("div", U, [
511
+ H(o, {
512
+ id: s.generateOptionId(i.bottomValue),
513
+ special: "",
514
+ text: i.bottomValue.text,
515
+ "data-option-index": s.bottomIndex,
516
+ selected: s.isCurrentValue(i.bottomValue.id),
484
517
  disabled: i.disabled,
485
- onClick: (f) => s.handleClick(f, n.id, c),
486
- onDblclickShift: t[0] || (t[0] = (f) => s.handleShiftDblClick()),
487
- onDblclickExact: (f) => s.handleDblClick(n.id, c)
488
- }, null, 8, ["id", "text", "data-option-index", "line-height", "selected", "invalid", "special", "disabled", "onClick", "onDblclickExact"]))), 128))
489
- ], 16)
490
- ], 16, P),
491
- s.showEmptyState ? (h(), u("div", E, [
492
- i.emptyStateComponent ? (h(), g(D(i.emptyStateComponent), { key: 0 })) : (h(), u("span", R, H(i.emptyStateLabel), 1))
493
- ])) : b("", !0),
494
- i.withBottomValue ? (h(), u("div", U, [
495
- B(o, {
496
- id: s.generateOptionId(i.bottomValue),
497
- special: "",
498
- text: i.bottomValue.text,
499
- "data-option-index": s.bottomIndex,
500
- selected: s.isCurrentValue(i.bottomValue.id),
501
- disabled: i.disabled,
502
- onClick: s.handleBottomClick,
503
- onDblclickShift: t[12] || (t[12] = (n) => s.handleShiftDblClick()),
504
- onDblclickExact: s.handleBottomDblClick,
505
- onMousedown: s.onBottomStartDrag,
506
- onMousemove: s.onBottomDrag
507
- }, null, 8, ["id", "text", "data-option-index", "selected", "disabled", "onClick", "onDblclickExact", "onMousedown", "onMousemove"])
508
- ])) : b("", !0)
509
- ])
510
- ], 6);
518
+ onClick: s.handleBottomClick,
519
+ onDblclickShift: t[12] || (t[12] = (n) => s.handleShiftDblClick()),
520
+ onDblclickExact: s.handleBottomDblClick,
521
+ onMousedown: s.onBottomStartDrag,
522
+ onMousemove: s.onBottomDrag
523
+ }, null, 8, ["id", "text", "data-option-index", "selected", "disabled", "onClick", "onDblclickExact", "onMousedown", "onMousemove"])
524
+ ])) : g("v-if", !0)
525
+ ])
526
+ ],
527
+ 6
528
+ /* CLASS, STYLE */
529
+ );
511
530
  }
512
- const _ = /* @__PURE__ */ L(z, [["render", F], ["__scopeId", "data-v-ef7d54c4"]]);
531
+ const Y = /* @__PURE__ */ A(O, [["render", F], ["__scopeId", "data-v-29fcc646"], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/components/src/components/forms/MultiselectListBox/MultiselectListBox.vue"]]);
513
532
  export {
514
- _ as M
533
+ Y as M
515
534
  };
@@ -0,0 +1,37 @@
1
+ import { defineComponent as o, createBlock as i, openBlock as s, mergeProps as u } from "vue";
2
+ import a from "./MultimodeTwinlistControl-oIvgI_FP.js";
3
+ import { _ as l } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
4
+ const p = /* @__PURE__ */ o({
5
+ __name: "NameFilter",
6
+ props: {
7
+ control: { type: Object, required: !0 },
8
+ handleChange: { type: Function, required: !0 },
9
+ changeValue: { type: Function, required: !0 },
10
+ disabled: { type: Boolean, required: !0 },
11
+ isValid: { type: Boolean, required: !0 },
12
+ onRegisterValidation: { type: Function, required: !0 },
13
+ labelForId: { type: String, required: !0 }
14
+ },
15
+ setup(e, { expose: r }) {
16
+ r();
17
+ const t = { TwinlistControl: a };
18
+ return Object.defineProperty(t, "__isScriptSetup", { enumerable: !1, value: !0 }), t;
19
+ }
20
+ });
21
+ function c(e, r, t, n, d, m) {
22
+ return s(), i(
23
+ n.TwinlistControl,
24
+ u({ ...e.$props, ...e.$attrs }, {
25
+ "unknown-values-text": "Any unknown value",
26
+ "show-unknown-values": "",
27
+ "empty-state-label": "No values in this list"
28
+ }),
29
+ null,
30
+ 16
31
+ /* FULL_PROPS */
32
+ );
33
+ }
34
+ const b = /* @__PURE__ */ l(p, [["render", c], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/uiComponents/twinlist/NameFilter.vue"]]);
35
+ export {
36
+ b as default
37
+ };
@@ -0,0 +1,33 @@
1
+ import { defineComponent as n, createBlock as u, openBlock as p, mergeProps as s } from "vue";
2
+ import { N as a } from "./NumberControlBase-CN5eTKEm.js";
3
+ import { _ as i } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
4
+ const l = /* @__PURE__ */ n({
5
+ __name: "NumberControl",
6
+ props: {
7
+ control: { type: Object, required: !0 },
8
+ handleChange: { type: Function, required: !0 },
9
+ changeValue: { type: Function, required: !0 },
10
+ disabled: { type: Boolean, required: !0 },
11
+ isValid: { type: Boolean, required: !0 },
12
+ onRegisterValidation: { type: Function, required: !0 },
13
+ labelForId: { type: String, required: !0 }
14
+ },
15
+ setup(r, { expose: o }) {
16
+ o();
17
+ const e = { NumberControlBase: a };
18
+ return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
19
+ }
20
+ });
21
+ function c(r, o, e, t, d, m) {
22
+ return p(), u(
23
+ t.NumberControlBase,
24
+ s(r.$props, { type: "double" }),
25
+ null,
26
+ 16
27
+ /* FULL_PROPS */
28
+ );
29
+ }
30
+ const y = /* @__PURE__ */ i(l, [["render", c], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/uiComponents/NumberControl.vue"]]);
31
+ export {
32
+ y as default
33
+ };
@@ -0,0 +1,58 @@
1
+ import { defineComponent as f, computed as p, createBlock as g, openBlock as x } from "vue";
2
+ import { u as y } from "./useBuiltinValidations-D0WuEacN.js";
3
+ import { N } from "./NumberInput-DWTImcA_.js";
4
+ import { _ as v } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
5
+ const _ = 1, b = 0.1, E = /* @__PURE__ */ f({
6
+ __name: "NumberControlBase",
7
+ props: {
8
+ control: { type: Object, required: !0 },
9
+ handleChange: { type: Function, required: !0 },
10
+ changeValue: { type: Function, required: !0 },
11
+ disabled: { type: Boolean, required: !0 },
12
+ isValid: { type: Boolean, required: !0 },
13
+ onRegisterValidation: { type: Function, required: !0 },
14
+ labelForId: { type: String, required: !0 },
15
+ type: { type: String, required: !0 }
16
+ },
17
+ setup(l, { expose: m }) {
18
+ m();
19
+ const e = l, a = e.type === "integer" ? _ : b, r = ({ min: o, isExclusive: n }) => (t) => isNaN(t) || (n ? t > o : t >= o), i = ({ max: o, isExclusive: n }) => (t) => isNaN(t) || (n ? t < o : t <= o), c = y(
20
+ {
21
+ min: r,
22
+ max: i
23
+ },
24
+ e
25
+ ), u = p(() => c.value.min), s = p(() => c.value.max), d = { props: e, DEFAULT_STEP_SIZE_INTEGER: _, DEFAULT_STEP_SIZE_DOUBLE: b, stepSize: a, respectsMin: r, respectsMax: i, validationParams: c, minParams: u, maxParams: s, onFocusOut: () => {
26
+ const o = e.control.data;
27
+ if (u.value && !r(u.value)(o)) {
28
+ const { min: n, isExclusive: t } = u.value;
29
+ t ? e.changeValue(n + a) : e.changeValue(n);
30
+ } else if (s.value && !i(s.value)(o)) {
31
+ const { max: n, isExclusive: t } = s.value;
32
+ t ? e.changeValue(n - a) : e.changeValue(n);
33
+ }
34
+ }, get NumberInput() {
35
+ return N;
36
+ } };
37
+ return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
38
+ }
39
+ });
40
+ function V(l, m, e, a, r, i) {
41
+ return x(), g(a.NumberInput, {
42
+ id: e.labelForId,
43
+ class: "number-input",
44
+ disabled: e.disabled,
45
+ "model-value": e.control.data,
46
+ type: e.type,
47
+ min: a.minParams?.min,
48
+ max: a.maxParams?.max,
49
+ "is-valid": e.isValid,
50
+ compact: "",
51
+ "onUpdate:modelValue": e.changeValue,
52
+ onFocusout: a.onFocusOut
53
+ }, null, 8, ["id", "disabled", "model-value", "type", "min", "max", "is-valid", "onUpdate:modelValue"]);
54
+ }
55
+ const q = /* @__PURE__ */ v(E, [["render", V], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/uiComponents/NumberControlBase.vue"]]);
56
+ export {
57
+ q as N
58
+ };
@@ -1,8 +1,8 @@
1
- import { A as p } from "./arrow-dropdown-DdgjzLAO.js";
1
+ import { A as p } from "./arrow-dropdown-eS-nVNCv.js";
2
2
  /* empty css */
3
- import { resolveComponent as h, openBlock as o, createElementBlock as d, normalizeClass as l, createElementVNode as n, createCommentVNode as f, withModifiers as r, createVNode as m } from "vue";
4
- import { _ as V } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js";
5
- const c = 200, g = 50, v = 0.1, E = 1, I = {
3
+ import { resolveComponent as f, createElementBlock as o, openBlock as d, normalizeClass as l, createElementVNode as n, createCommentVNode as h, withModifiers as r, createVNode as m } from "vue";
4
+ import { _ as V } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
5
+ const c = 200, g = 50, v = 0.1, I = 1, E = {
6
6
  name: "NumberInput",
7
7
  components: {
8
8
  ArrowIcon: p
@@ -77,7 +77,7 @@ const c = 200, g = 50, v = 0.1, E = 1, I = {
77
77
  return this.type === "integer";
78
78
  },
79
79
  stepSize() {
80
- return this.isInteger ? E : v;
80
+ return this.isInteger ? I : v;
81
81
  },
82
82
  inputClassList() {
83
83
  let t = this.inputClasses;
@@ -119,8 +119,8 @@ const c = 200, g = 50, v = 0.1, E = 1, I = {
119
119
  this.localValue = this.getParsedValue(), this.getInputRef().valueAsNumber = this.localValue;
120
120
  },
121
121
  validate(t) {
122
- let e = !0, a;
123
- return t = typeof t > "u" ? this.getParsedValue() : this.parseValue(t), typeof t != "number" || isNaN(t) ? (e = !1, a = "Current value is not a number.") : (this.min > t || this.max < t) && (e = !1, a = "Current value is outside allowed range."), { isValid: e, errorMessage: a };
122
+ let e = !0, s;
123
+ return t = typeof t > "u" ? this.getParsedValue() : this.parseValue(t), typeof t != "number" || isNaN(t) ? (e = !1, s = "Current value is not a number.") : (this.min > t || this.max < t) && (e = !1, s = "Current value is outside allowed range."), { isValid: e, errorMessage: s };
124
124
  },
125
125
  /**
126
126
  * Change value updates the actual value of the input field if a valid new value
@@ -133,8 +133,8 @@ const c = 200, g = 50, v = 0.1, E = 1, I = {
133
133
  changeValue(t) {
134
134
  let e = this.getParsedValue();
135
135
  this.validate(e).isValid || (e = this.findNearestValidValue(e));
136
- let a = e + t;
137
- a = Math.round(a * 10) / 10, this.validate(a).isValid && this.updateAndEmit({ newValue: a });
136
+ let s = e + t;
137
+ s = Math.round(s * 10) / 10, this.validate(s).isValid && this.updateAndEmit({ newValue: s });
138
138
  },
139
139
  findNearestValidValue(t) {
140
140
  return t < this.min ? this.min : t > this.max ? this.max : this.initialValue;
@@ -155,16 +155,16 @@ const c = 200, g = 50, v = 0.1, E = 1, I = {
155
155
  if (this.disabled)
156
156
  return;
157
157
  this.spinnerArrowInterval !== null && clearTimeout(this.spinnerArrowInterval), this.spinnerArrowTimeout !== null && clearInterval(this.spinnerArrowTimeout);
158
- let a = this.stepSize;
159
- if (e === "decrease" && (a *= -1), t.type === "mousedown") {
158
+ let s = this.stepSize;
159
+ if (e === "decrease" && (s *= -1), t.type === "mousedown") {
160
160
  this.clicked = !0, this.spinnerArrowTimeout = setTimeout(() => {
161
161
  this.spinnerArrowInterval = setInterval(() => {
162
- this.changeValue(a);
162
+ this.changeValue(s);
163
163
  }, g);
164
164
  }, c);
165
165
  return;
166
166
  }
167
- this.clicked && (this.clicked = !1, this.changeValue(a));
167
+ this.clicked && (this.clicked = !1, this.changeValue(s));
168
168
  },
169
169
  toggleHover() {
170
170
  this.hovered = !this.hovered;
@@ -174,48 +174,66 @@ const c = 200, g = 50, v = 0.1, E = 1, I = {
174
174
  key: 0,
175
175
  class: "invalid-marker"
176
176
  };
177
- function A(t, e, a, w, y, s) {
178
- const u = h("ArrowIcon");
179
- return o(), d("div", {
180
- class: l(["wrapper", { disabled: a.disabled, compact: a.compact }])
181
- }, [
182
- n("input", {
183
- id: a.id,
184
- ref: "input",
185
- name: a.name,
186
- type: "number",
187
- role: "spinButton",
188
- value: s.inputValue,
189
- min: a.min,
190
- max: a.max,
191
- step: s.stepSize,
192
- class: l(s.inputClassList),
193
- disabled: a.disabled,
194
- onInput: e[0] || (e[0] = (i) => s.onInput(i)),
195
- onBlur: e[1] || (e[1] = (...i) => s.onBlur && s.onBlur(...i)),
196
- onMouseenter: e[2] || (e[2] = (...i) => s.toggleHover && s.toggleHover(...i)),
197
- onMouseleave: e[3] || (e[3] = (...i) => s.toggleHover && s.toggleHover(...i))
198
- }, null, 42, b),
199
- a.isValid ? f("", !0) : (o(), d("span", N)),
200
- n("span", {
201
- class: l(["increase", { disabled: a.disabled }]),
202
- onMousedown: e[4] || (e[4] = r((i) => s.mouseEvent(i, "increase"), ["prevent"])),
203
- onMouseup: e[5] || (e[5] = r((i) => s.mouseEvent(i, "increase"), ["prevent"])),
204
- onMouseleave: e[6] || (e[6] = (i) => s.mouseEvent(i, "increase"))
205
- }, [
206
- m(u)
207
- ], 34),
208
- n("span", {
209
- class: l(["decrease", { disabled: a.disabled }]),
210
- onMousedown: e[7] || (e[7] = r((i) => s.mouseEvent(i, "decrease"), ["prevent"])),
211
- onMouseup: e[8] || (e[8] = r((i) => s.mouseEvent(i, "decrease"), ["prevent"])),
212
- onMouseleave: e[9] || (e[9] = (i) => s.mouseEvent(i, "decrease"))
213
- }, [
214
- m(u)
215
- ], 34)
216
- ], 2);
177
+ function A(t, e, s, w, y, i) {
178
+ const u = f("ArrowIcon");
179
+ return d(), o(
180
+ "div",
181
+ {
182
+ class: l(["wrapper", { disabled: s.disabled, compact: s.compact }])
183
+ },
184
+ [
185
+ n("input", {
186
+ id: s.id,
187
+ ref: "input",
188
+ name: s.name,
189
+ type: "number",
190
+ role: "spinButton",
191
+ value: i.inputValue,
192
+ min: s.min,
193
+ max: s.max,
194
+ step: i.stepSize,
195
+ class: l(i.inputClassList),
196
+ disabled: s.disabled,
197
+ onInput: e[0] || (e[0] = (a) => i.onInput(a)),
198
+ onBlur: e[1] || (e[1] = (...a) => i.onBlur && i.onBlur(...a)),
199
+ onMouseenter: e[2] || (e[2] = (...a) => i.toggleHover && i.toggleHover(...a)),
200
+ onMouseleave: e[3] || (e[3] = (...a) => i.toggleHover && i.toggleHover(...a))
201
+ }, null, 42, b),
202
+ s.isValid ? h("v-if", !0) : (d(), o("span", N)),
203
+ n(
204
+ "span",
205
+ {
206
+ class: l(["increase", { disabled: s.disabled }]),
207
+ onMousedown: e[4] || (e[4] = r((a) => i.mouseEvent(a, "increase"), ["prevent"])),
208
+ onMouseup: e[5] || (e[5] = r((a) => i.mouseEvent(a, "increase"), ["prevent"])),
209
+ onMouseleave: e[6] || (e[6] = (a) => i.mouseEvent(a, "increase"))
210
+ },
211
+ [
212
+ m(u)
213
+ ],
214
+ 34
215
+ /* CLASS, NEED_HYDRATION */
216
+ ),
217
+ n(
218
+ "span",
219
+ {
220
+ class: l(["decrease", { disabled: s.disabled }]),
221
+ onMousedown: e[7] || (e[7] = r((a) => i.mouseEvent(a, "decrease"), ["prevent"])),
222
+ onMouseup: e[8] || (e[8] = r((a) => i.mouseEvent(a, "decrease"), ["prevent"])),
223
+ onMouseleave: e[9] || (e[9] = (a) => i.mouseEvent(a, "decrease"))
224
+ },
225
+ [
226
+ m(u)
227
+ ],
228
+ 34
229
+ /* CLASS, NEED_HYDRATION */
230
+ )
231
+ ],
232
+ 2
233
+ /* CLASS */
234
+ );
217
235
  }
218
- const B = /* @__PURE__ */ V(I, [["render", A], ["__scopeId", "data-v-6b79dc2b"]]);
236
+ const B = /* @__PURE__ */ V(E, [["render", A], ["__scopeId", "data-v-8eef6a7b"], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/components/src/components/forms/NumberInput/NumberInput.vue"]]);
219
237
  export {
220
238
  B as N
221
239
  };
@@ -0,0 +1,50 @@
1
+ import { defineComponent as i, computed as s, createElementBlock as d, openBlock as u, Fragment as p, createCommentVNode as c, createVNode as m } from "vue";
2
+ import { o as b } from "./index-Blg1O3Fz.js";
3
+ import { D as f } from "./Dropdown-D49sEHBa.js";
4
+ import { _ } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
5
+ const V = /* @__PURE__ */ i({
6
+ __name: "OneOfDropdown",
7
+ props: {
8
+ control: { type: Object, required: !0 },
9
+ handleChange: { type: Function, required: !0 },
10
+ changeValue: { type: Function, required: !0 },
11
+ disabled: { type: Boolean, required: !0 },
12
+ isValid: { type: Boolean, required: !0 },
13
+ onRegisterValidation: { type: Function, required: !0 },
14
+ labelForId: { type: String, required: !0 }
15
+ },
16
+ setup(a, { expose: r }) {
17
+ r();
18
+ const e = a, o = e.control.schema?.oneOf?.map(b) ?? [], n = s({
19
+ get: () => e.control.data ?? "",
20
+ set: e.changeValue
21
+ }), t = { props: e, possibleValues: o, modelValue: n, get Dropdown() {
22
+ return f;
23
+ } };
24
+ return Object.defineProperty(t, "__isScriptSetup", { enumerable: !1, value: !0 }), t;
25
+ }
26
+ });
27
+ function g(a, r, e, o, n, t) {
28
+ return u(), d(
29
+ p,
30
+ null,
31
+ [
32
+ c(" eslint-disable vue/attribute-hyphenation typescript complains with ':aria-label' instead of ':ariaLabel'"),
33
+ m(o.Dropdown, {
34
+ id: e.labelForId,
35
+ modelValue: o.modelValue,
36
+ "onUpdate:modelValue": r[0] || (r[0] = (l) => o.modelValue = l),
37
+ "possible-values": o.possibleValues,
38
+ ariaLabel: e.control.label,
39
+ disabled: e.disabled,
40
+ compact: ""
41
+ }, null, 8, ["id", "modelValue", "possible-values", "ariaLabel", "disabled"])
42
+ ],
43
+ 2112
44
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
45
+ );
46
+ }
47
+ const D = /* @__PURE__ */ _(V, [["render", g], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/uiComponents/OneOfDropdown.vue"]]);
48
+ export {
49
+ D as default
50
+ };