@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
@@ -0,0 +1,43 @@
1
+ import { defineComponent as n, ref as u, openBlock as s, createElementBlock as i, createElementVNode as l, createTextVNode as c, toDisplayString as m, renderSlot as d, createVNode as p, withCtx as h, createBlock as y, unref as v } from "vue";
2
+ import { r as f, _ as b } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js";
3
+ import { V as $ } from "./VerticalLayoutBase-D-NdtOho.js";
4
+ const V = { class: "section-header" }, k = /* @__PURE__ */ n({
5
+ __name: "SectionLayout",
6
+ props: {
7
+ layout: {}
8
+ },
9
+ setup(B) {
10
+ const o = u(!1);
11
+ return (e, t) => (s(), i("div", {
12
+ class: "section",
13
+ onMouseover: t[0] || (t[0] = (a) => o.value = !0),
14
+ onMouseleave: t[1] || (t[1] = (a) => o.value = !1)
15
+ }, [
16
+ l("div", V, [
17
+ l("h3", null, [
18
+ c(m(e.layout.uischema.label) + " ", 1),
19
+ d(e.$slots, "buttons", { hover: o.value }, void 0, !0)
20
+ ])
21
+ ]),
22
+ p($, {
23
+ elements: e.layout.uischema.elements
24
+ }, {
25
+ default: h(({ element: a, index: r }) => [
26
+ (s(), y(v(f), {
27
+ key: `${e.layout.path}-${r}`,
28
+ schema: e.layout.schema,
29
+ uischema: a,
30
+ path: e.layout.path,
31
+ enabled: e.layout.enabled,
32
+ renderers: e.layout.renderers,
33
+ cells: e.layout.cells
34
+ }, null, 8, ["schema", "uischema", "path", "enabled", "renderers", "cells"]))
35
+ ]),
36
+ _: 1
37
+ }, 8, ["elements"])
38
+ ], 32));
39
+ }
40
+ }), _ = /* @__PURE__ */ b(k, [["__scopeId", "data-v-3cb1c817"]]);
41
+ export {
42
+ _ as default
43
+ };
@@ -0,0 +1,58 @@
1
+ import { defineComponent as u, openBlock as l, createBlock as p, resolveDynamicComponent as f, computed as r, ref as _, createElementBlock as b, createVNode as g, unref as B, withCtx as C, createCommentVNode as h, createTextVNode as y, toDisplayString as I, renderSlot as k } from "vue";
2
+ import { q as S, _ as V } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js";
3
+ import { R as $ } from "./reload-BhzcZRFp.js";
4
+ import { B as x } from "./Button-Bc51Uur8.js";
5
+ const D = /* @__PURE__ */ u({
6
+ __name: "DynamicIcon",
7
+ props: {
8
+ icon: {}
9
+ },
10
+ setup(s) {
11
+ const o = {
12
+ reload: $
13
+ };
14
+ return (t, a) => (l(), p(f(o[t.icon])));
15
+ }
16
+ }), F = /* @__PURE__ */ u({
17
+ __name: "SimpleButtonControl",
18
+ props: {
19
+ control: {},
20
+ handleChange: { type: Function },
21
+ changeValue: { type: Function },
22
+ disabled: { type: Boolean },
23
+ labelForId: {}
24
+ },
25
+ setup(s) {
26
+ const o = s, t = r(() => !o.control.enabled), a = r(() => o.control.uischema.options.triggerId), c = r(
27
+ () => o.control.uischema.options.icon
28
+ ), d = S("trigger"), m = () => {
29
+ d({ id: a.value });
30
+ }, n = _(!1);
31
+ return (i, e) => (l(), b("div", {
32
+ class: "simple-button-input",
33
+ onMouseover: e[0] || (e[0] = (v) => n.value = !0),
34
+ onMouseleave: e[1] || (e[1] = (v) => n.value = !1)
35
+ }, [
36
+ g(B(x), {
37
+ compact: "",
38
+ "with-border": "",
39
+ disabled: t.value,
40
+ class: "button-input",
41
+ onClick: m
42
+ }, {
43
+ default: C(() => [
44
+ c.value ? (l(), p(D, {
45
+ key: 0,
46
+ icon: c.value
47
+ }, null, 8, ["icon"])) : h("", !0),
48
+ y(I(i.control.label), 1)
49
+ ]),
50
+ _: 1
51
+ }, 8, ["disabled"]),
52
+ k(i.$slots, "buttons", { hover: n.value }, void 0, !0)
53
+ ], 32));
54
+ }
55
+ }), j = /* @__PURE__ */ V(F, [["__scopeId", "data-v-71d12dcd"]]);
56
+ export {
57
+ j as default
58
+ };
@@ -0,0 +1,48 @@
1
+ import { defineComponent as r, computed as d, markRaw as u, openBlock as p, createBlock as c, unref as t } from "vue";
2
+ import { q as m, u as f, _ as b } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js";
3
+ import { a as h, T as w } from "./TwinlistLoadingInfo-CTVlN9EZ.js";
4
+ const v = /* @__PURE__ */ r({
5
+ __name: "SimpleTwinlistControl",
6
+ props: {
7
+ control: {},
8
+ handleChange: {},
9
+ changeValue: {},
10
+ disabled: { type: Boolean },
11
+ labelForId: {},
12
+ twinlistSize: { default: 10 },
13
+ twinlistLeftLabel: { default: "Excludes" },
14
+ twinlistRightLabel: { default: "Includes" },
15
+ optionsGenerator: { type: [null, Function], default: null }
16
+ },
17
+ setup(n) {
18
+ const l = n, s = m("getPossibleValuesFromUiSchema"), a = d(
19
+ () => {
20
+ var e;
21
+ return (e = l.control.uischema.options) == null ? void 0 : e.choicesProvider;
22
+ }
23
+ ), o = f(
24
+ a,
25
+ null
26
+ ), i = u(h);
27
+ return a.value || (l.optionsGenerator === null ? s(l.control).then((e) => {
28
+ o.value = e;
29
+ }) : o.value = l.optionsGenerator(l.control)), (e, g) => (p(), c(t(w), {
30
+ id: e.labelForId,
31
+ disabled: e.disabled,
32
+ "model-value": e.control.data,
33
+ "possible-values": t(o) ?? [],
34
+ "empty-state-component": t(o) === null ? t(i) : null,
35
+ "hide-options": t(o) === null,
36
+ size: e.twinlistSize,
37
+ "left-label": e.twinlistLeftLabel,
38
+ "right-label": e.twinlistRightLabel,
39
+ compact: "",
40
+ "show-resize-handle": "",
41
+ "filter-chosen-values-on-possible-values-change": !1,
42
+ "onUpdate:modelValue": e.changeValue
43
+ }, null, 8, ["id", "disabled", "model-value", "possible-values", "empty-state-component", "hide-options", "size", "left-label", "right-label", "onUpdate:modelValue"]));
44
+ }
45
+ }), I = /* @__PURE__ */ b(v, [["__scopeId", "data-v-6af5893b"]]);
46
+ export {
47
+ I as default
48
+ };
@@ -0,0 +1,356 @@
1
+ import { openBlock as S, createElementBlock as A, createElementVNode as k, defineComponent as Z, computed as V, ref as N, watch as W, Fragment as q, createVNode as d, withKeys as L, withModifiers as $, unref as p, withCtx as h, nextTick as ae, onMounted as re, createTextVNode as F, renderSlot as O, normalizeClass as ie } from "vue";
2
+ import { _ as z, u as ce, q as ue, L as de } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js";
3
+ import { w as me } from "./getPossibleValuesFromUiSchema-BFJtj-id.js";
4
+ import { i as pe } from "./navigator-BYUFe-z3.js";
5
+ import { F as B } from "./FunctionButton-DBec3TQi.js";
6
+ import { M as he } from "./MultiselectListBox-Dv5n9S3f.js";
7
+ import { b as fe } from "./_baseAssignValue-C56BMUo_.js";
8
+ import { b as ve } from "./_baseEach-1sO8_8tT.js";
9
+ import { b as we } from "./_baseIteratee-BgB8cpN8.js";
10
+ import { i as be } from "./toString-C9vll-oa.js";
11
+ import { c as _e } from "./createMissingItem-B00Kg95q.js";
12
+ import { B as T } from "./Button-Bc51Uur8.js";
13
+ const j = {
14
+ ArrowUp: "↑",
15
+ ArrowDown: "↓",
16
+ ArrowLeft: "←",
17
+ ArrowRight: "→",
18
+ Enter: "↵",
19
+ " ": "Space",
20
+ // we use event.key and there space is an actual space not the code "Space"
21
+ CtrlOrCmd: "Ctrl"
22
+ }, ge = {
23
+ Shift: "⇧",
24
+ Delete: "⌫",
25
+ CtrlOrCmd: "⌘",
26
+ Ctrl: "⌃",
27
+ Alt: "⌥",
28
+ Enter: "↩"
29
+ }, Y = (t) => {
30
+ const e = (r) => (i) => r[i] ?? i, s = ((...r) => r.reduce((i, v) => (x) => v(i(x))))(
31
+ e(ge),
32
+ e(j)
33
+ ), l = e(j);
34
+ return pe() ? s(t) : l(t);
35
+ }, G = () => " ", Ve = (t, e = G) => t.map(Y).join(e()), ke = { formatHotkeys: Ve, formatHotkey: Y, getDefaultSeparator: G };
36
+ function xe(t, e, o, s) {
37
+ for (var l = t.length, r = o + -1; ++r < l; )
38
+ if (e(t[r], r, t))
39
+ return r;
40
+ return -1;
41
+ }
42
+ function Se(t) {
43
+ return t !== t;
44
+ }
45
+ function Ae(t, e, o) {
46
+ for (var s = o - 1, l = t.length; ++s < l; )
47
+ if (t[s] === e)
48
+ return s;
49
+ return -1;
50
+ }
51
+ function Ce(t, e, o) {
52
+ return e === e ? Ae(t, e, o) : xe(t, Se, o);
53
+ }
54
+ function Ie(t, e, o, s) {
55
+ for (var l = -1, r = t == null ? 0 : t.length; ++l < r; ) {
56
+ var i = t[l];
57
+ e(s, i, o(i), t);
58
+ }
59
+ return s;
60
+ }
61
+ function ye(t, e, o, s) {
62
+ return ve(t, function(l, r, i) {
63
+ e(s, l, o(l), i);
64
+ }), s;
65
+ }
66
+ function J(t, e) {
67
+ return function(o, s) {
68
+ var l = be(o) ? Ie : ye, r = e ? e() : {};
69
+ return l(o, t, we(s), r);
70
+ };
71
+ }
72
+ function Q(t, e, o) {
73
+ var s = t == null ? 0 : t.length;
74
+ if (!s)
75
+ return -1;
76
+ var l = 0;
77
+ return Ce(t, e, l);
78
+ }
79
+ var Ue = J(function(t, e, o) {
80
+ fe(t, o, e);
81
+ }), Le = J(function(t, e, o) {
82
+ t[o ? 0 : 1].push(e);
83
+ }, function() {
84
+ return [[], []];
85
+ });
86
+ const $e = {
87
+ xmlns: "http://www.w3.org/2000/svg",
88
+ fill: "none",
89
+ stroke: "#000",
90
+ "stroke-linejoin": "round",
91
+ viewBox: "0 0 32 32"
92
+ }, Be = /* @__PURE__ */ k("path", { d: "m27 17.1-11 11-11-11m11 11V3.9" }, null, -1), Me = [
93
+ Be
94
+ ];
95
+ function Ee(t, e) {
96
+ return S(), A("svg", $e, [...Me]);
97
+ }
98
+ const Fe = { render: Ee }, Te = {
99
+ xmlns: "http://www.w3.org/2000/svg",
100
+ fill: "none",
101
+ stroke: "#000",
102
+ viewBox: "0 0 32 32"
103
+ }, Ne = /* @__PURE__ */ k("path", { d: "M23.4 13.4 16 20.8l-7.4-7.4m7.4 7.4V4.5m12.5 23h-25" }, null, -1), Ke = [
104
+ Ne
105
+ ];
106
+ function Pe(t, e) {
107
+ return S(), A("svg", Te, [...Ke]);
108
+ }
109
+ const R = { render: Pe }, De = {
110
+ xmlns: "http://www.w3.org/2000/svg",
111
+ fill: "none",
112
+ stroke: "#000",
113
+ "stroke-linejoin": "round",
114
+ viewBox: "0 0 32 32"
115
+ }, He = /* @__PURE__ */ k("path", { d: "m5 14.9 11-11 11 11m-11-11v24.2" }, null, -1), Oe = [
116
+ He
117
+ ];
118
+ function je(t, e) {
119
+ return S(), A("svg", De, [...Oe]);
120
+ }
121
+ const Re = { render: je }, Ze = { class: "buttons" }, We = /* @__PURE__ */ Z({
122
+ __name: "SortList",
123
+ props: {
124
+ modelValue: {},
125
+ id: {},
126
+ ariaLabel: {},
127
+ disabled: { type: Boolean },
128
+ possibleValues: {}
129
+ },
130
+ emits: ["update:modelValue"],
131
+ setup(t, { emit: e }) {
132
+ const o = t, s = e, l = V(() => Ue(o.possibleValues, "id")), r = V(
133
+ () => o.modelValue.map(
134
+ (n) => l.value[n] ?? _e(n)
135
+ )
136
+ ), i = N([]);
137
+ W(
138
+ () => o.modelValue,
139
+ (n) => {
140
+ const c = new Set(n);
141
+ i.value = i.value.filter((u) => c.has(u));
142
+ }
143
+ );
144
+ const v = V(() => i.value.length === 0), x = (n, c, u) => [
145
+ n.slice(0, c),
146
+ n.slice(c, u),
147
+ n.slice(u)
148
+ ], M = (n) => {
149
+ let c = 0;
150
+ return (u) => n(u, c++);
151
+ }, C = (n, c) => Le(
152
+ n,
153
+ M((u, g) => c(g))
154
+ ), w = N(null), a = (n) => ({ to: c } = {}) => {
155
+ const u = i.value.map((b) => Q(o.modelValue, b)).sort((b, U) => b - U), g = (n === "up" ? c : null) ?? Math.max(u[0] - 1, 0), E = (n === "down" ? c : null) ?? u[u.length - 1] + 1, [X, ee, te] = x(
156
+ o.modelValue,
157
+ g,
158
+ E + 1
159
+ ), oe = new Set(u), [K, P] = C(
160
+ ee,
161
+ (b) => oe.has(b + g)
162
+ ), [ne, le] = n === "up" ? [K, P] : [P, K], se = X.concat(ne, le, te);
163
+ s("update:modelValue", se), ae(() => {
164
+ var b, U, D, H;
165
+ n === "up" ? ((b = w.value) == null || b.scrollUpIntoView(g - 1), (U = w.value) == null || U.setCurrentKeyNavIndex(g)) : ((D = w.value) == null || D.scrollDownIntoView(E + 1), (H = w.value) == null || H.setCurrentKeyNavIndex(E));
166
+ });
167
+ }, m = a("up"), f = a("down"), I = () => m({ to: 0 }), y = () => f({ to: o.modelValue.length }), _ = (n, c) => `${n} (${ke.formatHotkeys(c)})`;
168
+ return (n, c) => (S(), A(q, null, [
169
+ d(he, {
170
+ id: n.id,
171
+ ref_key: "listBox",
172
+ ref: w,
173
+ modelValue: i.value,
174
+ "onUpdate:modelValue": c[0] || (c[0] = (u) => i.value = u),
175
+ "possible-values": r.value,
176
+ ariaLabel: `sortListBox_${n.ariaLabel}`,
177
+ "with-is-empty-state": !0,
178
+ "empty-state-label": "Empty",
179
+ size: 10,
180
+ onKeydown: [
181
+ L($(p(f), ["alt"]), ["down"]),
182
+ L($(p(m), ["alt"]), ["up"]),
183
+ L($(I, ["alt"]), ["home"]),
184
+ L($(y, ["alt"]), ["end"])
185
+ ]
186
+ }, null, 8, ["id", "modelValue", "possible-values", "ariaLabel", "onKeydown"]),
187
+ k("div", Ze, [
188
+ d(B, {
189
+ disabled: v.value,
190
+ title: _("Move to top", ["Alt", "Home"]),
191
+ compact: "",
192
+ onClick: I
193
+ }, {
194
+ default: h(() => [
195
+ d(p(R), { class: "rotated" })
196
+ ]),
197
+ _: 1
198
+ }, 8, ["disabled", "title"]),
199
+ d(B, {
200
+ disabled: v.value,
201
+ title: _("Move to bottom", ["Alt", "End"]),
202
+ compact: "",
203
+ onClick: y
204
+ }, {
205
+ default: h(() => [
206
+ d(p(R))
207
+ ]),
208
+ _: 1
209
+ }, 8, ["disabled", "title"]),
210
+ d(B, {
211
+ disabled: v.value,
212
+ title: _("Move up", ["Alt", "ArrowUp"]),
213
+ compact: "",
214
+ onClick: p(m)
215
+ }, {
216
+ default: h(() => [
217
+ d(p(Re))
218
+ ]),
219
+ _: 1
220
+ }, 8, ["disabled", "title", "onClick"]),
221
+ d(B, {
222
+ disabled: v.value,
223
+ title: _("Move down", ["Alt", "ArrowDown"]),
224
+ compact: "",
225
+ onClick: p(f)
226
+ }, {
227
+ default: h(() => [
228
+ d(p(Fe))
229
+ ]),
230
+ _: 1
231
+ }, 8, ["disabled", "title", "onClick"])
232
+ ])
233
+ ], 64));
234
+ }
235
+ }), qe = /* @__PURE__ */ z(We, [["__scopeId", "data-v-116782be"]]), ze = {
236
+ class: /* @__PURE__ */ ie(["flex", "space-between", "with-padding"])
237
+ }, Ye = { class: "flex" }, Ge = "<any unknown new column>", Je = /* @__PURE__ */ Z({
238
+ __name: "SortListControl",
239
+ props: {
240
+ control: {},
241
+ handleChange: {},
242
+ changeValue: {},
243
+ disabled: { type: Boolean },
244
+ labelForId: {},
245
+ anyUnknownValuesId: { default: Ge },
246
+ anyUnknownValuesText: { default: "Any unknown column" }
247
+ },
248
+ setup(t) {
249
+ const e = t, o = V(() => e.control.data), s = V(
250
+ () => e.control.uischema.options.choicesProvider
251
+ ), l = me(
252
+ ce(
253
+ s,
254
+ []
255
+ ),
256
+ e.control
257
+ ), r = V(
258
+ () => l.value.concat({
259
+ id: e.anyUnknownValuesId,
260
+ text: e.anyUnknownValuesText,
261
+ special: !0
262
+ })
263
+ ), i = (a) => {
264
+ if (o.value.length === 0) {
265
+ C();
266
+ return;
267
+ }
268
+ const m = Q(o.value, e.anyUnknownValuesId);
269
+ if (m === -1)
270
+ throw new Error(
271
+ `SortList data have to contain the value "${e.anyUnknownValuesId}"`
272
+ );
273
+ const f = o.value.slice(0, m + 1), I = o.value.slice(m + 1), y = new Set(o.value), _ = a.map(({ id: n }) => n).filter((n) => !y.has(n));
274
+ _.length > 0 && e.changeValue(f.concat(_, I));
275
+ }, v = ue("getPossibleValuesFromUiSchema");
276
+ re(async () => {
277
+ const a = e.control.uischema.options.possibleValues;
278
+ a ? l.value = a : s.value || (l.value = await v(e.control));
279
+ }), W(() => l.value, i);
280
+ const x = () => {
281
+ e.changeValue(o.value.toSorted((a, m) => a.localeCompare(m)));
282
+ }, M = () => {
283
+ e.changeValue(o.value.toSorted((a, m) => m.localeCompare(a)));
284
+ }, C = () => {
285
+ e.changeValue(r.value.map(({ id: a }) => a));
286
+ }, w = N(null);
287
+ return (a, m) => (S(), A(q, null, [
288
+ k("div", ze, [
289
+ k("div", Ye, [
290
+ d(p(T), {
291
+ "with-border": "",
292
+ compact: "",
293
+ onClick: x
294
+ }, {
295
+ default: h(() => [
296
+ F("A - Z")
297
+ ]),
298
+ _: 1
299
+ }),
300
+ d(p(T), {
301
+ "with-border": "",
302
+ compact: "",
303
+ onClick: M
304
+ }, {
305
+ default: h(() => [
306
+ F("Z - A")
307
+ ]),
308
+ _: 1
309
+ })
310
+ ]),
311
+ d(p(T), {
312
+ "with-border": "",
313
+ compact: "",
314
+ onClick: C
315
+ }, {
316
+ default: h(() => [
317
+ F("Reset all")
318
+ ]),
319
+ _: 1
320
+ })
321
+ ]),
322
+ d(de, {
323
+ label: a.control.label,
324
+ onControllingFlowVariableSet: a.changeValue
325
+ }, {
326
+ default: h(({ labelForId: f }) => [
327
+ d(p(qe), {
328
+ id: f ?? void 0,
329
+ ref_key: "controlElement",
330
+ ref: w,
331
+ "possible-values": r.value,
332
+ "model-value": o.value,
333
+ ariaLabel: a.control.label,
334
+ disabled: a.disabled,
335
+ compact: "",
336
+ "onUpdate:modelValue": a.changeValue
337
+ }, null, 8, ["id", "possible-values", "model-value", "ariaLabel", "disabled", "onUpdate:modelValue"])
338
+ ]),
339
+ icon: h(() => [
340
+ O(a.$slots, "icon", {}, void 0, !0)
341
+ ]),
342
+ buttons: h(({ hover: f }) => [
343
+ O(a.$slots, "buttons", {
344
+ hover: f,
345
+ controlHTMLElement: w.value
346
+ }, void 0, !0)
347
+ ]),
348
+ _: 3
349
+ }, 8, ["label", "onControllingFlowVariableSet"])
350
+ ], 64));
351
+ }
352
+ }), ut = /* @__PURE__ */ z(Je, [["__scopeId", "data-v-69ee9491"]]);
353
+ export {
354
+ Ge as DEFAULT_ANY_UNKNOWN_VALUES_ID,
355
+ ut as default
356
+ };
@@ -0,0 +1,108 @@
1
+ import { openBlock as a, createElementBlock as d, normalizeClass as o, createElementVNode as i, createCommentVNode as c, defineComponent as m, createBlock as p, unref as f } from "vue";
2
+ import { _ as s } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js";
3
+ const _ = {
4
+ name: "TextArea",
5
+ props: {
6
+ modelValue: {
7
+ default: "",
8
+ type: [Number, String]
9
+ },
10
+ id: {
11
+ type: String,
12
+ default: null
13
+ },
14
+ name: {
15
+ type: String,
16
+ default: null
17
+ },
18
+ /**
19
+ * Validity controlled by the parent component to be flexible.
20
+ */
21
+ isValid: {
22
+ default: !0,
23
+ type: Boolean
24
+ },
25
+ cols: {
26
+ default: 12,
27
+ type: Number
28
+ },
29
+ rows: {
30
+ default: 4,
31
+ type: Number
32
+ },
33
+ placeholder: {
34
+ default: null,
35
+ type: String
36
+ },
37
+ inputClasses: {
38
+ default: "",
39
+ type: String
40
+ },
41
+ title: {
42
+ default: null,
43
+ type: String
44
+ },
45
+ disabled: {
46
+ default: !1,
47
+ type: Boolean
48
+ }
49
+ },
50
+ emits: ["update:modelValue"],
51
+ methods: {
52
+ getValue() {
53
+ return this.$refs.input.value;
54
+ },
55
+ onInput() {
56
+ this.$emit("update:modelValue", this.getValue());
57
+ }
58
+ }
59
+ }, b = ["id", "name", "title", "value", "cols", "disabled", "rows", "placeholder"], h = {
60
+ key: 0,
61
+ class: "invalid-marker"
62
+ };
63
+ function y(u, t, e, l, v, n) {
64
+ return a(), d("div", {
65
+ class: o({ disabled: e.disabled })
66
+ }, [
67
+ i("textarea", {
68
+ id: e.id,
69
+ ref: "input",
70
+ name: e.name,
71
+ title: e.title,
72
+ value: e.modelValue,
73
+ class: o(e.inputClasses),
74
+ cols: e.cols,
75
+ disabled: e.disabled,
76
+ rows: e.rows,
77
+ placeholder: e.placeholder,
78
+ onInput: t[0] || (t[0] = (...r) => n.onInput && n.onInput(...r))
79
+ }, null, 42, b),
80
+ e.isValid ? c("", !0) : (a(), d("span", h))
81
+ ], 2);
82
+ }
83
+ const V = /* @__PURE__ */ s(_, [["render", y], ["__scopeId", "data-v-12f15ade"]]), g = /* @__PURE__ */ m({
84
+ __name: "TextAreaControl",
85
+ props: {
86
+ control: {},
87
+ handleChange: { type: Function },
88
+ changeValue: { type: Function },
89
+ disabled: { type: Boolean },
90
+ labelForId: {}
91
+ },
92
+ setup(u) {
93
+ return (t, e) => {
94
+ var l;
95
+ return a(), p(f(V), {
96
+ id: t.labelForId,
97
+ class: "text-area-input",
98
+ "model-value": t.control.data,
99
+ disabled: t.disabled,
100
+ rows: (l = t.control.uischema.options) == null ? void 0 : l.rows,
101
+ "onUpdate:modelValue": t.changeValue
102
+ }, null, 8, ["id", "model-value", "disabled", "rows", "onUpdate:modelValue"]);
103
+ };
104
+ }
105
+ }), w = /* @__PURE__ */ s(g, [["__scopeId", "data-v-ccafa78c"]]);
106
+ export {
107
+ w as default
108
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./TextControl.vue_vue_type_script_setup_true_lang-CYfvYMWm.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,65 @@
1
+ import { defineComponent as k, ref as V, computed as u, openBlock as r, createBlock as s, withCtx as t, unref as l, normalizeProps as g, mergeProps as y, createCommentVNode as p, renderSlot as i } from "vue";
2
+ import { u as v, L as P } from "./VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js";
3
+ import { u as F } from "./useHideOnNull-CCfNP3O7.js";
4
+ import { C as w } from "./Checkbox-BxPISyW3.js";
5
+ import { I as B } from "./InputField-BKH5rtn3.js";
6
+ const S = /* @__PURE__ */ k({
7
+ __name: "TextControl",
8
+ props: {
9
+ control: {},
10
+ handleChange: { type: Function },
11
+ changeValue: { type: Function },
12
+ disabled: { type: Boolean },
13
+ labelForId: {}
14
+ },
15
+ setup(m) {
16
+ var c, d;
17
+ const e = m, h = v(
18
+ (c = e.control.uischema.options) == null ? void 0 : c.placeholderProvider,
19
+ ((d = e.control.uischema.options) == null ? void 0 : d.placeholder) ?? ""
20
+ ), n = V(null), { showCheckbox: b, showControl: f, checkboxProps: C } = F(
21
+ {
22
+ control: u(() => e.control),
23
+ disabled: u(() => e.disabled),
24
+ controlElement: n
25
+ },
26
+ {
27
+ setDefault: () => e.changeValue(""),
28
+ setNull: () => e.changeValue(null)
29
+ }
30
+ );
31
+ return (o, E) => (r(), s(P, {
32
+ label: o.control.label
33
+ }, {
34
+ "before-label": t(() => [
35
+ l(b) ? (r(), s(l(w), g(y({ key: 0 }, l(C))), null, 16)) : p("", !0)
36
+ ]),
37
+ default: t(({ labelForId: a }) => [
38
+ l(f) ? (r(), s(l(B), {
39
+ key: 0,
40
+ id: a,
41
+ ref_key: "controlElement",
42
+ ref: n,
43
+ placeholder: l(h),
44
+ "model-value": o.control.data,
45
+ disabled: o.disabled,
46
+ compact: "",
47
+ "onUpdate:modelValue": o.changeValue
48
+ }, null, 8, ["id", "placeholder", "model-value", "disabled", "onUpdate:modelValue"])) : p("", !0)
49
+ ]),
50
+ icon: t(() => [
51
+ i(o.$slots, "icon")
52
+ ]),
53
+ buttons: t(({ hover: a }) => [
54
+ i(o.$slots, "buttons", {
55
+ hover: a,
56
+ controlHTMLElement: n.value
57
+ })
58
+ ]),
59
+ _: 3
60
+ }, 8, ["label"]));
61
+ }
62
+ });
63
+ export {
64
+ S as _
65
+ };