@knime/jsonforms 0.1.7 → 1.0.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 (223) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +71 -70
  3. package/dist/AnyOfTwinlist-B_ZhgekG.js +20 -0
  4. package/dist/BaseButton-arvXMjXG.js +112 -0
  5. package/dist/Button-Bc51Uur8.js +83 -0
  6. package/dist/Checkbox-BxPISyW3.js +75 -0
  7. package/dist/CheckboxControl-B-RyvD0K.js +42 -0
  8. package/dist/{Checkboxes-C6FkTqJJ.js → Checkboxes-COtqblKj.js} +11 -10
  9. package/dist/CheckboxesControl-YyKWzrxj.js +38 -0
  10. package/dist/ColumnFilter-bO-fKaHD.js +22 -0
  11. package/dist/ColumnSelect-D0vqxZ2B.js +65 -0
  12. package/dist/{ComboBoxControl-ZCl7sHRN.js → ComboBoxControl-CLL5eRHX.js} +127 -126
  13. package/dist/DateControl-v0qHckKz.js +27 -0
  14. package/dist/DateTimeControl-COnMFfMd.js +47 -0
  15. package/dist/DateTimeInput-ltP7o2TE.js +11059 -0
  16. package/dist/Dropdown-By1NMrXZ.js +691 -0
  17. package/dist/{DropdownControl-BFnea4SN.js → DropdownControl-Eb3G4P0X.js} +1 -1
  18. package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-Cfmqdv7v.js +223 -0
  19. package/dist/ErrorMessage-fuIcc8xw.js +23 -0
  20. package/dist/FunctionButton-DBec3TQi.js +75 -0
  21. package/dist/HorizontalLayout-Dsv1qfyL.js +30 -0
  22. package/dist/InputField-BKH5rtn3.js +148 -0
  23. package/dist/IntegerControl-CBuOHc4B.js +18 -0
  24. package/dist/{IntervalControl-CsuXbPwA.js → IntervalControl-JL6QGHT2.js} +214 -216
  25. package/dist/{MultiselectListBox-BWKtEC8t.js → MultiselectListBox-Dv5n9S3f.js} +4 -3
  26. package/dist/NameFilter-oHBcHQTY.js +22 -0
  27. package/dist/NumberControl-Cwf50Oe-.js +18 -0
  28. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-C_g1bVI2.js +42 -0
  29. package/dist/{NumberInput-84bJjfB4.js → NumberInput-DERn3NyL.js} +9 -7
  30. package/dist/OneOfDropdown-kY3PQFJX.js +32 -0
  31. package/dist/RadioControl-DsVkQLSI.js +22 -0
  32. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-BsA00YLx.js +106 -0
  33. package/dist/{RichTextControl-DgdPhNzf.js → RichTextControl-DXH5XiAI.js} +4595 -3481
  34. package/dist/SectionLayout-BDgtf57K.js +43 -0
  35. package/dist/SimpleButtonControl-6d7wNl3P.js +58 -0
  36. package/dist/SimpleTwinlistControl-CJyR3gN8.js +48 -0
  37. package/dist/SortListControl-On9GHu_U.js +356 -0
  38. package/dist/TextAreaControl-DF_pLD80.js +108 -0
  39. package/dist/TextControl-BTZ4ONmV.js +4 -0
  40. package/dist/TextControl.vue_vue_type_script_setup_true_lang-CYfvYMWm.js +65 -0
  41. package/dist/{TimeControl-D07XI-Sl.js → TimeControl-D2j2e_nC.js} +122 -124
  42. package/dist/TwinlistControl-DcFpZrni.js +553 -0
  43. package/dist/{TwinlistLoadingInfo-DHKwC-WM.js → TwinlistLoadingInfo-CTVlN9EZ.js} +183 -175
  44. package/dist/{ValueSwitch-DXmeJXda.js → ValueSwitch-CpE1f4ie.js} +1 -1
  45. package/dist/ValueSwitchControl-BQFL8H6P.js +18 -0
  46. package/dist/VerticalLayout-D1KXulG4.js +30 -0
  47. package/dist/{VerticalLayoutBase-CI2PQj0c.js → VerticalLayoutBase-D-NdtOho.js} +2 -2
  48. package/dist/VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js +13201 -0
  49. package/dist/_baseAssignValue-C56BMUo_.js +19 -0
  50. package/dist/_baseEach-1sO8_8tT.js +31 -0
  51. package/dist/_baseIsEqual-d71B2UwX.js +248 -0
  52. package/dist/_baseIteratee-BgB8cpN8.js +104 -0
  53. package/dist/_getTag-BiNJdVyP.js +314 -0
  54. package/dist/arrow-dropdown-DjUxzjqC.js +17 -0
  55. package/dist/close-h7XT0ja0.js +17 -0
  56. package/dist/floating-ui.vue.esm-CDpUY3-t.js +986 -0
  57. package/dist/getPossibleValuesFromUiSchema-BFJtj-id.js +40 -0
  58. package/dist/index-BrIvBSNK-BRWnkVln.js +685 -0
  59. package/dist/index-C1PjXAJX.js +17 -0
  60. package/dist/index-Cp7Xre_V.js +331 -0
  61. package/dist/isObject-B53jY8Qg.js +7 -0
  62. package/dist/isSymbol-DLKDpjGl.js +8 -0
  63. package/dist/knime-jsonforms.css +1 -1
  64. package/dist/knime-jsonforms.d.ts +2 -0
  65. package/dist/knime-jsonforms.js +119 -3
  66. package/dist/magic-string.es-DFyz70Kz.js +860 -0
  67. package/dist/popper-1JCni0RT.js +907 -0
  68. package/dist/reload-BhzcZRFp.js +17 -0
  69. package/dist/src/JsonFormsDialog.vue.d.ts +50 -0
  70. package/dist/src/constants/index.d.ts +2 -0
  71. package/dist/src/constants/inputFormats.d.ts +25 -0
  72. package/dist/src/constants/priorityRanks.d.ts +4 -0
  73. package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +31 -0
  74. package/dist/src/higherOrderComponents/control/addLabel.d.ts +6 -0
  75. package/dist/src/higherOrderComponents/control/controlToRenderer.d.ts +6 -0
  76. package/dist/src/higherOrderComponents/control/handleVisibility.d.ts +2 -0
  77. package/dist/src/higherOrderComponents/control/index.d.ts +7 -0
  78. package/dist/src/higherOrderComponents/control/types.d.ts +36 -0
  79. package/dist/src/higherOrderComponents/control/util.d.ts +44 -0
  80. package/dist/src/higherOrderComponents/index.d.ts +3 -0
  81. package/dist/src/higherOrderComponents/layout/handleVisibility.d.ts +2 -0
  82. package/dist/src/higherOrderComponents/layout/index.d.ts +4 -0
  83. package/dist/src/higherOrderComponents/layout/layoutToRenderer.d.ts +6 -0
  84. package/dist/src/higherOrderComponents/layout/types.d.ts +28 -0
  85. package/dist/src/higherOrderComponents/layout/util.d.ts +25 -0
  86. package/dist/src/higherOrderComponents/types.d.ts +25 -0
  87. package/dist/src/index.d.ts +9 -0
  88. package/dist/src/layoutComponents/Form.vue.d.ts +10 -0
  89. package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +12 -0
  90. package/dist/src/layoutComponents/SectionLayout.vue.d.ts +21 -0
  91. package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +12 -0
  92. package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +26 -0
  93. package/dist/src/layoutComponents/index.d.ts +3 -0
  94. package/dist/src/loading/LoadingDialog.vue.d.ts +2 -0
  95. package/dist/src/renderers/checkboxRenderer.d.ts +192 -0
  96. package/dist/src/renderers/checkboxesRenderer.d.ts +7 -0
  97. package/dist/src/renderers/columnFilterRenderer.d.ts +5 -0
  98. package/dist/src/renderers/columnSelectRenderer.d.ts +209 -0
  99. package/dist/src/renderers/comboBoxRenderer.d.ts +6 -0
  100. package/dist/src/renderers/dateTimeRenderer.d.ts +5 -0
  101. package/dist/src/renderers/defaultRenderers.d.ts +1898 -0
  102. package/dist/src/renderers/dropdownRenderer.d.ts +253 -0
  103. package/dist/src/renderers/fallbackRenderers.d.ts +649 -0
  104. package/dist/src/renderers/horizontalLayoutRenderer.d.ts +48 -0
  105. package/dist/src/renderers/index.d.ts +1 -0
  106. package/dist/src/renderers/integerRenderer.d.ts +5 -0
  107. package/dist/src/renderers/intervalRenderer.d.ts +5 -0
  108. package/dist/src/renderers/localDateRenderer.d.ts +5 -0
  109. package/dist/src/renderers/localTimeRenderer.d.ts +5 -0
  110. package/dist/src/renderers/nameFilterRenderer.d.ts +5 -0
  111. package/dist/src/renderers/numberRenderer.d.ts +5 -0
  112. package/dist/src/renderers/radioRenderer.d.ts +5 -0
  113. package/dist/src/renderers/richTextRenderer.d.ts +5 -0
  114. package/dist/src/renderers/sectionLayoutRenderer.d.ts +108 -0
  115. package/dist/src/renderers/simpleButtonRenderer.d.ts +121 -0
  116. package/dist/src/renderers/sortListRenderer.d.ts +288 -0
  117. package/dist/src/renderers/textAreaRenderer.d.ts +5 -0
  118. package/dist/src/renderers/textMessageRenderer.d.ts +89 -0
  119. package/dist/src/renderers/textRenderer.d.ts +193 -0
  120. package/dist/src/renderers/twinlistRenderer.d.ts +13 -0
  121. package/dist/src/renderers/valueSwitchRenderer.d.ts +5 -0
  122. package/dist/src/renderers/verticalLayoutRenderer.d.ts +94 -0
  123. package/dist/src/types/ChoicesUiSchema.d.ts +21 -0
  124. package/dist/src/types/Control.d.ts +2 -0
  125. package/dist/src/types/alert.d.ts +5 -0
  126. package/dist/src/types/provided.d.ts +25 -0
  127. package/dist/src/uiComponents/CheckboxControl.vue.d.ts +22 -0
  128. package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +12 -0
  129. package/dist/src/uiComponents/ColumnSelect.vue.d.ts +26 -0
  130. package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +12 -0
  131. package/dist/src/uiComponents/DateControl.vue.d.ts +12 -0
  132. package/dist/src/uiComponents/DateTimeControl.vue.d.ts +12 -0
  133. package/dist/src/uiComponents/DropdownControl.vue.d.ts +52 -0
  134. package/dist/src/uiComponents/DynamicIcon.vue.d.ts +16 -0
  135. package/dist/src/uiComponents/ErrorMessage.vue.d.ts +23 -0
  136. package/dist/src/uiComponents/IntegerControl.vue.d.ts +12 -0
  137. package/dist/src/uiComponents/IntervalControl.vue.d.ts +12 -0
  138. package/dist/src/uiComponents/NumberControl.vue.d.ts +12 -0
  139. package/dist/src/uiComponents/NumberControlBase.vue.d.ts +19 -0
  140. package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +23 -0
  141. package/dist/src/uiComponents/RadioControl.vue.d.ts +12 -0
  142. package/dist/src/uiComponents/RadioControlBase.vue.d.ts +19 -0
  143. package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +121 -0
  144. package/dist/src/uiComponents/SortListControl.vue.d.ts +93 -0
  145. package/dist/src/uiComponents/TextAreaControl.vue.d.ts +12 -0
  146. package/dist/src/uiComponents/TextControl.vue.d.ts +23 -0
  147. package/dist/src/uiComponents/TextMessageControl.vue.d.ts +12 -0
  148. package/dist/src/uiComponents/TimeControl.vue.d.ts +12 -0
  149. package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +12 -0
  150. package/dist/src/uiComponents/composables/useHideOnNull.d.ts +28 -0
  151. package/dist/src/uiComponents/composables/useProvidedState.d.ts +3 -0
  152. package/dist/src/uiComponents/index.d.ts +4 -0
  153. package/dist/src/uiComponents/loading/LoadingDropdown.vue.d.ts +12 -0
  154. package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +2 -0
  155. package/dist/src/uiComponents/loading/types/LoadingDropdownProps.d.ts +8 -0
  156. package/dist/src/uiComponents/richTextControl/DialogLinkModal.vue.d.ts +29 -0
  157. package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +12 -0
  158. package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +12 -0
  159. package/dist/src/uiComponents/twinlist/ColumnFilter.vue.d.ts +13 -0
  160. package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +13 -0
  161. package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +109 -0
  162. package/dist/src/uiComponents/twinlist/TwinlistControl.vue.d.ts +67 -0
  163. package/dist/src/uiComponents/twinlist/useUnknownValuesInTwinlist.d.ts +19 -0
  164. package/dist/src/utils/getFlattenedSettings.d.ts +5 -0
  165. package/dist/src/utils/getPossibleValuesFromUiSchema.d.ts +10 -0
  166. package/dist/src/utils/index.d.ts +15 -0
  167. package/dist/src/utils/inject.d.ts +3 -0
  168. package/dist/src/utils/localTimeUtils.d.ts +16 -0
  169. package/dist/svgWithTitle-zrGi2kyc.js +18 -0
  170. package/dist/testUtils/component.d.ts +190 -0
  171. package/dist/testUtils/index.d.ts +2 -0
  172. package/dist/testUtils/renderer.d.ts +6 -0
  173. package/dist/testing.d.ts +2 -0
  174. package/dist/testing.js +18889 -0
  175. package/dist/toString-C9vll-oa.js +26 -0
  176. package/dist/useSearch-hpyYQ_6y.js +74 -0
  177. package/package.json +11 -7
  178. package/dist/AnyOfTwinlist-BAbzoFfn.js +0 -17
  179. package/dist/ArrayLayout-Cfdlkm_T.js +0 -487
  180. package/dist/ButtonControl-yAb2GdQI.js +0 -127
  181. package/dist/CheckboxControl-Ck45Jycu.js +0 -50
  182. package/dist/CheckboxesControl-Xx9tpOL6.js +0 -39
  183. package/dist/ColumnFilter-u7yVpuFC.js +0 -17
  184. package/dist/ColumnSelect-DfXHTA0Z.js +0 -60
  185. package/dist/CredentialsControl-D1Te47JG.js +0 -20
  186. package/dist/CredentialsControlBase-Dqhh-4hT.js +0 -110
  187. package/dist/DateControl-CuV2lKvs.js +0 -30
  188. package/dist/DateTimeControl-BDZ18Hzl.js +0 -4
  189. package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-BRWvAXuk.js +0 -171
  190. package/dist/DynamicValuesControl-BgNPwoHm.js +0 -127
  191. package/dist/FileChooserControl-HX_GjlNB.js +0 -605
  192. package/dist/FileExplorerTab-FjmnUl9M.js +0 -3951
  193. package/dist/HorizontalLayout-BrHkxvnP.js +0 -39
  194. package/dist/IntegerControl-Dxk1Y8LA.js +0 -13
  195. package/dist/LayoutComponentWrapper-VvzxL4qE.js +0 -36
  196. package/dist/LegacyCredentialsControl-p5U7Vp0h.js +0 -62
  197. package/dist/LocalFileChooserControl-Cr0A0dg6.js +0 -57
  198. package/dist/MenuItems.vue_vue_type_style_index_0_lang-BiJVA2Wt.js +0 -464
  199. package/dist/NameFilter-CsfBC6e2.js +0 -17
  200. package/dist/NodeDialog.vue.d.ts +0 -8
  201. package/dist/NumberControl-BJCFqjn3.js +0 -13
  202. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-DkAPaKAi.js +0 -43
  203. package/dist/OneOfDropdown-CBLlPlxh.js +0 -15
  204. package/dist/RadioControl-BZEV6NYx.js +0 -13
  205. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-DvA87Y4C.js +0 -128
  206. package/dist/SectionLayout-DtVREvcv.js +0 -54
  207. package/dist/SimpleButtonControl-D2kCPiU9.js +0 -59
  208. package/dist/SimpleTwinlistControl-D6E8DEoD.js +0 -68
  209. package/dist/SortListControl-DcW5Ofs5.js +0 -316
  210. package/dist/TextAreaControl-DTw_oBDS.js +0 -111
  211. package/dist/TextControl-BlfySQDC.js +0 -49
  212. package/dist/TwinlistControl-BqoP2Kbq.js +0 -587
  213. package/dist/ValueSwitchControl-CyDbUKLv.js +0 -13
  214. package/dist/VennDiagramLayout-DXH6CUzc.js +0 -104
  215. package/dist/VerticalLayout-CTFSrGS8.js +0 -39
  216. package/dist/arrow-up-Dsq3EgtE.js +0 -30
  217. package/dist/floating-ui.vue.esm-D_FlISFP.js +0 -94
  218. package/dist/getFlattenedSettings-D64OwqpI.js +0 -7
  219. package/dist/index-1mTLieVA.js +0 -32714
  220. package/dist/index.d.ts +0 -3
  221. package/dist/layoutComponents/Form.vue.d.ts +0 -2
  222. package/dist/link-BA69Hfx6.js +0 -17
  223. package/dist/loading/LoadingDialog.vue.d.ts +0 -2
