@knime/scripting-editor 0.0.120 → 0.0.121

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/{AnyOfTwinlist-CSbFqiiy-BQnu5Ml3.js → AnyOfTwinlist-DNsHUZei-CFf0kAbY.js} +1 -1
  2. package/dist/{ArrayLayout-DZJEvgMa.js → ArrayLayout-Ck55ZP0t.js} +55 -55
  3. package/dist/{ButtonControl-HiHtzOYh.js → ButtonControl-CsK37zDu.js} +1 -1
  4. package/dist/{Checkbox-M2rFIZY0-r6RqY214.js → Checkbox-CWL8weTr-DizDeAek.js} +1 -1
  5. package/dist/{CheckboxControl-Dz65huic-ByuEiGEp.js → CheckboxControl-bjaWoB4c-C0Laylox.js} +1 -1
  6. package/dist/{Checkboxes-Qc7Wn4p8-B8qRgy0F.js → Checkboxes-D3XPQc69-C6lQuGVB.js} +2 -2
  7. package/dist/{CheckboxesControl-52GcYYsS-Cpk0ZUTo.js → CheckboxesControl-BxTmNLjK-DegwymdN.js} +3 -3
  8. package/dist/{ComboBoxControl-BSrtnamE-BY-hN9oV.js → ComboBoxControl-DIucqZ5g-CiRuCZsD.js} +3 -3
  9. package/dist/{ConfigurationNodeNotSupported-Dz99aBmX.js → ConfigurationNodeNotSupported-CQrq1fuY.js} +1 -1
  10. package/dist/{ControlWithSubParameters-CjWDNzc-.js → ControlWithSubParameters-DUoT6age.js} +20 -22
  11. package/dist/{CredentialsControl-CDSDJXxB.js → CredentialsControl-DQqPTexY.js} +2 -2
  12. package/dist/{CredentialsControlBase-DzF0xhDx.js → CredentialsControlBase-9iHrrJSL.js} +6 -6
  13. package/dist/{DateControl-B9h4p2F5-Cnu24BHe.js → DateControl-BNeGXflU-DOfgRpL8.js} +1 -1
  14. package/dist/{DateTimeControl-BsPKGDFA-DbzLGzL-.js → DateTimeControl-CcsnEIq0-jOgkrc6W.js} +1 -1
  15. package/dist/{DateTimeFormatInput-bkxjAG8p-dbZSM1sX.js → DateTimeFormatInput-CW04StCG-DUEeV9Wh.js} +3 -3
  16. package/dist/{DateTimeFormatPickerControl-SZNaksRz-DsQxhGXZ.js → DateTimeFormatPickerControl-DGKFzxb_-CvFIt06D.js} +2 -2
  17. package/dist/{DateTimeFormatPickerWithTypeControl-CAEt6y2T-D3WvWVj9.js → DateTimeFormatPickerWithTypeControl-85204whr-DYaaBcT1.js} +3 -3
  18. package/dist/DialogFileExplorer-D1JH5zwZ.js +520 -0
  19. package/dist/{Dropdown-6eVZoGpG-PuXROd15.js → Dropdown-CIypkp0O-Dn4sxfaP.js} +2 -2
  20. package/dist/{DropdownControl-mDfFM4Ka-D8icssdG.js → DropdownControl-4AhoNiKk-BYSEubXu.js} +3 -3
  21. package/dist/{DynamicInputControl-B3EgdNYM.js → DynamicInputControl-C3sfDJlr.js} +6 -6
  22. package/dist/{FileChooserControl-GDX-B_9s.js → FileChooserControl-DGl48CIW.js} +2 -2
  23. package/dist/{FileChooserControlBase-Nc6m3y66.js → FileChooserControlBase-CErQoQLH.js} +27 -28
  24. package/dist/{FileChooserControlForMultiFile-Bwdiza24.js → FileChooserControlForMultiFile--rcxceQH.js} +1 -1
  25. package/dist/{HorizontalLayout-TMNv34K1-Dtbz7GFH.js → HorizontalLayout-DaqXoro5-CyeVSZyB.js} +1 -1
  26. package/dist/{IntegerControl-xaXhFuiQ-CcnelTK2.js → IntegerControl-mbOHHY3i-D0R93Whp.js} +1 -1
  27. package/dist/{IntervalControl-Bdoki_MC-COHB3nXT.js → IntervalControl-D8TeFfuS-CxLU62pV.js} +16 -16
  28. package/dist/{LabeledGroup-Bskefsif.js → LabeledGroup-DozoIjK8.js} +8 -9
  29. package/dist/{LegacyCredentialsControl-ZdrkCVkC.js → LegacyCredentialsControl-hmETDkju.js} +7 -7
  30. package/dist/{LoadingDropdown-edN4VitH-R3y6kvlb.js → LoadingDropdown--cwIsJdm-Dc7B20ml.js} +3 -3
  31. package/dist/LoadingIcon-DVB5Htes-hYPngck-.js +17 -0
  32. package/dist/{ManualTwinlistControl-DEBn3XgS-DrjRcPie.js → ManualTwinlistControl-BRitiAxR-DF_Da13g.js} +4 -4
  33. package/dist/{MultiFileChooserControl-ZP5enAM4.js → MultiFileChooserControl-CQ8BbosJ.js} +168 -146
  34. package/dist/{MultiSelectListBoxControl-BmRzZUI_-BeYs5sOZ.js → MultiSelectListBoxControl-CN3QiEdL-CN9cSiar.js} +2 -2
  35. package/dist/{MultimodeTwinlistControl-P0Bj7FYU-Dtq_ciIX.js → MultimodeTwinlistControl-O0R4oOLS-ChReNigV.js} +6 -6
  36. package/dist/{MultiselectListBox-Ivk-_tly-BI48Ai96.js → MultiselectListBox-CQ3iTrKc-BUH4QgYc.js} +2 -2
  37. package/dist/{NameFilter-SAlJdnm7-B3Ez09D1.js → NameFilter-ClMXE3-2-D1hTm5bW.js} +1 -1
  38. package/dist/{NumberControl-C_VElIjG-CNqxGj-b.js → NumberControl-DMpTZQhn-D7c1f5MK.js} +1 -1
  39. package/dist/{NumberControlBase.vue_vue_type_script_setup_true_lang-Bcc2XPBa-jX9ZCXqt.js → NumberControlBase.vue_vue_type_script_setup_true_lang-CDRKAuGz-BH-ahqn6.js} +2 -2
  40. package/dist/{NumberInput-CHeMUEcJ-CBjiZXnc.js → NumberInput-DlvskoRZ-BXSYv7zF.js} +1 -1
  41. package/dist/{OneOfDropdown-DZgSOLLJ-wCE5bOVZ.js → OneOfDropdown-DVGE71fW-DGHKD5tJ.js} +1 -1
  42. package/dist/{RadioControl-xm6uqnsz-Bpu9pAXm.js → RadioControl-bKZb-PCj-CkkWD9-5.js} +2 -2
  43. package/dist/{RadioControlBase.vue_vue_type_script_setup_true_lang-cwi1lPmz-D1KwRFTF.js → RadioControlBase.vue_vue_type_script_setup_true_lang-CcnOafHA-DehVywcB.js} +3 -3
  44. package/dist/{RichTextControl-Bx9uzTcU-BZHXysn7.js → RichTextControl-BB6-PEf--Dqs7PfNi.js} +19 -21
  45. package/dist/SectionLayout-Ba7NpHTm-D24M-3B1.js +44 -0
  46. package/dist/SettingsSubPanelLayout-C3hw4UGI-DQs4zbuq.js +70 -0
  47. package/dist/{SimpleTwinlistControl-BlS_kAjd-MEQ-1_ak.js → SimpleTwinlistControl-nBi-T2QR-Cp3-tLf-.js} +2 -2
  48. package/dist/{SingleSelectControl-CN-n21yb-F2BrAi2J.js → SingleSelectControl-Dg18bGk9-UF9J7JMY.js} +2 -2
  49. package/dist/{SingleSelectListBoxControl-CCI8zCX8-BIhMc4PF.js → SingleSelectListBoxControl-BsQMs5Xl-h3PQ3OKX.js} +3 -3
  50. package/dist/{SortListControl-BulTKISX-CHY3yUiR.js → SortListControl-w5mvLX6s-CD40LTTr.js} +57 -58
  51. package/dist/{StringFileChooserControl-B8NpcHAg.js → StringFileChooserControl-D2u6kzkZ.js} +7 -7
  52. package/dist/{StyledListItem-CQwlzLP2-D4Rd-oAK.js → StyledListItem-nU28IyY6-bPe3o50k.js} +1 -1
  53. package/dist/{TextAreaControl-CXKJWxR3-BAc5G9Jy.js → TextAreaControl-BcPobxLV-Ca5igr-I.js} +1 -1
  54. package/dist/{parameters-TDvh_VJm.js → TextControl-kY3Ra8PG-y_70AOqk.js} +15922 -15341
  55. package/dist/{TimeControl-OsnqrTKz-CfJTqe7M.js → TimeControl-CcvAtvwb-CEC-ky_y.js} +1 -1
  56. package/dist/{TwinlistControlBase-BEEFVvf6-B_lC-UyQ.js → TwinlistControlBase-Da7Vi8Ne-7f9PH6lG.js} +3 -3
  57. package/dist/{TwinlistLoadingInfo-BFWX5bru-CmUU5ze0.js → TwinlistLoadingInfo-BvCXnExs-CZKrpDBx.js} +12 -13
  58. package/dist/{TypedStringFilter-CAXArbh6-Bxyzbt--.js → TypedStringFilter-DuFP6CtD-DyqVsMVu.js} +1 -1
  59. package/dist/{ValueSwitch-BmW_v2r_-DCcRA3Nu.js → ValueSwitch-CAxte3Dc-BVVF1RHf.js} +1 -1
  60. package/dist/{ValueSwitchControl-F9EBfMSY-BvIFqq8O.js → ValueSwitchControl-DcBjKQSo-CDunJRyD.js} +1 -1
  61. package/dist/{VennDiagramLayout-B5_nSfj5.js → VennDiagramLayout-oYvmZwym.js} +19 -20
  62. package/dist/{VerticalLayout-DEFdoJSU-CW6Y4tIr.js → VerticalLayout-CUHbdUdk-BmKQKo4m.js} +6 -7
  63. package/dist/{ZonedDateTimeControl-TJvHA6Rm-BkCpzQDx.js → ZonedDateTimeControl-B5cuTrgr-Cwz2O9wE.js} +3 -3
  64. package/dist/{_baseEach-BxODVDA6-C4HgsZp-.js → _baseEach-CPQiIPkT-CiqFaVXv.js} +3 -3
  65. package/dist/{_getTag-DTjoqLoo-DzAcUcW_.js → _getTag-DuCXbcgW-CSxZDqyE.js} +1 -1
  66. package/dist/initial-data-service-browser-mock.js +26 -15
  67. package/dist/{localTimeUtils-BsjK2bfg-C4-Oh9-d.js → localTimeUtils-DYizf_Fj-Cb46L6wi.js} +5 -5
  68. package/dist/main.js +4464 -4442
  69. package/dist/parameters.js +1 -1
  70. package/dist/src/components/ScriptingEditor.vue.d.ts +142 -0
  71. package/dist/src/components/ScriptingEditorBottomPane.vue.d.ts +3 -1
  72. package/dist/src/initial-data-service-browser-mock.d.ts +2 -1
  73. package/dist/src/initial-data-service.d.ts +1 -1
  74. package/dist/{toString-DJjlKbCy-DQPkzDF0.js → toString-NQDxp2E1-C7hE8Iv5.js} +1 -1
  75. package/dist/{useFileChooserBackend-Ev9D6Kfv.js → useFileChooserBackend-CjaL6jdf.js} +4 -4
  76. package/dist/{usePossibleValues-CJPCrHNK-DHhG_gUy.js → usePossibleValues-CYraIICE-CFGswSt6.js} +1 -1
  77. package/package.json +1 -1
  78. package/dist/Button-BfZfHt8q-BirQNc2F.js +0 -82
  79. package/dist/DBTableChooserControl-DTdniGQp.js +0 -590
  80. package/dist/DialogFileExplorer-B7Cpe71J.js +0 -381
  81. package/dist/FieldControl.vue_vue_type_script_setup_true_lang-D4UZciBE.js +0 -54
  82. package/dist/InputField-OKgaETDx-Bl4xhjBX.js +0 -147
  83. package/dist/LoadingIcon-DMHNXXmQ-C0oETzDr.js +0 -18
  84. package/dist/SectionHeading-ChmLXMcT-BN9ePDI7.js +0 -19
  85. package/dist/SectionLayout-DlR3VVwY-BlXU42ie.js +0 -46
  86. package/dist/SettingsSubPanel-BE_UKIFi-Dr8nIOON.js +0 -5
  87. package/dist/SettingsSubPanelLayout-DFSdKm29-DU902qHg.js +0 -73
  88. package/dist/SimpleButtonControl-0nEpHoVU-C6uROMT2.js +0 -61
  89. package/dist/TextControl-CgsdWiFw--tBiRYB9.js +0 -50
  90. package/dist/VerticalLayoutBase-DiZEVSbM-DWcX5yiG.js +0 -20
  91. package/dist/house-AV6qjkJW.js +0 -148
  92. package/dist/reload-eCPBqeDa-cbgKMmw1.js +0 -17
  93. package/dist/useBuiltinValidations-Dx6fNtgz-BMkbHnN7.js +0 -74
  94. /package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-McCAyYfA-BvrNkbR6.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_0aa76d2b_lang-L5I6qYVS-BvrNkbR6.js} +0 -0
