@knime/jsonforms 1.14.3 → 1.15.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 (200) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/AnyOfTwinlist-BmHETHvW.js +28 -0
  3. package/dist/{Button-BxuGKyL5.js → Button-B9RSLVI2.js} +9 -8
  4. package/dist/CheckboxControl-q88fZSZD.js +58 -0
  5. package/dist/Checkboxes-Bofcg7tl.js +120 -0
  6. package/dist/CheckboxesControl-DY0R1PDD.js +47 -0
  7. package/dist/{ComboBoxControl-Dk02x7sN.js → ComboBoxControl-2r1FWcy-.js} +238 -172
  8. package/dist/DateControl-vnkppn62.js +38 -0
  9. package/dist/DateTimeControl-MkF9G3Xz.js +53 -0
  10. package/dist/DateTimeFormatInput-Ds2VLXw1.js +426 -0
  11. package/dist/DateTimeFormatPickerControl-D3OjZCj7.js +47 -0
  12. package/dist/DateTimeFormatPickerWithTypeControl-DDto-oJk.js +85 -0
  13. package/dist/DateTimeInput-DcwhvMD2.js +11321 -0
  14. package/dist/Dropdown-D49sEHBa.js +663 -0
  15. package/dist/DropdownControl-aeEqC-Yg.js +46 -0
  16. package/dist/HorizontalLayout-D0toQmVl.js +39 -0
  17. package/dist/{InputField-BYxW_-G3.js → InputField-C_aZPs-f.js} +48 -36
  18. package/dist/IntegerControl-DAwniqjW.js +33 -0
  19. package/dist/IntervalControl-Bkuhg0Ga.js +647 -0
  20. package/dist/LoadingDropdown-B9jHjdWV.js +50 -0
  21. package/dist/LoadingIcon-RPBUjTO3.js +23 -0
  22. package/dist/ManualTwinlistControl-DGW-7a2Q.js +90 -0
  23. package/dist/MultiSelectListBoxControl-BYHuC9jL.js +48 -0
  24. package/dist/MultimodeTwinlistControl-oIvgI_FP.js +486 -0
  25. package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-DGKMWtLi.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_bd2eaa56_lang-pnMOUiIt.js} +1 -1
  26. package/dist/{MultiselectListBox-CHvGxAhY.js → MultiselectListBox-CfdPbcn1.js} +105 -86
  27. package/dist/NameFilter-BV68t_P5.js +37 -0
  28. package/dist/NumberControl-Dm01CJW9.js +33 -0
  29. package/dist/NumberControlBase-CN5eTKEm.js +58 -0
  30. package/dist/{NumberInput-DJ38AGiR.js → NumberInput-DWTImcA_.js} +72 -54
  31. package/dist/OneOfDropdown-DuXXP0Qn.js +50 -0
  32. package/dist/RadioControl-X6HLs9F1.js +36 -0
  33. package/dist/RadioControlBase-BGUHTIUl.js +111 -0
  34. package/dist/{RichTextControl-CXY1ULxR.js → RichTextControl-B1mJMs1e.js} +5462 -4668
  35. package/dist/SectionHeading-B6JkPyMh.js +31 -0
  36. package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js +15603 -0
  37. package/dist/SectionLayout-7pXn4OHo.js +61 -0
  38. package/dist/SettingsSubPanel-DToMRoLu.js +48 -0
  39. package/dist/SettingsSubPanelLayout-DnZnghFr.js +83 -0
  40. package/dist/SimpleButtonControl-DOSd92Kq.js +84 -0
  41. package/dist/SimpleTwinlistControl-RBfQTk47.js +31 -0
  42. package/dist/SingleSelectControl-C-GLQD-a.js +73 -0
  43. package/dist/SingleSelectListBoxControl-CDg_1QUT.js +260 -0
  44. package/dist/SortListControl-CWuxKIEb.js +445 -0
  45. package/dist/StyledListItem-NqAG7jSw.js +81 -0
  46. package/dist/TextAreaControl-Dt5ZGrae.js +122 -0
  47. package/dist/TextControl-w9vrCC1T.js +54 -0
  48. package/dist/TimeControl-DiNQSV4K.js +46 -0
  49. package/dist/TwinlistControlBase-CMFEecdr.js +47 -0
  50. package/dist/TwinlistLoadingInfo-Cy6HY-97.js +1080 -0
  51. package/dist/TypedStringFilter-FUF8sqOm.js +32 -0
  52. package/dist/ValueSwitch-Ozmr1YfK.js +162 -0
  53. package/dist/ValueSwitchControl-CdFlHo-2.js +33 -0
  54. package/dist/VerticalLayout-DY8gbasK.js +39 -0
  55. package/dist/VerticalLayoutBase-CpN-KONq.js +32 -0
  56. package/dist/ZonedDateTimeControl-Cg3dAfq5.js +79 -0
  57. package/dist/{_baseEach-cjHvi5iT.js → _baseEach-CWap1NWh.js} +4 -4
  58. package/dist/{_baseIteratee-CIxt0KWU.js → _baseIteratee-D0MXvnuf.js} +27 -27
  59. package/dist/{_getTag-sLUyzSDj.js → _getTag-BvpAzjaz.js} +10 -10
  60. package/dist/{arrow-dropdown-DdgjzLAO.js → arrow-dropdown-eS-nVNCv.js} +9 -3
  61. package/dist/{arrow-next-CIOU5o42.js → arrow-next-BmOStWql.js} +9 -3
  62. package/dist/{close-BuY4mhXV.js → close-0dYG2oDA.js} +9 -3
  63. package/dist/floating-ui.vue-CDo9Kas1.js +1055 -0
  64. package/dist/{hotkeys-kwHHtFKz.js → hotkeys-rxnt4egK.js} +1 -1
  65. package/dist/index-CpKfM262.js +376 -0
  66. package/dist/knime-jsonforms.css +1 -1
  67. package/dist/knime-jsonforms.js +133 -110
  68. package/dist/{localTimeUtils-Dv-1R88J.js → localTimeUtils-CfchSrLG.js} +179 -181
  69. package/dist/magic-string.es-BQ9KnLz-.js +659 -0
  70. package/dist/navigator-e30QQMkl.js +4 -0
  71. package/dist/popper-LGjf7Wza.js +905 -0
  72. package/dist/reload-57Xc2t-6.js +23 -0
  73. package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +26 -22
  74. package/dist/src/higherOrderComponents/control/errorMessage/ErrorLine.vue.d.ts +3 -4
  75. package/dist/src/higherOrderComponents/control/errorMessage/ErrorMessages.vue.d.ts +16 -10
  76. package/dist/src/higherOrderComponents/control/errorMessage/withErrorMessage.d.ts +1 -1
  77. package/dist/src/higherOrderComponents/control/util.d.ts +7 -33
  78. package/dist/src/higherOrderComponents/layout/util.d.ts +1 -17
  79. package/dist/src/layoutComponents/Form.vue.d.ts +12 -4
  80. package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +1 -1
  81. package/dist/src/layoutComponents/SectionLayout.vue.d.ts +13 -5
  82. package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +1 -1
  83. package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +16 -9
  84. package/dist/src/layoutComponents/section/SectionHeading.vue.d.ts +13 -6
  85. package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue.d.ts +2 -2
  86. package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanelBackArrow.vue.d.ts +1 -1
  87. package/dist/src/renderers/dateTimeFormatPickerRenderer.d.ts +2 -2
  88. package/dist/src/renderers/defaultRenderers.d.ts +966 -151
  89. package/dist/src/renderers/dropdownRenderer.d.ts +1 -1
  90. package/dist/src/renderers/fallbackRenderers.d.ts +8 -8
  91. package/dist/src/renderers/horizontalLayoutRenderer.d.ts +1 -1
  92. package/dist/src/renderers/sectionLayoutRenderer.d.ts +4 -4
  93. package/dist/src/renderers/simpleButtonRenderer.d.ts +7 -89
  94. package/dist/src/renderers/sortListRenderer.d.ts +853 -20
  95. package/dist/src/renderers/textMessageRenderer.d.ts +65 -1
  96. package/dist/src/renderers/textRenderer.d.ts +1 -1
  97. package/dist/src/renderers/verticalLayoutRenderer.d.ts +2 -2
  98. package/dist/src/renderers/zonedDateTimeRenderer.d.ts +1 -1
  99. package/dist/src/uiComponents/CheckboxControl.vue.d.ts +15 -6
  100. package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +2 -1
  101. package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +2 -1
  102. package/dist/src/uiComponents/DateControl.vue.d.ts +2 -1
  103. package/dist/src/uiComponents/DateTimeControl.vue.d.ts +2 -1
  104. package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +2 -1
  105. package/dist/src/uiComponents/DateTimeFormatPickerWithTypeControl.vue.d.ts +2 -1
  106. package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -1
  107. package/dist/src/uiComponents/IntegerControl.vue.d.ts +2 -1
  108. package/dist/src/uiComponents/IntervalControl.vue.d.ts +2 -1
  109. package/dist/src/uiComponents/MultiSelectListBoxControl.vue.d.ts +2 -1
  110. package/dist/src/uiComponents/NumberControl.vue.d.ts +2 -1
  111. package/dist/src/uiComponents/NumberControlBase.vue.d.ts +5 -9
  112. package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +2 -1
  113. package/dist/src/uiComponents/RadioControl.vue.d.ts +2 -1
  114. package/dist/src/uiComponents/RadioControlBase.vue.d.ts +4 -8
  115. package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +5 -129
  116. package/dist/src/uiComponents/SingleSelectControl.vue.d.ts +2 -1
  117. package/dist/src/uiComponents/SingleSelectListBoxControl.vue.d.ts +2 -1
  118. package/dist/src/uiComponents/SortListControl.vue.d.ts +845 -12
  119. package/dist/src/uiComponents/TextAreaControl.vue.d.ts +2 -1
  120. package/dist/src/uiComponents/TextControl.vue.d.ts +203 -3
  121. package/dist/src/uiComponents/TextMessageControl.vue.d.ts +2 -1
  122. package/dist/src/uiComponents/TimeControl.vue.d.ts +2 -1
  123. package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +2 -1
  124. package/dist/src/uiComponents/ZonedDateTimeControl.vue.d.ts +2 -1
  125. package/dist/src/uiComponents/composables/useProvidedState.d.ts +1 -1
  126. package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +1 -1
  127. package/dist/src/uiComponents/richTextControl/DialogLinkModal.vue.d.ts +3 -1
  128. package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +230 -1
  129. package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +2 -1
  130. package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +2 -1
  131. package/dist/src/uiComponents/twinlist/MultimodeTwinlistControl.vue.d.ts +8 -15
  132. package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +2 -1
  133. package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -1
  134. package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +5 -10
  135. package/dist/src/uiComponents/twinlist/TypedStringFilter.vue.d.ts +2 -1
  136. package/dist/testUtils/component.d.ts +18 -18
  137. package/dist/testing.js +8688 -8655
  138. package/dist/{toString-C_MqBj3_.js → toString-C-X8cE7K.js} +1 -1
  139. package/dist/{useBuiltinValidations-DP7OS71z.js → useBuiltinValidations-D0WuEacN.js} +1 -1
  140. package/dist/useDropdownNavigation-BfCXUheD.js +817 -0
  141. package/dist/usePossibleValues-DTVXBGRC.js +16 -0
  142. package/package.json +14 -14
  143. package/dist/AnyOfTwinlist-Cwxtyt0Q.js +0 -22
  144. package/dist/CheckboxControl-Oe97HhY3.js +0 -40
  145. package/dist/Checkboxes-DIPjJhPO.js +0 -103
  146. package/dist/CheckboxesControl-5QlPmjwv.js +0 -41
  147. package/dist/DateControl-CddCObVg.js +0 -29
  148. package/dist/DateTimeControl-DyXUJBHE.js +0 -54
  149. package/dist/DateTimeFormatInput-bO1zHUyp.js +0 -381
  150. package/dist/DateTimeFormatPickerControl-Dq25_JV2.js +0 -43
  151. package/dist/DateTimeFormatPickerWithTypeControl-DZib_x-B.js +0 -79
  152. package/dist/DateTimeInput-CEYEV8dt.js +0 -11204
  153. package/dist/Dropdown-CJj0CUA8.js +0 -604
  154. package/dist/DropdownControl-BNQKWzTT.js +0 -31
  155. package/dist/HorizontalLayout-6GwurgkR.js +0 -25
  156. package/dist/IntegerControl-DZIY-wb_.js +0 -20
  157. package/dist/IntervalControl-Yts36_MI.js +0 -546
  158. package/dist/LoadingDropdown-Dw-0WQ8x.js +0 -40
  159. package/dist/ManualTwinlistControl-C3NnAug1.js +0 -85
  160. package/dist/MultiSelectListBoxControl-3Q41S4aA.js +0 -34
  161. package/dist/MultimodeTwinlistControl-B2Jven29.js +0 -470
  162. package/dist/NameFilter-D0hKO5Fr.js +0 -24
  163. package/dist/NumberControl-DkeQT1iR.js +0 -20
  164. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-B9K5qEs3.js +0 -53
  165. package/dist/OneOfDropdown-NAgE-mPP.js +0 -34
  166. package/dist/RadioControl-DjrysNQ_.js +0 -24
  167. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-WaVJMdQq.js +0 -114
  168. package/dist/SectionHeading-BU1W5lDr.js +0 -19
  169. package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js +0 -14015
  170. package/dist/SectionLayout-CJP4sYyB.js +0 -46
  171. package/dist/SettingsSubPanel-KxEyzlB6.js +0 -5
  172. package/dist/SettingsSubPanelLayout-YBNVPQOD.js +0 -61
  173. package/dist/SimpleButtonControl-ejyUwJdL.js +0 -61
  174. package/dist/SimpleTwinlistControl-qXQxRI7h.js +0 -28
  175. package/dist/SingleSelectControl-B0JgDv7j.js +0 -58
  176. package/dist/SingleSelectListBoxControl-ClQOxnxW.js +0 -235
  177. package/dist/SortListControl-mvJofiWn.js +0 -375
  178. package/dist/StyledListItem-BXz08pEQ.js +0 -72
  179. package/dist/TextAreaControl-S4aoqAv1.js +0 -111
  180. package/dist/TextControl-rJrjrBw8.js +0 -4
  181. package/dist/TextControl.vue_vue_type_script_setup_true_lang-Bf6GB1zX.js +0 -50
  182. package/dist/TimeControl-DfhE8yu9.js +0 -42
  183. package/dist/TwinlistControlBase-D1l9t7Up.js +0 -40
  184. package/dist/TwinlistLoadingInfo-CQRx9cEu.js +0 -963
  185. package/dist/TypedStringFilter-C6JhWCCC.js +0 -29
  186. package/dist/ValueSwitch-CUYV7v67.js +0 -131
  187. package/dist/ValueSwitchControl-IP9SxrUs.js +0 -20
  188. package/dist/VerticalLayout-D2eQSYgv.js +0 -30
  189. package/dist/VerticalLayoutBase-DRfHwc4t.js +0 -20
  190. package/dist/ZonedDateTimeControl-Bi8cV34A.js +0 -75
  191. package/dist/floating-ui.vue-B-MrqKCT.js +0 -1019
  192. package/dist/index-CoRworrE.js +0 -322
  193. package/dist/magic-string.es-D-aKzDFf.js +0 -858
  194. package/dist/navigator-D_R-txCf.js +0 -7
  195. package/dist/popper-CRR--9mA.js +0 -907
  196. package/dist/reload-BVbCGubF.js +0 -17
  197. package/dist/src/JsonFormsDialog.vue.d.ts +0 -46
  198. package/dist/svgWithTitle-Cr3Pu3wr.js +0 -18
  199. package/dist/useDropdownNavigation-7o7SRJSo.js +0 -781
  200. package/dist/usePossibleValues-lz0Rcu_N.js +0 -20
