@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,39 +0,0 @@
1
- import { defineComponent as p, resolveComponent as t, openBlock as o, createBlock as a, withCtx as u, createElementVNode as c, createElementBlock as m, Fragment as d, renderList as i } from "vue";
2
- import { _ as y, s as h, r as f, u as _ } from "./index-1mTLieVA.js";
3
- import { L } from "./LayoutComponentWrapper-VvzxL4qE.js";
4
- const $ = p({
5
- name: "HorizontalLayout",
6
- components: {
7
- DispatchRenderer: h,
8
- LayoutComponentWrapper: L
9
- },
10
- props: {
11
- ...f()
12
- },
13
- setup(e) {
14
- return _(e);
15
- }
16
- }), C = $, b = { class: "horizontal" };
17
- function k(e, z, v, B, D, H) {
18
- const r = t("DispatchRenderer"), n = t("LayoutComponentWrapper");
19
- return o(), a(n, { layout: e.layout }, {
20
- default: u(() => [
21
- c("div", b, [
22
- (o(!0), m(d, null, i(e.layout.uischema.elements, (s, l) => (o(), a(r, {
23
- key: `${e.layout.path}-${l}`,
24
- schema: e.layout.schema,
25
- uischema: s,
26
- path: e.layout.path,
27
- enabled: e.layout.enabled,
28
- renderers: e.layout.renderers,
29
- cells: e.layout.cells
30
- }, null, 8, ["schema", "uischema", "path", "enabled", "renderers", "cells"]))), 128))
31
- ])
32
- ]),
33
- _: 1
34
- }, 8, ["layout"]);
35
- }
36
- const F = /* @__PURE__ */ y(C, [["render", k], ["__scopeId", "data-v-48b7cced"]]);
37
- export {
38
- F as default
39
- };
@@ -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 s } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-DkAPaKAi.js";
4
- const i = /* @__PURE__ */ e({
5
- __name: "IntegerControl",
6
- props: t(),
7
- setup(m) {
8
- return (r, _) => (o(), p(s, n(r.$props, { type: "integer" }), null, 16));
9
- }
10
- });
11
- export {
12
- i as default
13
- };
@@ -1,36 +0,0 @@
1
- import { defineComponent as t, openBlock as n, createElementBlock as o, normalizeClass as s, renderSlot as a, createCommentVNode as r } from "vue";
2
- import { a3 as i, _ as d } from "./index-1mTLieVA.js";
3
- const c = t({
4
- name: "LayoutComponentWrapper",
5
- props: {
6
- layout: {
7
- type: Object,
8
- default: () => {
9
- }
10
- }
11
- },
12
- setup() {
13
- return { showAdvancedSettings: i() };
14
- },
15
- computed: {
16
- isVisible() {
17
- return this.layout.visible && (this.showAdvancedSettings || !this.isAdvanced);
18
- },
19
- isAdvanced() {
20
- var e;
21
- return (e = this.layout.uischema.options) == null ? void 0 : e.isAdvanced;
22
- }
23
- }
24
- }), p = c;
25
- function u(e, l, m, f, v, h) {
26
- return e.isVisible ? (n(), o("div", {
27
- key: 0,
28
- class: s({ fadeContainer: e.isAdvanced })
29
- }, [
30
- a(e.$slots, "default", {}, void 0, !0)
31
- ], 2)) : r("", !0);
32
- }
33
- const _ = /* @__PURE__ */ d(p, [["render", u], ["__scopeId", "data-v-a1707948"]]);
34
- export {
35
- _ as L
36
- };
@@ -1,62 +0,0 @@
1
- import { defineComponent as p, onMounted as g, openBlock as u, createElementBlock as V, Fragment as C, createVNode as w, unref as o } from "vue";
2
- import { a7 as h, a8 as F, a9 as v, r as _, a as P } from "./index-1mTLieVA.js";
3
- import { C as S } from "./CredentialsControlBase-Dqhh-4hT.js";
4
- const y = /* @__PURE__ */ p({
5
- __name: "LegacyFlowVariableHandler",
6
- props: {
7
- flowVariableName: {}
8
- },
9
- emits: ["flowVariableSet"],
10
- setup(l, { emit: n }) {
11
- const { configPaths: a } = h(), { setControllingFlowVariable: r, invalidateSetFlowVariable: i } = F(a.value[0].configPath), { getFlowVariableOverrideValue: s } = v("flowVariablesApi"), t = l, c = n;
12
- return g(async () => {
13
- const e = t.flowVariableName;
14
- if (e) {
15
- const { configPath: f, dataPath: b } = a.value[0], d = {
16
- path: a.value[0].configPath,
17
- flowVariableName: e
18
- };
19
- r(d);
20
- const m = await s(
21
- f,
22
- b
23
- );
24
- typeof m > "u" && i(d), c("flowVariableSet", m);
25
- }
26
- }), () => {
27
- };
28
- }
29
- }), k = /* @__PURE__ */ p({
30
- __name: "LegacyCredentialsControl",
31
- props: _(),
32
- setup(l) {
33
- const n = l, {
34
- control: a,
35
- onChange: r,
36
- disabled: i,
37
- flowSettings: s
38
- } = P({
39
- props: n
40
- }), t = (e) => {
41
- r({ credentials: e, flowVarName: null });
42
- }, c = (e) => {
43
- t(e ?? a.value.data.credentials);
44
- };
45
- return (e, f) => (u(), V(C, null, [
46
- w(S, {
47
- control: o(a),
48
- data: o(a).data.credentials,
49
- "flow-settings": o(s),
50
- disabled: o(i),
51
- onChange: t
52
- }, null, 8, ["control", "data", "flow-settings", "disabled"]),
53
- w(y, {
54
- "flow-variable-name": o(a).data.flowVarName,
55
- onFlowVariableSet: c
56
- }, null, 8, ["flow-variable-name"])
57
- ], 64));
58
- }
59
- });
60
- export {
61
- k as default
62
- };
@@ -1,57 +0,0 @@
1
- import { defineComponent as w, computed as n, openBlock as i, createBlock as s, unref as e, withCtx as r, createElementVNode as v, createVNode as d, createCommentVNode as V } from "vue";
2
- import { r as F, a as g, L as y, I as L, _ as S } from "./index-1mTLieVA.js";
3
- import { e as k, b as D, _ as E, c as A } from "./FileExplorerTab-FjmnUl9M.js";
4
- const B = { class: "flex-row" }, I = /* @__PURE__ */ w({
5
- __name: "LocalFileChooserControl",
6
- props: F(),
7
- setup(p) {
8
- const c = p, { control: o, onChange: a, disabled: l } = g({ props: c }), t = n(
9
- () => o.value.uischema.options
10
- ), { sideDrawerValue: u, updateSideDrawerValue: m, onApply: f } = k({
11
- onChange: a,
12
- initialValue: n(() => o.value.data)
13
- }), { appendedExtension: _, filteredExtensions: h, isLoaded: C, isWriter: b } = D(t);
14
- return (N, O) => (i(), s(y, {
15
- control: e(o),
16
- onControllingFlowVariableSet: e(a)
17
- }, {
18
- default: r(({ labelForId: x }) => [
19
- v("div", B, [
20
- d(e(L), {
21
- id: x,
22
- class: "flex-grow",
23
- disabled: e(l),
24
- "model-value": e(o).data,
25
- placeholder: t.value.placeholder,
26
- compact: "",
27
- "onUpdate:modelValue": e(a)
28
- }, null, 8, ["id", "disabled", "model-value", "placeholder", "onUpdate:modelValue"]),
29
- d(E, {
30
- disabled: e(l),
31
- onApply: e(f)
32
- }, {
33
- default: r(() => [
34
- e(C) ? (i(), s(A, {
35
- key: 0,
36
- "backend-type": "local",
37
- disabled: e(l),
38
- options: t.value,
39
- "initial-value": e(o).data,
40
- "is-writer": e(b),
41
- "filtered-extensions": e(h),
42
- "appended-extension": e(_),
43
- "initial-file-path": e(u),
44
- onChooseFile: e(m)
45
- }, null, 8, ["disabled", "options", "initial-value", "is-writer", "filtered-extensions", "appended-extension", "initial-file-path", "onChooseFile"])) : V("", !0)
46
- ]),
47
- _: 1
48
- }, 8, ["disabled", "onApply"])
49
- ])
50
- ]),
51
- _: 1
52
- }, 8, ["control", "onControllingFlowVariableSet"]));
53
- }
54
- }), W = /* @__PURE__ */ S(I, [["__scopeId", "data-v-41938a5b"]]);
55
- export {
56
- W as default
57
- };
@@ -1,464 +0,0 @@
1
- import { ref as k, defineComponent as L, openBlock as f, createElementBlock as I, Fragment as _, createElementVNode as N, normalizeClass as K, toDisplayString as F, createCommentVNode as g, createBlock as x, resolveDynamicComponent as R, mergeProps as j, withCtx as T, createVNode as v, renderSlot as z, toRef as X, onBeforeUpdate as Y, resolveComponent as G, normalizeStyle as q, renderList as Z, unref as V, nextTick as ee } from "vue";
2
- import { A as te } from "./arrow-next-CvdR0-WC.js";
3
- import { af as ne, _ as P, m as oe, f as se, d as ie, e as le } from "./index-1mTLieVA.js";
4
- import { u as ae } from "./floating-ui.vue.esm-D_FlISFP.js";
5
- var ue = 0;
6
- function re(n) {
7
- var e = ++ue;
8
- return ne(n) + e;
9
- }
10
- const de = (n, e) => (n % e + e) % e, B = (n) => {
11
- n.preventDefault(), n.stopPropagation(), n.stopImmediatePropagation();
12
- }, me = ({
13
- getNextElement: n,
14
- getFirstElement: e,
15
- getLastElement: s,
16
- close: t,
17
- disableSpaceToClick: p
18
- }) => {
19
- const a = k(null), h = () => {
20
- };
21
- let u = h;
22
- const d = () => {
23
- a.value = null, u = h;
24
- }, m = (r) => {
25
- a.value = r.index, u = r.onClick;
26
- }, C = (r) => {
27
- m(n(a.value, r));
28
- }, w = () => {
29
- d(), t();
30
- };
31
- return { onKeydown: (r) => {
32
- switch (r.code) {
33
- case "ArrowDown":
34
- B(r), C(1);
35
- break;
36
- case "ArrowUp":
37
- B(r), C(-1);
38
- break;
39
- case "Enter":
40
- case "Space": {
41
- const S = r.code === "Enter", E = r.code === "Space";
42
- a.value !== null && (S || E && !p) && (B(r), u());
43
- break;
44
- }
45
- case "Home":
46
- e && m(e());
47
- break;
48
- case "End":
49
- s && m(s());
50
- break;
51
- case "Escape":
52
- B(r), w();
53
- break;
54
- case "Tab":
55
- w();
56
- break;
57
- }
58
- }, currentIndex: a, resetNavigation: d };
59
- }, ce = {
60
- key: 0,
61
- class: "hotkey"
62
- }, fe = /* @__PURE__ */ L({
63
- __name: "BaseMenuItemText",
64
- props: {
65
- text: {},
66
- hotkeyText: {},
67
- useMaxMenuWidth: { type: Boolean }
68
- },
69
- setup(n) {
70
- return (e, s) => (f(), I(_, null, [
71
- N("span", {
72
- class: K(["text", { truncate: e.useMaxMenuWidth }])
73
- }, F(e.text), 3),
74
- e.hotkeyText ? (f(), I("span", ce, F(e.hotkeyText), 1)) : g("", !0)
75
- ], 64));
76
- }
77
- }), U = /* @__PURE__ */ P(fe, [["__scopeId", "data-v-ad4bf226"]]), pe = { class: "label" }, he = { class: "text-and-hotkey" }, Ie = {
78
- key: 0,
79
- class: "description"
80
- }, be = /* @__PURE__ */ L({
81
- __name: "BaseMenuItem",
82
- props: {
83
- item: {},
84
- index: {},
85
- hasFocus: { type: Boolean },
86
- useMaxMenuWidth: { type: Boolean }
87
- },
88
- setup(n) {
89
- const e = (t) => t.to ? "nuxt-link" : t.href ? "a" : "button", s = (t) => t.href && t.download ? {
90
- download: typeof t.download == "boolean" ? "" : t.download
91
- } : null;
92
- return (t, p) => (f(), x(R(e(t.item)), j({
93
- ref: "listItemComponent",
94
- tabindex: "-1",
95
- class: [
96
- "list-item",
97
- t.item.sectionHeadline ? "section-headline" : "clickable-item",
98
- {
99
- disabled: t.item.disabled,
100
- selected: t.item.selected,
101
- focused: t.hasFocus
102
- }
103
- ],
104
- to: t.item.to || void 0,
105
- href: t.item.href || void 0
106
- }, s(t.item)), {
107
- default: T(() => [
108
- t.item.icon ? (f(), x(R(t.item.icon), {
109
- key: 0,
110
- class: "item-icon"
111
- })) : g("", !0),
112
- N("div", pe, [
113
- N("div", he, [
114
- t.item.checkbox ? (f(), x(oe, {
115
- key: 0,
116
- "model-value": t.item.checkbox.checked,
117
- class: "checkbox"
118
- }, {
119
- default: T(() => [
120
- v(U, {
121
- text: t.item.text,
122
- "use-max-menu-width": t.useMaxMenuWidth,
123
- "hotkey-text": t.item.hotkeyText
124
- }, null, 8, ["text", "use-max-menu-width", "hotkey-text"])
125
- ]),
126
- _: 1
127
- }, 8, ["model-value"])) : (f(), I(_, { key: 1 }, [
128
- v(U, {
129
- text: t.item.text,
130
- "use-max-menu-width": t.useMaxMenuWidth,
131
- "hotkey-text": t.item.hotkeyText
132
- }, null, 8, ["text", "use-max-menu-width", "hotkey-text"]),
133
- z(t.$slots, "submenu", {
134
- itemElement: t.$refs.listItemComponent
135
- }, void 0, !0)
136
- ], 64))
137
- ]),
138
- t.item.description ? (f(), I("div", Ie, F(t.item.description), 1)) : g("", !0)
139
- ])
140
- ]),
141
- _: 3
142
- }, 16, ["class", "to", "href"]));
143
- }
144
- }), J = /* @__PURE__ */ P(be, [["__scopeId", "data-v-6ba5ebbe"]]);
145
- function ye(n) {
146
- return !("$el" in n);
147
- }
148
- const ke = {
149
- name: "BaseMenuItems",
150
- components: { BaseMenuItem: J },
151
- props: {
152
- items: {
153
- type: Array,
154
- required: !0
155
- },
156
- focusedItemIndex: {
157
- required: !1,
158
- type: Number,
159
- default: null
160
- },
161
- menuAriaLabel: {
162
- type: String,
163
- required: !0
164
- },
165
- /**
166
- * Identifier for click handler. If left blank an id is generated.
167
- * NOTE: Autogenerated IDs might break SSR.
168
- */
169
- id: {
170
- default: () => `__BaseMenuItems-${re()}__`,
171
- type: String
172
- },
173
- /**
174
- * Maximum width in px of the menu
175
- */
176
- maxMenuWidth: {
177
- type: Number,
178
- default: null
179
- },
180
- positionRelativeToElement: {
181
- type: Object,
182
- default: null
183
- },
184
- /**
185
- * Element used to detect when the MenuItem is near the edges of a clipping parent.
186
- * This will then be used to automatically position opened floating submenus accordingly.
187
- *
188
- * Defaults to the document's body
189
- */
190
- clippingBoundary: {
191
- type: Object,
192
- default: document == null ? void 0 : document.body
193
- }
194
- },
195
- emits: ["item-click", "item-focused", "item-hovered"],
196
- setup(n) {
197
- const e = k([]), s = X(n, "positionRelativeToElement"), t = k(null);
198
- Y(() => {
199
- e.value = [];
200
- });
201
- const { floatingStyles: p } = s.value ? ae(s, t, {
202
- strategy: "fixed",
203
- placement: "right-start",
204
- middleware: [
205
- se({ boundary: n.clippingBoundary }),
206
- ie({ boundary: n.clippingBoundary })
207
- ],
208
- whileElementsMounted: le
209
- }) : { floatingStyles: null };
210
- return {
211
- listContainerFloatingStyles: p,
212
- listContainer: t,
213
- listItems: e
214
- };
215
- },
216
- computed: {
217
- useMaxMenuWidth() {
218
- return !!this.maxMenuWidth;
219
- },
220
- enabledItemsIndices() {
221
- return this.items.map((n, e) => ({ item: n, index: e })).filter(({ item: n }) => !n.disabled).map(({ index: n }) => n);
222
- }
223
- },
224
- watch: {
225
- focusedItemIndex: {
226
- immediate: !0,
227
- handler() {
228
- this.emitItemFocused();
229
- }
230
- },
231
- items: {
232
- deep: !0,
233
- handler() {
234
- this.emitItemFocused();
235
- }
236
- }
237
- },
238
- expose: ["getEnabledListItems", "scrollTo"],
239
- methods: {
240
- updateItem(n, e) {
241
- this.listItems[e] = n;
242
- },
243
- getEnabledListItems() {
244
- return this.listItems.map((e, s) => {
245
- const t = e.children[0];
246
- return {
247
- element: e,
248
- index: s,
249
- onClick: ye(t) ? () => t.click() : () => t.$el.click()
250
- };
251
- }).filter(({ index: e }) => this.enabledItemsIndices.includes(e));
252
- },
253
- scrollTo(n) {
254
- const e = this.$refs.listContainer;
255
- if (e && e.scrollHeight > e.clientHeight) {
256
- const s = e.clientHeight + e.scrollTop, t = n.offsetTop + n.offsetHeight;
257
- t > s ? e.scrollTop = t - e.clientHeight : n.offsetTop < e.scrollTop && (e.scrollTop = n.offsetTop);
258
- }
259
- },
260
- menuItemId(n) {
261
- return `menu-item-${this.id}-${n}`;
262
- },
263
- onPointerEnter(n, e, s) {
264
- this.$emit(
265
- "item-hovered",
266
- e.disabled || e.sectionHeadline ? null : e,
267
- this.id,
268
- s
269
- );
270
- },
271
- onItemClick(n, e, s) {
272
- var p;
273
- if (e.disabled || e.sectionHeadline || (p = e.children) != null && p.length)
274
- return;
275
- if (!(e.href || e.to) && (n.preventDefault(), n.stopPropagation(), n.stopImmediatePropagation()), e.checkbox) {
276
- const a = !e.checkbox.checked;
277
- e.checkbox.setBoolean(a);
278
- return;
279
- }
280
- this.$emit("item-click", n, e, s);
281
- },
282
- emitItemFocused() {
283
- if (this.focusedItemIndex === null) {
284
- this.$emit("item-focused", null, null);
285
- return;
286
- }
287
- const n = this.focusedItemIndex;
288
- this.$emit("item-focused", this.menuItemId(n), this.items[n]);
289
- }
290
- }
291
- }, xe = ["aria-label"], ge = ["data-index", "title", "onClick", "onPointerenter"];
292
- function ve(n, e, s, t, p, a) {
293
- const h = G("BaseMenuItem");
294
- return f(), I("ul", {
295
- ref: "listContainer",
296
- "aria-label": s.menuAriaLabel,
297
- class: "base-menu-items",
298
- style: q(t.listContainerFloatingStyles),
299
- role: "menu",
300
- tabindex: "-1",
301
- onPointerleave: e[0] || (e[0] = (u) => n.$emit("item-hovered", null, s.id))
302
- }, [
303
- (f(!0), I(_, null, Z(s.items, (u, d) => (f(), I("li", {
304
- key: d,
305
- ref_for: !0,
306
- ref: (m) => a.updateItem(m, d),
307
- "data-index": d,
308
- class: K([{ separator: u.separator }]),
309
- style: q(a.useMaxMenuWidth ? { "max-width": `${s.maxMenuWidth}px` } : {}),
310
- title: u.title,
311
- onClick: (m) => a.onItemClick(m, u, s.id),
312
- onPointerenter: (m) => a.onPointerEnter(m, u, d)
313
- }, [
314
- z(n.$slots, "item", {
315
- item: u,
316
- index: d,
317
- menuId: s.id,
318
- menuItemId: a.menuItemId,
319
- maxMenuWidth: s.maxMenuWidth,
320
- focusedItemIndex: s.focusedItemIndex
321
- }, () => [
322
- v(h, {
323
- id: a.menuItemId(d),
324
- item: u,
325
- index: d,
326
- "use-max-menu-width": !!s.maxMenuWidth,
327
- "has-focus": d === s.focusedItemIndex
328
- }, null, 8, ["id", "item", "index", "use-max-menu-width", "has-focus"])
329
- ], !0)
330
- ], 46, ge))), 128))
331
- ], 44, xe);
332
- }
333
- const Ce = /* @__PURE__ */ P(ke, [["render", ve], ["__scopeId", "data-v-815f537c"]]), Se = /* @__PURE__ */ L({
334
- __name: "MenuItems",
335
- props: {
336
- items: {},
337
- menuAriaLabel: {},
338
- disableSpaceToClick: { type: Boolean, default: !1 },
339
- registerKeydown: { type: Boolean, default: !1 },
340
- clippingBoundary: { default: () => document.body }
341
- },
342
- emits: ["close", "item-click", "item-focused", "item-hovered", "close-submenu"],
343
- setup(n, { expose: e, emit: s }) {
344
- const t = n, p = s, a = k(null), h = k(-1), u = k(null), d = (i, o) => {
345
- if (!a.value)
346
- return {
347
- onClick: () => {
348
- },
349
- index: -1
350
- };
351
- const c = a.value.getEnabledListItems();
352
- let l = c.map(({ index: W }) => W).indexOf(i);
353
- l === -1 && o === -1 && (l = 0);
354
- const A = de(
355
- l + o,
356
- c.length
357
- ), { element: H, index: b, onClick: M } = c[A];
358
- return a.value.scrollTo(H), { index: b, onClick: M };
359
- }, {
360
- currentIndex: m,
361
- onKeydown: C,
362
- resetNavigation: w
363
- } = me({
364
- disableSpaceToClick: t.disableSpaceToClick,
365
- getNextElement: d,
366
- close: () => p("close")
367
- }), D = (i = 0) => {
368
- m.value = i;
369
- }, r = (i) => {
370
- var l;
371
- const o = t.items[i], c = o && !o.disabled && ((l = o.children) == null ? void 0 : l.length);
372
- h.value = c ? i : -1;
373
- }, S = (i) => {
374
- switch (i.code) {
375
- case "ArrowLeft":
376
- p("close-submenu");
377
- break;
378
- case "ArrowRight":
379
- r(m.value ?? 0), ee(() => {
380
- var o;
381
- (o = u.value) == null || o.focusIndex();
382
- });
383
- break;
384
- }
385
- C(i);
386
- }, E = (i, o, c) => {
387
- i !== null && r(c), p("item-hovered", i, o, c);
388
- }, $ = (i) => {
389
- var c;
390
- h.value !== -1 ? (c = u.value) == null || c.onKeydown(i) : S(i);
391
- };
392
- e({ onKeydown: $, resetNavigation: w, focusIndex: D });
393
- const O = (i) => !i.children || i.children.length === 0 ? !1 : !!i.children.find(({ selected: o }) => o);
394
- return (i, o) => {
395
- const c = G("MenuItems", !0);
396
- return f(), x(Ce, j({
397
- ref_key: "baseMenuItems",
398
- ref: a
399
- }, i.$attrs, {
400
- items: t.items,
401
- "menu-aria-label": t.menuAriaLabel,
402
- "focused-item-index": V(m),
403
- "clipping-boundary": i.clippingBoundary,
404
- onKeydown: o[5] || (o[5] = (l) => t.registerKeydown && $(l)),
405
- onItemClick: o[6] || (o[6] = (...l) => i.$emit("item-click", ...l)),
406
- onItemHovered: o[7] || (o[7] = (...l) => E(...l)),
407
- onItemFocused: o[8] || (o[8] = (...l) => i.$emit("item-focused", ...l))
408
- }), {
409
- item: T(({
410
- item: l,
411
- menuId: A,
412
- menuItemId: H,
413
- index: b,
414
- maxMenuWidth: M,
415
- focusedItemIndex: W
416
- }) => [
417
- v(J, {
418
- id: H(b),
419
- item: l,
420
- index: b,
421
- "use-max-menu-width": !!M,
422
- "has-focus": b === W,
423
- class: "base-item"
424
- }, {
425
- submenu: T(({ itemElement: Q }) => [
426
- l.children && l.children.length ? (f(), I("span", {
427
- key: 0,
428
- class: K([
429
- "sub-menu-indicator",
430
- { highlight: O(l) }
431
- ])
432
- }, [
433
- v(V(te), { class: "icon" }),
434
- h.value === b ? (f(), x(c, {
435
- key: 0,
436
- id: `${A}__sub${b}`,
437
- ref_key: "subLevelItems",
438
- ref: u,
439
- class: "menu-items-sub-level",
440
- "menu-aria-label": `${l.text} sub menu`,
441
- items: l.children,
442
- "max-menu-width": M,
443
- "position-relative-to-element": Q,
444
- "clipping-boundary": i.clippingBoundary,
445
- "register-keydown": "",
446
- onClose: o[0] || (o[0] = (y) => h.value = -1),
447
- onCloseSubmenu: o[1] || (o[1] = (y) => h.value = -1),
448
- onItemClick: o[2] || (o[2] = (...y) => i.$emit("item-click", ...y)),
449
- onItemHovered: o[3] || (o[3] = (...y) => i.$emit("item-hovered", ...y)),
450
- onItemFocused: o[4] || (o[4] = (...y) => i.$emit("item-focused", ...y))
451
- }, null, 8, ["id", "menu-aria-label", "items", "max-menu-width", "position-relative-to-element", "clipping-boundary"])) : g("", !0)
452
- ], 2)) : g("", !0)
453
- ]),
454
- _: 2
455
- }, 1032, ["id", "item", "index", "use-max-menu-width", "has-focus"])
456
- ]),
457
- _: 1
458
- }, 16, ["items", "menu-aria-label", "focused-item-index", "clipping-boundary"]);
459
- };
460
- }
461
- });
462
- export {
463
- Se as _
464
- };
@@ -1,17 +0,0 @@
1
- import { defineComponent as o, openBlock as r, createBlock as n, mergeProps as t } from "vue";
2
- import { r as s } from "./index-1mTLieVA.js";
3
- import p from "./TwinlistControl-BqoP2Kbq.js";
4
- const c = /* @__PURE__ */ o({
5
- __name: "NameFilter",
6
- props: s(),
7
- setup(a) {
8
- return (e, l) => (r(), n(p, t({ ...e.$props, ...e.$attrs }, {
9
- "unknown-values-text": "Any unknown value",
10
- "show-unknown-values": "",
11
- "empty-state-label": "No values in this list"
12
- }), null, 16));
13
- }
14
- });
15
- export {
16
- c as default
17
- };
@@ -1,8 +0,0 @@
1
- declare const _default: any;
2
- export default _default;
3
- declare module 'vue' {
4
- interface GlobalComponents {
5
- }
6
- interface GlobalDirectives {
7
- }
8
- }