@knime/scripting-editor 0.0.124 → 0.0.125

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-ShOqAkJx.js} +1 -1
  2. package/dist/{ArrayLayout-C5yFgV8Q.js → ArrayLayout-q8ds1Aqz.js} +16 -16
  3. package/dist/{ButtonControl-cBR6Ne7s.js → ButtonControl-CYzXzZ_O.js} +1 -1
  4. package/dist/{CheckboxControl--qMC4yqR-CgacSNSR.js → CheckboxControl-CS6iXHnF-B3073KNg.js} +1 -1
  5. package/dist/{CheckboxesControl-BsOG-QR8-DdSUICiM.js → CheckboxesControl-CPKIkyWt-B5TS6lpg.js} +2 -2
  6. package/dist/{CodeEditorControl-BmA6cWok.js → CodeEditorControl-CXYWbcoo.js} +1 -1
  7. package/dist/{ColorControl-BX93RNbV-Bg6FmjdB.js → ColorControl-DeSwgyjS-C8KShUM8.js} +1 -1
  8. package/dist/{ColorPreviewControl-CFVeFXBp-BNXlVoi9.js → ColorPreviewControl-CntI0nTL-D5gFzGvP.js} +10 -10
  9. package/dist/{ComboBoxControl-M5HOJcy2-DVXiZQvt.js → ComboBoxControl-DBYnBkC4-1_wXpUcl.js} +4 -4
  10. package/dist/{ConfigurationNodeNotSupported-Dh2xU1UF.js → ConfigurationNodeNotSupported-DqmSOOBT.js} +1 -1
  11. package/dist/{ControlWithSubParameters-D0qNx3y-.js → ControlWithSubParameters-Ba390eOo.js} +8 -8
  12. package/dist/{CredentialsControl-CwZxixjM.js → CredentialsControl-BeCPOU6s.js} +2 -2
  13. package/dist/{CredentialsControlBase-BwUZOe-t.js → CredentialsControlBase-DBFidwMl.js} +8 -8
  14. package/dist/{DateControl-PYVPxPvC-BzWQEGvR.js → DateControl-Cx_CwvNB-CE8Fm3pC.js} +1 -1
  15. package/dist/{DateTimeControl-_8d8iizh-DqQwphIF.js → DateTimeControl-BJsDzufC-Cu4T1Lrt.js} +1 -1
  16. package/dist/{DateTimeFormatPickerControl-xRNNTLIl-DJ3bbKY3.js → DateTimeFormatPickerControl-C80v1qfK-CzhWsCj7.js} +8 -8
  17. package/dist/{DateTimeFormatPickerWithTypeControl-CZZBe3PC-LTeHxr8D.js → DateTimeFormatPickerWithTypeControl-Dt-FKtYV-wkd9HHay.js} +23 -23
  18. package/dist/{DialogFileExplorer-D6KGXnvM.js → DialogFileExplorer-DZmUEwjv.js} +201 -216
  19. package/dist/{DirtyTrackerRenderer-B5cH2aL8.js → DirtyTrackerRenderer-DcK-tATZ.js} +2 -2
  20. package/dist/{DropdownControl-sGxFWX33-ByFZSZbg.js → DropdownControl-D_BnA4-1-PRO5iNhR.js} +2 -2
  21. package/dist/DynamicInputControl-DeUyGCEc.js +6 -0
  22. package/dist/{ExecutorCoresControl-6DB4hS8_-BhtGiSqF.js → ExecutorCoresControl-BnglyGMR-DqB0caKw.js} +19 -14
  23. package/dist/{ExecutorMemoryControl-xKHl7IXW-D0e7o4CL.js → ExecutorMemoryControl-CRATGs9C-LF37A-C5.js} +2 -2
  24. package/dist/{FileChooserControl-DnRohPCZ.js → FileChooserControl-DnyrXeMn.js} +2 -2
  25. package/dist/FileChooserControlBase-BDrQg1r7.js +544 -0
  26. package/dist/{FileChooserControlForMultiFile-CMhiNDSM.js → FileChooserControlForMultiFile-DHnPYDbi.js} +1 -1
  27. package/dist/{FileUploadControl-Bjgh9vSl-CPHxxVRA.js → FileUploadControl-D42rjpJg-D_nG1ayB.js} +35 -34
  28. package/dist/{GridSelectionControl-DslOwaNV-B9aCP6XX.js → GridSelectionControl-BJk8-yiM-DW0dGK86.js} +18 -18
  29. package/dist/{HorizontalLayout-Dl9cC50s-CTgzEebl.js → HorizontalLayout-DwdPdBTW-BC0JQ8M3.js} +1 -1
  30. package/dist/{IntegerControl-DSzPJs4Z-zZCQlr8l.js → IntegerControl-D8OzxbRA-DoIwwIKL.js} +1 -1
  31. package/dist/{IntervalControl-DoWDLPMP-fal6DeXs.js → IntervalControl-Drljrv-b-D_w5jliC.js} +32 -32
  32. package/dist/{LabeledGroup-zL2NOk09.js → LabeledGroup-DrXamFRi.js} +1 -1
  33. package/dist/{LegacyCredentialsControl-CtqcCnFx.js → LegacyCredentialsControl-CzNFauaZ.js} +2 -2
  34. package/dist/{LinkControl-BuYI03b_-NJ2s5Dca.js → LinkControl-BvBBTFCs-DhRpUJ9F.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-D7No3JRo.js} +1 -1
  36. package/dist/{ManualTwinlistControl-mN3zJTMK-DGwdr0zl.js → ManualTwinlistControl-By0Hur_m-Eh_oX_4b.js} +7 -7
  37. package/dist/MultiFileChooserControl-C1xBR3Oh.js +401 -0
  38. package/dist/{MultiRuleWrapper-D5aY3_UC.js → MultiRuleWrapper-BoViCE45.js} +1 -1
  39. package/dist/{MultiSelectListBoxControl-CnSublPM-B1j0ZME0.js → MultiSelectListBoxControl-nmvLP18g-Cau3WBNA.js} +3 -3
  40. package/dist/{MultimodeTwinlistControl-CyZQ54SO-DT50Fro-.js → MultimodeTwinlistControl-yCdeWH2E-BXEYfhu_.js} +14 -14
  41. package/dist/{NameFilter-C1u8qsYQ-BAjFRRWl.js → NameFilter-D1TMJydD-BCDMDZ9m.js} +1 -1
  42. package/dist/{NumberControl-qiTgXs6x-LVbM4M31.js → NumberControl-uLMOLEbg-BN02h8ID.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-CYM7aU-A.js} +3 -3
  44. package/dist/{OneOfDropdown-Dn6QM81--CwMpXCXg.js → OneOfDropdown-CDwwxb3h-Qm75Epl7.js} +4 -4
  45. package/dist/{RadioButtonsWithDescriptionControl-1X9F9obn-CPDfho0i.js → RadioButtonsWithDescriptionControl-5M_6G7Qk-C-lRNiQf.js} +1 -1
  46. package/dist/{RadioControl-BdHtNPFC-vdjL0p2Z.js → RadioControl-C73s-icb-eCORO2wi.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-BNhdXilP.js} +4 -4
  48. package/dist/{ResourceControlBase-CDpi3J6s-D0LxAMCa.js → ResourceControlBase-Bqq1PAX_-CDpMtg0d.js} +14 -14
  49. package/dist/{RichTextControl-5o904Fvx-CVqBj3Wi.js → RichTextControl-D9QD2_uO-gEpzLCAI.js} +7 -7
  50. package/dist/{SectionLayout-B9X7fzQ9-weWE29yL.js → SectionLayout-DY27pAtG-DmKc6jHs.js} +1 -1
  51. package/dist/{SettingsSubPanelLayout-D8j0-HKD-D2KHKfX_.js → SettingsSubPanelLayout-82gMWhpv-Bgknlz96.js} +15 -15
  52. package/dist/{SimpleTwinlistControl-RlnzOp0j-IrHSl4XC.js → SimpleTwinlistControl-P4KEYOq0-72s6dsaS.js} +2 -2
  53. package/dist/{SingleSelectControl-DPPwJUq3-IYYZ7X-L.js → SingleSelectControl-C_ZKkV5m-PjSlqYRi.js} +2 -2
  54. package/dist/{SingleSelectListBoxControl-EMc8u2ik-DEMnwGWh.js → SingleSelectListBoxControl-oMWH0vEE-C-_KJWqa.js} +3 -3
  55. package/dist/{SortListControl-Bw3K37ru-C20fveDO.js → SortListControl-4v3T2j_9-CHtVCaED.js} +15 -15
  56. package/dist/{StringFileChooserControl-DMBzTIng.js → StringFileChooserControl-CKp_5Vby.js} +19 -19
  57. package/dist/{StyledListItem-Bli2itH--DzQz0VeI.js → StyledListItem-D3LSfgGV-BIQYzIex.js} +1 -1
  58. package/dist/{TeamAndSpacesControl-BlvUuAAA-B1V6iD1Z.js → TeamAndSpacesControl-CH5ImByy-IFiDFnqU.js} +9 -9
  59. package/dist/{TeamResourceControl-DuLmQ7gc-DGpH70FI.js → TeamResourceControl-BFMuyWnk-nyWsEMS5.js} +2 -2
  60. package/dist/{TextAreaControl-DtfB44mR-Bwogmc7W.js → TextAreaControl-CrsZSU_f-DhnIbDX2.js} +1 -1
  61. package/dist/{TextControl-BlUQLMGo-CSdt3hw2.js → TextControl-B0ag-3Pv-DdQMdDop.js} +21356 -20506
  62. package/dist/{TimeControl-DWzlpLX--DVTcWUBt.js → TimeControl-Bt5OcjBc-B7zykVsr.js} +1 -1
  63. package/dist/{TimePartInput-CRP2YYM0-CbQSqTuJ.js → TimePartInput-CvwAzDuY-BD3G3W1e.js} +1 -1
  64. package/dist/{TimeframesControl-O_hzJcX5-DXtgwxa_.js → TimeframesControl-BE3LFgyl-sTfXusxC.js} +2 -2
  65. package/dist/{Tooltip-C9vAa0Wb-DNgF-D1Q.js → Tooltip-UlemzxdS-Brydd8ux.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-BY9ATbAK.js} +2 -2
  67. package/dist/{TypedStringFilter-ByeMPxR6-CCQ4uw8i.js → TypedStringFilter-ry7fTUTx-2_vbd039.js} +1 -1
  68. package/dist/{ValueSwitch-BV9qUd5x-CEiCBY-I.js → ValueSwitch-BXaDBm2C-ssKvnGfK.js} +2 -2
  69. package/dist/{ValueSwitchControl-nW7WtSSM-D2W0Q4QS.js → ValueSwitchControl-aVx7pUi9-BZM0wH1q.js} +1 -1
  70. package/dist/{VennDiagramLayout-CGbt8VwT.js → VennDiagramLayout-BgqofESb.js} +1 -1
  71. package/dist/{VerticalLayout-C7_-yu_D-ODUVb0PV.js → VerticalLayout-Bv-LJOZ0-CblpkNEV.js} +1 -1
  72. package/dist/{ZonedDateTimeControl-DlrvZKe4-zaxSf2EX.js → ZonedDateTimeControl-6MUvXzd3-D-ars3P_.js} +5 -5
  73. package/dist/{_Uint8Array-BESS0YjU-BkSYIhdG.js → _Uint8Array-C_ozLuQF-Nwa7hPEk.js} +42 -42
  74. package/dist/lib/main.d.ts +1 -2
  75. package/dist/{localTimeUtils-Bl9xa5Jk-CrPaYHbw.js → localTimeUtils-DBMwKtLh-BfO_a0uM.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-rJeZUfkE.js} +1 -1
  79. package/dist/{useFileChooserBackend-D0qgqkW_.js → useFileChooserBackend-HoIvcM0_.js} +1 -1
  80. package/dist/usePossibleValues-B-W6u-1T-BQ31Bf2-.js +20 -0
  81. package/package.json +6 -6
  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,5 +1,5 @@
