@knime/jsonforms 1.15.0 → 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 (117) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/AnyOfTwinlist-BmHETHvW.js +28 -0
  3. package/dist/{Button-Cqwayw73.js → Button-B9RSLVI2.js} +8 -7
  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-R0DlbAdT.js → ComboBoxControl-2r1FWcy-.js} +234 -165
  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-Cs0KqlOS.js → DateTimeInput-DcwhvMD2.js} +421 -377
  14. package/dist/{Dropdown-BEx-cvXH.js → Dropdown-D49sEHBa.js} +140 -85
  15. package/dist/DropdownControl-aeEqC-Yg.js +46 -0
  16. package/dist/HorizontalLayout-D0toQmVl.js +39 -0
  17. package/dist/{InputField-OkFB9VHZ.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-2fVBipAl.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_bd2eaa56_lang-pnMOUiIt.js} +1 -1
  26. package/dist/{MultiselectListBox-CMTJnAWr.js → MultiselectListBox-CfdPbcn1.js} +96 -72
  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-BepS3tAK.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-CE6whfV5.js → RichTextControl-B1mJMs1e.js} +4126 -3777
  35. package/dist/SectionHeading-B6JkPyMh.js +31 -0
  36. package/dist/{SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js → SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js} +5456 -5284
  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-DdH9cM67.js → _baseEach-CWap1NWh.js} +2 -2
  58. package/dist/{_baseIteratee-BGt-t7Os.js → _baseIteratee-D0MXvnuf.js} +3 -3
  59. package/dist/{_getTag-DAFySze4.js → _getTag-BvpAzjaz.js} +1 -1
  60. package/dist/{arrow-dropdown-BAFsD8Su.js → arrow-dropdown-eS-nVNCv.js} +7 -1
  61. package/dist/{arrow-next-BQVCxGb8.js → arrow-next-BmOStWql.js} +7 -1
  62. package/dist/{close-DGt8x-x_.js → close-0dYG2oDA.js} +7 -1
  63. package/dist/knime-jsonforms.css +1 -1
  64. package/dist/knime-jsonforms.js +134 -108
  65. package/dist/{localTimeUtils-NIKgHnIr.js → localTimeUtils-CfchSrLG.js} +1 -1
  66. package/dist/{reload-DCdbNLa2.js → reload-57Xc2t-6.js} +7 -1
  67. package/dist/testing.js +2 -2
  68. package/dist/{toString-BhubvA3m.js → toString-C-X8cE7K.js} +1 -1
  69. package/dist/{useBuiltinValidations-Boxrm71q.js → useBuiltinValidations-D0WuEacN.js} +1 -1
  70. package/dist/{usePossibleValues-DXuWWBh_.js → usePossibleValues-DTVXBGRC.js} +1 -1
  71. package/package.json +4 -4
  72. package/dist/AnyOfTwinlist-Co_sJAsc.js +0 -22
  73. package/dist/CheckboxControl-C10_DX1N.js +0 -40
  74. package/dist/Checkboxes-DWOxHiUX.js +0 -103
  75. package/dist/CheckboxesControl-BMRFgmO_.js +0 -38
  76. package/dist/DateControl-DAGAM92B.js +0 -29
  77. package/dist/DateTimeControl-DJhIb_U4.js +0 -45
  78. package/dist/DateTimeFormatInput-BhLQzC-P.js +0 -373
  79. package/dist/DateTimeFormatPickerControl-V7pxRYaW.js +0 -40
  80. package/dist/DateTimeFormatPickerWithTypeControl-3fa75rGw.js +0 -76
  81. package/dist/DropdownControl-DEIA5VD4.js +0 -31
  82. package/dist/HorizontalLayout-DCfhMNq4.js +0 -25
  83. package/dist/IntegerControl-Om8J7hch.js +0 -20
  84. package/dist/IntervalControl-B7UbyyD-.js +0 -545
  85. package/dist/LoadingDropdown-CINkq_Sw.js +0 -40
  86. package/dist/ManualTwinlistControl-BLTfr2gT.js +0 -79
  87. package/dist/MultiSelectListBoxControl-j1TaFtQj.js +0 -31
  88. package/dist/MultimodeTwinlistControl-BsFqHRFM.js +0 -459
  89. package/dist/NameFilter-d5k6rDVY.js +0 -24
  90. package/dist/NumberControl-Kc3hvVef.js +0 -20
  91. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-BOCR1qXG.js +0 -50
  92. package/dist/OneOfDropdown-CLwVXrbC.js +0 -33
  93. package/dist/RadioControl-DpziR8nA.js +0 -24
  94. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-DVIeg5W1.js +0 -104
  95. package/dist/SectionHeading-D7znCZXu.js +0 -19
  96. package/dist/SectionLayout-BhXDOzqB.js +0 -46
  97. package/dist/SettingsSubPanel-x9uWGoiu.js +0 -5
  98. package/dist/SettingsSubPanelLayout-BPHBM5n5.js +0 -62
  99. package/dist/SimpleButtonControl-DfCSlgZS.js +0 -61
  100. package/dist/SimpleTwinlistControl-CBalniCf.js +0 -25
  101. package/dist/SingleSelectControl-DC4w0ata.js +0 -58
  102. package/dist/SingleSelectListBoxControl-CKj-p8jZ.js +0 -232
  103. package/dist/SortListControl-BIUyPjCi.js +0 -377
  104. package/dist/StyledListItem-D-HJWfo5.js +0 -72
  105. package/dist/TextAreaControl-D28TQZEY.js +0 -108
  106. package/dist/TextControl-DUDBWcHy.js +0 -4
  107. package/dist/TextControl.vue_vue_type_script_setup_true_lang-DpAd3yOu.js +0 -47
  108. package/dist/TimeControl-HRooO_z3.js +0 -36
  109. package/dist/TwinlistControlBase-Brfh5pqZ.js +0 -40
  110. package/dist/TwinlistLoadingInfo-C4Tta00d.js +0 -946
  111. package/dist/TypedStringFilter-CdvgPKhD.js +0 -26
  112. package/dist/ValueSwitch-W4y1YvNM.js +0 -131
  113. package/dist/ValueSwitchControl-BaXH8Cjx.js +0 -20
  114. package/dist/VerticalLayout-ChAmRKNj.js +0 -30
  115. package/dist/VerticalLayoutBase-DAk4vfH5.js +0 -20
  116. package/dist/ZonedDateTimeControl-Qb57KmMT.js +0 -69
  117. package/dist/svgWithTitle-CnTmPYAB.js +0 -18
