@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
@@ -0,0 +1,159 @@
1
+ import { defineComponent as A, toRef as h, computed as u, openBlock as B, createBlock as S, unref as c, mergeProps as N } from "vue";
2
+ import { a2 as r, X } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
3
+ import { m as g } from "./index-Blg1O3Fz.js";
4
+ import { u as G, a as Y } from "./usePossibleValues-DiYOmnZW.js";
5
+ import { t as W } from "./toKdsPossibleValues-BklBg3gG.js";
6
+ import { u as q } from "./useUnknownValuesInTwinlist-BhhirtmX.js";
7
+ const O = /* @__PURE__ */ A({
8
+ __name: "MultimodeTwinlistControl",
9
+ props: {
10
+ control: {},
11
+ handleChange: {},
12
+ changeValue: {},
13
+ disabled: { type: Boolean },
14
+ error: { type: Boolean },
15
+ subText: {},
16
+ onRegisterValidation: {},
17
+ labelForId: {},
18
+ showUnknownValues: { type: Boolean, default: !1 },
19
+ showTypeFilter: { type: Boolean, default: !1 }
20
+ },
21
+ setup(l) {
22
+ const a = l, { possibleValues: i } = G(
23
+ h(a, "control")
24
+ ), { excludedLabel: T, includedLabel: x } = Y(
25
+ h(a, "control")
26
+ ), { selectedAndDeselected: p, setCurrentManualFilter: C } = q({
27
+ data: u(() => a.control.data),
28
+ possibleValueIds: u(
29
+ () => i.value?.map(({ id: e }) => e) ?? null
30
+ )
31
+ }), s = (e) => {
32
+ const t = g(a.control.data, e);
33
+ a.changeValue(t), C(t.manualFilter);
34
+ }, U = u(
35
+ () => W(i.value ?? [])
36
+ );
37
+ let o = null;
38
+ const w = () => {
39
+ if (o !== null) {
40
+ const e = o;
41
+ o = null, s(e);
42
+ }
43
+ }, m = (e) => {
44
+ o === null ? (o = e, queueMicrotask(w)) : o = g(
45
+ o,
46
+ e
47
+ );
48
+ }, M = (e) => {
49
+ m({
50
+ manualFilter: { manuallySelected: e },
51
+ selected: e
52
+ });
53
+ }, k = (e) => {
54
+ m({
55
+ manualFilter: { manuallyDeselected: e }
56
+ });
57
+ }, E = (e) => {
58
+ e !== null && m({
59
+ manualFilter: { includeUnknownColumns: e }
60
+ });
61
+ }, y = u(() => {
62
+ switch (a.control.data.mode.toUpperCase()) {
63
+ case "WILDCARD":
64
+ case "REGEX":
65
+ return r.PATTERN;
66
+ case "TYPE":
67
+ return r.TYPE;
68
+ default:
69
+ return r.MANUAL;
70
+ }
71
+ }), b = u(
72
+ () => a.control.data.mode.toUpperCase() === "REGEX"
73
+ ), v = (e) => {
74
+ let t;
75
+ switch (e) {
76
+ case r.PATTERN:
77
+ t = b.value ? "REGEX" : "WILDCARD";
78
+ break;
79
+ case r.TYPE:
80
+ t = "TYPE";
81
+ break;
82
+ default:
83
+ t = "MANUAL";
84
+ }
85
+ s({ mode: t });
86
+ }, F = (e) => {
87
+ y.value === r.PATTERN && s({ mode: e ? "REGEX" : "WILDCARD" });
88
+ }, R = (e) => {
89
+ s({ patternFilter: { pattern: e } });
90
+ }, D = (e) => {
91
+ s({ patternFilter: { isInverted: e } });
92
+ }, I = (e) => {
93
+ s({ patternFilter: { isCaseSensitive: e } });
94
+ }, P = () => {
95
+ const e = a.control.data.typeFilter;
96
+ if (!e)
97
+ return [];
98
+ const t = e.selectedTypes, n = new Map(
99
+ (e.typeDisplays ?? []).map(({ id: d, text: L }) => [d, L])
100
+ );
101
+ return t.map((d) => ({
102
+ id: d,
103
+ text: n.get(d) || d
104
+ }));
105
+ }, f = u(() => {
106
+ if (!a.showTypeFilter)
107
+ return;
108
+ const e = /* @__PURE__ */ new Map();
109
+ return i.value?.forEach((t) => {
110
+ t.type && e.set(t.type.id, t.type.text);
111
+ }), P().forEach(({ id: t, text: n }) => {
112
+ e.has(t) || e.set(t, n);
113
+ }), [...e.entries()].map(([t, n]) => ({
114
+ id: t,
115
+ text: n,
116
+ accessory: { type: "dataType", name: t }
117
+ }));
118
+ }), V = (e) => {
119
+ const t = (f.value ?? []).filter((n) => e.includes(n.id)).map(({ id: n, text: d }) => ({ id: n, text: d }));
120
+ s({
121
+ typeFilter: { selectedTypes: e, typeDisplays: t }
122
+ });
123
+ };
124
+ return (e, t) => (B(), S(c(X), N(e.$attrs, {
125
+ id: l.labelForId,
126
+ ariaLabel: l.control.label,
127
+ disabled: l.disabled,
128
+ mode: y.value,
129
+ "manually-included": c(p).selected ?? [],
130
+ "manually-excluded": c(p).deselected ?? [],
131
+ "include-unknown-values": a.showUnknownValues ? a.control.data.manualFilter.includeUnknownColumns : null,
132
+ pattern: l.control.data.patternFilter.pattern,
133
+ "case-sensitive": l.control.data.patternFilter.isCaseSensitive,
134
+ "exclude-matches": l.control.data.patternFilter.isInverted,
135
+ "use-regex": b.value,
136
+ "selected-types": l.control.data.typeFilter?.selectedTypes ?? [],
137
+ "possible-values": U.value,
138
+ "filter-types": f.value,
139
+ "enable-pattern-filter": !0,
140
+ loading: c(p).selected === null,
141
+ "exclude-label": c(T),
142
+ "include-label": c(x),
143
+ error: l.error,
144
+ "sub-text": l.subText,
145
+ "onUpdate:mode": v,
146
+ "onUpdate:manuallyIncluded": M,
147
+ "onUpdate:manuallyExcluded": k,
148
+ "onUpdate:includeUnknownValues": E,
149
+ "onUpdate:pattern": R,
150
+ "onUpdate:caseSensitive": I,
151
+ "onUpdate:excludeMatches": D,
152
+ "onUpdate:useRegex": F,
153
+ "onUpdate:selectedTypes": V
154
+ }), null, 16, ["id", "ariaLabel", "disabled", "mode", "manually-included", "manually-excluded", "include-unknown-values", "pattern", "case-sensitive", "exclude-matches", "use-regex", "selected-types", "possible-values", "filter-types", "loading", "exclude-label", "include-label", "error", "sub-text"]));
155
+ }
156
+ });
157
+ export {
158
+ O as _
159
+ };
@@ -1,18 +1,19 @@
1
1
  import { defineComponent as n, openBlock as o, createBlock as t, mergeProps as a } from "vue";
