@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,613 +0,0 @@
1
- import { defineComponent as P, toRef as B, ref as S, computed as p, onMounted as Y, watch as O, createBlock as U, openBlock as c, unref as i, createElementBlock as k, createElementVNode as T, createStaticVNode as ce, createVNode as x, toDisplayString as me, Fragment as q, withCtx as W, createCommentVNode as Z, h as $, isRef as ve, resolveDynamicComponent as fe } from "vue";
2
- import { u as z, ai as L, au as he, aP as ge, aB as Ce, aa as be } from "./TextControl-BlUQLMGo-CSdt3hw2.js";
3
- import { a as J, G as we, F as ye, W as Se, D as Te, u as ke, _ as Fe } from "./DialogFileExplorer-D6KGXnvM.js";
4
- import { a as Q, b as Ve, g as X, u as _e } from "./useFileChooserBackend-D0qgqkW_.js";
5
- import { InputField as Ee, Label as Ue, NumberInput as Ie, TabBar as xe, InlineMessage as Pe } from "@knime/components";
6
- import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
- const ee = (n, e, o) => {
8
- const a = z(o, "connectedFSOptions");
9
- return { onPathUpdate: (h) => {
10
- var d;
11
- const v = (d = a.value) == null ? void 0 : d.fileSystemSpecifier;
12
- e(
13
- L(n.value, {
14
- path: h,
15
- ...v ? { context: { fsSpecifier: v } } : {}
16
- })
17
- );
18
- }, onTimeoutUpdate: (h) => {
19
- e(L(n.value, { timeout: h }));
20
- }, onFsCategoryUpdate: (h) => {
21
- e(L(n.value, { fsCategory: h }));
22
- } };
23
- }, te = /^[A-Za-z0-9]+:\/\//, oe = "knime://knime.space/", ae = "knime://knime.workflow/", le = "knime://knime.workflow/data/", De = [
24
- ["relative-to-current-hubspace", oe],
25
- ["relative-to-embedded-data", le],
26
- // check before workflow!
27
- ["relative-to-workflow", ae]
28
- ], Me = /* @__PURE__ */ P({
29
- __name: "FSLocationTextControl",
30
- props: {
31
- modelValue: {},
32
- disabled: { type: Boolean },
33
- options: {},
34
- isValid: { type: Boolean }
35
- },
36
- emits: ["update:modelValue"],
37
- setup(n, { expose: e, emit: o }) {
38
- const a = n, m = o, { isConnected: r, isLocal: f } = Q(B(a, "options")), { getFilePath: h } = Ve({
39
- filteredExtensions: S([]),
40
- // only relevant for browsing
41
- appendedExtension: S(null),
42
- // We do not wish to append anything here, since the user should be able to manually access any file
43
- isWriter: S(!1),
44
- // only relevant for browsing
45
- backendType: p(
46
- () => {
47
- var t;
48
- return X(
49
- a.modelValue.fsCategory,
50
- (t = a.options.connectedFSOptions) == null ? void 0 : t.portIndex
51
- );
52
- }
53
- )
54
- }), v = async (t) => {
55
- var b;
56
- if (!r.value && t.fsCategory === "relative-to-current-hubspace")
57
- return oe + t.path;
58
- if (!r.value && t.fsCategory === "relative-to-workflow")
59
- return ae + t.path;
60
- if (!r.value && t.fsCategory === "relative-to-embedded-data")
61
- return le + t.path;
62
- if (!r.value && t.fsCategory === "CUSTOM_URL")
63
- return t.path;
64
- if (!r.value && t.fsCategory === "LOCAL") {
65
- if (t.path === "")
66
- return "";
67
- const { path: l, errorMessage: w } = await h(
68
- null,
69
- t.path,
70
- null
71
- );
72
- return w ? t.path : l || "";
73
- }
74
- return r.value && t.fsCategory === "CONNECTED" ? t.path : ((b = t.context) == null ? void 0 : b.fsToString) ?? "";
75
- }, d = S(null), g = S(""), C = S(!1);
76
- Y(() => {
77
- u();
78
- });
79
- const u = async () => {
80
- g.value = await v(a.modelValue);
81
- };
82
- O(
83
- () => a.modelValue,
84
- () => {
85
- C.value || u();
86
- }
87
- );
88
- const F = (t) => {
89
- var l;
90
- if (r.value)
91
- return {
92
- fsCategory: "CONNECTED",
93
- path: t,
94
- timeout: a.modelValue.timeout,
95
- context: {
96
- fsToString: "",
97
- // won't be used in case of isConnected = true
98
- fsSpecifier: (l = a.options.connectedFSOptions) == null ? void 0 : l.fileSystemSpecifier
99
- }
100
- };
101
- for (const [w, E] of De)
102
- if (t.startsWith(E))
103
- return {
104
- fsCategory: w,
105
- path: t.replace(E, ""),
106
- timeout: a.modelValue.timeout
107
- };
108
- const b = f.value ? "LOCAL" : "relative-to-current-hubspace";
109
- return {
110
- fsCategory: te.test(t) ? "CUSTOM_URL" : b,
111
- path: t,
112
- timeout: a.modelValue.timeout
113
- };
114
- }, V = (t) => {
115
- g.value = t, m("update:modelValue", F(t));
116
- }, _ = () => {
117
- C.value = !0;
118
- }, D = () => {
119
- C.value = !1, u();
120
- };
121
- return e({
122
- focusInput: () => {
123
- var t;
124
- return (t = d.value) == null ? void 0 : t.focus();
125
- }
126
- }), (t, b) => (c(), U(i(he), {
127
- ref_key: "textInputRef",
128
- ref: d,
129
- "model-value": g.value,
130
- disabled: t.disabled,
131
- placeholder: t.options.placeholder,
132
- error: !t.isValid,
133
- ariaLabel: "File path",
134
- "onUpdate:modelValue": V,
135
- onFocus: _,
136
- onBlur: D
137
- }, null, 8, ["model-value", "disabled", "placeholder", "error"]));
138
- }
139
- }), Ne = {
140
- xmlns: "http://www.w3.org/2000/svg",
141
- fill: "none",
142
- stroke: "#000",
143
- viewBox: "0 0 32 32"
144
- };
145
- function Be(n, e) {
146
- return c(), k("svg", Ne, e[0] || (e[0] = [
147
- T("path", {
148
- "stroke-linejoin": "round",
149
- "stroke-miterlimit": "10",
150
- d: "M29.804 19.5h-27m21.5 8h-16.1m4.8 0v-4.3m7.2 0v4.3m-15.9-4.3h24c.8 0 1.5-.7 1.5-1.5V5.1c0-.8-.7-1.5-1.5-1.5h-24c-.8 0-1.5.7-1.5 1.5v16.6c0 .8.6 1.5 1.5 1.5Z"
151
- }, null, -1)
152
- ]));
153
- }
154
- const Oe = { render: Be }, Ae = {
155
- xmlns: "http://www.w3.org/2000/svg",
156
- fill: "none",
157
- stroke: "#000",
158
- "stroke-linejoin": "round",
159
- viewBox: "0 0 32 32"
160
- };
161
- function Re(n, e) {
162
- return c(), k("svg", Ae, e[0] || (e[0] = [
163
- T("path", { d: "M14.539 18.62c-1.442-1.442-1.252-3.971.424-5.647l6.107-6.107c1.677-1.677 4.205-1.866 5.647-.424l1.699 1.699c1.442 1.442 1.252 3.971-.424 5.647l-6.107 6.107c-1.217 1.217-2.884 1.651-4.258 1.245m-.166-7.345c1.442 1.442 1.252 3.971-.424 5.647l-6.107 6.107c-1.677 1.677-4.205 1.866-5.647.424l-1.699-1.699c-1.442-1.442-1.252-3.971.424-5.647l6.107-6.107c1.217-1.217 2.884-1.651 4.258-1.245" }, null, -1)
164
- ]));
165
- }
166
- const $e = { render: Re }, Le = {
167
- xmlns: "http://www.w3.org/2000/svg",
168
- fill: "none",
169
- stroke: "#000",
170
- viewBox: "0 0 32 32"
171
- };
172
- function We(n, e) {
173
- return c(), k("svg", Le, e[0] || (e[0] = [
174
- ce('<path stroke-linejoin="round" stroke-miterlimit="10" d="M2.963 21.916V5.075h9.051l4.613 6.001h13.298v15.608h-5.418"></path><path stroke-linejoin="round" stroke-miterlimit="10" d="M29.925 11.076V7.075H13.548"></path><path stroke-width=".8" d="M12.016 13.54 22.27 30.73H1.763z"></path><path stroke-width=".8" d="m10.785 16.852 9.504 11.092-14.778 2.181z"></path><path stroke-width=".8" d="m10.364 20.335 6.864 4.85-8.26 4.045z"></path>', 5)
175
- ]));
176
- }
177
- const ze = { render: We }, je = {
178
- xmlns: "http://www.w3.org/2000/svg",
179
- fill: "none",
180
- stroke: "#000",
181
- "stroke-linejoin": "round",
182
- viewBox: "0 0 32 32"
183
- };
184
- function He(n, e) {
185
- return c(), k("svg", je, e[0] || (e[0] = [
186
- T("path", { d: "M16.224 6.514c-5.239-.02-9.503 4.21-9.523 9.449s4.21 9.503 9.449 9.523l6.113-.053.073-18.896zm6.089 6.055 7.873.031m-7.9 6.878 7.873.031M6.701 15.963l-4.887.035m13.041-3.249L18.106 16l-3.251 3.251M18.106 16h-7.175" }, null, -1)
187
- ]));
188
- }
189
- const Ke = { render: He }, Ge = {
190
- xmlns: "http://www.w3.org/2000/svg",
191
- fill: "none",
192
- stroke: "#000",
193
- "stroke-linejoin": "round",
194
- viewBox: "0 0 32 32"
195
- };
196
- function Ze(n, e) {
197
- return c(), k("svg", Ge, e[0] || (e[0] = [
198
- T("path", { d: "M13.2 6.2c-3.8 2.1-5.1 7-3 10.8s7 5.1 10.8 3l4.4-2.6-7.8-13.7zm6.9 1.9 5.7-3.2m-2.9 8.2 5.7-3.2M10.2 17c-1.9 1.1-7.3 1.8-5.1 5.9s-1.7 5.4-1.7 5.4" }, null, -1)
199
- ]));
200
- }
201
- const Je = { render: Ze }, Ye = { class: "vertical" }, qe = /* @__PURE__ */ P({
202
- __name: "ConnectionPreventsTab",
203
- props: {
204
- browseAction: {}
205
- },
206
- setup(n) {
207
- return (e, o) => (c(), k("div", Ye, [
208
- x(i(Je), { class: "icon" }),
209
- T("span", null, "Remove the file system input port in order to " + me(e.browseAction) + ".", 1)
210
- ]));
211
- }
212
- }), Qe = /* @__PURE__ */ A(qe, [["__scopeId", "data-v-d064fa5b"]]), Xe = {
213
- xmlns: "http://www.w3.org/2000/svg",
214
- fill: "none",
215
- stroke: "#000",
216
- viewBox: "0 0 32 32"
217
- };
218
- function et(n, e) {
219
- return c(), k("svg", Xe, e[0] || (e[0] = [
220
- T("path", { d: "m16.654 2.75 15.03 24H1.625z" }, null, -1),
221
- T("path", { d: "m14.427 6.533 14.767 16.72L6.34 26.463z" }, null, -1),
222
- T("path", { d: "m13.433 10.958 11.87 8.287-14.077 6.564z" }, null, -1)
223
- ]));
224
- }
225
- const tt = { render: et }, ot = /* @__PURE__ */ P({
226
- __name: "CustomUrlFileChooser",
227
- props: {
228
- disabled: { type: Boolean, default: !1 },
229
- modelValue: {},
230
- id: {},
231
- urlErrorMessage: { default: null }
232
- },
233
- emits: ["update:path", "update:timeout"],
234
- setup(n) {
235
- return (e, o) => (c(), k(q, null, [
236
- x(i(ge), {
237
- errors: e.urlErrorMessage === null ? [] : [e.urlErrorMessage]
238
- }, {
239
- default: W(() => [
240
- x(i(Ee), {
241
- id: e.id,
242
- compact: "",
243
- "is-valid": e.urlErrorMessage === null,
244
- disabled: e.disabled,
245
- "model-value": e.modelValue.path,
246
- placeholder: "URL",
247
- "onUpdate:modelValue": o[0] || (o[0] = (a) => e.$emit("update:path", a))
248
- }, null, 8, ["id", "is-valid", "disabled", "model-value"])
249
- ]),
250
- _: 1
251
- }, 8, ["errors"]),
252
- x(i(Ue), {
253
- class: "timeout",
254
- text: "Timeout"
255
- }, {
256
- default: W(({ labelForId: a }) => [
257
- x(i(Ie), {
258
- id: a,
259
- type: "integer",
260
- compact: "",
261
- min: 0,
262
- disabled: e.disabled,
263
- "model-value": e.modelValue.timeout,
264
- "onUpdate:modelValue": o[1] || (o[1] = (m) => e.$emit("update:timeout", m))
265
- }, null, 8, ["id", "disabled", "model-value"])
266
- ]),
267
- _: 1
268
- })
269
- ], 64));
270
- }
271
- }), at = /* @__PURE__ */ A(ot, [["__scopeId", "data-v-a784a58f"]]), lt = /* @__PURE__ */ P({
272
- __name: "UrlTab",
273
- props: {
274
- modelValue: {},
275
- id: {}
276
- },
277
- emits: ["update:path", "update:timeout"],
278
- setup(n, { emit: e }) {
279
- const o = n, a = e, { text: m, disabled: r, onApply: f } = J(), { shown: h } = J(
280
- we
281
- );
282
- Y(() => {
283
- m.value = "Set Url", h.value = !1, f.value = () => Promise.resolve();
284
- });
285
- const v = p(
286
- () => te.test(o.modelValue.path)
287
- );
288
- O(
289
- () => v.value,
290
- (g) => {
291
- r.value = !g;
292
- },
293
- { immediate: !0 }
294
- );
295
- const d = p(
296
- () => v.value ? null : 'The url needs to start with a scheme (e.g. "https://")'
297
- );
298
- return (g, C) => (c(), U(at, {
299
- id: g.id,
300
- "model-value": g.modelValue,
301
- "url-error-message": d.value,
302
- "onUpdate:path": C[0] || (C[0] = (u) => a("update:path", u)),
303
- "onUpdate:timeout": C[1] || (C[1] = (u) => a("update:timeout", u))
304
- }, null, 8, ["id", "model-value", "url-error-message"]));
305
- }
306
- }), nt = ({
307
- backendType: n,
308
- modelValue: e
309
- }) => {
310
- const o = e.value.fsCategory === "CUSTOM_URL" ? "CUSTOM_URL" : n.value, a = S({
311
- [o]: e.value.path
312
- });
313
- return {
314
- initialFilePathForCurrentTab: p(
315
- () => a.value[n.value] ?? ""
316
- ),
317
- handleNavigate: (f) => {
318
- a.value[n.value] = f ?? "";
319
- }
320
- };
321
- }, st = { class: "flex" }, rt = { class: "flex-grow" }, it = /* @__PURE__ */ P({
322
- __name: "SideDrawerContent",
323
- props: {
324
- modelValue: {},
325
- disabled: { type: Boolean },
326
- id: {},
327
- uischema: {}
328
- },
329
- emits: ["update:modelValue", "applyAndClose"],
330
- setup(n, { emit: e }) {
331
- const o = n, a = e, m = B(o, "uischema"), { onFsCategoryUpdate: r, onPathUpdate: f, onTimeoutUpdate: h } = ee(
332
- B(o, "modelValue"),
333
- (s) => {
334
- a("update:modelValue", s);
335
- },
336
- m
337
- ), v = z(
338
- m,
339
- "selectionMode",
340
- "FILE"
341
- ), {
342
- filteredExtensions: d,
343
- appendedExtension: g,
344
- isWriter: C,
345
- isLocal: u,
346
- isLoaded: F,
347
- tabsCanBeRendered: V,
348
- spacePath: _,
349
- mountId: D,
350
- relativeWorkflowPath: t,
351
- isConnected: b,
352
- portFileSystemName: l,
353
- portIndex: w,
354
- fileSystems: E
355
- } = _e(m), I = (s, y) => s ? [y] : [], ne = p(() => [
356
- ...I(b.value, {
357
- value: "CONNECTED",
358
- label: l.value,
359
- icon: Ke
360
- }),
361
- ...I(u.value, {
362
- value: "LOCAL",
363
- label: "Local file system",
364
- icon: Oe
365
- }),
366
- ...I(E.value.includes("SPACE"), {
367
- value: "SPACE",
368
- label: D.value,
369
- icon: u.value ? ze : tt
370
- }),
371
- ...I(E.value.includes("EMBEDDED"), {
372
- value: "EMBEDDED",
373
- label: "Embedded data",
374
- icon: ye
375
- }),
376
- ...I(E.value.includes("CUSTOM_URL"), {
377
- value: "CUSTOM_URL",
378
- label: "URL",
379
- icon: $e
380
- })
381
- ]), R = p(
382
- () => o.modelValue.fsCategory === "relative-to-workflow"
383
- ), j = R.value, H = S(R.value), se = (s) => {
384
- H.value = s, r(
385
- s ? "relative-to-workflow" : "relative-to-current-hubspace"
386
- );
387
- }, M = p({
388
- get: () => {
389
- const s = o.modelValue.fsCategory;
390
- return s === "relative-to-workflow" || s === "relative-to-current-hubspace" ? "SPACE" : s === "relative-to-embedded-data" ? "EMBEDDED" : s;
391
- },
392
- set: (s) => {
393
- r(
394
- s === "SPACE" ? H.value || j ? "relative-to-workflow" : "relative-to-current-hubspace" : s === "EMBEDDED" ? "relative-to-embedded-data" : s
395
- );
396
- }
397
- }), re = p(() => {
398
- const s = M.value === "SPACE", y = t.value;
399
- return s && y ? {
400
- relativeToPath: y,
401
- rootLabel: "Space",
402
- relativeRootLabel: "Workflow",
403
- isRelativeTo: R.value,
404
- relativeRootIcon: Se,
405
- initialFilePathIsRelative: j
406
- } : null;
407
- }), K = p(
408
- () => X(o.modelValue.fsCategory, w.value)
409
- ), { initialFilePathForCurrentTab: ie, handleNavigate: ue } = nt({
410
- backendType: K,
411
- modelValue: B(o, "modelValue")
412
- }), G = S(null), de = p(() => o.modelValue.fsCategory === "relative-to-current-hubspace" ? _.value : o.modelValue.fsCategory === "relative-to-embedded-data" ? "Data" : null), pe = {
413
- SPACE: "browse the current space",
414
- EMBEDDED: "browse the embedded data",
415
- CUSTOM_URL: "use a URL to read files",
416
- LOCAL: "browse the local file system"
417
- };
418
- return (s, y) => (c(), k("div", st, [
419
- i(V) ? (c(), U(i(xe), {
420
- key: 0,
421
- modelValue: M.value,
422
- "onUpdate:modelValue": y[0] || (y[0] = (N) => M.value = N),
423
- "possible-values": ne.value
424
- }, null, 8, ["modelValue", "possible-values"])) : Z("", !0),
425
- T("div", rt, [
426
- i(b) && M.value !== "CONNECTED" ? (c(), U(Qe, {
427
- key: 0,
428
- "browse-action": pe[M.value]
429
- }, null, 8, ["browse-action"])) : s.modelValue.fsCategory === "CUSTOM_URL" ? (c(), U(lt, {
430
- key: 1,
431
- id: s.id,
432
- "model-value": s.modelValue,
433
- disabled: s.disabled,
434
- "onUpdate:path": i(f),
435
- "onUpdate:timeout": i(h)
436
- }, null, 8, ["id", "model-value", "disabled", "onUpdate:path", "onUpdate:timeout"])) : i(F) ? (c(), U(Te, {
437
- key: 2,
438
- id: s.id,
439
- "filtered-extensions": i(d),
440
- "appended-extension": i(g),
441
- "is-writer": i(C),
442
- "backend-type": K.value,
443
- "initial-file-path": i(ie),
444
- "initial-file-name": G.value,
445
- "breadcrumb-root": de.value,
446
- "selection-mode": i(v),
447
- "relative-to-options": re.value,
448
- onChooseItem: i(f),
449
- onNavigate: i(ue),
450
- "onUpdate:fileName": y[1] || (y[1] = (N) => G.value = N),
451
- "onUpdate:isRelativeTo": se,
452
- onApplyAndClose: y[2] || (y[2] = (N) => a("applyAndClose"))
453
- }, null, 8, ["id", "filtered-extensions", "appended-extension", "is-writer", "backend-type", "initial-file-path", "initial-file-name", "breadcrumb-root", "selection-mode", "relative-to-options", "onChooseItem", "onNavigate"])) : Z("", !0)
454
- ])
455
- ]));
456
- }
457
- }), ut = /* @__PURE__ */ A(it, [["__scopeId", "data-v-2194d88c"]]), dt = ({
458
- data: n,
459
- validCategories: e,
460
- isOverwritten: o,
461
- isConnected: a,
462
- onFsCategoryUpdate: m,
463
- clearPath: r
464
- }) => {
465
- const f = p(
466
- () => !o.value && !e.value.includes(n.value.fsCategory) && e.value.length > 0
467
- );
468
- O(a, () => {
469
- !o.value && a.value && m(e.value[0]);
470
- }, { immediate: !0 });
471
- const v = (u) => {
472
- var F, V, _;
473
- return u.fsCategory === "CONNECTED" ? "The path has been configured with a file system from an input port that is no longer available. Either add the port again or clear the path to configure using a different file system." : (F = u.context) != null && F.fsToString.startsWith("(HUB_SPACE,") ? 'Selecting a path from a custom HUB Space is no longer supported in this dialog. Consider connecting a "Space Connector" node to this node instead.' : (V = u.context) != null && V.fsToString.startsWith("(RELATIVE, knime.mountpoint,") || (_ = u.context) != null && _.fsToString.startsWith("(MOUNTPOINT,") ? 'Selecting a path from a mountpoint is no longer supported in this dialog. Consider connecting a "Mountpoint Connector" node to this node instead.' : "The selected file system is no longer selectable.";
474
- }, d = (u) => $(Pe, {
475
- variant: "warning",
476
- title: "The currently configured file system is no longer selectable.",
477
- description: v(u)
478
- }), g = $(Ce, {
479
- size: "small",
480
- label: "Clear to reconfigure",
481
- variant: "outlined",
482
- onClick: () => r()
483
- });
484
- return {
485
- fsNotSupportedComponent: p(
486
- () => !a.value && f.value ? $(
487
- "div",
488
- {
489
- style: {
490
- display: "flex",
491
- flexDirection: "column",
492
- gap: "var(--space-4)"
493
- }
494
- },
495
- [
496
- d(n.value),
497
- g
498
- ]
499
- ) : null
500
- ),
501
- fsNotSupported: f
502
- };
503
- }, pt = { class: "flex-row" }, ct = /* @__PURE__ */ P({
504
- __name: "FileChooserControlBase",
505
- props: {
506
- control: {},
507
- handleChange: { type: Function },
508
- changeValue: { type: Function },
509
- disabled: { type: Boolean },
510
- isValid: { type: Boolean },
511
- onRegisterValidation: { type: Function },
512
- labelForId: {},
513
- toPath: { type: Function },
514
- changePath: { type: Function }
515
- },
516
- setup(n) {
517
- const e = n, o = p(() => e.control.uischema), a = z(o, "connectedFSOptions"), m = p(() => {
518
- var l;
519
- return {
520
- ...o.value.options,
521
- connectedFSOptions: a.value ?? ((l = o.value.options) == null ? void 0 : l.connectedFSOptions)
522
- };
523
- }), {
524
- validCategories: r,
525
- isConnectedButNoFileConnectionIsAvailable: f,
526
- isConnected: h
527
- } = Q(m), v = () => {
528
- var l;
529
- return {
530
- path: "",
531
- timeout: 1e4,
532
- fsCategory: r.value[0],
533
- context: {
534
- fsToString: "",
535
- fsSpecifier: (l = a.value) == null ? void 0 : l.fileSystemSpecifier
536
- }
537
- };
538
- }, d = p(() => e.control.data ? e.toPath(e.control.data) : v()), { flowSettings: g } = be({
539
- path: p(() => e.control.path)
540
- }), C = p(
541
- () => {
542
- var l;
543
- return !!((l = g.value) != null && l.controllingFlowVariableName);
544
- }
545
- );
546
- O(
547
- () => C.value,
548
- (l) => {
549
- l || e.changePath(v());
550
- }
551
- );
552
- const { onFsCategoryUpdate: u } = ee(
553
- d,
554
- e.changePath,
555
- o
556
- ), F = S(
557
- null
558
- ), { fsNotSupportedComponent: V, fsNotSupported: _ } = dt({
559
- data: d,
560
- validCategories: r,
561
- isOverwritten: C,
562
- isConnected: h,
563
- onFsCategoryUpdate: u,
564
- clearPath: () => {
565
- e.changePath(v()), setTimeout(() => {
566
- var l, w;
567
- return (w = (l = F.value) == null ? void 0 : l.focusInput) == null ? void 0 : w.call(l);
568
- }, 0);
569
- }
570
- }), { onApply: D, sideDrawerValue: t } = ke({
571
- onChange: e.changePath,
572
- initialValue: d
573
- }), b = p(
574
- () => e.disabled || f.value || r.value.length === 0 || _.value
575
- );
576
- return (l, w) => (c(), k(q, null, [
577
- T("div", pt, [
578
- x(Me, {
579
- id: l.labelForId,
580
- ref_key: "textControl",
581
- ref: F,
582
- class: "flex-grow",
583
- "model-value": d.value,
584
- disabled: b.value,
585
- "is-valid": l.isValid,
586
- options: m.value,
587
- "onUpdate:modelValue": l.changePath
588
- }, null, 8, ["id", "model-value", "disabled", "is-valid", "options", "onUpdate:modelValue"]),
589
- x(Fe, {
590
- disabled: b.value,
591
- onApply: i(D)
592
- }, {
593
- default: W(({ applyAndClose: E }) => [
594
- (c(), U(ut, {
595
- id: l.labelForId ?? null,
596
- key: `${d.value.fsCategory}-${d.value.path}`,
597
- modelValue: i(t),
598
- "onUpdate:modelValue": w[0] || (w[0] = (I) => ve(t) ? t.value = I : null),
599
- disabled: b.value,
600
- uischema: o.value,
601
- onApplyAndClose: E
602
- }, null, 8, ["id", "modelValue", "disabled", "uischema", "onApplyAndClose"]))
603
- ]),
604
- _: 1
605
- }, 8, ["disabled", "onApply"])
606
- ]),
607
- (c(), U(fe(i(V))))
608
- ], 64));
609
- }
610
- }), bt = /* @__PURE__ */ A(ct, [["__scopeId", "data-v-fda26970"]]);
611
- export {
612
- bt as F
613
- };