@@ -1,20 +1,20 @@
1
- import { resolveComponent as h, createElementBlock as f, openBlock as d, withModifiers as a, withKeys as r, normalizeClass as w, renderSlot as B, withDirectives as I, createElementVNode as m, createVNode as c, toDisplayString as S, normalizeStyle as A, Fragment as D, renderList as k, createBlock as C, withCtx as O, createTextVNode as $, vShow as P, defineComponent as M, vModelText as x, toRef as z, computed as F, unref as N } from "vue";
2
- import { u as U } from "./usePossibleValues-DXuWWBh_.js";
3
- import { C as L } from "./close-DGt8x-x_.js";
4
- import { _ as E, C as H, v as K } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js";
1
+ import { resolveComponent as f, createElementBlock as h, openBlock as d, withModifiers as r, withKeys as u, normalizeClass as w, renderSlot as E, withDirectives as I, createElementVNode as c, createVNode as m, toDisplayString as S, normalizeStyle as N, Fragment as C, renderList as P, createBlock as D, withCtx as O, createTextVNode as R, vShow as x, defineComponent as A, vModelText as T, toRef as U, computed as F, createCommentVNode as z } from "vue";
2
+ import { u as $ } from "./usePossibleValues-DTVXBGRC.js";
3
+ import { C as L } from "./close-0dYG2oDA.js";
4
+ import { _ as B, C as K, v as j } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
5
5
  /* empty css */