2
- import { _ as l } from "./MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-DHx6nrqi.js";
3
- const u = /* @__PURE__ */ n({
2
+ import { _ as r } from "./MultimodeTwinlistControl.vue_vue_type_script_setup_true_lang-CKcpm_I1.js";
3
+ const i = /* @__PURE__ */ n({
4
4
  __name: "NameFilter",
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
- setup(s) {
15
- return (e, r) => (o(), t(l, a({ ...e.$props, ...e.$attrs }, {
15
+ setup(l) {
16
+ return (e, s) => (o(), t(r, a({ ...e.$props, ...e.$attrs }, {
16
17
  "unknown-values-text": "Any unknown value",
17
18
  "show-unknown-values": "",
18
19
  "empty-state-label": "No values in this list"
@@ -20,5 +21,5 @@ const u = /* @__PURE__ */ n({
20
21
  }
21
22
  });
22
23
  export {
23
- u as default
24
+ i as default
24
25
  };
@@ -1,20 +1,21 @@
1
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-DEG90Gdx.js";
3
- const s = /* @__PURE__ */ o({
2
+ import { _ as p } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-CR61f6d6.js";
3
+ const i = /* @__PURE__ */ o({
4
4
  __name: "NumberControl",
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
- setup(p) {
15
- return (e, l) => (n(), t(a, r(e.$props, { type: "double" }), null, 16));
15
+ setup(a) {
16
+ return (e, l) => (n(), t(p, r(e.$props, { type: "double" }), null, 16));
16
17
  }
17
18
  });
18
19
  export {
19
- s as default
20
+ i as default
20
21
  };
@@ -0,0 +1,52 @@
1
+ import { defineComponent as u, computed as s, openBlock as m, createBlock as d, unref as p } from "vue";
2
+ import { V as x } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
3
+ import { u as b } from "./useBuiltinValidations-KbChI8vv.js";
4
+ const E = 1, v = 0.1, V = /* @__PURE__ */ u({
5
+ __name: "NumberControlBase",
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
+ type: {}
16
+ },
17
+ setup(t) {
18
+ const o = t, i = s(
19
+ () => o.control.uischema.options?.stepSize ?? (o.type === "integer" ? E : v)
20
+ ), l = b(
21
+ {
22
+ min: ({ min: e, isExclusive: n }) => (a) => isNaN(a) || (n ? a > e : a >= e),
23
+ max: ({ max: e, isExclusive: n }) => (a) => isNaN(a) || (n ? a < e : a <= e)
24
+ },
25
+ o
26
+ ), r = s(() => {
27
+ const e = l.value.min;
28
+ if (!(!e || e.min === null))
29
+ return e.min + (e.isExclusive ? i.value : 0);
30
+ }), c = s(() => {
31
+ const e = l.value.max;
32
+ if (!(!e || e.max === null))
33
+ return e.max - (e.isExclusive ? i.value : 0);
34
+ });
35
+ return (e, n) => (m(), d(p(x), {
36
+ id: t.labelForId,
37
+ ariaLabel: t.control.label,
38
+ class: "number-input",
39
+ disabled: t.disabled,
40
+ "model-value": t.control.data,
41
+ min: r.value,
42
+ max: c.value,
43
+ step: i.value,
44
+ error: t.error,
45
+ "sub-text": t.subText,
46
+ "onUpdate:modelValue": t.changeValue
47
+ }, null, 8, ["id", "ariaLabel", "disabled", "model-value", "min", "max", "step", "error", "sub-text", "onUpdate:modelValue"]));
48
+ }
49
+ });
50
+ export {
51
+ V as _
52
+ };
@@ -1,33 +1,35 @@
1
- import { defineComponent as i, computed as s, openBlock as d, createBlock as u, unref as n } from "vue";
2
- import { W as c } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
3
- import { o as p } from "./index-Blg1O3Fz.js";
4
- const g = /* @__PURE__ */ i({
1
+ import { defineComponent as s, computed as u, openBlock as d, createBlock as i, unref as t } from "vue";
2
+ import { T as c } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
3
+ import { o as m } from "./index-Blg1O3Fz.js";
4
+ const x = /* @__PURE__ */ s({
5
5
  __name: "OneOfDropdown",
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 },
11
+ error: { type: Boolean },
12
+ subText: {},
12
13
  onRegisterValidation: { type: Function },
13
14
  labelForId: {}
14
15
  },
15
16
  setup(e) {
16
- const o = e, t = o.control.schema?.oneOf?.map(p) ?? [], a = s({
17
+ const o = e, n = o.control.schema?.oneOf?.map(m) ?? [], a = u({
17
18
  get: () => o.control.data ?? "",
18
19
  set: o.changeValue
19
20
  });
20
- return (m, l) => (d(), u(n(c), {
21
+ return (b, l) => (d(), i(t(c), {
21
22
  id: e.labelForId,
22
23
  modelValue: a.value,
23
24
  "onUpdate:modelValue": l[0] || (l[0] = (r) => a.value = r),
24
- "possible-values": n(t),
25
+ "possible-values": t(n),
25
26
  ariaLabel: e.control.label,
26
27
  disabled: e.disabled,
27
- error: !e.isValid
28
- }, null, 8, ["id", "modelValue", "possible-values", "ariaLabel", "disabled", "error"]));
28
+ error: e.error,
29
+ "sub-text": e.subText
30
+ }, null, 8, ["id", "modelValue", "possible-values", "ariaLabel", "disabled", "error", "sub-text"]));
29
31
  }
30
32
  });
31
33
  export {
32
- g as default
34
+ x as default
33
35
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as V, computed as s, openBlock as n, createElementBlock as t, Fragment as c, renderList as v, createVNode as b, unref as _, createElementVNode as i, normalizeClass as g, createCommentVNode as y } from "vue";
2
- import { a7 as L } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
3
- const M = ["innerHTML"], B = ["innerHTML"], C = ["innerHTML"], x = /* @__PURE__ */ V({
1
+ import { defineComponent as b, computed as r, openBlock as n, createElementBlock as t, Fragment as c, renderList as v, createVNode as V, unref as _, createElementVNode as i, normalizeClass as y, createCommentVNode as L } from "vue";
2
+ import { a5 as M } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
3
+ const T = ["innerHTML"], g = ["innerHTML"], x = ["innerHTML"], H = /* @__PURE__ */ b({
4
4
  __name: "RadioButtonsWithDescriptionControl",
5
5
  props: {
6
6
  control: {},
@@ -8,27 +8,27 @@ const M = ["innerHTML"], B = ["innerHTML"], C = ["innerHTML"], x = /* @__PURE__
8
8
  changeValue: { type: Function },
9
9
  disabled: { type: Boolean },
10
10
  labelForId: {},
11
- isValid: { type: Boolean },
12
- messages: {},
11
+ error: { type: Boolean },
12
+ subText: {},
13
13
  onRegisterValidation: { type: Function }
14
14
  },
15
15
  setup(l) {
16
- const o = l, u = s(() => o.control.schema.oneOf?.map(({ const: r, title: e, price: h, description: f }) => ({
17
- id: r,
16
+ const o = l, u = r(() => o.control.schema.oneOf?.map(({ const: s, title: e, price: h, description: f }) => ({
17
+ id: s,
18
18
  text: e,
19
19
  price: h,
20
20
  description: f
21
- })) || []), p = s(() => !o.control.enabled), d = s(
21
+ })) || []), p = r(() => !o.control.enabled), d = r(
22
22
  () => o.control.uischema.options?.footnote || null
23
23
  ), m = (a) => {
24
24
  o.changeValue(a);
25
25
  };
26
- return (a, r) => (n(), t(c, null, [
26
+ return (a, s) => (n(), t(c, null, [
27
27
  (n(!0), t(c, null, v(u.value, (e) => (n(), t("label", {
28
28
  key: `radio-${e.id}`,
29
29
  class: "radio-wrapper"
30
30
  }, [
31
- b(_(L), {
31
+ V(_(M), {
32
32
  class: "radio-button",
33
33
  "model-value": l.control.data === e.id,
34
34
  text: e.text,
@@ -38,20 +38,20 @@ const M = ["innerHTML"], B = ["innerHTML"], C = ["innerHTML"], x = /* @__PURE__
38
38
  i("div", {
39
39
  class: "description",
40
40
  innerHTML: e.description
41
- }, null, 8, M),
41
+ }, null, 8, T),
42
42
  i("div", {
43
- class: g(["price", { selected: l.control.data === e.id }]),
43
+ class: y(["price", { selected: l.control.data === e.id }]),
44
44
  innerHTML: e.price
45
- }, null, 10, B)
45
+ }, null, 10, g)
46
46
  ]))), 128)),
47
47
  d.value ? (n(), t("div", {
48
48
  key: 0,
49
49
  class: "footnote",
50
50
  innerHTML: d.value
51
- }, null, 8, C)) : y("", !0)
51
+ }, null, 8, x)) : L("", !0)
52
52
  ], 64));
53
53
  }
54
54
  });
55
55
  export {
56
- x as default
56
+ H as default
57
57
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as o, openBlock as n, createBlock as t, mergeProps as a } from "vue";
2
- import { _ as r } from "./RadioControlBase.vue_vue_type_script_setup_true_lang-BOuoChe1.js";
1
+ import { defineComponent as o, openBlock as n, createBlock as t, mergeProps as r } from "vue";
2
+ import { _ as a } from "./RadioControlBase.vue_vue_type_script_setup_true_lang-Bm4EUEvw.js";
3
3
  const s = /* @__PURE__ */ o({
4
4
  __name: "RadioControl",
5
5
  props: {
@@ -7,12 +7,13 @@ const s = /* @__PURE__ */ o({
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(p) {
15
- return (e, i) => (n(), t(r, a(e.$props, { type: "radio" }), null, 16));
16
+ return (e, l) => (n(), t(a, r(e.$props, { type: "radio" }), null, 16));
16
17
  }
17
18
  });
18
19
  export {
@@ -0,0 +1,57 @@
1
+ import { defineComponent as v, useAttrs as p, computed as d, ref as f, toRef as h, onMounted as V, openBlock as n, createElementBlock as x, Fragment as y, createBlock as r, unref as l, mergeProps as i, createCommentVNode as g } from "vue";
2
+ import { a3 as B, a4 as F } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
3
+ import { o as k } from "./index-Blg1O3Fz.js";
4
+ import { u as O } from "./usePossibleValues-DiYOmnZW.js";
5
+ const T = /* @__PURE__ */ v({
6
+ inheritAttrs: !1,
7
+ __name: "RadioControlBase",
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
+ type: {}
18
+ },
19
+ setup(e) {
20
+ const s = p(), t = e, c = d(() => t.control.uischema.options?.radioLayout), m = (a) => ({
21
+ id: a.id,
22
+ text: a.text,
23
+ ...a.disabled ? { disabled: !0 } : {}
24
+ }), u = f(null), { possibleValues: b } = O(h(t, "control"), {
25
+ defaultOnNonProvided: null
26
+ }), o = d(
27
+ () => (b.value ?? u.value)?.map(m)
28
+ );
29
+ return V(() => {
30
+ u.value = t.control?.schema?.oneOf ? t.control.schema.oneOf.map(k) : null;
31
+ }), (a, C) => o.value ? (n(), x(y, { key: 0 }, [
32
+ t.type === "valueSwitch" ? (n(), r(l(B), i({ key: 0 }, l(s), {
33
+ id: e.labelForId,
34
+ "possible-values": o.value,
35
+ disabled: e.disabled,
36
+ "model-value": e.control.data,
37
+ error: e.error,
38
+ "sub-text": e.subText,
39
+ size: "small",
40
+ variant: "muted",
41
+ "onUpdate:modelValue": e.changeValue
42
+ }), null, 16, ["id", "possible-values", "disabled", "model-value", "error", "sub-text", "onUpdate:modelValue"])) : (n(), r(l(F), i({ key: 1 }, l(s), {
43
+ id: e.labelForId,
44
+ "possible-values": o.value,
45
+ alignment: c.value,
46
+ disabled: e.disabled,
47
+ "model-value": e.control.data,
48
+ error: e.error,
49
+ "sub-text": e.subText,
50
+ "onUpdate:modelValue": e.changeValue
51
+ }), null, 16, ["id", "possible-values", "alignment", "disabled", "model-value", "error", "sub-text", "onUpdate:modelValue"]))
52
+ ], 64)) : g("", !0);
53
+ }
54
+ });
55
+ export {
56
+ T as _
57
+ };
@@ -1,5 +1,5 @@
1
- import { openBlock as a, createElementBlock as l, renderSlot as V, toDisplayString as g, createCommentVNode as m, defineComponent as C, computed as t, createBlock as D, resolveDynamicComponent as B, withCtx as T, createVNode as r, unref as d } from "vue";
2
- import { _ as p, X as $, Y as k } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BwXsSmUx.js";
1
+ import { openBlock as a, createElementBlock as l, renderSlot as V, toDisplayString as T, createCommentVNode as m, defineComponent as g, computed as t, createBlock as C, resolveDynamicComponent as D, withCtx as B, createVNode as r, unref as d } from "vue";
2
+ import { _ as p, V as $, W as k } from "./SimpleButtonControl.vue_vue_type_style_index_0_scoped_17a4a240_lang-BseRdW9f.js";
3
3
  const I = {
4
4
  name: "Tooltip",
5
5
  props: {
@@ -15,13 +15,13 @@ const I = {
15
15
  function M(o, e, n, s, c, i) {
16
16
  return a(), l("div", w, [
17
17
  V(o.$slots, "default", {}, void 0, !0),
18
- n.text ? (a(), l("span", F, g(n.text), 1)) : m("", !0)
18
+ n.text ? (a(), l("span", F, T(n.text), 1)) : m("", !0)
19
19
  ]);
20
20
  }
21
21
  const R = /* @__PURE__ */ p(I, [["render", M], ["__scopeId", "data-v-64e1cb84"]]), U = {
22
22
  key: 0,
23
23
  class: "chart"
24
- }, S = /* @__PURE__ */ C({
24
+ }, S = /* @__PURE__ */ g({
25
25
  __name: "ResourceControlBase",
26
26
  props: {
27
27
  donutTitle: {},
@@ -30,7 +30,8 @@ const R = /* @__PURE__ */ p(I, [["render", M], ["__scopeId", "data-v-64e1cb84"]]
30
30
  handleChange: { type: Function },
31
31
  changeValue: { type: Function },
32
32
  disabled: { type: Boolean },
33
- isValid: { type: Boolean },
33
+ error: { type: Boolean },
34
+ subText: {},
34
35
  onRegisterValidation: { type: Function },
35
36
  labelForId: {}
36
37
  },
@@ -46,31 +47,33 @@ const R = /* @__PURE__ */ p(I, [["render", M], ["__scopeId", "data-v-64e1cb84"]]
46
47
  () => n.value ? e.control.data : e.control.uischema.options?.donutMax ?? e.control.schema.maximum ?? 1 / 0
47
48
  ), u = t(
48
49
  () => e.control.uischema.options?.disabledTooltip || ""
49
- ), v = t(() => e.disabled && u.value ? R : "div"), h = t(() => e.control.uischema.options?.animate ?? !0), x = t(
50
+ ), v = t(() => e.disabled && u.value ? R : "div"), x = t(() => e.control.uischema.options?.animate ?? !0), h = t(
50
51
  () => e.control.uischema.options?.showDonut ?? !0
51
- ), f = t(() => e.control.schema.minimum ?? 0), y = t(() => e.control.schema.maximum ?? 1 / 0), _ = t(() => e.control.uischema.options?.step ?? 1), b = t(() => e.control.uischema.options?.unit ?? "");
52
+ ), b = t(() => e.control.schema.minimum ?? 0), f = t(() => e.control.schema.maximum ?? 1 / 0), y = t(() => e.control.uischema.options?.step ?? 1), _ = t(() => e.control.uischema.options?.unit ?? "");
52
53
  return (L, N) => (a(), l("div", null, [
53
- (a(), D(B(v.value), {
54
+ (a(), C(D(v.value), {
54
55
  text: u.value,
55
56
  class: "input-wrapper"
56
57
  }, {
57
- default: T(() => [
58
+ default: B(() => [
58
59
  r(d($), {
59
60
  ariaLabel: o.control.label,
60
61
  "model-value": o.control.data,
61
- min: f.value,
62
- max: y.value,
63
- step: _.value,
64
- unit: b.value,
62
+ min: b.value,
63
+ max: f.value,
64
+ step: y.value,
65
+ unit: _.value,
65
66
  disabled: o.disabled,
67
+ error: o.error,
68
+ "sub-text": o.subText,
66
69
  "onUpdate:modelValue": o.changeValue
67
- }, null, 8, ["ariaLabel", "model-value", "min", "max", "step", "unit", "disabled", "onUpdate:modelValue"]),
68
- x.value ? (a(), l("div", U, [
70
+ }, null, 8, ["ariaLabel", "model-value", "min", "max", "step", "unit", "disabled", "error", "sub-text", "onUpdate:modelValue"]),
71
+ h.value ? (a(), l("div", U, [
69
72
  r(d(k), {
70
73
  value: s.value,
71
74
  "secondary-value": c.value,
72
75
  "max-value": i.value,
73
- animate: h.value,
76
+ animate: x.value,
74
77
  title: o.donutTitle,
75
78
  "sub-text": o.donutDescription
76
79
  }, null, 8, ["value", "secondary-value", "max-value", "animate", "title", "sub-text"])
@@ -80,7 +83,7 @@ const R = /* @__PURE__ */ p(I, [["render", M], ["__scopeId", "data-v-64e1cb84"]]
80
83
  }, 8, ["text"]))
81
84
  ]));
82
85
  }
83
- }), E = /* @__PURE__ */ p(S, [["__scopeId", "data-v-07d61d78"]]);
86
+ }), K = /* @__PURE__ */ p(S, [["__scopeId", "data-v-4ee63019"]]);
84
87
  export {
85
- E as R
88
+ K as R
86
89
  };