@knime/jsonforms 1.9.4 → 1.10.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 (147) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/{AnyOfTwinlist-D1KycEHY.js → AnyOfTwinlist-CAyoczAB.js} +1 -1
  3. package/dist/{Button-Dj1USqpr.js → Button-BzZgjDcV.js} +1 -1
  4. package/dist/{Checkbox-5l-7O-Rc.js → Checkbox-C_i21GaA.js} +1 -1
  5. package/dist/{CheckboxControl-CcV_DXsi.js → CheckboxControl-DDoLA6Vd.js} +2 -2
  6. package/dist/{Checkboxes-TSVYIY6A.js → Checkboxes-C_e0UeAC.js} +2 -2
  7. package/dist/{CheckboxesControl-CEIBobjb.js → CheckboxesControl-mSVKQ6CW.js} +2 -2
  8. package/dist/{ComboBoxControl-FTELjHzm.js → ComboBoxControl-BY9Wb-2K.js} +9 -9
  9. package/dist/{DateControl-CF5FYRLV.js → DateControl-YjVx-aFd.js} +1 -1
  10. package/dist/{DateTimeControl-D1B_TgdP.js → DateTimeControl-D5Z7nHgz.js} +2 -2
  11. package/dist/{DateTimeFormatInput--ahcIWAg.js → DateTimeFormatInput-DP9GTXiX.js} +57 -57
  12. package/dist/{DateTimeFormatPickerControl-BliVRAB0.js → DateTimeFormatPickerControl-DdIvsCjx.js} +2 -2
  13. package/dist/{DateTimeFormatPickerWithTypeControl-CXseluiT.js → DateTimeFormatPickerWithTypeControl-CrrpUdTR.js} +3 -3
  14. package/dist/{DateTimeInput-DqqCRfzR.js → DateTimeInput-BSUVtZ_C.js} +1182 -1182
  15. package/dist/{Dropdown-BfqaIGuC.js → Dropdown-DP_F92tv.js} +85 -86
  16. package/dist/{DropdownControl-D8-qWkOR.js → DropdownControl-GMJULpL6.js} +4 -4
  17. package/dist/{HorizontalLayout-CWRVRpwR.js → HorizontalLayout-COzD3yLU.js} +1 -1
  18. package/dist/{InputField-C2yLbANc.js → InputField-BF7vTszr.js} +39 -39
  19. package/dist/{IntegerControl-Bz5KWKoG.js → IntegerControl-CKIl5Rfi.js} +1 -1
  20. package/dist/{IntervalControl-B0CHqejJ.js → IntervalControl-C2ykMH4V.js} +129 -129
  21. package/dist/{LoadingDropdown-fVxRhH6V.js → LoadingDropdown-CxqiKfdN.js} +3 -3
  22. package/dist/{MultimodeTwinlistControl-DV_0SHHy.js → MultimodeTwinlistControl-BM744sO6.js} +27 -27
  23. package/dist/{MultiselectListBox-Cn7ngRfj.js → MultiselectListBox-DwBSUb9V.js} +23 -25
  24. package/dist/{NameFilter-DTecZo_d.js → NameFilter-Dgf1mtuH.js} +1 -1
  25. package/dist/{NumberControl-Bv6y2n41.js → NumberControl-Cp0OiNDl.js} +1 -1
  26. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-6m9utn_F.js → NumberControlBase.vue_vue_type_script_setup_true_lang-B7BnKygX.js} +2 -2
  27. package/dist/{NumberInput-Ys4Hdd7b.js → NumberInput-H3BZ_gou.js} +2 -2
  28. package/dist/{OneOfDropdown-CDAPUCNY.js → OneOfDropdown-DbkVGpS-.js} +1 -1
  29. package/dist/{RadioControl-B2pjYv6_.js → RadioControl-9cZ9L-XZ.js} +2 -2
  30. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-CclH-Wwk.js → RadioControlBase.vue_vue_type_script_setup_true_lang-DXLEuMzn.js} +2 -2
  31. package/dist/{RichTextControl-Cp-ZJ8Qo.js → RichTextControl-B6KPOKpK.js} +1915 -1915
  32. package/dist/{SectionHeading-D0esbYSn.js → SectionHeading-BMWemtGd.js} +1 -1
  33. package/dist/{SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B3PkFXo7.js → SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CilY1FPG.js} +5525 -5356
  34. package/dist/{SectionLayout-lUG0FeYA.js → SectionLayout-DR_wqkbw.js} +3 -3
  35. package/dist/SettingsSubPanel-TN03TZ-e.js +5 -0
  36. package/dist/SettingsSubPanelLayout-DxJd3igq.js +61 -0
  37. package/dist/{SimpleButtonControl-DWLU_5Ny.js → SimpleButtonControl-BBy1H52n.js} +8 -8
  38. package/dist/{SimpleTwinlistControl-D6ORIuzH.js → SimpleTwinlistControl-lyNwPBvG.js} +2 -2
  39. package/dist/{SingleSelectControl-BKv71LA7.js → SingleSelectControl-BRjpWFqk.js} +2 -2
  40. package/dist/{SortListControl-B5N2Hqr2.js → SortListControl-BTrDdu9O.js} +123 -123
  41. package/dist/{TextAreaControl-Bb1thkUU.js → TextAreaControl-B1-g-8ug.js} +1 -1
  42. package/dist/{TextControl-CuiHsefr.js → TextControl-NsT1R1rk.js} +1 -1
  43. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-DqaxrzeR.js → TextControl.vue_vue_type_script_setup_true_lang-Dgyo9rJ-.js} +4 -4
  44. package/dist/{TimeControl-CfdGsohr.js → TimeControl-CWjNnOHM.js} +2 -2
  45. package/dist/{TwinlistControlBase-CYNUKmVM.js → TwinlistControlBase-Dam1VsbM.js} +3 -3
  46. package/dist/{TwinlistLoadingInfo-CPqVvWp4.js → TwinlistLoadingInfo-y6JvMoCY.js} +305 -384
  47. package/dist/{TypedStringFilter-0MA1D7-X.js → TypedStringFilter-BjzWIu-L.js} +1 -1
  48. package/dist/ValueSwitch-DZ5LB9vA.js +131 -0
  49. package/dist/{ValueSwitchControl-avfCCusm.js → ValueSwitchControl-BCpz0Ya4.js} +1 -1
  50. package/dist/{VerticalLayout-DXyKnMvI.js → VerticalLayout-WkUU2XH3.js} +5 -5
  51. package/dist/{VerticalLayoutBase-D-TX7EUL.js → VerticalLayoutBase-413o9U_2.js} +1 -1
  52. package/dist/{ZonedDateTimeControl-BNZ8YhWM.js → ZonedDateTimeControl-6u9Nbw2f.js} +4 -4
  53. package/dist/{_baseEach-FP8ISlsz.js → _baseEach-D8bWEfeT.js} +2 -2
  54. package/dist/_baseIteratee-c38lvCZS.js +516 -0
  55. package/dist/{_getTag-DiktJuv_.js → _getTag-DwDUrDKD.js} +25 -26
  56. package/dist/arrow-dropdown-DdgjzLAO.js +17 -0
  57. package/dist/arrow-next-CIOU5o42.js +17 -0
  58. package/dist/close-BuY4mhXV.js +17 -0
  59. package/dist/knime-jsonforms.css +1 -1
  60. package/dist/knime-jsonforms.js +73 -73
  61. package/dist/{localTimeUtils-Bvx7vLrT.js → localTimeUtils-Bpn7Hjtc.js} +1 -1
  62. package/dist/{magic-string.es-CvzN4vs8.js → magic-string.es-Dlayy_3o.js} +10 -10
  63. package/dist/reload-BVbCGubF.js +17 -0
  64. package/dist/src/JsonFormsDialog.vue.d.ts +11 -20
  65. package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +3 -12
  66. package/dist/src/higherOrderComponents/control/controlToRenderer.d.ts +8 -1
  67. package/dist/src/higherOrderComponents/control/errorMessage/ErrorLine.vue.d.ts +3 -12
  68. package/dist/src/higherOrderComponents/control/errorMessage/ErrorMessages.vue.d.ts +4 -25
  69. package/dist/src/higherOrderComponents/control/index.d.ts +1 -0
  70. package/dist/src/higherOrderComponents/control/validation/types.d.ts +1 -0
  71. package/dist/src/higherOrderComponents/control/validation/useValidation.d.ts +5 -2
  72. package/dist/src/layoutComponents/Form.vue.d.ts +1 -1
  73. package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +1 -10
  74. package/dist/src/layoutComponents/SectionLayout.vue.d.ts +1 -10
  75. package/dist/src/layoutComponents/SettingsSubPanelLayout.vue.d.ts +1 -10
  76. package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +1 -10
  77. package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +3 -12
  78. package/dist/src/layoutComponents/section/SectionHeading.vue.d.ts +3 -12
  79. package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue.d.ts +3 -28
  80. package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanelBackArrow.vue.d.ts +2 -2
  81. package/dist/src/loading/LoadingDialog.vue.d.ts +1 -1
  82. package/dist/src/renderers/defaultRenderers.d.ts +115 -1096
  83. package/dist/src/renderers/dropdownRenderer.d.ts +3 -219
  84. package/dist/src/renderers/fallbackRenderers.d.ts +4 -262
  85. package/dist/src/renderers/horizontalLayoutRenderer.d.ts +1 -43
  86. package/dist/src/renderers/sectionLayoutRenderer.d.ts +3 -87
  87. package/dist/src/renderers/sectionSubPanelLayoutRenderer.d.ts +1 -43
  88. package/dist/src/renderers/sortListRenderer.d.ts +85 -282
  89. package/dist/src/renderers/textMessageRenderer.d.ts +1 -109
  90. package/dist/src/renderers/textRenderer.d.ts +3 -219
  91. package/dist/src/renderers/verticalLayoutRenderer.d.ts +2 -86
  92. package/dist/src/uiComponents/CheckboxControl.vue.d.ts +1 -10
  93. package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +1 -10
  94. package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +1 -10
  95. package/dist/src/uiComponents/DateControl.vue.d.ts +1 -10
  96. package/dist/src/uiComponents/DateTimeControl.vue.d.ts +1 -10
  97. package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +1 -10
  98. package/dist/src/uiComponents/DateTimeFormatPickerWithTypeControl.vue.d.ts +1 -10
  99. package/dist/src/uiComponents/DropdownControl.vue.d.ts +1 -10
  100. package/dist/src/uiComponents/DynamicIcon.vue.d.ts +3 -12
  101. package/dist/src/uiComponents/IntegerControl.vue.d.ts +1 -10
  102. package/dist/src/uiComponents/IntervalControl.vue.d.ts +1 -10
  103. package/dist/src/uiComponents/NumberControl.vue.d.ts +1 -10
  104. package/dist/src/uiComponents/NumberControlBase.vue.d.ts +3 -12
  105. package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +1 -10
  106. package/dist/src/uiComponents/RadioControl.vue.d.ts +1 -10
  107. package/dist/src/uiComponents/RadioControlBase.vue.d.ts +3 -12
  108. package/dist/src/uiComponents/SingleSelectControl.vue.d.ts +1 -10
  109. package/dist/src/uiComponents/SortListControl.vue.d.ts +8 -73
  110. package/dist/src/uiComponents/TextAreaControl.vue.d.ts +1 -10
  111. package/dist/src/uiComponents/TextControl.vue.d.ts +1 -10
  112. package/dist/src/uiComponents/TextMessageControl.vue.d.ts +1 -10
  113. package/dist/src/uiComponents/TimeControl.vue.d.ts +1 -10
  114. package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +1 -10
  115. package/dist/src/uiComponents/ZonedDateTimeControl.vue.d.ts +1 -10
  116. package/dist/src/uiComponents/composables/usePossibleValues.d.ts +3 -1
  117. package/dist/src/uiComponents/composables/useProvidedState.d.ts +1 -1
  118. package/dist/src/uiComponents/loading/LoadingDropdown.vue.d.ts +1 -10
  119. package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +1 -1
  120. package/dist/src/uiComponents/richTextControl/DialogLinkModal.vue.d.ts +1 -10
  121. package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +1 -10
  122. package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +1 -10
  123. package/dist/src/uiComponents/twinlist/MultimodeTwinlistControl.vue.d.ts +4 -31
  124. package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +1 -10
  125. package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +1 -10
  126. package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +4 -25
  127. package/dist/src/uiComponents/twinlist/TypedStringFilter.vue.d.ts +1 -10
  128. package/dist/src/uiComponents/twinlist/useUnknownValuesInTwinlist.d.ts +6 -0
  129. package/dist/{svgWithTitle-DMRd3aDh.js → svgWithTitle-CEHRG42c.js} +2 -2
  130. package/dist/testUtils/component.d.ts +10 -10
  131. package/dist/testing.js +4395 -4086
  132. package/dist/toString-BC2RXvs0.js +25 -0
  133. package/dist/{useBuiltinValidations-iU8yJR-J.js → useBuiltinValidations-BsKhdvbW.js} +1 -1
  134. package/dist/{usePossibleValues-CQWkZRBa.js → usePossibleValues-D12PcddT.js} +1 -1
  135. package/package.json +6 -6
  136. package/dist/SettingsSubPanel-DlUlLFts.js +0 -5
  137. package/dist/SettingsSubPanelLayout-BvbwLKfV.js +0 -61
  138. package/dist/ValueSwitch-B6rM3Cb9.js +0 -138
  139. package/dist/_baseIteratee-DhaGkQLM.js +0 -518
  140. package/dist/arrow-dropdown-DjUxzjqC.js +0 -17
  141. package/dist/arrow-next-Qa8PNb04.js +0 -17
  142. package/dist/close-h7XT0ja0.js +0 -17
  143. package/dist/isObject-B53jY8Qg.js +0 -7
  144. package/dist/isObjectLike-BatpeCIi.js +0 -29
  145. package/dist/isSymbol-C3_SC0Qp.js +0 -8
  146. package/dist/reload-BhzcZRFp.js +0 -17
  147. package/dist/toString-B9O7P854.js +0 -26