6
- import { A as j } from "./arrow-dropdown-BAFsD8Su.js";
7
- import { c as W } from "./createMissingItem-B00Kg95q.js";
8
- const y = () => {
6
+ import { A as q } from "./arrow-dropdown-eS-nVNCv.js";
7
+ import { c as H } from "./createMissingItem-B00Kg95q.js";
8
+ const g = () => {
9
9
  let e = document?.activeElement;
10
10
  for (; e?.shadowRoot; )
11
11
  e = e?.shadowRoot?.activeElement;
12
12
  return e;
13
- }, g = 1, G = 28.5, X = 8, q = {
13
+ }, y = 1, W = 28.5, G = 8, X = {
14
14
  name: "Multiselect",
15
15
  components: {
16
- Checkbox: H,
17
- DropdownIcon: j
16
+ Checkbox: K,
17
+ DropdownIcon: q
18
18
  },
19
19
  props: {
20
20
  /**
@@ -150,7 +150,7 @@ const y = () => {
150
150
  },
151
151
  optionsHeight() {
152
152
  return this.useSpecificOptionsHeight ? {
153
- "max-height": `${this.sizeVisibleOptions * G + X}px`
153
+ "max-height": `${this.sizeVisibleOptions * W + G}px`
154
154
  } : {};
155
155
  },
156
156
  refocusElementOnClose() {
@@ -171,16 +171,16 @@ const y = () => {
171
171
  * @param {Number} changeInd - the positive or negative index shift for the next Element (usually 1 || -1).
172
172
  * @returns {Element} - the next option Element in the list of options.
173
173
  */
174
- getNextElement(e, t = y()) {
174
+ getNextElement(e, t = g()) {
175
175
  return this.focusOptions[this.focusOptions.indexOf(t) + e] || (e < 0 ? this.focusOptions[this.focusOptions.length - 1] : this.focusOptions[0]);
176
176
  },
177
177
  onUpdateModelValue(e, t) {
178
- t ? this.modelValue.indexOf(e) === -1 && this.emitNewSelection([...this.modelValue, e]) : this.emitNewSelection(this.modelValue.filter((o) => o !== e)), this.closeDropdownOnSelection && this.closeOptions();
178
+ t ? this.modelValue.indexOf(e) === -1 && this.emitNewSelection([...this.modelValue, e]) : this.emitNewSelection(this.modelValue.filter((s) => s !== e)), this.closeDropdownOnSelection && this.closeOptions();
179
179
  },
180
180
  toggle() {
181
181
  this.collapsed = !this.collapsed, setTimeout(() => {
182
182
  this.$refs.toggle?.focus();
183
- }, g);
183
+ }, y);
184
184
  },
185
185
  isChecked(e) {
186
186
  return this.modelValue.includes(e);
@@ -195,7 +195,7 @@ const y = () => {
195
195
  closeOptions(e = !0) {
196
196
  this.collapsed = !0, e && setTimeout(() => {
197
197
  this.refocusElementOnClose.focus();
198
- }, g);
198
+ }, y);
199
199
  },
200
200
  /**
201
201
  * Handle closing the options if necessary and stopping the event if so.
@@ -208,7 +208,7 @@ const y = () => {
208
208
  },
209
209
  /* Handle arrow key "up" events. */
210
210
  onUp() {
211
- const e = y();
211
+ const e = g();
212
212
  e !== this.$refs.toggle && this.getNextElement(-1, e).focus();
213
213
  },
214
214
  /* Handle arrow key "down" events. */
@@ -221,8 +221,8 @@ const y = () => {
221
221
  */
222
222
  onFocusOut() {
223
223
  setTimeout(() => {
224
- this.focusElements.includes(y()) || (this.closeOptions(!1), this.useCustomListBox && this.$emit("focusOutside"));
225
- }, g);
224
+ this.focusElements.includes(g()) || (this.closeOptions(!1), this.useCustomListBox && this.$emit("focusOutside"));
225
+ }, y);
226
226
  },
227
227
  /*
228
228
  * Manually prevents default event bubbling and propagation for mousedown which can fire blur events that
@@ -243,63 +243,86 @@ const y = () => {
243
243
  }
244
244
  }
245
245
  }, J = { key: 1 }, Q = ["tabindex"];
246
- function Y(e, t, o, n, b, s) {
247
- const p = h("DropdownIcon"), u = h("Checkbox");
248
- return d(), f("div", {
249
- ref: "multiselect",
250
- class: w([
251
- "multiselect",
252
- { collapsed: b.collapsed, invalid: !o.isValid, compact: o.compact, disabled: o.disabled }
253
- ]),
254
- onKeydown: [
255
- t[2] || (t[2] = r((...l) => s.closeOptionsAndStop && s.closeOptionsAndStop(...l), ["esc"])),
256
- t[3] || (t[3] = r(a((...l) => s.onUp && s.onUp(...l), ["stop", "prevent"]), ["up"])),
257
- t[4] || (t[4] = r(a((...l) => s.onDown && s.onDown(...l), ["stop", "prevent"]), ["down"]))
246
+ function Y(e, t, s, n, p, o) {
247
+ const a = f("DropdownIcon"), b = f("Checkbox");
248
+ return d(), h(
249
+ "div",
250
+ {
251
+ ref: "multiselect",
252
+ class: w([
253
+ "multiselect",
254
+ { collapsed: p.collapsed, invalid: !s.isValid, compact: s.compact, disabled: s.disabled }
255
+ ]),
256
+ onKeydown: [
257
+ t[2] || (t[2] = u((...l) => o.closeOptionsAndStop && o.closeOptionsAndStop(...l), ["esc"])),
258
+ t[3] || (t[3] = u(r((...l) => o.onUp && o.onUp(...l), ["stop", "prevent"]), ["up"])),
259
+ t[4] || (t[4] = u(r((...l) => o.onDown && o.onDown(...l), ["stop", "prevent"]), ["down"]))
260
+ ],
261
+ onFocusout: t[5] || (t[5] = r((...l) => o.onFocusOut && o.onFocusOut(...l), ["stop"])),
262
+ onMousedown: t[6] || (t[6] = (...l) => o.onMousedown && o.onMousedown(...l))
263
+ },
264
+ [
265
+ s.useCustomListBox ? E(e.$slots, "listBox", { key: 0 }, void 0, !0) : (d(), h("div", J, [
266
+ c("div", {
267
+ ref: "toggle",
268
+ role: "button",
269
+ tabindex: s.disabled ? -1 : 0,
270
+ class: w({ placeholder: !s.modelValue.length }),
271
+ onClick: t[0] || (t[0] = (...l) => o.toggle && o.toggle(...l)),
272
+ onKeydown: t[1] || (t[1] = u(r((...l) => o.toggle && o.toggle(...l), ["prevent"]), ["space"]))
273
+ }, S(o.summary), 43, Q),
274
+ m(a, { class: "icon" })
275
+ ])),
276
+ I(c(
277
+ "div",
278
+ {
279
+ class: "options",
280
+ style: N(o.optionsHeight)
281
+ },
282
+ [
283
+ (d(!0), h(
284
+ C,
285
+ null,
286
+ P(s.possibleValues, (l, i) => (d(), D(b, {
287
+ ref_for: !0,
288
+ ref: "option",
289
+ key: `multiselect-${l.id}`,
290
+ "data-index": i,
291
+ "model-value": o.isChecked(l.id),
292
+ disabled: l.disabled,
293
+ class: "boxes",
294
+ "onUpdate:modelValue": (V) => o.onUpdateModelValue(l.id, V)
295
+ }, {
296
+ default: O(() => [
297
+ R(
298
+ S(l.text),
299
+ 1
300
+ /* TEXT */
301
+ )
302
+ ]),
303
+ _: 2
304
+ /* DYNAMIC */
305
+ }, 1032, ["data-index", "model-value", "disabled", "onUpdate:modelValue"]))),
306
+ 128
307
+ /* KEYED_FRAGMENT */
308
+ )),
309
+ E(e.$slots, "selectAction", {}, void 0, !0)
310
+ ],
311
+ 4
312
+ /* STYLE */
313
+ ), [
314
+ [x, o.showOptions]
315
+ ])
258
316
  ],
