@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,56 +0,0 @@
1
- import { defineComponent as w, computed as l, createBlock as V, openBlock as f, unref as b } from "vue";
2
- import { K as n, Z as x, z as F } from "./localTimeUtils-DBMwKtLh-CTshgG3l.js";
3
- const B = /* @__PURE__ */ w({
4
- __name: "DateTimeControl",
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(a) {
15
- const i = a, o = l(() => i.control.uischema.options), c = l(
16
- () => {
17
- var e;
18
- return (e = o.value) != null && e.minimum ? n(o.value.minimum) : null;
19
- }
20
- ), p = l(
21
- () => {
22
- var e;
23
- return (e = o.value) != null && e.maximum ? n(o.value.maximum) : null;
24
- }
25
- ), v = l(() => {
26
- var e;
27
- return ((e = o.value) == null ? void 0 : e.twoLines) ?? !0;
28
- }), t = l({
29
- get: () => n(i.control.data),
30
- set: (e) => i.changeValue(x(e))
31
- });
32
- return (e, s) => {
33
- var u, d, m, r;
34
- return f(), V(b(F), {
35
- id: a.labelForId,
36
- modelValue: t.value,
37
- "onUpdate:modelValue": s[0] || (s[0] = (h) => t.value = h),
38
- "two-lines": v.value,
39
- required: !0,
40
- "show-time": (u = o.value) == null ? void 0 : u.showTime,
41
- "show-seconds": (d = o.value) == null ? void 0 : d.showSeconds,
42
- "show-milliseconds": (m = o.value) == null ? void 0 : m.showMilliseconds,
43
- timezone: "UTC",
44
- "date-format": (r = o.value) == null ? void 0 : r.dateFormat,
45
- min: c.value,
46
- max: p.value,
47
- "is-valid": a.isValid,
48
- compact: "",
49
- disabled: a.disabled
50
- }, null, 8, ["id", "modelValue", "two-lines", "show-time", "show-seconds", "show-milliseconds", "date-format", "min", "max", "is-valid", "disabled"]);
51
- };
52
- }
53
- });
54
- export {
55
- B as default
56
- };
@@ -1,35 +0,0 @@
1
- import { defineComponent as s, computed as o, createBlock as m, openBlock as u, unref as d } from "vue";
2
- import { d as c, V as p } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
3
- const F = /* @__PURE__ */ s({
4
- __name: "DateTimeFormatPickerControl",
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(a) {
15
- const l = a, t = o(
16
- () => l.control.uischema
17
- ), r = o(() => t.value.options), n = o(() => {
18
- var e;
19
- return (e = r.value) == null ? void 0 : e.allowedFormats;
20
- }), i = c(t, "dateTimeFormats", []);
21
- return (e, f) => (u(), m(d(p), {
22
- id: a.labelForId,
23
- ariaLabel: a.control.label,
24
- "model-value": l.control.data,
25
- disabled: a.disabled,
26
- "allowed-formats": n.value,
27
- "all-default-formats": d(i) ?? [],
28
- error: !a.isValid,
29
- "onUpdate:modelValue": a.changeValue
30
- }, null, 8, ["id", "ariaLabel", "model-value", "disabled", "allowed-formats", "all-default-formats", "error", "onUpdate:modelValue"]));
31
- }
32
- });
33
- export {
34
- F as default
35
- };
@@ -1,475 +0,0 @@
1
- import { defineComponent as z, computed as T, createElementBlock as g, openBlock as p, createVNode as k, unref as w, mergeModels as Y, useModel as Q, ref as E, createElementVNode as h, createCommentVNode as C, normalizeClass as F, withDirectives as q, vModelText as G, normalizeStyle as J, useCssVars as X, watch as A, reactive as ee, createBlock as N, onMounted as te, nextTick as O, onUnmounted as ae, withCtx as le, Fragment as oe, renderList as ne, toDisplayString as U, h as se } from "vue";
2
- import { Y as I, d as ie, w as re } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
3
- import { O as S } from "./ValueSwitch-BXaDBm2C-Ba93O_aZ.js";
4
- import { z as de, _ as ue, $ as ce, H as me, I as pe } from "./floating-ui.vue-Fx4CxKut-DAsMxBCU.js";
5
- import { i as ve, n as fe } from "./useDropdownNavigation-2Yhk7zes-75raAHpT.js";
6
- const ye = {
7
- xmlns: "http://www.w3.org/2000/svg",
8
- fill: "none",
9
- stroke: "#000",
10
- "stroke-linejoin": "round",
11
- viewBox: "0 0 32 32"
12
- };
13
- function he(o, r) {
14
- return p(), g("svg", ye, [...r[0] || (r[0] = [
15
- h("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)
16
- ])]);
17
- }
18
- const Te = { render: he }, ge = (o, r) => ({
19
- render() {
20
- const n = o.render({}, []), d = se("title", r);
21
- return d.ns = "svg", n.children.unshift(d), n;
22
- }
23
- }), we = /* @__PURE__ */ z({
24
- __name: "LoadingIcon",
25
- setup(o) {
26
- const r = ge(Te, "Loading…");
27
- return (n, d) => (p(), N(w(r)));
28
- }
29
- }), Ee = /* @__PURE__ */ I(we, [["__scopeId", "data-v-6b552b81"]]), be = {
30
- xmlns: "http://www.w3.org/2000/svg",
31
- fill: "none",
32
- "stroke-linejoin": "round",
33
- viewBox: "0 0 32 32"
34
- };
35
- function xe(o, r) {
36
- return p(), g("svg", be, [...r[0] || (r[0] = [
37
- h("path", {
38
- fill: "#000",
39
- 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"
40
- }, null, -1)
41
- ])]);
42
- }
43
- const ke = { render: xe }, Ve = { class: "popover" }, _e = { class: "formats-container-border-host" }, Me = {
44
- key: 0,
45
- class: "no-formats-available"
46
- }, ze = {
47
- key: 1,
48
- class: "no-formats-available"
49
- }, Ie = ["onClick"], De = { class: "format-pattern" }, Ae = { class: "format-preview" }, H = 1, Ce = /* @__PURE__ */ z({
50
- __name: "DateTimeFormatPickerPopover",
51
- props: {
52
- allFormats: {},
53
- selectedType: {},
54
- initialSelectedPattern: {},
55
- showTypeSwitch: { type: Boolean }
56
- },
57
- emits: ["commit", "cancel"],
58
- setup(o, { emit: r }) {
59
- X((e) => ({
60
- v3b9e5e3a: H
61
- }));
62
- const n = r, d = o, V = T(() => [
63
- {
64
- id: "RECENT",
65
- text: "Recent"
66
- },
67
- {
68
- id: "STANDARD",
69
- text: "ISO"
70
- },
71
- {
72
- id: "EUROPEAN",
73
- text: "European"
74
- },
75
- {
76
- id: "AMERICAN",
77
- text: "United States"
78
- }
79
- ]), _ = T(() => [
80
- {
81
- id: "DATE",
82
- text: "Date"
83
- },
84
- {
85
- id: "DATE_TIME",
86
- text: "Date & time"
87
- },
88
- {
89
- id: "TIME",
90
- text: "Time"
91
- },
92
- {
93
- id: "ZONED_DATE_TIME",
94
- text: "Zoned date & time"
95
- }
96
- ]), u = E(null), m = E(null), s = E("RECENT"), i = E(d.selectedType);
97
- A(
98
- () => d.selectedType,
99
- (e) => {
100
- m.value = e;
101
- }
102
- );
103
- const l = T(
104
- () => {
105
- var e;
106
- return ((e = d.allFormats) == null ? void 0 : e.filter(
107
- (t) => t.category === s.value && t.temporalType === i.value
108
- )) ?? null;
109
- }
110
- ), f = E(null), y = ee({}), b = (e) => `${e.format}-${e.category}-${e.temporalType}`, Z = (e) => (t) => {
111
- y[b(e)] = t;
112
- }, x = (e) => ({
113
- format: e.format,
114
- temporalType: e.temporalType
115
- }), {
116
- currentIndex: R,
117
- onKeydown: B,
118
- resetNavigation: L,
119
- setElement: K
120
- } = ve({
121
- keepOpenedOnTab: !0,
122
- getFirstElement: () => ({
123
- index: 0,
124
- onClick: () => n(
125
- "commit",
126
- x(l.value[0])
127
- )
128
- }),
129
- getLastElement: () => {
130
- const e = l.value.length - 1;
131
- return {
132
- index: e,
133
- onClick: () => n(
134
- "commit",
135
- x(l.value[e])
136
- )
137
- };
138
- },
139
- getNextElement: (e, t) => {
140
- if (e = e === null || e === -1 ? null : e, t === 1) {
141
- const a = ((e ?? -1) + 1) % l.value.length;
142
- return {
143
- index: a,
144
- onClick: () => n(
145
- "commit",
146
- x(l.value[a])
147
- )
148
- };
149
- } else {
150
- const a = ((e ?? 0) - 1 + l.value.length) % l.value.length;
151
- return {
152
- index: a,
153
- onClick: () => n(
154
- "commit",
155
- x(l.value[a])
156
- )
157
- };
158
- }
159
- },
160
- close: () => {
161
- n("cancel");
162
- }
163
- }), j = (e) => {
164
- const t = e.parentElement;
165
- if (t && t.scrollHeight > t.clientHeight) {
166
- const a = t.offsetTop + H, c = t.clientHeight + t.scrollTop, v = e.offsetTop + e.offsetHeight - a;
167
- v > c ? t.scrollTop = v - t.clientHeight : e.offsetTop - t.scrollTop < a && (t.scrollTop = e.offsetTop - a);
168
- }
169
- }, $ = (e) => {
170
- const t = y[`${e}-${s.value}-${i.value}`];
171
- t && j(t);
172
- }, P = async (e, t, a) => {
173
- i.value = t ?? i.value, s.value = a ?? s.value, await O(), m.value = e, $(e);
174
- const c = l.value.findIndex(
175
- (v) => v.format === e
176
- );
177
- K({
178
- index: c,
179
- onClick: () => n(
180
- "commit",
181
- x(l.value[c])
182
- )
183
- });
184
- };
185
- A(R, (e) => {
186
- var a, c;
187
- if (e === null)
188
- return;
189
- const t = (c = (a = l.value) == null ? void 0 : a[e]) == null ? void 0 : c.format;
190
- t && $(t);
191
- }), A([i, s], () => {
192
- var e, t;
193
- i.value === ((e = u.value) == null ? void 0 : e.temporalType) && s.value === ((t = u.value) == null ? void 0 : t.category) ? P(
194
- u.value.format,
195
- u.value.temporalType,
196
- u.value.category
197
- ) : (m.value = null, L());
198
- });
199
- const M = E(!1);
200
- return te(async () => {
201
- if (!d.allFormats)
202
- return;
203
- const e = [
204
- "RECENT",
205
- "STANDARD",
206
- "EUROPEAN",
207
- "AMERICAN"
208
- ], t = d.allFormats.filter((a) => d.initialSelectedPattern === a.format).filter(
209
- (a) => (
210
- // if the type switch is hidden, filter to only formats with the same type
211
- d.selectedType === a.temporalType || d.showTypeSwitch
212
- )
213
- ).sort((a, c) => {
214
- const v = e.indexOf(a.category), D = e.indexOf(c.category);
215
- return v - D;
216
- });
217
- if (t.length > 0) {
218
- const a = t[0].format, c = t[0].temporalType, v = t[0].category;
219
- await P(a, c, v);
220
- const D = l.value.findIndex(
221
- (W) => W.format === a
222
- );
223
- u.value = {
224
- format: a,
225
- index: D,
226
- category: v,
227
- temporalType: c
228
- };
229
- }
230
- O(() => M.value = !0);
231
- }), ae(() => M.value = !1), (e, t) => (p(), N(w(fe), {
232
- active: M.value,
233
- "onUpdate:active": t[3] || (t[3] = (a) => M.value = a),
234
- "initial-focus": () => f.value ?? !1
235
- }, {
236
- default: le(() => [
237
- h("div", Ve, [
238
- o.showTypeSwitch ? (p(), N(S, {
239
- key: 0,
240
- id: "selectedFormatType",
241
- ref: "typeSwitchRef",
242
- modelValue: i.value,
243
- "onUpdate:modelValue": t[0] || (t[0] = (a) => i.value = a),
244
- compact: "",
245
- "possible-values": _.value,
246
- class: "filter-switch"
247
- }, null, 8, ["modelValue", "possible-values"])) : C("", !0),
248
- k(S, {
249
- id: "selectedFormatStandard",
250
- ref: "standardSwitchRef",
251
- modelValue: s.value,
252
- "onUpdate:modelValue": t[1] || (t[1] = (a) => s.value = a),
253
- compact: "",
254
- "possible-values": V.value,
255
- class: "filter-switch"
256
- }, null, 8, ["modelValue", "possible-values"]),
257
- h("div", _e, [
258
- h("div", {
259
- id: "dateFormats",
260
- ref_key: "formatContainerRef",
261
- ref: f,
262
- class: "formats-container",
263
- tabindex: "0",
264
- role: "menu",
265
- onKeydown: t[2] || (t[2] = //@ts-ignore
266
- (...a) => w(B) && w(B)(...a))
267
- }, [
268
- l.value === null ? (p(), g("div", Me, [
269
- k(Ee, { class: "loading-spinner" })
270
- ])) : l.value.length === 0 ? (p(), g("div", ze, " No formats available ")) : (p(!0), g(oe, { key: 2 }, ne(l.value, (a, c) => {
271
- var v;
272
- return p(), g("div", {
273
- key: b(a),
274
- ref_for: !0,
275
- ref: Z(a),
276
- class: F([{
277
- highlighted: c === w(R),
278
- applied: c === ((v = u.value) == null ? void 0 : v.index) && a.category === u.value.category && a.temporalType === u.value.temporalType
279
- }, "single-format"]),
280
- role: "menuitem",
281
- onClick: () => n("commit", x(a))
282
- }, [
283
- h("span", De, U(a.format), 1),
284
- h("span", Ae, U(a.example), 1)
285
- ], 10, Ie);
286
- }), 128))
287
- ], 544)
288
- ])
289
- ])
290
- ]),
291
- _: 1
292
- }, 8, ["active", "initial-focus"]));
293
- }
294
- }), Fe = /* @__PURE__ */ I(Ce, [["__scopeId", "data-v-8bb40d8b"]]), Ne = { class: "input-fields" }, Se = ["disabled"], Re = {
295
- key: 0,
296
- class: "invalid-marker"
297
- }, Be = ["disabled"], $e = {}, Pe = /* @__PURE__ */ z({
298
- ...$e,
299
- __name: "DateTimeFormatInput",
300
- props: /* @__PURE__ */ Y({
301
- disabled: { type: Boolean, default: !1 },
302
- compact: { type: Boolean, default: !1 },
303
- isValid: { type: Boolean, default: !0 },
304
- allDefaultFormats: {},
305
- allowedTypes: { default: () => [
306
- "DATE",
307
- "TIME",
308
- "DATE_TIME",
309
- "ZONED_DATE_TIME"
310
- ] },
311
- showTypeSwitchInPopover: { type: Boolean, default: !0 }
312
- }, {
313
- modelValue: {
314
- default: {
315
- format: "yyyy-MM-dd",
316
- temporalType: "DATE"
317
- }
318
- },
319
- modelModifiers: {}
320
- }),
321
- emits: ["update:modelValue"],
322
- setup(o) {
323
- const r = o, n = Q(o, "modelValue"), d = T({
324
- get: () => n.value.format,
325
- set: (f) => {
326
- n.value = {
327
- ...n.value,
328
- format: f
329
- };
330
- }
331
- }), V = "Format like 'yyyy-MM-dd'", _ = T(() => r.isValid), u = E(null), m = E(null), s = E(!1), i = (f) => {
332
- n.value = f, s.value = !1;
333
- };
334
- re(m, () => s.value = !1, {
335
- ignore: [u]
336
- });
337
- const { floatingStyles: l } = de(
338
- u,
339
- m,
340
- {
341
- middleware: [
342
- ce({
343
- mainAxis: 2,
344
- crossAxis: 0
345
- }),
346
- me(),
347
- pe({
348
- mainAxis: !0,
349
- crossAxis: !1
350
- })
351
- ],
352
- placement: "top-end",
353
- whileElementsMounted: ue
354
- }
355
- );
356
- return (f, y) => (p(), g("div", null, [
357
- h("div", {
358
- class: F(["wrapper", { disabled: o.disabled, compact: o.compact }])
359
- }, [
360
- h("span", Ne, [
361
- q(h("input", {
362
- "onUpdate:modelValue": y[0] || (y[0] = (b) => d.value = b),
363
- type: "text",
364
- disabled: o.disabled,
365
- placeholder: V,
366
- spellcheck: "false",
367
- onFocus: y[1] || (y[1] = (b) => s.value = !1)
368
- }, null, 40, Se), [
369
- [G, d.value]
370
- ]),
371
- _.value ? C("", !0) : (p(), g("span", Re)),
372
- h("button", {
373
- ref_key: "togglePopoverButtonRef",
374
- ref: u,
375
- class: F(["trigger-popover-button", { active: s.value }]),
376
- disabled: o.disabled,
377
- onClick: y[2] || (y[2] = (b) => s.value = !s.value)
378
- }, [
379
- k(w(ke))
380
- ], 10, Be)
381
- ])
382
- ], 2),
383
- s.value ? (p(), g("div", {
384
- key: 0,
385
- ref_key: "floatingPopoverRef",
386
- ref: m,
387
- class: "popover",
388
- style: J(w(l))
389
- }, [
390
- k(Fe, {
391
- "all-formats": o.allDefaultFormats,
392
- "initial-selected-pattern": n.value.format,
393
- "selected-type": n.value.temporalType,
394
- "show-type-switch": o.showTypeSwitchInPopover,
395
- onCommit: i,
396
- onCancel: y[3] || (y[3] = (b) => s.value = !1)
397
- }, null, 8, ["all-formats", "initial-selected-pattern", "selected-type", "show-type-switch"])
398
- ], 4)) : C("", !0)
399
- ]));
400
- }
401
- }), Oe = /* @__PURE__ */ I(Pe, [["__scopeId", "data-v-1577d5ce"]]), Ue = ["id"], He = /* @__PURE__ */ z({
402
- __name: "DateTimeFormatPickerWithTypeControl",
403
- props: {
404
- control: {},
405
- handleChange: { type: Function },
406
- changeValue: { type: Function },
407
- disabled: { type: Boolean },
408
- isValid: { type: Boolean },
409
- onRegisterValidation: { type: Function },
410
- labelForId: {}
411
- },
412
- setup(o) {
413
- const r = o, n = T(
414
- () => r.control.uischema
415
- ), d = T(() => n.value.options), V = T(() => {
416
- var i;
417
- return (i = d.value) == null ? void 0 : i.allowedFormats;
418
- }), _ = ie(n, "dateTimeFormats"), u = [
419
- {
420
- id: "DATE",
421
- text: "Date"
422
- },
423
- {
424
- id: "DATE_TIME",
425
- text: "Date & time"
426
- },
427
- {
428
- id: "TIME",
429
- text: "Time"
430
- },
431
- {
432
- id: "ZONED_DATE_TIME",
433
- text: "Zoned date & time"
434
- }
435
- ], m = T({
436
- get: () => r.control.data,
437
- set: (i) => {
438
- r.changeValue(i);
439
- }
440
- }), s = T({
441
- get: () => m.value.temporalType,
442
- set: (i) => {
443
- m.value = {
444
- ...m.value,
445
- temporalType: i
446
- };
447
- }
448
- });
449
- return (i, l) => (p(), g("div", {
450
- id: o.labelForId,
451
- class: "control-container"
452
- }, [
453
- k(w(S), {
454
- modelValue: s.value,
455
- "onUpdate:modelValue": l[0] || (l[0] = (f) => s.value = f),
456
- compact: "",
457
- "possible-values": u,
458
- disabled: o.disabled
459
- }, null, 8, ["modelValue", "disabled"]),
460
- k(w(Oe), {
461
- modelValue: m.value,
462
- "onUpdate:modelValue": l[1] || (l[1] = (f) => m.value = f),
463
- compact: "",
464
- disabled: o.disabled,
465
- "show-type-switch-in-popover": !1,
466
- "allowed-formats": V.value,
467
- "all-default-formats": w(_),
468
- "is-valid": !0
469
- }, null, 8, ["modelValue", "disabled", "allowed-formats", "all-default-formats"])
470
- ], 8, Ue));
471
- }
472
- }), Ye = /* @__PURE__ */ I(He, [["__scopeId", "data-v-8517cafd"]]);
473
- export {
474
- Ye as default
475
- };
@@ -1,30 +0,0 @@
1
- import { defineComponent as a, toRef as n, createBlock as t, openBlock as r, unref as d } from "vue";
2
- import { t as i } from "./usePossibleValues-B-W6u-1T-DcglK6MY.js";
3
- import { L as s } from "./LoadingDropdown.vue_vue_type_script_setup_true_lang-BLSG6Lpo-CtYj2B6v.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
- isValid: { type: Boolean },
12
- onRegisterValidation: { type: Function },
13
- labelForId: {}
14
- },
15
- setup(o) {
16
- const e = o, { possibleValues: l } = i(n(e, "control"));
17
- return (p, u) => (r(), t(s, {
18
- id: o.labelForId ?? "",
19
- ariaLabel: o.control.label,
20
- disabled: o.disabled,
21
- "model-value": o.control.data ?? "",
22
- "possible-values": d(l),
23
- error: !o.isValid,
24
- "onUpdate:modelValue": o.changeValue
25
- }, null, 8, ["id", "ariaLabel", "disabled", "model-value", "possible-values", "error", "onUpdate:modelValue"]));
26
- }
27
- });
28
- export {
29
- f as default
30
- };
@@ -1,6 +0,0 @@
1
- import { P as o } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
2
- import { Q as m } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
3
- export {
4
- m as DYNAMIC_SETTINGS_KEY,
5
- o as default
6
- };
@@ -1,56 +0,0 @@
1
- import { defineComponent as v, computed as o, createBlock as h, openBlock as f, normalizeProps as C, guardReactiveProps as g, withCtx as x, createElementVNode as a, toDisplayString as i } from "vue";
2
- import { Q as y } from "./ResourceControlBase-Bqq1PAX_-5gNwtS9Y.js";
3
- import { Y as b } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
4
- const V = { class: "info-container" }, k = { class: "chart-title" }, B = { class: "chart-description" }, F = /* @__PURE__ */ v({
5
- __name: "ExecutorCoresControl",
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(r) {
16
- const t = r, s = o(
17
- () => {
18
- var e;
19
- return ((e = t.control.uischema.options) == null ? void 0 : e.donutTitle) || "";
20
- }
21
- ), c = o(
22
- () => {
23
- var e;
24
- return ((e = t.control.uischema.options) == null ? void 0 : e.currentUsage) ?? 0;
25
- }
26
- ), n = o(
27
- () => t.control.schema.secondaryValue || 0
28
- ), l = o(
29
- () => {
30
- var e;
31
- return ((e = t.control.uischema.options) == null ? void 0 : e.donutMax) ?? 1 / 0;
32
- }
33
- ), u = o(
34
- () => l.value === -1 ? "unlimited" : l.value
35
- ), d = o(
36
- () => {
37
- var e;
38
- return ((e = t.control.uischema.options) == null ? void 0 : e.isSharedContext) ?? !1;
39
- }
40
- ), p = o(() => c.value + n.value), m = o(
41
- () => `This execution context will use ${n.value} vCore tokens. In total, ${p.value} of ${u.value} vCore tokens available ${d.value ? "from the license" : "for this team"} will be used.`
42
- );
43
- return (e, _) => (f(), h(y, C(g(t)), {
44
- "donut-info": x(() => [
45
- a("div", V, [
46
- a("div", k, i(s.value), 1),
47
- a("div", B, i(m.value), 1)
48
- ])
49
- ]),
50
- _: 1
51
- }, 16));
52
- }
53
- }), E = /* @__PURE__ */ b(F, [["__scopeId", "data-v-58b92dd1"]]);
54
- export {
55
- E as default
56
- };