@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,6 +1,6 @@
1
1
  import { computed as n, ref as f, watch as E, onMounted as b } from "vue";
2
- import { d as L, ae as I } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
3
- const A = (o) => o.charAt(0).toUpperCase() + o.slice(1).toLowerCase(), B = (o) => {
2
+ import { t as L, w as A } from "./TextControl-52n-sttB-DssWw4KP.js";
3
+ const B = (o) => o.charAt(0).toUpperCase() + o.slice(1).toLowerCase(), I = (o) => {
4
4
  const t = n(
5
5
  () => o.value.fileSystems ?? [
6
6
  "CONNECTED",
@@ -50,7 +50,7 @@ const A = (o) => o.charAt(0).toUpperCase() + o.slice(1).toLowerCase(), B = (o) =
50
50
  ...l(t.value) && {
51
51
  connectedFSOptions: t.value
52
52
  }
53
- })), { isLocal: u, isConnected: r, fileSystems: m } = B(s), d = f([]), i = f(null), c = n(() => s.value.isWriter), v = n(
53
+ })), { isLocal: u, isConnected: r, fileSystems: m } = I(s), d = f([]), i = f(null), c = n(() => s.value.isWriter), v = n(
54
54
  () => {
55
55
  var e;
56
56
  return ((e = s.value.spaceFSOptions) == null ? void 0 : e.mountId) ?? "Current space";
@@ -69,7 +69,7 @@ const A = (o) => o.charAt(0).toUpperCase() + o.slice(1).toLowerCase(), B = (o) =
69
69
  void 0
70
70
  )
71
71
  ), D = n(
72
- () => A(
72
+ () => B(
73
73
  l(t.value) ? t.value.fileSystemType ?? "Connected file system" : "Connected file system"
74
74
  )
75
75
  ), C = f(!1), y = (e) => {
@@ -113,7 +113,7 @@ const A = (o) => o.charAt(0).toUpperCase() + o.slice(1).toLowerCase(), B = (o) =
113
113
  isWorkflowFilterMode: a,
114
114
  backendType: s
115
115
  }) => {
116
- const u = I("getData");
116
+ const u = A("getData");
117
117
  return {
118
118
  listItems: (i, c, v) => u({
119
119
  method: "fileChooser.listItems",
@@ -146,7 +146,7 @@ const A = (o) => o.charAt(0).toUpperCase() + o.slice(1).toLowerCase(), B = (o) =
146
146
  };
147
147
  }, U = (o, t) => o === "LOCAL" ? "local" : o === "CONNECTED" ? `connected${t ?? -1}` : o === "relative-to-embedded-data" ? "embedded" : "relativeToCurrentHubSpace";
148
148
  export {
149
- B as a,
149
+ I as a,
150
150
  R as b,
151
151
  U as g,
152
152
  x as u
@@ -0,0 +1,34 @@
1
+ import { computed as l, ref as h } from "vue";
2
+ import { u as g } from "./plainDateTimeUtils-CR0UhpkD-DU-LM4_V.js";
3
+ const C = (o) => {
4
+ const n = l(
5
+ () => g.fromString(o.getDateTime())
6
+ ), v = l(() => n.value.date), d = l(() => n.value.time), r = h(
7
+ g.detectGranularity(o.getDateTime())
8
+ );
9
+ let t, a, i, u = !1;
10
+ const s = () => {
11
+ u = !1;
12
+ const e = t === void 0 ? v.value : t, f = a === void 0 ? d.value : a, c = i ?? r.value;
13
+ t = void 0, a = void 0, i = void 0, r.value = c, o.commit(e, f, c);
14
+ }, m = () => {
15
+ u || (u = !0, queueMicrotask(s));
16
+ };
17
+ return {
18
+ datePart: v,
19
+ timePart: d,
20
+ granularity: r,
21
+ onDateChange: (e) => {
22
+ t = e, m();
23
+ },
24
+ onTimeChange: (e) => {
25
+ a = e, m();
26
+ },
27
+ onGranularityChange: (e) => {
28
+ i = e, m();
29
+ }
30
+ };
31
+ };
32
+ export {
33
+ C as G
34
+ };
@@ -1,10 +1,10 @@
1
1
  import { computed as s } from "vue";
2
- import { d as i } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
2
+ import { t } from "./TextControl-52n-sttB-DssWw4KP.js";
3
3
  const c = (o, e) => {
4
- const l = s(() => o.value.uischema), u = i(l, "possibleValues");
4
+ const l = s(() => o.value.uischema), u = t(l, "possibleValues");
5
5
  return { possibleValues: s(() => {
6
- var d, a;
7
- return (d = l.value.providedOptions) != null && d.includes("possibleValues") ? u.value : ((a = l.value.options) == null ? void 0 : a.possibleValues) ?? (typeof (e == null ? void 0 : e.defaultOnNonProvided) > "u" ? [] : e == null ? void 0 : e.defaultOnNonProvided);
6
+ var a, d;
7
+ return (a = l.value.providedOptions) != null && a.includes("possibleValues") ? u.value : ((d = l.value.options) == null ? void 0 : d.possibleValues) ?? (typeof (e == null ? void 0 : e.defaultOnNonProvided) > "u" ? [] : e == null ? void 0 : e.defaultOnNonProvided);
8
8
  }) };
9
9
  }, p = (o) => {
10
10
  var l, u;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@knime/scripting-editor",
3
3
  "type": "module",
4
- "version": "0.0.127",
4
+ "version": "0.0.129",
5
5
  "description": "Shared Scripting Editor components for KNIME",
6
6
  "repository": {
7
7
  "type": "git",
@@ -11,8 +11,8 @@
11
11
  "author": "KNIME AG, Zurich, Switzerland",
12
12
  "license": "See the file license.txt",
13
13
  "dependencies": {
14
- "@knime/kds-components": "0.23.1",
15
- "@knime/kds-styles": "0.23.1",
14
+ "@knime/kds-components": "0.27.0",
15
+ "@knime/kds-styles": "0.27.0",
16
16
  "@knime/styles": "1.15.1",
17
17
  "@knime/ui-extension-renderer": "2.5.19",
18
18
  "@knime/utils": "1.11.0",
@@ -1,38 +0,0 @@
1
- import { defineComponent as s, ref as c, createElementBlock as d, openBlock as r, createElementVNode as u, renderSlot as n, createVNode as i, unref as p } from "vue";
2
- import { Y as b, G as v } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
3
- const m = { class: "checkbox-container" }, f = /* @__PURE__ */ s({
4
- __name: "CheckboxControl",
5
- props: {
6
- control: {},
7
- handleChange: { type: Function },
8
- changeValue: { type: Function },
9
- disabled: { type: Boolean },
10
- labelForId: {},
11
- isValid: { type: Boolean },
12
- messages: {},
13
- onRegisterValidation: { type: Function }
14
- },
15
- setup(o) {
16
- const l = c(!1);
17
- return (t, e) => (r(), d("div", {
18
- class: "checkbox-input",
19
- onMouseover: e[1] || (e[1] = (a) => l.value = !0),
20
- onMouseleave: e[2] || (e[2] = (a) => l.value = !1)
21
- }, [
22
- u("div", m, [
23
- i(p(v), {
24
- class: "checkbox",
25
- disabled: o.disabled,
26
- "model-value": o.control.data,
27
- label: o.control.label,
28
- "onUpdate:modelValue": e[0] || (e[0] = (a) => o.changeValue(a === !0))
29
- }, null, 8, ["disabled", "model-value", "label"]),
30
- n(t.$slots, "icon", {}, void 0, !0)
31
- ]),
32
- n(t.$slots, "buttons", { hover: l.value }, void 0, !0)
33
- ], 32));
34
- }
35
- }), k = /* @__PURE__ */ b(f, [["__scopeId", "data-v-cd984837"]]);
36
- export {
37
- k as default
38
- };
@@ -1,40 +0,0 @@
1
- import { defineComponent as c, computed as t, ref as d, toRef as u, createBlock as i, createCommentVNode as p, onMounted as m, openBlock as b, unref as f } from "vue";
2
- import { Y as v, q as h } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
3
- import { c as y } from "./index-Blg1O3Fz-CGafpkU1.js";
4
- import { t as V } from "./usePossibleValues-B-W6u-1T-DcglK6MY.js";
5
- const k = /* @__PURE__ */ c({
6
- __name: "CheckboxesControl",
7
- props: {
8
- control: {},
9
- handleChange: { type: Function },
10
- changeValue: { type: Function },
11
- disabled: { type: Boolean },
12
- isValid: { type: Boolean },
13
- onRegisterValidation: { type: Function },
14
- labelForId: {}
15
- },
16
- setup(e) {
17
- const o = e, r = t(
18
- () => {
19
- var a;
20
- return (a = o.control.uischema.options) == null ? void 0 : a.checkboxLayout;
21
- }
22
- ), l = d(null), { possibleValues: s } = V(u(o, "control")), n = t(() => l.value ?? s.value);
23
- return m(() => {
24
- l.value = o.control.schema.anyOf ? o.control.schema.anyOf.map(y) : null;
25
- }), (a, g) => n.value ? (b(), i(f(h), {
26
- key: 0,
27
- id: e.labelForId,
28
- class: "checkboxes",
29
- "possible-values": n.value,
30
- alignment: r.value,
31
- disabled: e.disabled,
32
- "model-value": e.control.data,
33
- error: !e.isValid,
34
- "onUpdate:modelValue": e.changeValue
35
- }, null, 8, ["id", "possible-values", "alignment", "disabled", "model-value", "error", "onUpdate:modelValue"])) : p("", !0);
36
- }
37
- }), I = /* @__PURE__ */ v(k, [["__scopeId", "data-v-67afa686"]]);
38
- export {
39
- I as default
40
- };
@@ -1,103 +0,0 @@
1
- import { defineComponent as F, useTemplateRef as S, ref as v, computed as M, watch as _, onMounted as z, onUnmounted as G, createElementBlock as K, openBlock as $, createElementVNode as d, normalizeClass as P, toDisplayString as U, unref as s, createVNode as W, normalizeStyle as X } from "vue";
2
- import { ar as j, as as q, at as J } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
3
- import { editor as u, MarkerSeverity as Q } from "monaco-editor";
4
- import { _ as Y } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- const Z = { class: "wrapper" }, I = { class: "title" }, ee = { class: "actions" }, oe = ["id"], te = 18, ae = 3, ne = "vs-light", se = "vs-dark", ie = /* @__PURE__ */ F({
6
- __name: "CodeEditorControl",
7
- props: {
8
- control: {},
9
- handleChange: { type: Function },
10
- changeValue: { type: Function },
11
- disabled: { type: Boolean },
12
- isValid: { type: Boolean },
13
- onRegisterValidation: { type: Function },
14
- labelForId: {}
15
- },
16
- setup(D) {
17
- var R, T, V, O;
18
- const n = D, l = n.control.uischema, y = ((R = l.options) == null ? void 0 : R.language) ?? "plaintext", p = ((T = l.options) == null ? void 0 : T.fileType) ?? y.toUpperCase(), r = ((V = l.options) == null ? void 0 : V.minRows) ?? 3, H = ((O = l.options) == null ? void 0 : O.maxRows) ?? 15, C = S("editor-container");
19
- let e, c;
20
- const E = v(te), m = v(r), N = M(
21
- () => Math.min(H, Math.max(r, m.value))
22
- ), w = M(
23
- () => `${E.value * N.value + ae}px`
24
- ), b = (o) => o ? se : ne, { isDarkMode: k } = j();
25
- _(k, (o) => {
26
- e && e.updateOptions({ theme: b(o) });
27
- });
28
- const L = v([]), x = M(() => {
29
- const o = L.value;
30
- if (o.length === 0)
31
- return null;
32
- const t = o[0], a = o.length > 1 ? `${t} (+${o.length - 1} more)` : t;
33
- return () => ({ errors: [a] });
34
- }), g = n.onRegisterValidation(x), { copy: A, copied: f } = q({ copiedDuring: 2e3 }), B = () => {
35
- var t;
36
- const o = (t = e == null ? void 0 : e.getModel()) == null ? void 0 : t.getValue();
37
- o && A(o);
38
- };
39
- return z(() => {
40
- var o;
41
- C.value && (e = u.create(C.value, {
42
- value: n.control.data ?? "",
43
- language: y,
44
- automaticLayout: !0,
45
- minimap: { enabled: !1 },
46
- scrollBeyondLastLine: !1,
47
- lineNumbersMinChars: 3,
48
- fontFamily: '"Roboto Mono", monospace',
49
- fontWeight: "400",
50
- readOnly: n.disabled,
51
- theme: b(k.value)
52
- }), E.value = e.getOption(u.EditorOption.lineHeight), m.value = ((o = e.getModel()) == null ? void 0 : o.getLineCount()) ?? r, e.onDidChangeModelContent(() => {
53
- var a, i;
54
- const t = ((a = e == null ? void 0 : e.getModel()) == null ? void 0 : a.getValue()) ?? "";
55
- m.value = ((i = e == null ? void 0 : e.getModel()) == null ? void 0 : i.getLineCount()) ?? r, t !== n.control.data && n.changeValue(t);
56
- }), c = u.onDidChangeMarkers((t) => {
57
- const a = e == null ? void 0 : e.getModel();
58
- if (a && t.some((i) => i.toString() === a.uri.toString())) {
59
- const i = u.getModelMarkers({ resource: a.uri });
60
- L.value = i.filter((h) => h.severity === Q.Error).map((h) => h.message);
61
- }
62
- }));
63
- }), _(
64
- () => n.disabled,
65
- (o) => {
66
- e == null || e.updateOptions({ readOnly: o });
67
- }
68
- ), _(
69
- () => n.control.data,
70
- (o) => {
71
- var t, a;
72
- e && o !== ((t = e.getModel()) == null ? void 0 : t.getValue()) && ((a = e.getModel()) == null || a.setValue(o ?? ""));
73
- }
74
- ), G(() => {
75
- c == null || c.dispose(), g == null || g(), e == null || e.dispose();
76
- }), (o, t) => ($(), K("div", Z, [
77
- d("div", {
78
- class: P(["header", { invalid: !o.isValid }])
79
- }, [
80
- d("span", I, U(s(p)), 1),
81
- d("div", ee, [
82
- W(s(J), {
83
- ariaLabel: s(f) ? "Copied " + s(p) + " to clipboard" : "Copy " + s(p) + " to clipboard",
84
- "leading-icon": s(f) ? "checkmark" : "copy",
85
- state: s(f) ? "success" : "default",
86
- size: "small",
87
- variant: "transparent",
88
- onClick: B
89
- }, null, 8, ["ariaLabel", "leading-icon", "state"])
90
- ])
91
- ], 2),
92
- d("div", {
93
- id: o.labelForId,
94
- ref: "editor-container",
95
- class: "code-editor-container",
96
- style: X({ height: w.value })
97
- }, null, 12, oe)
98
- ]));
99
- }
100
- }), ue = /* @__PURE__ */ Y(ie, [["__scopeId", "data-v-485fd1fb"]]);
101
- export {
102
- ue as default
103
- };
@@ -1,89 +0,0 @@
1
- import { defineComponent as u, computed as n, createElementBlock as a, openBlock as e, createBlock as d, unref as p, normalizeStyle as g, Fragment as _, renderList as h, createVNode as w } from "vue";
2
- import { d as C, Y as v, k as b } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
3
- const f = { class: "empty-state-wrapper" }, B = /* @__PURE__ */ u({
4
- __name: "ColorPreviewEmptyState",
5
- setup(l) {
6
- return (t, s) => (e(), a("div", f, [
7
- w(p(b), { headline: "No colors" })
8
- ]));
9
- }
10
- }), y = /* @__PURE__ */ v(B, [["__scopeId", "data-v-7a09310d"]]), F = { class: "gradient-preview" }, P = /* @__PURE__ */ u({
11
- __name: "GradientPreview",
12
- props: {
13
- gradient: {}
14
- },
15
- setup(l) {
16
- const t = l, s = n(() => t.gradient.colors.length > 0), r = n(() => {
17
- const o = t.gradient.stops;
18
- return o === null ? t.gradient.colors.join(", ") : t.gradient.colors.map((c, m) => `${c} ${o[m]}%`).join(", ");
19
- }), i = n(
20
- () => `linear-gradient(to right in lab, ${r.value})`
21
- );
22
- return (o, c) => (e(), a("div", F, [
23
- s.value ? (e(), a("div", {
24
- key: 0,
25
- class: "gradient-bar",
26
- style: g({ background: i.value })
27
- }, null, 4)) : (e(), d(y, { key: 1 }))
28
- ]));
29
- }
30
- }), I = /* @__PURE__ */ v(P, [["__scopeId", "data-v-8a745225"]]), $ = { class: "palette-preview" }, x = 8, V = /* @__PURE__ */ u({
31
- __name: "PalettePreview",
32
- props: {
33
- palette: {}
34
- },
35
- setup(l) {
36
- const t = l, s = n(() => t.palette.colors.length > 0), r = n(
37
- () => Math.max(1, Math.min(x, t.palette.colors.length))
38
- ), i = n(() => ({
39
- gridTemplateColumns: `repeat(${r.value}, minmax(0, 1fr))`
40
- }));
41
- return (o, c) => (e(), a("div", $, [
42
- s.value ? (e(), a("div", {
43
- key: 0,
44
- class: "palette-grid",
45
- style: g(i.value)
46
- }, [
47
- (e(!0), a(_, null, h(l.palette.colors, (m, k) => (e(), a("div", {
48
- key: k,
49
- class: "color-cell",
50
- style: g({ background: m })
51
- }, null, 4))), 128))
52
- ], 4)) : (e(), d(y, {
53
- key: 1,
54
- class: "empty-state"
55
- }))
56
- ]));
57
- }
58
- }), E = /* @__PURE__ */ v(V, [["__scopeId", "data-v-ad83046f"]]), M = { class: "color-preview" }, j = /* @__PURE__ */ u({
59
- __name: "ColorPreviewControl",
60
- props: {
61
- control: {},
62
- handleChange: { type: Function },
63
- changeValue: { type: Function },
64
- disabled: { type: Boolean },
65
- labelForId: {},
66
- isValid: { type: Boolean },
67
- messages: {},
68
- onRegisterValidation: { type: Function }
69
- },
70
- setup(l) {
71
- const t = l, s = n(
72
- () => t.control.uischema
73
- ), r = C(s, "previewColors", {
74
- colors: []
75
- }), i = (o) => !("stops" in o);
76
- return (o, c) => (e(), a("div", M, [
77
- i(p(r)) ? (e(), d(E, {
78
- key: 0,
79
- palette: p(r)
80
- }, null, 8, ["palette"])) : (e(), d(I, {
81
- key: 1,
82
- gradient: p(r)
83
- }, null, 8, ["gradient"]))
84
- ]));
85
- }
86
- });
87
- export {
88
- j as default
89
- };
@@ -1,40 +0,0 @@
1
- import { defineComponent as p, toRef as c, computed as t, createBlock as m, openBlock as v, unref as d } from "vue";
2
- import { C as b } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
3
- import { t as V } from "./usePossibleValues-B-W6u-1T-DcglK6MY.js";
4
- const g = /* @__PURE__ */ p({
5
- __name: "ComboBoxControl",
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
- const l = e, { possibleValues: o } = V(c(l, "control")), s = t(
17
- () => o.value === null || o.value.length === 0
18
- ), i = t(
19
- () => {
20
- var a, n;
21
- return ((a = l.control.uischema.providedOptions) == null ? void 0 : a.includes("possibleValues")) || ((n = l.control.uischema.options) == null ? void 0 : n.possibleValues) !== void 0;
22
- }
23
- ), r = t(
24
- () => l.disabled || s.value && i.value
25
- );
26
- return (a, n) => (v(), m(d(b), {
27
- id: e.labelForId,
28
- "model-value": e.control.data,
29
- "allow-new-values": !i.value,
30
- ariaLabel: e.control.label,
31
- disabled: r.value,
32
- "possible-values": s.value ? e.control.data.map((u) => ({ id: u, text: u })) : d(o),
33
- error: !e.isValid,
34
- "onUpdate:modelValue": e.changeValue
35
- }, null, 8, ["id", "model-value", "allow-new-values", "ariaLabel", "disabled", "possible-values", "error", "onUpdate:modelValue"]));
36
- }
37
- });
38
- export {
39
- g as default
40
- };
@@ -1,80 +0,0 @@
1
- import { createElementBlock as i, openBlock as o, createElementVNode as b, defineComponent as f, computed as m, createBlock as l, createCommentVNode as v, unref as t, withCtx as r, createVNode as n } from "vue";
2
- import { d as k, af as d, _ as w, v as g } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
3
- import { FunctionButton as C } from "@knime/components";
4
- import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- const B = {
6
- xmlns: "http://www.w3.org/2000/svg",
7
- fill: "none",
8
- stroke: "#000",
9
- "stroke-linejoin": "round",
10
- viewBox: "0 0 32 32"
11
- };
12
- function P(u, a) {
13
- return o(), i("svg", B, a[0] || (a[0] = [
14
- b("path", { d: "M7 13.5c-1.4 0-2.5 1.1-2.5 2.5s1.1 2.5 2.5 2.5 2.5-1.1 2.5-2.5-1.2-2.5-2.5-2.5zm9 5.1c-1.4 0-2.5 1.1-2.5 2.5s1.1 2.5 2.5 2.5 2.5-1.1 2.5-2.5-1.1-2.5-2.5-2.5zm9-6.8c-1.4 0-2.5 1.1-2.5 2.5s1.1 2.5 2.5 2.5 2.5-1.1 2.5-2.5-1.1-2.5-2.5-2.5zm-9 11.5v4m0-22.6v14.1m-9-.5v9M7 4.7v9m18 2.8v10.8m0-22.6V12" }, null, -1)
15
- ]));
16
- }
17
- const S = { render: P }, $ = { class: "control-with-sub-parameters" }, V = /* @__PURE__ */ f({
18
- __name: "ControlWithSubParameters",
19
- props: {
20
- layout: {}
21
- },
22
- setup(u) {
23
- const a = u, c = m(() => a.layout.uischema.control), h = m(() => a.layout.uischema.elements), p = k(
24
- c,
25
- "showSubParameters",
26
- !0
27
- );
28
- return (e, z) => (o(), i("div", $, [
29
- (o(), l(t(d), {
30
- key: `${e.layout.path}-control`,
31
- schema: e.layout.schema,
32
- uischema: c.value,
33
- path: e.layout.path,
34
- enabled: e.layout.enabled,
35
- renderers: e.layout.renderers,
36
- cells: e.layout.cells
37
- }, null, 8, ["schema", "uischema", "path", "enabled", "renderers", "cells"])),
38
- t(p) ? (o(), l(t(w), {
39
- key: 0,
40
- "background-color-override": "var(--knime-gray-ultra-light)"
41
- }, {
42
- "expand-button": r(({ expand: s }) => [
43
- n(t(C), {
44
- class: "settings-button",
45
- disabled: !e.layout.enabled,
46
- onClick: s
47
- }, {
48
- default: r(() => [
49
- n(t(S))
50
- ]),
51
- _: 2
52
- }, 1032, ["disabled", "onClick"])
53
- ]),
54
- default: r(() => [
55
- n(t(g), {
56
- class: "sub-parameters",
57
- elements: h.value
58
- }, {
59
- default: r(({ element: s, index: y }) => [
60
- (o(), l(t(d), {
61
- key: `${e.layout.path}-${y}`,
62
- schema: e.layout.schema,
63
- uischema: s,
64
- path: e.layout.path,
65
- enabled: e.layout.enabled,
66
- renderers: e.layout.renderers,
67
- cells: e.layout.cells
68
- }, null, 8, ["schema", "uischema", "path", "enabled", "renderers", "cells"]))
69
- ]),
70
- _: 1
71
- }, 8, ["elements"])
72
- ]),
73
- _: 1
74
- })) : v("", !0)
75
- ]));
76
- }
77
- }), W = /* @__PURE__ */ _(V, [["__scopeId", "data-v-1c3e309e"]]);
78
- export {
79
- W as default
80
- };
@@ -1,32 +0,0 @@
1
- import { defineComponent as t, computed as l, createBlock as i, openBlock as r, unref as s } from "vue";
2
- import { aa as d } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
3
- import { C as p } from "./CredentialsControlBase-14mA9Xg5.js";
4
- const m = /* @__PURE__ */ t({
5
- __name: "CredentialsControl",
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
- const a = e, { flowSettings: n } = d({
17
- path: l(() => a.control.path)
18
- });
19
- return (o, c) => (r(), i(p, {
20
- control: o.control,
21
- data: o.control.data,
22
- "flow-settings": s(n),
23
- disabled: o.disabled,
24
- "label-for-id": o.labelForId,
25
- "is-valid": o.isValid,
26
- onChange: o.changeValue
27
- }, null, 8, ["control", "data", "flow-settings", "disabled", "label-for-id", "is-valid", "onChange"]));
28
- }
29
- });
30
- export {
31
- m as default
32
- };
@@ -1,96 +0,0 @@
1
- import { defineComponent as H, computed as a, watch as I, ref as D, createElementBlock as E, openBlock as n, createBlock as c, createCommentVNode as i, unref as l } from "vue";
2
- import { d as b, ag as N, ah as g, ai as u } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
3
- import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- const z = ["id"], w = "*****************", A = /* @__PURE__ */ H({
5
- __name: "CredentialsControlBase",
6
- props: {
7
- control: {},
8
- data: {},
9
- flowSettings: {},
10
- disabled: { type: Boolean },
11
- labelForId: {},
12
- isValid: { type: Boolean }
13
- },
14
- emits: ["change"],
15
- setup(f, { emit: F }) {
16
- const d = f, s = F, m = () => ({
17
- password: "",
18
- secondFactor: "",
19
- username: ""
20
- }), o = a(() => d.data ?? m()), _ = (e) => {
21
- s("change", u(o.value, { username: e }));
22
- }, C = (e) => {
23
- s("change", u(o.value, { password: e, isHiddenPassword: !1 }));
24
- }, V = (e) => {
25
- s(
26
- "change",
27
- u(o.value, { secondFactor: e, isHiddenSecondFactor: !1 })
28
- );
29
- }, y = a(() => o.value.isHiddenPassword ? w : o.value.password), S = a(() => o.value.isHiddenSecondFactor ? w : o.value.secondFactor), t = a(() => d.control.uischema), r = a(() => t.value.options ?? {}), k = b(t, "hasUsername", !0), p = b(t, "hasPassword", !0), P = a(
30
- () => p.value && (r.value.showSecondFactor ?? !1)
31
- ), B = a(
32
- () => {
33
- var e;
34
- return ((e = r.value) == null ? void 0 : e.usernameLabel) ?? "Username";
35
- }
36
- ), v = a(
37
- () => {
38
- var e;
39
- return ((e = r.value) == null ? void 0 : e.passwordLabel) ?? "Password";
40
- }
41
- ), h = a(
42
- () => {
43
- var e;
44
- return ((e = r.value) == null ? void 0 : e.secondFactorLabel) ?? "Second authentication factor";
45
- }
46
- ), U = a(
47
- () => {
48
- var e;
49
- return (e = d.flowSettings) == null ? void 0 : e.controllingFlowVariableName;
50
- }
51
- );
52
- I(
53
- () => U.value,
54
- (e) => e || s("change", m())
55
- );
56
- const L = D(null);
57
- return (e, j) => (n(), E("div", {
58
- id: e.labelForId ?? void 0,
59
- ref_key: "controlElement",
60
- ref: L,
61
- class: "credentials-input-wrapper"
62
- }, [
63
- l(k) ? (n(), c(l(N), {
64
- key: 0,
65
- placeholder: B.value,
66
- "model-value": o.value.username,
67
- disabled: e.disabled,
68
- error: !e.isValid,
69
- "onUpdate:modelValue": _
70
- }, null, 8, ["placeholder", "model-value", "disabled", "error"])) : i("", !0),
71
- l(p) ? (n(), c(l(g), {
72
- key: 1,
73
- variant: "password",
74
- placeholder: v.value,
75
- "toggle-label": v.value,
76
- "model-value": y.value,
77
- disabled: e.disabled,
78
- error: !e.isValid,
79
- "onUpdate:modelValue": C
80
- }, null, 8, ["placeholder", "toggle-label", "model-value", "disabled", "error"])) : i("", !0),
81
- P.value ? (n(), c(l(g), {
82
- key: 2,
83
- variant: "key",
84
- placeholder: h.value,
85
- "toggle-label": h.value,
86
- "model-value": S.value,
87
- disabled: e.disabled,
88
- error: !e.isValid,
89
- "onUpdate:modelValue": V
90
- }, null, 8, ["placeholder", "toggle-label", "model-value", "disabled", "error"])) : i("", !0)
91
- ], 8, z));
92
- }
93
- }), K = /* @__PURE__ */ $(A, [["__scopeId", "data-v-554f2ef8"]]);
94
- export {
95
- K as C
96
- };
@@ -1,35 +0,0 @@
1
- import { defineComponent as d, computed as i, createBlock as s, openBlock as r, unref as u } from "vue";
2
- import { K as p, Z as c, z as m } from "./localTimeUtils-DBMwKtLh-CTshgG3l.js";
3
- const f = /* @__PURE__ */ d({
4
- __name: "DateControl",
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
- },
14
- setup(e) {
15
- const o = e, a = i({
16
- get: () => p(o.control.data),
17
- set: (l) => o.changeValue(c(l))
18
- });
19
- return (l, t) => (r(), s(u(m), {
20
- id: e.labelForId,
21
- modelValue: a.value,
22
- "onUpdate:modelValue": t[0] || (t[0] = (n) => a.value = n),
23
- "two-lines": "",
24
- required: !0,
25
- "show-time": !1,
26
- compact: "",
27
- disabled: e.disabled,
28
- "is-valid": e.isValid,
29
- timezone: "UTC"
30
- }, null, 8, ["id", "modelValue", "disabled", "is-valid"]));
31
- }
32
- });
33
- export {
34
- f as default
35
- };