@knime/scripting-editor 0.0.124 → 0.0.126

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 (87) hide show
  1. package/dist/{AnyOfTwinlist-By12blUM-C3JKalWM.js → AnyOfTwinlist-C0gjxeQW-DdmyqOPW.js} +1 -1
  2. package/dist/{ArrayLayout-C5yFgV8Q.js → ArrayLayout-0R2_c1hY.js} +193 -155
  3. package/dist/{ButtonControl-cBR6Ne7s.js → ButtonControl-CAZYfYSF.js} +1 -1
  4. package/dist/{CheckboxControl--qMC4yqR-CgacSNSR.js → CheckboxControl-CS6iXHnF-aIaqHkPz.js} +1 -1
  5. package/dist/{CheckboxesControl-BsOG-QR8-DdSUICiM.js → CheckboxesControl-CPKIkyWt-Dfc5NCOp.js} +2 -2
  6. package/dist/{CodeEditorControl-BmA6cWok.js → CodeEditorControl-BfC_vRfK.js} +1 -1
  7. package/dist/{ColorControl-BX93RNbV-Bg6FmjdB.js → ColorControl-DeSwgyjS-D4t0Ool5.js} +1 -1
  8. package/dist/{ColorPreviewControl-CFVeFXBp-BNXlVoi9.js → ColorPreviewControl-CntI0nTL-B4W3C2Y0.js} +10 -10
  9. package/dist/{ComboBoxControl-M5HOJcy2-DVXiZQvt.js → ComboBoxControl-DBYnBkC4-YvQjV2xd.js} +4 -4
  10. package/dist/{ConfigurationNodeNotSupported-Dh2xU1UF.js → ConfigurationNodeNotSupported-DlGIHCIw.js} +1 -1
  11. package/dist/{ControlWithSubParameters-D0qNx3y-.js → ControlWithSubParameters-yO5GSBha.js} +8 -8
  12. package/dist/{CredentialsControl-CwZxixjM.js → CredentialsControl-BUdDVnKd.js} +2 -2
  13. package/dist/{CredentialsControlBase-BwUZOe-t.js → CredentialsControlBase-CtiUUF6O.js} +8 -8
  14. package/dist/{DateControl-PYVPxPvC-BzWQEGvR.js → DateControl-Cx_CwvNB-C6ZnNH2a.js} +1 -1
  15. package/dist/{DateTimeControl-_8d8iizh-DqQwphIF.js → DateTimeControl-BJsDzufC-BmyUPQid.js} +1 -1
  16. package/dist/{DateTimeFormatPickerControl-xRNNTLIl-DJ3bbKY3.js → DateTimeFormatPickerControl-C80v1qfK-CksyyT9D.js} +8 -8
  17. package/dist/{DateTimeFormatPickerWithTypeControl-CZZBe3PC-LTeHxr8D.js → DateTimeFormatPickerWithTypeControl-Dt-FKtYV-gb4KLPWO.js} +23 -23
  18. package/dist/{DialogFileExplorer-D6KGXnvM.js → DialogFileExplorer-LqJqncub.js} +201 -216
  19. package/dist/{DirtyTrackerRenderer-B5cH2aL8.js → DirtyTrackerRenderer-UW-Cxf7s.js} +2 -2
  20. package/dist/{DropdownControl-sGxFWX33-ByFZSZbg.js → DropdownControl-D_BnA4-1-CZ3UBEZH.js} +2 -2
  21. package/dist/DynamicInputControl-BW5MedWv.js +6 -0
  22. package/dist/{ExecutorCoresControl-6DB4hS8_-BhtGiSqF.js → ExecutorCoresControl-BnglyGMR-DCluaRJt.js} +19 -14
  23. package/dist/{ExecutorMemoryControl-xKHl7IXW-D0e7o4CL.js → ExecutorMemoryControl-CRATGs9C-BVornFOp.js} +2 -2
  24. package/dist/{FileChooserControl-DnRohPCZ.js → FileChooserControl-D3xMMTLF.js} +2 -2
  25. package/dist/FileChooserControlBase-CI3pdTpr.js +544 -0
  26. package/dist/{FileChooserControlForMultiFile-CMhiNDSM.js → FileChooserControlForMultiFile-DuAaeTcz.js} +1 -1
  27. package/dist/{FileUploadControl-Bjgh9vSl-CPHxxVRA.js → FileUploadControl-D42rjpJg-BV-xemVF.js} +35 -34
  28. package/dist/{GridSelectionControl-DslOwaNV-B9aCP6XX.js → GridSelectionControl-BJk8-yiM-B-qEAJYS.js} +18 -18
  29. package/dist/{HorizontalLayout-Dl9cC50s-CTgzEebl.js → HorizontalLayout-DwdPdBTW-DNqvkBZ6.js} +1 -1
  30. package/dist/{IntegerControl-DSzPJs4Z-zZCQlr8l.js → IntegerControl-D8OzxbRA-DLAl4Ar6.js} +1 -1
  31. package/dist/{IntervalControl-DoWDLPMP-fal6DeXs.js → IntervalControl-Drljrv-b-HGlNWiOa.js} +32 -32
  32. package/dist/{LabeledGroup-zL2NOk09.js → LabeledGroup-CGcLflGw.js} +1 -1
  33. package/dist/{LegacyCredentialsControl-CtqcCnFx.js → LegacyCredentialsControl-SuSGcr6Q.js} +2 -2
  34. package/dist/{LinkControl-BuYI03b_-NJ2s5Dca.js → LinkControl-BvBBTFCs-B4x8DZjr.js} +12 -12
  35. package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-DZ90-rk8-BdWmR-eL.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-BLSG6Lpo-DtWE26ZK.js} +1 -1
  36. package/dist/{ManualTwinlistControl-mN3zJTMK-DGwdr0zl.js → ManualTwinlistControl-By0Hur_m-CZ6mwit-.js} +7 -7
  37. package/dist/MultiFileChooserControl-CnC8Sgqt.js +401 -0
  38. package/dist/{MultiRuleWrapper-D5aY3_UC.js → MultiRuleWrapper-BYA-GGQr.js} +1 -1
  39. package/dist/{MultiSelectListBoxControl-CnSublPM-B1j0ZME0.js → MultiSelectListBoxControl-nmvLP18g-fumwGYev.js} +3 -3
  40. package/dist/{MultimodeTwinlistControl-CyZQ54SO-DT50Fro-.js → MultimodeTwinlistControl-yCdeWH2E-BiXMa7PW.js} +14 -14
  41. package/dist/{NameFilter-C1u8qsYQ-BAjFRRWl.js → NameFilter-D1TMJydD-fZcEEzXz.js} +1 -1
  42. package/dist/{NumberControl-qiTgXs6x-LVbM4M31.js → NumberControl-uLMOLEbg-DEvsj1Mn.js} +1 -1
  43. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-Bs-H6e08-CV_OeWxc.js → NumberControlBase.vue_vue_type_script_setup_true_lang-VVQDBYw7-DCpZfhmB.js} +3 -3
  44. package/dist/{OneOfDropdown-Dn6QM81--CwMpXCXg.js → OneOfDropdown-CDwwxb3h-1Z26R3-a.js} +4 -4
  45. package/dist/{RadioButtonsWithDescriptionControl-1X9F9obn-CPDfho0i.js → RadioButtonsWithDescriptionControl-5M_6G7Qk-ChulOTPN.js} +1 -1
  46. package/dist/{RadioControl-BdHtNPFC-vdjL0p2Z.js → RadioControl-C73s-icb-BvMjmtnc.js} +2 -2
  47. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-Cp22r9KZ-BLsCS6ST.js → RadioControlBase.vue_vue_type_script_setup_true_lang-BScekfhl-Cu_jwWBt.js} +4 -4
  48. package/dist/{ResourceControlBase-CDpi3J6s-D0LxAMCa.js → ResourceControlBase-Bqq1PAX_-Dr521i_s.js} +14 -14
  49. package/dist/{RichTextControl-5o904Fvx-CVqBj3Wi.js → RichTextControl-D9QD2_uO-XEpxJaH_.js} +7 -7
  50. package/dist/{SectionLayout-B9X7fzQ9-weWE29yL.js → SectionLayout-DY27pAtG-D9m5lyoN.js} +1 -1
  51. package/dist/{SettingsSubPanelLayout-D8j0-HKD-D2KHKfX_.js → SettingsSubPanelLayout-82gMWhpv-CmIBNBVs.js} +15 -15
  52. package/dist/{SimpleTwinlistControl-RlnzOp0j-IrHSl4XC.js → SimpleTwinlistControl-P4KEYOq0-RZuXJS5p.js} +2 -2
  53. package/dist/{SingleSelectControl-DPPwJUq3-IYYZ7X-L.js → SingleSelectControl-C_ZKkV5m-DnVAQEBt.js} +2 -2
  54. package/dist/{SingleSelectListBoxControl-EMc8u2ik-DEMnwGWh.js → SingleSelectListBoxControl-oMWH0vEE-CozC-ARB.js} +3 -3
  55. package/dist/{SortListControl-Bw3K37ru-C20fveDO.js → SortListControl-4v3T2j_9-Dd2NciQI.js} +15 -15
  56. package/dist/{StringFileChooserControl-DMBzTIng.js → StringFileChooserControl-CbuY9W_N.js} +19 -19
  57. package/dist/{StyledListItem-Bli2itH--DzQz0VeI.js → StyledListItem-D3LSfgGV-D8iKceFt.js} +1 -1
  58. package/dist/{TeamAndSpacesControl-BlvUuAAA-B1V6iD1Z.js → TeamAndSpacesControl-CH5ImByy-XXNR9HMn.js} +9 -9
  59. package/dist/{TeamResourceControl-DuLmQ7gc-DGpH70FI.js → TeamResourceControl-BFMuyWnk-BjuVm4u6.js} +2 -2
  60. package/dist/{TextAreaControl-DtfB44mR-Bwogmc7W.js → TextAreaControl-CrsZSU_f-D43BOhiB.js} +1 -1
  61. package/dist/{TextControl-BlUQLMGo-CSdt3hw2.js → TextControl-B0ag-3Pv-CVDIw3MG.js} +21367 -20513
  62. package/dist/{TimeControl-DWzlpLX--DVTcWUBt.js → TimeControl-Bt5OcjBc-Bb-uwA5L.js} +1 -1
  63. package/dist/{TimePartInput-CRP2YYM0-CbQSqTuJ.js → TimePartInput-CvwAzDuY-BVy_Fjvr.js} +1 -1
  64. package/dist/{TimeframesControl-O_hzJcX5-DXtgwxa_.js → TimeframesControl-BE3LFgyl-BlMPvvjh.js} +2 -2
  65. package/dist/{Tooltip-C9vAa0Wb-DNgF-D1Q.js → Tooltip-UlemzxdS-CT790DKa.js} +1 -1
  66. package/dist/{TwinlistControlBase.vue_vue_type_script_setup_true_lang-DtphbKhB-BhwFw0-m.js → TwinlistControlBase.vue_vue_type_script_setup_true_lang-B5lCsIOD-DoWlznIt.js} +2 -2
  67. package/dist/{TypedStringFilter-ByeMPxR6-CCQ4uw8i.js → TypedStringFilter-ry7fTUTx-BqgMPUbD.js} +1 -1
  68. package/dist/{ValueSwitch-BV9qUd5x-CEiCBY-I.js → ValueSwitch-BXaDBm2C-CKjAMq9f.js} +2 -2
  69. package/dist/{ValueSwitchControl-nW7WtSSM-D2W0Q4QS.js → ValueSwitchControl-aVx7pUi9-BQVaMPgo.js} +1 -1
  70. package/dist/{VennDiagramLayout-CGbt8VwT.js → VennDiagramLayout-Bh7M9sdS.js} +1 -1
  71. package/dist/{VerticalLayout-C7_-yu_D-ODUVb0PV.js → VerticalLayout-Bv-LJOZ0-Bhthjlig.js} +1 -1
  72. package/dist/{ZonedDateTimeControl-DlrvZKe4-zaxSf2EX.js → ZonedDateTimeControl-6MUvXzd3-CoRMMPNO.js} +5 -5
  73. package/dist/{_Uint8Array-BESS0YjU-BkSYIhdG.js → _Uint8Array-C_ozLuQF-D-SZhESZ.js} +42 -42
  74. package/dist/lib/main.d.ts +1 -2
  75. package/dist/{localTimeUtils-Bl9xa5Jk-CrPaYHbw.js → localTimeUtils-DBMwKtLh-C93hA6Y8.js} +5 -5
  76. package/dist/main.js +8280 -7586
  77. package/dist/parameters.js +1 -1
  78. package/dist/{toString-DXFebvWA-Drhydq_D.js → toString-C-CNeuJl-BV68kR4E.js} +1 -1
  79. package/dist/{useFileChooserBackend-D0qgqkW_.js → useFileChooserBackend-Cf-ZWfup.js} +1 -1
  80. package/dist/usePossibleValues-B-W6u-1T-CRO8qQzd.js +20 -0
  81. package/package.json +9 -9
  82. package/dist/DynamicInputControl-D59lIyv6.js +0 -6
  83. package/dist/FileChooserControlBase-Bzweo0oX.js +0 -613
  84. package/dist/MultiFileChooserControl-CZeL4h0p.js +0 -426
  85. package/dist/src/components/CompactTabBar.vue.d.ts +0 -45
  86. package/dist/usePossibleValues-B8es3DCW-CX4w2_Zt.js +0 -20
  87. /package/dist/{useUnknownValuesInTwinlist-qv0kKHaD-D2ve7iXH.js → useUnknownValuesInTwinlist-BbwGcno5-D2ve7iXH.js} +0 -0