@@ -1,5 +1,6 @@
1
1
  import { openBlock as h, createElementBlock as u, mergeProps as x, withModifiers as a, toDisplayString as y, toRef as p, watch as I, resolveComponent as v, normalizeClass as C, normalizeStyle as w, createElementVNode as f, withKeys as d, normalizeProps as V, guardReactiveProps as k, Fragment as H, renderList as B, createBlock as g, resolveDynamicComponent as D, createCommentVNode as b, createVNode as K } from "vue";
2
- import { _ as S, aJ as N } from "./index-1mTLieVA.js";
2
+ import { b as N } from "./index-Cp7Xre_V.js";
3
+ import { _ as S } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js";
3
4
  const A = (e, t) => {
4
5
  let i, n = 0;
5
6
  return (...r) => {
@@ -573,7 +574,7 @@ function q(e, t, i, n, r, s) {
573
574
  ])
574
575
  ], 6);
575
576
  }
576
- const G = /* @__PURE__ */ S(E, [["render", q], ["__scopeId", "data-v-0b9d68d0"]]);
577
+ const Q = /* @__PURE__ */ S(E, [["render", q], ["__scopeId", "data-v-0b9d68d0"]]);
577
578
  export {
578
- G as M
579
+ Q as M
579
580
  };
@@ -0,0 +1,22 @@
1
+ import { defineComponent as n, openBlock as o, createBlock as t, mergeProps as l } from "vue";
2
+ import a from "./TwinlistControl-DcFpZrni.js";
3
+ const i = /* @__PURE__ */ n({
4
+ __name: "NameFilter",
5
+ props: {
6
+ control: {},
7
+ handleChange: { type: Function },
8
+ changeValue: { type: Function },
9
+ disabled: { type: Boolean },
10
+ labelForId: {}
11
+ },
12
+ setup(r) {
13
+ return (e, s) => (o(), t(a, l({ ...e.$props, ...e.$attrs }, {
14
+ "unknown-values-text": "Any unknown value",
15
+ "show-unknown-values": "",
16
+ "empty-state-label": "No values in this list"
17
+ }), null, 16));
18
+ }
19
+ });
20
+ export {
21
+ i as default
22
+ };
@@ -0,0 +1,18 @@
1
+ import { defineComponent as o, openBlock as n, createBlock as r, mergeProps as t } from "vue";
2
+ import { _ as p } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-C_g1bVI2.js";
3
+ const m = /* @__PURE__ */ o({
4
+ __name: "NumberControl",
5
+ props: {
6
+ control: {},
7
+ handleChange: { type: Function },
8
+ changeValue: { type: Function },
9
+ disabled: { type: Boolean },
10
+ labelForId: {}
11
+ },
12
+ setup(a) {
13
+ return (e, l) => (n(), r(p, t(e.$props, { type: "double" }), null, 16));
14
+ }
15
+ });
16
+ export {
17
+ m as default
18
+ };
@@ -0,0 +1,42 @@
1
+ import { defineComponent as p, openBlock as d, createBlock as b, unref as t } from "vue";
2
+ import { u as i } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js";
3
+ import { N as h } from "./NumberInput-DERn3NyL.js";
4
+ const V = /* @__PURE__ */ p({
5
+ __name: "NumberControlBase",
6
+ props: {
7
+ control: {},
8
+ handleChange: { type: Function },
9
+ changeValue: { type: Function },
10
+ disabled: { type: Boolean },
11
+ labelForId: {},
12
+ type: {}
13
+ },
14
+ setup(s) {
15
+ var l, u, r, m;
16
+ const o = s, n = i(
17
+ (l = o.control.uischema.options) == null ? void 0 : l.minProvider,
18
+ (u = o.control.uischema.options) == null ? void 0 : u.min
19
+ ), a = i(
20
+ (r = o.control.uischema.options) == null ? void 0 : r.maxProvider,
21
+ (m = o.control.uischema.options) == null ? void 0 : m.max
22
+ ), c = () => {
23
+ const e = o.control.data;
24
+ typeof n.value == "number" && e < n.value ? o.changeValue(n.value) : typeof a.value == "number" && e > a.value && o.changeValue(a.value);
25
+ };
26
+ return (e, v) => (d(), b(t(h), {
27
+ id: e.labelForId,
28
+ class: "number-input",
29
+ disabled: e.disabled,
30
+ "model-value": e.control.data,
31
+ type: e.type,
32
+ min: t(n),
33
+ max: t(a),
34
+ compact: "",
35
+ "onUpdate:modelValue": e.changeValue,
36
+ onFocusout: c
37
+ }, null, 8, ["id", "disabled", "model-value", "type", "min", "max", "onUpdate:modelValue"]));
38
+ }
39
+ });
40
+ export {
41
+ V as _
42
+ };
@@ -1,9 +1,11 @@
1
- import { X as h, _ as p } from "./index-1mTLieVA.js";
2
- import { resolveComponent as f, openBlock as o, createElementBlock as d, normalizeClass as l, createElementVNode as n, createCommentVNode as V, withModifiers as r, createVNode as m } from "vue";
1
+ import { A as p } from "./arrow-dropdown-DjUxzjqC.js";
2
+ /* empty css */
3
+ import { resolveComponent as h, openBlock as o, createElementBlock as d, normalizeClass as l, createElementVNode as n, createCommentVNode as f, withModifiers as r, createVNode as m } from "vue";
4
+ import { _ as V } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js";
3
5
  const c = 200, g = 50, v = 0.1, E = 1, I = {
4
6
  name: "NumberInput",
5
7
  components: {
6
- ArrowIcon: h
8
+ ArrowIcon: p
7
9
  },
8
10
  props: {
9
11
  modelValue: {
@@ -173,7 +175,7 @@ const c = 200, g = 50, v = 0.1, E = 1, I = {
173
175
  class: "invalid-marker"
174
176
  };
175
177
  function A(t, e, a, w, y, s) {
176
- const u = f("ArrowIcon");
178
+ const u = h("ArrowIcon");
177
179
  return o(), d("div", {
178
180
  class: l(["wrapper", { disabled: a.disabled, compact: a.compact }])
179
181
  }, [
@@ -194,7 +196,7 @@ function A(t, e, a, w, y, s) {
194
196
  onMouseenter: e[2] || (e[2] = (...i) => s.toggleHover && s.toggleHover(...i)),
195
197
  onMouseleave: e[3] || (e[3] = (...i) => s.toggleHover && s.toggleHover(...i))
196
198
  }, null, 42, b),
197
- a.isValid ? V("", !0) : (o(), d("span", N)),
199
+ a.isValid ? f("", !0) : (o(), d("span", N)),
198
200
  n("span", {
199
201
  class: l(["increase", { disabled: a.disabled }]),
200
202
  onMousedown: e[4] || (e[4] = r((i) => s.mouseEvent(i, "increase"), ["prevent"])),
@@ -213,7 +215,7 @@ function A(t, e, a, w, y, s) {
213
215
  ], 34)
214
216
  ], 2);
215
217
  }
216
- const M = /* @__PURE__ */ p(I, [["render", A], ["__scopeId", "data-v-6b79dc2b"]]);
218
+ const B = /* @__PURE__ */ V(I, [["render", A], ["__scopeId", "data-v-6b79dc2b"]]);
217
219
  export {
218
- M as N
220
+ B as N
219
221
  };
@@ -0,0 +1,32 @@
1
+ import { defineComponent as l, openBlock as m, createBlock as f, mergeProps as u, unref as d, withCtx as e, renderSlot as s } from "vue";
2
+ import { o as h } from "./index-C1PjXAJX.js";
3
+ import { _ as y } from "./DropdownControl.vue_vue_type_script_setup_true_lang-Cfmqdv7v.js";
4
+ const B = /* @__PURE__ */ l({
5
+ __name: "OneOfDropdown",
6
+ props: {
7
+ control: {},
8
+ handleChange: { type: Function },
9
+ changeValue: { type: Function },
10
+ disabled: { type: Boolean },
11
+ labelForId: {}
12
+ },
13
+ setup(r) {
14
+ var n, t;
15
+ const p = ((t = (n = r.control.schema) == null ? void 0 : n.oneOf) == null ? void 0 : t.map(h)) ?? [], a = Promise.resolve(p);
16
+ return (o, $) => (m(), f(y, u({ ...o.$attrs, ...o.$props }, { "async-initial-options": d(a) }), {
17
+ icon: e(() => [
18
+ s(o.$slots, "icon")
19
+ ]),
20
+ buttons: e(({ hover: i, controlHTMLElement: c }) => [
21
+ s(o.$slots, "buttons", {
22
+ hover: i,
23
+ controlHTMLElement: c
24
+ })
25
+ ]),
26
+ _: 3
27
+ }, 16, ["async-initial-options"]));
28
+ }
29
+ });
30
+ export {
31
+ B as default
32
+ };
@@ -0,0 +1,22 @@
1
+ import { defineComponent as e, openBlock as r, createBlock as a, mergeProps as n } from "vue";
2
+ import { _ as t } from "./RadioControlBase.vue_vue_type_script_setup_true_lang-BsA00YLx.js";
3
+ import { _ as p } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js";
4
+ const s = /* @__PURE__ */ e({
5
+ __name: "RadioControl",
6
+ props: {
7
+ control: {},
8
+ handleChange: { type: Function },
9
+ changeValue: { type: Function },
10
+ disabled: { type: Boolean },
11
+ labelForId: {}
12
+ },
13
+ setup(c) {
14
+ return (o, l) => (r(), a(t, n(o.$props, {
15
+ type: "radio",
16
+ class: "radio"
17
+ }), null, 16));
18
+ }
19
+ }), m = /* @__PURE__ */ p(s, [["__scopeId", "data-v-06f75491"]]);
20
+ export {
21
+ m as default
22
+ };
@@ -0,0 +1,106 @@
1
+ import { resolveComponent as c, openBlock as m, createBlock as p, normalizeClass as b, defineComponent as f, computed as s, ref as v, onMounted as B, resolveDynamicComponent as h, createCommentVNode as y } from "vue";
2
+ import { o as V } from "./index-C1PjXAJX.js";
3
+ import { B as _, V as g } from "./ValueSwitch-CpE1f4ie.js";
4
+ import { _ as C } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js";
5
+ const R = {
6
+ name: "RadioButtons",
7
+ components: {
8
+ BaseRadioButtons: _
9
+ },
10
+ props: {
11
+ // these props are passed to BaseRadioButtons
12
+ id: {
13
+ type: String,
14
+ default: null
15
+ },
16
+ modelValue: {
17
+ type: String,
18
+ default: ""
19
+ },
20
+ disabled: {
21
+ default: !1,
22
+ type: Boolean
23
+ },
24
+ /**
25
+ * List of possible values. Each item must have an `id` and a `text` property
26
+ * @example
27
+ * [{
28
+ * id: 'pdf',
29
+ * text: 'PDF'
30
+ * }, {
31
+ * id: 'XLS',
32
+ * text: 'Excel',
33
+ * }]
34
+ */
35
+ possibleValues: {
36
+ type: Array,
37
+ default: () => []
38
+ },
39
+ // additional props
40
+ alignment: {
41
+ type: String,
42
+ default: "horizontal",
43
+ validator(a) {
44
+ return ["horizontal", "vertical"].includes(a);
45
+ }
46
+ }
47
+ },
48
+ emits: ["update:modelValue"],
49
+ methods: {
50
+ hasSelection() {
51
+ return this.$refs.radioButton.$refs.input.some((a) => a.checked);
52
+ }
53
+ }
54
+ };
55
+ function S(a, t, o, d, i, u) {
56
+ const l = c("BaseRadioButtons");
57
+ return m(), p(l, {
58
+ id: o.id,
59
+ ref: "radioButton",
60
+ "possible-values": o.possibleValues,
61
+ "model-value": o.modelValue,
62
+ disabled: o.disabled,
63
+ class: b(["radio-buttons", o.alignment, { disabled: o.disabled }]),
64
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => a.$emit("update:modelValue", e))
65
+ }, null, 8, ["id", "possible-values", "model-value", "disabled", "class"]);
66
+ }
67
+ const k = /* @__PURE__ */ C(R, [["render", S], ["__scopeId", "data-v-e428929b"]]), U = /* @__PURE__ */ f({
68
+ __name: "RadioControlBase",
69
+ props: {
70
+ control: {},
71
+ handleChange: { type: Function },
72
+ changeValue: { type: Function },
73
+ disabled: { type: Boolean },
74
+ labelForId: {},
75
+ type: {}
76
+ },
77
+ setup(a) {
78
+ const t = a, o = s(() => {
79
+ var e;
80
+ return (e = t.control.uischema.options) == null ? void 0 : e.radioLayout;
81
+ }), d = s(
82
+ () => {
83
+ var e;
84
+ return ((e = t.control.uischema.options) == null ? void 0 : e.disabledOptions) ?? [];
85
+ }
86
+ ), i = (e) => d.value.includes(e.id) ? { ...e, disabled: !0 } : e, u = s(
87
+ () => t.type === "valueSwitch" ? g : k
88
+ ), l = v(null);
89
+ return B(() => {
90
+ var e, n, r;
91
+ l.value = (r = (n = (e = t.control) == null ? void 0 : e.schema) == null ? void 0 : n.oneOf) == null ? void 0 : r.map(V).map(i);
92
+ }), (e, n) => l.value ? (m(), p(h(u.value), {
93
+ key: 0,
94
+ id: e.labelForId,
95
+ "possible-values": l.value,
96
+ alignment: o.value,
97
+ disabled: e.disabled,
98
+ "model-value": e.control.data,
99
+ compact: "",
100
+ "onUpdate:modelValue": e.changeValue
101
+ }, null, 8, ["id", "possible-values", "alignment", "disabled", "model-value", "onUpdate:modelValue"])) : y("", !0);
102
+ }
103
+ });
104
+ export {
105
+ U as _
106
+ };