@knime/jsonforms 1.4.2 → 1.5.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 (142) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/{AnyOfTwinlist-ZSMUfL9L.js → AnyOfTwinlist-CaEOxW3M.js} +8 -6
  3. package/dist/{BaseButton-DaHwEJS7.js → BaseButton-CHq3Yy1E.js} +1 -1
  4. package/dist/{Button-Bw_2CUrZ.js → Button-Dx6CyoGv.js} +2 -2
  5. package/dist/{Checkbox-CClH5v1O.js → Checkbox-Cke3C-vE.js} +1 -1
  6. package/dist/CheckboxControl-D1SHTB8h.js +41 -0
  7. package/dist/{Checkboxes-D4qPaeYl.js → Checkboxes-CyaGK3u6.js} +2 -2
  8. package/dist/CheckboxesControl-D312pbsl.js +41 -0
  9. package/dist/{ColumnFilter-C7RkEFw3.js → ColumnFilter-CwMprrK8.js} +7 -5
  10. package/dist/{ColumnSelect-CofZcttu.js → ColumnSelect-CVJpUuIQ.js} +21 -18
  11. package/dist/{ComboBoxControl-C9KmCrJL.js → ComboBoxControl-BXkGuoeG.js} +17 -14
  12. package/dist/{DateControl-CzO-FHO5.js → DateControl-C4yaoxEp.js} +6 -4
  13. package/dist/{DateTimeControl-1FXkgKJC.js → DateTimeControl-mo58rw4f.js} +18 -15
  14. package/dist/{DateTimeFormatPickerControl-CoY0tjuj.js → DateTimeFormatPickerControl-BiJIe8E3.js} +29 -27
  15. package/dist/{DateTimeInput-BS4u5oiH.js → DateTimeInput-DsWORwg_.js} +7 -7
  16. package/dist/{Dropdown-DY6B_Cwm.js → Dropdown-BE1j7NkI.js} +4 -4
  17. package/dist/{DropdownControl-BOx53GRG.js → DropdownControl-BRn6Cwjr.js} +1 -1
  18. package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-705eImVg.js +237 -0
  19. package/dist/{FunctionButton-fTG-kCKu.js → FunctionButton-DqqAHIw1.js} +2 -2
  20. package/dist/{HorizontalLayout-B6G89LUS.js → HorizontalLayout--yiRzTf6.js} +1 -1
  21. package/dist/{InputField-Ciw2sHfy.js → InputField-CokMvcHT.js} +1 -1
  22. package/dist/IntegerControl-NUkXRovt.js +20 -0
  23. package/dist/{IntervalControl-Cv3oVrKV.js → IntervalControl-CbN3LxUy.js} +37 -35
  24. package/dist/{MultiselectListBox-Ds0W-GHB.js → MultiselectListBox-DP2uhI2G.js} +1 -1
  25. package/dist/{NameFilter-BpyjqqIg.js → NameFilter-2zzjeGcf.js} +7 -5
  26. package/dist/NumberControl-ex4FP7SU.js +20 -0
  27. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-CDfj1hZd.js +60 -0
  28. package/dist/{NumberInput-Cq6cNPOt.js → NumberInput-Qq75PlO6.js} +1 -1
  29. package/dist/OneOfDropdown-Adcy7Erh.js +35 -0
  30. package/dist/RadioControl-Dd78K-EK.js +24 -0
  31. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-CJRt1KAq.js → RadioControlBase.vue_vue_type_script_setup_true_lang-CJkUMFUb.js} +11 -9
  32. package/dist/{RichTextControl-DfLozxjM.js → RichTextControl-BHg6ymeN.js} +10 -8
  33. package/dist/{SectionLayout-B8lhvDwV.js → SectionLayout-BVy_P8t3.js} +2 -2
  34. package/dist/SimpleButtonControl-CgdCrXfy.js +61 -0
  35. package/dist/{SimpleTwinlistControl--SlX5r8j.js → SimpleTwinlistControl-DQBlyQ3x.js} +16 -13
  36. package/dist/SortListControl-B6-zMq_0.js +366 -0
  37. package/dist/{TextAreaControl-Cxe1N51h.js → TextAreaControl-D57tefaR.js} +25 -22
  38. package/dist/{TextControl-C97DTUxi.js → TextControl-CrRig4Eb.js} +1 -1
  39. package/dist/TextControl.vue_vue_type_script_setup_true_lang-Dyo28Jiw.js +87 -0
  40. package/dist/TimeControl-Bvfsb3xP.js +33 -0
  41. package/dist/{TwinlistControl-Cw71wnqH.js → TwinlistControl-B1Fadf2P.js} +21 -18
  42. package/dist/{TwinlistLoadingInfo-5dgWG85L.js → TwinlistLoadingInfo-DZ4p5J7x.js} +9 -9
  43. package/dist/{ValueSwitch-Ds5TMrQM.js → ValueSwitch-BHQvfjcw.js} +1 -1
  44. package/dist/ValueSwitchControl-Dr8FrHKm.js +20 -0
  45. package/dist/{VerticalLayout-FdSZVMXg.js → VerticalLayout-DVjSQ_-H.js} +2 -2
  46. package/dist/{VerticalLayoutBase-BM2Lzz4_.js → VerticalLayoutBase-YYIM5Icf.js} +1 -1
  47. package/dist/{VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js → VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-QB1XiVQX.js} +5705 -5674
  48. package/dist/ZonedDateTimeControl-ByZO_E4E.js +70 -0
  49. package/dist/{_baseAssignValue-BHZMmalr.js → _baseAssignValue-BPMLYzDH.js} +1 -1
  50. package/dist/{_baseEach-CFl6drhJ.js → _baseEach-B8N_Gx8P.js} +2 -2
  51. package/dist/{_baseIsEqual-CBeH4t67.js → _baseIsEqual-DmkT9Nkc.js} +3 -3
  52. package/dist/{_baseIteratee-BLHhVAua.js → _baseIteratee-DvBmrhnf.js} +3 -3
  53. package/dist/{_getTag-ryBefWgF.js → _getTag-DS8v0_uf.js} +33 -34
  54. package/dist/isSymbol-OFe5xy2f.js +34 -0
  55. package/dist/knime-jsonforms.css +1 -1
  56. package/dist/knime-jsonforms.js +26 -26
  57. package/dist/{localTimeUtils-DzcBbZvn.js → localTimeUtils-Clk_MujE.js} +1 -1
  58. package/dist/src/JsonFormsDialog.vue.d.ts +2 -2
  59. package/dist/src/higherOrderComponents/control/ErrorMessage.vue.d.ts +15 -0
  60. package/dist/src/higherOrderComponents/control/ErrorMessageWrapper.vue.d.ts +22 -0
  61. package/dist/src/higherOrderComponents/control/index.d.ts +1 -1
  62. package/dist/src/higherOrderComponents/control/types.d.ts +2 -1
  63. package/dist/src/higherOrderComponents/control/util.d.ts +18 -2
  64. package/dist/src/higherOrderComponents/control/validation/types.d.ts +10 -0
  65. package/dist/src/higherOrderComponents/control/validation/useValidation.d.ts +9 -0
  66. package/dist/src/higherOrderComponents/control/withErrorMessage.d.ts +4 -0
  67. package/dist/src/higherOrderComponents/control/withLabel.d.ts +9 -0
  68. package/dist/src/renderers/checkboxRenderer.d.ts +1 -192
  69. package/dist/src/renderers/checkboxesRenderer.d.ts +1 -3
  70. package/dist/src/renderers/columnFilterRenderer.d.ts +1 -3
  71. package/dist/src/renderers/columnSelectRenderer.d.ts +56 -0
  72. package/dist/src/renderers/comboBoxRenderer.d.ts +1 -3
  73. package/dist/src/renderers/dateTimeFormatPickerRenderer.d.ts +1 -3
  74. package/dist/src/renderers/dateTimeRenderer.d.ts +1 -3
  75. package/dist/src/renderers/defaultRenderers.d.ts +299 -247
  76. package/dist/src/renderers/dropdownRenderer.d.ts +48 -0
  77. package/dist/src/renderers/fallbackRenderers.d.ts +91 -189
  78. package/dist/src/renderers/integerRenderer.d.ts +1 -3
  79. package/dist/src/renderers/intervalRenderer.d.ts +1 -3
  80. package/dist/src/renderers/localDateRenderer.d.ts +1 -3
  81. package/dist/src/renderers/localTimeRenderer.d.ts +1 -3
  82. package/dist/src/renderers/nameFilterRenderer.d.ts +1 -3
  83. package/dist/src/renderers/numberRenderer.d.ts +1 -3
  84. package/dist/src/renderers/radioRenderer.d.ts +1 -3
  85. package/dist/src/renderers/richTextRenderer.d.ts +1 -3
  86. package/dist/src/renderers/simpleButtonRenderer.d.ts +9 -0
  87. package/dist/src/renderers/sortListRenderer.d.ts +48 -0
  88. package/dist/src/renderers/textAreaRenderer.d.ts +1 -3
  89. package/dist/src/renderers/textMessageRenderer.d.ts +24 -0
  90. package/dist/src/renderers/textRenderer.d.ts +48 -0
  91. package/dist/src/renderers/twinlistRenderer.d.ts +2 -6
  92. package/dist/src/renderers/valueSwitchRenderer.d.ts +1 -3
  93. package/dist/src/renderers/zonedDateTimeRenderer.d.ts +4 -6
  94. package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +1 -1
  95. package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +1 -1
  96. package/dist/src/uiComponents/DateControl.vue.d.ts +1 -1
  97. package/dist/src/uiComponents/DateTimeControl.vue.d.ts +1 -1
  98. package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +1 -1
  99. package/dist/src/uiComponents/DropdownControl.vue.d.ts +58 -3
  100. package/dist/src/uiComponents/IntegerControl.vue.d.ts +1 -1
  101. package/dist/src/uiComponents/IntervalControl.vue.d.ts +1 -1
  102. package/dist/src/uiComponents/NumberControl.vue.d.ts +1 -1
  103. package/dist/src/uiComponents/NumberControlBase.vue.d.ts +2 -2
  104. package/dist/src/uiComponents/RadioControl.vue.d.ts +1 -1
  105. package/dist/src/uiComponents/RadioControlBase.vue.d.ts +2 -2
  106. package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +9 -0
  107. package/dist/src/uiComponents/SortListControl.vue.d.ts +58 -3
  108. package/dist/src/uiComponents/TextAreaControl.vue.d.ts +1 -1
  109. package/dist/src/uiComponents/TimeControl.vue.d.ts +1 -1
  110. package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +1 -1
  111. package/dist/src/uiComponents/index.d.ts +1 -1
  112. package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +1 -1
  113. package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +1 -1
  114. package/dist/src/uiComponents/twinlist/ColumnFilter.vue.d.ts +1 -1
  115. package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +1 -1
  116. package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -2
  117. package/dist/src/uiComponents/twinlist/TwinlistControl.vue.d.ts +2 -2
  118. package/dist/{svgWithTitle-CkdEuLiz.js → svgWithTitle-CJ0jyTXl.js} +1 -1
  119. package/dist/testUtils/component.d.ts +70 -7
  120. package/dist/testUtils/renderer.d.ts +1 -1
  121. package/dist/testing.js +203 -199
  122. package/dist/toString-DkbNkGT4.js +25 -0
  123. package/package.json +5 -5
  124. package/dist/CheckboxControl-DNlnK4C9.js +0 -42
  125. package/dist/CheckboxesControl-CcQ3PLSm.js +0 -38
  126. package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-Cvtd3Y7S.js +0 -226
  127. package/dist/ErrorMessage-BDO-x3Uz.js +0 -23
  128. package/dist/IntegerControl-C0jzMmDK.js +0 -18
  129. package/dist/NumberControl-DFJ7GW28.js +0 -18
  130. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-BVjv3GjM.js +0 -42
  131. package/dist/OneOfDropdown-fpE_aGK6.js +0 -32
  132. package/dist/RadioControl-BMvmjgc4.js +0 -22
  133. package/dist/SimpleButtonControl-Cc2jhvsQ.js +0 -58
  134. package/dist/SortListControl-BFZehvrs.js +0 -356
  135. package/dist/TextControl.vue_vue_type_script_setup_true_lang-CHTtVr4t.js +0 -69
  136. package/dist/TimeControl-CFFsz8tR.js +0 -30
  137. package/dist/ValueSwitchControl-CljMpNHI.js +0 -18
  138. package/dist/ZonedDateTimeControl-CCtdviwP.js +0 -66
  139. package/dist/isSymbol-CSje8ekq.js +0 -8
  140. package/dist/src/higherOrderComponents/control/addLabel.d.ts +0 -12
  141. package/dist/src/uiComponents/ErrorMessage.vue.d.ts +0 -23
  142. package/dist/toString-ld_LFpvz.js +0 -26
