@knime/scripting-editor 0.0.127 → 0.0.129

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 (140) hide show
  1. package/dist/{AnyOfTwinlist-C0gjxeQW-C5wsbDLK.js → AnyOfTwinlist-Chx0nmt3-DPMbiVZd.js} +5 -4
  2. package/dist/{ArrayLayout-U4hs5LA_.js → ArrayLayout-C2-4wxkT.js} +39 -39
  3. package/dist/{ButtonControl-B8WGWs_m.js → ButtonControl-Dga3IomB.js} +26 -26
  4. package/dist/CheckboxControl-B8b1Di4k-CEkOsWEu.js +40 -0
  5. package/dist/CheckboxesControl-DWUnPGdN-BOSX_stf.js +42 -0
  6. package/dist/CodeEditorControl-CN4ltMvy.js +133 -0
  7. package/dist/{ColorControl-DeSwgyjS-BW1FBjqa.js → ColorControl-ByE5ku7u-C12pZ0rg.js} +10 -8
  8. package/dist/ColorPreviewControl-XiKZ4jfn-CLIjX6M_.js +89 -0
  9. package/dist/ComboBoxControl-zSceYlyZ-BgpAi7q9.js +42 -0
  10. package/dist/{ConfigurationNodeNotSupported-Bg2W0ik5.js → ConfigurationNodeNotSupported-B27grebd.js} +3 -3
  11. package/dist/ControlWithSubParameters-ROJGaqDF.js +63 -0
  12. package/dist/CredentialsControl-B6jczlBv.js +33 -0
  13. package/dist/CredentialsControlBase-CdNdAngd.js +96 -0
  14. package/dist/DateControl-BBGpEVpr-yZP_TZnE.js +44 -0
  15. package/dist/DateTimeControl-CymOURq5-Ca0mT1HW.js +89 -0
  16. package/dist/DateTimeFormatPickerControl-Bx19jwpr-Bd0xBs4D.js +37 -0
  17. package/dist/DateTimeFormatPickerWithTypeControl-Byo_0cTq-C0ZfMqtp.js +598 -0
  18. package/dist/{DialogFileExplorer-Bi0DVFut.js → DialogFileExplorer-BmT2YlVn.js} +2 -2
  19. package/dist/{DirtyTrackerRenderer-CDcL-lwX.js → DirtyTrackerRenderer-BG451zZD.js} +10 -10
  20. package/dist/DropdownControl-C6ffVYyf-hy0i8nDV.js +32 -0
  21. package/dist/DynamicInputControl-W23Zexge.js +6 -0
  22. package/dist/ExecutorCoresControl-D9FZ-g9O-Dws9IhAs.js +51 -0
  23. package/dist/ExecutorMemoryControl-__P80Lkb-DxQZ2IuA.js +44 -0
  24. package/dist/{FileChooserControl-BR84kEXy.js → FileChooserControl-BBbay7zU.js} +4 -3
  25. package/dist/{FileChooserControlBase-1oayQJzv.js → FileChooserControlBase-DpYYK3eE.js} +147 -143
  26. package/dist/{FileChooserControlForMultiFile-ChQtkmps.js → FileChooserControlForMultiFile-6NLYZKbt.js} +5 -4
  27. package/dist/FileUploadControl-DWs4PhOj-BvByW-Tq.js +545 -0
  28. package/dist/GridSelectionControl-WcJ4y6Fs-BoxSk0VG.js +117 -0
  29. package/dist/{HorizontalLayout-DwdPdBTW-w5bjgNga.js → HorizontalLayout-ByB5A7X3-BURAMMFG.js} +5 -5
  30. package/dist/{IntegerControl-D8OzxbRA-D9mR5ahj.js → IntegerControl-aveswmbr-50_b6vGY.js} +5 -4
  31. package/dist/IntervalControl-B4Eqs1Jf-CiB2D52B.js +51 -0
  32. package/dist/{LabeledGroup-BzXUTco4.js → LabeledGroup-BONZ_GLo.js} +3 -3
  33. package/dist/LegacyCredentialsControl-DaIrvNBd.js +88 -0
  34. package/dist/{LinkControl-BvBBTFCs-DojlONSA.js → LinkControl-DD56lOiw-CDy6OBu8.js} +10 -10
  35. package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-BLSG6Lpo-CtYj2B6v.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-CscatDmg-BaroyBA0.js} +1 -1
  36. package/dist/ManualTwinlistControl-DBZ5RZgW-BV5qOGau.js +77 -0
  37. package/dist/MultiFileChooserControl-cyndOpF7.js +341 -0
  38. package/dist/{MultiRuleWrapper-TvQw5Kaj.js → MultiRuleWrapper-Db-W_o1f.js} +1 -1
  39. package/dist/{MultiSelectListBoxControl-nmvLP18g-feO16jJ4.js → MultiSelectListBoxControl-BMsPvxGQ-5ua-fVR8.js} +10 -9
  40. package/dist/{MultimodeTwinlistControl-yCdeWH2E-DG6GXu0l.js → MultimodeTwinlistControl-thO1be1r-8kc-JSH1.js} +64 -62
  41. package/dist/{NameFilter-D1TMJydD-Db00pnR3.js → NameFilter-DBMVmZmk-DnB-5f39.js} +7 -6
  42. package/dist/{NumberControl-uLMOLEbg-B_H33dGY.js → NumberControl-BPVO5l6t--nrQcx4m.js} +8 -7
  43. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-CR61f6d6-Df5EPyns.js +54 -0
  44. package/dist/OneOfDropdown-DBG8ZcpV-cZs_ptrT.js +36 -0
  45. package/dist/{RadioButtonsWithDescriptionControl-5M_6G7Qk-BHHWv0Y0.js → RadioButtonsWithDescriptionControl-BsqMTEB5-COGPhNPs.js} +17 -17
  46. package/dist/RadioControl-ClJmr0EQ-BzjoXaZ3.js +21 -0
  47. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-Bm4EUEvw-Cabfycg_.js +64 -0
  48. package/dist/ResourceControlBase-CeXYJeR1-DSmxhV0s.js +113 -0
  49. package/dist/{RichTextControl-D9QD2_uO-OY669heQ.js → RichTextControl-DvYkBpzH-CtMZq2re.js} +7876 -6699
  50. package/dist/{SectionLayout-DY27pAtG-BIZg0kiA.js → SectionLayout-CwRO3UXc-d5rFpCRN.js} +5 -5
  51. package/dist/SettingsSubPanelLayout-CV6y2bcX-OzpF07vB.js +64 -0
  52. package/dist/{SimpleTwinlistControl-P4KEYOq0-97VRLEr4.js → SimpleTwinlistControl-BSON5VYy-BaAaU86G.js} +7 -6
  53. package/dist/SingleSelectControl-BSqORMYm-CBP_mVGB.js +58 -0
  54. package/dist/{SingleSelectListBoxControl-oMWH0vEE-Ewf1HUGa.js → SingleSelectListBoxControl-CFdKzbOK-CruT9yt-.js} +14 -13
  55. package/dist/{SortListControl-4v3T2j_9-BkTlN-H5.js → SortListControl-DZIHeQmn-CKRyT1hN.js} +41 -39
  56. package/dist/{StringFileChooserControl-BVH5iHNM.js → StringFileChooserControl-Br8gZTku.js} +33 -30
  57. package/dist/{StyledListItem-D3LSfgGV-B9rTS8WT.js → StyledListItem--sgmJ3W_-Bo6f-_9B.js} +1 -1
  58. package/dist/{TeamAndSpacesControl-CH5ImByy-aTqgKpBn.js → TeamAndSpacesControl-DiMyDT-5-Br-Lq0ki.js} +21 -20
  59. package/dist/TeamResourceControl-Bag_dwA1-PdtnhxEi.js +44 -0
  60. package/dist/{TextAreaControl-CrsZSU_f-CNj59YPm.js → TextAreaControl-B52P0DAa-McfOgZWn.js} +10 -8
  61. package/dist/TextControl-52n-sttB-DssWw4KP.js +50962 -0
  62. package/dist/TimeControl-Cu12_qpz-CK1bxhya.js +71 -0
  63. package/dist/TimeframesControl-DhdC8OS1-DYseJbBV.js +352 -0
  64. package/dist/TwinlistControlBase.vue_vue_type_script_setup_true_lang-t1I2qxJz-DU6yd1RM.js +45 -0
  65. package/dist/{TypedStringFilter-ry7fTUTx-CCJRabai.js → TypedStringFilter-zJOICQei-B-5z8atp.js} +7 -6
  66. package/dist/{ValueSwitchControl-aVx7pUi9-7kuEbp3H.js → ValueSwitchControl-CEVWJH7z-DzuxqLvy.js} +7 -6
  67. package/dist/{VennDiagramLayout-D8s5yYbT.js → VennDiagramLayout-DyTZ5EJ9.js} +24 -24
  68. package/dist/{VerticalLayout-Bv-LJOZ0-BTrnMnQu.js → VerticalLayout-D_13xb_m-BfU1M3IE.js} +7 -7
  69. package/dist/ZonedDateTimeControl-C-vO6fC1-XngmuFqW.js +82 -0
  70. package/dist/{ai-bar-DLr5A9ZW.js → ai-bar-DDtzX23v.js} +775 -732
  71. package/dist/classApi-CHpAZrj3-BptMrhKH.js +3328 -0
  72. package/dist/collection-BBXRVj4b-DhO8c3tP.js +22 -0
  73. package/dist/collection-BBXRVj4b-DzRZ2FYd-COyFmQqa.js +22 -0
  74. package/dist/collection-BBXRVj4b-grENCIdl.js +22 -0
  75. package/dist/main.js +9977 -13304
  76. package/dist/parameters.js +1 -1
  77. package/dist/plainDateTimeUtils-CR0UhpkD-DU-LM4_V.js +52 -0
  78. package/dist/src/components/ScriptingEditor.vue.d.ts +6 -4
  79. package/dist/src/components/SettingsPage.vue.d.ts +5 -4
  80. package/dist/src/scripting-service.d.ts +1 -1
  81. package/dist/useDropdownNavigation-CdrbT-CQ-Dxb_y1Fq.js +2003 -0
  82. package/dist/{useFileChooserBackend-Bs7hx7xH.js → useFileChooserBackend-CLdJ1RU1.js} +6 -6
  83. package/dist/usePlainDateTimeBatch-Bd2G-GY9-DO2Zu0Mj.js +34 -0
  84. package/dist/{usePossibleValues-B-W6u-1T-DcglK6MY.js → usePossibleValues-DiYOmnZW-CaSLjdK-.js} +4 -4
  85. package/package.json +3 -3
  86. package/dist/CheckboxControl-CS6iXHnF-DLCN_obF.js +0 -38
  87. package/dist/CheckboxesControl-CPKIkyWt-BgPFZcJW.js +0 -40
  88. package/dist/CodeEditorControl-DM7k0B2q.js +0 -103
  89. package/dist/ColorPreviewControl-CntI0nTL-qVTX4e1m.js +0 -89
  90. package/dist/ComboBoxControl-DBYnBkC4-1oOLCCms.js +0 -40
  91. package/dist/ControlWithSubParameters-DgJhqCMe.js +0 -80
  92. package/dist/CredentialsControl-CuHgBJQY.js +0 -32
  93. package/dist/CredentialsControlBase-14mA9Xg5.js +0 -96
  94. package/dist/DateControl-Cx_CwvNB-Cnu4FwAv.js +0 -35
  95. package/dist/DateTimeControl-BJsDzufC-BLhNM1JR.js +0 -56
  96. package/dist/DateTimeFormatPickerControl-C80v1qfK-0bjg1c9X.js +0 -35
  97. package/dist/DateTimeFormatPickerWithTypeControl-Dt-FKtYV-x-IJKc_b.js +0 -475
  98. package/dist/DropdownControl-D_BnA4-1-BWnnlfiI.js +0 -30
  99. package/dist/DynamicInputControl-u5VOv3zx.js +0 -6
  100. package/dist/ExecutorCoresControl-BnglyGMR-CagN3N5j.js +0 -56
  101. package/dist/ExecutorMemoryControl-CRATGs9C-Dsj7vG41.js +0 -50
  102. package/dist/FileUploadControl-D42rjpJg-DIoT6HeI.js +0 -221
  103. package/dist/GridSelectionControl-BJk8-yiM-CvDVlby0.js +0 -116
  104. package/dist/IntervalControl-Drljrv-b-WpTsaCtp.js +0 -751
  105. package/dist/LegacyCredentialsControl-C5OmuHPe.js +0 -87
  106. package/dist/ManualTwinlistControl-By0Hur_m-zZbz98JO.js +0 -75
  107. package/dist/MultiFileChooserControl-BDBYwcSY.js +0 -401
  108. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-VVQDBYw7-FEqHVnFo.js +0 -52
  109. package/dist/OneOfDropdown-CDwwxb3h-DAK0CMDe.js +0 -34
  110. package/dist/RadioControl-C73s-icb-DSF6WESw.js +0 -24
  111. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-BScekfhl-oNoT_40f.js +0 -60
  112. package/dist/ResourceControlBase-Bqq1PAX_-5gNwtS9Y.js +0 -183
  113. package/dist/SettingsSubPanelLayout-82gMWhpv-DwWBU76p.js +0 -70
  114. package/dist/SingleSelectControl-C_ZKkV5m-nfkmmDbp.js +0 -56
  115. package/dist/TeamResourceControl-BFMuyWnk-DvcyxCqW.js +0 -47
  116. package/dist/TextControl-B0ag-3Pv-nwKlVRtp.js +0 -54671
  117. package/dist/TimeControl-Bt5OcjBc-KiaYQH-m.js +0 -41
  118. package/dist/TimePartInput-CvwAzDuY-CuNpUUqj.js +0 -253
  119. package/dist/TimeframesControl-BE3LFgyl-hQJ_5QVJ.js +0 -94
  120. package/dist/Tooltip-UlemzxdS-Dfhzj7no.js +0 -24
  121. package/dist/TwinlistControlBase.vue_vue_type_script_setup_true_lang-B5lCsIOD-KqyVUaZj.js +0 -42
  122. package/dist/ValueSwitch-BXaDBm2C-Ba93O_aZ.js +0 -130
  123. package/dist/ZonedDateTimeControl-6MUvXzd3-B1B9FPa7.js +0 -72
  124. package/dist/_Uint8Array-C_ozLuQF-DBc0hZkr.js +0 -349
  125. package/dist/arrow-dropdown-DMFBPPcK-uCJYJfqE.js +0 -17
  126. package/dist/arrow-next-BQULX8HT-DDsCfA5A.js +0 -17
  127. package/dist/floating-ui.vue-Fx4CxKut-DAsMxBCU.js +0 -1057
  128. package/dist/isArray-WzO_os3q-ClnPWjBY.js +0 -4
  129. package/dist/localTimeUtils-DBMwKtLh-CTshgG3l.js +0 -12470
  130. package/dist/src/lsp/completion.d.ts +0 -7
  131. package/dist/src/lsp/connection.d.ts +0 -56
  132. package/dist/src/lsp/diagnostics.d.ts +0 -4
  133. package/dist/src/lsp/doc-sync.d.ts +0 -5
  134. package/dist/src/lsp/hover.d.ts +0 -5
  135. package/dist/src/lsp/knime-io.d.ts +0 -22
  136. package/dist/src/lsp/mapping-utils.d.ts +0 -8
  137. package/dist/src/lsp/signature-help.d.ts +0 -5
  138. package/dist/toString-C-CNeuJl-jseUiiTM.js +0 -949
  139. package/dist/useDropdownNavigation-2Yhk7zes-75raAHpT.js +0 -821
  140. /package/dist/{useUnknownValuesInTwinlist-BbwGcno5-D2ve7iXH.js → useUnknownValuesInTwinlist-BhhirtmX-D2ve7iXH.js} +0 -0
