@knime/jsonforms 1.21.16 → 1.21.19

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 (105) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/AnyOfTwinlist-Chx0nmt3.js +23 -0
  3. package/dist/CheckboxControl-B8b1Di4k.js +40 -0
  4. package/dist/CheckboxesControl-DWUnPGdN.js +39 -0
  5. package/dist/{ColorControl-wEr-pQ4g.js → ColorControl-ByE5ku7u.js} +10 -8
  6. package/dist/{ColorPreviewControl-B7aXaak-.js → ColorPreviewControl-XiKZ4jfn.js} +28 -28
  7. package/dist/ComboBoxControl-zSceYlyZ.js +39 -0
  8. package/dist/DateControl-BBGpEVpr.js +44 -0
  9. package/dist/DateTimeControl-CymOURq5.js +80 -0
  10. package/dist/DateTimeFormatPickerControl-Bx19jwpr.js +34 -0
  11. package/dist/{DateTimeFormatPickerWithTypeControl-BVG_BSaN.js → DateTimeFormatPickerWithTypeControl-Byo_0cTq.js} +30 -29
  12. package/dist/DropdownControl-C6ffVYyf.js +32 -0
  13. package/dist/{ExecutorCoresControl-Cphh4q2c.js → ExecutorCoresControl-D9FZ-g9O.js} +10 -9
  14. package/dist/{ExecutorMemoryControl-BQDSkKjf.js → ExecutorMemoryControl-__P80Lkb.js} +9 -8
  15. package/dist/{FileUploadControl-CnPXEafs.js → FileUploadControl-DWs4PhOj.js} +53 -52
  16. package/dist/{GridSelectionControl-093qWj_x.js → GridSelectionControl-WcJ4y6Fs.js} +27 -26
  17. package/dist/{HorizontalLayout-D07DfljM.js → HorizontalLayout-ByB5A7X3.js} +6 -6
  18. package/dist/{IntegerControl-D0qSSA_X.js → IntegerControl-aveswmbr.js} +5 -4
  19. package/dist/IntervalControl-B4Eqs1Jf.js +51 -0
  20. package/dist/LinkControl-DD56lOiw.js +35 -0
  21. package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-B4K9Nnse.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-CscatDmg.js} +5 -5
  22. package/dist/ManualTwinlistControl-DBZ5RZgW.js +74 -0
  23. package/dist/{MultiSelectListBoxControl-qdxrfyqT.js → MultiSelectListBoxControl-BMsPvxGQ.js} +53 -52
  24. package/dist/{MultimodeTwinlistControl-DKNf9s6C.js → MultimodeTwinlistControl-thO1be1r.js} +1 -1
  25. package/dist/MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-CKcpm_I1.js +159 -0
  26. package/dist/{NameFilter-DxsfvMYP.js → NameFilter-DBMVmZmk.js} +7 -6
  27. package/dist/{NumberControl-gRIAl0Xw.js → NumberControl-BPVO5l6t.js} +7 -6
  28. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-CR61f6d6.js +52 -0
  29. package/dist/{OneOfDropdown-6EW73QQp.js → OneOfDropdown-DBG8ZcpV.js} +13 -11
  30. package/dist/{RadioButtonsWithDescriptionControl-DDdnwXUW.js → RadioButtonsWithDescriptionControl-BsqMTEB5.js} +15 -15
  31. package/dist/{RadioControl-BOGJkSzd.js → RadioControl-ClJmr0EQ.js} +5 -4
  32. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-Bm4EUEvw.js +57 -0
  33. package/dist/{ResourceControlBase-D-oG-tP4.js → ResourceControlBase-CeXYJeR1.js} +21 -18
  34. package/dist/{RichTextControl-FgGsWYtG.js → RichTextControl-DvYkBpzH.js} +2796 -2626
  35. package/dist/SectionHeading-7KVIxCGG.js +61 -0
  36. package/dist/{SectionLayout-Bo11XVly.js → SectionLayout-CwRO3UXc.js} +3 -3
  37. package/dist/SettingsSubPanel-i2sjXJXx.js +5 -0
  38. package/dist/SettingsSubPanelLayout-CV6y2bcX.js +67 -0
  39. package/dist/{SimpleButtonControl-QdWssOCJ.js → SimpleButtonControl-D58aXnm7.js} +14 -14
  40. package/dist/{SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js → SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js} +9583 -9612
  41. package/dist/{SimpleTwinlistControl-CAaKpaUA.js → SimpleTwinlistControl-BSON5VYy.js} +6 -5
  42. package/dist/{SingleSelectControl-D7D5AanU.js → SingleSelectControl-BSqORMYm.js} +21 -19
  43. package/dist/{SingleSelectListBoxControl-XeWCleLY.js → SingleSelectListBoxControl-CFdKzbOK.js} +18 -17
  44. package/dist/SortListControl-DZIHeQmn.js +105 -0
  45. package/dist/{StyledListItem-CjOv-VlL.js → StyledListItem--sgmJ3W_.js} +1 -1
  46. package/dist/{TeamAndSpacesControl-DFrotXG1.js → TeamAndSpacesControl-DiMyDT-5.js} +16 -15
  47. package/dist/{TeamResourceControl-BnBXHcn9.js → TeamResourceControl-Bag_dwA1.js} +12 -11
  48. package/dist/{TextAreaControl-9YsuIVg_.js → TextAreaControl-B52P0DAa.js} +10 -8
  49. package/dist/{TextControl-BrUMvx4G.js → TextControl-52n-sttB.js} +1 -1
  50. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-4BT0xCnX.js → TextControl.vue_vue_type_script_setup_true_lang-DrD-RvHO.js} +16 -14
  51. package/dist/{TimeControl-DvzIDb-2.js → TimeControl-Cu12_qpz.js} +26 -24
  52. package/dist/{TimeframesControl-2GAc0ndD.js → TimeframesControl-DhdC8OS1.js} +7 -6
  53. package/dist/{TwinlistControlBase.vue_vue_type_script_setup_true_lang-Chqnf11f.js → TwinlistControlBase.vue_vue_type_script_setup_true_lang-t1I2qxJz.js} +14 -11
  54. package/dist/{TypedStringFilter-mklK-qwG.js → TypedStringFilter-zJOICQei.js} +5 -4
  55. package/dist/{ValueSwitchControl-BOUlFthR.js → ValueSwitchControl-CEVWJH7z.js} +6 -5
  56. package/dist/{VerticalLayout-u04mODMq.js → VerticalLayout-D_13xb_m.js} +2 -2
  57. package/dist/{VerticalLayoutBase-rWbtLYJT.js → VerticalLayoutBase-CYfG9KqS.js} +2 -2
  58. package/dist/ZonedDateTimeControl-C-vO6fC1.js +79 -0
  59. package/dist/{_Uint8Array-S1XaShiS.js → _Uint8Array-DdGQvEX6.js} +27 -27
  60. package/dist/collection-BBXRVj4b-DzRZ2FYd.js +22 -0
  61. package/dist/knime-jsonforms.css +1 -1
  62. package/dist/knime-jsonforms.js +107 -99
  63. package/dist/src/JsonFormsDialog.vue.d.ts +6 -6
  64. package/dist/src/higherOrderComponents/control/index.d.ts +1 -2
  65. package/dist/src/higherOrderComponents/control/util.d.ts +4 -5
  66. package/dist/src/higherOrderComponents/control/validation/types.d.ts +2 -2
  67. package/dist/src/higherOrderComponents/control/withLabel.d.ts +1 -1
  68. package/dist/src/layoutComponents/section/SectionHeading.vue.d.ts +7 -3
  69. package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue.d.ts +0 -1
  70. package/dist/src/layoutComponents/simpleArrayLayout/SimpleArrayLayout.vue.d.ts +1 -1
  71. package/dist/src/renderers/checkboxRenderer.d.ts +120 -1
  72. package/dist/src/renderers/defaultRenderers.d.ts +120 -1
  73. package/dist/src/renderers/fallbackRenderers.d.ts +120 -1
  74. package/dist/src/renderers/simpleArrayLayoutRenderer.d.ts +1 -1
  75. package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +3 -3
  76. package/dist/testing.js +3 -3
  77. package/dist/{toString-DXjInt1t.js → toString-f8odPeFb.js} +1 -1
  78. package/dist/{useBuiltinValidations-CFNcCpco.js → useBuiltinValidations-KbChI8vv.js} +1 -1
  79. package/dist/{usePossibleValues-yDswh8Qc.js → usePossibleValues-DiYOmnZW.js} +1 -1
  80. package/dist/{useUnknownValuesInTwinlist-BSnLQI_Q.js → useUnknownValuesInTwinlist-BhhirtmX.js} +1 -1
  81. package/package.json +2 -2
  82. package/dist/AnyOfTwinlist-BCIsT83q.js +0 -22
  83. package/dist/CheckboxControl-CjiUwvWU.js +0 -38
  84. package/dist/CheckboxesControl-CAHj0UnX.js +0 -37
  85. package/dist/ComboBoxControl-hveFsDLi.js +0 -37
  86. package/dist/DateControl-BtCCimuA.js +0 -42
  87. package/dist/DateTimeControl-Bll2rZlX.js +0 -78
  88. package/dist/DateTimeFormatPickerControl-CsKD9vWJ.js +0 -32
  89. package/dist/DropdownControl-DA8lNfVk.js +0 -30
  90. package/dist/IntervalControl-vOi33CZB.js +0 -48
  91. package/dist/LinkControl-D5t3awqb.js +0 -35
  92. package/dist/ManualTwinlistControl-BQ4H-fRR.js +0 -72
  93. package/dist/MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-DHx6nrqi.js +0 -157
  94. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-DEG90Gdx.js +0 -50
  95. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-BOuoChe1.js +0 -52
  96. package/dist/SectionHeading-xMNeMcnS.js +0 -19
  97. package/dist/SettingsSubPanel-D_FDP5Zc.js +0 -5
  98. package/dist/SettingsSubPanelLayout-Dp_jLbsR.js +0 -73
  99. package/dist/SortListControl-kjhkdRwC.js +0 -103
  100. package/dist/ZonedDateTimeControl-BzV5ZuYf.js +0 -77
  101. package/dist/arrow-next-BQULX8HT.js +0 -17
  102. package/dist/src/higherOrderComponents/control/errorMessage/ErrorLine.vue.d.ts +0 -5
  103. package/dist/src/higherOrderComponents/control/errorMessage/ErrorMessages.vue.d.ts +0 -23
  104. package/dist/src/higherOrderComponents/control/errorMessage/withErrorMessage.d.ts +0 -11
  105. package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanelBackArrow.vue.d.ts +0 -10
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @knime/json-forms
2
2
 