@@ -1,10 +1,10 @@
1
- import { openBlock as u, createElementBlock as y, createElementVNode as m, defineComponent as I, computed as F, ref as T, reactive as G, watch as R, onMounted as J, createVNode as h, withCtx as M, withKeys as N, withModifiers as Q, normalizeStyle as L, unref as w, Fragment as X, renderList as Y, normalizeClass as z, toDisplayString as P, nextTick as S, mergeModels as B, useModel as ee, withDirectives as te, vModelText as oe, createCommentVNode as O, createBlock as le } from "vue";
2
- import { n as C, _ as K, u as ae } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js";
1
+ import { openBlock as u, createElementBlock as y, createElementVNode as m, defineComponent as I, computed as F, ref as T, reactive as G, watch as $, onMounted as J, createVNode as h, withCtx as M, withKeys as N, withModifiers as Q, normalizeStyle as L, unref as w, Fragment as X, renderList as Y, normalizeClass as z, toDisplayString as P, nextTick as S, mergeModels as B, useModel as ee, withDirectives as te, vModelText as oe, createCommentVNode as O, createBlock as le } from "vue";
2
+ import { n as C, _ as K, u as ae } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-QB1XiVQX.js";
3
3
  import { o as se } from "./index-CkuSIXs2.js";
4
4
  import { u as ne, o as ie, s as re, f as de, a as ce } from "./floating-ui.vue.esm-B1dY_Hbh.js";
