@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
@@ -0,0 +1,598 @@
1
+ import { defineComponent as M, computed as T, createElementBlock as f, openBlock as c, createVNode as k, unref as g, resolveComponent as X, createBlock as A, normalizeClass as I, withCtx as Z, renderSlot as j, normalizeProps as Y, guardReactiveProps as ee, mergeModels as ae, useModel as te, ref as w, createElementVNode as v, createCommentVNode as F, withDirectives as le, vModelText as oe, normalizeStyle as ne, Fragment as R, renderList as K, toDisplayString as B, useCssVars as se, watch as S, reactive as re, onMounted as ie, nextTick as H, onUnmounted as de, h as ue } from "vue";
2
+ import { P as z, t as me, z as ce, o as pe } from "./TextControl-52n-sttB-DssWw4KP.js";
3
+ import { a as ve, t as fe, n as ye, r as he, i as be, o as Te, e as ge } from "./useDropdownNavigation-CdrbT-CQ-Dxb_y1Fq.js";
4
+ const we = {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ fill: "none",
7
+ stroke: "#000",
8
+ "stroke-linejoin": "round",
9
+ viewBox: "0 0 32 32"
10
+ };
11
+ function Ee(e, o) {
12
+ return c(), f("svg", we, [...o[0] || (o[0] = [
13
+ v("path", { d: "m11.9 22.3 2.7 4.4-4.5 2.8m4.5-2.8C9 26 4.7 21.7 4.7 16c0-5.1 3.4-9.4 8.1-10.8M20 9.7l-2.6-4.4 4.5-2.8m-4.5 2.8c5.6.7 9.9 5 9.9 10.7 0 5.1-3.4 9.4-8.1 10.8" }, null, -1)
14
+ ])]);
15
+ }
16
+ const Ve = { render: Ee }, xe = (e, o) => ({
17
+ render() {
18
+ const s = e.render({}, []), d = ue("title", o);
19
+ return d.ns = "svg", s.children.unshift(d), s;
20
+ }
21
+ }), _e = /* @__PURE__ */ M({
22
+ __name: "LoadingIcon",
23
+ setup(e) {
24
+ const o = xe(Ve, "Loading…");
25
+ return (s, d) => (c(), A(g(o)));
26
+ }
27
+ }), ke = /* @__PURE__ */ z(_e, [["__scopeId", "data-v-6b552b81"]]), Me = {
28
+ xmlns: "http://www.w3.org/2000/svg",
29
+ fill: "none",
30
+ "stroke-linejoin": "round",
31
+ viewBox: "0 0 32 32"
32
+ };
33
+ function ze(e, o) {
34
+ return c(), f("svg", Me, [...o[0] || (o[0] = [
35
+ v("path", {
36
+ fill: "#000",
37
+ d: "M2 3.842v-.5a.5.5 0 0 0-.5.5zm22.611 0h.5a.5.5 0 0 0-.5-.5zm-.5 7.48a.5.5 0 1 0 1 0zM2 21.43h-.5a.5.5 0 0 0 .5.5zm10.298.5a.5.5 0 1 0 0-1zm5.283 8.222h-.5a.5.5 0 0 0 .765.424zm3.278-2.046.265.424a.5.5 0 0 0 .235-.424zm0-5.87-.366-.34a.5.5 0 0 0-.134.34zM27.613 15l.366.341a.5.5 0 0 0-.366-.841zm-10.032 7.235h.5a.5.5 0 0 0-.128-.334zM11.063 15v-.5a.5.5 0 0 0-.372.835zm-.69-9.483V2h-1v3.517zM16.155 2v3.517h1V2zM2 4.342h22.611v-1H2zm22.111-.5v7.48h1v-7.48zM2.5 21.43V3.842h-1V21.43zM2 8.362h22.611v-1H2zM12.298 20.93h-6.81v1h6.81zm-6.81 0H2v1h3.488zm12.358 9.646 3.278-2.046-.53-.849-3.278 2.047zm3.513-2.47v-5.87h-1v5.87zm-.135-5.528 6.755-7.236-.731-.682-6.755 7.235zm-4.143-.342v7.916h1v-7.916zm.872-.334-6.519-7.236-.743.67 6.519 7.235zm-6.89-6.401h16.55v-1h-16.55z"
38
+ }, null, -1)
39
+ ])]);
40
+ }
41
+ const Ie = { render: ze }, De = M({
42
+ name: "BaseRadioButtons",
43
+ props: {
44
+ id: {
45
+ type: String,
46
+ default: null
47
+ },
48
+ modelValue: {
49
+ type: String,
50
+ default: null
51
+ },
52
+ name: {
53
+ type: String,
54
+ default() {
55
+ return `RadioButtons-${pe()}`;
56
+ }
57
+ },
58
+ disabled: {
59
+ default: !1,
60
+ type: Boolean
61
+ },
62
+ possibleValues: {
63
+ type: Array,
64
+ default: () => [],
65
+ validator(e) {
66
+ return Array.isArray(e) ? e.every(
67
+ (o) => o.hasOwnProperty("id") && o.hasOwnProperty("text")
68
+ ) : !1;
69
+ }
70
+ }
71
+ },
72
+ emits: ["update:modelValue"],
73
+ methods: {
74
+ onInput(e) {
75
+ const o = e.target.value;
76
+ this.$emit("update:modelValue", o);
77
+ }
78
+ }
79
+ }), Ae = ["id"], Fe = ["checked", "value", "name", "disabled"], Be = ["title"];
80
+ function Ce(e, o, s, d, E, V) {
81
+ return c(), f("div", {
82
+ id: e.id,
83
+ role: "radiogroup"
84
+ }, [
85
+ (c(!0), f(R, null, K(e.possibleValues, (n) => (c(), f("label", {
86
+ key: `radio-${n.id}`,
87
+ class: I({ disabled: e.disabled || n.disabled })
88
+ }, [
89
+ v("input", {
90
+ ref_for: !0,
91
+ ref: "input",
92
+ checked: e.modelValue === n.id,
93
+ value: n.id,
94
+ name: e.name,
95
+ disabled: e.disabled || n.disabled,
96
+ type: "radio",
97
+ onChange: o[0] || (o[0] = (...u) => e.onInput && e.onInput(...u))
98
+ }, null, 40, Fe),
99
+ v("span", {
100
+ title: n.text
101
+ }, B(n.text), 9, Be),
102
+ j(e.$slots, "default", { item: n }, void 0, !0),
103
+ n.subtext ? (c(), f(R, { key: 0 }, [
104
+ o[1] || (o[1] = v("br", null, null, -1)),
105
+ v("span", null, B(n.subtext), 1)
106
+ ], 64)) : F("", !0)
107
+ ], 2))), 128))
108
+ ], 8, Ae);
109
+ }
110
+ const Se = /* @__PURE__ */ z(De, [["render", Ce], ["__scopeId", "data-v-2bbebb4b"]]), Re = M({
111
+ name: "ValueSwitch",
112
+ components: {
113
+ BaseRadioButtons: Se
114
+ },
115
+ props: {
116
+ id: {
117
+ type: String,
118
+ default: null
119
+ },
120
+ modelValue: {
121
+ type: String,
122
+ default: null
123
+ },
124
+ name: {
125
+ type: String,
126
+ default: null
127
+ },
128
+ disabled: {
129
+ default: !1,
130
+ type: Boolean
131
+ },
132
+ possibleValues: {
133
+ type: Array,
134
+ default: () => []
135
+ },
136
+ compact: {
137
+ type: Boolean,
138
+ default: !1
139
+ }
140
+ },
141
+ emits: ["update:modelValue"]
142
+ });
143
+ function Ne(e, o, s, d, E, V) {
144
+ const n = X("BaseRadioButtons");
145
+ return c(), A(n, {
146
+ id: e.id,
147
+ ref: "radioButton",
148
+ "possible-values": e.possibleValues,
149
+ "model-value": e.modelValue,
150
+ name: e.name,
151
+ disabled: e.disabled,
152
+ class: I(["value-switch", {
153
+ disabled: e.disabled,
154
+ compact: e.compact,
155
+ normal: !e.compact
156
+ }]),
157
+ "onUpdate:modelValue": o[0] || (o[0] = (u) => e.$emit("update:modelValue", u))
158
+ }, {
159
+ default: Z((u) => [
160
+ j(e.$slots, "default", Y(ee(u)), void 0, !0)
161
+ ]),
162
+ _: 3
163
+ }, 8, ["id", "possible-values", "model-value", "name", "disabled", "class"]);
164
+ }
165
+ const N = /* @__PURE__ */ z(Re, [["render", Ne], ["__scopeId", "data-v-83231815"]]), Pe = { class: "popover" }, Oe = { class: "formats-container-border-host" }, Ue = {
166
+ key: 0,
167
+ class: "no-formats-available"
168
+ }, $e = {
169
+ key: 1,
170
+ class: "no-formats-available"
171
+ }, He = ["onClick"], Le = { class: "format-pattern" }, Ze = { class: "format-preview" }, L = 1, je = /* @__PURE__ */ M({
172
+ __name: "DateTimeFormatPickerPopover",
173
+ props: {
174
+ allFormats: {},
175
+ selectedType: {},
176
+ initialSelectedPattern: {},
177
+ showTypeSwitch: { type: Boolean }
178
+ },
179
+ emits: ["commit", "cancel"],
180
+ setup(e, { emit: o }) {
181
+ se((a) => ({
182
+ v3b9e5e3a: L
183
+ }));
184
+ const s = o, d = e, E = T(() => [
185
+ {
186
+ id: "RECENT",
187
+ text: "Recent"
188
+ },
189
+ {
190
+ id: "STANDARD",
191
+ text: "ISO"
192
+ },
193
+ {
194
+ id: "EUROPEAN",
195
+ text: "European"
196
+ },
197
+ {
198
+ id: "AMERICAN",
199
+ text: "United States"
200
+ }
201
+ ]), V = T(() => [
202
+ {
203
+ id: "DATE",
204
+ text: "Date"
205
+ },
206
+ {
207
+ id: "DATE_TIME",
208
+ text: "Date & time"
209
+ },
210
+ {
211
+ id: "TIME",
212
+ text: "Time"
213
+ },
214
+ {
215
+ id: "ZONED_DATE_TIME",
216
+ text: "Zoned date & time"
217
+ }
218
+ ]), n = w(null), u = w(null), i = w("RECENT"), m = w(d.selectedType);
219
+ S(
220
+ () => d.selectedType,
221
+ (a) => {
222
+ u.value = a;
223
+ }
224
+ );
225
+ const r = T(
226
+ () => {
227
+ var a;
228
+ return ((a = d.allFormats) == null ? void 0 : a.filter(
229
+ (t) => t.category === i.value && t.temporalType === m.value
230
+ )) ?? null;
231
+ }
232
+ ), h = w(null), b = re({}), x = (a) => `${a.format}-${a.category}-${a.temporalType}`, q = (a) => (t) => {
233
+ b[x(a)] = t;
234
+ }, _ = (a) => ({
235
+ format: a.format,
236
+ temporalType: a.temporalType
237
+ }), {
238
+ currentIndex: P,
239
+ onKeydown: O,
240
+ resetNavigation: G,
241
+ setElement: J
242
+ } = Te({
243
+ keepOpenedOnTab: !0,
244
+ getFirstElement: () => ({
245
+ index: 0,
246
+ onClick: () => s(
247
+ "commit",
248
+ _(r.value[0])
249
+ )
250
+ }),
251
+ getLastElement: () => {
252
+ const a = r.value.length - 1;
253
+ return {
254
+ index: a,
255
+ onClick: () => s(
256
+ "commit",
257
+ _(r.value[a])
258
+ )
259
+ };
260
+ },
261
+ getNextElement: (a, t) => {
262
+ if (a = a === null || a === -1 ? null : a, t === 1) {
263
+ const l = ((a ?? -1) + 1) % r.value.length;
264
+ return {
265
+ index: l,
266
+ onClick: () => s(
267
+ "commit",
268
+ _(r.value[l])
269
+ )
270
+ };
271
+ } else {
272
+ const l = ((a ?? 0) - 1 + r.value.length) % r.value.length;
273
+ return {
274
+ index: l,
275
+ onClick: () => s(
276
+ "commit",
277
+ _(r.value[l])
278
+ )
279
+ };
280
+ }
281
+ },
282
+ close: () => {
283
+ s("cancel");
284
+ }
285
+ }), W = (a) => {
286
+ const t = a.parentElement;
287
+ if (t && t.scrollHeight > t.clientHeight) {
288
+ const l = t.offsetTop + L, p = t.clientHeight + t.scrollTop, y = a.offsetTop + a.offsetHeight - l;
289
+ y > p ? t.scrollTop = y - t.clientHeight : a.offsetTop - t.scrollTop < l && (t.scrollTop = a.offsetTop - l);
290
+ }
291
+ }, U = (a) => {
292
+ const t = b[`${a}-${i.value}-${m.value}`];
293
+ t && W(t);
294
+ }, $ = async (a, t, l) => {
295
+ m.value = t ?? m.value, i.value = l ?? i.value, await H(), u.value = a, U(a);
296
+ const p = r.value.findIndex(
297
+ (y) => y.format === a
298
+ );
299
+ J({
300
+ index: p,
301
+ onClick: () => s(
302
+ "commit",
303
+ _(r.value[p])
304
+ )
305
+ });
306
+ };
307
+ S(P, (a) => {
308
+ var l, p;
309
+ if (a === null)
310
+ return;
311
+ const t = (p = (l = r.value) == null ? void 0 : l[a]) == null ? void 0 : p.format;
312
+ t && U(t);
313
+ }), S([m, i], () => {
314
+ var a, t;
315
+ m.value === ((a = n.value) == null ? void 0 : a.temporalType) && i.value === ((t = n.value) == null ? void 0 : t.category) ? $(
316
+ n.value.format,
317
+ n.value.temporalType,
318
+ n.value.category
319
+ ) : (u.value = null, G());
320
+ });
321
+ const D = w(!1);
322
+ return ie(async () => {
323
+ if (!d.allFormats)
324
+ return;
325
+ const a = [
326
+ "RECENT",
327
+ "STANDARD",
328
+ "EUROPEAN",
329
+ "AMERICAN"
330
+ ], t = d.allFormats.filter((l) => d.initialSelectedPattern === l.format).filter(
331
+ (l) => (
332
+ // if the type switch is hidden, filter to only formats with the same type
333
+ d.selectedType === l.temporalType || d.showTypeSwitch
334
+ )
335
+ ).sort((l, p) => {
336
+ const y = a.indexOf(l.category), C = a.indexOf(p.category);
337
+ return y - C;
338
+ });
339
+ if (t.length > 0) {
340
+ const l = t[0].format, p = t[0].temporalType, y = t[0].category;
341
+ await $(l, p, y);
342
+ const C = r.value.findIndex(
343
+ (Q) => Q.format === l
344
+ );
345
+ n.value = {
346
+ format: l,
347
+ index: C,
348
+ category: y,
349
+ temporalType: p
350
+ };
351
+ }
352
+ H(() => D.value = !0);
353
+ }), de(() => D.value = !1), (a, t) => (c(), A(g(ge), {
354
+ active: D.value,
355
+ "onUpdate:active": t[3] || (t[3] = (l) => D.value = l),
356
+ "initial-focus": () => h.value ?? !1
357
+ }, {
358
+ default: Z(() => [
359
+ v("div", Pe, [
360
+ e.showTypeSwitch ? (c(), A(N, {
361
+ key: 0,
362
+ id: "selectedFormatType",
363
+ ref: "typeSwitchRef",
364
+ modelValue: m.value,
365
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => m.value = l),
366
+ compact: "",
367
+ "possible-values": V.value,
368
+ class: "filter-switch"
369
+ }, null, 8, ["modelValue", "possible-values"])) : F("", !0),
370
+ k(N, {
371
+ id: "selectedFormatStandard",
372
+ ref: "standardSwitchRef",
373
+ modelValue: i.value,
374
+ "onUpdate:modelValue": t[1] || (t[1] = (l) => i.value = l),
375
+ compact: "",
376
+ "possible-values": E.value,
377
+ class: "filter-switch"
378
+ }, null, 8, ["modelValue", "possible-values"]),
379
+ v("div", Oe, [
380
+ v("div", {
381
+ id: "dateFormats",
382
+ ref_key: "formatContainerRef",
383
+ ref: h,
384
+ class: "formats-container",
385
+ tabindex: "0",
386
+ role: "menu",
387
+ onKeydown: t[2] || (t[2] = //@ts-ignore
388
+ (...l) => g(O) && g(O)(...l))
389
+ }, [
390
+ r.value === null ? (c(), f("div", Ue, [
391
+ k(ke, { class: "loading-spinner" })
392
+ ])) : r.value.length === 0 ? (c(), f("div", $e, " No formats available ")) : (c(!0), f(R, { key: 2 }, K(r.value, (l, p) => {
393
+ var y;
394
+ return c(), f("div", {
395
+ key: x(l),
396
+ ref_for: !0,
397
+ ref: q(l),
398
+ class: I([{
399
+ highlighted: p === g(P),
400
+ applied: p === ((y = n.value) == null ? void 0 : y.index) && l.category === n.value.category && l.temporalType === n.value.temporalType
401
+ }, "single-format"]),
402
+ role: "menuitem",
403
+ onClick: () => s("commit", _(l))
404
+ }, [
405
+ v("span", Le, B(l.format), 1),
406
+ v("span", Ze, B(l.example), 1)
407
+ ], 10, He);
408
+ }), 128))
409
+ ], 544)
410
+ ])
411
+ ])
412
+ ]),
413
+ _: 1
414
+ }, 8, ["active", "initial-focus"]));
415
+ }
416
+ }), Ke = /* @__PURE__ */ z(je, [["__scopeId", "data-v-8bb40d8b"]]), qe = { class: "input-fields" }, Ge = ["disabled"], Je = {
417
+ key: 0,
418
+ class: "invalid-marker"
419
+ }, We = ["disabled"], Qe = {}, Xe = /* @__PURE__ */ M({
420
+ ...Qe,
421
+ __name: "DateTimeFormatInput",
422
+ props: /* @__PURE__ */ ae({
423
+ disabled: { type: Boolean, default: !1 },
424
+ compact: { type: Boolean, default: !1 },
425
+ isValid: { type: Boolean, default: !0 },
426
+ allDefaultFormats: {},
427
+ allowedTypes: { default: () => [
428
+ "DATE",
429
+ "TIME",
430
+ "DATE_TIME",
431
+ "ZONED_DATE_TIME"
432
+ ] },
433
+ showTypeSwitchInPopover: { type: Boolean, default: !0 }
434
+ }, {
435
+ modelValue: {
436
+ default: {
437
+ format: "yyyy-MM-dd",
438
+ temporalType: "DATE"
439
+ }
440
+ },
441
+ modelModifiers: {}
442
+ }),
443
+ emits: ["update:modelValue"],
444
+ setup(e) {
445
+ const o = e, s = te(e, "modelValue"), d = T({
446
+ get: () => s.value.format,
447
+ set: (h) => {
448
+ s.value = {
449
+ ...s.value,
450
+ format: h
451
+ };
452
+ }
453
+ }), E = "Format like 'yyyy-MM-dd'", V = T(() => o.isValid), n = w(null), u = w(null), i = w(!1), m = (h) => {
454
+ s.value = h, i.value = !1;
455
+ };
456
+ ce(u, () => i.value = !1, {
457
+ ignore: [n]
458
+ });
459
+ const { floatingStyles: r } = ve(
460
+ n,
461
+ u,
462
+ {
463
+ middleware: [
464
+ ye({
465
+ mainAxis: 2,
466
+ crossAxis: 0
467
+ }),
468
+ he(),
469
+ be({
470
+ mainAxis: !0,
471
+ crossAxis: !1
472
+ })
473
+ ],
474
+ placement: "top-end",
475
+ whileElementsMounted: fe
476
+ }
477
+ );
478
+ return (h, b) => (c(), f("div", null, [
479
+ v("div", {
480
+ class: I(["wrapper", { disabled: e.disabled, compact: e.compact }])
481
+ }, [
482
+ v("span", qe, [
483
+ le(v("input", {
484
+ "onUpdate:modelValue": b[0] || (b[0] = (x) => d.value = x),
485
+ type: "text",
486
+ disabled: e.disabled,
487
+ placeholder: E,
488
+ spellcheck: "false",
489
+ onFocus: b[1] || (b[1] = (x) => i.value = !1)
490
+ }, null, 40, Ge), [
491
+ [oe, d.value]
492
+ ]),
493
+ V.value ? F("", !0) : (c(), f("span", Je)),
494
+ v("button", {
495
+ ref_key: "togglePopoverButtonRef",
496
+ ref: n,
497
+ class: I(["trigger-popover-button", { active: i.value }]),
498
+ disabled: e.disabled,
499
+ onClick: b[2] || (b[2] = (x) => i.value = !i.value)
500
+ }, [
501
+ k(g(Ie))
502
+ ], 10, We)
503
+ ])
504
+ ], 2),
505
+ i.value ? (c(), f("div", {
506
+ key: 0,
507
+ ref_key: "floatingPopoverRef",
508
+ ref: u,
509
+ class: "popover",
510
+ style: ne(g(r))
511
+ }, [
512
+ k(Ke, {
513
+ "all-formats": e.allDefaultFormats,
514
+ "initial-selected-pattern": s.value.format,
515
+ "selected-type": s.value.temporalType,
516
+ "show-type-switch": e.showTypeSwitchInPopover,
517
+ onCommit: m,
518
+ onCancel: b[3] || (b[3] = (x) => i.value = !1)
519
+ }, null, 8, ["all-formats", "initial-selected-pattern", "selected-type", "show-type-switch"])
520
+ ], 4)) : F("", !0)
521
+ ]));
522
+ }
523
+ }), Ye = /* @__PURE__ */ z(Xe, [["__scopeId", "data-v-1577d5ce"]]), ea = ["id"], aa = /* @__PURE__ */ M({
524
+ __name: "DateTimeFormatPickerWithTypeControl",
525
+ props: {
526
+ control: {},
527
+ handleChange: { type: Function },
528
+ changeValue: { type: Function },
529
+ disabled: { type: Boolean },
530
+ error: { type: Boolean },
531
+ subText: {},
532
+ onRegisterValidation: { type: Function },
533
+ labelForId: {}
534
+ },
535
+ setup(e) {
536
+ const o = e, s = T(
537
+ () => o.control.uischema
538
+ ), d = T(() => s.value.options), E = T(() => {
539
+ var m;
540
+ return (m = d.value) == null ? void 0 : m.allowedFormats;
541
+ }), V = me(s, "dateTimeFormats"), n = [
542
+ {
543
+ id: "DATE",
544
+ text: "Date"
545
+ },
546
+ {
547
+ id: "DATE_TIME",
548
+ text: "Date & time"
549
+ },
550
+ {
551
+ id: "TIME",
552
+ text: "Time"
553
+ },
554
+ {
555
+ id: "ZONED_DATE_TIME",
556
+ text: "Zoned date & time"
557
+ }
558
+ ], u = T({
559
+ get: () => o.control.data,
560
+ set: (m) => {
561
+ o.changeValue(m);
562
+ }
563
+ }), i = T({
564
+ get: () => u.value.temporalType,
565
+ set: (m) => {
566
+ u.value = {
567
+ ...u.value,
568
+ temporalType: m
569
+ };
570
+ }
571
+ });
572
+ return (m, r) => (c(), f("div", {
573
+ id: e.labelForId,
574
+ class: "control-container"
575
+ }, [
576
+ k(g(N), {
577
+ modelValue: i.value,
578
+ "onUpdate:modelValue": r[0] || (r[0] = (h) => i.value = h),
579
+ compact: "",
580
+ "possible-values": n,
581
+ disabled: e.disabled
582
+ }, null, 8, ["modelValue", "disabled"]),
583
+ k(g(Ye), {
584
+ modelValue: u.value,
585
+ "onUpdate:modelValue": r[1] || (r[1] = (h) => u.value = h),
586
+ compact: "",
587
+ disabled: e.disabled,
588
+ "show-type-switch-in-popover": !1,
589
+ "allowed-formats": E.value,
590
+ "all-default-formats": g(V),
591
+ "is-valid": !0
592
+ }, null, 8, ["modelValue", "disabled", "allowed-formats", "all-default-formats"])
593
+ ], 8, ea));
594
+ }
595
+ }), na = /* @__PURE__ */ z(aa, [["__scopeId", "data-v-8517cafd"]]);
596
+ export {
597
+ na as default
598
+ };
@@ -1,8 +1,8 @@
1
1
  import { inject as he, ref as p, provide as ye, defineComponent as z, useTemplateRef as V, createBlock as C, openBlock as F, unref as i, withCtx as x, createElementVNode as O, createVNode as E, createCommentVNode as A, renderSlot as j, watch as D, createElementBlock as _, onMounted as be, computed as y, toRefs as Ie, toRef as Oe, Fragment as Re, toDisplayString as Ee, resolveDynamicComponent as _e } from "vue";