3
+ ## 1.21.19
4
+
5
+ ### Patch Changes
6
+
7
+ - 5e00d52: KDS-751: Migrate SettingsSubPanel to KDS
8
+
9
+ ## 1.21.18
10
+
11
+ ### Patch Changes
12
+
13
+ - c7085de: KDS-831: Apply tokens to SectionHeading
14
+
15
+ ## 1.21.17
16
+
17
+ ### Patch Changes
18
+
19
+ - 17c264c: Exchange custom error messages with subtexts
20
+
3
21
  ## 1.21.16
4
22
 
5
23
  ### Patch Changes
@@ -0,0 +1,23 @@
1
+ import { defineComponent as s, openBlock as p, createBlock as t, mergeProps as r, unref as a } from "vue";
2
+ import { o as l } from "./index-Blg1O3Fz.js";
3
+ import { _ as i } from "./TwinlistControlBase.vue_vue_type_script_setup_true_lang-t1I2qxJz.js";
4
+ const d = /* @__PURE__ */ s({
5
+ __name: "AnyOfTwinlist",
6
+ props: {
7
+ control: {},
8
+ handleChange: { type: Function },
9
+ changeValue: { type: Function },
10
+ disabled: { type: Boolean },
11
+ error: { type: Boolean },
12
+ subText: {},
13
+ onRegisterValidation: { type: Function },
14
+ labelForId: {}
15
+ },
16
+ setup(e) {
17
+ const o = e.control.schema.anyOf.map(l);
18
+ return (n, u) => (p(), t(i, r(n.$props, { "possible-values": a(o) }), null, 16, ["possible-values"]));
19
+ }
20
+ });
21
+ export {
22
+ d as default
23
+ };
@@ -0,0 +1,40 @@
1
+ import { defineComponent as r, ref as s, openBlock as u, createElementBlock as d, createElementVNode as c, createVNode as i, unref as b, renderSlot as a } from "vue";
2
+ import { Z as v, _ as m } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
3
+ const f = { class: "checkbox-container" }, x = /* @__PURE__ */ r({
4
+ __name: "CheckboxControl",
5
+ props: {
6
+ control: {},
7
+ handleChange: { type: Function },
8
+ changeValue: { type: Function },
9
+ disabled: { type: Boolean },
10
+ labelForId: {},
11
+ error: { type: Boolean },
12
+ subText: {},
13
+ onRegisterValidation: { type: Function }
14
+ },
15
+ setup(e) {
16
+ const t = s(!1);
17
+ return (n, o) => (u(), d("div", {
18
+ class: "checkbox-input",
19
+ onMouseover: o[1] || (o[1] = (l) => t.value = !0),
20
+ onMouseleave: o[2] || (o[2] = (l) => t.value = !1)
21
+ }, [
22
+ c("div", f, [
23
+ i(b(v), {
24
+ class: "checkbox",
25
+ disabled: e.disabled,
26
+ "model-value": e.control.data,
27
+ label: e.control.label,
28
+ error: e.error,
29
+ "sub-text": e.subText,
30
+ "onUpdate:modelValue": o[0] || (o[0] = (l) => e.changeValue(l === !0))
31
+ }, null, 8, ["disabled", "model-value", "label", "error", "sub-text"]),
32
+ a(n.$slots, "icon", {}, void 0, !0)
33
+ ]),
34
+ a(n.$slots, "buttons", { hover: t.value }, void 0, !0)
35
+ ], 32));
36
+ }
37
+ }), p = /* @__PURE__ */ m(x, [["__scopeId", "data-v-5bf70a5e"]]);
38
+ export {
39
+ p as default
40
+ };
@@ -0,0 +1,39 @@
1
+ import { defineComponent as u, computed as l, ref as r, toRef as c, onMounted as i, openBlock as d, createBlock as m, unref as p, createCommentVNode as b } from "vue";
2
+ import { H as f } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
3
+ import { o as h } from "./index-Blg1O3Fz.js";
4
+ import { u as v } from "./usePossibleValues-DiYOmnZW.js";
5
+ const F = /* @__PURE__ */ u({
6
+ __name: "CheckboxesControl",
7
+ props: {
8
+ control: {},
9
+ handleChange: { type: Function },
10
+ changeValue: { type: Function },
11
+ disabled: { type: Boolean },
12
+ error: { type: Boolean },
13
+ subText: {},
14
+ onRegisterValidation: { type: Function },
15
+ labelForId: {}
16
+ },
17
+ setup(e) {
18
+ const o = e, n = l(
19
+ () => o.control.uischema.options?.checkboxLayout
20
+ ), t = r(null), { possibleValues: s } = v(c(o, "control")), a = l(() => t.value ?? s.value);
21
+ return i(() => {
22
+ t.value = o.control.schema.anyOf ? o.control.schema.anyOf.map(h) : null;
23
+ }), (x, y) => a.value ? (d(), m(p(f), {
24
+ key: 0,
25
+ id: e.labelForId,
26
+ class: "checkboxes",
27
+ "possible-values": a.value,
28
+ alignment: n.value,
29
+ disabled: e.disabled,
30
+ "model-value": e.control.data,
31
+ error: e.error,
32
+ "sub-text": e.subText,
33
+ "onUpdate:modelValue": e.changeValue
34
+ }, null, 8, ["id", "possible-values", "alignment", "disabled", "model-value", "error", "sub-text", "onUpdate:modelValue"])) : b("", !0);
35
+ }
36
+ });
37
+ export {
38
+ F as default
39
+ };
@@ -1,27 +1,29 @@
1
- import { defineComponent as a, openBlock as l, createBlock as o, unref as n } from "vue";
2
- import { N as t } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
3
- const u = /* @__PURE__ */ a({
1
+ import { defineComponent as a, openBlock as o, createBlock as l, unref as t } from "vue";
2
+ import { J as n } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
3
+ const c = /* @__PURE__ */ a({
4
4
  __name: "ColorControl",
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 },
10
+ error: { type: Boolean },
11
+ subText: {},
11
12
  onRegisterValidation: { type: Function },
12
13
  labelForId: {}
13
14
  },
14
15
  setup(e) {
15
- return (d, i) => (l(), o(n(t), {
16
+ return (r, d) => (o(), l(t(n), {
16
17
  id: e.labelForId,
17
18
  ariaLabel: e.control.label,
18
19
  "model-value": e.control.data ?? "",
19
20
  disabled: e.disabled,
20
- error: !e.isValid,
21
+ error: e.error,
22
+ "sub-text": e.subText,
21
23
  "onUpdate:modelValue": e.changeValue
22
- }, null, 8, ["id", "ariaLabel", "model-value", "disabled", "error", "onUpdate:modelValue"]));
24
+ }, null, 8, ["id", "ariaLabel", "model-value", "disabled", "error", "sub-text", "onUpdate:modelValue"]));
23
25
  }
24
26
  });