@@ -0,0 +1,25 @@
1
+ import { S as s, n as g } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CilY1FPG.js";
2
+ import { i as l } from "./isArray-WzO_os3q.js";
3
+ function p(n, r) {
4
+ for (var t = -1, i = n == null ? 0 : n.length, o = Array(i); ++t < i; )
5
+ o[t] = r(n[t], t, n);
6
+ return o;
7
+ }
8
+ var e = s ? s.prototype : void 0, f = e ? e.toString : void 0;
9
+ function m(n) {
10
+ if (typeof n == "string")
11
+ return n;
12
+ if (l(n))
13
+ return p(n, m) + "";
14
+ if (g(n))
15
+ return f ? f.call(n) : "";
16
+ var r = n + "";
17
+ return r == "0" && 1 / n == -1 / 0 ? "-0" : r;
18
+ }
19
+ function S(n) {
20
+ return n == null ? "" : m(n);
21
+ }
22
+ export {
23
+ p as a,
24
+ S as t
25
+ };
@@ -1,5 +1,5 @@
1
1
  import { computed as r } from "vue";
2
- import { u as d } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B3PkFXo7.js";
2
+ import { u as d } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CilY1FPG.js";
3
3
  const l = (e = {}) => e.validations ?? [], c = (e = {}) => (e.validationProviders ?? []).map(
4
4
  (i) => d(i, null)
5
5
  ), s = (e, i) => {
@@ -1,5 +1,5 @@
1
1
  import { computed as a } from "vue";
2
- import { u as c } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B3PkFXo7.js";
2
+ import { u as c } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CilY1FPG.js";
3
3
  const t = (s) => {
4
4
  var e;
5
5
  const u = a(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/jsonforms",
3
- "version": "1.9.4",
3
+ "version": "1.10.1",
4
4
  "description": "Internal JSON Forms integration for frontend KNIME projects",
5
5
  "homepage": "https://knime.github.io/webapps-common/",
6
6
  "license": "GPL 3 and Additional Permissions according to Sec. 7 (SEE the file LICENSE)",
@@ -15,18 +15,18 @@
15
15
  "focus-trap-vue": "4.0.3",
16
16
  "tabbable": "6.2.0",
17
17
  "uuid": "10.0.0",
18
- "@knime/components": "1.27.0",
19
- "@knime/rich-text-editor": "1.4.9",
18
+ "@knime/components": "1.28.0",
19
+ "@knime/rich-text-editor": "1.4.10",
20
20
  "@knime/styles": "1.4.0",
21
21
  "@knime/utils": "1.4.0"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "consola": "3.x",
25
- "vue": ">=3.4.0"
25
+ "vue": ">=3.5.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/uuid": "10.0.0",
29
- "@vitejs/plugin-vue": "^5.1.4",
29
+ "@vitejs/plugin-vue": "^5.2.3",
30
30
  "@vue/test-utils": "2.4.6",
31
31
  "consola": "3.2.3",
32
32
  "lodash-es": "4.17.21",
@@ -39,7 +39,7 @@
39
39
  "vite-plugin-dts": "4.3.0",
40
40
  "vite-svg-loader": "5.1.0",
41
41
  "vitest": "2.1.9",
42
- "vue": "~3.4.27",
42
+ "vue": "~3.5.13",
43
43
  "vue-tsc": "2.2.0"
44
44
  },
45
45
  "exports": {
@@ -1,5 +0,0 @@
1
- import { _ as s, v as a } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B3PkFXo7.js";
2
- const _ = /* @__PURE__ */ s(a, [["__scopeId", "data-v-110037e2"]]);
3
- export {
4
- _ as S
5
- };
@@ -1,61 +0,0 @@
1
- import { defineComponent as c, openBlock as r, createBlock as n, withCtx as t, createVNode as o, unref as l, pushScopeId as i, popScopeId as p, createElementVNode as m } from "vue";
2
- import { o as d, q as h, _ as f } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B3PkFXo7.js";
3
- import { N as b } from "./arrow-next-Qa8PNb04.js";
4
- import { V as y } from "./VerticalLayoutBase-D-TX7EUL.js";
5
- import { S } from "./SectionHeading-D0esbYSn.js";
6
- import { S as _ } from "./SettingsSubPanel-DlUlLFts.js";
7
- const g = (a) => (i("data-v-eab8ed9f"), a = a(), p(), a), k = /* @__PURE__ */ g(() => /* @__PURE__ */ m("span", null, "Set", -1)), I = /* @__PURE__ */ c({
8
- __name: "SettingsSubPanelLayout",
9
- props: {
10
- layout: {}
11
- },
12
- setup(a) {
13
- return (e, v) => (r(), n(_, {
14
- "show-back-arrow": "",
15
- "background-color-override": "var(--knime-gray-ultra-light"
16
- }, {
17
- "expand-button": t(({ expand: s }) => [
18
- o(S, {
19
- "title-text": e.layout.uischema.label
20
- }, {
21
- "right-buttons": t(() => [
22
- o(l(d), {
23
- compact: "",
24
- class: "set-button",
25
- onClick: s
26
- }, {
27
- default: t(() => [
28
- k,
29
- o(l(b))
30
- ]),
31
- _: 2
32
- }, 1032, ["onClick"])
33
- ]),
34
- _: 2
35
- }, 1032, ["title-text"])
36
- ]),
37
- default: t(() => [
38
- o(y, {
39
- elements: e.layout.uischema.elements
40
- }, {
41
- default: t(({ element: s, index: u }) => [
42
- (r(), n(l(h), {
43
- key: `${e.layout.path}-${u}`,
44
- schema: e.layout.schema,
45
- uischema: s,
46
- path: e.layout.path,
47
- enabled: e.layout.enabled,
48
- renderers: e.layout.renderers,
49
- cells: e.layout.cells
50
- }, null, 8, ["schema", "uischema", "path", "enabled", "renderers", "cells"]))
51
- ]),
52
- _: 1
53
- }, 8, ["elements"])
54
- ]),
55
- _: 1
56
- }));
57
- }
58
- }), P = /* @__PURE__ */ f(I, [["__scopeId", "data-v-eab8ed9f"]]);
59
- export {
60
- P as default
61
- };
@@ -1,138 +0,0 @@
1
- import { defineComponent as i, openBlock as o, createElementBlock as d, Fragment as n, renderList as V, normalizeClass as p, createElementVNode as s, toDisplayString as u, renderSlot as m, createCommentVNode as v, pushScopeId as B, popScopeId as $, resolveComponent as S, createBlock as g, withCtx as _, normalizeProps as w, guardReactiveProps as I } from "vue";
2
- import { _ as f } from "./SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-B3PkFXo7.js";
3
- let r = 0;
4
- const k = i({
5
- name: "BaseRadioButtons",
6
- props: {
7
- id: {
8
- type: String,
9
- default: null
10
- },
11
- modelValue: {
12
- type: String,
13
- default: null
14
- },
15
- name: {
16
- type: String,
17
- default: null
18
- },
19
- disabled: {
20
- default: !1,
21
- type: Boolean
22
- },
23
- possibleValues: {
24
- type: Array,
25
- default: () => [],
26
- validator(e) {
27
- return Array.isArray(e) ? e.every(
28
- (t) => t.hasOwnProperty("id") && t.hasOwnProperty("text")
29
- ) : !1;
30
- }
31
- }
32
- },
33
- emits: ["update:modelValue"],
34
- computed: {
35
- inputName() {
36
- return this.name || `wc-radio-${this.count}`;
37
- }
38
- },
39
- beforeCreate() {
40
- r += 1, this.count = r;
41
- },
42
- methods: {
43
- onInput(e) {
44
- const t = e.target.value;
45
- this.$emit("update:modelValue", t);
46
- }
47
- }
48
- }), C = (e) => (B("data-v-1d110ef3"), e = e(), $(), e), R = ["id"], A = ["checked", "value", "name", "disabled"], N = ["title"], P = /* @__PURE__ */ C(() => /* @__PURE__ */ s("br", null, null, -1));
49
- function z(e, t, c, b, y, h) {
50
- return o(), d("div", {
51
- id: e.id,
52
- role: "radiogroup"
53
- }, [
54
- (o(!0), d(n, null, V(e.possibleValues, (a) => (o(), d("label", {
55
- key: `radio-${a.id}`,
56
- class: p({ disabled: e.disabled || a.disabled })
57
- }, [
58
- s("input", {
59
- ref_for: !0,
60
- ref: "input",
61
- checked: e.modelValue === a.id,
62
- value: a.id,
63
- name: e.inputName,
64
- disabled: e.disabled || a.disabled,
65
- type: "radio",
66
- onChange: t[0] || (t[0] = (...l) => e.onInput && e.onInput(...l))
67
- }, null, 40, A),
68
- s("span", {
69
- title: a.text
70
- }, u(a.text), 9, N),
71
- m(e.$slots, "default", { item: a }, void 0, !0),
72
- a.subtext ? (o(), d(n, { key: 0 }, [
73
- P,
74
- s("span", null, u(a.subtext), 1)
75
- ], 64)) : v("", !0)
76
- ], 2))), 128))
77
- ], 8, R);
78
- }
79
- const E = /* @__PURE__ */ f(k, [["render", z], ["__scopeId", "data-v-1d110ef3"]]), O = i({
80
- name: "ValueSwitch",
81
- components: {
82
- BaseRadioButtons: E
83
- },
84
- props: {
85
- id: {
86
- type: String,
87
- default: null
88
- },
89
- modelValue: {
90
- type: String,
91
- default: null
92
- },
93
- name: {
94
- type: String,
95
- default: null
96
- },
97
- disabled: {
98
- default: !1,
99
- type: Boolean
100
- },
101
- possibleValues: {
102
- type: Array,
103
- default: () => []
104
- },
105
- compact: {
106
- type: Boolean,
107
- default: !1
108
- }
109
- },
110
- emits: ["update:modelValue"]
111
- });
112
- function D(e, t, c, b, y, h) {
113
- const a = S("BaseRadioButtons");
114
- return o(), g(a, {
115
- id: e.id,
116
- ref: "radioButton",
117
- "possible-values": e.possibleValues,
118
- "model-value": e.modelValue,
119
- name: e.name,
120
- disabled: e.disabled,
121
- class: p(["value-switch", {
122
- disabled: e.disabled,
123
- compact: e.compact,
124
- normal: !e.compact
125
- }]),
126
- "onUpdate:modelValue": t[0] || (t[0] = (l) => e.$emit("update:modelValue", l))
127
- }, {
128
- default: _((l) => [
129
- m(e.$slots, "default", w(I(l)), void 0, !0)
130
- ]),
131
- _: 3
132
- }, 8, ["id", "possible-values", "model-value", "name", "disabled", "class"]);
133
- }
134
- const U = /* @__PURE__ */ f(O, [["render", D], ["__scopeId", "data-v-6882373b"]]);
135
- export {
136
- E as B,
137
- U as V
138
- };