@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,50 +0,0 @@
1
- import { defineComponent as d, computed as o, createBlock as m, openBlock as v, normalizeProps as h, guardReactiveProps as f, withCtx as y, createElementVNode as a, toDisplayString as i } from "vue";
2
- import { Q as B } from "./ResourceControlBase-Bqq1PAX_-5gNwtS9Y.js";
3
- import { Y as g } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
4
- const x = { class: "info-container" }, b = { class: "chart-title" }, V = { class: "chart-description" }, C = /* @__PURE__ */ d({
5
- __name: "ExecutorMemoryControl",
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(l) {
16
- const t = l, n = o(
17
- () => t.control.schema.secondaryValue || 0
18
- ), r = o(
19
- () => {
20
- var e;
21
- return ((e = t.control.uischema.options) == null ? void 0 : e.donutTitle) || "";
22
- }
23
- ), c = o(
24
- () => {
25
- var e;
26
- return ((e = t.control.uischema.options) == null ? void 0 : e.currentUsage) ?? 0;
27
- }
28
- ), s = o(
29
- () => {
30
- var e;
31
- return ((e = t.control.uischema.options) == null ? void 0 : e.donutMax) ?? 1 / 0;
32
- }
33
- ), u = o(() => n.value + c.value), p = o(
34
- () => `This execution context will use a maximum of ${n.value} GB RAM.
35
- In total, ${u.value} GB of ${s.value} GB available for this team will be used.`
36
- );
37
- return (e, _) => (v(), m(B, h(f(t)), {
38
- "donut-info": y(() => [
39
- a("div", x, [
40
- a("div", b, i(r.value), 1),
41
- a("div", V, i(p.value), 1)
42
- ])
43
- ]),
44
- _: 1
45
- }, 16));
46
- }
47
- }), G = /* @__PURE__ */ g(C, [["__scopeId", "data-v-515b606e"]]);
48
- export {
49
- G as default
50
- };
@@ -1,221 +0,0 @@
1
- import { defineComponent as H, ref as g, computed as y, createElementBlock as L, openBlock as R, createVNode as T, createElementVNode as w, unref as W, toDisplayString as Y } from "vue";
2
- import { Y as z, c as G, r as V, H as k, e as x, f as q } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
3
- import { f as h, C as J, j as K, r as D, o as Q, m as X, c as Z, D as m, s as O, h as ee, y as te } from "./_Uint8Array-C_ozLuQF-DBc0hZkr.js";
4
- import { r as re } from "./isArray-WzO_os3q-ClnPWjBY.js";
5
- var C = Object.create, oe = /* @__PURE__ */ function() {
6
- function e() {
7
- }
8
- return function(t) {
9
- if (!V(t))
10
- return {};
11
- if (C)
12
- return C(t);
13
- e.prototype = t;
14
- var r = new e();
15
- return e.prototype = void 0, r;
16
- };
17
- }(), F = function() {
18
- try {
19
- var e = ee(Object, "defineProperty");
20
- return e({}, "", {}), e;
21
- } catch {
22
- }
23
- }();
24
- function ne(e, t) {
25
- for (var r = -1, c = e == null ? 0 : e.length; ++r < c && t(e[r], r, e) !== !1; )
26
- ;
27
- return e;
28
- }
29
- function ae(e, t, r) {
30
- t == "__proto__" && F ? F(e, t, {
31
- configurable: !0,
32
- enumerable: !0,
33
- value: r,
34
- writable: !0
35
- }) : e[t] = r;
36
- }
37
- var ce = Object.prototype, le = ce.hasOwnProperty;
38
- function ie(e, t, r) {
39
- var c = e[t];
40
- (!(le.call(e, t) && te(c, r)) || r === void 0 && !(t in e)) && ae(e, t, r);
41
- }
42
- var ue = Z(Object.getPrototypeOf, Object), M = typeof exports == "object" && exports && !exports.nodeType && exports, S = M && typeof module == "object" && module && !module.nodeType && module, se = S && S.exports === M, I = se ? q.Buffer : void 0;
43
- I && I.allocUnsafe;
44
- function be(e, t) {
45
- return e.slice();
46
- }
47
- var fe = Object.prototype, pe = fe.hasOwnProperty;
48
- function de(e) {
49
- var t = e.length, r = new e.constructor(t);
50
- return t && typeof e[0] == "string" && pe.call(e, "index") && (r.index = e.index, r.input = e.input), r;
51
- }
52
- function A(e) {
53
- var t = new e.constructor(e.byteLength);
54
- return new O(t).set(new O(e)), t;
55
- }
56
- function je(e, t) {
57
- var r = A(e.buffer);
58
- return new e.constructor(r, e.byteOffset, e.byteLength);
59
- }
60
- var ye = /\w*$/;
61
- function ve(e) {
62
- var t = new e.constructor(e.source, ye.exec(e));
63
- return t.lastIndex = e.lastIndex, t;
64
- }
65
- var B = x ? x.prototype : void 0, U = B ? B.valueOf : void 0;
66
- function me(e) {
67
- return U ? Object(U.call(e)) : {};
68
- }
69
- function he(e, t) {
70
- var r = A(e.buffer);
71
- return new e.constructor(r, e.byteOffset, e.length);
72
- }
73
- var Ae = "[object Boolean]", ge = "[object Date]", we = "[object Map]", xe = "[object Number]", Oe = "[object RegExp]", Ce = "[object Set]", Fe = "[object String]", Se = "[object Symbol]", Ie = "[object ArrayBuffer]", Be = "[object DataView]", Ue = "[object Float32Array]", _e = "[object Float64Array]", Ee = "[object Int8Array]", Ve = "[object Int16Array]", ke = "[object Int32Array]", De = "[object Uint8Array]", Me = "[object Uint8ClampedArray]", Ne = "[object Uint16Array]", Pe = "[object Uint32Array]";
74
- function $e(e, t, r) {
75
- var c = e.constructor;
76
- switch (t) {
77
- case Ie:
78
- return A(e);
79
- case Ae:
80
- case ge:
81
- return new c(+e);
82
- case Be:
83
- return je(e);
84
- case Ue:
85
- case _e:
86
- case Ee:
87
- case Ve:
88
- case ke:
89
- case De:
90
- case Me:
91
- case Ne:
92
- case Pe:
93
- return he(e);
94
- case we:
95
- return new c();
96
- case xe:
97
- case Fe:
98
- return new c(e);
99
- case Oe:
100
- return ve(e);
101
- case Ce:
102
- return new c();
103
- case Se:
104
- return me(e);
105
- }
106
- }
107
- function He(e) {
108
- return typeof e.constructor == "function" && !X(e) ? oe(ue(e)) : {};
109
- }
110
- var Le = "[object Map]";
111
- function Re(e) {
112
- return k(e) && h(e) == Le;
113
- }
114
- var _ = m && m.isMap, Te = _ ? D(_) : Re, We = "[object Set]";
115
- function Ye(e) {
116
- return k(e) && h(e) == We;
117
- }
118
- var E = m && m.isSet, ze = E ? D(E) : Ye, N = "[object Arguments]", Ge = "[object Array]", qe = "[object Boolean]", Je = "[object Date]", Ke = "[object Error]", P = "[object Function]", Qe = "[object GeneratorFunction]", Xe = "[object Map]", Ze = "[object Number]", $ = "[object Object]", et = "[object RegExp]", tt = "[object Set]", rt = "[object String]", ot = "[object Symbol]", nt = "[object WeakMap]", at = "[object ArrayBuffer]", ct = "[object DataView]", lt = "[object Float32Array]", it = "[object Float64Array]", ut = "[object Int8Array]", st = "[object Int16Array]", bt = "[object Int32Array]", ft = "[object Uint8Array]", pt = "[object Uint8ClampedArray]", dt = "[object Uint16Array]", jt = "[object Uint32Array]", o = {};
119
- o[N] = o[Ge] = o[at] = o[ct] = o[qe] = o[Je] = o[lt] = o[it] = o[ut] = o[st] = o[bt] = o[Xe] = o[Ze] = o[$] = o[et] = o[tt] = o[rt] = o[ot] = o[ft] = o[pt] = o[dt] = o[jt] = !0;
120
- o[Ke] = o[P] = o[nt] = !1;
121
- function v(e, t, r, c, f, l) {
122
- var a;
123
- if (a !== void 0)
124
- return a;
125
- if (!V(e))
126
- return e;
127
- var p = re(e);
128
- if (p)
129
- a = de(e);
130
- else {
131
- var i = h(e), d = i == P || i == Qe;
132
- if (J(e))
133
- return be(e);
134
- if (i == $ || i == N || d && !f)
135
- a = d ? {} : He(e);
136
- else {
137
- if (!o[i])
138
- return f ? e : {};
139
- a = $e(e, i);
140
- }
141
- }
142
- l || (l = new K());
143
- var n = l.get(e);
144
- if (n)
145
- return n;
146
- l.set(e, a), ze(e) ? e.forEach(function(s) {
147
- a.add(v(s, t, r, s, e, l));
148
- }) : Te(e) && e.forEach(function(s, b) {
149
- a.set(b, v(s, t, r, b, e, l));
150
- });
151
- var u = Q, j = p ? void 0 : u(e);
152
- return ne(j || e, function(s, b) {
153
- j && (b = s, s = e[b]), ie(a, b, v(s, t, r, b, e, l));
154
- }), a;
155
- }
156
- var yt = 1, vt = 4;
157
- function mt(e) {
158
- return v(e, yt | vt);
159
- }
160
- const ht = { class: "wrapper" }, At = { class: "filename" }, gt = ["id", "aria-label", "accept", "multiple", "disabled"], wt = /* @__PURE__ */ H({
161
- inheritAttrs: !1,
162
- __name: "FileUploadControl",
163
- props: {
164
- control: {},
165
- handleChange: { type: Function },
166
- changeValue: { type: Function },
167
- disabled: { type: Boolean },
168
- isValid: { type: Boolean },
169
- onRegisterValidation: { type: Function },
170
- labelForId: {}
171
- },
172
- setup(e) {
173
- const t = e, r = g(mt(t.control.data)), c = y(
174
- () => {
175
- var n;
176
- return ((n = t.control.uischema.options) == null ? void 0 : n.accept) ?? "*";
177
- }
178
- ), f = y(
179
- () => {
180
- var n;
181
- return ((n = t.control.uischema.options) == null ? void 0 : n.multiple) ?? !1;
182
- }
183
- ), l = g(null), a = y(() => {
184
- var n, u;
185
- return ((u = (n = r.value) == null ? void 0 : n.map) == null ? void 0 : u.call(n, ({ name: j }) => j).join(", ")) || "No file selected";
186
- }), p = y(() => `Select file${f.value ? "s" : ""}`), i = () => {
187
- var n;
188
- (n = l.value) == null || n.click();
189
- }, d = (n) => {
190
- const u = n.target;
191
- u.files && (r.value = Array.from(u.files), t.handleChange(t.control.path, Array.from(r.value)));
192
- };
193
- return (n, u) => (R(), L("div", ht, [
194
- T(W(G), {
195
- class: "file-select-button",
196
- label: p.value,
197
- "leading-icon": "search",
198
- variant: "outlined",
199
- disabled: e.disabled,
200
- size: "small",
201
- onClick: i
202
- }, null, 8, ["label", "disabled"]),
203
- w("span", At, Y(a.value), 1),
204
- w("input", {
205
- id: e.labelForId,
206
- ref_key: "fileSelector",
207
- ref: l,
208
- "aria-label": e.control.label,
209
- type: "file",
210
- accept: c.value,
211
- multiple: f.value,
212
- disabled: e.disabled,
213
- hidden: "",
214
- onChange: d
215
- }, null, 40, gt)
216
- ]));
217
- }
218
- }), St = /* @__PURE__ */ z(wt, [["__scopeId", "data-v-278c7bc6"]]);
219
- export {
220
- St as default
221
- };
@@ -1,116 +0,0 @@
1
- import { defineComponent as z, useCssVars as G, unref as o, ref as L, computed as r, createElementBlock as c, watch as f, openBlock as i, createCommentVNode as m, createBlock as y, normalizeStyle as S, Fragment as U, renderList as H, createVNode as N, withModifiers as W } from "vue";
2
- import { Y, B as $, G as j, c as q } from "./TextControl-B0ag-3Pv-nwKlVRtp.js";
3
- const A = { class: "grid-list" }, J = {
4
- key: 1,
5
- class: "checkbox"
6
- }, K = 7, R = "auto", X = "Invert selection", D = /* @__PURE__ */ z({
7
- __name: "GridSelectionControl",
8
- props: {
9
- handleChange: { type: Function },
10
- control: {},
11
- changeValue: { type: Function },
12
- disabled: { type: Boolean },
13
- isValid: { type: Boolean },
14
- onRegisterValidation: { type: Function },
15
- labelForId: {}
16
- },
17
- setup(V) {
18
- G((e) => ({
19
- v38af777e: o(x)
20
- }));
21
- const u = V, {
22
- control: { path: b, uischema: { options: k } = {} },
23
- handleChange: C
24
- } = u, {
25
- possibleValues: n = [],
26
- columnCount: w = K,
27
- gridWidth: x = R,
28
- toggleLabel: p = X,
29
- renderLastItemAsCheckbox: d = !1
30
- } = k, t = L(/* @__PURE__ */ new Map()), B = r(() => ({
31
- "grid-template-columns": `repeat(${w}, 1fr)`
32
- })), F = r(
33
- () => n.filter(
34
- (e, a) => !(d && a === n.length - 1)
35
- )
36
- ), s = r(
37
- () => d ? n[n.length - 1] : null
38
- ), E = () => {
39
- const e = /* @__PURE__ */ new Map();
40
- t.value.forEach(
41
- ({ active: a }, l) => {
42
- e.set(l, {
43
- active: !a
44
- });
45
- }
46
- ), t.value = e;
47
- }, I = () => {
48
- const e = /* @__PURE__ */ new Map();
49
- return n.forEach(({ id: a }) => {
50
- var l;
51
- e.set(a, { active: ((l = u.control.data) == null ? void 0 : l.includes(a)) ?? !1 });
52
- }), e;
53
- }, g = r(() => {
54
- const e = [];
55
- return t.value.forEach(
56
- ({ active: a }, l) => {
57
- a && e.push(l);
58
- }
59
- ), e;
60
- }), M = r(() => u.control.data ?? []), h = r(() => {
61
- const e = g.value, a = M.value;
62
- if (e.length !== a.length)
63
- return !0;
64
- const l = new Set(a);
65
- return e.some((v) => !l.has(v));
66
- });
67
- return f(
68
- () => u.control.data,
69
- () => {
70
- h.value && (t.value = I());
71
- },
72
- { immediate: !0, deep: !0 }
73
- ), f(
74
- () => t.value,
75
- () => {
76
- h.value && C(b, g.value);
77
- },
78
- { deep: !0 }
79
- ), (e, a) => (i(), c("div", A, [
80
- o(n).length ? (i(), c("div", {
81
- key: 0,
82
- class: "grid-list-container",
83
- style: S(B.value)
84
- }, [
85
- (i(!0), c(U, null, H(F.value, ({ id: l, text: v }) => (i(), y(o($), {
86
- key: `grid-item-${l}`,
87
- modelValue: t.value.get(l).active,
88
- "onUpdate:modelValue": (_) => t.value.get(l).active = _,
89
- class: "overwrite-legacy-styles",
90
- label: v,
91
- variant: "outlined",
92
- size: "xsmall"
93
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label"]))), 128))
94
- ], 4)) : m("", !0),
95
- o(d) && s.value ? (i(), c("div", J, [
96
- N(o(j), {
97
- modelValue: t.value.get(s.value.id).active,
98
- "onUpdate:modelValue": a[0] || (a[0] = (l) => t.value.get(s.value.id).active = l),
99
- label: s.value.text
100
- }, null, 8, ["modelValue", "label"])
101
- ])) : m("", !0),
102
- o(p) ? (i(), y(o(q), {
103
- key: 2,
104
- variant: "outlined",
105
- size: "xsmall",
106
- label: o(p),
107
- "leading-icon": "replace",
108
- class: "invert overwrite-legacy-styles",
109
- onClick: W(E, ["prevent"])
110
- }, null, 8, ["label"])) : m("", !0)
111
- ]));
112
- }
113
- }), Q = /* @__PURE__ */ Y(D, [["__scopeId", "data-v-7c90b0fa"]]);
114
- export {
115
- Q as default
116
- };