25
27
  export {
26
- u as default
28
+ c as default
27
29
  };
@@ -1,25 +1,25 @@
1
1
  import { defineComponent as u, openBlock as e, createElementBlock as o, createVNode as y, unref as p, computed as s, normalizeStyle as m, createBlock as d, Fragment as f, renderList as k } from "vue";
2
- import { M as w, _ as v, u as C } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
2
+ import { I as w, _ as v, u as C } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
3
3
  const P = { class: "empty-state-wrapper" }, $ = /* @__PURE__ */ u({
4
4
  __name: "ColorPreviewEmptyState",
5
- setup(a) {
5
+ setup(r) {
6
6
  return (t, l) => (e(), o("div", P, [
7
7
  y(p(w), { headline: "No colors" })
8
8
  ]));
9
9
  }
10
- }), g = /* @__PURE__ */ v($, [["__scopeId", "data-v-7a09310d"]]), x = { class: "gradient-preview" }, S = /* @__PURE__ */ u({
10
+ }), g = /* @__PURE__ */ v($, [["__scopeId", "data-v-7a09310d"]]), x = { class: "gradient-preview" }, b = /* @__PURE__ */ u({
11
11
  __name: "GradientPreview",
12
12
  props: {
13
13
  gradient: {}
14
14
  },
15
- setup(a) {
16
- const t = a, l = s(() => t.gradient.colors.length > 0), n = s(() => {
17
- const r = t.gradient.stops;
18
- return r === null ? t.gradient.colors.join(", ") : t.gradient.colors.map((i, _) => `${i} ${r[_]}%`).join(", ");
15
+ setup(r) {
16
+ const t = r, l = s(() => t.gradient.colors.length > 0), a = s(() => {
17
+ const n = t.gradient.stops;
18
+ return n === null ? t.gradient.colors.join(", ") : t.gradient.colors.map((i, _) => `${i} ${n[_]}%`).join(", ");
19
19
  }), c = s(
20
- () => `linear-gradient(to right in lab, ${n.value})`
20
+ () => `linear-gradient(to right in lab, ${a.value})`
21
21
  );
22
- return (r, i) => (e(), o("div", x, [
22
+ return (n, i) => (e(), o("div", x, [
23
23
  l.value ? (e(), o("div", {
24
24
  key: 0,
25
25
  class: "gradient-bar",
@@ -27,24 +27,24 @@ const P = { class: "empty-state-wrapper" }, $ = /* @__PURE__ */ u({
27
27
  }, null, 4)) : (e(), d(g, { key: 1 }))
28
28
  ]));
29
29
  }
30
- }), b = /* @__PURE__ */ v(S, [["__scopeId", "data-v-8a745225"]]), B = { class: "palette-preview" }, F = 8, M = /* @__PURE__ */ u({
30
+ }), S = /* @__PURE__ */ v(b, [["__scopeId", "data-v-8a745225"]]), B = { class: "palette-preview" }, F = 8, I = /* @__PURE__ */ u({
31
31
  __name: "PalettePreview",
32
32
  props: {
33
33
  palette: {}
34
34
  },
35
- setup(a) {
36
- const t = a, l = s(() => t.palette.colors.length > 0), n = s(
35
+ setup(r) {
36
+ const t = r, l = s(() => t.palette.colors.length > 0), a = s(
37
37
  () => Math.max(1, Math.min(F, t.palette.colors.length))
38
38
  ), c = s(() => ({
39
- gridTemplateColumns: `repeat(${n.value}, minmax(0, 1fr))`
39
+ gridTemplateColumns: `repeat(${a.value}, minmax(0, 1fr))`
40
40
  }));
41
- return (r, i) => (e(), o("div", B, [
41
+ return (n, i) => (e(), o("div", B, [
42
42
  l.value ? (e(), o("div", {
43
43
  key: 0,
44
44
  class: "palette-grid",
45
45
  style: m(c.value)
46
46
  }, [
47
- (e(!0), o(f, null, k(a.palette.colors, (_, h) => (e(), o("div", {
47
+ (e(!0), o(f, null, k(r.palette.colors, (_, h) => (e(), o("div", {
48
48
  key: h,
49
49
  class: "color-cell",
50
50
  style: m({ background: _ })
@@ -55,7 +55,7 @@ const P = { class: "empty-state-wrapper" }, $ = /* @__PURE__ */ u({
55
55
  }))
56
56
  ]));
57
57
  }
58
- }), E = /* @__PURE__ */ v(M, [["__scopeId", "data-v-ad83046f"]]), G = { class: "color-preview" }, N = /* @__PURE__ */ u({
58
+ }), E = /* @__PURE__ */ v(I, [["__scopeId", "data-v-ad83046f"]]), G = { class: "color-preview" }, V = /* @__PURE__ */ u({
59
59
  __name: "ColorPreviewControl",
60
60
  props: {
61
61
  control: {},
@@ -63,27 +63,27 @@ const P = { class: "empty-state-wrapper" }, $ = /* @__PURE__ */ u({
63
63
  changeValue: { type: Function },
64
64
  disabled: { type: Boolean },
65
65
  labelForId: {},
66
- isValid: { type: Boolean },
67
- messages: {},
66
+ error: { type: Boolean },
67
+ subText: {},
68
68
  onRegisterValidation: { type: Function }
69
69
  },
70
- setup(a) {
71
- const t = a, l = s(
70
+ setup(r) {
71
+ const t = r, l = s(
72
72
  () => t.control.uischema
73
- ), n = C(l, "previewColors", {
73
+ ), a = C(l, "previewColors", {
74
74
  colors: []
75
- }), c = (r) => !("stops" in r);
76
- return (r, i) => (e(), o("div", G, [
77
- c(p(n)) ? (e(), d(E, {
75
+ }), c = (n) => !("stops" in n);
76
+ return (n, i) => (e(), o("div", G, [
77
+ c(p(a)) ? (e(), d(E, {
78
78
  key: 0,
79
- palette: p(n)
80
- }, null, 8, ["palette"])) : (e(), d(b, {
79
+ palette: p(a)
80
+ }, null, 8, ["palette"])) : (e(), d(S, {
81
81
  key: 1,
82
- gradient: p(n)
82
+ gradient: p(a)
83
83
  }, null, 8, ["gradient"]))
84
84
  ]));
85
85
  }
86
86
  });
87
87
  export {
88
- N as default
88
+ V as default
89
89
  };
@@ -0,0 +1,39 @@
1
+ import { defineComponent as r, toRef as c, computed as a, openBlock as d, createBlock as b, unref as u } from "vue";
2
+ import { M as m } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
3
+ import { u as v } from "./usePossibleValues-DiYOmnZW.js";
4
+ const g = /* @__PURE__ */ r({
5
+ __name: "ComboBoxControl",
6
+ props: {
7
+ control: {},
8
+ handleChange: { type: Function },
9
+ changeValue: { type: Function },
10
+ disabled: { type: Boolean },
11
+ error: { type: Boolean },
12
+ subText: {},
13
+ onRegisterValidation: { type: Function },
14
+ labelForId: {}
15
+ },
16
+ setup(e) {
17
+ const l = e, { possibleValues: o } = v(c(l, "control")), t = a(
18
+ () => o.value === null || o.value.length === 0
19
+ ), s = a(
20
+ () => l.control.uischema.providedOptions?.includes("possibleValues") || l.control.uischema.options?.possibleValues !== void 0
21
+ ), i = a(
22
+ () => l.disabled || t.value && s.value
23
+ );
24
+ return (p, V) => (d(), b(u(m), {
25
+ id: e.labelForId,
26
+ "model-value": e.control.data,
27
+ "allow-new-values": !s.value,
28
+ ariaLabel: e.control.label,
29
+ disabled: i.value,
30
+ "possible-values": t.value ? e.control.data.map((n) => ({ id: n, text: n })) : u(o),
31
+ error: e.error,
32
+ "sub-text": e.subText,
33
+ "onUpdate:modelValue": e.changeValue
34
+ }, null, 8, ["id", "model-value", "allow-new-values", "ariaLabel", "disabled", "possible-values", "error", "sub-text", "onUpdate:modelValue"]));
35
+ }
36
+ });
37
+ export {
38
+ g as default
39
+ };
@@ -0,0 +1,44 @@
1
+ import { defineComponent as l, computed as i, openBlock as d, createBlock as c, unref as u } from "vue";
2
+ import { Q as s } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
3
+ import { p as m } from "./plainDateTimeUtils-CR0UhpkD.js";
4
+ import { U as p } from "./classApi-CHpAZrj3.js";
5
+ const y = /* @__PURE__ */ l({
6
+ __name: "DateControl",
7
+ props: {
8
+ control: {},
9
+ handleChange: { type: Function },
10
+ changeValue: { type: Function },
11
+ disabled: { type: Boolean },
12
+ error: { type: Boolean },
13
+ subText: {},
14
+ onRegisterValidation: { type: Function },
15
+ labelForId: {}
16
+ },
17
+ setup(t) {
18
+ const a = t, o = (e) => {
19
+ if (!e)
20
+ return null;
21
+ try {
22
+ return p.PlainDate.from(e);
23
+ } catch {
24
+ return m.fromString(e).date;
25
+ }
26
+ }, r = i(
27
+ () => o(a.control.data)
28
+ ), n = (e) => {
29
+ a.changeValue(e?.toString() ?? "");
30
+ };
31
+ return (e, b) => (d(), c(u(s), {
32
+ id: t.labelForId,
33
+ ariaLabel: a.control.label,
34
+ "model-value": r.value,
35
+ disabled: t.disabled,
36
+ error: t.error,
37
+ "sub-text": t.subText,
38
+ "onUpdate:modelValue": n
39
+ }, null, 8, ["id", "ariaLabel", "model-value", "disabled", "error", "sub-text"]));
40
+ }
41
+ });
42
+ export {
43
+ y as default
44
+ };
@@ -0,0 +1,80 @@
1
+ import { defineComponent as D, computed as r, openBlock as d, createElementBlock as T, normalizeClass as V, createVNode as C, unref as a, createBlock as U, createCommentVNode as B } from "vue";
2
+ import { Q as F, R as k, _ as I } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
3
+ import { u as L } from "./usePlainDateTimeBatch-Bd2G-GY9.js";
4
+ import { p as i } from "./plainDateTimeUtils-CR0UhpkD.js";
5
+ import { U as P } from "./classApi-CHpAZrj3.js";
6
+ const $ = /* @__PURE__ */ D({
7
+ __name: "DateTimeControl",
8
+ props: {
9
+ control: {},
10
+ handleChange: { type: Function },
11
+ changeValue: { type: Function },
12
+ disabled: { type: Boolean },
13
+ error: { type: Boolean },
14
+ subText: {},
15
+ onRegisterValidation: { type: Function },
16
+ labelForId: {}
17
+ },
18
+ setup(t) {
19
+ const o = t, n = r(() => o.control.uischema.options), l = r(() => n.value?.showTime ?? !0), s = r(
20
+ () => i.getMaxGranularity(n.value)
21
+ ), m = (e) => {
22
+ if (typeof e != "string" || e === "")
23
+ return null;
24
+ try {
25
+ return P.PlainDate.from(e);
26
+ } catch {
27
+ return i.fromString(e).date;
28
+ }
29
+ }, c = r(
30
+ () => m(n.value?.minimum)
31
+ ), g = r(
32
+ () => m(n.value?.maximum)
33
+ ), {
34
+ datePart: p,
35
+ timePart: b,
36
+ granularity: y,
37
+ onDateChange: f,
38
+ onTimeChange: x,
39
+ onGranularityChange: h
40
+ } = L({
41
+ getDateTime: () => o.control.data,
42
+ commit: (e, u, v) => {
43
+ if (!l.value) {
44
+ o.changeValue(e === null ? "" : e.toString());
45
+ return;
46
+ }
47
+ o.changeValue(i.toString(e, u, v));
48
+ }
49
+ });
50
+ return (e, u) => (d(), T("div", {
51
+ class: V(["date-time-row", { "date-only": !l.value }])
52
+ }, [
53
+ C(a(F), {
54
+ id: t.labelForId,
55
+ ariaLabel: `${o.control.label} date`,
56
+ "model-value": a(p),
57
+ disabled: t.disabled,
58
+ error: t.error,
59
+ "sub-text": t.subText,
60
+ "min-date": c.value,
61
+ "max-date": g.value,
62
+ "onUpdate:modelValue": a(f)
63
+ }, null, 8, ["id", "ariaLabel", "model-value", "disabled", "error", "sub-text", "min-date", "max-date", "onUpdate:modelValue"]),
64
+ l.value ? (d(), U(a(k), {
65
+ key: 0,
66
+ ariaLabel: `${o.control.label} time`,
67
+ "model-value": a(b),
68
+ granularity: a(y),
69
+ "max-granularity": s.value,
70
+ disabled: t.disabled,
71
+ error: t.error,
72
+ "onUpdate:modelValue": a(x),
73
+ "onUpdate:granularity": a(h)
74
+ }, null, 8, ["ariaLabel", "model-value", "granularity", "max-granularity", "disabled", "error", "onUpdate:modelValue", "onUpdate:granularity"])) : B("", !0)
75
+ ], 2));
76
+ }
77
+ }), R = /* @__PURE__ */ I($, [["__scopeId", "data-v-e52553e7"]]);
78
+ export {
79
+ R as default
80
+ };
@@ -0,0 +1,34 @@
1
+ import { defineComponent as s, computed as a, openBlock as u, createBlock as c, unref as l } from "vue";
2
+ import { u as i, N as m } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
3
+ const h = /* @__PURE__ */ s({
4
+ __name: "DateTimeFormatPickerControl",
5
+ props: {
6
+ control: {},
7
+ handleChange: { type: Function },
8
+ changeValue: { type: Function },
9
+ disabled: { type: Boolean },
10
+ error: { type: Boolean },
11
+ subText: {},
12
+ onRegisterValidation: { type: Function },
13
+ labelForId: {}
14
+ },
15
+ setup(e) {
16
+ const o = e, t = a(
17
+ () => o.control.uischema
18
+ ), n = a(() => t.value.options), r = a(() => n.value?.allowedFormats), d = i(t, "dateTimeFormats", []);
19
+ return (b, f) => (u(), c(l(m), {
20
+ id: e.labelForId,
21
+ ariaLabel: e.control.label,
22
+ "model-value": o.control.data,
23
+ disabled: e.disabled,
24
+ "allowed-formats": r.value,
25
+ "all-default-formats": l(d) ?? [],
26
+ error: e.error,
27
+ "sub-text": e.subText,
28
+ "onUpdate:modelValue": e.changeValue
29
+ }, null, 8, ["id", "ariaLabel", "model-value", "disabled", "allowed-formats", "all-default-formats", "error", "sub-text", "onUpdate:modelValue"]));
30
+ }
31
+ });
32
+ export {
33
+ h as default
34
+ };