5
5
  import { u as me } from "./useDropdownNavigation-D6ZenVxz.js";
6
- import { L as ue } from "./svgWithTitle-CkdEuLiz.js";
7
- import { V as U } from "./ValueSwitch-Ds5TMrQM.js";
6
+ import { L as ue } from "./svgWithTitle-CJ0jyTXl.js";
7
+ import { V as U } from "./ValueSwitch-BHQvfjcw.js";
8
8
  const pe = {
9
9
  xmlns: "http://www.w3.org/2000/svg",
10
10
  fill: "none",
@@ -25,7 +25,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
25
25
  }, Ee = {
26
26
  key: 1,
27
27
  class: "no-formats-available"
28
- }, be = ["onClick", "onDblclick"], De = { class: "format-pattern" }, ke = { class: "format-preview" }, H = 1, xe = /* @__PURE__ */ I({
28
+ }, be = ["onClick", "onDblclick"], De = { class: "format-pattern" }, Ve = { class: "format-preview" }, H = 1, ke = /* @__PURE__ */ I({
29
29
  __name: "DateTimeFormatPickerPopover",
30
30
  props: {
31
31
  allFormats: {},
@@ -55,7 +55,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
55
55
  () => f.filter(
56
56
  (e) => p.allowedTypes.includes(e.id)
57
57
  )
58
- ), k = F(() => [
58
+ ), V = F(() => [
59
59
  {
60
60
  id: "RECENT",
61
61
  text: "Recent"
@@ -80,7 +80,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
80
80
  )) ?? null;
81
81
  }), D = T(null), r = G({}), d = (e) => `${e.format}-${e.category}-${e.temporalType}`, _ = (e) => (t) => {
82
82
  r[d(e)] = t;
83
- }, { currentIndex: x, onKeydown: A, resetNavigation: Z } = me({
83
+ }, { currentIndex: k, onKeydown: A, resetNavigation: Z } = me({
84
84
  keepOpenedOnTab: !0,
85
85
  getFirstElement: () => ({
86
86
  index: 0,
@@ -117,24 +117,24 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
117
117
  const o = t.offsetTop + H, l = t.clientHeight + t.scrollTop, v = e.offsetTop + e.offsetHeight - o;
118
118
  v > l ? t.scrollTop = v - t.clientHeight : e.offsetTop - t.scrollTop < o && (t.scrollTop = e.offsetTop - o);
119
119
  }
120
- }, $ = async (e, t, o) => {
120
+ }, R = async (e, t, o) => {
121
121
  c.value = t ?? c.value, a.value = o ?? a.value, await S(), b.value = e;
122
122
  const l = r[`${e}-${a.value}-${c.value}`];
123
123
  l && j(l);
124
124
  const v = s.value.findIndex(
125
- (V) => V.format === e
125
+ (x) => x.format === e
126
126
  );
127
- x.value = v;
127
+ k.value = v;
128
128
  }, W = async () => {
129
129
  var e;
130
130
  await S(), (e = D.value) == null || e.focus();
131
131
  };
132
- R(x, (e) => {
132
+ $(k, (e) => {
133
133
  if (e === null)
134
134
  return;
135
135
  const t = s.value[e];
136
- $(t.format, t.temporalType, t.category);
137
- }), R([c, a], () => {
136
+ R(t.format, t.temporalType, t.category);
137
+ }), $([c, a], () => {
138
138
  b.value = null, Z();
139
139
  });
140
140
  const q = T(!1);
@@ -147,10 +147,10 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
147
147
  "EUROPEAN",
148
148
  "AMERICAN"
149
149
  ], t = p.allFormats.filter((o) => p.initialSelectedPattern === o.format).sort((o, l) => {
150
- const v = e.indexOf(o.category), V = e.indexOf(l.category);
151
- return v - V;
150
+ const v = e.indexOf(o.category), x = e.indexOf(l.category);
151
+ return v - x;
152
152
  });
153
- t.length > 0 && $(
153
+ t.length > 0 && R(
154
154
  t[0].format,
155
155
  t[0].temporalType,
156
156
  t[0].category
@@ -189,7 +189,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
189
189
  modelValue: a.value,
190
190
  "onUpdate:modelValue": t[2] || (t[2] = (o) => a.value = o),
191
191
  compact: "",
192
- "possible-values": k.value
192
+ "possible-values": V.value
193
193
  }, null, 8, ["modelValue", "possible-values"])
194
194
  ]),
195
195
  _: 1
@@ -222,16 +222,16 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
222
222
  key: d(o),
223
223
  ref_for: !0,
224
224
  ref: _(o),
225
- class: z([{ selected: l === w(x) }, "single-format"]),
225
+ class: z([{ selected: l === w(k) }, "single-format"]),
226
226
  role: "menuitem",
227
227
  onClick: () => {
228
228
  var v;
229
- x.value = l, (v = D.value) == null || v.focus();
229
+ k.value = l, (v = D.value) == null || v.focus();
230
230
  },
231
231
  onDblclick: () => i("commit", o.format)
232
232
  }, [
233
233
  m("span", De, P(o.format), 1),
234
- m("span", ke, P(o.example), 1)
234
+ m("span", Ve, P(o.example), 1)
235
235
  ], 42, be))), 128))