@@ -0,0 +1,61 @@
1
+ import { defineComponent as i, ref as u, createElementBlock as m, openBlock as n, createVNode as s, withCtx as l, renderSlot as d, createBlock as _ } from "vue";
2
+ import { x as f, _ as h } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
3
+ import { V as y } from "./VerticalLayoutBase-CpN-KONq.js";
4
+ import { S as v } from "./SectionHeading-B6JkPyMh.js";
5
+ const p = /* @__PURE__ */ i({
6
+ __name: "SectionLayout",
7
+ props: {
8
+ layout: { type: Object, required: !0 }
9
+ },
10
+ setup(r, { expose: o }) {
11
+ o();
12
+ const t = { hover: u(!1), get DispatchRenderer() {
13
+ return f;
14
+ }, VerticalLayoutBase: y, SectionHeading: v };
15
+ return Object.defineProperty(t, "__isScriptSetup", { enumerable: !1, value: !0 }), t;
16
+ }
17
+ });
18
+ function b(r, o, e, t, S, x) {
19
+ return n(), m(
20
+ "div",
21
+ {
22
+ class: "section",
23
+ onMouseover: o[0] || (o[0] = (a) => t.hover = !0),
24
+ onMouseleave: o[1] || (o[1] = (a) => t.hover = !1)
25
+ },
26
+ [
27
+ s(t.SectionHeading, {
28
+ "title-text": e.layout.uischema.label
29
+ }, {
30
+ "right-buttons": l(() => [
31
+ d(r.$slots, "buttons", { hover: t.hover }, void 0, !0)
32
+ ]),
33
+ _: 3
34
+ /* FORWARDED */
35
+ }, 8, ["title-text"]),
36
+ s(t.VerticalLayoutBase, {
37
+ elements: e.layout.uischema.elements
38
+ }, {
39
+ default: l(({ element: a, index: c }) => [
40
+ (n(), _(t.DispatchRenderer, {
41
+ key: `${e.layout.path}-${c}`,
42
+ schema: e.layout.schema,
43
+ uischema: a,
44
+ path: e.layout.path,
45
+ enabled: e.layout.enabled,
46
+ renderers: e.layout.renderers,
47
+ cells: e.layout.cells
48
+ }, null, 8, ["schema", "uischema", "path", "enabled", "renderers", "cells"]))
49
+ ]),
50
+ _: 1
51
+ /* STABLE */
52
+ }, 8, ["elements"])
53
+ ],
54
+ 32
55
+ /* NEED_HYDRATION */
56
+ );
57
+ }
58
+ const V = /* @__PURE__ */ h(p, [["render", b], ["__scopeId", "data-v-431a74f8"], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/layoutComponents/SectionLayout.vue"]]);
59
+ export {
60
+ V as default
61
+ };
@@ -0,0 +1,48 @@
1
+ import { _ as i, z as l } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
2
+ import { createElementBlock as m, openBlock as o, Fragment as _, renderSlot as s, createBlock as r, Teleport as f, createVNode as a, withCtx as d, createElementVNode as n, createCommentVNode as u } from "vue";
3
+ const v = { class: "side-drawer-content" }, p = { class: "main-content" }, S = { class: "bottom-content" };
4
+ function b(t, k, c, e, w, g) {
5
+ return o(), m(
6
+ _,
7
+ null,
8
+ [
9
+ s(t.$slots, "expand-button", { expand: e.expand }, void 0, !0),
10
+ (o(), r(f, { to: e.subSettingsPanels }, [
11
+ a(e.SideDrawer, {
12
+ "is-expanded": e.isExpanded,
13
+ class: "side-drawer",
14
+ "style-overrides": e.styleOverrides
15
+ }, {
16
+ default: d(() => [
17
+ n("div", v, [
18
+ c.showBackArrow ? (o(), r(e.SidePanelBackArrow, {
19
+ key: 0,
20
+ onClick: e.close
21
+ })) : u("v-if", !0),
22
+ n("div", p, [
23
+ a(e.Form, null, {
24
+ default: d(() => [
25
+ s(t.$slots, "default", {}, void 0, !0)
26
+ ]),
27
+ _: 3
28
+ /* FORWARDED */
29
+ })
30
+ ]),
31
+ n("div", S, [
32
+ s(t.$slots, "bottom-content", {}, void 0, !0)
33
+ ])
34
+ ])
35
+ ]),
36
+ _: 3
37
+ /* FORWARDED */
38
+ }, 8, ["is-expanded", "style-overrides"])
39
+ ], 8, ["to"]))
40
+ ],
41
+ 64
42
+ /* STABLE_FRAGMENT */
43
+ );
44
+ }
45
+ const y = /* @__PURE__ */ i(l, [["render", b], ["__scopeId", "data-v-17982657"], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue"]]);
46
+ export {
47
+ y as S
48
+ };
@@ -0,0 +1,83 @@
1
+ import { defineComponent as i, createBlock as l, openBlock as c, withCtx as a, createVNode as o, createElementVNode as m } from "vue";
2
+ import { v as d, x as _, _ as b } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
3
+ import { N as f } from "./arrow-next-BmOStWql.js";
4
+ import { V as y } from "./VerticalLayoutBase-CpN-KONq.js";
5
+ import { S as h } from "./SectionHeading-B6JkPyMh.js";
6
+ import { S as p } from "./SettingsSubPanel-DToMRoLu.js";
7
+ const S = /* @__PURE__ */ i({
8
+ __name: "SettingsSubPanelLayout",
9
+ props: {
10
+ layout: { type: Object, required: !0 }
11
+ },
12
+ setup(u, { expose: n }) {
13
+ n();
14
+ const e = { get DispatchRenderer() {
15
+ return _;
16
+ }, get FunctionButton() {
17
+ return d;
18
+ }, get NextIcon() {
19
+ return f;
20
+ }, VerticalLayoutBase: y, SectionHeading: h, SettingsSubPanel: p };
21
+ return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
22
+ }
23
+ });
24
+ function g(u, n, e, t, x, k) {
25
+ return c(), l(t.SettingsSubPanel, {
26
+ "show-back-arrow": "",
27
+ "background-color-override": "var(--knime-gray-ultra-light"
28
+ }, {
29
+ "expand-button": a(({ expand: r }) => [
30
+ o(t.SectionHeading, {
31
+ "title-text": e.layout.uischema.label
32
+ }, {
33
+ "right-buttons": a(() => [
34
+ o(t.FunctionButton, {
35
+ compact: "",
36
+ class: "set-button",
37
+ onClick: r
38
+ }, {
39
+ default: a(() => [
40
+ n[0] || (n[0] = m(
41
+ "span",
42
+ null,
43
+ "Set",
44
+ -1
45
+ /* CACHED */
46
+ )),
47
+ o(t.NextIcon)
48
+ ]),
49
+ _: 2,
50
+ __: [0]
51
+ }, 1032, ["onClick"])
52
+ ]),
53
+ _: 2
54
+ /* DYNAMIC */
55
+ }, 1032, ["title-text"])
56
+ ]),
57
+ default: a(() => [
58
+ o(t.VerticalLayoutBase, {
59
+ elements: e.layout.uischema.elements
60
+ }, {
61
+ default: a(({ element: r, index: s }) => [
62
+ (c(), l(t.DispatchRenderer, {
63
+ key: `${e.layout.path}-${s}`,
64
+ schema: e.layout.schema,
65
+ uischema: r,
66
+ path: e.layout.path,
67
+ enabled: e.layout.enabled,
68
+ renderers: e.layout.renderers,
69
+ cells: e.layout.cells
70
+ }, null, 8, ["schema", "uischema", "path", "enabled", "renderers", "cells"]))
71
+ ]),
72
+ _: 1
73
+ /* STABLE */
74
+ }, 8, ["elements"])
75
+ ]),
76
+ _: 1
77
+ /* STABLE */
78
+ });
79
+ }
80
+ const L = /* @__PURE__ */ b(S, [["render", g], ["__scopeId", "data-v-e666a70c"], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/layoutComponents/SettingsSubPanelLayout.vue"]]);
81
+ export {
82
+ L as default
83
+ };
@@ -0,0 +1,84 @@
1
+ import { defineComponent as u, createBlock as p, openBlock as a, resolveDynamicComponent as f, computed as s, ref as b, createElementBlock as g, createVNode as v, renderSlot as y, withCtx as C, createCommentVNode as h, createTextVNode as B, toDisplayString as I } from "vue";
2
+ import { _ as d, A as S } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
3
+ import { R as k } from "./reload-57Xc2t-6.js";
4
+ import { B as q } from "./Button-B9RSLVI2.js";
5
+ const D = /* @__PURE__ */ u({
6
+ __name: "DynamicIcon",
7
+ props: {
8
+ icon: { type: String, required: !0 }
9
+ },
10
+ setup(n, { expose: o }) {
11
+ o();
12
+ const e = { components: {
13
+ reload: k
14
+ } };
15
+ return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
16
+ }
17
+ });
18
+ function j(n, o, t, e, r, c) {
19
+ return a(), p(f(e.components[t.icon]));
20
+ }
21
+ const x = /* @__PURE__ */ d(D, [["render", j], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/uiComponents/DynamicIcon.vue"]]), V = /* @__PURE__ */ u({
22
+ __name: "SimpleButtonControl",
23
+ props: {
24
+ control: { type: Object, required: !0 },
25
+ handleChange: { type: Function, required: !0 },
26
+ changeValue: { type: Function, required: !0 },
27
+ disabled: { type: Boolean, required: !0 },
28
+ labelForId: { type: null, required: !1 },
29
+ isValid: { type: Boolean, required: !0 },
30
+ messages: { type: Object, required: !0 },
31
+ onRegisterValidation: { type: Function, required: !0 }
32
+ },
33
+ setup(n, { expose: o }) {
34
+ o();
35
+ const t = n, e = s(() => !t.control.enabled), r = s(() => t.control.uischema.options.triggerId), c = s(
36
+ () => t.control.uischema.options.icon
37
+ ), i = S("trigger"), m = () => {
38
+ i({ id: r.value });
39
+ }, _ = b(!1), l = { props: t, disabled: e, triggerId: r, icon: c, trigger: i, onClick: m, hover: _, get Button() {
40
+ return q;
41
+ }, DynamicIcon: x };
42
+ return Object.defineProperty(l, "__isScriptSetup", { enumerable: !1, value: !0 }), l;
43
+ }
44
+ });
45
+ function N(n, o, t, e, r, c) {
46
+ return a(), g(
47
+ "div",
48
+ {
49
+ class: "simple-button-input",
50
+ onMouseover: o[0] || (o[0] = (i) => e.hover = !0),
51
+ onMouseleave: o[1] || (o[1] = (i) => e.hover = !1)
52
+ },
53
+ [
54
+ v(e.Button, {
55
+ compact: "",
56
+ "with-border": "",
57
+ disabled: e.disabled,
58
+ class: "button-input",
59
+ onClick: e.onClick
60
+ }, {
61
+ default: C(() => [
62
+ e.icon ? (a(), p(e.DynamicIcon, {
63
+ key: 0,
64
+ icon: e.icon
65
+ }, null, 8, ["icon"])) : h("v-if", !0),
66
+ B(
67
+ I(t.control.label),
68
+ 1
69
+ /* TEXT */
70
+ )
71
+ ]),
72
+ _: 1
73
+ /* STABLE */
74
+ }, 8, ["disabled"]),
75
+ y(n.$slots, "buttons", { hover: e.hover }, void 0, !0)
76
+ ],
77
+ 32
78
+ /* NEED_HYDRATION */
79
+ );
80
+ }
81
+ const E = /* @__PURE__ */ d(V, [["render", N], ["__scopeId", "data-v-4a2108f2"], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/uiComponents/SimpleButtonControl.vue"]]);
82
+ export {
83
+ E as default
84
+ };
@@ -0,0 +1,31 @@
1
+ import { defineComponent as n, toRef as l, createBlock as p, openBlock as a, mergeProps as u } from "vue";
2
+ import { u as c } from "./usePossibleValues-DTVXBGRC.js";
3
+ import { T as m } from "./TwinlistControlBase-CMFEecdr.js";
4
+ import { _ as d } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
5
+ const _ = /* @__PURE__ */ n({
6
+ __name: "SimpleTwinlistControl",
7
+ props: {
8
+ control: { type: Object, required: !0 },
9
+ handleChange: { type: Function, required: !0 },
10
+ changeValue: { type: Function, required: !0 },
11
+ disabled: { type: Boolean, required: !0 },
12
+ isValid: { type: Boolean, required: !0 },
13
+ onRegisterValidation: { type: Function, required: !0 },
14
+ labelForId: { type: String, required: !0 }
15
+ },
16
+ setup(r, { expose: s }) {
17
+ s();
18
+ const o = r, e = l(o, "control"), { possibleValues: i } = c(e), t = { props: o, control: e, possibleValues: i, TwinlistControlBase: m };
19
+ return Object.defineProperty(t, "__isScriptSetup", { enumerable: !1, value: !0 }), t;
20
+ }
21
+ });
22
+ function f(r, s, o, e, i, t) {
23
+ return a(), p(e.TwinlistControlBase, u(e.props, {
24
+ "possible-values": e.possibleValues,
25
+ "twinlist-size": e.props.control.uischema.options?.twinlistSize
26
+ }), null, 16, ["possible-values", "twinlist-size"]);
27
+ }
28
+ const g = /* @__PURE__ */ d(_, [["render", f], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/uiComponents/twinlist/SimpleTwinlistControl.vue"]]);
29
+ export {
30
+ g as default
31
+ };
@@ -0,0 +1,73 @@
1
+ import { defineComponent as x, computed as d, toRef as I, createElementBlock as w, openBlock as q, Fragment as v, createCommentVNode as F, createVNode as L } from "vue";
2
+ import { u as R } from "./usePossibleValues-DTVXBGRC.js";
3
+ import { L as B } from "./LoadingDropdown-B9jHjdWV.js";
4
+ import { _ as E } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
5
+ const a = "__special__", n = "__regular__", P = /* @__PURE__ */ x({
6
+ __name: "SingleSelectControl",
7
+ props: {
8
+ control: { type: Object, required: !0 },
9
+ handleChange: { type: Function, required: !0 },
10
+ changeValue: { type: Function, required: !0 },
11
+ disabled: { type: Boolean, required: !0 },
12
+ isValid: { type: Boolean, required: !0 },
13
+ onRegisterValidation: { type: Function, required: !0 },
14
+ labelForId: { type: String, required: !0 }
15
+ },
16
+ setup(p, { expose: c }) {
17
+ c();
18
+ const r = p, o = d(
19
+ () => r.control.uischema.options.specialChoices
20
+ ), { possibleValues: l } = R(
21
+ I(r, "control")
22
+ ), s = (e) => `${a}${e}`, t = (e) => `${n}${e}`, h = ({
23
+ id: e,
24
+ text: i
25
+ }) => ({
26
+ id: s(e),
27
+ text: i,
28
+ isSpecial: !0
29
+ }), f = ({
30
+ id: e,
31
+ text: i
32
+ }) => ({
33
+ id: t(e),
34
+ text: i
35
+ }), u = d(() => l.value === null ? null : o.value.map(h).concat(l.value.map(f))), m = (e) => {
36
+ if (!e.startsWith(n) && !e.startsWith(a))
37
+ throw new Error(`Expected id to start with ${n}`);
38
+ }, C = (e) => e ? (m(e), e.startsWith(a) ? { specialChoice: e.slice(a.length) } : { regularChoice: e.slice(n.length) }) : null, _ = (e) => typeof e > "u" || e === null ? "" : "regularChoice" in e && e.regularChoice ? t(e.regularChoice) : "specialChoice" in e && e.specialChoice ? s(e.specialChoice) : "", b = (e) => typeof e > "u" || e === null ? "" : "regularChoice" in e && e.regularChoice ? e.regularChoice : "specialChoice" in e && e.specialChoice ? e.specialChoice : "", y = d({
39
+ get: () => {
40
+ const e = _(r.control.data);
41
+ return u.value && !u.value.some((i) => i.id === e) ? b(r.control.data) : e;
42
+ },
43
+ set: (e) => {
44
+ r.changeValue(C(e));
45
+ }
46
+ }), g = { props: r, specialChoices: o, regularChoices: l, specialPrefix: a, regularPrefix: n, createSpecialId: s, createRegularId: t, createSpecialChoice: h, createRegularChoice: f, allChoices: u, assertIsSingleSelectId: m, toSingleSelectValue: C, toSingleSelectId: _, extractRawValue: b, modelValue: y, LoadingDropdown: B };
47
+ return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
48
+ }
49
+ });
50
+ function S(p, c, r, o, l, s) {
51
+ return q(), w(
52
+ v,
53
+ null,
54
+ [
55
+ F(" eslint-disable vue/attribute-hyphenation typescript complains with ':aria-label' instead of ':ariaLabel'"),
56
+ L(o.LoadingDropdown, {
57
+ id: r.labelForId,
58
+ modelValue: o.modelValue,
59
+ "onUpdate:modelValue": c[0] || (c[0] = (t) => o.modelValue = t),
60
+ "possible-values": o.allChoices,
61
+ ariaLabel: r.control.label,
62
+ disabled: r.disabled,
63
+ compact: ""
64
+ }, null, 8, ["id", "modelValue", "possible-values", "ariaLabel", "disabled"])
65
+ ],
66
+ 2112
67
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
68
+ );
69
+ }
70
+ const W = /* @__PURE__ */ E(P, [["render", S], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/uiComponents/SingleSelectControl.vue"]]);
71
+ export {
72
+ W as default
73
+ };
@@ -0,0 +1,260 @@
1
+ import { resolveComponent as y, createElementBlock as o, openBlock as r, normalizeClass as u, createElementVNode as V, normalizeStyle as c, Fragment as f, renderList as g, createBlock as b, defineComponent as I, toRef as v, createCommentVNode as h } from "vue";
2
+ import { u as _ } from "./usePossibleValues-DTVXBGRC.js";
3
+ import { S } from "./StyledListItem-NqAG7jSw.js";
4
+ import { _ as p, B as C } from "./SectionHeading.vue_vue_type_style_index_0_scoped_f06e9b7d_lang-B5ALSUVO.js";
5
+ const L = 40, B = 38, w = 36, k = 35, H = {
6
+ name: "ListBox",
7
+ components: {
8
+ StyledListItem: S
9
+ },
10
+ props: {
11
+ id: {
12
+ type: String,
13
+ default() {
14
+ return `ListBox-${C()}`;
15
+ }
16
+ },
17
+ modelValue: {
18
+ type: String,
19
+ default: ""
20
+ },
21
+ /**
22
+ * Controls the size of the list. Number of visible items (for others user need to scroll)
23
+ * 0 means all
24
+ */
25
+ size: {
26
+ type: Number,
27
+ default: 0,
28
+ validator(e) {
29
+ return e >= 0;
30
+ }
31
+ },
32
+ isValid: {
33
+ default: !0,
34
+ type: Boolean
35
+ },
36
+ ariaLabel: {
37
+ type: String,
38
+ required: !0
39
+ },
40
+ /**
41
+ * List of possible values. Each item must have an `id` and a `text` property
42
+ * @example
43
+ * [{
44
+ * id: 'pdf',
45
+ * text: 'PDF'
46
+ * }, {
47
+ * id: 'XLS',
48
+ * text: 'Excel',
49
+ * }]
50
+ */
51
+ possibleValues: {
52
+ type: Array,
53
+ default: () => [],
54
+ validator(e) {
55
+ return Array.isArray(e) ? e.every(
56
+ (l) => l.hasOwnProperty("id") && l.hasOwnProperty("text")
57
+ ) : !1;
58
+ }
59
+ },
60
+ disabled: {
61
+ type: Boolean,
62
+ default: !1
63
+ }
64
+ },
65
+ emits: ["update:modelValue"],
66
+ data() {
67
+ return {
68
+ selectedIndex: -1,
69
+ invalidPossibleValueIds: [],
70
+ optionLineHeight: 22
71
+ };
72
+ },
73
+ computed: {
74
+ ulSizeStyle() {
75
+ const e = (l) => `${l * this.optionLineHeight + 2}px`;
76
+ return this.size > 0 ? { height: e(this.size) } : { minHeight: e(2) };
77
+ },
78
+ selectableValues() {
79
+ return [
80
+ ...this.invalidPossibleValueIds.map((e) => this.generateInvalidItem(e)),
81
+ ...this.possibleValues
82
+ ];
83
+ }
84
+ },
85
+ watch: {
86
+ modelValue(e) {
87
+ this.updateSelectedIndexAndInvalidValue(e);
88
+ }
89
+ },
90
+ mounted() {
91
+ this.updateSelectedIndexAndInvalidValue(this.modelValue);
92
+ },
93
+ methods: {
94
+ updateSelectedIndexAndInvalidValue(e) {
95
+ const l = this.selectableValues.findIndex((t) => t.id === e);
96
+ l === -1 && e ? (this.invalidPossibleValueIds.includes(e) || this.invalidPossibleValueIds.push(e), this.selectedIndex = this.selectableValues.findIndex(
97
+ (t) => t.id === e
98
+ )) : this.selectedIndex = l;
99
+ },
100
+ isCurrentValue(e) {
101
+ return this.modelValue === e;
102
+ },
103
+ setSelected(e, l) {
104
+ this.disabled || (consola.trace("ListBox setSelected on", e), this.selectedIndex = l, this.$emit("update:modelValue", e));
105
+ },
106
+ scrollToCurrent() {
107
+ const e = this.$refs.ul;
108
+ if (e.scrollHeight > e.clientHeight) {
109
+ const l = this.$refs.options[this.selectedIndex], t = e.clientHeight + e.scrollTop, n = l.offsetTop + l.offsetHeight;
110
+ n > t ? e.scrollTop = n - e.clientHeight : l.offsetTop < e.scrollTop && (e.scrollTop = l.offsetTop);
111
+ }
112
+ },
113
+ onArrowDown() {
114
+ if (this.disabled)
115
+ return;
116
+ const e = this.selectedIndex + 1;
117
+ e >= this.selectableValues.length || (this.setSelected(this.selectableValues[e].id, e), this.scrollToCurrent());
118
+ },
119
+ onArrowUp() {
120
+ if (this.disabled)
121
+ return;
122
+ const e = this.selectedIndex - 1;
123
+ e < 0 || (this.setSelected(this.selectableValues[e].id, e), this.scrollToCurrent());
124
+ },
125
+ onEndKey() {
126
+ if (this.disabled)
127
+ return;
128
+ const e = this.selectableValues.length - 1;
129
+ this.setSelected(this.selectableValues[e].id, e), this.$refs.ul.scrollTop = this.$refs.ul.scrollHeight;
130
+ },
131
+ onHomeKey() {
132
+ if (this.disabled)
133
+ return;
134
+ const e = 0;
135
+ this.setSelected(this.selectableValues[e].id, e), this.$refs.ul.scrollTop = 0;
136
+ },
137
+ handleKeyDown(e) {
138
+ this.disabled || (e.keyCode === L && (this.onArrowDown(), e.preventDefault()), e.keyCode === B && (this.onArrowUp(), e.preventDefault()), e.keyCode === k && (this.onEndKey(), e.preventDefault()), e.keyCode === w && (this.onHomeKey(), e.preventDefault()));
139
+ },
140
+ hasSelection() {
141
+ return this.selectedIndex >= 0;
142
+ },
143
+ validate() {
144
+ return { isValid: !this.getCurrentItem().invalid, errorMessage: null };
145
+ },
146
+ getCurrentItem() {
147
+ return this.selectableValues[this.selectedIndex] || { id: "", text: "" };
148
+ },
149
+ generateInvalidItem(e) {
150
+ return {
151
+ id: e,
152
+ text: `(MISSING) ${e}`,
153
+ invalid: !0
154
+ };
155
+ },
156
+ generateOptionId(e) {
157
+ if (!e || !e.id)
158
+ return "";
159
+ const l = e.id.replace(/[^\w]/gi, "");
160
+ return `option-${this.id}-${l}`;
161
+ }
162
+ }
163
+ }, K = ["id", "tabindex", "aria-label", "aria-activedescendant"];
164
+ function D(e, l, t, n, a, s) {
165
+ const m = y("StyledListItem");
166
+ return r(), o(
167
+ "div",
168
+ {
169
+ class: u(["list-box", { invalid: !t.isValid, disabled: t.disabled }])
170
+ },
171
+ [
172
+ V("ul", {
173
+ id: t.id,
174
+ ref: "ul",
175
+ role: "listbox",
176
+ tabindex: t.disabled ? -1 : 0,
177
+ "aria-label": t.ariaLabel,
178
+ style: c(s.ulSizeStyle),
179
+ "aria-activedescendant": s.generateOptionId(s.getCurrentItem()),
180
+ onKeydown: l[0] || (l[0] = (...i) => s.handleKeyDown && s.handleKeyDown(...i))
181
+ }, [
182
+ (r(!0), o(
183
+ f,
184
+ null,
185
+ g(s.selectableValues, (i, d) => (r(), b(m, {
186
+ id: s.generateOptionId(i),
187
+ key: `listbox-${i.id}`,
188
+ ref_for: !0,
189
+ ref: "options",
190
+ style: c({ "line-height": `${a.optionLineHeight}px` }),
191
+ text: i.text,
192
+ title: i.text,
193
+ class: u({
194
+ focused: s.isCurrentValue(i.id),
195
+ noselect: !0,
196
+ empty: i.text.trim() === ""
197
+ }),
198
+ "aria-selected": s.isCurrentValue(i.id),
199
+ "line-height": a.optionLineHeight,
200
+ selected: s.isCurrentValue(i.id),
201
+ invalid: i.invalid,
202
+ special: i.special,
203
+ disabled: t.disabled,
204
+ onClick: (x) => !t.disabled && s.setSelected(i.id, d),
205
+ onFocus: (x) => !t.disabled && s.setSelected(i.id, d)
206
+ }, null, 8, ["id", "style", "text", "title", "class", "aria-selected", "line-height", "selected", "invalid", "special", "disabled", "onClick", "onFocus"]))),
207
+ 128
208
+ /* KEYED_FRAGMENT */
209
+ ))
210
+ ], 44, K)
211
+ ],
212
+ 2
213
+ /* CLASS */
214
+ );
215
+ }
216
+ const T = /* @__PURE__ */ p(H, [["render", D], ["__scopeId", "data-v-26912d00"], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/components/src/components/forms/ListBox/ListBox.vue"]]), E = /* @__PURE__ */ I({
217
+ __name: "SingleSelectListBoxControl",
218
+ props: {
219
+ control: { type: Object, required: !0 },
220
+ handleChange: { type: Function, required: !0 },
221
+ changeValue: { type: Function, required: !0 },
222
+ disabled: { type: Boolean, required: !0 },
223
+ isValid: { type: Boolean, required: !0 },
224
+ onRegisterValidation: { type: Function, required: !0 },
225
+ labelForId: { type: String, required: !0 }
226
+ },
227
+ setup(e, { expose: l }) {
228
+ l();
229
+ const t = e, { possibleValues: n } = _(v(t, "control")), a = { props: t, possibleValues: n, get ListBox() {
230
+ return T;
231
+ } };
232
+ return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
233
+ }
234
+ });
235
+ function z(e, l, t, n, a, s) {
236
+ return r(), o(
237
+ f,
238
+ null,
239
+ [
240
+ h(" eslint-disable vue/attribute-hyphenation ariaLabel needs to be given like this for typescript to not complain "),
241
+ n.possibleValues ? (r(), b(n.ListBox, {
242
+ key: 0,
243
+ id: t.labelForId,
244
+ "possible-values": n.possibleValues,
245
+ disabled: t.disabled,
246
+ "model-value": t.control.data,
247
+ "is-valid": t.isValid,
248
+ ariaLabel: t.control.label,
249
+ size: t.control.uischema.options?.size,
250
+ "onUpdate:modelValue": t.changeValue
251
+ }, null, 8, ["id", "possible-values", "disabled", "model-value", "is-valid", "ariaLabel", "size", "onUpdate:modelValue"])) : h("v-if", !0)
252
+ ],
253
+ 2112
254
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
255
+ );
256
+ }
257
+ const q = /* @__PURE__ */ p(E, [["render", z], ["__file", "/Users/albrecht/Documents/KNIME/git/webapps-common/packages/jsonforms/src/uiComponents/SingleSelectListBoxControl.vue"]]);
258
+ export {
259
+ q as default
260
+ };