@knime/scripting-editor 0.0.126 → 0.0.128

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 (133) hide show
  1. package/dist/{AnyOfTwinlist-C0gjxeQW-DdmyqOPW.js → AnyOfTwinlist-SXwBBRp2-Bqhgogiq.js} +5 -4
  2. package/dist/{ArrayLayout-0R2_c1hY.js → ArrayLayout-Dh1QLh8H.js} +41 -41
  3. package/dist/{ButtonControl-CAZYfYSF.js → ButtonControl-CaaKmrFb.js} +21 -21
  4. package/dist/CheckboxControl-CbWn843V-BTn1nVWQ.js +40 -0
  5. package/dist/CheckboxesControl-BiQOMrsp-BCRpKfZV.js +42 -0
  6. package/dist/CodeEditorControl-BhQdOlWM.js +133 -0
  7. package/dist/{ColorControl-DeSwgyjS-D4t0Ool5.js → ColorControl-B_mQdOCs-Dl3vNMVD.js} +10 -8
  8. package/dist/{ColorPreviewControl-CntI0nTL-B4W3C2Y0.js → ColorPreviewControl-BREwhSO9-uTvGtvF_.js} +21 -21
  9. package/dist/ComboBoxControl-BIZlnizm-7kcBjn_F.js +42 -0
  10. package/dist/{ConfigurationNodeNotSupported-DlGIHCIw.js → ConfigurationNodeNotSupported-CILWy-1v.js} +1 -1
  11. package/dist/{ControlWithSubParameters-yO5GSBha.js → ControlWithSubParameters-DNFQ_0Ol.js} +4 -4
  12. package/dist/CredentialsControl-DYI2eHZH.js +33 -0
  13. package/dist/CredentialsControlBase-Be_pBbr8.js +96 -0
  14. package/dist/DateControl-vkwY-8Qy-D35WLbKn.js +44 -0
  15. package/dist/DateTimeControl-CtXV6_D2-yc6SBo7d.js +89 -0
  16. package/dist/DateTimeFormatPickerControl-a7MPaNFN-CerJZl-s.js +37 -0
  17. package/dist/DateTimeFormatPickerWithTypeControl-B9Nu0dh1-B3FsqcQG.js +598 -0
  18. package/dist/{DialogFileExplorer-LqJqncub.js → DialogFileExplorer-BZuisQeJ.js} +2 -2
  19. package/dist/{DirtyTrackerRenderer-UW-Cxf7s.js → DirtyTrackerRenderer-qBfv19cz.js} +7 -7
  20. package/dist/DropdownControl-BUwovb4K-DZFITmfl.js +32 -0
  21. package/dist/DynamicInputControl-Br_sRCEw.js +6 -0
  22. package/dist/ExecutorCoresControl-DN-1o1XJ-B6JZf8lR.js +51 -0
  23. package/dist/ExecutorMemoryControl-UzqzP4hI-DEOR9ioJ.js +44 -0
  24. package/dist/{FileChooserControl-D3xMMTLF.js → FileChooserControl-UiGh3RA6.js} +4 -3
  25. package/dist/{FileChooserControlBase-CI3pdTpr.js → FileChooserControlBase-C0jKG7YK.js} +148 -144
  26. package/dist/{FileChooserControlForMultiFile-DuAaeTcz.js → FileChooserControlForMultiFile-Di4Pk53x.js} +5 -4
  27. package/dist/FileUploadControl-WC8TFQHe-BuGo0ZRQ.js +545 -0
  28. package/dist/GridSelectionControl-BgqT1t9d-BRz6UGC9.js +117 -0
  29. package/dist/{HorizontalLayout-DwdPdBTW-DNqvkBZ6.js → HorizontalLayout-CESRA3YR-DDxfF6ry.js} +7 -7
  30. package/dist/{IntegerControl-D8OzxbRA-DLAl4Ar6.js → IntegerControl-DKXN0mcE-DGJ3KRkb.js} +5 -4
  31. package/dist/IntervalControl-BswGPjcV-BmiAjHOy.js +51 -0
  32. package/dist/{LabeledGroup-CGcLflGw.js → LabeledGroup-5xwthvS8.js} +5 -5
  33. package/dist/LegacyCredentialsControl-DjJGg7vr.js +88 -0
  34. package/dist/{LinkControl-BvBBTFCs-B4x8DZjr.js → LinkControl-DTqOfnTg-BA_L4RtV.js} +10 -10
  35. package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-BLSG6Lpo-DtWE26ZK.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-Cic7UEOM-RBq7a_S3.js} +5 -5
  36. package/dist/ManualTwinlistControl-CoZdPu6n-BF9bz65d.js +77 -0
  37. package/dist/MultiFileChooserControl-BFW6QI_y.js +342 -0
  38. package/dist/{MultiRuleWrapper-BYA-GGQr.js → MultiRuleWrapper-B2ISI9_F.js} +1 -1
  39. package/dist/{MultiSelectListBoxControl-nmvLP18g-fumwGYev.js → MultiSelectListBoxControl-CjM94miu-DiufrbYU.js} +9 -8
  40. package/dist/{MultimodeTwinlistControl-yCdeWH2E-BiXMa7PW.js → MultimodeTwinlistControl-NMnPBn6a-DQkdp8td.js} +68 -66
  41. package/dist/{NameFilter-D1TMJydD-fZcEEzXz.js → NameFilter-DuVJG0SF-DAH98lDD.js} +7 -6
  42. package/dist/{NumberControl-uLMOLEbg-DEvsj1Mn.js → NumberControl-NMJmxuze-Bih_-Og_.js} +8 -7
  43. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-bph2Cze8-BGSxRVVz.js +54 -0
  44. package/dist/OneOfDropdown-CwJemyYo-Do-MOPV7.js +36 -0
  45. package/dist/{RadioButtonsWithDescriptionControl-5M_6G7Qk-ChulOTPN.js → RadioButtonsWithDescriptionControl-BK3UCreL-qWSS1DwX.js} +17 -17
  46. package/dist/RadioControl-ts1-JozG-Bt4Ssbnx.js +21 -0
  47. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-jxw_5dVt-B1RfPe72.js +64 -0
  48. package/dist/ResourceControlBase-FDiyHyQi-n4PYam8s.js +113 -0
  49. package/dist/{RichTextControl-D9QD2_uO-XEpxJaH_.js → RichTextControl-DH6GqUeF-DhVLA7bv.js} +7748 -6742
  50. package/dist/{SectionLayout-DY27pAtG-D9m5lyoN.js → SectionLayout-Cb3_L9Te-Ch2TL8Ns.js} +5 -5
  51. package/dist/{SettingsSubPanelLayout-82gMWhpv-CmIBNBVs.js → SettingsSubPanelLayout-DruWJjQA-BPDZqGKD.js} +22 -22
  52. package/dist/{SimpleTwinlistControl-P4KEYOq0-RZuXJS5p.js → SimpleTwinlistControl-CnBe4qsI-QQXdW90w.js} +7 -6
  53. package/dist/SingleSelectControl-C4Qzk2Ki-B4KRT-4U.js +58 -0
  54. package/dist/{SingleSelectListBoxControl-oMWH0vEE-CozC-ARB.js → SingleSelectListBoxControl-sLe2Y67h-aYZGPc-_.js} +14 -13
  55. package/dist/SortListControl-ChpYm3CZ-BHWX9fRm.js +112 -0
  56. package/dist/{StringFileChooserControl-CbuY9W_N.js → StringFileChooserControl-BGMU3nOp.js} +33 -30
  57. package/dist/{StyledListItem-D3LSfgGV-D8iKceFt.js → StyledListItem-BJEJoIzr-5JeRrk8P.js} +1 -1
  58. package/dist/{TeamAndSpacesControl-CH5ImByy-XXNR9HMn.js → TeamAndSpacesControl-7ZXPUwBb-DdkrLxnT.js} +21 -20
  59. package/dist/TeamResourceControl-BZDXMRLZ-Moa_pv2o.js +44 -0
  60. package/dist/{TextAreaControl-CrsZSU_f-D43BOhiB.js → TextAreaControl-BDGtgWys-B5coKRJL.js} +11 -9
  61. package/dist/TextControl-8jfyOJKb-BkT4AwNP.js +50876 -0
  62. package/dist/TimeControl-Dvt5U7xN-CTkb_kae.js +71 -0
  63. package/dist/TimeframesControl-DcUxC3kX-1e3a-BRE.js +352 -0
  64. package/dist/{TwinlistControlBase.vue_vue_type_script_setup_true_lang-B5lCsIOD-DoWlznIt.js → TwinlistControlBase.vue_vue_type_script_setup_true_lang-Buo-KA0N-tQDZulBA.js} +16 -13
  65. package/dist/{TypedStringFilter-ry7fTUTx-BqgMPUbD.js → TypedStringFilter-Cx8OCQcE-Cx82QY6q.js} +7 -6
  66. package/dist/{ValueSwitchControl-aVx7pUi9-BQVaMPgo.js → ValueSwitchControl-1ax1yKbk-Dssrj-K0.js} +7 -6
  67. package/dist/{VennDiagramLayout-Bh7M9sdS.js → VennDiagramLayout-TqRKYgWl.js} +42 -42
  68. package/dist/{VerticalLayout-Bv-LJOZ0-Bhthjlig.js → VerticalLayout-DnyoqTeh-COL0gWjl.js} +6 -6
  69. package/dist/ZonedDateTimeControl-mIIRwaHz-BSWCo5dl.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-grENCIdl.js +22 -0
  74. package/dist/main.js +9985 -13280
  75. package/dist/parameters.js +1 -1
  76. package/dist/plainDateTimeUtils-CR0UhpkD-DU-LM4_V.js +52 -0
  77. package/dist/src/scripting-service.d.ts +1 -1
  78. package/dist/useDropdownNavigation-CdrbT-CQ-Dxb_y1Fq.js +2003 -0
  79. package/dist/{useFileChooserBackend-Cf-ZWfup.js → useFileChooserBackend-DeqNZEZE.js} +6 -6
  80. package/dist/usePlainDateTimeBatch-Bd2G-GY9-DO2Zu0Mj.js +34 -0
  81. package/dist/{usePossibleValues-B-W6u-1T-CRO8qQzd.js → usePossibleValues-CtPV4Cjp-B6UlAJ8A.js} +3 -3
  82. package/package.json +6 -8
  83. package/dist/CheckboxControl-CS6iXHnF-aIaqHkPz.js +0 -38
  84. package/dist/CheckboxesControl-CPKIkyWt-Dfc5NCOp.js +0 -40
  85. package/dist/CodeEditorControl-BfC_vRfK.js +0 -103
  86. package/dist/ComboBoxControl-DBYnBkC4-YvQjV2xd.js +0 -40
  87. package/dist/CredentialsControl-BUdDVnKd.js +0 -32
  88. package/dist/CredentialsControlBase-CtiUUF6O.js +0 -96
  89. package/dist/DateControl-Cx_CwvNB-C6ZnNH2a.js +0 -35
  90. package/dist/DateTimeControl-BJsDzufC-BmyUPQid.js +0 -56
  91. package/dist/DateTimeFormatPickerControl-C80v1qfK-CksyyT9D.js +0 -35
  92. package/dist/DateTimeFormatPickerWithTypeControl-Dt-FKtYV-gb4KLPWO.js +0 -475
  93. package/dist/DropdownControl-D_BnA4-1-CZ3UBEZH.js +0 -30
  94. package/dist/DynamicInputControl-BW5MedWv.js +0 -6
  95. package/dist/ExecutorCoresControl-BnglyGMR-DCluaRJt.js +0 -56
  96. package/dist/ExecutorMemoryControl-CRATGs9C-BVornFOp.js +0 -50
  97. package/dist/FileUploadControl-D42rjpJg-BV-xemVF.js +0 -221
  98. package/dist/GridSelectionControl-BJk8-yiM-B-qEAJYS.js +0 -116
  99. package/dist/IntervalControl-Drljrv-b-HGlNWiOa.js +0 -751
  100. package/dist/LegacyCredentialsControl-SuSGcr6Q.js +0 -87
  101. package/dist/ManualTwinlistControl-By0Hur_m-CZ6mwit-.js +0 -75
  102. package/dist/MultiFileChooserControl-CnC8Sgqt.js +0 -401
  103. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-VVQDBYw7-DCpZfhmB.js +0 -52
  104. package/dist/OneOfDropdown-CDwwxb3h-1Z26R3-a.js +0 -34
  105. package/dist/RadioControl-C73s-icb-BvMjmtnc.js +0 -24
  106. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-BScekfhl-Cu_jwWBt.js +0 -60
  107. package/dist/ResourceControlBase-Bqq1PAX_-Dr521i_s.js +0 -183
  108. package/dist/SingleSelectControl-C_ZKkV5m-DnVAQEBt.js +0 -56
  109. package/dist/SortListControl-4v3T2j_9-Dd2NciQI.js +0 -110
  110. package/dist/TeamResourceControl-BFMuyWnk-BjuVm4u6.js +0 -47
  111. package/dist/TextControl-B0ag-3Pv-CVDIw3MG.js +0 -54656
  112. package/dist/TimeControl-Bt5OcjBc-Bb-uwA5L.js +0 -41
  113. package/dist/TimePartInput-CvwAzDuY-BVy_Fjvr.js +0 -253
  114. package/dist/TimeframesControl-BE3LFgyl-BlMPvvjh.js +0 -94
  115. package/dist/Tooltip-UlemzxdS-CT790DKa.js +0 -24
  116. package/dist/ValueSwitch-BXaDBm2C-CKjAMq9f.js +0 -130
  117. package/dist/ZonedDateTimeControl-6MUvXzd3-CoRMMPNO.js +0 -72
  118. package/dist/_Uint8Array-C_ozLuQF-D-SZhESZ.js +0 -349
  119. package/dist/arrow-dropdown-DMFBPPcK-uCJYJfqE.js +0 -17
  120. package/dist/floating-ui.vue-Fx4CxKut-DAsMxBCU.js +0 -1057
  121. package/dist/isArray-WzO_os3q-ClnPWjBY.js +0 -4
  122. package/dist/localTimeUtils-DBMwKtLh-C93hA6Y8.js +0 -12470
  123. package/dist/src/lsp/completion.d.ts +0 -7
  124. package/dist/src/lsp/connection.d.ts +0 -56
  125. package/dist/src/lsp/diagnostics.d.ts +0 -4
  126. package/dist/src/lsp/doc-sync.d.ts +0 -5
  127. package/dist/src/lsp/hover.d.ts +0 -5
  128. package/dist/src/lsp/knime-io.d.ts +0 -22
  129. package/dist/src/lsp/mapping-utils.d.ts +0 -8
  130. package/dist/src/lsp/signature-help.d.ts +0 -5
  131. package/dist/toString-C-CNeuJl-BV68kR4E.js +0 -949
  132. package/dist/useDropdownNavigation-2Yhk7zes-75raAHpT.js +0 -821
  133. /package/dist/{useUnknownValuesInTwinlist-BbwGcno5-D2ve7iXH.js → useUnknownValuesInTwinlist-BCbqJg7j-D2ve7iXH.js} +0 -0