236
236
  ], 36)
237
237
  ]),
@@ -240,10 +240,10 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
240
240
  ])
241
241
  ]));
242
242
  }
243
- }), Ve = /* @__PURE__ */ K(xe, [["__scopeId", "data-v-01e54f12"]]), Me = { class: "input-fields" }, Ce = ["disabled"], ze = {
243
+ }), xe = /* @__PURE__ */ K(ke, [["__scopeId", "data-v-01e54f12"]]), Me = { class: "input-fields" }, Ce = ["disabled"], ze = {
244
244
  key: 0,
245
245
  class: "invalid-marker"
246
- }, Ie = ["disabled"], Ae = {}, $e = /* @__PURE__ */ I({
246
+ }, Ie = ["disabled"], Ae = {}, Re = /* @__PURE__ */ I({
247
247
  ...Ae,
248
248
  __name: "DateTimeFormatInput",
249
249
  props: /* @__PURE__ */ B({
@@ -265,7 +265,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
265
265
  }),
266
266
  emits: /* @__PURE__ */ B(["committed"], ["update:modelValue"]),
267
267
  setup(g, { emit: E }) {
268
- const i = E, p = g, f = ee(g, "modelValue"), n = "Format like 'yyyy-MM-dd'", k = F(() => p.isValid), b = T(null), c = T(null), a = T(!1), s = (r) => {
268
+ const i = E, p = g, f = ee(g, "modelValue"), n = "Format like 'yyyy-MM-dd'", V = F(() => p.isValid), b = T(null), c = T(null), a = T(!1), s = (r) => {
269
269
  f.value = r, a.value = !1, i("committed", r);
270
270
  };
271
271
  se(c, () => a.value = !1, {
@@ -306,7 +306,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
306
306
  }, null, 40, Ce), [
307
307
  [oe, f.value]
308
308
  ]),
309
- k.value ? O("", !0) : (u(), y("span", ze)),
309
+ V.value ? O("", !0) : (u(), y("span", ze)),
310
310
  m("button", {
311
311
  ref_key: "togglePopoverButtonRef",
312
312
  ref: b,
@@ -325,7 +325,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
325
325
  class: "popover",
326
326
  style: L(w(D))
327
327
  }, [
328
- h(Ve, {
328
+ h(xe, {
329
329
  "all-formats": r.allDefaultFormats,
330
330
  "initial-selected-pattern": f.value,
331
331
  "allowed-types": r.allowedTypes,
@@ -335,13 +335,15 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
335
335
  ], 4)) : O("", !0)
336
336
  ]));
337
337
  }
338
- }), Re = /* @__PURE__ */ K($e, [["__scopeId", "data-v-ce3e7e80"]]), Le = /* @__PURE__ */ I({
338
+ }), $e = /* @__PURE__ */ K(Re, [["__scopeId", "data-v-ce3e7e80"]]), Le = /* @__PURE__ */ I({
339
339
  __name: "DateTimeFormatPickerControl",
340
340
  props: {
341
341
  control: {},
342
342
  handleChange: { type: Function },
343
343
  changeValue: { type: Function },
344
344
  disabled: { type: Boolean },
345
+ isValid: { type: Boolean },
346
+ onRegisterValidation: { type: Function },
345
347
  labelForId: {}
346
348
  },
347
349
  setup(g) {
@@ -355,7 +357,7 @@ const he = { render: ye }, Te = { class: "popover" }, ge = { class: "switch-with
355
357
  }),
356
358
  null
357
359
  );
358
- return (n, k) => (u(), le(w(Re), {
360
+ return (n, V) => (u(), le(w($e), {
359
361
  id: n.labelForId,
360
362
  compact: "",
361
363
  disabled: n.disabled,
@@ -1,14 +1,14 @@
1
1
  import { resolveComponent as qe, openBlock as O, createElementBlock as E, normalizeClass as te, createElementVNode as q, createCommentVNode as ee, withModifiers as Nt, createVNode as V, reactive as Na, computed as _, defineComponent as Ce, ref as we, watch as Ae, onMounted as Un, onUnmounted as Aa, toRefs as yl, inject as br, watchEffect as Co, provide as Dr, nextTick as fr, unref as M, createBlock as Pe, resolveDynamicComponent as Wa, normalizeProps as mr, mergeProps as Mt, renderSlot as _r, withCtx as Te, toDisplayString as Le, Fragment as Oe, renderList as Ge, normalizeStyle as pr, withKeys as _n, withDirectives as xo, toRef as yn, guardReactiveProps as _a, createTextVNode as Ua, isRef as ir, Transition as Yo, resolveDirective as gl, toHandlers as Io, pushScopeId as wl, popScopeId as bl } from "vue";
2
2
  import { c as Dl } from "./popper-CRR--9mA.js";
3
- import { r as _l } from "./BaseButton-DaHwEJS7.js";
4
- import { D as Tl } from "./Dropdown-DY6B_Cwm.js";
3
+ import { r as _l } from "./BaseButton-CHq3Yy1E.js";
4
+ import { D as Tl } from "./Dropdown-BE1j7NkI.js";
5
5
  import { A as Ml } from "./arrow-dropdown-DjUxzjqC.js";
6
6
  /* empty css */
7
- import { _ as So, q as Fn } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js";
8
- import { i as $l, a as Pl } from "./toString-ld_LFpvz.js";
9
- import { b as kl } from "./_baseIteratee-BLHhVAua.js";
10
- import { b as Ol } from "./_baseEach-CFl6drhJ.js";
11
- import { a as Cl } from "./_getTag-ryBefWgF.js";
7
+ import { _ as So, r as Fn } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-QB1XiVQX.js";
8
+ import { i as $l, a as Pl } from "./toString-DkbNkGT4.js";
9
+ import { b as kl } from "./_baseIteratee-DvBmrhnf.js";
10
+ import { b as Ol } from "./_baseEach-B8N_Gx8P.js";
11
+ import { a as Cl } from "./_getTag-DS8v0_uf.js";
12
12
  function it(e) {
13
13
  "@babel/helpers - typeof";
14
14
  return it = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -3,10 +3,10 @@ import { A as pe } from "./arrow-dropdown-DjUxzjqC.js";
3
3
  import { C as he } from "./close-h7XT0ja0.js";
4
4
  /* empty css */
5
5
  import { u as me } from "./useSearch-hpyYQ_6y.js";
6
- import { F as ge } from "./FunctionButton-fTG-kCKu.js";
7
- import { a as ye, b as we, d as xe, f as ve, h as Ve, j as be, k as Ee } from "./_getTag-ryBefWgF.js";
8
- import { i as Se } from "./toString-ld_LFpvz.js";
9
- import { _ as ke } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js";
6
+ import { F as ge } from "./FunctionButton-DqqAHIw1.js";
7
+ import { a as ye, b as we, d as xe, f as ve, h as Ve, j as be, k as Ee } from "./_getTag-DS8v0_uf.js";
8
+ import { i as Se } from "./toString-DkbNkGT4.js";
9
+ import { _ as ke } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-QB1XiVQX.js";
10
10
  var Ce = "[object Map]", Oe = "[object Set]", Ie = Object.prototype, De = Ie.hasOwnProperty;
11
11
  function _e(e) {
12
12
  if (e == null)
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./DropdownControl.vue_vue_type_script_setup_true_lang-Cvtd3Y7S.js";
1
+ import { _ as f } from "./DropdownControl.vue_vue_type_script_setup_true_lang-705eImVg.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,237 @@
1
+ import { defineComponent as E, computed as c, openBlock as y, createBlock as w, unref as h, mergeProps as H, withCtx as b, createCommentVNode as O, ref as N, onMounted as K, onBeforeUnmount as G, normalizeProps as J, createVNode as Q, renderSlot as T } from "vue";
2
+ import { _ as X, k as D, u as Y, L as Z, o as j } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-QB1XiVQX.js";
3
+ import { w as ee } from "./getPossibleValuesFromUiSchema-hQj1TCOR.js";
4
+ import { u as oe } from "./useHideOnNull-CCfNP3O7.js";
5
+ import { D as ne } from "./Dropdown-BE1j7NkI.js";
6
+ import { L as ae } from "./svgWithTitle-CJ0jyTXl.js";
7
+ import { b as te } from "./_baseAssignValue-BPMLYzDH.js";
8
+ import { e as le, c as se, t as re, i as ie } from "./_getTag-DS8v0_uf.js";
9
+ import { i as B } from "./isObject-B53jY8Qg.js";
10
+ import { C as ue } from "./Checkbox-Cke3C-vE.js";
11
+ var de = Object.prototype, ce = de.hasOwnProperty;
12
+ function pe(o, e, l) {
13
+ var s = o[e];
14
+ (!(ce.call(o, e) && le(s, l)) || l === void 0 && !(e in o)) && te(o, e, l);
15
+ }
16
+ function me(o, e, l, s) {
17
+ if (!B(o))
18
+ return o;
19
+ e = se(e, o);
20
+ for (var u = -1, r = e.length, g = r - 1, d = o; d != null && ++u < r; ) {
21
+ var t = re(e[u]), i = l;
22
+ if (t === "__proto__" || t === "constructor" || t === "prototype")
23
+ return o;
24
+ if (u != g) {
25
+ var v = d[t];
26
+ i = void 0, i === void 0 && (i = B(v) ? v : ie(e[u + 1]) ? [] : {});
27
+ }
28
+ pe(d, t, i), d = d[t];
29
+ }
30
+ return o;
31
+ }
32
+ function he(o, e, l) {
33
+ return o == null ? o : me(o, e, l);
34
+ }
35
+ var a = [];
36
+ for (var I = 0; I < 256; ++I)
37
+ a.push((I + 256).toString(16).slice(1));
38
+ function ge(o, e = 0) {
39
+ return (a[o[e + 0]] + a[o[e + 1]] + a[o[e + 2]] + a[o[e + 3]] + "-" + a[o[e + 4]] + a[o[e + 5]] + "-" + a[o[e + 6]] + a[o[e + 7]] + "-" + a[o[e + 8]] + a[o[e + 9]] + "-" + a[o[e + 10]] + a[o[e + 11]] + a[o[e + 12]] + a[o[e + 13]] + a[o[e + 14]] + a[o[e + 15]]).toLowerCase();
40
+ }
41
+ var U, ve = new Uint8Array(16);
42
+ function be() {
43
+ if (!U && (U = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !U))
44
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
45
+ return U(ve);
46
+ }
47
+ var fe = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
48
+ const x = {
49
+ randomUUID: fe
50
+ };
51
+ function Ve(o, e, l) {
52
+ if (x.randomUUID && !o)
53
+ return x.randomUUID();
54
+ o = o || {};
55
+ var s = o.random || (o.rng || be)();
56
+ return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, ge(s);
57
+ }
58
+ const ye = ({ view: o, model: e }) => ({
59
+ ...o,
60
+ ...e
61
+ }), we = /* @__PURE__ */ E({
62
+ __name: "LoadingDropdown",
63
+ props: {
64
+ possibleValues: {},
65
+ modelValue: {},
66
+ id: {},
67
+ ariaLabel: {},
68
+ disabled: { type: Boolean }
69
+ },
70
+ setup(o) {
71
+ const e = o, l = c(() => {
72
+ const { possibleValues: r } = e;
73
+ return r === null ? "Loading" : r.length > 0 ? "No value selected" : "No values present";
74
+ }), s = c(() => e.possibleValues === null ? "" : e.modelValue), u = c(
75
+ () => e.disabled || e.possibleValues === null || e.possibleValues.length === 0
76
+ );
77
+ return (r, g) => (y(), w(h(ne), H({ ...r.$props, ...r.$attrs }, {
78
+ "model-value": s.value,
79
+ disabled: u.value,
80
+ "possible-values": r.possibleValues ?? [],
81
+ placeholder: l.value,
82
+ compact: ""
83
+ }), {
84
+ "icon-right": b(() => [
85
+ r.possibleValues === null ? (y(), w(h(ae), {
86
+ key: 0,
87
+ class: "loading-icon"
88
+ })) : O("", !0)
89
+ ]),
90
+ _: 1
91
+ }, 16, ["model-value", "disabled", "possible-values", "placeholder"]));
92
+ }
93
+ }), De = /* @__PURE__ */ X(we, [["__scopeId", "data-v-cf6ba18c"]]), Te = /* @__PURE__ */ E({
94
+ __name: "DropdownControl",
95
+ props: {
96
+ control: {},
97
+ handleChange: {},
98
+ changeValue: {},
99
+ disabled: { type: Boolean },
100
+ labelForId: {},
101
+ isValid: { type: Boolean },
102
+ messages: {},
103
+ onRegisterValidation: {},
104
+ asyncInitialOptions: { default: null },
105
+ controlDataToDropdownValue: { type: Function, default: (o) => o },
106
+ dropdownValueToControlData: { type: Function, default: (o) => o }
107
+ },
108
+ setup(o) {
109
+ const e = o, l = D("getPossibleValuesFromUiSchema"), s = D("registerWatcher"), u = D("getData"), r = D("sendAlert"), g = N(null), d = c(
110
+ () => {
111
+ var n;
112
+ return (n = e.control.uischema.options) == null ? void 0 : n.choicesProvider;
113
+ }
114
+ ), t = ee(
115
+ Y(d.value, null),
116
+ e.control
117
+ ), i = N(e.control.data), v = (n) => e.dropdownValueToControlData(
118
+ n.length > 0 ? n[0].id : null
119
+ ), { showCheckbox: R, showControl: A, checkboxProps: $ } = oe(
120
+ {
121
+ control: c(() => e.control),
122
+ disabled: c(() => e.disabled),
123
+ controlElement: g
124
+ },
125
+ {
126
+ setDefault: () => {
127
+ !i.value && t.value ? e.changeValue(v(t.value)) : e.changeValue(i.value);
128
+ },
129
+ setNull: () => {
130
+ e.changeValue(null);
131
+ }
132
+ }
133
+ ), _ = c(
134
+ () => e.controlDataToDropdownValue(e.control.data)
135
+ ), L = c(
136
+ () => {
137
+ var n;
138
+ return (n = e.control.uischema.options) == null ? void 0 : n.choicesUpdateHandler;
139
+ }
140
+ ), M = Ve(), P = async (n, f) => {
141
+ const { result: p, state: m, message: C } = await u({
142
+ method: "settings.update",
143
+ options: [
144
+ M,
145
+ L.value,
146
+ ye(n)
147
+ ]
148
+ });
149
+ return (q) => {
150
+ const S = (V) => {
151
+ t.value = V, (f || !_.value) && (he(
152
+ q,
153
+ e.control.path,
154
+ v(V)
155
+ ), e.changeValue(v(V)));
156
+ };
157
+ p && S(p), m === "FAIL" && (C.forEach((V) => {
158
+ r({
159
+ message: V,
160
+ type: "error"
161
+ });
162
+ }), S([]));
163
+ };
164
+ }, W = async (n) => {
165
+ (await P(n, !1))(n);
166
+ }, k = async () => {
167
+ e.asyncInitialOptions !== null ? t.value = await e.asyncInitialOptions : d.value || l(e.control).then((n) => {
168
+ t.value = n;
169
+ });
170
+ };
171
+ let F = () => {
172
+ };
173
+ K(async () => {
174
+ var n, f;
175
+ if (L.value) {
176
+ const p = ((n = e.control.uischema.options) == null ? void 0 : n.dependencies) || [], m = !!((f = e.control.uischema.options) != null && f.setFirstValueOnUpdate);
177
+ F = await s({
178
+ transformSettings: (C) => P(C, m),
179
+ init: W,
180
+ dependencies: p
181
+ });
182
+ } else
183
+ k();
184
+ }), G(() => {
185
+ F();
186
+ });
187
+ const z = (n) => {
188
+ i.value = e.dropdownValueToControlData(n), e.changeValue(i.value);
189
+ };
190
+ return (n, f) => {
191
+ var p;
192
+ return y(), w(Z, {
193
+ label: n.control.label,
194
+ "hide-control-header": (p = n.control.uischema.options) == null ? void 0 : p.hideControlHeader
195
+ }, {
196
+ "before-label": b(() => [
197
+ h(R) ? (y(), w(h(ue), J(H({ key: 0 }, h($))), null, 16)) : O("", !0)
198
+ ]),
199
+ default: b(({ labelForId: m }) => [
200
+ h(A) ? (y(), w(j, {
201
+ key: 0,
202
+ errors: n.messages.errors
203
+ }, {
204
+ default: b(() => [
205
+ Q(De, {
206
+ id: m ?? "",
207
+ ref_key: "controlElement",
208
+ ref: g,
209
+ ariaLabel: n.control.label,
210
+ disabled: n.disabled,
211
+ "model-value": _.value,
212
+ "possible-values": h(t),
213
+ "is-valid": n.isValid,
214
+ compact: "",
215
+ "onUpdate:modelValue": z
216
+ }, null, 8, ["id", "ariaLabel", "disabled", "model-value", "possible-values", "is-valid"])
217
+ ]),
218
+ _: 2
219
+ }, 1032, ["errors"])) : O("", !0)
220
+ ]),
221
+ icon: b(() => [
222
+ T(n.$slots, "icon")
223
+ ]),
224
+ buttons: b(({ hover: m }) => [
225
+ T(n.$slots, "buttons", {
226
+ hover: m,
227
+ controlHTMLElement: g.value
228
+ })
229
+ ]),
230
+ _: 3
231
+ }, 8, ["label", "hide-control-header"]);
232
+ };
233
+ }
234
+ });
235
+ export {
236
+ Te as _
237
+ };
@@ -1,6 +1,6 @@
1
- import { B as s } from "./BaseButton-DaHwEJS7.js";
1
+ import { B as s } from "./BaseButton-CHq3Yy1E.js";
2
2
  import { resolveComponent as o, openBlock as l, createBlock as r, normalizeClass as i, withCtx as d, renderSlot as c } from "vue";
3
- import { _ as u } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js";
3
+ import { _ as u } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-QB1XiVQX.js";
4
4
  const f = {
5
5
  name: "FunctionButton",
6
6
  components: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as l, openBlock as a, createElementBlock as o, Fragment as s, renderList as n, createBlock as u, unref as c } from "vue";
2
- import { o as m, _ as p } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js";
2
+ import { q as m, _ as p } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-QB1XiVQX.js";
3
3
  const i = { class: "horizontal" }, h = /* @__PURE__ */ l({
4
4
  __name: "HorizontalLayout",
5
5
  props: {
@@ -1,6 +1,6 @@
1
1
  /* empty css */
2
2
  import { openBlock as s, createElementBlock as l, normalizeClass as r, renderSlot as o, createCommentVNode as u, createElementVNode as d, mergeProps as c, pushScopeId as p, popScopeId as f } from "vue";
3
- import { _ as m } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js";
3
+ import { _ as m } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-QB1XiVQX.js";
4
4
  const h = {
5
5
  name: "InputField",
6
6
  props: {
@@ -0,0 +1,20 @@
1
+ import { defineComponent as o, openBlock as n, createBlock as t, mergeProps as r } from "vue";
2
+ import { _ as a } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-CDfj1hZd.js";
3
+ const s = /* @__PURE__ */ o({
4
+ __name: "IntegerControl",
5
+ props: {
6
+ control: {},
7
+ handleChange: { type: Function },
8
+ changeValue: { type: Function },
9
+ disabled: { type: Boolean },
10
+ isValid: { type: Boolean },
11
+ onRegisterValidation: { type: Function },
12
+ labelForId: {}
13
+ },
14
+ setup(p) {
15
+ return (e, l) => (n(), t(a, r(e.$props, { type: "integer" }), null, 16));
16
+ }
17
+ });
18
+ export {
19
+ s as default
20
+ };