259
- onFocusout: t[5] || (t[5] = a((...l) => s.onFocusOut && s.onFocusOut(...l), ["stop"])),
260
- onMousedown: t[6] || (t[6] = (...l) => s.onMousedown && s.onMousedown(...l))
261
- }, [
262
- o.useCustomListBox ? B(e.$slots, "listBox", { key: 0 }, void 0, !0) : (d(), f("div", J, [
263
- m("div", {
264
- ref: "toggle",
265
- role: "button",
266
- tabindex: o.disabled ? -1 : 0,
267
- class: w({ placeholder: !o.modelValue.length }),
268
- onClick: t[0] || (t[0] = (...l) => s.toggle && s.toggle(...l)),
269
- onKeydown: t[1] || (t[1] = r(a((...l) => s.toggle && s.toggle(...l), ["prevent"]), ["space"]))
270
- }, S(s.summary), 43, Q),
271
- c(p, { class: "icon" })
272
- ])),
273
- I(m("div", {
274
- class: "options",
275
- style: A(s.optionsHeight)
276
- }, [
277
- (d(!0), f(D, null, k(o.possibleValues, (l, i) => (d(), C(u, {
278
- ref_for: !0,
279
- ref: "option",
280
- key: `multiselect-${l.id}`,
281
- "data-index": i,
282
- "model-value": s.isChecked(l.id),
283
- disabled: l.disabled,
284
- class: "boxes",
285
- "onUpdate:modelValue": (V) => s.onUpdateModelValue(l.id, V)
286
- }, {
287
- default: O(() => [
288
- $(S(l.text), 1)
289
- ]),
290
- _: 2
291
- }, 1032, ["data-index", "model-value", "disabled", "onUpdate:modelValue"]))), 128)),
292
- B(e.$slots, "selectAction", {}, void 0, !0)
293
- ], 4), [
294
- [P, s.showOptions]
295
- ])
296
- ], 34);
317
+ 34
318
+ /* CLASS, NEED_HYDRATION */
319
+ );
297
320
  }