@@ -1,590 +0,0 @@
1
- import { createElementBlock as w, openBlock as f, createElementVNode as h, defineComponent as Z, ref as M, onMounted as te, computed as v, watchEffect as ae, createCommentVNode as D, createBlock as X, createVNode as g, unref as r, toDisplayString as N, withCtx as E, resolveDynamicComponent as me, Fragment as ie, normalizeClass as pe, watch as ue, useTemplateRef as le, createTextVNode as W } from "vue";
2
- import { Breadcrumb as he, LoadingIcon as ce, FileExplorer as ge, InlineMessage as fe, Button as P } from "@knime/components";
3
- import { _ as be } from "./SettingsSubPanel-BE_UKIFi-Dr8nIOON.js";
4
- import { _ as J } from "./FieldControl.vue_vue_type_script_setup_true_lang-D4UZciBE.js";
5
- import { H as _e, u as ne, G as de, s as oe } from "./house-AV6qjkJW.js";
6
- import { v as ye } from "./parameters-TDvh_VJm.js";
7
- import { _ as ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- const xe = {
9
- xmlns: "http://www.w3.org/2000/svg",
10
- fill: "none",
11
- viewBox: "0 0 32 32"
12
- };
13
- function we(u, e) {
14
- return f(), w("svg", xe, e[0] || (e[0] = [
15
- h("path", {
16
- fill: "#000",
17
- d: "M3.482 14.384v-.5a.5.5 0 0 0-.5.5zm21.595.5a.5.5 0 1 0 0-1zm-21.595 4h-.5a.5.5 0 0 0 .5.5zm10.798.5a.5.5 0 1 0 0-1zM3.482 9.884v-.5a.5.5 0 0 0-.5.5zm21.595 0h.5a.5.5 0 0 0-.5-.5zM3.482 23.382h-.5a.5.5 0 0 0 .5.5zm10.798.5a.5.5 0 0 0 0-1zM3.482 3.586v-.5a.5.5 0 0 0-.5.5zm21.595 0h.5a.5.5 0 0 0-.5-.5zM17.88 9.885v-.5a.5.5 0 0 0-.5.5zm-.5 6.09a.5.5 0 1 0 1 0zm-6.699-6.09h.5a.5.5 0 0 0-.5-.5zm0 13.497v.5a.5.5 0 0 0 .5-.5zm-7.198-8.998v.5h21.595v-1H3.482zm0 4.5h.5v-4.5h-1v4.5zm10.798 0v-.5H3.482v1H14.28zM3.482 9.884v.5h21.595v-1H3.482zm0 13.497h.5V9.885h-1v13.497zm10.798 0v-.5H3.482v1H14.28zM25.077 9.885h-.5v4.513h1V9.885zM3.482 3.586v.5h21.595v-1H3.482zm0 19.796h.5V3.586h-1v19.796zM25.077 3.586h-.5v9.898h1V3.586zM17.88 9.885v.5h7.198v-1H17.88zm0 6.09h.5v-6.09h-1v6.09zM3.482 9.885v.5h7.198v-1H3.482zm7.198 0h-.5v13.497h1V9.885zm0 13.497v-.5H3.482v1h7.198zm15.836-.472h-.5a4.41 4.41 0 0 1-4.41 4.41v1a5.41 5.41 0 0 0 5.41-5.41zm-4.91 4.91v-.5a4.41 4.41 0 0 1-4.41-4.41h-1a5.41 5.41 0 0 0 5.41 5.41zm-4.91-4.91h.5a4.41 4.41 0 0 1 4.41-4.41v-1a5.41 5.41 0 0 0-5.41 5.41zm4.91-4.91v.5a4.41 4.41 0 0 1 4.41 4.41h1a5.41 5.41 0 0 0-5.41-5.41zm3.471 8.382-.353.354 4.227 4.226.353-.354.354-.354-4.227-4.225z"
18
- }, null, -1)
19
- ]));
20
- }
21
- const Me = { render: we }, Te = {
22
- xmlns: "http://www.w3.org/2000/svg",
23
- fill: "none",
24
- viewBox: "0 0 32 32"
25
- };
26
- function Ie(u, e) {
27
- return f(), w("svg", Te, e[0] || (e[0] = [
28
- h("path", {
29
- stroke: "#000",
30
- "stroke-linecap": "round",
31
- "stroke-linejoin": "round",
32
- d: "M8.636 10.48c0 .796.843 1.56 2.343 2.122 1.5.563 3.535.879 5.657.879s4.156-.316 5.657-.879c1.5-.562 2.343-1.326 2.343-2.121m-16 0c0-.796.843-1.559 2.343-2.122s3.535-.878 5.657-.878 4.156.316 5.657.878c1.5.563 2.343 1.326 2.343 2.122m-16 0v6m16-6v6m-16 0c0 .795.843 1.558 2.343 2.121s3.535.879 5.657.879 4.156-.316 5.657-.879c1.5-.562 2.343-1.326 2.343-2.121m-16 0v6c0 .795.843 1.558 2.343 2.121s3.535.879 5.657.879 4.156-.316 5.657-.879c1.5-.562 2.343-1.326 2.343-2.121v-6"
33
- }, null, -1)
34
- ]));
35
- }
36
- const ke = { render: Ie }, Ee = {
37
- xmlns: "http://www.w3.org/2000/svg",
38
- fill: "none",
39
- viewBox: "0 0 32 32"
40
- };
41
- function Be(u, e) {
42
- return f(), w("svg", Ee, e[0] || (e[0] = [
43
- h("path", {
44
- stroke: "#000",
45
- "stroke-linejoin": "round",
46
- "stroke-miterlimit": "10",
47
- d: "M14.828 16.755h-8m18 8h-6m0-8h8v6m-20 0v-13m10 13v-4m-12-13h4v4h-4zm10 9h4v4h-4zm0 8h4v4h-4zm10 0h4v4h-4zm-20 0h4v4h-4z"
48
- }, null, -1)
49
- ]));
50
- }
51
- const Ce = { render: Be }, ze = {
52
- xmlns: "http://www.w3.org/2000/svg",
53
- fill: "none",
54
- viewBox: "0 0 32 32"
55
- };
56
- function De(u, e) {
57
- return f(), w("svg", ze, e[0] || (e[0] = [
58
- h("path", {
59
- stroke: "#000",
60
- "stroke-linecap": "round",
61
- "stroke-linejoin": "round",
62
- d: "M22.042 24.25c0 .376.14.736.39 1.002.25.265.59.415.943.415.354 0 .693-.15.943-.415.25-.266.39-.626.39-1.002s-.14-.736-.39-1.002a1.3 1.3 0 0 0-.943-.415c-.354 0-.693.15-.943.415-.25.266-.39.626-.39 1.002"
63
- }, null, -1),
64
- h("path", {
65
- stroke: "#000",
66
- "stroke-linecap": "round",
67
- "stroke-linejoin": "round",
68
- d: "M29.375 24.25q-2.4 4.25-6 4.25t-6-4.25q2.4-4.25 6-4.25t6 4.25"
69
- }, null, -1),
70
- h("path", {
71
- stroke: "#000",
72
- "stroke-linecap": "round",
73
- "stroke-linejoin": "round",
74
- d: "M15.375 27.5H6.042a2.7 2.7 0 0 1-1.886-.765 2.58 2.58 0 0 1-.781-1.846V6.61c0-.692.28-1.357.781-1.846.5-.49 1.178-.765 1.886-.765h18.666c.708 0 1.386.275 1.886.765s.781 1.154.781 1.846v9.139m-24-2.611h24M12.708 4v23.5"
75
- }, null, -1)
76
- ]));
77
- }
78
- const Fe = { render: De }, Ve = {
79
- xmlns: "http://www.w3.org/2000/svg",
80
- fill: "none",
81
- viewBox: "0 0 32 32"
82
- };
83
- function Le(u, e) {
84
- return f(), w("svg", Ve, e[0] || (e[0] = [
85
- h("path", {
86
- stroke: "#000",
87
- "stroke-linecap": "round",
88
- "stroke-linejoin": "round",
89
- d: "M25.437 4H6.771a2.667 2.667 0 0 0-2.667 2.667v18.666A2.667 2.667 0 0 0 6.771 28h18.666a2.667 2.667 0 0 0 2.667-2.667V6.667A2.667 2.667 0 0 0 25.437 4m0 0-9.333 9.333m-4-9.333-8 8m14.667-8-9.334 9.333M28.104 8l-5.333 5.333m-18.667 0h24m-14.667 0V28"
90
- }, null, -1)
91
- ]));
92
- }
93
- const Re = { render: Le }, ve = () => {
94
- const u = ye("getData");
95
- return {
96
- listItems: (s, m) => u({
97
- method: "dbTableChooser.listItems",
98
- options: [s, m]
99
- }),
100
- itemType: (s) => u({
101
- method: "dbTableChooser.itemType",
102
- options: [s]
103
- })
104
- };
105
- }, Oe = { class: "flex-column" }, $e = { class: "current-path" }, Pe = {
106
- key: 0,
107
- class: "error"
108
- }, Ne = {
109
- key: 0,
110
- class: "loading-animation"
111
- }, Se = /* @__PURE__ */ Z({
112
- __name: "DBTableChooserFileExplorer",
113
- props: {
114
- initialPathParts: {},
115
- initialTable: { default: null }
116
- },
117
- emits: ["tableSelected"],
118
- setup(u, { emit: e }) {
119
- const c = u, s = M(!1), { listItems: m } = ve(), x = M(!0), d = M(null), B = M(0), b = async (t) => {
120
- x.value = !0;
121
- const a = ++B.value, l = await m(
122
- t,
123
- s.value ? null : c.initialTable
124
- );
125
- a === B.value && (d.value = l, x.value = !1, s.value = !0);
126
- };
127
- te(() => {
128
- b(c.initialPathParts);
129
- });
130
- const _ = v(
131
- () => {
132
- var t, a;
133
- return ((a = (t = d.value) == null ? void 0 : t.nextValidData) == null ? void 0 : a.pathParts) ?? null;
134
- }
135
- ), i = M(null), o = M(null), k = e, y = v(() => {
136
- var t;
137
- return (t = _.value) == null ? void 0 : t.join("/");
138
- }), F = v(() => {
139
- var l, n;
140
- const t = (n = (l = d.value) == null ? void 0 : l.nextValidData) == null ? void 0 : n.pathParts;
141
- if (!t)
142
- return [];
143
- const a = t.map((p, I) => ({
144
- text: p,
145
- path: t.slice(0, I + 1).join("/"),
146
- clickable: !0
147
- }));
148
- return a.unshift({
149
- text: "",
150
- path: null,
151
- icon: _e,
152
- clickable: !0
153
- }), a;
154
- }), T = v(() => {
155
- var a;
156
- if (!((a = d.value) != null && a.nextValidData))
157
- return null;
158
- const t = d.value.nextValidData;
159
- return t.children.map((l) => ({
160
- id: [...t.pathParts, l.name].join("/"),
161
- name: l.name,
162
- isOpen: !1,
163
- isDirectory: l.type !== "TABLE",
164
- isOpenableFile: l.type === "TABLE",
165
- canBeRenamed: !1,
166
- canBeDeleted: !1,
167
- meta: {
168
- type: l.type,
169
- tableMetadata: l.type === "TABLE" ? l.tableMetadata : null
170
- }
171
- }));
172
- }), V = (t) => {
173
- var n, p;
174
- const a = ((p = (n = d.value) == null ? void 0 : n.nextValidData) == null ? void 0 : p.pathParts.length) ?? 0, l = t.meta.tableMetadata;
175
- if (a === 1)
176
- return [l.containingSchema, t.name];
177
- if (a === 2)
178
- return [
179
- l.containingCatalogue,
180
- l.containingSchema,
181
- t.name
182
- ];
183
- throw new Error(`Unsupported path length: ${a}`);
184
- }, R = (t) => {
185
- k("tableSelected", V(t));
186
- }, S = (t) => (o.value = null, b(
187
- t === ".." ? [...d.value.nextValidData.pathParts, ".."] : t.split("/")
188
- )), H = (t) => {
189
- b(
190
- typeof t.path == "string" ? t.path.split("/") : []
191
- );
192
- }, A = (t) => {
193
- const a = t.meta.type;
194
- if (a === "TABLE")
195
- return t.meta.tableMetadata.tableType === "TABLE" ? Re : Fe;
196
- if (a === "SCHEMA")
197
- return Ce;
198
- if (a === "CATALOG")
199
- return ke;
200
- throw new Error(`Unknown item type "${a}" for item "${t.name}"`);
201
- }, {
202
- onApply: j,
203
- text: z,
204
- disabled: O,
205
- element: C
206
- } = ne(de), {
207
- onApply: $,
208
- disabled: L,
209
- element: U
210
- } = ne();
211
- te(() => {
212
- L.value = !0, O.value = !0;
213
- });
214
- const q = [C, U];
215
- ae(() => {
216
- O.value = o.value === null, z.value = o.value === null ? "Go into" : `Go into ${o.value.meta.type.toLowerCase()}`;
217
- }), ae(() => {
218
- L.value = i.value === null || !i.value.isOpenableFile;
219
- });
220
- const G = (t) => {
221
- if (t.length === 0)
222
- i.value = null, o.value = null;
223
- else {
224
- const a = T.value.find(
225
- (l) => l.id === t[0]
226
- );
227
- a != null && a.isDirectory ? (o.value = a, i.value = null) : (i.value = a, o.value = null);
228
- }
229
- };
230
- return j.value = () => {
231
- var a, l;
232
- if (!o.value || !o.value.isDirectory)
233
- return Promise.reject(new Error("Selected item is not a directory"));
234
- const t = o.value.name;
235
- return o.value = null, b([
236
- ...((l = (a = d.value) == null ? void 0 : a.nextValidData) == null ? void 0 : l.pathParts) ?? "",
237
- t
238
- ]);
239
- }, $.value = () => !i.value || !i.value.isOpenableFile ? Promise.reject(new Error("Selected item is not a table")) : (R(i.value), Promise.resolve()), (t, a) => {
240
- var l, n, p;
241
- return f(), w("div", Oe, [
242
- h("div", $e, [
243
- g(r(he), {
244
- class: "breadcrumb",
245
- items: F.value,
246
- "no-wrap": "",
247
- compact: "",
248
- onClickItem: H
249
- }, null, 8, ["items", "onClickItem"]),
250
- (l = d.value) != null && l.errorMessage ? (f(), w("span", Pe, "(" + N(d.value.errorMessage) + ")", 1)) : D("", !0)
251
- ]),
252
- x.value ? (f(), w("div", Ne, [
253
- g(r(ce), { class: "icon" })
254
- ])) : D("", !0),
255
- T.value !== null && !x.value ? (f(), X(r(ge), {
256
- key: 1,
257
- class: "explorer",
258
- "full-path": y.value,
259
- "is-root-folder": ((p = (n = d.value) == null ? void 0 : n.nextValidData) == null ? void 0 : p.pathParts.length) === 0,
260
- items: T.value,
261
- "click-outside-exceptions": q,
262
- "disable-context-menu": "",
263
- "disable-dragging": "",
264
- "disable-multi-select": "",
265
- "emit-apply-and-close": "",
266
- onOpenFile: R,
267
- onChangeDirectory: S,
268
- "onUpdate:selectedItemIds": G
269
- }, {
270
- itemIcon: E(({ item: I }) => [
271
- (f(), X(me(A(I))))
272
- ]),
273
- _: 1
274
- }, 8, ["full-path", "is-root-folder", "items"])) : D("", !0)
275
- ]);
276
- };
277
- }
278
- }), He = /* @__PURE__ */ ee(Se, [["__scopeId", "data-v-2b48abd2"]]), Ae = { class: "error-message" }, je = { class: "loading-icon" }, Ue = /* @__PURE__ */ Z({
279
- __name: "MessageWithLoadingIcon",
280
- props: {
281
- errorMessage: {},
282
- isLoading: { type: Boolean },
283
- type: { default: "ERROR" }
284
- },
285
- setup(u) {
286
- return (e, c) => (f(), w("div", Ae, [
287
- e.isLoading ? (f(), w(ie, { key: 0 }, [
288
- h("span", je, [
289
- g(r(ce))
290
- ]),
291
- c[0] || (c[0] = h("span", { class: "loading-text" }, "Validating...", -1))
292
- ], 64)) : e.errorMessage !== null ? (f(), w("span", {
293
- key: 1,
294
- class: pe({
295
- "error-text": e.type === "ERROR",
296
- "info-text": e.type === "INFO"
297
- })
298
- }, N(e.errorMessage), 3)) : D("", !0)
299
- ]));
300
- }
301
- }), K = /* @__PURE__ */ ee(Ue, [["__scopeId", "data-v-91244e76"]]), Y = "No database connection. Connect to a database first.", qe = 200, Q = (u, e, c = qe) => {
302
- let s;
303
- const m = M(!1);
304
- return { unwatch: ue(u, () => {
305
- m.value = !0, clearTimeout(s), s = setTimeout(async () => {
306
- try {
307
- await Promise.resolve(e());
308
- } finally {
309
- m.value = !1;
310
- }
311
- }, c);
312
- }), running: m };
313
- }, Ge = ({
314
- itemTypeExtractor: u,
315
- cataloguesSupported: e,
316
- catalogueName: c,
317
- schemaName: s,
318
- tableName: m,
319
- isDbConnected: x,
320
- validateSchema: d,
321
- validateTable: B,
322
- enable: b
323
- }) => {
324
- const _ = M(null), { running: i } = Q(
325
- [e, b, c],
326
- async () => {
327
- _.value = null;
328
- const T = [c.value ?? ""];
329
- !e.value || !b.value || s.value === null ? _.value = null : x.value ? c.value ? await u(T) === null ? _.value = "Database does not exist." : _.value = null : _.value = "Please select a database." : _.value = Y;
330
- }
331
- ), o = M(null), { running: k } = Q(
332
- [
333
- e,
334
- b,
335
- c,
336
- s,
337
- _,
338
- i
339
- ],
340
- async () => {
341
- o.value = null;
342
- const T = [
343
- ...e.value ? [c.value] : [],
344
- s.value ?? ""
345
- ];
346
- !b.value || i.value || !d.value || s.value === null ? o.value = null : x.value ? /^\s*$/.test(s.value) ? o.value = "Schema name is required." : _.value ? o.value = "There are errors in the database selection." : await u(T) === null ? o.value = "Schema does not exist in database." : o.value = null : o.value = Y;
347
- }
348
- ), y = M(null), { running: F } = Q(
349
- [
350
- e,
351
- b,
352
- c,
353
- s,
354
- m,
355
- o,
356
- _,
357
- k,
358
- i
359
- ],
360
- async () => {
361
- y.value = null;
362
- const T = [
363
- ...e.value ? [c.value ?? ""] : [],
364
- s.value ?? "",
365
- m.value ?? ""
366
- ];
367
- !B.value || m.value === null || !b.value || !b.value || k.value || i.value ? y.value = null : x.value ? /^\s*$/.test(m.value) ? y.value = "Table name is required." : _.value ? y.value = "There are errors in the database selection." : o.value ? y.value = "There are errors in the schema selection." : await u(T) === null ? y.value = "Table does not exist in schema." : y.value = null : y.value = Y;
368
- }
369
- );
370
- return {
371
- catalogueErrorMessage: _,
372
- catalogueErrorMessageIsLoading: i,
373
- schemaErrorMessage: v(
374
- () => s.value === null ? null : o.value
375
- ),
376
- schemaErrorMessageIsLoading: v(
377
- () => d.value && (k.value || i.value)
378
- ),
379
- tableErrorMessage: y,
380
- tableErrorMessageIsLoading: v(
381
- () => B.value && (F.value || k.value || i.value)
382
- )
383
- };
384
- }, We = { class: "flex-column" }, Je = { class: "flex-column" }, Ke = { class: "browse-button-flex-row" }, Ye = { class: "flex-fixed expand-button-container" }, Qe = { class: "icon" }, Xe = { class: "bottom-buttons" }, Ze = -1, et = -2, tt = -3, se = "applyButton", re = "goIntoFolderButton", at = /* @__PURE__ */ Z({
385
- __name: "DBTableChooserControl",
386
- props: {
387
- control: {},
388
- handleChange: { type: Function },
389
- changeValue: { type: Function },
390
- disabled: { type: Boolean },
391
- labelForId: {},
392
- isValid: { type: Boolean },
393
- messages: {},
394
- onRegisterValidation: { type: Function }
395
- },
396
- setup(u) {
397
- const e = u, { itemType: c } = ve(), s = v(() => e.control.uischema.options), m = v(
398
- () => s.value.catalogsSupported
399
- ), x = v(
400
- () => s.value.dbConnectionError
401
- ), d = v(
402
- () => typeof x.value > "u"
403
- ), B = v(() => s.value.validateSchema), b = v(() => s.value.validateTable), _ = v(() => {
404
- const n = [];
405
- if (m.value) {
406
- const I = e.control.data.catalogName;
407
- if (I)
408
- n.push(I);
409
- else
410
- return [];
411
- }
412
- const p = e.control.data.schemaName;
413
- return p && n.push(p), n;
414
- }), i = M(null), o = (n) => {
415
- var I;
416
- let p = {
417
- tableName: n.at(Ze) ?? "",
418
- schemaName: n.at(et) ?? null,
419
- catalogName: m.value ? n.at(tt) ?? "" : ""
420
- };
421
- e.changeValue(p), (I = i.value) == null || I.close();
422
- }, k = () => {
423
- var n;
424
- (n = i.value) == null || n.close();
425
- }, y = le(se), {
426
- text: F,
427
- disabled: T,
428
- onApply: V
429
- } = oe({
430
- element: y,
431
- initialValue: { text: "Choose table" }
432
- }), R = le(
433
- re
434
- ), {
435
- text: S,
436
- disabled: H,
437
- onApply: A
438
- } = oe({
439
- key: de,
440
- element: R,
441
- initialValue: { text: "Go into" }
442
- }), j = () => {
443
- var n;
444
- return (n = V.value) == null ? void 0 : n.call(V).then(k).catch(() => {
445
- });
446
- }, z = v(() => e.control.data), O = v(() => z.value.catalogName ?? ""), C = v(() => z.value.schemaName), $ = v(() => z.value.tableName), L = M(!1);
447
- ue(z, () => L.value = C.value !== null);
448
- const {
449
- catalogueErrorMessage: U,
450
- schemaErrorMessage: q,
451
- tableErrorMessage: G,
452
- catalogueErrorMessageIsLoading: t,
453
- schemaErrorMessageIsLoading: a,
454
- tableErrorMessageIsLoading: l
455
- } = Ge({
456
- itemTypeExtractor: c,
457
- cataloguesSupported: m,
458
- catalogueName: O,
459
- schemaName: C,
460
- tableName: $,
461
- isDbConnected: d,
462
- validateSchema: B,
463
- validateTable: b,
464
- enable: L
465
- });
466
- return (n, p) => (f(), w("div", We, [
467
- x.value ? (f(), X(r(fe), {
468
- key: 0,
469
- variant: "info",
470
- title: "Database not connected",
471
- description: x.value
472
- }, null, 8, ["description"])) : D("", !0),
473
- m.value ? (f(), w(ie, { key: 1 }, [
474
- g(J, {
475
- "field-name": "catalogName",
476
- control: n.control
477
- }, null, 8, ["control"]),
478
- g(K, {
479
- "error-message": r(U),
480
- "is-loading": r(t)
481
- }, null, 8, ["error-message", "is-loading"])
482
- ], 64)) : D("", !0),
483
- g(J, {
484
- "field-name": "schemaName",
485
- control: n.control,
486
- options: {
487
- hideOnNull: !0,
488
- default: ""
489
- }
490
- }, null, 8, ["control"]),
491
- g(K, {
492
- "error-message": r(q),
493
- "is-loading": r(a)
494
- }, null, 8, ["error-message", "is-loading"]),
495
- h("div", Je, [
496
- g(r(be), {
497
- ref_key: "settingsSubPanelRef",
498
- ref: i,
499
- "hide-buttons-when-expanded": "",
500
- "background-color-override": "var(--knime-porcelain)"
501
- }, {
502
- "expand-button": E(({ expand: I }) => [
503
- h("div", Ke, [
504
- g(J, {
505
- class: "flex-grow",
506
- "field-name": "tableName",
507
- control: n.control
508
- }, null, 8, ["control"]),
509
- h("div", Ye, [
510
- g(r(P), {
511
- primary: "",
512
- compact: "",
513
- disabled: !d.value,
514
- class: "expand-button",
515
- onClick: I
516
- }, {
517
- default: E(() => [
518
- h("span", Qe, [
519
- g(r(Me))
520
- ]),
521
- p[0] || (p[0] = h("span", { class: "label" }, "Browse", -1))
522
- ]),
523
- _: 2,
524
- __: [0]
525
- }, 1032, ["disabled", "onClick"])
526
- ])
527
- ])
528
- ]),
529
- default: E(() => [
530
- g(He, {
531
- "initial-path-parts": _.value,
532
- "initial-table": $.value,
533
- onTableSelected: o
534
- }, null, 8, ["initial-path-parts", "initial-table"])
535
- ]),
536
- "bottom-content": E(() => [
537
- h("div", Xe, [
538
- g(r(P), {
539
- "with-border": "",
540
- compact: "",
541
- onClick: k
542
- }, {
543
- default: E(() => p[1] || (p[1] = [
544
- W(" Cancel ", -1)
545
- ])),
546
- _: 1,
547
- __: [1]
548
- }),
549
- h("div", null, [
550
- g(r(P), {
551
- ref: re,
552
- "with-border": "",
553
- compact: "",
554
- disabled: r(H),
555
- onClick: r(A)
556
- }, {
557
- default: E(() => [
558
- W(N(r(S)), 1)
559
- ]),
560
- _: 1
561
- }, 8, ["disabled", "onClick"]),
562
- g(r(P), {
563
- ref: se,
564
- compact: "",
565
- primary: "",
566
- disabled: r(T),
567
- onClick: j
568
- }, {
569
- default: E(() => [
570
- W(N(r(F)), 1)
571
- ]),
572
- _: 1
573
- }, 8, ["disabled"])
574
- ])
575
- ])
576
- ]),
577
- _: 1
578
- }, 512),
579
- g(K, {
580
- "error-message": C.value === null ? b.value ? "Validation disabled when using default schema." : null : r(G),
581
- "is-loading": r(l) && C.value !== null,
582
- type: C.value === null ? "INFO" : "ERROR"
583
- }, null, 8, ["error-message", "is-loading", "type"])
584
- ])
585
- ]));
586
- }
587
- }), ct = /* @__PURE__ */ ee(at, [["__scopeId", "data-v-3ad30c2b"]]);
588
- export {
589
- ct as default
590
- };