@@ -1,13 +1,13 @@
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-CVDIw3MG.js";
3
- const f = { class: "empty-state-wrapper" }, B = /* @__PURE__ */ u({
1
+ import { defineComponent as u, computed as n, createElementBlock as a, openBlock as e, createBlock as d, unref as p, normalizeStyle as v, Fragment as k, renderList as h, createVNode as w } from "vue";
2
+ import { a as b, E as g, D as f } from "./TextControl-8jfyOJKb-BkT4AwNP.js";
3
+ const C = { class: "empty-state-wrapper" }, B = /* @__PURE__ */ u({
4
4
  __name: "ColorPreviewEmptyState",
5
5
  setup(l) {
6
- return (t, s) => (e(), a("div", f, [
7
- w(p(b), { headline: "No colors" })
6
+ return (t, s) => (e(), a("div", C, [
7
+ w(p(f), { headline: "No colors" })
8
8
  ]));
9
9
  }
10
- }), y = /* @__PURE__ */ v(B, [["__scopeId", "data-v-7a09310d"]]), F = { class: "gradient-preview" }, P = /* @__PURE__ */ u({
10
+ }), y = /* @__PURE__ */ g(B, [["__scopeId", "data-v-7a09310d"]]), F = { class: "gradient-preview" }, P = /* @__PURE__ */ u({
11
11
  __name: "GradientPreview",
12
12
  props: {
13
13
  gradient: {}
@@ -23,31 +23,31 @@ const f = { class: "empty-state-wrapper" }, B = /* @__PURE__ */ u({
23
23
  s.value ? (e(), a("div", {
24
24
  key: 0,
25
25
  class: "gradient-bar",
26
- style: g({ background: i.value })
26
+ style: v({ background: i.value })
27
27
  }, null, 4)) : (e(), d(y, { key: 1 }))
28
28
  ]));
29
29
  }
30
- }), I = /* @__PURE__ */ v(P, [["__scopeId", "data-v-8a745225"]]), $ = { class: "palette-preview" }, x = 8, V = /* @__PURE__ */ u({
30
+ }), x = /* @__PURE__ */ g(P, [["__scopeId", "data-v-8a745225"]]), E = { class: "palette-preview" }, I = 8, $ = /* @__PURE__ */ u({
31
31
  __name: "PalettePreview",
32
32
  props: {
33
33
  palette: {}
34
34
  },
35
35
  setup(l) {
36
36
  const t = l, s = n(() => t.palette.colors.length > 0), r = n(
37
- () => Math.max(1, Math.min(x, t.palette.colors.length))
37
+ () => Math.max(1, Math.min(I, t.palette.colors.length))
38
38
  ), i = n(() => ({
39
39
  gridTemplateColumns: `repeat(${r.value}, minmax(0, 1fr))`
40
40
  }));
41
- return (o, c) => (e(), a("div", $, [
41
+ return (o, c) => (e(), a("div", E, [
42
42
  s.value ? (e(), a("div", {
43
43
  key: 0,
44
44
  class: "palette-grid",
45
- style: g(i.value)
45
+ style: v(i.value)
46
46
  }, [
47
- (e(!0), a(_, null, h(l.palette.colors, (m, k) => (e(), a("div", {
48
- key: k,
47
+ (e(!0), a(k, null, h(l.palette.colors, (m, _) => (e(), a("div", {
48
+ key: _,
49
49
  class: "color-cell",
50
- style: g({ background: m })
50
+ style: v({ background: m })
51
51
  }, null, 4))), 128))
52
52
  ], 4)) : (e(), d(y, {
53
53
  key: 1,
@@ -55,7 +55,7 @@ const f = { class: "empty-state-wrapper" }, B = /* @__PURE__ */ u({
55
55
  }))
56
56
  ]));
57
57
  }
58
- }), E = /* @__PURE__ */ v(V, [["__scopeId", "data-v-ad83046f"]]), M = { class: "color-preview" }, j = /* @__PURE__ */ u({
58
+ }), V = /* @__PURE__ */ g($, [["__scopeId", "data-v-ad83046f"]]), D = { class: "color-preview" }, j = /* @__PURE__ */ u({
59
59
  __name: "ColorPreviewControl",
60
60
  props: {
61
61
  control: {},
@@ -63,21 +63,21 @@ const f = { class: "empty-state-wrapper" }, B = /* @__PURE__ */ u({
63
63
  changeValue: { type: Function },
64
64
  disabled: { type: Boolean },
65
65
  labelForId: {},
66
- isValid: { type: Boolean },
67
- messages: {},
66
+ error: { type: Boolean },
67
+ subText: {},
68
68
  onRegisterValidation: { type: Function }
69
69
  },
70
70
  setup(l) {
71
71
  const t = l, s = n(
72
72
  () => t.control.uischema
73
- ), r = C(s, "previewColors", {
73
+ ), r = b(s, "previewColors", {
74
74
  colors: []
75
75
  }), i = (o) => !("stops" in o);
76
- return (o, c) => (e(), a("div", M, [
77
- i(p(r)) ? (e(), d(E, {
76
+ return (o, c) => (e(), a("div", D, [
77
+ i(p(r)) ? (e(), d(V, {
78
78
  key: 0,
79
79
  palette: p(r)
80
- }, null, 8, ["palette"])) : (e(), d(I, {
80
+ }, null, 8, ["palette"])) : (e(), d(x, {
81
81
  key: 1,
82
82
  gradient: p(r)
83
83
  }, null, 8, ["gradient"]))
@@ -0,0 +1,42 @@
1
+ import { defineComponent as p, toRef as b, computed as n, createBlock as c, openBlock as m, unref as i } from "vue";
2
+ import { b as v } from "./TextControl-8jfyOJKb-BkT4AwNP.js";
3
+ import { t as V } from "./usePossibleValues-CtPV4Cjp-B6UlAJ8A.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
+ error: { type: Boolean },
12
+ subText: {},
13
+ onRegisterValidation: { type: Function },
14
+ labelForId: {}
15
+ },
16
+ setup(e) {
17
+ const o = e, { possibleValues: l } = V(b(o, "control")), r = n(
18
+ () => l.value === null || l.value.length === 0
19
+ ), s = n(
20
+ () => {
21
+ var a, t;
22
+ return ((a = o.control.uischema.providedOptions) == null ? void 0 : a.includes("possibleValues")) || ((t = o.control.uischema.options) == null ? void 0 : t.possibleValues) !== void 0;
23
+ }
24
+ ), d = n(
25
+ () => o.disabled || r.value && s.value
26
+ );
27
+ return (a, t) => (m(), c(i(v), {
28
+ id: e.labelForId,
29
+ "model-value": e.control.data,
30
+ "allow-new-values": !s.value,
31
+ ariaLabel: e.control.label,
32
+ disabled: d.value,
33
+ "possible-values": r.value ? e.control.data.map((u) => ({ id: u, text: u })) : i(l),
34
+ error: e.error,
35
+ "sub-text": e.subText,
36
+ "onUpdate:modelValue": e.changeValue
37
+ }, null, 8, ["id", "model-value", "allow-new-values", "ariaLabel", "disabled", "possible-values", "error", "sub-text", "onUpdate:modelValue"]));
38
+ }
39
+ });
40
+ export {
41
+ g as default
42
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, computed as o, createBlock as d, openBlock as c, unref as u } from "vue";
2
- import { a7 as l, a8 as m, a9 as f } from "./TextControl-B0ag-3Pv-CVDIw3MG.js";
2
+ import { W as l, X as m, Y as f } from "./TextControl-8jfyOJKb-BkT4AwNP.js";
3
3
  const N = /* @__PURE__ */ p({
4
4
  __name: "ConfigurationNodeNotSupported",
5
5
  props: l(),
@@ -1,5 +1,5 @@
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-CVDIw3MG.js";
1
+ import { createElementBlock as i, openBlock as o, createElementVNode as b, defineComponent as v, computed as m, createBlock as l, createCommentVNode as f, unref as t, withCtx as r, createVNode as n } from "vue";
2
+ import { a as k, a3 as d, _ as w, v as g } from "./TextControl-8jfyOJKb-BkT4AwNP.js";
3
3
  import { FunctionButton as C } from "@knime/components";
4
4
  import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const B = {
@@ -14,7 +14,7 @@ function P(u, a) {
14
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
15
  ]));
16
16
  }
17
- const S = { render: P }, $ = { class: "control-with-sub-parameters" }, V = /* @__PURE__ */ f({
17
+ const S = { render: P }, $ = { class: "control-with-sub-parameters" }, V = /* @__PURE__ */ v({
18
18
  __name: "ControlWithSubParameters",
19
19
  props: {
20
20
  layout: {}
@@ -71,7 +71,7 @@ const S = { render: P }, $ = { class: "control-with-sub-parameters" }, V = /* @_
71
71
  }, 8, ["elements"])
72
72
  ]),
73
73
  _: 1
74
- })) : v("", !0)
74
+ })) : f("", !0)
75
75
  ]));
76
76
  }
77
77
  }), W = /* @__PURE__ */ _(V, [["__scopeId", "data-v-1c3e309e"]]);
@@ -0,0 +1,33 @@
1
+ import { defineComponent as r, computed as a, createBlock as l, openBlock as s, unref as i } from "vue";
2
+ import { Z as d } from "./TextControl-8jfyOJKb-BkT4AwNP.js";
3
+ import { C as p } from "./CredentialsControlBase-Be_pBbr8.js";
4
+ const m = /* @__PURE__ */ r({
5
+ __name: "CredentialsControl",
6
+ props: {
7
+ control: {},
8
+ handleChange: { type: Function },
9
+ changeValue: { type: Function },
10
+ disabled: { type: Boolean },
11
+ error: { type: Boolean },
12
+ subText: {},
13
+ onRegisterValidation: { type: Function },
14
+ labelForId: {}
15
+ },
16
+ setup(e) {
17
+ const n = e, { flowSettings: t } = d({
18
+ path: a(() => n.control.path)
19
+ });
20
+ return (o, c) => (s(), l(p, {
21
+ control: o.control,
22
+ data: o.control.data,
23
+ "flow-settings": i(t),
24
+ disabled: o.disabled,
25
+ "label-for-id": o.labelForId,
26
+ error: o.error,
27
+ onChange: o.changeValue
28
+ }, null, 8, ["control", "data", "flow-settings", "disabled", "label-for-id", "error", "onChange"]));
29
+ }
30
+ });
31
+ export {
32
+ m as default
33
+ };
@@ -0,0 +1,96 @@
1
+ import { defineComponent as H, computed as a, watch as N, ref as D, createElementBlock as E, openBlock as n, createBlock as c, createCommentVNode as u, unref as l } from "vue";
2
+ import { a as b, a9 as I, aa as w, ab as i } from "./TextControl-8jfyOJKb-BkT4AwNP.js";
3
+ import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const M = ["id"], g = "*****************", O = /* @__PURE__ */ H({
5
+ __name: "CredentialsControlBase",
6
+ props: {
7
+ control: {},
8
+ data: {},
9
+ flowSettings: {},
10
+ disabled: { type: Boolean },
11
+ labelForId: {},
12
+ error: { type: Boolean }
13
+ },
14
+ emits: ["change"],
15
+ setup(f, { emit: F }) {
16
+ const t = f, r = F, m = () => ({
17
+ password: "",
18
+ secondFactor: "",
19
+ username: ""
20
+ }), o = a(() => t.data ?? m()), _ = (e) => {
21
+ r("change", i(o.value, { username: e }));
22
+ }, C = (e) => {
23
+ r("change", i(o.value, { password: e, isHiddenPassword: !1 }));
24
+ }, y = (e) => {
25
+ r(
26
+ "change",
27
+ i(o.value, { secondFactor: e, isHiddenSecondFactor: !1 })
28
+ );
29
+ }, S = a(() => o.value.isHiddenPassword ? g : o.value.password), k = a(() => o.value.isHiddenSecondFactor ? g : o.value.secondFactor), d = a(() => t.control.uischema), s = a(() => d.value.options ?? {}), P = b(d, "hasUsername", !0), p = b(d, "hasPassword", !0), B = a(
30
+ () => p.value && (s.value.showSecondFactor ?? !1)
31
+ ), U = a(
32
+ () => {
33
+ var e;
34
+ return ((e = s.value) == null ? void 0 : e.usernameLabel) ?? "Username";
35
+ }
36
+ ), v = a(
37
+ () => {
38
+ var e;
39
+ return ((e = s.value) == null ? void 0 : e.passwordLabel) ?? "Password";
40
+ }
41
+ ), h = a(
42
+ () => {
43
+ var e;
44
+ return ((e = s.value) == null ? void 0 : e.secondFactorLabel) ?? "Second authentication factor";
45
+ }
46
+ ), L = a(
47
+ () => {
48
+ var e;
49
+ return (e = t.flowSettings) == null ? void 0 : e.controllingFlowVariableName;
50
+ }
51
+ );
52
+ N(
53
+ () => L.value,
54
+ (e) => e || r("change", m())
55
+ );
56
+ const V = D(null);
57
+ return (e, j) => (n(), E("div", {
58
+ id: e.labelForId ?? void 0,
59
+ ref_key: "controlElement",
60
+ ref: V,
61
+ class: "credentials-input-wrapper"
62
+ }, [
63
+ l(P) ? (n(), c(l(I), {
64
+ key: 0,
65
+ placeholder: U.value,
66
+ "model-value": o.value.username,
67
+ disabled: e.disabled,
68
+ error: e.error,
69
+ "onUpdate:modelValue": _
70
+ }, null, 8, ["placeholder", "model-value", "disabled", "error"])) : u("", !0),
71
+ l(p) ? (n(), c(l(w), {
72
+ key: 1,
73
+ variant: "password",
74
+ placeholder: v.value,
75
+ "toggle-label": v.value,
76
+ "model-value": S.value,
77
+ disabled: e.disabled,
78
+ error: e.error,
79
+ "onUpdate:modelValue": C
80
+ }, null, 8, ["placeholder", "toggle-label", "model-value", "disabled", "error"])) : u("", !0),
81
+ B.value ? (n(), c(l(w), {
82
+ key: 2,
83
+ variant: "key",
84
+ placeholder: h.value,
85
+ "toggle-label": h.value,
86
+ "model-value": k.value,
87
+ disabled: e.disabled,
88
+ error: e.error,
89
+ "onUpdate:modelValue": y
90
+ }, null, 8, ["placeholder", "toggle-label", "model-value", "disabled", "error"])) : u("", !0)
91
+ ], 8, M));
92
+ }
93
+ }), G = /* @__PURE__ */ $(O, [["__scopeId", "data-v-b27fc6f2"]]);
94
+ export {
95
+ G as C
96
+ };
@@ -0,0 +1,44 @@
1
+ import { defineComponent as l, computed as d, createBlock as u, openBlock as i, unref as p } from "vue";
2
+ import { y as c } from "./TextControl-8jfyOJKb-BkT4AwNP.js";
3
+ import { u as m } from "./plainDateTimeUtils-CR0UhpkD-DU-LM4_V.js";
4
+ import { D as s } from "./classApi-CHpAZrj3-BptMrhKH.js";
5
+ const x = /* @__PURE__ */ l({
6
+ __name: "DateControl",
7
+ props: {
8
+ control: {},
9
+ handleChange: { type: Function },
10
+ changeValue: { type: Function },
11
+ disabled: { type: Boolean },
12
+ error: { type: Boolean },
13
+ subText: {},
14
+ onRegisterValidation: { type: Function },
15
+ labelForId: {}
16
+ },
17
+ setup(o) {
18
+ const r = o, a = (e) => {
19
+ if (!e)
20
+ return null;
21
+ try {
22
+ return s.PlainDate.from(e);
23
+ } catch {
24
+ return m.fromString(e).date;
25
+ }
26
+ }, t = d(
27
+ () => a(r.control.data)
28
+ ), n = (e) => {
29
+ r.changeValue((e == null ? void 0 : e.toString()) ?? "");
30
+ };
31
+ return (e, b) => (i(), u(p(c), {
32
+ id: o.labelForId,
33
+ ariaLabel: r.control.label,
34
+ "model-value": t.value,
35
+ disabled: o.disabled,
36
+ error: o.error,
37
+ "sub-text": o.subText,
38
+ "onUpdate:modelValue": n
39
+ }, null, 8, ["id", "ariaLabel", "model-value", "disabled", "error", "sub-text"]));
40
+ }
41
+ });
42
+ export {
43
+ x as default
44
+ };
@@ -0,0 +1,89 @@
1
+ import { defineComponent as V, computed as l, createElementBlock as C, openBlock as m, normalizeClass as D, createVNode as T, createBlock as U, createCommentVNode as B, unref as a } from "vue";
2
+ import { E as F, y as k, w } from "./TextControl-8jfyOJKb-BkT4AwNP.js";
3
+ import { G as L } from "./usePlainDateTimeBatch-Bd2G-GY9-DO2Zu0Mj.js";
4
+ import { u as i } from "./plainDateTimeUtils-CR0UhpkD-DU-LM4_V.js";
5
+ import { D as _ } from "./classApi-CHpAZrj3-BptMrhKH.js";
6
+ const E = /* @__PURE__ */ V({
7
+ __name: "DateTimeControl",
8
+ props: {
9
+ control: {},
10
+ handleChange: { type: Function },
11
+ changeValue: { type: Function },
12
+ disabled: { type: Boolean },
13
+ error: { type: Boolean },
14
+ subText: {},
15
+ onRegisterValidation: { type: Function },
16
+ labelForId: {}
17
+ },
18
+ setup(r) {
19
+ const t = r, o = l(() => t.control.uischema.options), n = l(() => {
20
+ var e;
21
+ return ((e = o.value) == null ? void 0 : e.showTime) ?? !0;
22
+ }), s = l(
23
+ () => i.getMaxGranularity(o.value)
24
+ ), u = (e) => {
25
+ if (typeof e != "string" || e === "")
26
+ return null;
27
+ try {
28
+ return _.PlainDate.from(e);
29
+ } catch {
30
+ return i.fromString(e).date;
31
+ }
32
+ }, c = l(
33
+ () => {
34
+ var e;
35
+ return u((e = o.value) == null ? void 0 : e.minimum);
36
+ }
37
+ ), p = l(
38
+ () => {
39
+ var e;
40
+ return u((e = o.value) == null ? void 0 : e.maximum);
41
+ }
42
+ ), {
43
+ datePart: g,
44
+ timePart: y,
45
+ granularity: b,
46
+ onDateChange: v,
47
+ onTimeChange: f,
48
+ onGranularityChange: h
49
+ } = L({
50
+ getDateTime: () => t.control.data,
51
+ commit: (e, d, x) => {
52
+ if (!n.value) {
53
+ t.changeValue(e === null ? "" : e.toString());
54
+ return;
55
+ }
56
+ t.changeValue(i.toString(e, d, x));
57
+ }
58
+ });
59
+ return (e, d) => (m(), C("div", {
60
+ class: D(["date-time-row", { "date-only": !n.value }])
61
+ }, [
62
+ T(a(k), {
63
+ id: r.labelForId,
64
+ ariaLabel: `${t.control.label} date`,
65
+ "model-value": a(g),
66
+ disabled: r.disabled,
67
+ error: r.error,
68
+ "sub-text": r.subText,
69
+ "min-date": c.value,
70
+ "max-date": p.value,
71
+ "onUpdate:modelValue": a(v)
72
+ }, null, 8, ["id", "ariaLabel", "model-value", "disabled", "error", "sub-text", "min-date", "max-date", "onUpdate:modelValue"]),
73
+ n.value ? (m(), U(a(w), {
74
+ key: 0,
75
+ ariaLabel: `${t.control.label} time`,
76
+ "model-value": a(y),
77
+ granularity: a(b),
78
+ "max-granularity": s.value,
79
+ disabled: r.disabled,
80
+ error: r.error,
81
+ "onUpdate:modelValue": a(f),
82
+ "onUpdate:granularity": a(h)
83
+ }, null, 8, ["ariaLabel", "model-value", "granularity", "max-granularity", "disabled", "error", "onUpdate:modelValue", "onUpdate:granularity"])) : B("", !0)
84
+ ], 2));
85
+ }
86
+ }), N = /* @__PURE__ */ F(E, [["__scopeId", "data-v-e52553e7"]]);
87
+ export {
88
+ N as default
89
+ };
@@ -0,0 +1,37 @@
1
+ import { defineComponent as s, computed as o, createBlock as i, openBlock as m, unref as r } from "vue";
2
+ import { a as c, c as p } from "./TextControl-8jfyOJKb-BkT4AwNP.js";
3
+ const h = /* @__PURE__ */ s({
4
+ __name: "DateTimeFormatPickerControl",
5
+ props: {
6
+ control: {},
7
+ handleChange: { type: Function },
8
+ changeValue: { type: Function },
9
+ disabled: { type: Boolean },
10
+ error: { type: Boolean },
11
+ subText: {},
12
+ onRegisterValidation: { type: Function },
13
+ labelForId: {}
14
+ },
15
+ setup(e) {
16
+ const l = e, t = o(
17
+ () => l.control.uischema
18
+ ), n = o(() => t.value.options), d = o(() => {
19
+ var a;
20
+ return (a = n.value) == null ? void 0 : a.allowedFormats;
21
+ }), u = c(t, "dateTimeFormats", []);
22
+ return (a, b) => (m(), i(r(p), {
23
+ id: e.labelForId,
24
+ ariaLabel: e.control.label,
25
+ "model-value": l.control.data,
26
+ disabled: e.disabled,
27
+ "allowed-formats": d.value,
28
+ "all-default-formats": r(u) ?? [],
29
+ error: e.error,
30
+ "sub-text": e.subText,
31
+ "onUpdate:modelValue": e.changeValue
32
+ }, null, 8, ["id", "ariaLabel", "model-value", "disabled", "allowed-formats", "all-default-formats", "error", "sub-text", "onUpdate:modelValue"]));
33
+ }
34
+ });
35
+ export {
36
+ h as default
37
+ };