@knime/scripting-editor 0.0.120 → 0.0.121

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 (94) hide show
  1. package/dist/{AnyOfTwinlist-CSbFqiiy-BQnu5Ml3.js → AnyOfTwinlist-DNsHUZei-CFf0kAbY.js} +1 -1
  2. package/dist/{ArrayLayout-DZJEvgMa.js → ArrayLayout-Ck55ZP0t.js} +55 -55
  3. package/dist/{ButtonControl-HiHtzOYh.js → ButtonControl-CsK37zDu.js} +1 -1
  4. package/dist/{Checkbox-M2rFIZY0-r6RqY214.js → Checkbox-CWL8weTr-DizDeAek.js} +1 -1
  5. package/dist/{CheckboxControl-Dz65huic-ByuEiGEp.js → CheckboxControl-bjaWoB4c-C0Laylox.js} +1 -1
  6. package/dist/{Checkboxes-Qc7Wn4p8-B8qRgy0F.js → Checkboxes-D3XPQc69-C6lQuGVB.js} +2 -2
  7. package/dist/{CheckboxesControl-52GcYYsS-Cpk0ZUTo.js → CheckboxesControl-BxTmNLjK-DegwymdN.js} +3 -3
  8. package/dist/{ComboBoxControl-BSrtnamE-BY-hN9oV.js → ComboBoxControl-DIucqZ5g-CiRuCZsD.js} +3 -3
  9. package/dist/{ConfigurationNodeNotSupported-Dz99aBmX.js → ConfigurationNodeNotSupported-CQrq1fuY.js} +1 -1
  10. package/dist/{ControlWithSubParameters-CjWDNzc-.js → ControlWithSubParameters-DUoT6age.js} +20 -22
  11. package/dist/{CredentialsControl-CDSDJXxB.js → CredentialsControl-DQqPTexY.js} +2 -2
  12. package/dist/{CredentialsControlBase-DzF0xhDx.js → CredentialsControlBase-9iHrrJSL.js} +6 -6
  13. package/dist/{DateControl-B9h4p2F5-Cnu24BHe.js → DateControl-BNeGXflU-DOfgRpL8.js} +1 -1
  14. package/dist/{DateTimeControl-BsPKGDFA-DbzLGzL-.js → DateTimeControl-CcsnEIq0-jOgkrc6W.js} +1 -1
  15. package/dist/{DateTimeFormatInput-bkxjAG8p-dbZSM1sX.js → DateTimeFormatInput-CW04StCG-DUEeV9Wh.js} +3 -3
  16. package/dist/{DateTimeFormatPickerControl-SZNaksRz-DsQxhGXZ.js → DateTimeFormatPickerControl-DGKFzxb_-CvFIt06D.js} +2 -2
  17. package/dist/{DateTimeFormatPickerWithTypeControl-CAEt6y2T-D3WvWVj9.js → DateTimeFormatPickerWithTypeControl-85204whr-DYaaBcT1.js} +3 -3
  18. package/dist/DialogFileExplorer-D1JH5zwZ.js +520 -0
  19. package/dist/{Dropdown-6eVZoGpG-PuXROd15.js → Dropdown-CIypkp0O-Dn4sxfaP.js} +2 -2
  20. package/dist/{DropdownControl-mDfFM4Ka-D8icssdG.js → DropdownControl-4AhoNiKk-BYSEubXu.js} +3 -3
  21. package/dist/{DynamicInputControl-B3EgdNYM.js → DynamicInputControl-C3sfDJlr.js} +6 -6
  22. package/dist/{FileChooserControl-GDX-B_9s.js → FileChooserControl-DGl48CIW.js} +2 -2
  23. package/dist/{FileChooserControlBase-Nc6m3y66.js → FileChooserControlBase-CErQoQLH.js} +27 -28
  24. package/dist/{FileChooserControlForMultiFile-Bwdiza24.js → FileChooserControlForMultiFile--rcxceQH.js} +1 -1
  25. package/dist/{HorizontalLayout-TMNv34K1-Dtbz7GFH.js → HorizontalLayout-DaqXoro5-CyeVSZyB.js} +1 -1
  26. package/dist/{IntegerControl-xaXhFuiQ-CcnelTK2.js → IntegerControl-mbOHHY3i-D0R93Whp.js} +1 -1
  27. package/dist/{IntervalControl-Bdoki_MC-COHB3nXT.js → IntervalControl-D8TeFfuS-CxLU62pV.js} +16 -16
  28. package/dist/{LabeledGroup-Bskefsif.js → LabeledGroup-DozoIjK8.js} +8 -9
  29. package/dist/{LegacyCredentialsControl-ZdrkCVkC.js → LegacyCredentialsControl-hmETDkju.js} +7 -7
  30. package/dist/{LoadingDropdown-edN4VitH-R3y6kvlb.js → LoadingDropdown--cwIsJdm-Dc7B20ml.js} +3 -3
  31. package/dist/LoadingIcon-DVB5Htes-hYPngck-.js +17 -0
  32. package/dist/{ManualTwinlistControl-DEBn3XgS-DrjRcPie.js → ManualTwinlistControl-BRitiAxR-DF_Da13g.js} +4 -4
  33. package/dist/{MultiFileChooserControl-ZP5enAM4.js → MultiFileChooserControl-CQ8BbosJ.js} +168 -146
  34. package/dist/{MultiSelectListBoxControl-BmRzZUI_-BeYs5sOZ.js → MultiSelectListBoxControl-CN3QiEdL-CN9cSiar.js} +2 -2
  35. package/dist/{MultimodeTwinlistControl-P0Bj7FYU-Dtq_ciIX.js → MultimodeTwinlistControl-O0R4oOLS-ChReNigV.js} +6 -6
  36. package/dist/{MultiselectListBox-Ivk-_tly-BI48Ai96.js → MultiselectListBox-CQ3iTrKc-BUH4QgYc.js} +2 -2
  37. package/dist/{NameFilter-SAlJdnm7-B3Ez09D1.js → NameFilter-ClMXE3-2-D1hTm5bW.js} +1 -1
  38. package/dist/{NumberControl-C_VElIjG-CNqxGj-b.js → NumberControl-DMpTZQhn-D7c1f5MK.js} +1 -1
  39. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-Bcc2XPBa-jX9ZCXqt.js → NumberControlBase.vue_vue_type_script_setup_true_lang-CDRKAuGz-BH-ahqn6.js} +2 -2
  40. package/dist/{NumberInput-CHeMUEcJ-CBjiZXnc.js → NumberInput-DlvskoRZ-BXSYv7zF.js} +1 -1
  41. package/dist/{OneOfDropdown-DZgSOLLJ-wCE5bOVZ.js → OneOfDropdown-DVGE71fW-DGHKD5tJ.js} +1 -1
  42. package/dist/{RadioControl-xm6uqnsz-Bpu9pAXm.js → RadioControl-bKZb-PCj-CkkWD9-5.js} +2 -2
  43. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-cwi1lPmz-D1KwRFTF.js → RadioControlBase.vue_vue_type_script_setup_true_lang-CcnOafHA-DehVywcB.js} +3 -3
  44. package/dist/{RichTextControl-Bx9uzTcU-BZHXysn7.js → RichTextControl-BB6-PEf--Dqs7PfNi.js} +19 -21
  45. package/dist/SectionLayout-Ba7NpHTm-D24M-3B1.js +44 -0
  46. package/dist/SettingsSubPanelLayout-C3hw4UGI-DQs4zbuq.js +70 -0
  47. package/dist/{SimpleTwinlistControl-BlS_kAjd-MEQ-1_ak.js → SimpleTwinlistControl-nBi-T2QR-Cp3-tLf-.js} +2 -2
  48. package/dist/{SingleSelectControl-CN-n21yb-F2BrAi2J.js → SingleSelectControl-Dg18bGk9-UF9J7JMY.js} +2 -2
  49. package/dist/{SingleSelectListBoxControl-CCI8zCX8-BIhMc4PF.js → SingleSelectListBoxControl-BsQMs5Xl-h3PQ3OKX.js} +3 -3
  50. package/dist/{SortListControl-BulTKISX-CHY3yUiR.js → SortListControl-w5mvLX6s-CD40LTTr.js} +57 -58
  51. package/dist/{StringFileChooserControl-B8NpcHAg.js → StringFileChooserControl-D2u6kzkZ.js} +7 -7
  52. package/dist/{StyledListItem-CQwlzLP2-D4Rd-oAK.js → StyledListItem-nU28IyY6-bPe3o50k.js} +1 -1
  53. package/dist/{TextAreaControl-CXKJWxR3-BAc5G9Jy.js → TextAreaControl-BcPobxLV-Ca5igr-I.js} +1 -1
  54. package/dist/{parameters-TDvh_VJm.js → TextControl-kY3Ra8PG-y_70AOqk.js} +15922 -15341
  55. package/dist/{TimeControl-OsnqrTKz-CfJTqe7M.js → TimeControl-CcvAtvwb-CEC-ky_y.js} +1 -1
  56. package/dist/{TwinlistControlBase-BEEFVvf6-B_lC-UyQ.js → TwinlistControlBase-Da7Vi8Ne-7f9PH6lG.js} +3 -3
  57. package/dist/{TwinlistLoadingInfo-BFWX5bru-CmUU5ze0.js → TwinlistLoadingInfo-BvCXnExs-CZKrpDBx.js} +12 -13
  58. package/dist/{TypedStringFilter-CAXArbh6-Bxyzbt--.js → TypedStringFilter-DuFP6CtD-DyqVsMVu.js} +1 -1
  59. package/dist/{ValueSwitch-BmW_v2r_-DCcRA3Nu.js → ValueSwitch-CAxte3Dc-BVVF1RHf.js} +1 -1
  60. package/dist/{ValueSwitchControl-F9EBfMSY-BvIFqq8O.js → ValueSwitchControl-DcBjKQSo-CDunJRyD.js} +1 -1
  61. package/dist/{VennDiagramLayout-B5_nSfj5.js → VennDiagramLayout-oYvmZwym.js} +19 -20
  62. package/dist/{VerticalLayout-DEFdoJSU-CW6Y4tIr.js → VerticalLayout-CUHbdUdk-BmKQKo4m.js} +6 -7
  63. package/dist/{ZonedDateTimeControl-TJvHA6Rm-BkCpzQDx.js → ZonedDateTimeControl-B5cuTrgr-Cwz2O9wE.js} +3 -3
  64. package/dist/{_baseEach-BxODVDA6-C4HgsZp-.js → _baseEach-CPQiIPkT-CiqFaVXv.js} +3 -3
  65. package/dist/{_getTag-DTjoqLoo-DzAcUcW_.js → _getTag-DuCXbcgW-CSxZDqyE.js} +1 -1
  66. package/dist/initial-data-service-browser-mock.js +26 -15
  67. package/dist/{localTimeUtils-BsjK2bfg-C4-Oh9-d.js → localTimeUtils-DYizf_Fj-Cb46L6wi.js} +5 -5
  68. package/dist/main.js +4464 -4442
  69. package/dist/parameters.js +1 -1
  70. package/dist/src/components/ScriptingEditor.vue.d.ts +142 -0
  71. package/dist/src/components/ScriptingEditorBottomPane.vue.d.ts +3 -1
  72. package/dist/src/initial-data-service-browser-mock.d.ts +2 -1
  73. package/dist/src/initial-data-service.d.ts +1 -1
  74. package/dist/{toString-DJjlKbCy-DQPkzDF0.js → toString-NQDxp2E1-C7hE8Iv5.js} +1 -1
  75. package/dist/{useFileChooserBackend-Ev9D6Kfv.js → useFileChooserBackend-CjaL6jdf.js} +4 -4
  76. package/dist/{usePossibleValues-CJPCrHNK-DHhG_gUy.js → usePossibleValues-CYraIICE-CFGswSt6.js} +1 -1
  77. package/package.json +1 -1
  78. package/dist/Button-BfZfHt8q-BirQNc2F.js +0 -82
  79. package/dist/DBTableChooserControl-DTdniGQp.js +0 -590
  80. package/dist/DialogFileExplorer-B7Cpe71J.js +0 -381
  81. package/dist/FieldControl.vue_vue_type_script_setup_true_lang-D4UZciBE.js +0 -54
  82. package/dist/InputField-OKgaETDx-Bl4xhjBX.js +0 -147
  83. package/dist/LoadingIcon-DMHNXXmQ-C0oETzDr.js +0 -18
  84. package/dist/SectionHeading-ChmLXMcT-BN9ePDI7.js +0 -19
  85. package/dist/SectionLayout-DlR3VVwY-BlXU42ie.js +0 -46
  86. package/dist/SettingsSubPanel-BE_UKIFi-Dr8nIOON.js +0 -5
  87. package/dist/SettingsSubPanelLayout-DFSdKm29-DU902qHg.js +0 -73
  88. package/dist/SimpleButtonControl-0nEpHoVU-C6uROMT2.js +0 -61
  89. package/dist/TextControl-CgsdWiFw--tBiRYB9.js +0 -50
  90. package/dist/VerticalLayoutBase-DiZEVSbM-DWcX5yiG.js +0 -20
  91. package/dist/house-AV6qjkJW.js +0 -148
  92. package/dist/reload-eCPBqeDa-cbgKMmw1.js +0 -17
  93. package/dist/useBuiltinValidations-Dx6fNtgz-BMkbHnN7.js +0 -74
  94. /package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-McCAyYfA-BvrNkbR6.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-L5I6qYVS-BvrNkbR6.js} +0 -0