298
- const Z = /* @__PURE__ */ E(q, [["render", Y], ["__scopeId", "data-v-9ddc7296"]]), v = "draft-id-combobox-preview-item", _ = M({
321
+ const Z = /* @__PURE__ */ B(X, [["render", Y], ["__scopeId", "data-v-d8f6e694"], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/components/src/components/forms/Multiselect/Multiselect.vue"]]), v = "draft-id-combobox-preview-item", _ = A({
299
322
  name: "ComboBox",
300
323
  components: {
301
324
  Multiselect: Z,
302
- FunctionButton: K,
325
+ FunctionButton: j,
303
326
  CloseIcon: L
304
327
  },
305
328
  props: {
@@ -393,9 +416,9 @@ const Z = /* @__PURE__ */ E(q, [["render", Y], ["__scopeId", "data-v-9ddc7296"]]
393
416
  },
394
417
  searchResults() {
395
418
  const e = this.allPossibleItems.some(
396
- ({ id: o, text: n }) => o === this.trimmedSearchValue || n === this.trimmedSearchValue
419
+ ({ id: s, text: n }) => s === this.trimmedSearchValue || n === this.trimmedSearchValue
397
420
  ), t = this.allPossibleItems.filter(
398
- ({ id: o, text: n }) => n.toLowerCase().includes(this.trimmedLowerCasedSearchValue) || o === this.trimmedSearchValue
421
+ ({ id: s, text: n }) => n.toLowerCase().includes(this.trimmedLowerCasedSearchValue) || s === this.trimmedSearchValue
399
422
  );
400
423
  return this.allowNewValues && !e && !this.isSearchEmpty ? [
401
424
  { id: v, text: `${this.trimmedSearchValue} (new item)` },
@@ -410,7 +433,7 @@ const Z = /* @__PURE__ */ E(q, [["render", Y], ["__scopeId", "data-v-9ddc7296"]]
410
433
  },
411
434
  selectedValues() {
412
435
  return this.modelValue.map(
413
- (e) => this.allPossibleItems.find((t) => e === t.id) || W(e)
436
+ (e) => this.allPossibleItems.find((t) => e === t.id) || H(e)
414
437
  );
415
438
  },
416
439
  maxSizeVisibleOptions() {
@@ -455,12 +478,12 @@ const Z = /* @__PURE__ */ E(q, [["render", Y], ["__scopeId", "data-v-9ddc7296"]]
455
478
  this.emitNewSelection(e);
456
479
  return;
457
480
  }
458
- const o = {
481
+ const s = {
459
482
  id: this.trimmedSearchValue,
460
483
  text: this.trimmedSearchValue
461
484
  };
462
- this.allPossibleItems.push(o), this.emitNewSelection(
463
- e.map((n) => n === v ? o.id : n)
485
+ this.allPossibleItems.push(s), this.emitNewSelection(
486
+ e.map((n) => n === v ? s.id : n)
464
487
  );
465
488
  },
466
489
  removeTag(e) {
@@ -486,9 +509,9 @@ const Z = /* @__PURE__ */ E(q, [["render", Y], ["__scopeId", "data-v-9ddc7296"]]
486
509
  }
487
510
  }
488
511
  }), ee = ["tabindex"], te = ["title"], se = ["maxlength", "disabled"], oe = { class: "icon-right" };
489
- function le(e, t, o, n, b, s) {
490
- const p = h("CloseIcon"), u = h("FunctionButton"), l = h("Multiselect");
491
- return d(), C(l, {
512
+ function le(e, t, s, n, p, o) {
513
+ const a = f("CloseIcon"), b = f("FunctionButton"), l = f("Multiselect");
514
+ return d(), D(l, {
492
515
  ref: "combobox",
493
516
  "model-value": e.modelValue,
494
517
  "possible-values": e.searchResults,
@@ -504,110 +527,156 @@ function le(e, t, o, n, b, s) {
504
527
  "onUpdate:modelValue": e.updateSelectedIds
505
528
  }, {
506
529
  listBox: O(() => [
507
- m("div", {
530
+ c("div", {
508
531
  ref: "listBox",
509
532
  class: "summary-input-icon-wrapper",
510
533
  tabindex: e.disabled ? -1 : 0,
511
- onKeydown: t[8] || (t[8] = r(a((...i) => e.focusInput && e.focusInput(...i), ["prevent", "self"]), ["enter"]))
534
+ onKeydown: t[8] || (t[8] = u(r((...i) => e.focusInput && e.focusInput(...i), ["prevent", "self"]), ["enter"]))
512
535
  }, [
513
- m("div", {
514
- class: w([
515
- "summary-input-wrapper",
516
- { "with-icon-right": e.hasSelection, compact: e.compact }
517
- ]),
518
- onClick: t[7] || (t[7] = a((...i) => e.focusInput && e.focusInput(...i), ["stop"]))
519
- }, [
520
- (d(!0), f(D, null, k(e.selectedValues, ({ id: i, text: V, invalid: R }, T) => (d(), f("div", {
521
- key: `item.id${T}`,
522
- class: "tag",
523
- title: V
524
- }, [
525
- m("span", {
526
- class: w(["text", { invalid: R }])
527
- }, S(V), 3),
528
- c(u, {
529
- class: "remove-tag-button",
536
+ c(
537
+ "div",
538
+ {
539
+ class: w([
540
+ "summary-input-wrapper",
541
+ { "with-icon-right": e.hasSelection, compact: e.compact }
542
+ ]),
543
+ onClick: t[7] || (t[7] = r((...i) => e.focusInput && e.focusInput(...i), ["stop"]))
544
+ },
545
+ [
546
+ (d(!0), h(
547
+ C,
548
+ null,
549
+ P(e.selectedValues, ({ id: i, text: V, invalid: k }, M) => (d(), h("div", {
550
+ key: `item.id${M}`,
551
+ class: "tag",
552
+ title: V
553
+ }, [
554
+ c(
555
+ "span",
556
+ {
557
+ class: w(["text", { invalid: k }])
558
+ },
559
+ S(V),
560
+ 3
561
+ /* TEXT, CLASS */
562
+ ),
563
+ m(b, {
564
+ class: "remove-tag-button",
565
+ compact: e.compact,
566
+ disabled: e.disabled,
567
+ onClick: r((re) => e.removeTag(i), ["stop"])
568
+ }, {
569
+ default: O(() => [
570
+ m(a, { class: "remove-tag-button-icon" })
571
+ ]),
572
+ _: 2
573
+ /* DYNAMIC */
574
+ }, 1032, ["compact", "disabled", "onClick"])
575
+ ], 8, te))),
576
+ 128
577
+ /* KEYED_FRAGMENT */
578
+ )),
579
+ I(c("input", {
580
+ ref: "searchInput",
581
+ "onUpdate:modelValue": t[0] || (t[0] = (i) => e.searchValue = i),
582
+ class: "search-input",
583
+ type: "text",
584
+ style: N(e.inputWidth),
585
+ maxlength: e.maxCharactersPerItem,
586
+ disabled: e.disabled,
587
+ onFocus: t[1] || (t[1] = (...i) => e.onInputFocus && e.onInputFocus(...i)),
588
+ onInput: t[2] || (t[2] = (...i) => e.onInput && e.onInput(...i)),
589
+ onKeydown: [
590
+ t[3] || (t[3] = u(r((...i) => e.onEnter && e.onEnter(...i), ["prevent"]), ["enter"])),
591
+ t[4] || (t[4] = u((...i) => e.onBackspace && e.onBackspace(...i), ["backspace"])),
592
+ t[5] || (t[5] = u(r((...i) => e.onDown && e.onDown(...i), ["stop", "prevent"]), ["down"])),
593
+ t[6] || (t[6] = u((...i) => e.closeOptionsAndStop && e.closeOptionsAndStop(...i), ["esc"]))
594
+ ]
595
+ }, null, 44, se), [
596
+ [T, e.searchValue]
597
+ ])
598
+ ],
599
+ 2
600
+ /* CLASS */
601
+ ),
602
+ I(c(
603
+ "div",
604
+ oe,
605
+ [
606
+ m(b, {
607
+ ref: "removeAllTags",
608
+ class: "remove-all-tags-button",
530
609
  compact: e.compact,
531
610
  disabled: e.disabled,
532
- onClick: a((ae) => e.removeTag(i), ["stop"])
611
+ onClick: r(e.removeAllTags, ["stop"])
533
612
  }, {
534
613
  default: O(() => [
535
- c(p, { class: "remove-tag-button-icon" })
614
+ m(a)
536
615
  ]),
537
- _: 2
538
- }, 1032, ["compact", "disabled", "onClick"])
539
- ], 8, te))), 128)),
540
- I(m("input", {
541
- ref: "searchInput",
542
- "onUpdate:modelValue": t[0] || (t[0] = (i) => e.searchValue = i),
543
- class: "search-input",
544
- type: "text",
545
- style: A(e.inputWidth),
546
- maxlength: e.maxCharactersPerItem,
547
- disabled: e.disabled,
548
- onFocus: t[1] || (t[1] = (...i) => e.onInputFocus && e.onInputFocus(...i)),
549
- onInput: t[2] || (t[2] = (...i) => e.onInput && e.onInput(...i)),
550
- onKeydown: [
551
- t[3] || (t[3] = r(a((...i) => e.onEnter && e.onEnter(...i), ["prevent"]), ["enter"])),
552
- t[4] || (t[4] = r((...i) => e.onBackspace && e.onBackspace(...i), ["backspace"])),
553
- t[5] || (t[5] = r(a((...i) => e.onDown && e.onDown(...i), ["stop", "prevent"]), ["down"])),
554
- t[6] || (t[6] = r((...i) => e.closeOptionsAndStop && e.closeOptionsAndStop(...i), ["esc"]))
555
- ]
556
- }, null, 44, se), [
557
- [x, e.searchValue]
558
- ])
559
- ], 2),
560
- I(m("div", oe, [
561
- c(u, {
562
- ref: "removeAllTags",
563
- class: "remove-all-tags-button",
564
- compact: e.compact,
565
- disabled: e.disabled,
566
- onClick: a(e.removeAllTags, ["stop"])
567
- }, {
568
- default: O(() => [
569
- c(p)
570
- ]),
571
- _: 1
572
- }, 8, ["compact", "disabled", "onClick"])
573
- ], 512), [
574
- [P, e.hasSelection]
616
+ _: 1
617
+ /* STABLE */
618
+ }, 8, ["compact", "disabled", "onClick"])
619
+ ],
620
+ 512
621
+ /* NEED_PATCH */
622
+ ), [
623
+ [x, e.hasSelection]
575
624
  ])
576
625
  ], 40, ee)
577
626
  ]),
578
627
  _: 1
628
+ /* STABLE */
579
629
  }, 8, ["model-value", "possible-values", "size-visible-options", "parent-focus-element", "parent-refocus-element-on-close", "close-dropdown-on-selection", "is-valid", "compact", "disabled", "onFocusOutside", "onUpdate:modelValue"]);
580
630
  }
581
- const ie = /* @__PURE__ */ E(_, [["render", le], ["__scopeId", "data-v-755f27e9"]]), ne = /* @__PURE__ */ M({
631
+ const ie = /* @__PURE__ */ B(_, [["render", le], ["__scopeId", "data-v-0f51d071"], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/components/src/components/forms/ComboBox/ComboBox.vue"]]), ne = /* @__PURE__ */ A({
582
632
  __name: "ComboBoxControl",
583
633
  props: {
584
- control: {},
585
- handleChange: { type: Function },
586
- changeValue: { type: Function },
587
- disabled: { type: Boolean },
588
- isValid: { type: Boolean },
589
- onRegisterValidation: { type: Function },
590
- labelForId: {}
634
+ control: { type: Object, required: !0 },
635
+ handleChange: { type: Function, required: !0 },
636
+ changeValue: { type: Function, required: !0 },
637
+ disabled: { type: Boolean, required: !0 },
638
+ isValid: { type: Boolean, required: !0 },
639
+ onRegisterValidation: { type: Function, required: !0 },
640
+ labelForId: { type: String, required: !0 }
591
641
  },
592
- setup(e) {
593
- const t = e, { possibleValues: o } = U(z(t, "control")), n = F(
594
- () => o.value === null || o.value.length === 0
595
- ), b = F(
596
- () => t.disabled || n.value
597
- );
598
- return (s, p) => (d(), C(N(ie), {
599
- id: s.labelForId,
600
- "allow-new-values": n.value ? "" : !1,
601
- "aria-label": s.control.label,
602
- disabled: b.value,
603
- "possible-values": n.value ? s.control.data.map((u) => ({ id: u, text: u })) : N(o),
604
- "model-value": s.control.data,
605
- "is-valid": s.isValid,
606
- compact: "",
607
- "onUpdate:modelValue": p[0] || (p[0] = (u) => s.changeValue(u))
608
- }, null, 8, ["id", "allow-new-values", "aria-label", "disabled", "possible-values", "model-value", "is-valid"]));
642
+ setup(e, { expose: t }) {
643
+ t();
644
+ const s = e, { possibleValues: n } = $(U(s, "control")), p = F(
645
+ () => n.value === null || n.value.length === 0
646
+ ), o = F(
647
+ () => s.disabled || p.value
648
+ ), a = { props: s, possibleValues: n, noPossibleValuesPresent: p, isDisabled: o, get ComboBox() {
649
+ return ie;
650
+ } };
651
+ return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
609
652
  }
610
- }), fe = /* @__PURE__ */ E(ne, [["__scopeId", "data-v-7d8de6e7"]]);
653
+ });
654
+ function ae(e, t, s, n, p, o) {
655
+ return d(), h(
656
+ C,
657
+ null,
658
+ [
659
+ z(`
660
+ TODO Enable unsing :allow-new-values="noPossibleValuesPresent"
661
+ (see https://github.com/vuejs/vue/issues/2169)
662
+ `),
663
+ m(n.ComboBox, {
664
+ id: s.labelForId,
665
+ "allow-new-values": n.noPossibleValuesPresent ? "" : !1,
666
+ "aria-label": s.control.label,
667
+ disabled: n.isDisabled,
668
+ "possible-values": n.noPossibleValuesPresent ? s.control.data.map((a) => ({ id: a, text: a })) : n.possibleValues,
669
+ "model-value": s.control.data,
670
+ "is-valid": s.isValid,
671
+ compact: "",
672
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => s.changeValue(a))
673
+ }, null, 8, ["id", "allow-new-values", "aria-label", "disabled", "possible-values", "model-value", "is-valid"])
674
+ ],
675
+ 2112
676
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
677
+ );
678
+ }
679
+ const be = /* @__PURE__ */ B(ne, [["render", ae], ["__scopeId", "data-v-06069c0d"], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/uiComponents/ComboBoxControl.vue"]]);
611
680
  export {
612
- fe as default
681
+ be as default
613
682
  };
@@ -0,0 +1,38 @@
1
+ import { defineComponent as n, createBlock as a, openBlock as u } from "vue";
2
+ import { D as i } from "./DateTimeInput-DcwhvMD2.js";
3
+ import { _ as l } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
4
+ const d = /* @__PURE__ */ n({
5
+ __name: "DateControl",
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: t }) {
16
+ t();
17
+ const e = { get DateTimeInput() {
18
+ return i;
19
+ } };
20
+ return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
21
+ }
22
+ });
23
+ function s(r, t, e, o, c, p) {
24
+ return u(), a(o.DateTimeInput, {
25
+ id: e.labelForId,
26
+ "two-lines": "",
27
+ "model-value": new Date(e.control.data),
28
+ required: !0,
29
+ "show-time": !1,
30
+ compact: "",
31
+ disabled: e.disabled,
32
+ "onUpdate:modelValue": e.changeValue
33
+ }, null, 8, ["id", "model-value", "disabled", "onUpdate:modelValue"]);
34
+ }
35
+ const b = /* @__PURE__ */ l(d, [["render", s], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/uiComponents/DateControl.vue"]]);
36
+ export {
37
+ b as default
38
+ };
@@ -0,0 +1,53 @@
1
+ import { defineComponent as d, computed as i, createBlock as c, openBlock as p } from "vue";
2
+ import { D as f } from "./DateTimeInput-DcwhvMD2.js";
3
+ import { t as m, f as _ } from "./localTimeUtils-CfchSrLG.js";
4
+ import { _ as h } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
5
+ const T = /* @__PURE__ */ d({
6
+ __name: "DateTimeControl",
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: t }) {
17
+ t();
18
+ const o = a, e = i(() => o.control.uischema.options), r = i(
19
+ () => e.value?.minimum ? m(e.value.minimum) : null
20
+ ), l = i(
21
+ () => e.value?.maximum ? m(e.value.maximum) : null
22
+ ), n = i({
23
+ get: () => m(o.control.data),
24
+ set: (u) => o.changeValue(_(u))
25
+ }), s = { props: o, options: e, minimum: r, maximum: l, modelValue: n, get DateTimeInput() {
26
+ return f;
27
+ } };
28
+ return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
29
+ }
30
+ });
31
+ function b(a, t, o, e, r, l) {
32
+ return p(), c(e.DateTimeInput, {
33
+ id: o.labelForId,
34
+ modelValue: e.modelValue,
35
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => e.modelValue = n),
36
+ "two-lines": "",
37
+ required: !0,
38
+ "show-time": e.options?.showTime,
39
+ "show-seconds": e.options?.showSeconds,
40
+ "show-milliseconds": e.options?.showMilliseconds,
41
+ timezone: "UTC",
42
+ "date-format": e.options?.dateFormat,
43
+ min: e.minimum,
44
+ max: e.maximum,
45
+ "is-valid": o.isValid,
46
+ compact: "",
47
+ disabled: o.disabled
48
+ }, null, 8, ["id", "modelValue", "show-time", "show-seconds", "show-milliseconds", "date-format", "min", "max", "is-valid", "disabled"]);
49
+ }
50
+ const C = /* @__PURE__ */ h(T, [["render", b], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/uiComponents/DateTimeControl.vue"]]);
51
+ export {
52
+ C as default
53
+ };