1
1
  import { defineComponent as r, computed as l, watch as c } from "vue";
2
- import { u, ab as p, ac as m } from "./TextControl-BlUQLMGo-CSdt3hw2.js";
2
+ import { d, ab as p, ac as m } from "./TextControl-B0ag-3Pv-DdQMdDop.js";
3
3
  const f = /* @__PURE__ */ r({
4
4
  __name: "DirtyTrackerRenderer",
5
5
  props: {
@@ -15,7 +15,7 @@ const f = /* @__PURE__ */ r({
15
15
  setup(o) {
16
16
  const t = o, n = l(
17
17
  () => t.control.uischema
18
- ), a = u(n, "makeDirty", !1), { registerNonControlState: i } = p(), s = i(m(t.control.path))({
18
+ ), a = d(n, "makeDirty", !1), { registerNonControlState: i } = p(), s = i(m(t.control.path))({
19
19
  initialValue: !1,
20
20
  valueComparator: {
21
21
  isModified: (e) => e,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as a, toRef as n, createBlock as t, openBlock as r, unref as d } from "vue";
2
- import { t as i } from "./usePossibleValues-B8es3DCW-CX4w2_Zt.js";
3
- import { L as s } from "./LoadingDropdown.vue_vue_type_script_setup_true_lang-DZ90-rk8-BdWmR-eL.js";
2
+ import { t as i } from "./usePossibleValues-B-W6u-1T-BQ31Bf2-.js";
3
+ import { L as s } from "./LoadingDropdown.vue_vue_type_script_setup_true_lang-BLSG6Lpo-D7No3JRo.js";
4
4
  const f = /* @__PURE__ */ a({
5
5
  __name: "DropdownControl",
6
6
  props: {
@@ -0,0 +1,6 @@
1
+ import { P as o } from "./TextControl-B0ag-3Pv-DdQMdDop.js";
2
+ import { Q as m } from "./TextControl-B0ag-3Pv-DdQMdDop.js";
3
+ export {
4
+ m as DYNAMIC_SETTINGS_KEY,
5
+ o as default
6
+ };
@@ -1,7 +1,7 @@
1
- import { defineComponent as m, computed as o, createBlock as v, openBlock as h, normalizeProps as f, guardReactiveProps as y, withCtx as C, createElementVNode as a, toDisplayString as i } from "vue";
2
- import { Q as x } from "./ResourceControlBase-CDpi3J6s-D0LxAMCa.js";
3
- import { Y as g } from "./TextControl-BlUQLMGo-CSdt3hw2.js";
4
- const V = { class: "info-container" }, b = { class: "chart-title" }, k = { class: "chart-description" }, B = /* @__PURE__ */ m({
1
+ import { defineComponent as v, computed as o, createBlock as h, openBlock as f, normalizeProps as C, guardReactiveProps as g, withCtx as x, createElementVNode as a, toDisplayString as i } from "vue";
2
+ import { Q as y } from "./ResourceControlBase-Bqq1PAX_-CDpMtg0d.js";
3
+ import { Y as b } from "./TextControl-B0ag-3Pv-DdQMdDop.js";
4
+ const V = { class: "info-container" }, k = { class: "chart-title" }, B = { class: "chart-description" }, F = /* @__PURE__ */ v({
5
5
  __name: "ExecutorCoresControl",
6
6
  props: {
7
7
  control: {},
@@ -18,6 +18,11 @@ const V = { class: "info-container" }, b = { class: "chart-title" }, k = { class
18
18
  var e;
19
19
  return ((e = t.control.uischema.options) == null ? void 0 : e.donutTitle) || "";
20
20
  }
21
+ ), c = o(
22
+ () => {
23
+ var e;
24
+ return ((e = t.control.uischema.options) == null ? void 0 : e.currentUsage) ?? 0;
25
+ }
21
26
  ), n = o(
22
27
  () => t.control.schema.secondaryValue || 0
23
28
  ), l = o(
@@ -25,27 +30,27 @@ const V = { class: "info-container" }, b = { class: "chart-title" }, k = { class
25
30
  var e;
26
31
  return ((e = t.control.uischema.options) == null ? void 0 : e.donutMax) ?? 1 / 0;
27
32
  }
28
- ), c = o(
29
- () => l.value === -1 ? "unlimited" : l.value
30
33
  ), u = o(
34
+ () => l.value === -1 ? "unlimited" : l.value
35
+ ), d = o(
31
36
  () => {
32
37
  var e;
33
38
  return ((e = t.control.uischema.options) == null ? void 0 : e.isSharedContext) ?? !1;
34
39
  }
35
- ), d = o(() => t.control.data + n.value), p = o(
36
- () => `This execution context will use ${n.value} vCore tokens. In total, ${d.value} of ${c.value} vCore tokens available ${u.value ? "from the license" : "for this team"} will be used.`
40
+ ), p = o(() => c.value + n.value), m = o(
41
+ () => `This execution context will use ${n.value} vCore tokens. In total, ${p.value} of ${u.value} vCore tokens available ${d.value ? "from the license" : "for this team"} will be used.`
37
42
  );
38
- return (e, _) => (h(), v(x, f(y(t)), {
39
- "donut-info": C(() => [
43
+ return (e, _) => (f(), h(y, C(g(t)), {
44
+ "donut-info": x(() => [
40
45
  a("div", V, [
41
- a("div", b, i(s.value), 1),
42
- a("div", k, i(p.value), 1)
46
+ a("div", k, i(s.value), 1),
47
+ a("div", B, i(m.value), 1)
43
48
  ])
44
49
  ]),
45
50
  _: 1
46
51
  }, 16));
47
52
  }
48
- }), I = /* @__PURE__ */ g(B, [["__scopeId", "data-v-67543247"]]);
53
+ }), E = /* @__PURE__ */ b(F, [["__scopeId", "data-v-58b92dd1"]]);
49
54
  export {
50
- I as default
55
+ E as default
51
56
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as d, computed as o, createBlock as m, openBlock as v, normalizeProps as h, guardReactiveProps as f, withCtx as y, createElementVNode as a, toDisplayString as i } from "vue";
2
- import { Q as B } from "./ResourceControlBase-CDpi3J6s-D0LxAMCa.js";
3
- import { Y as g } from "./TextControl-BlUQLMGo-CSdt3hw2.js";
2
+ import { Q as B } from "./ResourceControlBase-Bqq1PAX_-CDpMtg0d.js";
3
+ import { Y as g } from "./TextControl-B0ag-3Pv-DdQMdDop.js";
4
4
  const x = { class: "info-container" }, b = { class: "chart-title" }, V = { class: "chart-description" }, C = /* @__PURE__ */ d({
5
5
  __name: "ExecutorMemoryControl",
6
6
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as r, createBlock as p, openBlock as l, mergeProps as c } from "vue";
2
- import { ad as s } from "./TextControl-BlUQLMGo-CSdt3hw2.js";
3
- import { F as h } from "./FileChooserControlBase-Bzweo0oX.js";
2
+ import { ad as s } from "./TextControl-B0ag-3Pv-DdQMdDop.js";
3
+ import { F as h } from "./FileChooserControlBase-BDrQg1r7.js";
4
4
  const g = /* @__PURE__ */ r({
5
5
  __name: "FileChooserControl",
6
6
  props: {
@@ -0,0 +1,544 @@
1
+ import { defineComponent as P, toRef as B, ref as T, computed as m, onMounted as Y, watch as R, createBlock as U, openBlock as b, unref as u, createElementBlock as O, createElementVNode as A, createVNode as x, toDisplayString as me, createPropsRestProxy as fe, Fragment as Z, createCommentVNode as J, h as $, withCtx as ve, isRef as he, resolveDynamicComponent as Ce } from "vue";
2
+ import { d as K, ai as W, au as q, aQ as ge, aR as be, aB as ye, a9 as Se, aa as Te } from "./TextControl-B0ag-3Pv-DdQMdDop.js";
3
+ import { a as Q, G as we, W as Fe, D as Ve, u as Ee, _ as Ue } from "./DialogFileExplorer-DZmUEwjv.js";
4
+ import { a as X, b as _e, g as ee, u as ke } from "./useFileChooserBackend-HoIvcM0_.js";
5
+ import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const te = (r, t, o) => {
7
+ const a = K(o, "connectedFSOptions");
8
+ return { onPathUpdate: (v) => {
9
+ var c;
10
+ const f = (c = a.value) == null ? void 0 : c.fileSystemSpecifier;
11
+ t(
12
+ W(r.value, {
13
+ path: v,
14
+ ...f ? { context: { fsSpecifier: f } } : {}
15
+ })
16
+ );
17
+ }, onTimeoutUpdate: (v) => {
18
+ t(W(r.value, { timeout: v }));
19
+ }, onFsCategoryUpdate: (v) => {
20
+ t(W(r.value, { fsCategory: v }));
21
+ } };
22
+ }, oe = /^[A-Za-z0-9]+:\/\//, ae = "knime://knime.space/", le = "knime://knime.workflow/", ne = "knime://knime.workflow/data/", Pe = [
23
+ ["relative-to-current-hubspace", ae],
24
+ ["relative-to-embedded-data", ne],
25
+ // check before workflow!
26
+ ["relative-to-workflow", le]
27
+ ], De = /* @__PURE__ */ P({
28
+ __name: "FSLocationTextControl",
29
+ props: {
30
+ modelValue: {},
31
+ disabled: { type: Boolean },
32
+ options: {},
33
+ isValid: { type: Boolean }
34
+ },
35
+ emits: ["update:modelValue"],
36
+ setup(r, { expose: t, emit: o }) {
37
+ const a = r, i = o, { isConnected: l, isLocal: p } = X(B(a, "options")), { getFilePath: v } = _e({
38
+ filteredExtensions: T([]),
39
+ // only relevant for browsing
40
+ appendedExtension: T(null),
41
+ // We do not wish to append anything here, since the user should be able to manually access any file
42
+ isWriter: T(!1),
43
+ // only relevant for browsing
44
+ backendType: m(
45
+ () => {
46
+ var e;
47
+ return ee(
48
+ a.modelValue.fsCategory,
49
+ (e = a.options.connectedFSOptions) == null ? void 0 : e.portIndex
50
+ );
51
+ }
52
+ )
53
+ }), f = async (e) => {
54
+ var y;
55
+ if (!l.value && e.fsCategory === "relative-to-current-hubspace")
56
+ return ae + e.path;
57
+ if (!l.value && e.fsCategory === "relative-to-workflow")
58
+ return le + e.path;
59
+ if (!l.value && e.fsCategory === "relative-to-embedded-data")
60
+ return ne + e.path;
61
+ if (!l.value && e.fsCategory === "CUSTOM_URL")
62
+ return e.path;
63
+ if (!l.value && e.fsCategory === "LOCAL") {
64
+ if (e.path === "")
65
+ return "";
66
+ const { path: n, errorMessage: S } = await v(
67
+ null,
68
+ e.path,
69
+ null
70
+ );
71
+ return S ? e.path : n || "";
72
+ }
73
+ return l.value && e.fsCategory === "CONNECTED" ? e.path : ((y = e.context) == null ? void 0 : y.fsToString) ?? "";
74
+ }, c = T(null), h = T(""), C = T(!1);
75
+ Y(() => {
76
+ d();
77
+ });
78
+ const d = async () => {
79
+ h.value = await f(a.modelValue);
80
+ };
81
+ R(
82
+ () => a.modelValue,
83
+ () => {
84
+ C.value || d();
85
+ }
86
+ );
87
+ const w = (e) => {
88
+ var n;
89
+ if (l.value)
90
+ return {
91
+ fsCategory: "CONNECTED",
92
+ path: e,
93
+ timeout: a.modelValue.timeout,
94
+ context: {
95
+ fsToString: "",
96
+ // won't be used in case of isConnected = true
97
+ fsSpecifier: (n = a.options.connectedFSOptions) == null ? void 0 : n.fileSystemSpecifier
98
+ }
99
+ };
100
+ for (const [S, E] of Pe)
101
+ if (e.startsWith(E))
102
+ return {
103
+ fsCategory: S,
104
+ path: e.replace(E, ""),
105
+ timeout: a.modelValue.timeout
106
+ };
107
+ const y = p.value ? "LOCAL" : "relative-to-current-hubspace";
108
+ return {
109
+ fsCategory: oe.test(e) ? "CUSTOM_URL" : y,
110
+ path: e,
111
+ timeout: a.modelValue.timeout
112
+ };
113
+ }, F = (e) => {
114
+ h.value = e, i("update:modelValue", w(e));
115
+ }, V = () => {
116
+ C.value = !0;
117
+ }, D = () => {
118
+ C.value = !1, d();
119
+ };
120
+ return t({
121
+ focusInput: () => {
122
+ var e;
123
+ return (e = c.value) == null ? void 0 : e.focus();
124
+ }
125
+ }), (e, y) => (b(), U(u(q), {
126
+ ref_key: "textInputRef",
127
+ ref: c,
128
+ "model-value": h.value,
129
+ disabled: e.disabled,
130
+ placeholder: e.options.placeholder,
131
+ error: !e.isValid,
132
+ ariaLabel: "File path",
133
+ "onUpdate:modelValue": F,
134
+ onFocus: V,
135
+ onBlur: D
136
+ }, null, 8, ["model-value", "disabled", "placeholder", "error"]));
137
+ }
138
+ }), Ie = {
139
+ xmlns: "http://www.w3.org/2000/svg",
140
+ fill: "none",
141
+ stroke: "#000",
142
+ "stroke-linejoin": "round",
143
+ viewBox: "0 0 32 32"
144
+ };
145
+ function Ne(r, t) {
146
+ return b(), O("svg", Ie, t[0] || (t[0] = [
147
+ A("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)
148
+ ]));
149
+ }
150
+ const xe = { render: Ne }, Oe = { class: "vertical" }, Be = /* @__PURE__ */ P({
151
+ __name: "ConnectionPreventsTab",
152
+ props: {
153
+ browseAction: {}
154
+ },
155
+ setup(r) {
156
+ return (t, o) => (b(), O("div", Oe, [
157
+ x(u(xe), { class: "icon" }),
158
+ A("span", null, "Remove the file system input port in order to " + me(t.browseAction) + ".", 1)
159
+ ]));
160
+ }
161
+ }), Re = /* @__PURE__ */ M(Be, [["__scopeId", "data-v-d064fa5b"]]), Ae = /* @__PURE__ */ P({
162
+ __name: "CustomUrlFileChooser",
163
+ props: {
164
+ disabled: { type: Boolean, default: !1 },
165
+ modelValue: {},
166
+ id: {},
167
+ urlErrorMessage: { default: null }
168
+ },
169
+ emits: ["update:path", "update:timeout"],
170
+ setup(r, { emit: t }) {
171
+ const o = fe(r, ["disabled", "urlErrorMessage"]), a = t;
172
+ return (i, l) => (b(), O(Z, null, [
173
+ x(u(q), {
174
+ id: o.id ?? void 0,
175
+ class: "url-input",
176
+ ariaLabel: "URL",
177
+ error: i.urlErrorMessage !== null,
178
+ "sub-text": i.urlErrorMessage ?? void 0,
179
+ "preserve-sub-text-space": "",
180
+ disabled: i.disabled,
181
+ "model-value": i.modelValue.path,
182
+ autocomplete: "off",
183
+ placeholder: "URL",
184
+ "onUpdate:modelValue": l[0] || (l[0] = (p) => a("update:path", p))
185
+ }, null, 8, ["id", "error", "sub-text", "disabled", "model-value"]),
186
+ x(u(ge), {
187
+ label: "Timeout",
188
+ min: 0,
189
+ step: 1,
190
+ disabled: i.disabled,
191
+ "model-value": i.modelValue.timeout,
192
+ unit: "ms",
193
+ "onUpdate:modelValue": l[1] || (l[1] = (p) => a("update:timeout", p))
194
+ }, null, 8, ["disabled", "model-value"])
195
+ ], 64));
196
+ }
197
+ }), Me = /* @__PURE__ */ M(Ae, [["__scopeId", "data-v-f3f673d7"]]), Le = /* @__PURE__ */ P({
198
+ __name: "UrlTab",
199
+ props: {
200
+ modelValue: {},
201
+ id: {}
202
+ },
203
+ emits: ["update:path", "update:timeout"],
204
+ setup(r, { emit: t }) {
205
+ const o = r, a = t, { text: i, disabled: l, onApply: p } = Q(), { shown: v } = Q(
206
+ we
207
+ );
208
+ Y(() => {
209
+ i.value = "Set Url", v.value = !1, p.value = () => Promise.resolve();
210
+ });
211
+ const f = m(
212
+ () => oe.test(o.modelValue.path)
213
+ );
214
+ R(
215
+ () => f.value,
216
+ (h) => {
217
+ l.value = !h;
218
+ },
219
+ { immediate: !0 }
220
+ );
221
+ const c = m(
222
+ () => f.value ? null : 'The url needs to start with a scheme (e.g. "https://")'
223
+ );
224
+ return (h, C) => (b(), U(Me, {
225
+ id: h.id,
226
+ "model-value": h.modelValue,
227
+ "url-error-message": c.value,
228
+ "onUpdate:path": C[0] || (C[0] = (d) => a("update:path", d)),
229
+ "onUpdate:timeout": C[1] || (C[1] = (d) => a("update:timeout", d))
230
+ }, null, 8, ["id", "model-value", "url-error-message"]));
231
+ }
232
+ }), $e = ({
233
+ backendType: r,
234
+ modelValue: t
235
+ }) => {
236
+ const o = t.value.fsCategory === "CUSTOM_URL" ? "CUSTOM_URL" : r.value, a = T({
237
+ [o]: t.value.path
238
+ });
239
+ return {
240
+ initialFilePathForCurrentTab: m(
241
+ () => a.value[r.value] ?? ""
242
+ ),
243
+ handleNavigate: (p) => {
244
+ a.value[r.value] = p ?? "";
245
+ }
246
+ };
247
+ }, We = { class: "flex" }, Ke = { class: "flex-grow" }, ze = /* @__PURE__ */ P({
248
+ __name: "SideDrawerContent",
249
+ props: {
250
+ modelValue: {},
251
+ disabled: { type: Boolean },
252
+ id: {},
253
+ uischema: {}
254
+ },
255
+ emits: ["update:modelValue", "applyAndClose"],
256
+ setup(r, { emit: t }) {
257
+ const o = r, a = t, i = B(o, "uischema"), { onFsCategoryUpdate: l, onPathUpdate: p, onTimeoutUpdate: v } = te(
258
+ B(o, "modelValue"),
259
+ (s) => {
260
+ a("update:modelValue", s);
261
+ },
262
+ i
263
+ ), f = K(
264
+ i,
265
+ "selectionMode",
266
+ "FILE"
267
+ ), {
268
+ filteredExtensions: c,
269
+ appendedExtension: h,
270
+ isWriter: C,
271
+ isLocal: d,
272
+ isLoaded: w,
273
+ tabsCanBeRendered: F,
274
+ spacePath: V,
275
+ mountId: D,
276
+ relativeWorkflowPath: e,
277
+ isConnected: y,
278
+ portFileSystemName: n,
279
+ portIndex: S,
280
+ fileSystems: E
281
+ } = ke(i), _ = (s, g, k) => ({
282
+ id: `file-chooser-${o.id}-tab-${s}`,
283
+ value: s,
284
+ label: g,
285
+ panelId: `file-chooser-${o.id}-panel-${s}`,
286
+ accessory: { type: "icon", name: k }
287
+ }), I = (s, g) => s ? [g] : [], se = m(() => [
288
+ ...I(
289
+ y.value,
290
+ _("CONNECTED", n.value, "connection")
291
+ ),
292
+ ...I(
293
+ d.value,
294
+ _("LOCAL", "Local file system", "local-filesystem")
295
+ ),
296
+ ...I(
297
+ E.value.includes("SPACE"),
298
+ _(
299
+ "SPACE",
300
+ D.value,
301
+ d.value ? "space-local" : "cloud-knime"
302
+ )
303
+ ),
304
+ ...I(
305
+ E.value.includes("EMBEDDED"),
306
+ _("EMBEDDED", "Embedded data", "folder")
307
+ ),
308
+ ...I(
309
+ E.value.includes("CUSTOM_URL"),
310
+ _("CUSTOM_URL", "URL", "link")
311
+ )
312
+ ]), L = m(
313
+ () => o.modelValue.fsCategory === "relative-to-workflow"
314
+ ), z = L.value, G = T(L.value), re = (s) => {
315
+ G.value = s, l(
316
+ s ? "relative-to-workflow" : "relative-to-current-hubspace"
317
+ );
318
+ }, N = m({
319
+ get: () => {
320
+ const s = o.modelValue.fsCategory;
321
+ return s === "relative-to-workflow" || s === "relative-to-current-hubspace" ? "SPACE" : s === "relative-to-embedded-data" ? "EMBEDDED" : s;
322
+ },
323
+ set: (s) => {
324
+ l(
325
+ s === "SPACE" ? G.value || z ? "relative-to-workflow" : "relative-to-current-hubspace" : s === "EMBEDDED" ? "relative-to-embedded-data" : s
326
+ );
327
+ }
328
+ }), ie = m(() => {
329
+ const s = N.value === "SPACE", g = e.value;
330
+ return s && g ? {
331
+ relativeToPath: g,
332
+ rootLabel: "Space",
333
+ relativeRootLabel: "Workflow",
334
+ isRelativeTo: L.value,
335
+ relativeRootIcon: Fe,
336
+ initialFilePathIsRelative: z
337
+ } : null;
338
+ }), H = m(
339
+ () => ee(o.modelValue.fsCategory, S.value)
340
+ ), { initialFilePathForCurrentTab: ue, handleNavigate: de } = $e({
341
+ backendType: H,
342
+ modelValue: B(o, "modelValue")
343
+ }), j = T(null), pe = m(() => o.modelValue.fsCategory === "relative-to-current-hubspace" ? V.value : o.modelValue.fsCategory === "relative-to-embedded-data" ? "Data" : null), ce = {
344
+ SPACE: "browse the current space",
345
+ EMBEDDED: "browse the embedded data",
346
+ CUSTOM_URL: "use a URL to read files",
347
+ LOCAL: "browse the local file system"
348
+ };
349
+ return (s, g) => (b(), O("div", We, [
350
+ u(F) ? (b(), U(u(be), {
351
+ key: 0,
352
+ modelValue: N.value,
353
+ "onUpdate:modelValue": g[0] || (g[0] = (k) => N.value = k),
354
+ tabs: se.value
355
+ }, null, 8, ["modelValue", "tabs"])) : J("", !0),
356
+ A("div", Ke, [
357
+ u(y) && N.value !== "CONNECTED" ? (b(), U(Re, {
358
+ key: 0,
359
+ "browse-action": ce[N.value]
360
+ }, null, 8, ["browse-action"])) : s.modelValue.fsCategory === "CUSTOM_URL" ? (b(), U(Le, {
361
+ key: 1,
362
+ id: s.id,
363
+ "model-value": s.modelValue,
364
+ disabled: s.disabled,
365
+ "onUpdate:path": u(p),
366
+ "onUpdate:timeout": u(v)
367
+ }, null, 8, ["id", "model-value", "disabled", "onUpdate:path", "onUpdate:timeout"])) : u(w) ? (b(), U(Ve, {
368
+ key: 2,
369
+ id: s.id,
370
+ "filtered-extensions": u(c),
371
+ "appended-extension": u(h),
372
+ "is-writer": u(C),
373
+ "backend-type": H.value,
374
+ "initial-file-path": u(ue),
375
+ "initial-file-name": j.value,
376
+ "breadcrumb-root": pe.value,
377
+ "selection-mode": u(f),
378
+ "relative-to-options": ie.value,
379
+ onChooseItem: u(p),
380
+ onNavigate: u(de),
381
+ "onUpdate:fileName": g[1] || (g[1] = (k) => j.value = k),
382
+ "onUpdate:isRelativeTo": re,
383
+ onApplyAndClose: g[2] || (g[2] = (k) => a("applyAndClose"))
384
+ }, 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"])) : J("", !0)
385
+ ])
386
+ ]));
387
+ }
388
+ }), Ge = /* @__PURE__ */ M(ze, [["__scopeId", "data-v-0cf1258f"]]), He = ({
389
+ data: r,
390
+ validCategories: t,
391
+ isOverwritten: o,
392
+ isConnected: a,
393
+ onFsCategoryUpdate: i,
394
+ clearPath: l
395
+ }) => {
396
+ const p = m(
397
+ () => !o.value && !t.value.includes(r.value.fsCategory) && t.value.length > 0
398
+ );
399
+ R(a, () => {
400
+ !o.value && a.value && i(t.value[0]);
401
+ }, { immediate: !0 });
402
+ const f = (d) => {
403
+ var w, F, V;
404
+ return d.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." : (w = d.context) != null && w.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.' : (F = d.context) != null && F.fsToString.startsWith("(RELATIVE, knime.mountpoint,") || (V = d.context) != null && V.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.";
405
+ }, c = (d) => $(Se, {
406
+ variant: "warning",
407
+ headline: "The currently configured file system is no longer selectable.",
408
+ description: f(d)
409
+ }), h = $(ye, {
410
+ size: "small",
411
+ label: "Clear to reconfigure",
412
+ variant: "outlined",
413
+ onClick: () => l()
414
+ });
415
+ return {
416
+ fsNotSupportedComponent: m(
417
+ () => !a.value && p.value ? $(
418
+ "div",
419
+ {
420
+ style: {
421
+ display: "flex",
422
+ flexDirection: "column",
423
+ gap: "var(--space-4)"
424
+ }
425
+ },
426
+ [
427
+ c(r.value),
428
+ h
429
+ ]
430
+ ) : null
431
+ ),
432
+ fsNotSupported: p
433
+ };
434
+ }, je = { class: "flex-row" }, Je = /* @__PURE__ */ P({
435
+ __name: "FileChooserControlBase",
436
+ props: {
437
+ control: {},
438
+ handleChange: { type: Function },
439
+ changeValue: { type: Function },
440
+ disabled: { type: Boolean },
441
+ isValid: { type: Boolean },
442
+ onRegisterValidation: { type: Function },
443
+ labelForId: {},
444
+ toPath: { type: Function },
445
+ changePath: { type: Function }
446
+ },
447
+ setup(r) {
448
+ const t = r, o = m(() => t.control.uischema), a = K(o, "connectedFSOptions"), i = m(() => {
449
+ var n;
450
+ return {
451
+ ...o.value.options,
452
+ connectedFSOptions: a.value ?? ((n = o.value.options) == null ? void 0 : n.connectedFSOptions)
453
+ };
454
+ }), {
455
+ validCategories: l,
456
+ isConnectedButNoFileConnectionIsAvailable: p,
457
+ isConnected: v
458
+ } = X(i), f = () => {
459
+ var n;
460
+ return {
461
+ path: "",
462
+ timeout: 1e4,
463
+ fsCategory: l.value[0],
464
+ context: {
465
+ fsToString: "",
466
+ fsSpecifier: (n = a.value) == null ? void 0 : n.fileSystemSpecifier
467
+ }
468
+ };
469
+ }, c = m(() => t.control.data ? t.toPath(t.control.data) : f()), { flowSettings: h } = Te({
470
+ path: m(() => t.control.path)
471
+ }), C = m(
472
+ () => {
473
+ var n;
474
+ return !!((n = h.value) != null && n.controllingFlowVariableName);
475
+ }
476
+ );
477
+ R(
478
+ () => C.value,
479
+ (n) => {
480
+ n || t.changePath(f());
481
+ }
482
+ );
483
+ const { onFsCategoryUpdate: d } = te(
484
+ c,
485
+ t.changePath,
486
+ o
487
+ ), w = T(
488
+ null
489
+ ), { fsNotSupportedComponent: F, fsNotSupported: V } = He({
490
+ data: c,
491
+ validCategories: l,
492
+ isOverwritten: C,
493
+ isConnected: v,
494
+ onFsCategoryUpdate: d,
495
+ clearPath: () => {
496
+ t.changePath(f()), setTimeout(() => {
497
+ var n, S;
498
+ return (S = (n = w.value) == null ? void 0 : n.focusInput) == null ? void 0 : S.call(n);
499
+ }, 0);
500
+ }
501
+ }), { onApply: D, sideDrawerValue: e } = Ee({
502
+ onChange: t.changePath,
503
+ initialValue: c
504
+ }), y = m(
505
+ () => t.disabled || p.value || l.value.length === 0 || V.value
506
+ );
507
+ return (n, S) => (b(), O(Z, null, [
508
+ A("div", je, [
509
+ x(De, {
510
+ id: n.labelForId,
511
+ ref_key: "textControl",
512
+ ref: w,
513
+ class: "flex-grow",
514
+ "model-value": c.value,
515
+ disabled: y.value,
516
+ "is-valid": n.isValid,
517
+ options: i.value,
518
+ "onUpdate:modelValue": n.changePath
519
+ }, null, 8, ["id", "model-value", "disabled", "is-valid", "options", "onUpdate:modelValue"]),
520
+ x(Ue, {
521
+ disabled: y.value,
522
+ onApply: u(D)
523
+ }, {
524
+ default: ve(({ applyAndClose: E }) => [
525
+ (b(), U(Ge, {
526
+ id: n.labelForId ?? null,
527
+ key: `${c.value.fsCategory}-${c.value.path}`,
528
+ modelValue: u(e),
529
+ "onUpdate:modelValue": S[0] || (S[0] = (_) => he(e) ? e.value = _ : null),
530
+ disabled: y.value,
531
+ uischema: o.value,
532
+ onApplyAndClose: E
533
+ }, null, 8, ["id", "modelValue", "disabled", "uischema", "onApplyAndClose"]))
534
+ ]),
535
+ _: 1
536
+ }, 8, ["disabled", "onApply"])
537
+ ]),
538
+ (b(), U(Ce(u(F))))
539
+ ], 64));
540
+ }
541
+ }), et = /* @__PURE__ */ M(Je, [["__scopeId", "data-v-fda26970"]]);
542
+ export {
543
+ et as F
544
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as n, createBlock as a, openBlock as l, mergeProps as r } from "vue";
2
- import { F as p } from "./FileChooserControlBase-Bzweo0oX.js";
2
+ import { F as p } from "./FileChooserControlBase-BDrQg1r7.js";
3
3
  const u = /* @__PURE__ */ n({
4
4
  __name: "FileChooserControlForMultiFile",
5
5
  props: {