@@ -0,0 +1,520 @@
1
+ import { createElementBlock as g, openBlock as v, createElementVNode as b, inject as Fe, ref as f, provide as Ie, defineComponent as N, useTemplateRef as V, createBlock as L, unref as s, withCtx as y, createVNode as _, createTextVNode as W, createCommentVNode as D, toDisplayString as H, renderSlot as K, watch as M, onMounted as ye, computed as I, toRefs as be, toRef as we, Fragment as _e, resolveDynamicComponent as ge } from "vue";
2
+ import { Button as $, FunctionButton as xe, LoadingIcon as Oe, Breadcrumb as Re, InputField as Ee, FileExplorer as Te, Label as ke, ValueSwitch as Be } from "@knime/components";
3
+ import { _ as oe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ import { b as Le } from "./useFileChooserBackend-CjaL6jdf.js";
5
+ import { _ as Ce } from "./TextControl-kY3Ra8PG-y_70AOqk.js";
6
+ const De = {
7
+ xmlns: "http://www.w3.org/2000/svg",
8
+ fill: "none",
9
+ stroke: "#000",
10
+ "stroke-linejoin": "round",
11
+ viewBox: "0 0 32 32"
12
+ };
13
+ function Ve(l, o) {
14
+ return v(), g("svg", De, o[0] || (o[0] = [
15
+ b("path", { d: "M10.429 26.684h-7.91V5.075h9.051l4.613 6.001h13.298v15.608h-2.779m-5.234-.372 4.227 4.226m3.786-19.462V7.075H13.104" }, null, -1),
16
+ b("circle", {
17
+ cx: "17.997",
18
+ cy: "22.84",
19
+ r: "4.91"
20
+ }, null, -1)
21
+ ]));
22
+ }
23
+ const Me = { render: Ve }, j = {}, z = (l) => {
24
+ if (!(l in j)) {
25
+ const o = Symbol(l);
26
+ j[l] = o;
27
+ }
28
+ return j[l];
29
+ }, le = z(
30
+ "applyButtonInjectionKey"
31
+ ), ee = ({
32
+ key: l,
33
+ initialValue: o,
34
+ element: t
35
+ }) => {
36
+ const i = f(o.text), c = f(o.shown ?? !0), m = f(o.disabled ?? !1), u = f(), r = {
37
+ element: t,
38
+ disabled: m,
39
+ shown: c,
40
+ text: i,
41
+ onApply: u
42
+ };
43
+ return Ie(
44
+ l ? z(l) : le,
45
+ r
46
+ ), r;
47
+ }, te = (l) => Fe(l ? z(l) : le), Pe = { class: "bottom-buttons" }, ne = "goIntoFolderInjectionKey", Se = /* @__PURE__ */ N({
48
+ __name: "SettingsSubPanelForFileChooser",
49
+ props: {
50
+ showBackArrow: { type: Boolean, default: !1 }
51
+ },
52
+ emits: ["apply"],
53
+ setup(l, { emit: o }) {
54
+ const t = o, i = f(), c = () => {
55
+ var p;
56
+ (p = i.value) == null || p.close();
57
+ }, m = () => {
58
+ t("apply"), c();
59
+ }, r = V("applyButton"), {
60
+ text: x,
61
+ disabled: d,
62
+ onApply: h
63
+ } = ee({ element: r, initialValue: { text: "Apply" } }), E = "goIntoFolderButton", R = V(
64
+ E
65
+ ), {
66
+ text: T,
67
+ disabled: O,
68
+ shown: F,
69
+ onApply: B
70
+ } = ee({
71
+ key: ne,
72
+ element: R,
73
+ initialValue: {
74
+ text: "Open folder"
75
+ }
76
+ }), w = () => {
77
+ var p;
78
+ return (p = h.value) == null ? void 0 : p.call(h).then(m).catch(() => {
79
+ });
80
+ };
81
+ return (p, k) => (v(), L(s(Ce), {
82
+ ref_key: "settingsSubPanelRef",
83
+ ref: i,
84
+ "show-back-arrow": p.showBackArrow,
85
+ "hide-buttons-when-expanded": ""
86
+ }, {
87
+ "expand-button": y(({ expand: P }) => [
88
+ K(p.$slots, "expand-button", { expand: P }, void 0, !0)
89
+ ]),
90
+ default: y(() => [
91
+ K(p.$slots, "default", {
92
+ applyAndClose: w,
93
+ cancel: c
94
+ }, void 0, !0)
95
+ ]),
96
+ "bottom-content": y(() => [
97
+ b("div", Pe, [
98
+ _(s($), {
99
+ "with-border": "",
100
+ compact: "",
101
+ onClick: c
102
+ }, {
103
+ default: y(() => k[0] || (k[0] = [
104
+ W(" Cancel ", -1)
105
+ ])),
106
+ _: 1,
107
+ __: [0]
108
+ }),
109
+ b("div", null, [
110
+ s(F) ? (v(), L(s($), {
111
+ key: 0,
112
+ ref: E,
113
+ "with-border": "",
114
+ compact: "",
115
+ disabled: s(O),
116
+ onClick: s(B)
117
+ }, {
118
+ default: y(() => [
119
+ W(H(s(T)), 1)
120
+ ]),
121
+ _: 1
122
+ }, 8, ["disabled", "onClick"])) : D("", !0),
123
+ _(s($), {
124
+ ref_key: "applyButton",
125
+ ref: r,
126
+ compact: "",
127
+ primary: "",
128
+ disabled: s(d),
129
+ onClick: w
130
+ }, {
131
+ default: y(() => [
132
+ W(H(s(x)), 1)
133
+ ]),
134
+ _: 1
135
+ }, 8, ["disabled"])
136
+ ])
137
+ ])
138
+ ]),
139
+ _: 3
140
+ }, 8, ["show-back-arrow"]));
141
+ }
142
+ }), Ae = /* @__PURE__ */ oe(Se, [["__scopeId", "data-v-590f0c00"]]), ct = /* @__PURE__ */ N({
143
+ __name: "FileBrowserButton",
144
+ props: {
145
+ disabled: { type: Boolean }
146
+ },
147
+ emits: ["apply"],
148
+ setup(l, { emit: o }) {
149
+ const t = o;
150
+ return (i, c) => (v(), L(Ae, {
151
+ ref: "settings-panel",
152
+ onApply: c[0] || (c[0] = () => t("apply"))
153
+ }, {
154
+ "expand-button": y(({ expand: m }) => [
155
+ _(s(xe), {
156
+ class: "fit-content",
157
+ disabled: i.disabled,
158
+ primary: "",
159
+ onClick: m
160
+ }, {
161
+ default: y(() => [
162
+ _(s(Me))
163
+ ]),
164
+ _: 2
165
+ }, 1032, ["disabled", "onClick"])
166
+ ]),
167
+ default: y(({ applyAndClose: m, cancel: u }) => [
168
+ K(i.$slots, "default", {
169
+ applyAndClose: m,
170
+ cancel: u
171
+ })
172
+ ]),
173
+ _: 3
174
+ }, 512));
175
+ }
176
+ }), dt = ({
177
+ /**
178
+ * The onChange method that actually sets the value in the dialogs data.
179
+ */
180
+ onChange: l,
181
+ /**
182
+ * The value from this ref will be taken as initial value for
183
+ * the side drawer in the moment it is opened.
184
+ */
185
+ initialValue: o
186
+ }) => {
187
+ const t = f(o.value), i = (m) => {
188
+ t.value = m;
189
+ }, c = () => l(t.value);
190
+ return M(() => o.value, i), {
191
+ onApply: c,
192
+ sideDrawerValue: t,
193
+ updateSideDrawerValue: i
194
+ };
195
+ }, We = {
196
+ xmlns: "http://www.w3.org/2000/svg",
197
+ fill: "none",
198
+ stroke: "#000",
199
+ "stroke-linejoin": "round",
200
+ viewBox: "0 0 32 32"
201
+ };
202
+ function $e(l, o) {
203
+ return v(), g("svg", We, o[0] || (o[0] = [
204
+ b("path", { d: "M29.5 26.8h-27V5.2h9.1l4.6 6h13.3zm0-15.6v-4H13.1" }, null, -1)
205
+ ]));
206
+ }
207
+ const je = { render: $e }, He = {
208
+ xmlns: "http://www.w3.org/2000/svg",
209
+ fill: "none",
210
+ stroke: "#000",
211
+ "stroke-linejoin": "round",
212
+ viewBox: "0 0 32 32"
213
+ };
214
+ function Ke(l, o) {
215
+ return v(), g("svg", He, o[0] || (o[0] = [
216
+ b("path", { d: "M28.2 2.3h-5.6c-.7 0-1.2.5-1.2 1.2v5.6c0 .7.5 1.2 1.2 1.2h5.6c.7 0 1.2-.5 1.2-1.2V3.5c0-.6-.5-1.2-1.2-1.2zM9.4 11.9H3.8c-.7 0-1.2.5-1.2 1.2v5.6c0 .7.5 1.2 1.2 1.2h5.6c.7 0 1.2-.5 1.2-1.2v-5.6c0-.6-.6-1.2-1.2-1.2zm-6.5.4 7.3 7.3M21.7 2.7 29 10m-.8 11.5h-5.6c-.7 0-1.2.5-1.2 1.2v5.6c0 .7.5 1.2 1.2 1.2h5.6c.7 0 1.2-.5 1.2-1.2v-5.6c0-.7-.6-1.2-1.2-1.2zm-6.5.4 7.3 7.3M10.6 16h5.2V7.3c0-.6.4-1 1-1h4.7m-.1 19.2h-4.6c-.5 0-1-.4-1-1V16h-5.2" }, null, -1)
217
+ ]));
218
+ }
219
+ const Ne = { render: Ke }, ze = {
220
+ xmlns: "http://www.w3.org/2000/svg",
221
+ fill: "none",
222
+ stroke: "#000",
223
+ viewBox: "0 0 32 32"
224
+ };
225
+ function Ge(l, o) {
226
+ return v(), g("svg", ze, o[0] || (o[0] = [
227
+ b("path", {
228
+ "stroke-linejoin": "round",
229
+ d: "M26.025 11.441v14.141H16M6.183 11.441v14.141H11m0 0v-7.291h5v7.291m-5 0h5"
230
+ }, null, -1),
231
+ b("path", {
232
+ "stroke-linejoin": "round",
233
+ d: "m29.654 14.55-5.583-4.759v-5.5H21v2.882L16.104 3 2.554 14.55"
234
+ }, null, -1)
235
+ ]));
236
+ }
237
+ const Ue = { render: Ge }, Je = {
238
+ xmlns: "http://www.w3.org/2000/svg",
239
+ fill: "none",
240
+ stroke: "#000",
241
+ "stroke-linejoin": "round",
242
+ viewBox: "0 0 32 32"
243
+ };
244
+ function Ye(l, o) {
245
+ return v(), g("svg", Je, o[0] || (o[0] = [
246
+ b("path", { d: "m21.156 2.5 5.423 5.423h-5.423zm5.423 27H5.421v-27h15.735l5.423 5.423zM16.447 11.489H8.756m9.249-2.978H8.756m7.691 8.926H8.756m9.249-2.975H8.756" }, null, -1)
247
+ ]));
248
+ }
249
+ const qe = { render: Ye }, Qe = (l) => ({
250
+ getItemIcon: (t) => t.isDirectory ? je : l.value ? Ne : qe
251
+ }), Xe = (l) => ({
252
+ isDirectory: l.isDirectory,
253
+ id: l.name,
254
+ name: l.name,
255
+ isOpen: !1,
256
+ isOpenableFile: !0,
257
+ canBeRenamed: !1,
258
+ canBeDeleted: !1,
259
+ ...l.isDisabledDirectory ? { disabled: !0 } : {}
260
+ }), Ze = ({
261
+ actions: { chooseSelectedItem: l, goIntoSelectedFolder: o },
262
+ selectionMode: t,
263
+ selectedItem: i,
264
+ isRootParent: c
265
+ }) => {
266
+ const {
267
+ element: m,
268
+ disabled: u,
269
+ text: r,
270
+ onApply: x
271
+ } = te(), {
272
+ element: d,
273
+ disabled: h,
274
+ onApply: E,
275
+ shown: R
276
+ } = te(ne);
277
+ ye(() => {
278
+ x.value = l, R.value = !0, h.value = !0, E.value = () => o();
279
+ });
280
+ const T = I(() => [
281
+ m,
282
+ d
283
+ ]);
284
+ return M(
285
+ [i, t, c],
286
+ ([O, F, B]) => {
287
+ F === "FILE" ? r.value = "Choose file" : F === "WORKFLOW" ? r.value = "Choose workflow" : r.value = "Choose folder";
288
+ const w = F === "FILE" || F === "WORKFLOW", p = F === "FOLDER";
289
+ O ? O.selectionType === "FILE" ? (u.value = p, h.value = !0, F === "FILE_OR_FOLDER" && (r.value = "Choose file")) : O.selectionType === "FOLDER" ? (u.value = w, h.value = !1) : O.selectionType === "FILE_OR_FOLDER" && (u.value = !1, h.value = !0, r.value = "Choose") : (h.value = !0, u.value = w || B);
290
+ },
291
+ { immediate: !0 }
292
+ ), {
293
+ clickOutsideExceptions: T,
294
+ goIntoFolderButtonShown: R
295
+ };
296
+ }, et = {
297
+ key: 0,
298
+ class: "loading-animation"
299
+ }, tt = { class: "current-path" }, ot = {
300
+ key: 0,
301
+ class: "error"
302
+ }, lt = {
303
+ key: 0,
304
+ class: "name-input-wrapper"
305
+ }, nt = /* @__PURE__ */ N({
306
+ __name: "DialogFileExplorer",
307
+ props: {
308
+ initialFilePath: { default: "" },
309
+ isWriter: { type: Boolean, default: !1 },
310
+ filteredExtensions: { default: () => [] },
311
+ appendedExtension: { default: null },
312
+ backendType: {},
313
+ breadcrumbRoot: { default: null },
314
+ selectionMode: { default: "FILE" },
315
+ relativeToOptions: {}
316
+ },
317
+ emits: ["chooseItem", "update:isRelativeTo", "applyAndClose", "cancel", "navigate"],
318
+ setup(l, { emit: o }) {
319
+ const t = l, i = o, c = I({
320
+ get: () => {
321
+ var e;
322
+ return (e = t.relativeToOptions) != null && e.isRelativeTo ? "RELATIVE" : "ROOT";
323
+ },
324
+ set: (e) => i("update:isRelativeTo", e === "RELATIVE")
325
+ }), m = I(
326
+ () => t.relativeToOptions ? [
327
+ {
328
+ id: "ROOT",
329
+ text: t.relativeToOptions.rootLabel
330
+ },
331
+ {
332
+ id: "RELATIVE",
333
+ text: t.relativeToOptions.relativeRootLabel
334
+ }
335
+ ] : []
336
+ ), u = I(() => t.relativeToOptions && c.value === "RELATIVE" ? t.relativeToOptions.relativeToPath : null), r = f(null), x = f([]), d = f(null), h = f([]), E = {
337
+ FILE: ["FILE"],
338
+ FOLDER: ["FOLDER"],
339
+ FILE_OR_FOLDER: ["FILE", "FOLDER", "FILE_OR_FOLDER"],
340
+ WORKFLOW: ["FILE"]
341
+ }, R = I(
342
+ () => E[t.selectionMode]
343
+ ), T = I(
344
+ () => h.value.map((e) => ({
345
+ ...e,
346
+ disabled: e.disabled || !R.value.includes("FILE") && !e.isDirectory
347
+ }))
348
+ ), O = I(
349
+ () => x.value.map((e, n) => {
350
+ var Z;
351
+ let a = e.name, C = null;
352
+ return typeof a != "string" && ((Z = t.relativeToOptions) != null && Z.relativeRootIcon && e.path === t.relativeToOptions.relativeToPath ? C = t.relativeToOptions.relativeRootIcon : e.path === null ? t.breadcrumbRoot === null ? C = Ue : a = t.breadcrumbRoot : a = e.path), {
353
+ ...a === null ? {} : { text: a },
354
+ title: a ?? "Root",
355
+ path: e.path,
356
+ clickable: n !== x.value.length - 1,
357
+ ...C ? { icon: C } : {}
358
+ };
359
+ })
360
+ ), F = f(!0), B = (e) => {
361
+ F.value = !1, r.value = e.path, x.value = e.parentFolders, h.value = e.items.map(Xe);
362
+ }, w = f(null), p = (e) => {
363
+ w.value = e ?? null;
364
+ }, k = I({
365
+ get: () => {
366
+ const e = d.value;
367
+ return e && R.value.includes(e.selectionType) ? e.name : "";
368
+ },
369
+ set: (e) => {
370
+ if (e === "") {
371
+ d.value = null;
372
+ return;
373
+ }
374
+ d.value = {
375
+ name: e,
376
+ selectionType: t.selectionMode === "WORKFLOW" ? "FILE" : t.selectionMode
377
+ };
378
+ }
379
+ }), P = (e) => {
380
+ t.isWriter && (k.value = e);
381
+ }, G = (e) => {
382
+ if (!e) {
383
+ p("Failed to load items"), i("cancel");
384
+ return;
385
+ }
386
+ B(e.folder), p(e.errorMessage), P(e.filePathRelativeToFolder), i("navigate", e.folder.path);
387
+ }, { filteredExtensions: se, appendedExtension: ae, isWriter: U, backendType: J } = be(t), Y = I(() => t.selectionMode === "WORKFLOW"), { listItems: S, getFilePath: ie, resolveRelativePath: re } = Le({
388
+ filteredExtensions: se,
389
+ appendedExtension: ae,
390
+ isWriter: U,
391
+ isWorkflowFilterMode: Y,
392
+ backendType: J
393
+ }), { getItemIcon: ue } = Qe(Y), q = (e, n = null) => {
394
+ d.value = null, F.value = !0, S(e, n, u.value).then(G);
395
+ }, Q = (e) => q(r.value, e), ce = ({ path: e }) => q(e ?? null), de = async (e) => {
396
+ const { path: n, errorMessage: a } = await ie(
397
+ r.value,
398
+ e,
399
+ u.value
400
+ );
401
+ return n === null ? (p(a), Promise.reject(a)) : (i("chooseItem", n), Promise.resolve());
402
+ }, X = (e) => {
403
+ if (e.length === 0) {
404
+ d.value = null;
405
+ return;
406
+ }
407
+ const n = T.value.find(
408
+ ({ id: a }) => a === e[0]
409
+ );
410
+ n.isDirectory ? d.value = {
411
+ name: n.name,
412
+ selectionType: "FOLDER"
413
+ } : d.value = {
414
+ name: n.name,
415
+ selectionType: "FILE"
416
+ };
417
+ }, pe = V("input-field"), ve = V("relative-to-label"), { clickOutsideExceptions: me } = Ze({
418
+ actions: {
419
+ chooseSelectedItem: () => {
420
+ var e;
421
+ return de(((e = d.value) == null ? void 0 : e.name) ?? "");
422
+ },
423
+ goIntoSelectedFolder: () => {
424
+ var e;
425
+ return ((e = d.value) == null ? void 0 : e.selectionType) === "FOLDER" && Q(d.value.name), Promise.resolve();
426
+ }
427
+ },
428
+ selectionMode: we(t, "selectionMode"),
429
+ selectedItem: d,
430
+ isRootParent: I(() => r.value === null)
431
+ }), fe = I(() => [
432
+ ...me.value,
433
+ pe,
434
+ ve
435
+ ]), he = (e) => {
436
+ X([e.id]), i("applyAndClose");
437
+ }, A = f(!1);
438
+ return M(
439
+ () => J.value,
440
+ async () => {
441
+ var n;
442
+ A.value = !1;
443
+ let e = t.initialFilePath;
444
+ u.value && ((n = t.relativeToOptions) != null && n.initialFilePathIsRelative) && (e = await re(e, u.value)), S(null, e, u.value).then((a) => {
445
+ G(a), A.value = !0;
446
+ });
447
+ },
448
+ { immediate: !0 }
449
+ ), M(
450
+ () => u.value,
451
+ () => A.value && S(r.value, null, u.value).then((e) => {
452
+ x.value = e.folder.parentFolders;
453
+ })
454
+ ), (e, n) => F.value ? (v(), g("div", et, [
455
+ _(s(Oe), { class: "icon" })
456
+ ])) : (v(), g(_e, { key: 1 }, [
457
+ b("div", tt, [
458
+ _(s(Re), {
459
+ class: "breadcrumb",
460
+ items: O.value,
461
+ "no-wrap": "",
462
+ compact: "",
463
+ onClickItem: ce
464
+ }, null, 8, ["items", "onClickItem"]),
465
+ w.value !== null ? (v(), g("span", ot, "(" + H(w.value) + ")", 1)) : D("", !0)
466
+ ]),
467
+ s(U) ? (v(), g("div", lt, [
468
+ n[2] || (n[2] = b("span", null, "Name:", -1)),
469
+ _(s(Ee), {
470
+ ref: "input-field",
471
+ modelValue: k.value,
472
+ "onUpdate:modelValue": n[0] || (n[0] = (a) => k.value = a),
473
+ compact: ""
474
+ }, null, 8, ["modelValue"])
475
+ ])) : D("", !0),
476
+ _(s(Te), {
477
+ class: "explorer",
478
+ "is-root-folder": r.value === null,
479
+ items: T.value,
480
+ "disable-context-menu": !0,
481
+ "disable-multi-select": !0,
482
+ "disable-dragging": !0,
483
+ "click-outside-exceptions": fe.value,
484
+ onChangeDirectory: Q,
485
+ onOpenFile: he,
486
+ "onUpdate:selectedItemIds": X
487
+ }, {
488
+ itemIcon: y(({ item: a }) => [
489
+ (v(), L(ge(s(ue)(a))))
490
+ ]),
491
+ _: 1
492
+ }, 8, ["is-root-folder", "items", "click-outside-exceptions"]),
493
+ e.relativeToOptions ? (v(), L(s(ke), {
494
+ key: 1,
495
+ ref: "relative-to-label",
496
+ class: "relative-to-option",
497
+ text: "Choose relative to"
498
+ }, {
499
+ default: y(() => [
500
+ _(s(Be), {
501
+ modelValue: c.value,
502
+ "onUpdate:modelValue": n[1] || (n[1] = (a) => c.value = a),
503
+ "possible-values": m.value,
504
+ compact: ""
505
+ }, null, 8, ["modelValue", "possible-values"])
506
+ ]),
507
+ _: 1
508
+ }, 512)) : D("", !0)
509
+ ], 64));
510
+ }
511
+ }), pt = /* @__PURE__ */ oe(nt, [["__scopeId", "data-v-f01e5df5"]]);
512
+ export {
513
+ pt as D,
514
+ je as F,
515
+ ne as G,
516
+ Ne as W,
517
+ ct as _,
518
+ te as a,
519
+ dt as u
520
+ };
@@ -3,9 +3,9 @@ import { h as te, v as se, V as R, F, O as I, o as ae, Z as le, $ as oe } from "
3
3
  import { i as ie } from "./arrow-dropdown-BHK4j8GT-uCJYJfqE.js";
4
4
  import { i as ne } from "./close-W1x27NhZ-BUMfGLkd.js";
5
5
  import { S as re } from "./useSearch-hpyYQ_6y-BgGbVTm1.js";
6
- import { X as de, Q as ue, r as ce } from "./parameters-TDvh_VJm.js";
6
+ import { X as de, Q as ue, r as ce } from "./TextControl-kY3Ra8PG-y_70AOqk.js";
7
7
  import { a as pe } from "./hotkeys-rxnt4egK-Cv-woIT1.js";
8
- import { q as he, H as fe, J as me, z as ge, c as Ve, e as ye, X as ve } from "./_getTag-DTjoqLoo-DzAcUcW_.js";
8
+ import { q as he, H as fe, J as me, z as ge, c as Ve, e as ye, X as ve } from "./_getTag-DuCXbcgW-CSxZDqyE.js";
9
9
  import { r as we } from "./isArray-WzO_os3q-FebMbKyC.js";
10
10
  var xe = "[object Map]", be = "[object Set]", Ee = Object.prototype, Se = Ee.hasOwnProperty;
11
11
  function Ce(e) {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as r, toRef as c, computed as n, createBlock as t, openBlock as u, unref as s } from "vue";
2
- import { t as m } from "./usePossibleValues-CJPCrHNK-DHhG_gUy.js";
3
- import { P as v } from "./LoadingDropdown-edN4VitH-R3y6kvlb.js";
4
- import { w as b } from "./InputField-OKgaETDx-Bl4xhjBX.js";
2
+ import { t as m } from "./usePossibleValues-CYraIICE-CFGswSt6.js";
3
+ import { P as v } from "./LoadingDropdown--cwIsJdm-Dc7B20ml.js";
4
+ import { w as b } from "./TextControl-kY3Ra8PG-y_70AOqk.js";
5
5
  const y = /* @__PURE__ */ r({
6
6
  __name: "DropdownControl",
7
7
  props: {
@@ -1,5 +1,5 @@
1
- import { provide as m, defineComponent as T, computed as i, watch as S, createBlock as N, createCommentVNode as O, unref as f, openBlock as W } from "vue";
2
- import { v as g, L as _, a7 as y, a8 as C, a9 as F, H as J } from "./parameters-TDvh_VJm.js";
1
+ import { provide as m, defineComponent as T, computed as i, watch as S, createBlock as N, createCommentVNode as C, unref as f, openBlock as O } from "vue";
2
+ import { C as g, L as W, E as y, H as _, N as F, S as J } from "./TextControl-kY3Ra8PG-y_70AOqk.js";
3
3
  const P = (n) => {
4
4
  const e = "addStateProviderListener", u = g(e);
5
5
  m(e, (s, d) => u(
@@ -38,7 +38,7 @@ const P = (n) => {
38
38
  onRegisterValidation: { type: Function }
39
39
  },
40
40
  setup(n) {
41
- const e = n, u = i(() => e.control.uischema), a = _(
41
+ const e = n, u = i(() => e.control.uischema), a = W(
42
42
  u,
43
43
  "dynamicSettings",
44
44
  {}
@@ -97,7 +97,7 @@ const P = (n) => {
97
97
  v,
98
98
  (t, r) => {
99
99
  if (r) {
100
- C(r);
100
+ _(r);
101
101
  return;
102
102
  }
103
103
  h.value !== null && (o.value !== null && (p == null || p({
@@ -117,12 +117,12 @@ const P = (n) => {
117
117
  JSON.stringify(r) !== JSON.stringify(e.control.data) && e.changeValue(r);
118
118
  }), (t, r) => {
119
119
  var I;
120
- return (I = f(a)) != null && I.uiSchema ? (W(), N(f(J), {
120
+ return (I = f(a)) != null && I.uiSchema ? (O(), N(f(J), {
121
121
  key: 0,
122
122
  uischema: s.value,
123
123
  schema: d.value,
124
124
  path: e.control.path
125
- }, null, 8, ["uischema", "schema", "path"])) : O("", !0);
125
+ }, null, 8, ["uischema", "schema", "path"])) : C("", !0);
126
126
  };
127
127
  }
128
128
  });
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as r, createBlock as p, openBlock as l, mergeProps as c } from "vue";
2
- import { A as s } from "./parameters-TDvh_VJm.js";
3
- import { F as h } from "./FileChooserControlBase-Nc6m3y66.js";
2
+ import { B as s } from "./TextControl-kY3Ra8PG-y_70AOqk.js";
3
+ import { F as h } from "./FileChooserControlBase-CErQoQLH.js";
4
4
  const g = /* @__PURE__ */ r({
5
5
  __name: "FileChooserControl",
6
6
  props: {