@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,13 +0,0 @@
1
- import { defineComponent as e, openBlock as o, createBlock as p, mergeProps as n } from "vue";
2
- import { r as t } from "./index-1mTLieVA.js";
3
- import { _ as m } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-DkAPaKAi.js";
4
- const l = /* @__PURE__ */ e({
5
- __name: "NumberControl",
6
- props: t(),
7
- setup(s) {
8
- return (r, _) => (o(), p(m, n(r.$props, { type: "double" }), null, 16));
9
- }
10
- });
11
- export {
12
- l as default
13
- };
@@ -1,43 +0,0 @@
1
- import { defineComponent as d, computed as u, openBlock as p, createBlock as f, unref as e, withCtx as b, createVNode as v } from "vue";
2
- import { r as x, a as C, L as h } from "./index-1mTLieVA.js";
3
- import { N as y } from "./NumberInput-84bJjfB4.js";
4
- const N = /* @__PURE__ */ d({
5
- __name: "NumberControlBase",
6
- props: {
7
- ...x(),
8
- type: {
9
- type: String,
10
- required: !1,
11
- default: "double"
12
- }
13
- },
14
- setup(m) {
15
- const r = m, { control: o, onChange: a, disabled: i } = C({ props: r }), t = u(() => o.value.schema.minimum), n = u(() => o.value.schema.maximum), s = () => {
16
- const l = o.value.data;
17
- typeof t.value == "number" && l < t.value ? a(t.value) : typeof n.value == "number" && l > n.value && a(n.value);
18
- };
19
- return (l, _) => (p(), f(h, {
20
- control: e(o),
21
- onControllingFlowVariableSet: e(a)
22
- }, {
23
- default: b(({ labelForId: c }) => [
24
- v(e(y), {
25
- id: c ?? void 0,
26
- class: "number-input",
27
- disabled: e(i),
28
- "model-value": e(o).data,
29
- type: m.type,
30
- min: e(o).schema.minimum,
31
- max: e(o).schema.maximum,
32
- compact: "",
33
- "onUpdate:modelValue": e(a),
34
- onFocusout: s
35
- }, null, 8, ["id", "disabled", "model-value", "type", "min", "max", "onUpdate:modelValue"])
36
- ]),
37
- _: 1
38
- }, 8, ["control", "onControllingFlowVariableSet"]));
39
- }
40
- });
41
- export {
42
- N as _
43
- };
@@ -1,15 +0,0 @@
1
- import { defineComponent as i, openBlock as c, createBlock as m, mergeProps as l, unref as f } from "vue";
2
- import { r as u, j as _, o as d } from "./index-1mTLieVA.js";
3
- import { _ as O } from "./DropdownControl.vue_vue_type_script_setup_true_lang-BRWvAXuk.js";
4
- const k = /* @__PURE__ */ i({
5
- __name: "OneOfDropdown",
6
- props: u(),
7
- setup(r) {
8
- var o, n;
9
- const e = r, { control: t } = _(e), p = ((n = (o = t.value.schema) == null ? void 0 : o.oneOf) == null ? void 0 : n.map(d)) ?? [], a = Promise.resolve(p);
10
- return (s, h) => (c(), m(O, l({ ...s.$attrs, ...s.$props }, { "async-initial-options": f(a) }), null, 16, ["async-initial-options"]));
11
- }
12
- });
13
- export {
14
- k as default
15
- };
@@ -1,13 +0,0 @@
1
- import { defineComponent as o, openBlock as e, createBlock as p, mergeProps as n } from "vue";
2
- import { r as t } from "./index-1mTLieVA.js";
3
- import { _ as s } from "./RadioControlBase.vue_vue_type_script_setup_true_lang-DvA87Y4C.js";
4
- const f = /* @__PURE__ */ o({
5
- __name: "RadioControl",
6
- props: t(),
7
- setup(a) {
8
- return (r, m) => (e(), p(s, n(r.$props, { type: "radio" }), null, 16));
9
- }
10
- });
11
- export {
12
- f as default
13
- };
@@ -1,128 +0,0 @@
1
- import { resolveComponent as h, openBlock as c, createBlock as p, normalizeClass as V, defineComponent as y, computed as d, ref as C, onMounted as S, unref as u, withCtx as w, resolveDynamicComponent as R, createCommentVNode as k } from "vue";
2
- import { _ as x, r as O, a as z, o as L, L as U } from "./index-1mTLieVA.js";
3
- import { B as D, V as F } from "./ValueSwitch-DXmeJXda.js";
4
- const M = {
5
- name: "RadioButtons",
6
- components: {
7
- BaseRadioButtons: D
8
- },
9
- props: {
10
- // these props are passed to BaseRadioButtons
11
- id: {
12
- type: String,
13
- default: null
14
- },
15
- modelValue: {
16
- type: String,
17
- default: ""
18
- },
19
- disabled: {
20
- default: !1,
21
- type: Boolean
22
- },
23
- /**
24
- * List of possible values. Each item must have an `id` and a `text` property
25
- * @example
26
- * [{
27
- * id: 'pdf',
28
- * text: 'PDF'
29
- * }, {
30
- * id: 'XLS',
31
- * text: 'Excel',
32
- * }]
33
- */
34
- possibleValues: {
35
- type: Array,
36
- default: () => []
37
- },
38
- // additional props
39
- alignment: {
40
- type: String,
41
- default: "horizontal",
42
- validator(o) {
43
- return ["horizontal", "vertical"].includes(o);
44
- }
45
- }
46
- },
47
- emits: ["update:modelValue"],
48
- methods: {
49
- hasSelection() {
50
- return this.$refs.radioButton.$refs.input.some((o) => o.checked);
51
- }
52
- }
53
- };
54
- function $(o, a, t, l, b, f) {
55
- const r = h("BaseRadioButtons");
56
- return c(), p(r, {
57
- id: t.id,
58
- ref: "radioButton",
59
- "possible-values": t.possibleValues,
60
- "model-value": t.modelValue,
61
- disabled: t.disabled,
62
- class: V(["radio-buttons", t.alignment, { disabled: t.disabled }]),
63
- "onUpdate:modelValue": a[0] || (a[0] = (m) => o.$emit("update:modelValue", m))
64
- }, null, 8, ["id", "possible-values", "model-value", "disabled", "class"]);
65
- }
66
- const v = /* @__PURE__ */ x(M, [["render", $], ["__scopeId", "data-v-e428929b"]]), q = 0, A = -10, j = /* @__PURE__ */ y({
67
- __name: "RadioControlBase",
68
- props: {
69
- ...O(),
70
- type: {
71
- type: String,
72
- required: !0,
73
- default: "radio"
74
- }
75
- },
76
- setup(o) {
77
- const a = o, { onChange: t, control: l, disabled: b } = z({ props: a }), f = d(() => {
78
- var e;
79
- return (e = l.value.uischema.options) == null ? void 0 : e.radioLayout;
80
- }), r = d(
81
- () => {
82
- var e;
83
- return ((e = l.value.uischema.options) == null ? void 0 : e.disabledOptions) ?? [];
84
- }
85
- ), m = (e) => r.value.includes(e.id) ? { ...e, disabled: !0 } : e, g = d(() => {
86
- switch (a.type) {
87
- case "valueSwitch":
88
- return F;
89
- case "radio":
90
- return v;
91
- default:
92
- return v;
93
- }
94
- }), i = C(null);
95
- S(() => {
96
- var e, n, s;
97
- i.value = (s = (n = (e = l.value) == null ? void 0 : e.schema) == null ? void 0 : n.oneOf) == null ? void 0 : s.map(L).map(m);
98
- });
99
- const B = (e) => {
100
- var n;
101
- (n = i.value) != null && n.filter(({ id: s }) => e === s).length && t(e);
102
- }, _ = d(
103
- () => a.type === "valueSwitch" ? q : A
104
- );
105
- return (e, n) => (c(), p(U, {
106
- control: u(l),
107
- "margin-bottom": _.value,
108
- onControllingFlowVariableSet: B
109
- }, {
110
- default: w(({ labelForId: s }) => [
111
- i.value ? (c(), p(R(g.value), {
112
- key: 0,
113
- id: s,
114
- "possible-values": i.value,
115
- alignment: f.value,
116
- disabled: u(b),
117
- "model-value": u(l).data,
118
- compact: "",
119
- "onUpdate:modelValue": u(t)
120
- }, null, 8, ["id", "possible-values", "alignment", "disabled", "model-value", "onUpdate:modelValue"])) : k("", !0)
121
- ]),
122
- _: 1
123
- }, 8, ["control", "margin-bottom"]));
124
- }
125
- });
126
- export {
127
- j as _
128
- };
@@ -1,54 +0,0 @@
1
- import { ref as i, openBlock as r, createBlock as n, unref as e, withCtx as c, createElementVNode as l, createTextVNode as d, toDisplayString as h, createCommentVNode as v, createVNode as f } from "vue";
2
- import { _ as y, r as _, u as L, D as V, s as b } from "./index-1mTLieVA.js";
3
- import { L as x } from "./LayoutComponentWrapper-VvzxL4qE.js";
4
- import { V as $ } from "./VerticalLayoutBase-CI2PQj0c.js";
5
- const k = { class: "section-header" }, N = {
6
- __name: "SectionLayout",
7
- props: _(),
8
- setup(u) {
9
- const m = u, { layout: t } = L(m), s = i(!1);
10
- return (B, o) => (r(), n(x, {
11
- layout: e(t),
12
- class: "layout-component-wrapper"
13
- }, {
14
- default: c(() => [
15
- l("div", {
16
- class: "section",
17
- onMouseover: o[0] || (o[0] = (a) => s.value = !0),
18
- onMouseleave: o[1] || (o[1] = (a) => s.value = !1)
19
- }, [
20
- l("div", k, [
21
- l("h3", null, [
22
- d(h(e(t).uischema.label) + " ", 1),
23
- e(t).uischema.description ? (r(), n(V, {
24
- key: 0,
25
- html: e(t).uischema.description,
26
- hover: s.value
27
- }, null, 8, ["html", "hover"])) : v("", !0)
28
- ])
29
- ]),
30
- f($, {
31
- elements: e(t).uischema.elements
32
- }, {
33
- default: c(({ element: a, index: p }) => [
34
- (r(), n(e(b), {
35
- key: `${e(t).path}-${p}`,
36
- schema: e(t).schema,
37
- uischema: a,
38
- path: e(t).path,
39
- enabled: e(t).enabled,
40
- renderers: e(t).renderers,
41
- cells: e(t).cells
42
- }, null, 8, ["schema", "uischema", "path", "enabled", "renderers", "cells"]))
43
- ]),
44
- _: 1
45
- }, 8, ["elements"])
46
- ], 32)
47
- ]),
48
- _: 1
49
- }, 8, ["layout"]));
50
- }
51
- }, M = /* @__PURE__ */ y(N, [["__scopeId", "data-v-b39e7dda"]]);
52
- export {
53
- M as default
54
- };
@@ -1,59 +0,0 @@
1
- import { defineComponent as m, openBlock as n, createBlock as r, resolveDynamicComponent as b, computed as l, ref as C, unref as o, withCtx as u, createElementVNode as h, createVNode as B, createCommentVNode as d, createTextVNode as D, toDisplayString as k } from "vue";
2
- import { aA as x, r as y, j as I, q as N, l as V, B as S, D as $, _ as j } from "./index-1mTLieVA.js";
3
- const w = /* @__PURE__ */ m({
4
- __name: "DynamicIcon",
5
- props: {
6
- icon: {}
7
- },
8
- setup(c) {
9
- const s = {
10
- reload: x
11
- };
12
- return (e, i) => (n(), r(b(s[e.icon])));
13
- }
14
- }), M = /* @__PURE__ */ m({
15
- __name: "SimpleButtonControl",
16
- props: y(),
17
- setup(c) {
18
- const s = c, { control: e } = I(s), i = l(() => !e.value.enabled), v = l(() => e.value.uischema.options.triggerId), p = l(
19
- () => e.value.uischema.options.icon
20
- ), _ = N("trigger"), f = () => {
21
- _({ id: v.value });
22
- }, a = C(!1);
23
- return (P, t) => (n(), r(V, { control: o(e) }, {
24
- default: u(() => [
25
- h("div", {
26
- class: "simple-button-input",
27
- onMouseover: t[0] || (t[0] = (g) => a.value = !0),
28
- onMouseleave: t[1] || (t[1] = (g) => a.value = !1)
29
- }, [
30
- B(o(S), {
31
- compact: "",
32
- "with-border": "",
33
- disabled: i.value,
34
- class: "button-input",
35
- onClick: f
36
- }, {
37
- default: u(() => [
38
- p.value ? (n(), r(w, {
39
- key: 0,
40
- icon: p.value
41
- }, null, 8, ["icon"])) : d("", !0),
42
- D(k(o(e).label), 1)
43
- ]),
44
- _: 1
45
- }, 8, ["disabled"]),
46
- o(e).description ? (n(), r($, {
47
- key: 0,
48
- html: o(e).description,
49
- hover: a.value
50
- }, null, 8, ["html", "hover"])) : d("", !0)
51
- ], 32)
52
- ]),
53
- _: 1
54
- }, 8, ["control"]));
55
- }
56
- }), A = /* @__PURE__ */ j(M, [["__scopeId", "data-v-b6830e47"]]);
57
- export {
58
- A as default
59
- };
@@ -1,68 +0,0 @@
1
- import { defineComponent as p, computed as f, markRaw as m, openBlock as b, createBlock as h, unref as e, withCtx as w, createVNode as v } from "vue";
2
- import { r as g, a as S, q as L, p as C, L as V, _ as y } from "./index-1mTLieVA.js";
3
- import { T as P, a as T } from "./TwinlistLoadingInfo-DHKwC-WM.js";
4
- const _ = /* @__PURE__ */ p({
5
- __name: "SimpleTwinlistControl",
6
- props: {
7
- ...g(),
8
- twinlistSize: {
9
- type: Number,
10
- required: !1,
11
- default: 10
12
- },
13
- twinlistLeftLabel: {
14
- type: String,
15
- required: !1,
16
- default: "Excludes"
17
- },
18
- twinlistRightLabel: {
19
- type: String,
20
- required: !1,
21
- default: "Includes"
22
- },
23
- optionsGenerator: {
24
- type: Function,
25
- required: !1,
26
- default: null
27
- }
28
- },
29
- setup(a) {
30
- const i = a, { control: l, onChange: n, disabled: r } = S({ props: i }), u = L("getPossibleValuesFromUiSchema"), s = f(
31
- () => {
32
- var o;
33
- return (o = l.value.uischema.options) == null ? void 0 : o.choicesProvider;
34
- }
35
- ), t = C(
36
- s,
37
- null
38
- ), d = m(P);
39
- return s.value || (i.optionsGenerator === null ? u(l.value).then((o) => {
40
- t.value = o;
41
- }) : t.value = i.optionsGenerator(l.value)), (o, q) => (b(), h(V, {
42
- control: e(l),
43
- onControllingFlowVariableSet: e(n)
44
- }, {
45
- default: w(({ labelForId: c }) => [
46
- v(e(T), {
47
- id: c,
48
- disabled: e(r),
49
- "model-value": e(l).data,
50
- "possible-values": e(t) ?? [],
51
- "empty-state-component": e(t) === null ? e(d) : null,
52
- "hide-options": e(t) === null,
53
- size: a.twinlistSize,
54
- "left-label": a.twinlistLeftLabel,
55
- "right-label": a.twinlistRightLabel,
56
- compact: "",
57
- "show-resize-handle": "",
58
- "filter-chosen-values-on-possible-values-change": !1,
59
- "onUpdate:modelValue": e(n)
60
- }, null, 8, ["id", "disabled", "model-value", "possible-values", "empty-state-component", "hide-options", "size", "left-label", "right-label", "onUpdate:modelValue"])
61
- ]),
62
- _: 1
63
- }, 8, ["control", "onControllingFlowVariableSet"]));
64
- }
65
- }), I = /* @__PURE__ */ y(_, [["__scopeId", "data-v-af10dfc3"]]);
66
- export {
67
- I as default
68
- };