2
- import { _ as ge, aB as S, aP as Le } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
2
+ import { _ as ge, I as S, av as Le } from "./TextControl-52n-sttB-DssWw4KP.js";
3
3
  import { _ as te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import { LoadingIcon as Te, Breadcrumb as xe, InputField as ke, FileExplorer as we, Label as Be } from "@knime/components";
5
- import { b as De } from "./useFileChooserBackend-Bs7hx7xH.js";
5
+ import { b as De } from "./useFileChooserBackend-CLdJ1RU1.js";
6
6
  const N = {}, H = (l) => {
7
7
  if (!(l in N)) {
8
8
  const o = Symbol(l);
@@ -1,6 +1,6 @@
1
- import { defineComponent as r, computed as l, watch as c } from "vue";
2
- import { d, ab as p, ac as m } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
3
- const f = /* @__PURE__ */ r({
1
+ import { defineComponent as s, computed as l, watch as c } from "vue";
2
+ import { t as p, n as u, q as m } from "./TextControl-52n-sttB-DssWw4KP.js";
3
+ const f = /* @__PURE__ */ s({
4
4
  __name: "DirtyTrackerRenderer",
5
5
  props: {
6
6
  control: {},
@@ -8,23 +8,23 @@ const f = /* @__PURE__ */ r({
8
8
  changeValue: { type: Function },
9
9
  disabled: { type: Boolean },
10
10
  labelForId: {},
11
- isValid: { type: Boolean },
12
- messages: {},
11
+ error: { type: Boolean },
12
+ subText: {},
13
13
  onRegisterValidation: { type: Function }
14
14
  },
15
- setup(o) {
16
- const t = o, n = l(
15
+ setup(a) {
16
+ const t = a, n = l(
17
17
  () => t.control.uischema
18
- ), a = d(n, "makeDirty", !1), { registerNonControlState: i } = p(), s = i(m(t.control.path))({
18
+ ), o = p(n, "makeDirty", !1), { registerNonControlState: r } = u(), i = r(m(t.control.path))({
19
19
  initialValue: !1,
20
20
  valueComparator: {
21
21
  isModified: (e) => e,
22
22
  setSettings: () => {
23
- a.value = !1;
23
+ o.value = !1;
24
24
  }
25
25
  }
26
26
  });
27
- return c(a, (e) => s.setValue(e), { immediate: !0 }), () => {
27
+ return c(o, (e) => i.setValue(e), { immediate: !0 }), () => {
28
28
  };
29
29
  }
30
30
  });
@@ -0,0 +1,32 @@
1
+ import { defineComponent as a, toRef as t, createBlock as r, openBlock as n, unref as d } from "vue";
2
+ import { t as s } from "./usePossibleValues-DiYOmnZW-CaSLjdK-.js";
3
+ import { L as i } from "./LoadingDropdown.vue_vue_type_script_setup_true_lang-CscatDmg-BaroyBA0.js";
4
+ const f = /* @__PURE__ */ a({
5
+ __name: "DropdownControl",
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 } = s(t(o, "control"));
18
+ return (p, u) => (n(), r(i, {
19
+ id: e.labelForId ?? "",
20
+ ariaLabel: e.control.label,
21
+ disabled: e.disabled,
22
+ "model-value": e.control.data ?? "",
23
+ "possible-values": d(l),
24
+ error: e.error,
25
+ "sub-text": e.subText,
26
+ "onUpdate:modelValue": e.changeValue
27
+ }, null, 8, ["id", "ariaLabel", "disabled", "model-value", "possible-values", "error", "sub-text", "onUpdate:modelValue"]));
28
+ }
29
+ });
30
+ export {
31
+ f as default
32
+ };
@@ -0,0 +1,6 @@
1
+ import { i as o } from "./TextControl-52n-sttB-DssWw4KP.js";
2
+ import { D as m } from "./TextControl-52n-sttB-DssWw4KP.js";
3
+ export {
4
+ m as DYNAMIC_SETTINGS_KEY,
5
+ o as default
6
+ };