@@ -1,152 +1,138 @@
1
- import { inject as Ie, ref as p, provide as be, defineComponent as G, useTemplateRef as S, createBlock as C, openBlock as F, unref as i, withCtx as b, createElementVNode as R, createVNode as g, createTextVNode as $, createCommentVNode as A, toDisplayString as H, renderSlot as z, watch as D, createElementBlock as T, onMounted as _e, computed as y, toRefs as Oe, toRef as Re, Fragment as Ee, resolveDynamicComponent as ge } from "vue";
2
- import { M as Te, aB as Le } from "./TextControl-BlUQLMGo-CSdt3hw2.js";
3
- import { _ as le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import { Button as K, LoadingIcon as xe, Breadcrumb as we, InputField as ke, FileExplorer as Be, Label as De, ValueSwitch as Ce } from "@knime/components";
5
- import { b as Me } from "./useFileChooserBackend-D0qgqkW_.js";
6
- const j = {}, U = (o) => {
7
- if (!(o in j)) {
8
- const l = Symbol(o);
9
- j[o] = l;
1
+ import { inject as he, ref as p, provide as ye, defineComponent as z, useTemplateRef as V, createBlock as C, openBlock as F, unref as i, withCtx as x, createElementVNode as O, createVNode as E, createCommentVNode as A, renderSlot as j, watch as D, createElementBlock as _, onMounted as be, computed as y, toRefs as Ie, toRef as Oe, Fragment as Re, toDisplayString as Ee, resolveDynamicComponent as _e } from "vue";
2
+ import { _ as ge, aB as S, aP as Le } from "./TextControl-B0ag-3Pv-CVDIw3MG.js";
3
+ import { _ as te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ import { LoadingIcon as Te, Breadcrumb as xe, InputField as ke, FileExplorer as we, Label as Be } from "@knime/components";
5
+ import { b as De } from "./useFileChooserBackend-Cf-ZWfup.js";
6
+ const N = {}, H = (l) => {
7
+ if (!(l in N)) {
8
+ const o = Symbol(l);
9
+ N[l] = o;
10
10
  }
11
- return j[o];
12
- }, ne = U(
11
+ return N[l];
12
+ }, le = H(
13
13
  "applyButtonInjectionKey"
14
- ), te = ({
15
- key: o,
16
- initialValue: l,
14
+ ), Z = ({
15
+ key: l,
16
+ initialValue: o,
17
17
  element: t
18
18
  }) => {
19
- const s = p(l.text), u = p(l.shown ?? !0), f = p(l.disabled ?? !1), v = p(), c = {
19
+ const s = p(o.text), u = p(o.shown ?? !0), f = p(o.disabled ?? !1), v = p(), c = {
20
20
  element: t,
21
21
  disabled: f,
22
22
  shown: u,
23
23
  text: s,
24
24
  onApply: v
25
25
  };
26
- return be(
27
- o ? U(o) : ne,
26
+ return ye(
27
+ l ? H(l) : le,
28
28
  c
29
29
  ), c;
30
- }, oe = (o) => Ie(o ? U(o) : ne), Pe = { class: "bottom-buttons" }, se = "goIntoFolderInjectionKey", Ae = /* @__PURE__ */ G({
30
+ }, ee = (l) => he(l ? H(l) : le), Ce = { class: "bottom-buttons" }, oe = "goIntoFolderInjectionKey", Me = /* @__PURE__ */ z({
31
31
  __name: "SettingsSubPanelForFileChooser",
32
32
  props: {
33
33
  showBackArrow: { type: Boolean, default: !1 }
34
34
  },
35
35
  emits: ["apply"],
36
- setup(o, { emit: l }) {
37
- const t = l, s = p(), u = () => {
36
+ setup(l, { emit: o }) {
37
+ const t = o, s = p(), u = () => {
38
38
  var d;
39
39
  (d = s.value) == null || d.close();
40
40
  }, f = () => {
41
41
  t("apply"), u();
42
- }, c = S("applyButton"), {
42
+ }, c = V("applyButton"), {
43
43
  text: h,
44
- disabled: w,
44
+ disabled: k,
45
45
  onApply: m
46
- } = te({ element: c, initialValue: { text: "Apply" } }), r = "goIntoFolderButton", k = S(
46
+ } = Z({ element: c, initialValue: { text: "Apply" } }), r = "goIntoFolderButton", w = V(
47
47
  r
48
48
  ), {
49
49
  text: B,
50
- disabled: L,
51
- shown: _,
52
- onApply: I
53
- } = te({
54
- key: se,
55
- element: k,
50
+ disabled: g,
51
+ shown: I,
52
+ onApply: b
53
+ } = Z({
54
+ key: oe,
55
+ element: w,
56
56
  initialValue: {
57
57
  text: "Open folder"
58
58
  }
59
- }), E = () => {
59
+ }), R = () => {
60
60
  var d;
61
61
  return (d = m.value) == null ? void 0 : d.call(m).then(f).catch(() => {
62
62
  });
63
63
  };
64
- return (d, O) => (F(), C(i(Te), {
64
+ return (d, L) => (F(), C(i(ge), {
65
65
  ref_key: "settingsSubPanelRef",
66
66
  ref: s,
67
67
  "show-back-arrow": d.showBackArrow,
68
68
  "hide-buttons-when-expanded": ""
69
69
  }, {
70
- "expand-button": b(({ expand: x }) => [
71
- z(d.$slots, "expand-button", { expand: x }, void 0, !0)
70
+ "expand-button": x(({ expand: T }) => [
71
+ j(d.$slots, "expand-button", { expand: T }, void 0, !0)
72
72
  ]),
73
- default: b(() => [
74
- z(d.$slots, "default", {
75
- applyAndClose: E,
73
+ default: x(() => [
74
+ j(d.$slots, "default", {
75
+ applyAndClose: R,
76
76
  cancel: u
77
77
  }, void 0, !0)
78
78
  ]),
79
- "bottom-content": b(() => [
80
- R("div", Pe, [
81
- g(i(K), {
82
- "with-border": "",
83
- compact: "",
79
+ "bottom-content": x(() => [
80
+ O("div", Ce, [
81
+ E(i(S), {
82
+ variant: "outlined",
83
+ size: "small",
84
+ label: "Cancel",
84
85
  onClick: u
85
- }, {
86
- default: b(() => O[0] || (O[0] = [
87
- $(" Cancel ", -1)
88
- ])),
89
- _: 1,
90
- __: [0]
91
86
  }),
92
- R("div", null, [
93
- i(_) ? (F(), C(i(K), {
87
+ O("div", null, [
88
+ i(I) ? (F(), C(i(S), {
94
89
  key: 0,
95
90
  ref: r,
96
- "with-border": "",
97
- compact: "",
98
- disabled: i(L),
99
- onClick: i(I)
100
- }, {
101
- default: b(() => [
102
- $(H(i(B)), 1)
103
- ]),
104
- _: 1
105
- }, 8, ["disabled", "onClick"])) : A("", !0),
106
- g(i(K), {
91
+ variant: "outlined",
92
+ size: "small",
93
+ label: i(B),
94
+ disabled: i(g),
95
+ onClick: i(b)
96
+ }, null, 8, ["label", "disabled", "onClick"])) : A("", !0),
97
+ E(i(S), {
107
98
  ref_key: "applyButton",
108
99
  ref: c,
109
- compact: "",
110
- primary: "",
111
- disabled: i(w),
112
- onClick: E
113
- }, {
114
- default: b(() => [
115
- $(H(i(h)), 1)
116
- ]),
117
- _: 1
118
- }, 8, ["disabled"])
100
+ size: "small",
101
+ label: i(h),
102
+ disabled: i(k),
103
+ onClick: R
104
+ }, null, 8, ["label", "disabled"])
119
105
  ])
120
106
  ])
121
107
  ]),
122
108
  _: 3
123
109
  }, 8, ["show-back-arrow"]));
124
110
  }
125
- }), Se = /* @__PURE__ */ le(Ae, [["__scopeId", "data-v-590f0c00"]]), ut = /* @__PURE__ */ G({
111
+ }), Pe = /* @__PURE__ */ te(Me, [["__scopeId", "data-v-0760fcbb"]]), it = /* @__PURE__ */ z({
126
112
  __name: "FileBrowserButton",
127
113
  props: {
128
114
  disabled: { type: Boolean, default: !1 }
129
115
  },
130
116
  emits: ["apply"],
131
- setup(o, { emit: l }) {
132
- const t = l;
133
- return (s, u) => (F(), C(Se, {
117
+ setup(l, { emit: o }) {
118
+ const t = o;
119
+ return (s, u) => (F(), C(Pe, {
134
120
  ref: "settings-panel",
135
121
  onApply: u[0] || (u[0] = () => t("apply"))
136
122
  }, {
137
- "expand-button": b(({ expand: f }) => [
138
- g(i(Le), {
123
+ "expand-button": x(({ expand: f }) => [
124
+ E(i(S), {
139
125
  class: "fit-content",
140
126
  disabled: s.disabled,
141
127
  variant: "filled",
142
128
  "leading-icon": "folder-search",
143
129
  ariaLabel: "Browse",
144
- size: "small",
130
+ size: "medium",
145
131
  onClick: f
146
132
  }, null, 8, ["disabled", "onClick"])
147
133
  ]),
148
- default: b(({ applyAndClose: f, cancel: v }) => [
149
- z(s.$slots, "default", {
134
+ default: x(({ applyAndClose: f, cancel: v }) => [
135
+ j(s.$slots, "default", {
150
136
  applyAndClose: f,
151
137
  cancel: v
152
138
  })
@@ -154,92 +140,92 @@ const j = {}, U = (o) => {
154
140
  _: 3
155
141
  }, 512));
156
142
  }
157
- }), ct = ({
143
+ }), rt = ({
158
144
  /**
159
145
  * The onChange method that actually sets the value in the dialogs data.
160
146
  */
161
- onChange: o,
147
+ onChange: l,
162
148
  /**
163
149
  * The value from this ref will be taken as initial value for
164
150
  * the side drawer in the moment it is opened.
165
151
  */
166
- initialValue: l
152
+ initialValue: o
167
153
  }) => {
168
- const t = p(l.value), s = (f) => {
154
+ const t = p(o.value), s = (f) => {
169
155
  t.value = f;
170
- }, u = () => o(t.value);
171
- return D(() => l.value, s), {
156
+ }, u = () => l(t.value);
157
+ return D(() => o.value, s), {
172
158
  onApply: u,
173
159
  sideDrawerValue: t,
174
160
  updateSideDrawerValue: s
175
161
  };
176
- }, Ve = {
162
+ }, Ae = {
177
163
  xmlns: "http://www.w3.org/2000/svg",
178
164
  fill: "none",
179
165
  stroke: "#000",
180
166
  "stroke-linejoin": "round",
181
167
  viewBox: "0 0 32 32"
182
168
  };
183
- function We(o, l) {
184
- return F(), T("svg", Ve, l[0] || (l[0] = [
185
- R("path", { d: "M29.5 26.8h-27V5.2h9.1l4.6 6h13.3zm0-15.6v-4H13.1" }, null, -1)
169
+ function Se(l, o) {
170
+ return F(), _("svg", Ae, o[0] || (o[0] = [
171
+ O("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)
186
172
  ]));
187
173
  }
188
- const Ne = { render: We }, $e = {
174
+ const Ve = { render: Se }, We = {
189
175
  xmlns: "http://www.w3.org/2000/svg",
190
176
  fill: "none",
191
177
  stroke: "#000",
192
- "stroke-linejoin": "round",
193
178
  viewBox: "0 0 32 32"
194
179
  };
195
- function Ke(o, l) {
196
- return F(), T("svg", $e, l[0] || (l[0] = [
197
- R("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)
180
+ function $e(l, o) {
181
+ return F(), _("svg", We, o[0] || (o[0] = [
182
+ O("path", {
183
+ "stroke-linejoin": "round",
184
+ d: "M26.025 11.441v14.141H16M6.183 11.441v14.141H11m0 0v-7.291h5v7.291m-5 0h5"
185
+ }, null, -1),
186
+ O("path", {
187
+ "stroke-linejoin": "round",
188
+ d: "m29.654 14.55-5.583-4.759v-5.5H21v2.882L16.104 3 2.554 14.55"
189
+ }, null, -1)
198
190
  ]));
199
191
  }
200
- const je = { render: Ke }, He = {
192
+ const Ke = { render: $e }, Ne = {
201
193
  xmlns: "http://www.w3.org/2000/svg",
202
194
  fill: "none",
203
195
  stroke: "#000",
196
+ "stroke-linejoin": "round",
204
197
  viewBox: "0 0 32 32"
205
198
  };
206
- function ze(o, l) {
207
- return F(), T("svg", He, l[0] || (l[0] = [
208
- R("path", {
209
- "stroke-linejoin": "round",
210
- d: "M26.025 11.441v14.141H16M6.183 11.441v14.141H11m0 0v-7.291h5v7.291m-5 0h5"
211
- }, null, -1),
212
- R("path", {
213
- "stroke-linejoin": "round",
214
- d: "m29.654 14.55-5.583-4.759v-5.5H21v2.882L16.104 3 2.554 14.55"
215
- }, null, -1)
199
+ function je(l, o) {
200
+ return F(), _("svg", Ne, o[0] || (o[0] = [
201
+ O("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)
216
202
  ]));
217
203
  }
218
- const Ge = { render: ze }, Ue = {
204
+ const ze = { render: je }, He = {
219
205
  xmlns: "http://www.w3.org/2000/svg",
220
206
  fill: "none",
221
207
  stroke: "#000",
222
208
  "stroke-linejoin": "round",
223
209
  viewBox: "0 0 32 32"
224
210
  };
225
- function Je(o, l) {
226
- return F(), T("svg", Ue, l[0] || (l[0] = [
227
- R("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)
211
+ function Ge(l, o) {
212
+ return F(), _("svg", He, o[0] || (o[0] = [
213
+ O("path", { d: "M29.5 26.8h-27V5.2h9.1l4.6 6h13.3zm0-15.6v-4H13.1" }, null, -1)
228
214
  ]));
229
215
  }
230
- const Ye = { render: Je }, qe = (o) => ({
231
- getItemIcon: (t) => t.isDirectory ? Ne : o.value ? je : Ye
232
- }), Qe = (o) => ({
233
- isDirectory: o.isDirectory,
234
- id: o.name,
235
- name: o.name,
216
+ const Ue = { render: Ge }, Je = (l) => ({
217
+ getItemIcon: (t) => t.isDirectory ? Ue : l.value ? Ve : ze
218
+ }), Ye = (l) => ({
219
+ isDirectory: l.isDirectory,
220
+ id: l.name,
221
+ name: l.name,
236
222
  isOpen: !1,
237
223
  isOpenableFile: !0,
238
224
  canBeRenamed: !1,
239
225
  canBeDeleted: !1,
240
- ...o.isDisabledDirectory ? { disabled: !0 } : {}
241
- }), Xe = ({
242
- actions: { chooseItem: o, goIntoSelectedFolder: l },
226
+ ...l.isDisabledDirectory ? { disabled: !0 } : {}
227
+ }), qe = ({
228
+ actions: { chooseItem: l, goIntoSelectedFolder: o },
243
229
  selectionMode: t,
244
230
  selectedItem: s,
245
231
  toBeChosenItem: u,
@@ -249,42 +235,42 @@ const Ye = { render: Je }, qe = (o) => ({
249
235
  element: v,
250
236
  disabled: c,
251
237
  text: h,
252
- onApply: w
253
- } = oe(), {
238
+ onApply: k
239
+ } = ee(), {
254
240
  element: m,
255
241
  disabled: r,
256
- onApply: k,
242
+ onApply: w,
257
243
  shown: B
258
- } = oe(se);
259
- _e(() => {
260
- w.value = o, B.value = !0, r.value = !0, k.value = () => l();
244
+ } = ee(oe);
245
+ be(() => {
246
+ k.value = l, B.value = !0, r.value = !0, w.value = () => o();
261
247
  });
262
- const L = y(() => [
248
+ const g = y(() => [
263
249
  v,
264
250
  m
265
251
  ]);
266
252
  return D(
267
253
  [s, t, f, u],
268
- ([_, I, E, d]) => {
269
- I === "FILE" ? h.value = "Choose file" : I === "WORKFLOW" ? h.value = "Choose workflow" : h.value = "Choose folder";
270
- const O = I === "FILE" || I === "WORKFLOW", x = I === "FOLDER";
271
- d ? d.selectionType === "FILE" ? (c.value = x, I === "FILE_OR_FOLDER" && (h.value = "Choose file")) : d.selectionType === "FOLDER" ? c.value = O : d.selectionType === "FILE_OR_FOLDER" && (c.value = !1, h.value = "Choose") : c.value = O || E, _ ? _.selectionType === "FILE" ? r.value = !0 : _.selectionType === "FOLDER" ? r.value = !1 : _.selectionType === "FILE_OR_FOLDER" && (r.value = !0) : r.value = !0;
254
+ ([I, b, R, d]) => {
255
+ b === "FILE" ? h.value = "Choose file" : b === "WORKFLOW" ? h.value = "Choose workflow" : h.value = "Choose folder";
256
+ const L = b === "FILE" || b === "WORKFLOW", T = b === "FOLDER";
257
+ d ? d.selectionType === "FILE" ? (c.value = T, b === "FILE_OR_FOLDER" && (h.value = "Choose file")) : d.selectionType === "FOLDER" ? c.value = L : d.selectionType === "FILE_OR_FOLDER" && (c.value = !1, h.value = "Choose") : c.value = L || R, I ? I.selectionType === "FILE" ? r.value = !0 : I.selectionType === "FOLDER" ? r.value = !1 : I.selectionType === "FILE_OR_FOLDER" && (r.value = !0) : r.value = !0;
272
258
  },
273
259
  { immediate: !0 }
274
260
  ), {
275
- clickOutsideExceptions: L,
261
+ clickOutsideExceptions: g,
276
262
  goIntoFolderButtonShown: B
277
263
  };
278
- }, Ze = {
264
+ }, Qe = {
279
265
  key: 0,
280
266
  class: "loading-animation"
281
- }, et = { class: "current-path" }, tt = {
267
+ }, Xe = { class: "current-path" }, Ze = {
282
268
  key: 0,
283
269
  class: "error"
284
- }, ot = {
270
+ }, et = {
285
271
  key: 0,
286
272
  class: "name-input-wrapper"
287
- }, lt = /* @__PURE__ */ G({
273
+ }, tt = /* @__PURE__ */ z({
288
274
  __name: "DialogFileExplorer",
289
275
  props: {
290
276
  initialFilePath: { default: "" },
@@ -298,8 +284,8 @@ const Ye = { render: Je }, qe = (o) => ({
298
284
  relativeToOptions: {}
299
285
  },
300
286
  emits: ["chooseItem", "update:isRelativeTo", "update:fileName", "applyAndClose", "cancel", "navigate"],
301
- setup(o, { emit: l }) {
302
- const t = o, s = l, u = y({
287
+ setup(l, { emit: o }) {
288
+ const t = l, s = o, u = y({
303
289
  get: () => {
304
290
  var e;
305
291
  return (e = t.relativeToOptions) != null && e.isRelativeTo ? "RELATIVE" : "ROOT";
@@ -316,23 +302,23 @@ const Ye = { render: Je }, qe = (o) => ({
316
302
  text: t.relativeToOptions.relativeRootLabel
317
303
  }
318
304
  ] : []
319
- ), v = y(() => t.relativeToOptions && u.value === "RELATIVE" ? t.relativeToOptions.relativeToPath : null), c = p(null), h = p([]), w = p(!0), m = p(null), r = p(null), k = p([]), B = {
305
+ ), v = y(() => t.relativeToOptions && u.value === "RELATIVE" ? t.relativeToOptions.relativeToPath : null), c = p(null), h = p([]), k = p(!0), m = p(null), r = p(null), w = p([]), B = {
320
306
  FILE: ["FILE"],
321
307
  FOLDER: ["FOLDER"],
322
308
  FILE_OR_FOLDER: ["FILE", "FOLDER", "FILE_OR_FOLDER"],
323
309
  WORKFLOW: ["FILE"]
324
- }, L = y(
310
+ }, g = y(
325
311
  () => B[t.selectionMode]
326
- ), _ = y(
327
- () => k.value.map((e) => ({
312
+ ), I = y(
313
+ () => w.value.map((e) => ({
328
314
  ...e,
329
- disabled: e.disabled || !L.value.includes("FILE") && !e.isDirectory
315
+ disabled: e.disabled || !g.value.includes("FILE") && !e.isDirectory
330
316
  }))
331
- ), I = y(
317
+ ), b = y(
332
318
  () => h.value.map((e, n) => {
333
- var ee;
319
+ var X;
334
320
  let a = e.name, P = null;
335
- return typeof a != "string" && ((ee = t.relativeToOptions) != null && ee.relativeRootIcon && e.path === t.relativeToOptions.relativeToPath ? P = t.relativeToOptions.relativeRootIcon : e.path === null ? t.breadcrumbRoot === null ? P = Ge : a = t.breadcrumbRoot : a = e.path), {
321
+ return typeof a != "string" && ((X = t.relativeToOptions) != null && X.relativeRootIcon && e.path === t.relativeToOptions.relativeToPath ? P = t.relativeToOptions.relativeRootIcon : e.path === null ? t.breadcrumbRoot === null ? P = Ke : a = t.breadcrumbRoot : a = e.path), {
336
322
  ...a === null ? {} : { text: a },
337
323
  title: a ?? "Root",
338
324
  path: e.path,
@@ -340,14 +326,14 @@ const Ye = { render: Je }, qe = (o) => ({
340
326
  ...P ? { icon: P } : {}
341
327
  };
342
328
  })
343
- ), E = p(!0), d = (e) => {
344
- E.value = !1, c.value = e.path, h.value = e.parentFolders, w.value = e.isRootFolder, k.value = e.items.map(Qe);
345
- }, O = p(null), x = (e) => {
346
- O.value = e ?? null;
329
+ ), R = p(!0), d = (e) => {
330
+ R.value = !1, c.value = e.path, h.value = e.parentFolders, k.value = e.isRootFolder, w.value = e.items.map(Ye);
331
+ }, L = p(null), T = (e) => {
332
+ L.value = e ?? null;
347
333
  }, M = y({
348
334
  get: () => {
349
335
  const e = r.value;
350
- return e && L.value.includes(e.selectionType) ? e.name : "";
336
+ return e && g.value.includes(e.selectionType) ? e.name : "";
351
337
  },
352
338
  set: (e) => {
353
339
  if (t.selectionMode !== "FOLDER" && s("update:fileName", e === "" ? null : e), e === "") {
@@ -359,38 +345,38 @@ const Ye = { render: Je }, qe = (o) => ({
359
345
  selectionType: t.selectionMode === "WORKFLOW" ? "FILE" : t.selectionMode
360
346
  };
361
347
  }
362
- }), ae = (e) => {
348
+ }), ne = (e) => {
363
349
  if (!t.isWriter)
364
350
  return;
365
351
  const n = r.value;
366
352
  n || (M.value = t.initialFileName ?? e), (n == null ? void 0 : n.selectionType) === "FOLDER" && (M.value = e);
367
- }, J = (e) => {
353
+ }, G = (e) => {
368
354
  if (!e) {
369
- x("Failed to load items"), s("cancel");
355
+ T("Failed to load items"), s("cancel");
370
356
  return;
371
357
  }
372
- d(e.folder), x(e.errorMessage), ae(e.filePathRelativeToFolder), s("navigate", e.folder.path);
373
- }, { filteredExtensions: ie, appendedExtension: re, isWriter: V, backendType: Y } = Oe(t), q = y(() => t.selectionMode === "WORKFLOW"), { listItems: W, getFilePath: ue, resolveRelativePath: ce } = Me({
374
- filteredExtensions: ie,
375
- appendedExtension: re,
376
- isWriter: V,
377
- isWorkflowFilterMode: q,
378
- backendType: Y
379
- }), { getItemIcon: de } = qe(q), Q = (e, n = null) => {
380
- m.value = null, E.value = !0, W(e, n, v.value).then(J);
381
- }, X = (e) => Q(c.value, e), pe = ({ path: e }) => Q(e ?? null), ve = async (e) => {
382
- const { path: n, errorMessage: a } = await ue(
358
+ d(e.folder), T(e.errorMessage), ne(e.filePathRelativeToFolder), s("navigate", e.folder.path);
359
+ }, { filteredExtensions: se, appendedExtension: ae, isWriter: W, backendType: U } = Ie(t), J = y(() => t.selectionMode === "WORKFLOW"), { listItems: $, getFilePath: ie, resolveRelativePath: re } = De({
360
+ filteredExtensions: se,
361
+ appendedExtension: ae,
362
+ isWriter: W,
363
+ isWorkflowFilterMode: J,
364
+ backendType: U
365
+ }), { getItemIcon: ue } = Je(J), Y = (e, n = null) => {
366
+ m.value = null, R.value = !0, $(e, n, v.value).then(G);
367
+ }, q = (e) => Y(c.value, e), ce = ({ path: e }) => Y(e ?? null), de = async (e) => {
368
+ const { path: n, errorMessage: a } = await ie(
383
369
  c.value,
384
370
  e,
385
371
  v.value
386
372
  );
387
- return n === null ? (x(a), Promise.reject(a)) : (s("chooseItem", n), Promise.resolve());
388
- }, Z = (e) => {
373
+ return n === null ? (T(a), Promise.reject(a)) : (s("chooseItem", n), Promise.resolve());
374
+ }, Q = (e) => {
389
375
  if (e.length === 0) {
390
376
  m.value = null;
391
377
  return;
392
378
  }
393
- const n = _.value.find(
379
+ const n = I.value.find(
394
380
  ({ id: a }) => a === e[0]
395
381
  );
396
382
  n.isDirectory ? m.value = {
@@ -402,115 +388,114 @@ const Ye = { render: Je }, qe = (o) => ({
402
388
  };
403
389
  };
404
390
  D(m, (e) => {
405
- if (!V.value) {
391
+ if (!W.value) {
406
392
  r.value = e;
407
393
  return;
408
394
  }
409
395
  const n = e == null ? void 0 : e.selectionType;
410
- !n || !L.value.includes(n) || (r.value = e);
396
+ !n || !g.value.includes(n) || (r.value = e);
411
397
  });
412
- const me = S("input-field"), fe = S("relative-to-label"), { clickOutsideExceptions: Fe } = Xe({
398
+ const pe = V("input-field"), ve = V("relative-to-label"), { clickOutsideExceptions: me } = qe({
413
399
  actions: {
414
400
  chooseItem: () => {
415
401
  var e;
416
- return ve(((e = r.value) == null ? void 0 : e.name) ?? "");
402
+ return de(((e = r.value) == null ? void 0 : e.name) ?? "");
417
403
  },
418
404
  goIntoSelectedFolder: () => {
419
405
  var e;
420
- return ((e = m.value) == null ? void 0 : e.selectionType) === "FOLDER" && X(m.value.name), Promise.resolve();
406
+ return ((e = m.value) == null ? void 0 : e.selectionType) === "FOLDER" && q(m.value.name), Promise.resolve();
421
407
  }
422
408
  },
423
- selectionMode: Re(t, "selectionMode"),
409
+ selectionMode: Oe(t, "selectionMode"),
424
410
  selectedItem: m,
425
411
  toBeChosenItem: r,
426
412
  isRootParent: y(() => c.value === null)
427
- }), he = y(() => [
428
- ...Fe.value,
429
- me,
430
- fe
431
- ]), ye = (e) => {
432
- Z([e.id]), s("applyAndClose");
433
- }, N = p(!1);
413
+ }), fe = y(() => [
414
+ ...me.value,
415
+ pe,
416
+ ve
417
+ ]), Fe = (e) => {
418
+ Q([e.id]), s("applyAndClose");
419
+ }, K = p(!1);
434
420
  return D(
435
- () => Y.value,
421
+ () => U.value,
436
422
  async () => {
437
423
  var n;
438
- N.value = !1;
424
+ K.value = !1;
439
425
  let e = t.initialFilePath;
440
- v.value && ((n = t.relativeToOptions) != null && n.initialFilePathIsRelative) && (e = await ce(e, v.value)), W(null, e, v.value).then((a) => {
441
- J(a), N.value = !0;
426
+ v.value && ((n = t.relativeToOptions) != null && n.initialFilePathIsRelative) && (e = await re(e, v.value)), $(null, e, v.value).then((a) => {
427
+ G(a), K.value = !0;
442
428
  });
443
429
  },
444
430
  { immediate: !0 }
445
431
  ), D(
446
432
  () => v.value,
447
- () => N.value && W(c.value, null, v.value).then((e) => {
433
+ () => K.value && $(c.value, null, v.value).then((e) => {
448
434
  h.value = e.folder.parentFolders;
449
435
  })
450
- ), (e, n) => E.value ? (F(), T("div", Ze, [
451
- g(i(xe), { class: "icon" })
452
- ])) : (F(), T(Ee, { key: 1 }, [
453
- R("div", et, [
454
- g(i(we), {
436
+ ), (e, n) => R.value ? (F(), _("div", Qe, [
437
+ E(i(Te), { class: "icon" })
438
+ ])) : (F(), _(Re, { key: 1 }, [
439
+ O("div", Xe, [
440
+ E(i(xe), {
455
441
  class: "breadcrumb",
456
- items: I.value,
442
+ items: b.value,
457
443
  "no-wrap": "",
458
444
  compact: "",
459
- onClickItem: pe
445
+ onClickItem: ce
460
446
  }, null, 8, ["items", "onClickItem"]),
461
- O.value !== null ? (F(), T("span", tt, "(" + H(O.value) + ")", 1)) : A("", !0)
447
+ L.value !== null ? (F(), _("span", Ze, "(" + Ee(L.value) + ")", 1)) : A("", !0)
462
448
  ]),
463
- i(V) ? (F(), T("div", ot, [
464
- n[2] || (n[2] = R("span", null, "Name:", -1)),
465
- g(i(ke), {
449
+ i(W) ? (F(), _("div", et, [
450
+ n[2] || (n[2] = O("span", null, "Name:", -1)),
451
+ E(i(ke), {
466
452
  ref: "input-field",
467
453
  modelValue: M.value,
468
454
  "onUpdate:modelValue": n[0] || (n[0] = (a) => M.value = a),
469
455
  compact: ""
470
456
  }, null, 8, ["modelValue"])
471
457
  ])) : A("", !0),
472
- g(i(Be), {
458
+ E(i(we), {
473
459
  class: "explorer",
474
- "is-root-folder": w.value,
475
- items: _.value,
460
+ "is-root-folder": k.value,
461
+ items: I.value,
476
462
  "disable-context-menu": !0,
477
463
  "disable-multi-select": !0,
478
464
  "disable-dragging": !0,
479
- "click-outside-exceptions": he.value,
480
- onChangeDirectory: X,
481
- onOpenFile: ye,
482
- "onUpdate:selectedItemIds": Z
465
+ "click-outside-exceptions": fe.value,
466
+ onChangeDirectory: q,
467
+ onOpenFile: Fe,
468
+ "onUpdate:selectedItemIds": Q
483
469
  }, {
484
- itemIcon: b(({ item: a }) => [
485
- (F(), C(ge(i(de)(a))))
470
+ itemIcon: x(({ item: a }) => [
471
+ (F(), C(_e(i(ue)(a))))
486
472
  ]),
487
473
  _: 1
488
474
  }, 8, ["is-root-folder", "items", "click-outside-exceptions"]),
489
- e.relativeToOptions ? (F(), C(i(De), {
475
+ e.relativeToOptions ? (F(), C(i(Be), {
490
476
  key: 1,
491
477
  ref: "relative-to-label",
492
478
  class: "relative-to-option",
493
479
  text: "Choose relative to"
494
480
  }, {
495
- default: b(() => [
496
- g(i(Ce), {
481
+ default: x(() => [
482
+ E(i(Le), {
497
483
  modelValue: u.value,
498
484
  "onUpdate:modelValue": n[1] || (n[1] = (a) => u.value = a),
499
485
  "possible-values": f.value,
500
- compact: ""
486
+ size: "small"
501
487
  }, null, 8, ["modelValue", "possible-values"])
502
488
  ]),
503
489
  _: 1
504
490
  }, 512)) : A("", !0)
505
491
  ], 64));
506
492
  }
507
- }), dt = /* @__PURE__ */ le(lt, [["__scopeId", "data-v-1b554ec0"]]);
493
+ }), ut = /* @__PURE__ */ te(tt, [["__scopeId", "data-v-0fe347b3"]]);
508
494
  export {
509
- dt as D,
510
- Ne as F,
511
- se as G,
512
- je as W,
513
- ut as _,
514
- oe as a,
515
- ct as u
495
+ ut as D,
496
+ oe as G,
497
+ Ve as W,
498
+ it as _,
499
+ ee as a,
500
+ rt as u
516
501
  };