@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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @knime/json-forms
2
2
 
3
+ ## 1.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [976dba9]
8
+ - @knime/components@1.17.1
9
+ - @knime/styles@1.2.1
10
+ - @knime/rich-text-editor@1.3.16
11
+ - @knime/utils@1.2.5
12
+
13
+ ## 1.5.0
14
+
15
+ ### Minor Changes
16
+
17
+ - 69e24d3: Add error messages to jsonforms renderers
18
+
3
19
  ## 1.4.2
4
20
 
5
21
  ### Patch Changes
@@ -1,20 +1,22 @@
1
- import { defineComponent as n, openBlock as r, createBlock as t, mergeProps as p } from "vue";
1
+ import { defineComponent as n, openBlock as t, createBlock as r, mergeProps as p } from "vue";
2
2
  import { o as a } from "./index-hm05O8UX.js";
3
- import s from "./SimpleTwinlistControl--SlX5r8j.js";
4
- const f = /* @__PURE__ */ n({
3
+ import i from "./SimpleTwinlistControl-DQBlyQ3x.js";
4
+ const d = /* @__PURE__ */ n({
5
5
  __name: "AnyOfTwinlist",
6
6
  props: {
7
7
  control: {},
8
8
  handleChange: { type: Function },
9
9
  changeValue: { type: Function },
10
10
  disabled: { type: Boolean },
11
+ isValid: { type: Boolean },
12
+ onRegisterValidation: { type: Function },
11
13
  labelForId: {}
12
14
  },
13
- setup(i) {
15
+ setup(l) {
14
16
  const e = (o) => o.schema.anyOf.map(a);
15
- return (o, l) => (r(), t(s, p(o.$props, { "options-generator": e }), null, 16));
17
+ return (o, s) => (t(), r(i, p(o.$props, { "options-generator": e }), null, 16));
16
18
  }
17
19
  });
18
20
  export {
19
- f as default
21
+ d as default
20
22
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, useSlots as l, h as a, getCurrentInstance as c, openBlock as f, createBlock as p, resolveDynamicComponent as m, mergeProps as d, withCtx as h, renderSlot as C } from "vue";
2
- import { _ as k } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js";
2
+ import { _ as k } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-QB1XiVQX.js";
3
3
  const u = () => {
4
4
  const t = c();
5
5
  return t == null ? void 0 : t.appContext.app;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as o, resolveComponent as a, openBlock as s, createBlock as n, normalizeClass as r, withCtx as l, renderSlot as d } from "vue";
2
- import { B as i } from "./BaseButton-DaHwEJS7.js";
3
- import { _ as p } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js";
2
+ import { B as i } from "./BaseButton-CHq3Yy1E.js";
3
+ import { _ as p } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-QB1XiVQX.js";
4
4
  const c = o({
5
5
  name: "Button",
6
6
  components: {
@@ -1,5 +1,5 @@
1
1
  import { openBlock as i, createElementBlock as s, normalizeClass as o, createElementVNode as d, renderSlot as u } from "vue";
2
- import { _ as c } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js";
2
+ import { _ as c } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-QB1XiVQX.js";
3
3
  const r = {
4
4
  name: "Checkbox",
5
5
  props: {
@@ -0,0 +1,41 @@
1
+ import { defineComponent as a, ref as r, openBlock as s, createElementBlock as d, createVNode as u, unref as i, withCtx as p, createTextVNode as c, toDisplayString as m, renderSlot as n } from "vue";
2
+ import { C as f } from "./Checkbox-Cke3C-vE.js";
3
+ import { _ as v } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-QB1XiVQX.js";
4
+ const b = /* @__PURE__ */ a({
5
+ __name: "CheckboxControl",
6
+ props: {
7
+ control: {},
8
+ handleChange: { type: Function },
9
+ changeValue: { type: Function },
10
+ disabled: { type: Boolean },
11
+ labelForId: {},
12
+ isValid: { type: Boolean },
13
+ messages: {},
14
+ onRegisterValidation: { type: Function }
15
+ },
16
+ setup(h) {
17
+ const t = r(!1);
18
+ return (e, o) => (s(), d("div", {
19
+ class: "checkbox-input",
20
+ onMouseover: o[0] || (o[0] = (l) => t.value = !0),
21
+ onMouseleave: o[1] || (o[1] = (l) => t.value = !1)
22
+ }, [
23
+ u(i(f), {
24
+ class: "checkbox",
25
+ disabled: e.disabled,
26
+ "model-value": e.control.data,
27
+ "onUpdate:modelValue": e.changeValue
28
+ }, {
29
+ default: p(() => [
30
+ c(m(e.control.label) + " ", 1),
31
+ n(e.$slots, "icon", {}, void 0, !0)
32
+ ]),
33
+ _: 3
34
+ }, 8, ["disabled", "model-value", "onUpdate:modelValue"]),
35
+ n(e.$slots, "buttons", { hover: t.value }, void 0, !0)
36
+ ], 32));
37
+ }
38
+ }), g = /* @__PURE__ */ v(b, [["__scopeId", "data-v-c26e0308"]]);
39
+ export {
40
+ g as default
41
+ };
@@ -1,6 +1,6 @@
1
- import { C as c } from "./Checkbox-CClH5v1O.js";
1
+ import { C as c } from "./Checkbox-Cke3C-vE.js";
2
2
  import { resolveComponent as u, openBlock as o, createElementBlock as s, normalizeClass as f, Fragment as m, renderList as h, createBlock as p, withCtx as x, createTextVNode as b, toDisplayString as V } from "vue";
3
- import { _ as y } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js";
3
+ import { _ as y } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-QB1XiVQX.js";
4
4
  const _ = {
5
5
  name: "Checkboxes",
6
6
  components: {
@@ -0,0 +1,41 @@
1
+ import { defineComponent as t, computed as s, ref as i, onMounted as d, openBlock as r, createBlock as c, unref as p, createCommentVNode as u } from "vue";
2
+ import { o as m } from "./index-hm05O8UX.js";
3
+ import { C as b } from "./Checkboxes-CyaGK3u6.js";
4
+ import { _ as f } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-QB1XiVQX.js";
5
+ const h = /* @__PURE__ */ t({
6
+ __name: "CheckboxesControl",
7
+ props: {
8
+ control: {},
9
+ handleChange: { type: Function },
10
+ changeValue: { type: Function },
11
+ disabled: { type: Boolean },
12
+ isValid: { type: Boolean },
13
+ onRegisterValidation: { type: Function },
14
+ labelForId: {}
15
+ },
16
+ setup(l) {
17
+ const a = l, n = s(
18
+ () => {
19
+ var e;
20
+ return (e = a.control.uischema.options) == null ? void 0 : e.checkboxLayout;
21
+ }
22
+ ), o = i(null);
23
+ return d(() => {
24
+ var e;
25
+ o.value = (e = a.control.schema.anyOf) == null ? void 0 : e.map(m);
26
+ }), (e, v) => o.value ? (r(), c(p(b), {
27
+ key: 0,
28
+ id: e.labelForId,
29
+ class: "checkboxes",
30
+ "possible-values": o.value,
31
+ alignment: n.value,
32
+ disabled: e.disabled,
33
+ "model-value": e.control.data,
34
+ "is-valid": e.isValid,
35
+ "onUpdate:modelValue": e.changeValue
36
+ }, null, 8, ["id", "possible-values", "alignment", "disabled", "model-value", "is-valid", "onUpdate:modelValue"])) : u("", !0);
37
+ }
38
+ }), g = /* @__PURE__ */ f(h, [["__scopeId", "data-v-b664fe87"]]);
39
+ export {
40
+ g as default
41
+ };
@@ -1,16 +1,18 @@
1
1
  import { defineComponent as e, openBlock as o, createBlock as t, mergeProps as l } from "vue";
2
- import r from "./TwinlistControl-Cw71wnqH.js";
3
- const i = /* @__PURE__ */ e({
2
+ import a from "./TwinlistControl-B1Fadf2P.js";
3
+ const u = /* @__PURE__ */ e({
4
4
  __name: "ColumnFilter",
5
5
  props: {
6
6
  control: {},
7
7
  handleChange: { type: Function },
8
8
  changeValue: { type: Function },
9
9
  disabled: { type: Boolean },
10
+ isValid: { type: Boolean },
11
+ onRegisterValidation: { type: Function },
10
12
  labelForId: {}
11
13
  },
12
- setup(a) {
13
- return (n, s) => (o(), t(r, l({ ...n.$props, ...n.$attrs }, {
14
+ setup(r) {
15
+ return (n, s) => (o(), t(a, l({ ...n.$props, ...n.$attrs }, {
14
16
  "unknown-values-text": "Any unknown column",
15
17
  "show-unknown-values": "",
16
18
  "empty-state-label": "No columns in this list"
@@ -18,5 +20,5 @@ const i = /* @__PURE__ */ e({
18
20
  }
19
21
  });
20
22
  export {
21
- i as default
23
+ u as default
22
24
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as h, computed as b, watchEffect as v, watch as w, onMounted as y, openBlock as P, createBlock as g, mergeProps as C, unref as S, withCtx as u, renderSlot as p } from "vue";
2
- import { w as V } from "./getPossibleValuesFromUiSchema-hQj1TCOR.js";
3
- import { k as _, u as D } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js";
4
- import { _ as F } from "./DropdownControl.vue_vue_type_script_setup_true_lang-Cvtd3Y7S.js";
5
- import { b as $ } from "./_baseIsEqual-CBeH4t67.js";
6
- function E(s, t) {
1
+ import { defineComponent as h, computed as b, watchEffect as v, watch as w, onMounted as y, openBlock as g, createBlock as V, mergeProps as P, unref as C, withCtx as u, renderSlot as p } from "vue";
2
+ import { w as F } from "./getPossibleValuesFromUiSchema-hQj1TCOR.js";
3
+ import { k as S, u as _ } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-QB1XiVQX.js";
4
+ import { _ as D } from "./DropdownControl.vue_vue_type_script_setup_true_lang-705eImVg.js";
5
+ import { b as $ } from "./_baseIsEqual-DmkT9Nkc.js";
6
+ function B(s, t) {
7
7
  return $(s, t);
8
8
  }
9
9
  const U = /* @__PURE__ */ h({
@@ -13,16 +13,19 @@ const U = /* @__PURE__ */ h({
13
13
  handleChange: { type: Function },
14
14
  changeValue: { type: Function },
15
15
  disabled: { type: Boolean },
16
- labelForId: {}
16
+ labelForId: {},
17
+ isValid: { type: Boolean },
18
+ messages: {},
19
+ onRegisterValidation: { type: Function }
17
20
  },
18
21
  setup(s) {
19
- const t = s, i = b(
22
+ const t = s, c = b(
20
23
  () => {
21
24
  var o;
22
25
  return (o = t.control.uischema.options) == null ? void 0 : o.choicesProvider;
23
26
  }
24
- ), d = _("getPossibleValuesFromUiSchema"), a = V(
25
- D(i, null),
27
+ ), d = S("getPossibleValuesFromUiSchema"), a = F(
28
+ _(c, null),
26
29
  t.control
27
30
  ), m = new Promise((o) => {
28
31
  v(() => {
@@ -33,16 +36,16 @@ const U = /* @__PURE__ */ h({
33
36
  const e = a.value;
34
37
  if (e === null)
35
38
  throw new Error("Must not convert data before column choices are fetched.");
36
- const c = ((n = e.find((f) => f.id === o)) == null ? void 0 : n.compatibleTypes) ?? [];
37
- return { selected: o, compatibleTypes: c };
39
+ const i = ((n = e.find((f) => f.id === o)) == null ? void 0 : n.compatibleTypes) ?? [];
40
+ return { selected: o, compatibleTypes: i };
38
41
  }, r = ({ selected: o }) => o;
39
42
  return w(() => a.value, () => {
40
43
  const o = t.control.data, e = l(r(o));
41
- E(o, e) || t.changeValue(e);
44
+ B(o, e) || t.changeValue(e);
42
45
  }), y(async () => {
43
- i.value || (a.value = await d(t.control));
44
- }), (o, e) => (P(), g(F, C({ ...o.$attrs, ...o.$props }, {
45
- "async-initial-options": S(m),
46
+ c.value || (a.value = await d(t.control));
47
+ }), (o, e) => (g(), V(D, P({ ...o.$attrs, ...o.$props }, {
48
+ "async-initial-options": C(m),
46
49
  "control-data-to-dropdown-value": r,
47
50
  compact: "",
48
51
  "dropdown-value-to-control-data": l
@@ -50,9 +53,9 @@ const U = /* @__PURE__ */ h({
50
53
  icon: u(() => [
51
54
  p(o.$slots, "icon")
52
55
  ]),
53
- buttons: u(({ hover: c, controlHTMLElement: n }) => [
56
+ buttons: u(({ hover: i, controlHTMLElement: n }) => [
54
57
  p(o.$slots, "buttons", {
55
- hover: c,
58
+ hover: i,
56
59
  controlHTMLElement: n
57
60
  })
58
61
  ]),
@@ -1,12 +1,12 @@
1
- import { resolveComponent as b, openBlock as d, createElementBlock as V, normalizeClass as w, withKeys as u, withModifiers as a, renderSlot as F, createElementVNode as p, toDisplayString as S, createVNode as f, withDirectives as I, normalizeStyle as A, Fragment as k, renderList as D, createBlock as C, withCtx as O, createTextVNode as x, vShow as P, defineComponent as M, vModelText as z, computed as v, ref as B, onMounted as R, unref as N, createCommentVNode as U } from "vue";
1
+ import { resolveComponent as V, openBlock as d, createElementBlock as b, normalizeClass as w, withKeys as u, withModifiers as a, renderSlot as F, createElementVNode as p, toDisplayString as S, createVNode as f, withDirectives as I, normalizeStyle as A, Fragment as k, renderList as D, createBlock as C, withCtx as O, createTextVNode as x, vShow as P, defineComponent as M, vModelText as R, computed as v, ref as B, onMounted as z, unref as N, createCommentVNode as U } from "vue";
2
2
  import { w as L } from "./getPossibleValuesFromUiSchema-hQj1TCOR.js";
3
- import { _ as E, u as H } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-DomWqX4A.js";
3
+ import { _ as E, u as H } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-QB1XiVQX.js";
4
4
  import { C as K } from "./close-h7XT0ja0.js";
5
- import { F as j } from "./FunctionButton-fTG-kCKu.js";
5
+ import { F as j } from "./FunctionButton-DqqAHIw1.js";
6
6
  /* empty css */
7
7
  import { u as W } from "./index-CkuSIXs2.js";
8
8
  import { A as G } from "./arrow-dropdown-DjUxzjqC.js";
9
- import { C as X } from "./Checkbox-CClH5v1O.js";
9
+ import { C as X } from "./Checkbox-Cke3C-vE.js";
10
10
  import { c as q } from "./createMissingItem-B00Kg95q.js";
11
11
  const y = 1, J = 28.5, Q = 8, Y = {
12
12
  name: "Multiselect",
@@ -241,8 +241,8 @@ const y = 1, J = 28.5, Q = 8, Y = {
241
241
  }
242
242
  }, Z = { key: 1 };
243
243
  function _(e, t, i, n, h, l) {
244
- const r = b("DropdownIcon"), c = b("Checkbox");
245
- return d(), V("div", {
244
+ const r = V("DropdownIcon"), c = V("Checkbox");
245
+ return d(), b("div", {
246
246
  ref: "multiselect",
247
247
  class: w(["multiselect", { collapsed: h.collapsed, invalid: !i.isValid, compact: i.compact }]),
248
248
  onKeydown: [
@@ -253,7 +253,7 @@ function _(e, t, i, n, h, l) {
253
253
  onFocusout: t[5] || (t[5] = a((...s) => l.onFocusOut && l.onFocusOut(...s), ["stop"])),
254
254
  onMousedown: t[6] || (t[6] = (...s) => l.onMousedown && l.onMousedown(...s))
255
255
  }, [
256
- i.useCustomListBox ? F(e.$slots, "listBox", { key: 0 }, void 0, !0) : (d(), V("div", Z, [
256
+ i.useCustomListBox ? F(e.$slots, "listBox", { key: 0 }, void 0, !0) : (d(), b("div", Z, [
257
257
  p("div", {
258
258
  ref: "toggle",
259
259
  role: "button",
@@ -268,7 +268,7 @@ function _(e, t, i, n, h, l) {
268
268
  class: "options",
269
269
  style: A(l.optionsHeight)
270
270
  }, [
271
- (d(!0), V(k, null, D(i.possibleValues, (s, o) => (d(), C(c, {
271
+ (d(!0), b(k, null, D(i.possibleValues, (s, o) => (d(), C(c, {
272
272
  ref_for: !0,
273
273
  ref: "option",
274
274
  key: `multiselect-${s.id}`,
@@ -466,7 +466,7 @@ const ee = /* @__PURE__ */ E(Y, [["render", _], ["__scopeId", "data-v-e722538a"]
466
466
  }
467
467
  }), se = ["title"], oe = { class: "icon-right" };
468
468
  function le(e, t, i, n, h, l) {
469
- const r = b("CloseIcon"), c = b("FunctionButton"), s = b("Multiselect");
469
+ const r = V("CloseIcon"), c = V("FunctionButton"), s = V("Multiselect");
470
470
  return d(), C(s, {
471
471
  ref: "combobox",
472
472
  "model-value": e.modelValue,
@@ -495,7 +495,7 @@ function le(e, t, i, n, h, l) {
495
495
  ]),
496
496
  onClick: t[7] || (t[7] = a((...o) => e.focusInput && e.focusInput(...o), ["stop"]))
497
497
  }, [
498
- (d(!0), V(k, null, D(e.selectedValues, ({ id: o, text: m, invalid: T }, $) => (d(), V("div", {
498
+ (d(!0), b(k, null, D(e.selectedValues, ({ id: o, text: m, invalid: T }, $) => (d(), b("div", {
499
499
  key: `item.id${$}`,
500
500
  class: "tag",
501
501
  title: m
@@ -529,7 +529,7 @@ function le(e, t, i, n, h, l) {
529
529
  t[6] || (t[6] = u((...o) => e.closeOptionsAndStop && e.closeOptionsAndStop(...o), ["esc"]))
530
530
  ]
531
531
  }, null, 36), [
532
- [z, e.searchValue]
532
+ [R, e.searchValue]
533
533
  ])
534
534
  ], 2),
535
535
  I(p("div", oe, [
@@ -559,6 +559,8 @@ const ie = /* @__PURE__ */ E(te, [["render", le], ["__scopeId", "data-v-84cbb077
559
559
  handleChange: { type: Function },
560
560
  changeValue: { type: Function },
561
561
  disabled: { type: Boolean },
562
+ isValid: { type: Boolean },
563
+ onRegisterValidation: { type: Function },
562
564
  labelForId: {}
563
565
  },
564
566
  setup(e) {
@@ -571,7 +573,7 @@ const ie = /* @__PURE__ */ E(te, [["render", le], ["__scopeId", "data-v-84cbb077
571
573
  H(i, []),
572
574
  t.control
573
575
  ), h = B([]), l = B(!1);
574
- R(() => {
576
+ z(() => {
575
577
  var s, o;
576
578
  h.value = t.control.data, i.value || (n.value = (o = (s = t.control.uischema) == null ? void 0 : s.options) == null ? void 0 : o.possibleValues), l.value = !0;
577
579
  });
@@ -591,11 +593,12 @@ const ie = /* @__PURE__ */ E(te, [["render", le], ["__scopeId", "data-v-84cbb077
591
593
  disabled: c.value,
592
594
  "possible-values": r.value ? [] : N(n),
593
595
  "model-value": h.value,
596
+ "is-valid": s.isValid,
594
597
  compact: "",
595
598
  "onUpdate:modelValue": o[0] || (o[0] = (m) => s.changeValue(m))
596
- }, null, 8, ["id", "allow-new-values", "aria-label", "disabled", "possible-values", "model-value"])) : U("", !0);
599
+ }, null, 8, ["id", "allow-new-values", "aria-label", "disabled", "possible-values", "model-value", "is-valid"])) : U("", !0);
597
600
  }
598
- }), Oe = /* @__PURE__ */ E(ne, [["__scopeId", "data-v-838db307"]]);
601
+ }), Oe = /* @__PURE__ */ E(ne, [["__scopeId", "data-v-f26e8737"]]);
599
602
  export {
600
603
  Oe as default
601
604
  };
@@ -1,16 +1,18 @@
1
1
  import { defineComponent as o, openBlock as a, createBlock as l, unref as n } from "vue";
2
- import { D as t } from "./DateTimeInput-BS4u5oiH.js";
3
- const i = /* @__PURE__ */ o({
2
+ import { D as t } from "./DateTimeInput-DsWORwg_.js";
3
+ const u = /* @__PURE__ */ o({
4
4
  __name: "DateControl",
5
5
  props: {
6
6
  control: {},
7
7
  handleChange: { type: Function },
8
8
  changeValue: { type: Function },
9
9
  disabled: { type: Boolean },
10
+ isValid: { type: Boolean },
11
+ onRegisterValidation: { type: Function },
10
12
  labelForId: {}
11
13
  },
12
14
  setup(d) {
13
- return (e, r) => (a(), l(n(t), {
15
+ return (e, i) => (a(), l(n(t), {
14
16
  id: e.labelForId,
15
17
  "two-lines": "",
16
18
  "model-value": new Date(e.control.data),
@@ -23,5 +25,5 @@ const i = /* @__PURE__ */ o({
23
25
  }
24
26
  });
25
27
  export {
26
- i as default
28
+ u as default
27
29
  };
@@ -1,51 +1,54 @@
1
- import { defineComponent as v, computed as a, openBlock as f, createBlock as w, unref as T } from "vue";
2
- import { D as b } from "./DateTimeInput-BS4u5oiH.js";
3
- import { t as m, f as C } from "./localTimeUtils-DzcBbZvn.js";
4
- const g = /* @__PURE__ */ v({
1
+ import { defineComponent as h, computed as a, openBlock as f, createBlock as w, unref as V } from "vue";
2
+ import { D as T } from "./DateTimeInput-DsWORwg_.js";
3
+ import { t as i, f as b } from "./localTimeUtils-Clk_MujE.js";
4
+ const y = /* @__PURE__ */ h({
5
5
  __name: "DateTimeControl",
6
6
  props: {
7
7
  control: {},
8
8
  handleChange: { type: Function },
9
9
  changeValue: { type: Function },
10
10
  disabled: { type: Boolean },
11
+ isValid: { type: Boolean },
12
+ onRegisterValidation: { type: Function },
11
13
  labelForId: {}
12
14
  },
13
15
  setup(r) {
14
16
  const l = r, o = a(() => l.control.uischema.options), c = a(
15
17
  () => {
16
18
  var e;
17
- return (e = o.value) != null && e.minimum ? m(o.value.minimum) : null;
19
+ return (e = o.value) != null && e.minimum ? i(o.value.minimum) : null;
18
20
  }
19
21
  ), p = a(
20
22
  () => {
21
23
  var e;
22
- return (e = o.value) != null && e.maximum ? m(o.value.maximum) : null;
24
+ return (e = o.value) != null && e.maximum ? i(o.value.maximum) : null;
23
25
  }
24
26
  ), n = a({
25
- get: () => m(l.control.data),
26
- set: (e) => l.changeValue(C(e))
27
+ get: () => i(l.control.data),
28
+ set: (e) => l.changeValue(b(e))
27
29
  });
28
- return (e, t) => {
29
- var i, s, u, d;
30
- return f(), w(T(b), {
30
+ return (e, m) => {
31
+ var t, s, u, d;
32
+ return f(), w(V(T), {
31
33
  id: e.labelForId,
32
34
  modelValue: n.value,
33
- "onUpdate:modelValue": t[0] || (t[0] = (h) => n.value = h),
35
+ "onUpdate:modelValue": m[0] || (m[0] = (v) => n.value = v),
34
36
  "two-lines": "",
35
37
  required: !0,
36
- "show-time": (i = o.value) == null ? void 0 : i.showTime,
38
+ "show-time": (t = o.value) == null ? void 0 : t.showTime,
37
39
  "show-seconds": (s = o.value) == null ? void 0 : s.showSeconds,
38
40
  "show-milliseconds": (u = o.value) == null ? void 0 : u.showMilliseconds,
39
41
  timezone: "UTC",
40
42
  "date-format": (d = o.value) == null ? void 0 : d.dateFormat,
41
43
  min: c.value,
42
44
  max: p.value,
45
+ "is-valid": e.isValid,
43
46
  compact: "",
44
47
  disabled: e.disabled
45
- }, null, 8, ["id", "modelValue", "show-time", "show-seconds", "show-milliseconds", "date-format", "min", "max", "disabled"]);
48
+ }, null, 8, ["id", "modelValue", "show-time", "show-seconds", "show-milliseconds", "date-format", "min", "max", "is-valid", "disabled"]);
46
49
  };
47
50
  }
48
51
  });
49
52
  export {
50
- g as default
53
+ y as default
51
54
  };