@@ -1,87 +0,0 @@
1
- import { defineComponent as u, onMounted as m, computed as F, createElementBlock as h, openBlock as C, Fragment as y, createVNode as p, unref as S } from "vue";
2
- import { ak as b, al as v, am as P, an as N, aa as B, ao as L, ab as M } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
3
- import { C as _ } from "./CredentialsControlBase-14mA9Xg5.js";
4
- const k = /* @__PURE__ */ u({
5
- __name: "LegacyFlowVariableHandler",
6
- props: {
7
- flowVariableName: {}
8
- },
9
- emits: ["flowVariableSet"],
10
- setup(n, { emit: e }) {
11
- const { configPaths: o } = b(), r = v(), { getSettingStateFlowVariables: i } = b(), { getFlowVariableOverrideValue: s } = P("flowVariablesApi"), c = n, a = e;
12
- return m(() => {
13
- const t = c.flowVariableName;
14
- t && setTimeout(async () => {
15
- const { setControllingFlowVariable: l, invalidateSetFlowVariable: V } = N({
16
- flowVariablesMap: r,
17
- getSettingStateFlowVariables: i
18
- }), { configPath: d, dataPath: w } = o.value[0];
19
- if (!d)
20
- return;
21
- const g = {
22
- path: d,
23
- flowVariableName: t,
24
- cleanPreserving: !0
25
- };
26
- l(g);
27
- const f = await s(
28
- d,
29
- w
30
- );
31
- typeof f > "u" && V(g), a("flowVariableSet", f);
32
- }, 0);
33
- }), () => {
34
- };
35
- }
36
- }), A = /* @__PURE__ */ u({
37
- __name: "LegacyCredentialsControl",
38
- props: {
39
- control: {},
40
- handleChange: { type: Function },
41
- changeValue: { type: Function },
42
- disabled: { type: Boolean },
43
- isValid: { type: Boolean },
44
- onRegisterValidation: { type: Function },
45
- labelForId: {}
46
- },
47
- setup(n) {
48
- const e = n, { flowSettings: o, configPaths: r } = B({
49
- path: F(() => e.control.path)
50
- });
51
- L({
52
- flowSettings: o,
53
- configPaths: r,
54
- dataPath: e.control.path
55
- });
56
- const { getSettingState: i } = M(), s = (a) => {
57
- e.changeValue({ credentials: a, flowVarName: null });
58
- }, c = (a) => {
59
- var l;
60
- const t = {
61
- credentials: a ?? e.control.data.credentials,
62
- flowVarName: null
63
- };
64
- e.changeValue(t), (l = i(e.control.path)) == null || l(t, {
65
- cleanPreserving: !0
66
- });
67
- };
68
- return (a, t) => (C(), h(y, null, [
69
- p(_, {
70
- control: a.control,
71
- data: a.control.data.credentials,
72
- "flow-settings": S(o),
73
- disabled: a.disabled,
74
- "label-for-id": a.labelForId,
75
- "is-valid": a.isValid,
76
- onChange: s
77
- }, null, 8, ["control", "data", "flow-settings", "disabled", "label-for-id", "is-valid"]),
78
- p(k, {
79
- "flow-variable-name": a.control.data.flowVarName,
80
- onFlowVariableSet: c
81
- }, null, 8, ["flow-variable-name"])
82
- ], 64));
83
- }
84
- });
85
- export {
86
- A as default
87
- };
@@ -1,75 +0,0 @@
1
- import { defineComponent as v, toRef as r, computed as c, createBlock as w, openBlock as x, unref as a, mergeProps as U } from "vue";
2
- import { b as C } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
3
- import { i as s } from "./index-Blg1O3Fz-CGafpkU1.js";
4
- import { c as h, t as B } from "./usePossibleValues-B-W6u-1T-DcglK6MY.js";
5
- import { p as I } from "./toKdsPossibleValues-BklBg3gG-Dr1D12GJ.js";
6
- import { F as L } from "./useUnknownValuesInTwinlist-BbwGcno5-D2ve7iXH.js";
7
- const A = /* @__PURE__ */ v({
8
- __name: "ManualTwinlistControl",
9
- props: {
10
- control: {},
11
- handleChange: { type: Function },
12
- changeValue: { type: Function },
13
- disabled: { type: Boolean },
14
- isValid: { type: Boolean },
15
- onRegisterValidation: { type: Function },
16
- labelForId: {}
17
- },
18
- setup(o) {
19
- const n = o, { excludedLabel: m, includedLabel: p } = h(
20
- r(n, "control")
21
- ), { possibleValues: i } = B(
22
- r(n, "control")
23
- ), b = c(
24
- () => I(i.value ?? [])
25
- ), { selectedAndDeselected: u, setCurrentManualFilter: y } = L({
26
- data: c(() => ({ manualFilter: n.control.data })),
27
- possibleValueIds: c(
28
- () => {
29
- var l;
30
- return ((l = i.value) == null ? void 0 : l.map(({ id: d }) => d)) ?? null;
31
- }
32
- )
33
- }), f = (l) => {
34
- const d = s(n.control.data, l);
35
- n.changeValue(d), y(d);
36
- };
37
- let e = null;
38
- const V = () => {
39
- if (e !== null) {
40
- const l = e;
41
- e = null, f(l);
42
- }
43
- }, t = (l) => {
44
- e === null ? (e = l, queueMicrotask(V)) : e = s(
45
- e,
46
- l
47
- );
48
- }, g = (l) => {
49
- t({ manuallySelected: l });
50
- }, k = (l) => {
51
- t({ manuallyDeselected: l });
52
- }, F = (l) => {
53
- l !== null && t({ includeUnknownColumns: l });
54
- };
55
- return (l, d) => (x(), w(a(C), U(l.$attrs, {
56
- id: o.labelForId,
57
- ariaLabel: o.control.label,
58
- disabled: o.disabled,
59
- "manually-included": a(u).selected ?? [],
60
- "manually-excluded": a(u).deselected ?? [],
61
- "include-unknown-values": o.control.data.includeUnknownColumns,
62
- "possible-values": b.value,
63
- loading: a(u).selected === null,
64
- "exclude-label": a(m),
65
- "include-label": a(p),
66
- error: !n.isValid,
67
- "onUpdate:manuallyIncluded": g,
68
- "onUpdate:manuallyExcluded": k,
69
- "onUpdate:includeUnknownValues": F
70
- }), null, 16, ["id", "ariaLabel", "disabled", "manually-included", "manually-excluded", "include-unknown-values", "possible-values", "loading", "exclude-label", "include-label", "error"]));
71
- }
72
- });
73
- export {
74
- A as default
75
- };
@@ -1,401 +0,0 @@
1
- import { createElementBlock as p, openBlock as i, createElementVNode as F, defineComponent as R, computed as n, ref as S, createCommentVNode as C, normalizeClass as j, renderSlot as z, createBlock as I, unref as v, toDisplayString as E, createVNode as m, Fragment as N, renderList as K, watch as V, withCtx as M, normalizeProps as U, mergeProps as Q } from "vue";
2
- import { aB as $, aM as H, af as q, ae as G, ad as A, _ as J, d as X, aN as P, aO as Y } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
3
- import { u as Z, g as ee, a as te } from "./useFileChooserBackend-Bs7hx7xH.js";
4
- import { LoadingIcon as oe } from "@knime/components";
5
- import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- const le = {
7
- xmlns: "http://www.w3.org/2000/svg",
8
- fill: "none",
9
- stroke: "#000",
10
- "stroke-linejoin": "round",
11
- viewBox: "0 0 32 32"
12
- };
13
- function ne(c, e) {
14
- return i(), p("svg", le, e[0] || (e[0] = [
15
- F("circle", {
16
- cx: "16",
17
- cy: "16",
18
- r: "13"
19
- }, null, -1),
20
- F("path", { d: "M9.9 10.1 22 22m-.1-12L10 22.1" }, null, -1)
21
- ]));
22
- }
23
- const re = { render: ne }, ae = {
24
- xmlns: "http://www.w3.org/2000/svg",
25
- fill: "none",
26
- stroke: "#000",
27
- "stroke-linejoin": "round",
28
- viewBox: "0 0 32 32"
29
- };
30
- function se(c, e) {
31
- return i(), p("svg", ae, e[0] || (e[0] = [
32
- F("path", { d: "M26.615 8.397h-5.222V3.175m5.222 26H6.241v-26h15.152l5.222 5.222z" }, null, -1)
33
- ]));
34
- }
35
- const ie = { render: se }, ce = { class: "container" }, de = { class: "everything-except-error-message" }, ue = { class: "header-icon" }, pe = { class: "header-text" }, ve = {
36
- key: 0,
37
- class: "visible-items-container"
38
- }, fe = {
39
- key: 0,
40
- class: "loading-overlay"
41
- }, he = {
42
- key: 1,
43
- class: "empty-list"
44
- }, me = ["title"], Fe = { class: "visible-items-footer" }, ge = ["title"], we = /* @__PURE__ */ R({
45
- __name: "FileSelectionPreview",
46
- props: {
47
- previewData: {},
48
- filterMode: {},
49
- expandByDefault: { type: Boolean, default: !1 },
50
- isLoading: { type: Boolean, default: !1 }
51
- },
52
- setup(c) {
53
- const e = c, l = n(
54
- () => e.previewData.resultType === "SUCCESS" ? e.previewData.itemsAfterFiltering : []
55
- ), d = n(() => {
56
- switch (e.filterMode) {
57
- case "FILES_AND_FOLDERS":
58
- return "files/folders";
59
- case "FOLDERS":
60
- return "folders";
61
- default:
62
- return "files";
63
- }
64
- }), s = n(() => {
65
- if (e.previewData.resultType === "ERROR")
66
- return `Error loading ${d.value}`;
67
- const a = l.value.length, f = e.previewData.numItemsBeforeFiltering, u = `${a}${e.previewData.numFilesAfterFilteringIsOnlyLowerBound ? "+" : ""}`, w = `${f}${e.previewData.numFilesBeforeFilteringIsOnlyLowerBound ? "+" : ""}`;
68
- return `${u} of ${w} ${d.value}`;
69
- }), r = S(e.expandByDefault), h = () => {
70
- r.value = !r.value;
71
- };
72
- return (a, f) => (i(), p("div", ce, [
73
- F("div", de, [
74
- F("div", {
75
- class: j(["visible-items-header", { error: a.previewData.resultType === "ERROR" }])
76
- }, [
77
- F("div", ue, [
78
- a.previewData.resultType === "SUCCESS" ? (i(), I(v(ie), { key: 0 })) : (i(), I(v(re), { key: 1 }))
79
- ]),
80
- F("span", pe, E(s.value), 1),
81
- z(a.$slots, "header-buttons-right", {}, void 0, !0)
82
- ], 2),
83
- r.value ? (i(), p("div", ve, [
84
- e.isLoading ? (i(), p("div", fe, [
85
- m(v(oe), { class: "loading-spinner" })
86
- ])) : C("", !0),
87
- l.value.length === 0 ? (i(), p("div", he, "No files")) : (i(!0), p(N, { key: 2 }, K(l.value, (u) => (i(), p("div", {
88
- key: u,
89
- title: u,
90
- class: "visible-item"
91
- }, E(u), 9, me))), 128))
92
- ])) : C("", !0),
93
- F("div", Fe, [
94
- m(v($), {
95
- variant: "transparent",
96
- label: r.value ? "Hide all" : "Show all",
97
- onClick: h
98
- }, null, 8, ["label"])
99
- ])
100
- ]),
101
- a.previewData.resultType === "ERROR" ? (i(), p("div", {
102
- key: 0,
103
- class: "flexible-error-message-container",
104
- "data-test-id": "error-message",
105
- title: a.previewData.errorMessage
106
- }, E(a.previewData.errorMessage), 9, ge)) : C("", !0)
107
- ]));
108
- }
109
- }), W = /* @__PURE__ */ T(we, [["__scopeId", "data-v-2230b176"]]), _e = /* @__PURE__ */ R({
110
- __name: "FieldRenderer",
111
- props: {
112
- control: {},
113
- fieldName: {},
114
- uischema: {}
115
- },
116
- setup(c) {
117
- const e = c, l = n(() => H(e.control.path, e.fieldName)), d = n(
118
- () => {
119
- var s;
120
- return (s = e.control.schema.properties) == null ? void 0 : s[e.fieldName];
121
- }
122
- );
123
- return (s, r) => (i(), I(v(q), {
124
- key: l.value,
125
- schema: d.value,
126
- uischema: s.uischema,
127
- path: l.value,
128
- enabled: s.control.enabled,
129
- renderers: s.control.renderers,
130
- cells: s.control.cells
131
- }, null, 8, ["schema", "uischema", "path", "enabled", "renderers", "cells"]));
132
- }
133
- }), B = "filters", ye = /* @__PURE__ */ R({
134
- __name: "FilterSettings",
135
- props: {
136
- control: {},
137
- handleChange: { type: Function }
138
- },
139
- setup(c, { expose: e }) {
140
- const l = c, d = n(() => H(l.control.path, B)), s = n(
141
- () => {
142
- var r;
143
- return (r = l.control.uischema.options) == null ? void 0 : r.filters.uiSchema;
144
- }
145
- );
146
- return e({
147
- /**
148
- * Resets the filter settings to their default values. NOT the same as discarding them
149
- * and returning to the saved state.
150
- */
151
- resetFilters: () => {
152
- var r;
153
- l.handleChange(d.value, {
154
- ...(r = l.control.schema.default) == null ? void 0 : r[B],
155
- filterMode: l.control.data.filters.filterMode
156
- });
157
- }
158
- }), (r, h) => (i(), I(_e, {
159
- control: r.control,
160
- "field-name": B,
161
- "handle-change": r.handleChange,
162
- uischema: s.value
163
- }, null, 8, ["control", "handle-change", "uischema"]));
164
- }
165
- }), Se = ({
166
- backendType: c,
167
- filterOptions: e,
168
- additionalFilterOptionsClassIdentifier: l,
169
- includeSubFolders: d
170
- }) => {
171
- const s = G("getData");
172
- return {
173
- listItemsForPreview: (a, f) => {
174
- const u = [
175
- c.value,
176
- a,
177
- f,
178
- d.value,
179
- {
180
- additionalFilterOptions: e.value,
181
- additionalFilterOptionsClassIdentifier: l
182
- }
183
- ];
184
- return s({
185
- method: "fileFilterPreview.listItemsForPreview",
186
- options: u
187
- });
188
- },
189
- resolveRelativePath: (a, f) => s({
190
- method: "fileChooser.resolveRelativePath",
191
- options: [c.value, a, f]
192
- })
193
- };
194
- }, Ce = { class: "filter-settings-drawer-content" }, Ie = /* @__PURE__ */ R({
195
- __name: "FilterPreview",
196
- props: {
197
- control: {},
198
- handleChange: { type: Function },
199
- changeValue: { type: Function },
200
- disabled: { type: Boolean },
201
- labelForId: {},
202
- isValid: { type: Boolean },
203
- messages: {},
204
- onRegisterValidation: { type: Function }
205
- },
206
- setup(c) {
207
- var o;
208
- const e = c, l = n(() => {
209
- var t;
210
- return (t = e.control.data) == null ? void 0 : t.includeSubfolders;
211
- }), d = n(
212
- () => e.control.uischema
213
- ), { portIndex: s } = Z(d), r = n(
214
- () => ee(e.control.data.path.fsCategory, s.value)
215
- ), h = S({
216
- itemsAfterFiltering: [],
217
- numItemsBeforeFiltering: 0,
218
- numFilesAfterFilteringIsOnlyLowerBound: !1,
219
- numFilesBeforeFilteringIsOnlyLowerBound: !1,
220
- resultType: "SUCCESS"
221
- }), a = S(!0), f = S(null), u = n(() => {
222
- var t;
223
- return (t = e.control.data) == null ? void 0 : t.filters;
224
- }), w = Se({
225
- backendType: r,
226
- includeSubFolders: l,
227
- filterOptions: u,
228
- additionalFilterOptionsClassIdentifier: (o = e.control.uischema.options) == null ? void 0 : o.filters.classId
229
- }), k = n(() => e.control.data.path), _ = n(() => e.control.data.filterMode), O = S(0), D = async () => {
230
- var g, x;
231
- a.value = !0, ++O.value;
232
- let t = k.value.path;
233
- k.value.fsCategory === "relative-to-workflow" && ((x = (g = d.value.options) == null ? void 0 : g.spaceFSOptions) != null && x.relativeWorkflowPath) && (t = await w.resolveRelativePath(
234
- t,
235
- d.value.options.spaceFSOptions.relativeWorkflowPath
236
- ));
237
- const y = O.value, L = await w.listItemsForPreview(
238
- t,
239
- _.value
240
- );
241
- y === O.value && (h.value = L, a.value = !1);
242
- };
243
- V(
244
- _,
245
- (t) => {
246
- e.control.data.filters.filterMode !== t && e.handleChange(
247
- A(A(e.control.path, "filters"), "filterMode"),
248
- t
249
- );
250
- },
251
- { immediate: !0 }
252
- ), V(
253
- [l, u, k],
254
- () => D(),
255
- {
256
- deep: !0
257
- }
258
- );
259
- const b = S(null);
260
- return (t, y) => (i(), p(N, null, [
261
- m(W, {
262
- "preview-data": h.value,
263
- "is-loading": a.value,
264
- "filter-mode": _.value
265
- }, {
266
- "header-buttons-right": M(() => [
267
- m(v($), {
268
- variant: "transparent",
269
- label: "Edit filters",
270
- "trailing-icon": "chevron-right",
271
- onClick: y[0] || (y[0] = (L) => {
272
- var g;
273
- return (g = f.value) == null ? void 0 : g.expand();
274
- })
275
- })
276
- ]),
277
- _: 1
278
- }, 8, ["preview-data", "is-loading", "filter-mode"]),
279
- m(v(J), {
280
- ref_key: "filterPanelRef",
281
- ref: f,
282
- "show-back-arrow": "",
283
- "background-color-override": "var(--knime-gray-ultra-light)"
284
- }, {
285
- default: M(() => [
286
- F("div", Ce, [
287
- m(W, {
288
- "preview-data": h.value,
289
- "filter-mode": _.value,
290
- "is-loading": a.value,
291
- "expand-by-default": ""
292
- }, {
293
- "header-buttons-right": M(() => [
294
- m(v($), {
295
- variant: "transparent",
296
- label: "Reset all filters",
297
- destructive: "",
298
- onClick: y[1] || (y[1] = (L) => {
299
- var g;
300
- return (g = b.value) == null ? void 0 : g.resetFilters();
301
- })
302
- })
303
- ]),
304
- _: 1
305
- }, 8, ["preview-data", "filter-mode", "is-loading"]),
306
- m(ye, {
307
- ref_key: "filterSettingsRef",
308
- ref: b,
309
- control: t.control,
310
- "handle-change": t.handleChange
311
- }, null, 8, ["control", "handle-change"])
312
- ])
313
- ]),
314
- _: 1
315
- }, 512)
316
- ], 64));
317
- }
318
- }), ke = /* @__PURE__ */ T(Ie, [["__scopeId", "data-v-c2c72b99"]]), Oe = { class: "flex-column" }, Re = /* @__PURE__ */ R({
319
- __name: "MultiFileChooserControl",
320
- props: {
321
- control: {},
322
- handleChange: { type: Function },
323
- changeValue: { type: Function },
324
- disabled: { type: Boolean },
325
- labelForId: {},
326
- isValid: { type: Boolean },
327
- messages: {},
328
- onRegisterValidation: { type: Function }
329
- },
330
- setup(c) {
331
- const e = c, l = n(
332
- () => e.control.uischema
333
- ), d = X(l, "connectedFSOptions"), s = n(() => {
334
- var t;
335
- const o = (t = e.control.data) == null ? void 0 : t.filterMode;
336
- return o === "WORKFLOW" ? "WORKFLOW" : o === "FILE" ? "FILE" : "FOLDER";
337
- }), r = n(() => {
338
- var t;
339
- const o = (t = e.control.data) == null ? void 0 : t.filterMode;
340
- return o !== "FILE" && o !== "FOLDER";
341
- }), h = n(() => {
342
- var o;
343
- return {
344
- ...l.value.options,
345
- connectedFSOptions: d.value ?? ((o = l.value.options) == null ? void 0 : o.connectedFSOptions),
346
- selectionMode: s.value
347
- };
348
- }), a = {
349
- FILE: "File",
350
- WORKFLOW: "Workflow",
351
- FOLDER: "Folder",
352
- FILES_AND_FOLDERS: "Files and folders",
353
- FILES_IN_FOLDERS: "Files in folders",
354
- FOLDERS: "Folders"
355
- }, f = (o) => ({
356
- id: o,
357
- text: a[o]
358
- }), u = n(
359
- () => {
360
- var o, t;
361
- return ((t = (o = l.value.options) == null ? void 0 : o.possibleFilterModes) == null ? void 0 : t.map(
362
- f
363
- )) ?? [];
364
- }
365
- ), w = n(() => ({
366
- possibleValues: u.value
367
- })), k = n(() => u.value.length > 1), _ = n(
368
- () => u.value.length > 2 ? "radio" : "valueSwitch"
369
- ), { isConnectedButNoFileConnectionIsAvailable: O, isConnected: D } = te(h), b = n(
370
- () => {
371
- var o;
372
- return O.value || !D.value && ((o = e.control.data) == null ? void 0 : o.path.fsCategory) === "CONNECTED";
373
- }
374
- );
375
- return (o, t) => (i(), p("div", Oe, [
376
- k.value ? (i(), I(v(P), {
377
- key: 0,
378
- "field-name": "filterMode",
379
- format: _.value,
380
- options: w.value,
381
- control: o.control
382
- }, null, 8, ["format", "options", "control"])) : C("", !0),
383
- m(v(P), {
384
- "field-name": "path",
385
- format: v(Y),
386
- options: h.value,
387
- control: o.control
388
- }, null, 8, ["format", "options", "control"]),
389
- r.value ? (i(), p(N, { key: 1 }, [
390
- m(v(P), {
391
- "field-name": "includeSubfolders",
392
- control: o.control
393
- }, null, 8, ["control"]),
394
- b.value ? C("", !0) : (i(), I(ke, U(Q({ key: 0 }, e)), null, 16))
395
- ], 64)) : C("", !0)
396
- ]));
397
- }
398
- }), Pe = /* @__PURE__ */ T(Re, [["__scopeId", "data-v-756e4036"]]);
399
- export {
400
- Pe as default
401
- };
@@ -1,52 +0,0 @@
1
- import { defineComponent as m, computed as t, createBlock as d, openBlock as c, unref as p } from "vue";
2
- import { a as v, E as x } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
3
- const b = 1, y = 0.1, f = /* @__PURE__ */ m({
4
- __name: "NumberControlBase",
5
- props: {
6
- control: {},
7
- handleChange: { type: Function },
8
- changeValue: { type: Function },
9
- disabled: { type: Boolean },
10
- isValid: { type: Boolean },
11
- onRegisterValidation: { type: Function },
12
- labelForId: {},
13
- type: {}
14
- },
15
- setup(l) {
16
- const i = l, n = t(
17
- () => {
18
- var e;
19
- return ((e = i.control.uischema.options) == null ? void 0 : e.stepSize) ?? (i.type === "integer" ? b : y);
20
- }
21
- ), r = v(
22
- {
23
- min: ({ min: e, isExclusive: o }) => (a) => isNaN(a) || (o ? a > e : a >= e),
24
- max: ({ max: e, isExclusive: o }) => (a) => isNaN(a) || (o ? a < e : a <= e)
25
- },
26
- i
27
- ), s = t(() => {
28
- const e = r.value.min;
29
- if (!(!e || e.min === null))
30
- return e.min + (e.isExclusive ? n.value : 0);
31
- }), u = t(() => {
32
- const e = r.value.max;
33
- if (!(!e || e.max === null))
34
- return e.max - (e.isExclusive ? n.value : 0);
35
- });
36
- return (e, o) => (c(), d(p(x), {
37
- id: l.labelForId,
38
- ariaLabel: l.control.label,
39
- class: "number-input",
40
- disabled: l.disabled,
41
- "model-value": l.control.data,
42
- min: s.value,
43
- max: u.value,
44
- step: n.value,
45
- error: !l.isValid,
46
- "onUpdate:modelValue": l.changeValue
47
- }, null, 8, ["id", "ariaLabel", "disabled", "model-value", "min", "max", "step", "error", "onUpdate:modelValue"]));
48
- }
49
- });
50
- export {
51
- f as h
52
- };
@@ -1,34 +0,0 @@
1
- import { defineComponent as s, computed as p, createBlock as c, openBlock as u, unref as r } from "vue";
2
- import { j as m } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
3
- import { c as b } from "./index-Blg1O3Fz-CGafpkU1.js";
4
- const y = /* @__PURE__ */ s({
5
- __name: "OneOfDropdown",
6
- props: {
7
- control: {},
8
- handleChange: { type: Function },
9
- changeValue: { type: Function },
10
- disabled: { type: Boolean },
11
- isValid: { type: Boolean },
12
- onRegisterValidation: { type: Function },
13
- labelForId: {}
14
- },
15
- setup(e) {
16
- var l, n;
17
- const o = e, d = ((n = (l = o.control.schema) == null ? void 0 : l.oneOf) == null ? void 0 : n.map(b)) ?? [], a = p({
18
- get: () => o.control.data ?? "",
19
- set: o.changeValue
20
- });
21
- return (f, t) => (u(), c(r(m), {
22
- id: e.labelForId,
23
- modelValue: a.value,
24
- "onUpdate:modelValue": t[0] || (t[0] = (i) => a.value = i),
25
- "possible-values": r(d),
26
- ariaLabel: e.control.label,
27
- disabled: e.disabled,
28
- error: !e.isValid
29
- }, null, 8, ["id", "modelValue", "possible-values", "ariaLabel", "disabled", "error"]));
30
- }
31
- });
32
- export {
33
- y as default
34
- };
@@ -1,24 +0,0 @@
1
- import { defineComponent as e, createBlock as t, openBlock as n, mergeProps as a } from "vue";
2
- import { U as r } from "./RadioControlBase.vue_vue_type_script_setup_true_lang-BScekfhl-oNoT_40f.js";
3
- import { Y as p } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
4
- const l = /* @__PURE__ */ e({
5
- __name: "RadioControl",
6
- props: {
7
- control: {},
8
- handleChange: { type: Function },
9
- changeValue: { type: Function },
10
- disabled: { type: Boolean },
11
- isValid: { type: Boolean },
12
- onRegisterValidation: { type: Function },
13
- labelForId: {}
14
- },
15
- setup(i) {
16
- return (o, s) => (n(), t(r, a(o.$props, {
17
- type: "radio",
18
- class: "radio"
19
- }), null, 16));
20
- }
21
- }), u = /* @__PURE__ */ p(l, [["__scopeId", "data-v-6720fee0"]]);
22
- export {
23
- u as default
24
- };