@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.
- package/dist/{AnyOfTwinlist-C0gjxeQW-C5wsbDLK.js → AnyOfTwinlist-Chx0nmt3-DPMbiVZd.js} +5 -4
- package/dist/{ArrayLayout-U4hs5LA_.js → ArrayLayout-C2-4wxkT.js} +39 -39
- package/dist/{ButtonControl-B8WGWs_m.js → ButtonControl-Dga3IomB.js} +26 -26
- package/dist/CheckboxControl-B8b1Di4k-CEkOsWEu.js +40 -0
- package/dist/CheckboxesControl-DWUnPGdN-BOSX_stf.js +42 -0
- package/dist/CodeEditorControl-CN4ltMvy.js +133 -0
- package/dist/{ColorControl-DeSwgyjS-BW1FBjqa.js → ColorControl-ByE5ku7u-C12pZ0rg.js} +10 -8
- package/dist/ColorPreviewControl-XiKZ4jfn-CLIjX6M_.js +89 -0
- package/dist/ComboBoxControl-zSceYlyZ-BgpAi7q9.js +42 -0
- package/dist/{ConfigurationNodeNotSupported-Bg2W0ik5.js → ConfigurationNodeNotSupported-B27grebd.js} +3 -3
- package/dist/ControlWithSubParameters-ROJGaqDF.js +63 -0
- package/dist/CredentialsControl-B6jczlBv.js +33 -0
- package/dist/CredentialsControlBase-CdNdAngd.js +96 -0
- package/dist/DateControl-BBGpEVpr-yZP_TZnE.js +44 -0
- package/dist/DateTimeControl-CymOURq5-Ca0mT1HW.js +89 -0
- package/dist/DateTimeFormatPickerControl-Bx19jwpr-Bd0xBs4D.js +37 -0
- package/dist/DateTimeFormatPickerWithTypeControl-Byo_0cTq-C0ZfMqtp.js +598 -0
- package/dist/{DialogFileExplorer-Bi0DVFut.js → DialogFileExplorer-BmT2YlVn.js} +2 -2
- package/dist/{DirtyTrackerRenderer-CDcL-lwX.js → DirtyTrackerRenderer-BG451zZD.js} +10 -10
- package/dist/DropdownControl-C6ffVYyf-hy0i8nDV.js +32 -0
- package/dist/DynamicInputControl-W23Zexge.js +6 -0
- package/dist/ExecutorCoresControl-D9FZ-g9O-Dws9IhAs.js +51 -0
- package/dist/ExecutorMemoryControl-__P80Lkb-DxQZ2IuA.js +44 -0
- package/dist/{FileChooserControl-BR84kEXy.js → FileChooserControl-BBbay7zU.js} +4 -3
- package/dist/{FileChooserControlBase-1oayQJzv.js → FileChooserControlBase-DpYYK3eE.js} +147 -143
- package/dist/{FileChooserControlForMultiFile-ChQtkmps.js → FileChooserControlForMultiFile-6NLYZKbt.js} +5 -4
- package/dist/FileUploadControl-DWs4PhOj-BvByW-Tq.js +545 -0
- package/dist/GridSelectionControl-WcJ4y6Fs-BoxSk0VG.js +117 -0
- package/dist/{HorizontalLayout-DwdPdBTW-w5bjgNga.js → HorizontalLayout-ByB5A7X3-BURAMMFG.js} +5 -5
- package/dist/{IntegerControl-D8OzxbRA-D9mR5ahj.js → IntegerControl-aveswmbr-50_b6vGY.js} +5 -4
- package/dist/IntervalControl-B4Eqs1Jf-CiB2D52B.js +51 -0
- package/dist/{LabeledGroup-BzXUTco4.js → LabeledGroup-BONZ_GLo.js} +3 -3
- package/dist/LegacyCredentialsControl-DaIrvNBd.js +88 -0
- package/dist/{LinkControl-BvBBTFCs-DojlONSA.js → LinkControl-DD56lOiw-CDy6OBu8.js} +10 -10
- 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
- package/dist/ManualTwinlistControl-DBZ5RZgW-BV5qOGau.js +77 -0
- package/dist/MultiFileChooserControl-cyndOpF7.js +341 -0
- package/dist/{MultiRuleWrapper-TvQw5Kaj.js → MultiRuleWrapper-Db-W_o1f.js} +1 -1
- package/dist/{MultiSelectListBoxControl-nmvLP18g-feO16jJ4.js → MultiSelectListBoxControl-BMsPvxGQ-5ua-fVR8.js} +10 -9
- package/dist/{MultimodeTwinlistControl-yCdeWH2E-DG6GXu0l.js → MultimodeTwinlistControl-thO1be1r-8kc-JSH1.js} +64 -62
- package/dist/{NameFilter-D1TMJydD-Db00pnR3.js → NameFilter-DBMVmZmk-DnB-5f39.js} +7 -6
- package/dist/{NumberControl-uLMOLEbg-B_H33dGY.js → NumberControl-BPVO5l6t--nrQcx4m.js} +8 -7
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-CR61f6d6-Df5EPyns.js +54 -0
- package/dist/OneOfDropdown-DBG8ZcpV-cZs_ptrT.js +36 -0
- package/dist/{RadioButtonsWithDescriptionControl-5M_6G7Qk-BHHWv0Y0.js → RadioButtonsWithDescriptionControl-BsqMTEB5-COGPhNPs.js} +17 -17
- package/dist/RadioControl-ClJmr0EQ-BzjoXaZ3.js +21 -0
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-Bm4EUEvw-Cabfycg_.js +64 -0
- package/dist/ResourceControlBase-CeXYJeR1-DSmxhV0s.js +113 -0
- package/dist/{RichTextControl-D9QD2_uO-OY669heQ.js → RichTextControl-DvYkBpzH-CtMZq2re.js} +7876 -6699
- package/dist/{SectionLayout-DY27pAtG-BIZg0kiA.js → SectionLayout-CwRO3UXc-d5rFpCRN.js} +5 -5
- package/dist/SettingsSubPanelLayout-CV6y2bcX-OzpF07vB.js +64 -0
- package/dist/{SimpleTwinlistControl-P4KEYOq0-97VRLEr4.js → SimpleTwinlistControl-BSON5VYy-BaAaU86G.js} +7 -6
- package/dist/SingleSelectControl-BSqORMYm-CBP_mVGB.js +58 -0
- package/dist/{SingleSelectListBoxControl-oMWH0vEE-Ewf1HUGa.js → SingleSelectListBoxControl-CFdKzbOK-CruT9yt-.js} +14 -13
- package/dist/{SortListControl-4v3T2j_9-BkTlN-H5.js → SortListControl-DZIHeQmn-CKRyT1hN.js} +41 -39
- package/dist/{StringFileChooserControl-BVH5iHNM.js → StringFileChooserControl-Br8gZTku.js} +33 -30
- package/dist/{StyledListItem-D3LSfgGV-B9rTS8WT.js → StyledListItem--sgmJ3W_-Bo6f-_9B.js} +1 -1
- package/dist/{TeamAndSpacesControl-CH5ImByy-aTqgKpBn.js → TeamAndSpacesControl-DiMyDT-5-Br-Lq0ki.js} +21 -20
- package/dist/TeamResourceControl-Bag_dwA1-PdtnhxEi.js +44 -0
- package/dist/{TextAreaControl-CrsZSU_f-CNj59YPm.js → TextAreaControl-B52P0DAa-McfOgZWn.js} +10 -8
- package/dist/TextControl-52n-sttB-DssWw4KP.js +50962 -0
- package/dist/TimeControl-Cu12_qpz-CK1bxhya.js +71 -0
- package/dist/TimeframesControl-DhdC8OS1-DYseJbBV.js +352 -0
- package/dist/TwinlistControlBase.vue_vue_type_script_setup_true_lang-t1I2qxJz-DU6yd1RM.js +45 -0
- package/dist/{TypedStringFilter-ry7fTUTx-CCJRabai.js → TypedStringFilter-zJOICQei-B-5z8atp.js} +7 -6
- package/dist/{ValueSwitchControl-aVx7pUi9-7kuEbp3H.js → ValueSwitchControl-CEVWJH7z-DzuxqLvy.js} +7 -6
- package/dist/{VennDiagramLayout-D8s5yYbT.js → VennDiagramLayout-DyTZ5EJ9.js} +24 -24
- package/dist/{VerticalLayout-Bv-LJOZ0-BTrnMnQu.js → VerticalLayout-D_13xb_m-BfU1M3IE.js} +7 -7
- package/dist/ZonedDateTimeControl-C-vO6fC1-XngmuFqW.js +82 -0
- package/dist/{ai-bar-DLr5A9ZW.js → ai-bar-DDtzX23v.js} +775 -732
- package/dist/classApi-CHpAZrj3-BptMrhKH.js +3328 -0
- package/dist/collection-BBXRVj4b-DhO8c3tP.js +22 -0
- package/dist/collection-BBXRVj4b-DzRZ2FYd-COyFmQqa.js +22 -0
- package/dist/collection-BBXRVj4b-grENCIdl.js +22 -0
- package/dist/main.js +9977 -13304
- package/dist/parameters.js +1 -1
- package/dist/plainDateTimeUtils-CR0UhpkD-DU-LM4_V.js +52 -0
- package/dist/src/components/ScriptingEditor.vue.d.ts +6 -4
- package/dist/src/components/SettingsPage.vue.d.ts +5 -4
- package/dist/src/scripting-service.d.ts +1 -1
- package/dist/useDropdownNavigation-CdrbT-CQ-Dxb_y1Fq.js +2003 -0
- package/dist/{useFileChooserBackend-Bs7hx7xH.js → useFileChooserBackend-CLdJ1RU1.js} +6 -6
- package/dist/usePlainDateTimeBatch-Bd2G-GY9-DO2Zu0Mj.js +34 -0
- package/dist/{usePossibleValues-B-W6u-1T-DcglK6MY.js → usePossibleValues-DiYOmnZW-CaSLjdK-.js} +4 -4
- package/package.json +3 -3
- package/dist/CheckboxControl-CS6iXHnF-DLCN_obF.js +0 -38
- package/dist/CheckboxesControl-CPKIkyWt-BgPFZcJW.js +0 -40
- package/dist/CodeEditorControl-DM7k0B2q.js +0 -103
- package/dist/ColorPreviewControl-CntI0nTL-qVTX4e1m.js +0 -89
- package/dist/ComboBoxControl-DBYnBkC4-1oOLCCms.js +0 -40
- package/dist/ControlWithSubParameters-DgJhqCMe.js +0 -80
- package/dist/CredentialsControl-CuHgBJQY.js +0 -32
- package/dist/CredentialsControlBase-14mA9Xg5.js +0 -96
- package/dist/DateControl-Cx_CwvNB-Cnu4FwAv.js +0 -35
- package/dist/DateTimeControl-BJsDzufC-BLhNM1JR.js +0 -56
- package/dist/DateTimeFormatPickerControl-C80v1qfK-0bjg1c9X.js +0 -35
- package/dist/DateTimeFormatPickerWithTypeControl-Dt-FKtYV-x-IJKc_b.js +0 -475
- package/dist/DropdownControl-D_BnA4-1-BWnnlfiI.js +0 -30
- package/dist/DynamicInputControl-u5VOv3zx.js +0 -6
- package/dist/ExecutorCoresControl-BnglyGMR-CagN3N5j.js +0 -56
- package/dist/ExecutorMemoryControl-CRATGs9C-Dsj7vG41.js +0 -50
- package/dist/FileUploadControl-D42rjpJg-DIoT6HeI.js +0 -221
- package/dist/GridSelectionControl-BJk8-yiM-CvDVlby0.js +0 -116
- package/dist/IntervalControl-Drljrv-b-WpTsaCtp.js +0 -751
- package/dist/LegacyCredentialsControl-C5OmuHPe.js +0 -87
- package/dist/ManualTwinlistControl-By0Hur_m-zZbz98JO.js +0 -75
- package/dist/MultiFileChooserControl-BDBYwcSY.js +0 -401
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-VVQDBYw7-FEqHVnFo.js +0 -52
- package/dist/OneOfDropdown-CDwwxb3h-DAK0CMDe.js +0 -34
- package/dist/RadioControl-C73s-icb-DSF6WESw.js +0 -24
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-BScekfhl-oNoT_40f.js +0 -60
- package/dist/ResourceControlBase-Bqq1PAX_-5gNwtS9Y.js +0 -183
- package/dist/SettingsSubPanelLayout-82gMWhpv-DwWBU76p.js +0 -70
- package/dist/SingleSelectControl-C_ZKkV5m-nfkmmDbp.js +0 -56
- package/dist/TeamResourceControl-BFMuyWnk-DvcyxCqW.js +0 -47
- package/dist/TextControl-B0ag-3Pv-nwKlVRtp.js +0 -54671
- package/dist/TimeControl-Bt5OcjBc-KiaYQH-m.js +0 -41
- package/dist/TimePartInput-CvwAzDuY-CuNpUUqj.js +0 -253
- package/dist/TimeframesControl-BE3LFgyl-hQJ_5QVJ.js +0 -94
- package/dist/Tooltip-UlemzxdS-Dfhzj7no.js +0 -24
- package/dist/TwinlistControlBase.vue_vue_type_script_setup_true_lang-B5lCsIOD-KqyVUaZj.js +0 -42
- package/dist/ValueSwitch-BXaDBm2C-Ba93O_aZ.js +0 -130
- package/dist/ZonedDateTimeControl-6MUvXzd3-B1B9FPa7.js +0 -72
- package/dist/_Uint8Array-C_ozLuQF-DBc0hZkr.js +0 -349
- package/dist/arrow-dropdown-DMFBPPcK-uCJYJfqE.js +0 -17
- package/dist/arrow-next-BQULX8HT-DDsCfA5A.js +0 -17
- package/dist/floating-ui.vue-Fx4CxKut-DAsMxBCU.js +0 -1057
- package/dist/isArray-WzO_os3q-ClnPWjBY.js +0 -4
- package/dist/localTimeUtils-DBMwKtLh-CTshgG3l.js +0 -12470
- package/dist/src/lsp/completion.d.ts +0 -7
- package/dist/src/lsp/connection.d.ts +0 -56
- package/dist/src/lsp/diagnostics.d.ts +0 -4
- package/dist/src/lsp/doc-sync.d.ts +0 -5
- package/dist/src/lsp/hover.d.ts +0 -5
- package/dist/src/lsp/knime-io.d.ts +0 -22
- package/dist/src/lsp/mapping-utils.d.ts +0 -8
- package/dist/src/lsp/signature-help.d.ts +0 -5
- package/dist/toString-C-CNeuJl-jseUiiTM.js +0 -949
- package/dist/useDropdownNavigation-2Yhk7zes-75raAHpT.js +0 -821
- /package/dist/{useUnknownValuesInTwinlist-BbwGcno5-D2ve7iXH.js → useUnknownValuesInTwinlist-BhhirtmX-D2ve7iXH.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as t, createBlock as
|
|
1
|
+
import { defineComponent as t, createBlock as r, openBlock as l, mergeProps as p, unref as a } from "vue";
|
|
2
2
|
import { c as s } from "./index-Blg1O3Fz-CGafpkU1.js";
|
|
3
|
-
import { L as i } from "./TwinlistControlBase.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { L as i } from "./TwinlistControlBase.vue_vue_type_script_setup_true_lang-t1I2qxJz-DU6yd1RM.js";
|
|
4
4
|
const f = /* @__PURE__ */ t({
|
|
5
5
|
__name: "AnyOfTwinlist",
|
|
6
6
|
props: {
|
|
@@ -8,13 +8,14 @@ const f = /* @__PURE__ */ t({
|
|
|
8
8
|
handleChange: { type: Function },
|
|
9
9
|
changeValue: { type: Function },
|
|
10
10
|
disabled: { type: Boolean },
|
|
11
|
-
|
|
11
|
+
error: { type: Boolean },
|
|
12
|
+
subText: {},
|
|
12
13
|
onRegisterValidation: { type: Function },
|
|
13
14
|
labelForId: {}
|
|
14
15
|
},
|
|
15
16
|
setup(e) {
|
|
16
17
|
const o = e.control.schema.anyOf.map(s);
|
|
17
|
-
return (n, c) => (
|
|
18
|
+
return (n, c) => (l(), r(i, p(n.$props, { "possible-values": a(o) }), null, 16, ["possible-values"]));
|
|
18
19
|
}
|
|
19
20
|
});
|
|
20
21
|
export {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as U, computed as A, createBlock as I, createElementBlock as v, openBlock as c, unref as p, createElementVNode as L, createCommentVNode as w, toDisplayString as
|
|
2
|
-
import {
|
|
3
|
-
import { _ as
|
|
1
|
+
import { defineComponent as U, computed as A, createBlock as I, createElementBlock as v, openBlock as c, unref as p, createElementVNode as L, createCommentVNode as w, toDisplayString as _, inject as Z, provide as k, onMounted as J, Fragment as N, renderSlot as D, normalizeStyle as x, createVNode as B, renderList as q, ref as M, watch as O, nextTick as ee, toRaw as te, resolveComponent as $, normalizeClass as W, withCtx as F, mergeProps as oe } from "vue";
|
|
2
|
+
import { t as z, C as ae, w as C, ag as se, ah as ne, ai as re, s as R, aj as ie, ak as le, I as b, al as de, j as ue, am as ce, x as me, an as K, ao as pe, af as he, ap as ye, aq as ve, ar as fe, as as ge, at as we, au as Ee } from "./TextControl-52n-sttB-DssWw4KP.js";
|
|
3
|
+
import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const Ie = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "vertical"
|
|
7
7
|
}, Se = { class: "title-container" }, Le = ["title"], Ae = { key: 0 }, Ce = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "sub-title"
|
|
10
|
-
},
|
|
10
|
+
}, G = "topLevelElementScope", De = /* @__PURE__ */ U({
|
|
11
11
|
__name: "ArrayLayoutItemLabel",
|
|
12
12
|
props: {
|
|
13
13
|
arrayUiSchema: {},
|
|
@@ -18,7 +18,7 @@ const Ie = {
|
|
|
18
18
|
setup(e) {
|
|
19
19
|
const o = e, t = o.titleConfig, s = A(() => ({
|
|
20
20
|
...o.arrayUiSchema,
|
|
21
|
-
scope:
|
|
21
|
+
scope: G
|
|
22
22
|
})), n = t.type === "provided" ? z(s, "arrayElementTitle", "") : t.title, r = A(
|
|
23
23
|
() => t.type === "provided" ? null : o.index + 1
|
|
24
24
|
), l = z(
|
|
@@ -35,17 +35,17 @@ const Ie = {
|
|
|
35
35
|
L("span", {
|
|
36
36
|
class: "title",
|
|
37
37
|
title: p(n)
|
|
38
|
-
},
|
|
39
|
-
r.value ? (c(), v("span", Ae, " " +
|
|
38
|
+
}, _(p(n)), 9, Le),
|
|
39
|
+
r.value ? (c(), v("span", Ae, " " + _(r.value), 1)) : w("", !0)
|
|
40
40
|
]),
|
|
41
|
-
p(l) ? (c(), v("span", Ce,
|
|
41
|
+
p(l) ? (c(), v("span", Ce, _(p(l)), 1)) : w("", !0)
|
|
42
42
|
]));
|
|
43
43
|
}
|
|
44
|
-
}), Te = /* @__PURE__ */
|
|
44
|
+
}), Te = /* @__PURE__ */ P(De, [["__scopeId", "data-v-d816d601"]]), $e = (e, o) => {
|
|
45
45
|
if ("id" in e)
|
|
46
46
|
return { id: `${o}/items${e.id.replace(/^#/, "")}` };
|
|
47
47
|
const t = e.scope;
|
|
48
|
-
return t ? t ===
|
|
48
|
+
return t ? t === G ? { scope: o } : { scope: `${o}/items${t.replace(/^#/, "")}` } : { scope: t };
|
|
49
49
|
}, be = (e, o, t) => {
|
|
50
50
|
const s = "addStateProviderListener", n = C(s), r = Symbol("arrayParentScope"), l = Z(r) ?? t, a = ({
|
|
51
51
|
indexIds: d = [],
|
|
@@ -87,7 +87,7 @@ const Ie = {
|
|
|
87
87
|
}, Be = { class: "item-header" }, Me = { class: "elements" }, Re = {
|
|
88
88
|
key: 1,
|
|
89
89
|
class: "element"
|
|
90
|
-
}, Ne = { class: "form-component" }, Ue = { class: "compensate-label" },
|
|
90
|
+
}, Ne = { class: "form-component" }, Ue = { class: "compensate-label" }, Pe = /* @__PURE__ */ U({
|
|
91
91
|
__name: "ArrayLayoutItem",
|
|
92
92
|
props: {
|
|
93
93
|
elements: {},
|
|
@@ -114,7 +114,7 @@ const Ie = {
|
|
|
114
114
|
(a) => re(n, a)
|
|
115
115
|
);
|
|
116
116
|
const r = A(() => R(t.path, `${t.index}`)), l = C("sendAlert");
|
|
117
|
-
return
|
|
117
|
+
return J(() => {
|
|
118
118
|
!t.arrayElementTitle && t.elements.length > 1 && l({
|
|
119
119
|
message: "For displaying more than one row of widgets within an array layout element, the configuration must provide a title for an element.",
|
|
120
120
|
type: "error"
|
|
@@ -156,7 +156,7 @@ const Ie = {
|
|
|
156
156
|
D(a.$slots, "controls", {}, void 0, !0)
|
|
157
157
|
]),
|
|
158
158
|
L("div", Me, [
|
|
159
|
-
(c(!0), v(N, null,
|
|
159
|
+
(c(!0), v(N, null, q(a.elements, ([u, m]) => D(a.$slots, "renderer", {
|
|
160
160
|
key: `${r.value}-${u}`,
|
|
161
161
|
path: r.value,
|
|
162
162
|
element: m
|
|
@@ -174,7 +174,7 @@ const Ie = {
|
|
|
174
174
|
])
|
|
175
175
|
]));
|
|
176
176
|
}
|
|
177
|
-
}),
|
|
177
|
+
}), Ve = /* @__PURE__ */ P(Pe, [["__scopeId", "data-v-117e243b"]]), _e = { class: "item-controls" }, Fe = /* @__PURE__ */ U({
|
|
178
178
|
__name: "ArrayLayoutItemControls",
|
|
179
179
|
props: {
|
|
180
180
|
isFirst: { type: Boolean, default: !1 },
|
|
@@ -186,7 +186,7 @@ const Ie = {
|
|
|
186
186
|
emits: ["moveUp", "moveDown", "duplicate", "delete"],
|
|
187
187
|
setup(e, { emit: o }) {
|
|
188
188
|
const t = o;
|
|
189
|
-
return (s, n) => (c(), v("div",
|
|
189
|
+
return (s, n) => (c(), v("div", _e, [
|
|
190
190
|
D(s.$slots, "before", {}, void 0, !0),
|
|
191
191
|
s.showSortControls ? (c(), I(p(b), {
|
|
192
192
|
key: 0,
|
|
@@ -228,19 +228,19 @@ const Ie = {
|
|
|
228
228
|
})) : w("", !0)
|
|
229
229
|
]));
|
|
230
230
|
}
|
|
231
|
-
}),
|
|
231
|
+
}), Ke = /* @__PURE__ */ P(Fe, [["__scopeId", "data-v-5bbaa466"]]), j = 200, Oe = (e) => e.every((o) => typeof o == "string"), ze = (e) => Oe(e) ? e.reduce((o, t) => o + t, "") : !1, We = (e, o) => {
|
|
232
232
|
const t = M(/* @__PURE__ */ new Map()), s = M(!1), n = C("isTriggerActive"), r = () => {
|
|
233
233
|
let a = !1;
|
|
234
234
|
n({ id: de }).then((d) => {
|
|
235
235
|
a = !0, d.state === "SUCCESS" && (t.value = d.result.reduce((u, { indices: m, isActive: f }) => (u.set(m[0], f), u), /* @__PURE__ */ new Map()), s.value = !1);
|
|
236
236
|
}), setTimeout(() => {
|
|
237
237
|
a || (s.value = !0);
|
|
238
|
-
},
|
|
238
|
+
}, j), s.value = !1;
|
|
239
239
|
}, l = M(!1);
|
|
240
|
-
return
|
|
240
|
+
return J(() => {
|
|
241
241
|
setTimeout(() => {
|
|
242
242
|
l.value || (s.value = !0);
|
|
243
|
-
},
|
|
243
|
+
}, j);
|
|
244
244
|
}), O(
|
|
245
245
|
() => ze(o.value),
|
|
246
246
|
(a) => {
|
|
@@ -248,14 +248,14 @@ const Ie = {
|
|
|
248
248
|
},
|
|
249
249
|
{ immediate: !0 }
|
|
250
250
|
), { isEdited: t, isEditedIsLoading: s };
|
|
251
|
-
},
|
|
251
|
+
}, je = U({
|
|
252
252
|
name: "ArrayLayout",
|
|
253
253
|
components: {
|
|
254
254
|
DispatchRenderer: me,
|
|
255
255
|
KdsButton: b,
|
|
256
256
|
KdsEmptyState: ce,
|
|
257
|
-
ArrayLayoutItemControls:
|
|
258
|
-
ArrayLayoutItem:
|
|
257
|
+
ArrayLayoutItemControls: Ke,
|
|
258
|
+
ArrayLayoutItem: Ve
|
|
259
259
|
},
|
|
260
260
|
props: {
|
|
261
261
|
...ue()
|
|
@@ -286,7 +286,7 @@ const Ie = {
|
|
|
286
286
|
});
|
|
287
287
|
const d = C("createArrayAtPath")(
|
|
288
288
|
ve(t.value.uischema.scope)
|
|
289
|
-
), u = (i) => Object.keys(d).find((y) => Ee(y) === i), m = (i) => u(i) ??
|
|
289
|
+
), u = (i) => Object.keys(d).find((y) => Ee(y) === i), m = (i) => u(i) ?? K();
|
|
290
290
|
O(
|
|
291
291
|
() => t.value.data,
|
|
292
292
|
(i) => {
|
|
@@ -307,20 +307,20 @@ const Ie = {
|
|
|
307
307
|
},
|
|
308
308
|
{ immediate: !0 }
|
|
309
309
|
);
|
|
310
|
-
const { isEdited: E, isEditedIsLoading: g } =
|
|
310
|
+
const { isEdited: E, isEditedIsLoading: g } = We(
|
|
311
311
|
t.value.uischema.options.withEditAndReset,
|
|
312
312
|
f
|
|
313
313
|
), {
|
|
314
314
|
addItem: S,
|
|
315
|
-
moveDown:
|
|
316
|
-
moveUp:
|
|
315
|
+
moveDown: V,
|
|
316
|
+
moveUp: H,
|
|
317
317
|
removeItems: Q,
|
|
318
318
|
control: X
|
|
319
319
|
} = we(e);
|
|
320
320
|
return {
|
|
321
321
|
addItem: S,
|
|
322
|
-
moveDown:
|
|
323
|
-
moveUp:
|
|
322
|
+
moveDown: V,
|
|
323
|
+
moveUp: H,
|
|
324
324
|
removeItems: Q,
|
|
325
325
|
handleChange: o,
|
|
326
326
|
control: X,
|
|
@@ -400,7 +400,7 @@ const Ie = {
|
|
|
400
400
|
}), o;
|
|
401
401
|
},
|
|
402
402
|
addDefaultItem() {
|
|
403
|
-
const e =
|
|
403
|
+
const e = K();
|
|
404
404
|
this.newElementId = e, this.addItem(this.control.path, {
|
|
405
405
|
...this.createDefaultValue(
|
|
406
406
|
this.control.schema
|
|
@@ -419,7 +419,7 @@ const Ie = {
|
|
|
419
419
|
duplicateItem(e) {
|
|
420
420
|
const o = te(this.control.data[e]);
|
|
421
421
|
if (o) {
|
|
422
|
-
const t = JSON.parse(JSON.stringify(o)), s =
|
|
422
|
+
const t = JSON.parse(JSON.stringify(o)), s = K();
|
|
423
423
|
t._id = s, this.newElementId = s;
|
|
424
424
|
const n = [...this.control.data];
|
|
425
425
|
n.splice(e + 1, 0, t), this.handleChange(this.control.path, n);
|
|
@@ -447,17 +447,17 @@ const Ie = {
|
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
});
|
|
450
|
-
function
|
|
450
|
+
function Je(e, o, t, s, n, r) {
|
|
451
451
|
var f, T;
|
|
452
452
|
const l = $("DispatchRenderer"), a = $("ArrayLayoutItemControls"), d = $("ArrayLayoutItem"), u = $("KdsButton"), m = $("KdsEmptyState");
|
|
453
453
|
return e.control.visible ? (c(), v("div", {
|
|
454
454
|
key: 0,
|
|
455
|
-
class:
|
|
455
|
+
class: W(["array", { cards: e.useCardLayout }])
|
|
456
456
|
}, [
|
|
457
457
|
e.numElements > 0 ? (c(), v(N, { key: 0 }, [
|
|
458
|
-
(c(!0), v(N, null,
|
|
458
|
+
(c(!0), v(N, null, q(e.control.data, (E, g) => (c(), v("div", {
|
|
459
459
|
key: `${e.control.path}-${E._id}`,
|
|
460
|
-
class:
|
|
460
|
+
class: W(["item", { card: e.useCardLayout }])
|
|
461
461
|
}, [
|
|
462
462
|
B(d, {
|
|
463
463
|
id: E._id,
|
|
@@ -474,14 +474,14 @@ function je(e, o, t, s, n, r) {
|
|
|
474
474
|
"use-card-layout": e.useCardLayout,
|
|
475
475
|
"use-section-layout": e.useSectionLayout
|
|
476
476
|
}, {
|
|
477
|
-
renderer:
|
|
477
|
+
renderer: F(({ element: S, path: V }) => [
|
|
478
478
|
B(l, {
|
|
479
479
|
schema: e.control.schema,
|
|
480
480
|
uischema: S,
|
|
481
|
-
path:
|
|
481
|
+
path: V
|
|
482
482
|
}, null, 8, ["schema", "uischema", "path"])
|
|
483
483
|
]),
|
|
484
|
-
controls:
|
|
484
|
+
controls: F(() => [
|
|
485
485
|
B(a, {
|
|
486
486
|
"is-first": g === 0,
|
|
487
487
|
"is-last": g === e.control.data.length - 1,
|
|
@@ -493,7 +493,7 @@ function je(e, o, t, s, n, r) {
|
|
|
493
493
|
onDuplicate: (S) => e.duplicateItem(g),
|
|
494
494
|
onDelete: (S) => e.deleteItem(g)
|
|
495
495
|
}, {
|
|
496
|
-
before:
|
|
496
|
+
before: F(() => [
|
|
497
497
|
e.showEditAndResetControls ? (c(), I(l, oe({
|
|
498
498
|
key: 0,
|
|
499
499
|
ref_for: !0
|
|
@@ -546,7 +546,7 @@ function je(e, o, t, s, n, r) {
|
|
|
546
546
|
}, null, 8, ["button", "description", "headline"]))
|
|
547
547
|
], 2)) : w("", !0);
|
|
548
548
|
}
|
|
549
|
-
const Qe = /* @__PURE__ */
|
|
549
|
+
const Qe = /* @__PURE__ */ P(je, [["render", Je], ["__scopeId", "data-v-efbd59b2"]]);
|
|
550
550
|
export {
|
|
551
551
|
Qe as default
|
|
552
552
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { FunctionButton as
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent as H, ref as l, computed as _, onMounted as q, createElementBlock as S, openBlock as m, createVNode as z, createBlock as L, createCommentVNode as C, unref as b, withCtx as T, createElementVNode as U, toDisplayString as B } from "vue";
|
|
2
|
+
import { FunctionButton as W, LoadingIcon as j } from "@knime/components";
|
|
3
|
+
import { w as f, a5 as P, a6 as G } from "./TextControl-52n-sttB-DssWw4KP.js";
|
|
4
4
|
import { _ as J } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const k = ({ view: u, model: i }) => ({
|
|
6
6
|
...u,
|
|
@@ -8,7 +8,7 @@ const k = ({ view: u, model: i }) => ({
|
|
|
8
8
|
}), K = { class: "button-wrapper" }, Q = { class: "button-input-text" }, X = {
|
|
9
9
|
key: 1,
|
|
10
10
|
class: "error-message"
|
|
11
|
-
}, Y = /* @__PURE__ */
|
|
11
|
+
}, Y = /* @__PURE__ */ H({
|
|
12
12
|
__name: "ButtonControl",
|
|
13
13
|
props: {
|
|
14
14
|
control: {},
|
|
@@ -16,50 +16,50 @@ const k = ({ view: u, model: i }) => ({
|
|
|
16
16
|
changeValue: { type: Function },
|
|
17
17
|
disabled: { type: Boolean },
|
|
18
18
|
labelForId: {},
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
error: { type: Boolean },
|
|
20
|
+
subText: {},
|
|
21
21
|
onRegisterValidation: { type: Function }
|
|
22
22
|
},
|
|
23
23
|
setup(u) {
|
|
24
|
-
const i = f("registerWatcher"),
|
|
25
|
-
|
|
24
|
+
const i = f("registerWatcher"), x = f("getData"), g = f("applyData"), n = u, r = l(null), V = () => {
|
|
25
|
+
r.value = null;
|
|
26
26
|
}, h = l({}), v = (t) => {
|
|
27
27
|
h.value = k(t);
|
|
28
|
-
}, s = l({}),
|
|
28
|
+
}, s = l({}), w = _(
|
|
29
29
|
() => {
|
|
30
30
|
var t;
|
|
31
31
|
return ((t = n.control.uischema.options) == null ? void 0 : t.states) ?? [];
|
|
32
32
|
}
|
|
33
33
|
), y = (t) => {
|
|
34
|
-
|
|
35
|
-
},
|
|
34
|
+
V(), s.value = w.value.find(({ id: e }) => e === t);
|
|
35
|
+
}, E = (t) => {
|
|
36
36
|
setTimeout(() => n.changeValue(t));
|
|
37
|
-
},
|
|
37
|
+
}, F = (t) => {
|
|
38
38
|
if (t === null)
|
|
39
39
|
return;
|
|
40
40
|
const { settingValue: e, setSettingValue: o, buttonState: a } = t;
|
|
41
|
-
o &&
|
|
41
|
+
o && E(e), y(a);
|
|
42
42
|
}, D = (t, e = () => {
|
|
43
43
|
}) => {
|
|
44
44
|
var a;
|
|
45
45
|
const { state: o } = t;
|
|
46
46
|
if (o === "SUCCESS") {
|
|
47
|
-
|
|
47
|
+
F(t.result);
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
|
-
o === "FAIL" && (
|
|
51
|
-
}, p = l(0), I =
|
|
50
|
+
o === "FAIL" && (r.value = (a = t.message) == null ? void 0 : a[0]), e();
|
|
51
|
+
}, p = l(0), I = P(), d = async ({
|
|
52
52
|
method: t,
|
|
53
53
|
options: e,
|
|
54
54
|
handler: o
|
|
55
55
|
}, a = () => {
|
|
56
56
|
}) => {
|
|
57
57
|
p.value += 1;
|
|
58
|
-
const
|
|
58
|
+
const c = await x({
|
|
59
59
|
method: t,
|
|
60
60
|
options: [I, o, ...e]
|
|
61
61
|
});
|
|
62
|
-
p.value -= 1, D(
|
|
62
|
+
p.value -= 1, D(c, a);
|
|
63
63
|
}, A = async (t) => {
|
|
64
64
|
v(t), await d({
|
|
65
65
|
method: "settings.initializeButton",
|
|
@@ -73,8 +73,8 @@ const k = ({ view: u, model: i }) => ({
|
|
|
73
73
|
handler: n.control.uischema.options.updateOptions.updateHandler
|
|
74
74
|
});
|
|
75
75
|
}, N = async () => {
|
|
76
|
-
var
|
|
77
|
-
if (g && ((
|
|
76
|
+
var c;
|
|
77
|
+
if (g && ((c = n.control.uischema.options) != null && c.incrementAndApplyOnClick)) {
|
|
78
78
|
g((R) => G(R, n.control.path, n.control.data + 1));
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
@@ -90,7 +90,7 @@ const k = ({ view: u, model: i }) => ({
|
|
|
90
90
|
a
|
|
91
91
|
);
|
|
92
92
|
};
|
|
93
|
-
|
|
93
|
+
q(() => {
|
|
94
94
|
var e, o, a;
|
|
95
95
|
i({
|
|
96
96
|
init: A,
|
|
@@ -110,20 +110,20 @@ const k = ({ view: u, model: i }) => ({
|
|
|
110
110
|
}
|
|
111
111
|
);
|
|
112
112
|
return (t, e) => (m(), S("div", K, [
|
|
113
|
-
z(
|
|
113
|
+
z(b(W), {
|
|
114
114
|
disabled: s.value.disabled,
|
|
115
115
|
class: "button-input",
|
|
116
116
|
primary: s.value.primary,
|
|
117
117
|
compact: "",
|
|
118
118
|
onClick: N
|
|
119
119
|
}, {
|
|
120
|
-
default:
|
|
121
|
-
|
|
120
|
+
default: T(() => [
|
|
121
|
+
U("div", Q, B(s.value.text), 1)
|
|
122
122
|
]),
|
|
123
123
|
_: 1
|
|
124
124
|
}, 8, ["disabled", "primary"]),
|
|
125
|
-
p.value > 0 ? (m(), L(
|
|
126
|
-
|
|
125
|
+
p.value > 0 ? (m(), L(b(j), { key: 0 })) : C("", !0),
|
|
126
|
+
r.value && O.value ? (m(), S("span", X, " Error: " + B(r.value), 1)) : C("", !0)
|
|
127
127
|
]));
|
|
128
128
|
}
|
|
129
129
|
}), nt = /* @__PURE__ */ J(Y, [["__scopeId", "data-v-c6a54afa"]]);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineComponent as n, ref as s, createElementBlock as c, openBlock as u, createElementVNode as d, renderSlot as r, createVNode as i, unref as b } from "vue";
|
|
2
|
+
import { P as p, r as v } from "./TextControl-52n-sttB-DssWw4KP.js";
|
|
3
|
+
const m = { class: "checkbox-container" }, f = /* @__PURE__ */ n({
|
|
4
|
+
__name: "CheckboxControl",
|
|
5
|
+
props: {
|
|
6
|
+
control: {},
|
|
7
|
+
handleChange: { type: Function },
|
|
8
|
+
changeValue: { type: Function },
|
|
9
|
+
disabled: { type: Boolean },
|
|
10
|
+
labelForId: {},
|
|
11
|
+
error: { type: Boolean },
|
|
12
|
+
subText: {},
|
|
13
|
+
onRegisterValidation: { type: Function }
|
|
14
|
+
},
|
|
15
|
+
setup(e) {
|
|
16
|
+
const l = s(!1);
|
|
17
|
+
return (a, o) => (u(), c("div", {
|
|
18
|
+
class: "checkbox-input",
|
|
19
|
+
onMouseover: o[1] || (o[1] = (t) => l.value = !0),
|
|
20
|
+
onMouseleave: o[2] || (o[2] = (t) => l.value = !1)
|
|
21
|
+
}, [
|
|
22
|
+
d("div", m, [
|
|
23
|
+
i(b(v), {
|
|
24
|
+
class: "checkbox",
|
|
25
|
+
disabled: e.disabled,
|
|
26
|
+
"model-value": e.control.data,
|
|
27
|
+
label: e.control.label,
|
|
28
|
+
error: e.error,
|
|
29
|
+
"sub-text": e.subText,
|
|
30
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => e.changeValue(t === !0))
|
|
31
|
+
}, null, 8, ["disabled", "model-value", "label", "error", "sub-text"]),
|
|
32
|
+
r(a.$slots, "icon", {}, void 0, !0)
|
|
33
|
+
]),
|
|
34
|
+
r(a.$slots, "buttons", { hover: l.value }, void 0, !0)
|
|
35
|
+
], 32));
|
|
36
|
+
}
|
|
37
|
+
}), k = /* @__PURE__ */ p(f, [["__scopeId", "data-v-5bf70a5e"]]);
|
|
38
|
+
export {
|
|
39
|
+
k as default
|
|
40
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { defineComponent as s, computed as n, ref as c, toRef as d, createBlock as i, createCommentVNode as m, onMounted as p, openBlock as b, unref as f } from "vue";
|
|
2
|
+
import { W as h } from "./TextControl-52n-sttB-DssWw4KP.js";
|
|
3
|
+
import { c as v } from "./index-Blg1O3Fz-CGafpkU1.js";
|
|
4
|
+
import { t as y } from "./usePossibleValues-DiYOmnZW-CaSLjdK-.js";
|
|
5
|
+
const C = /* @__PURE__ */ s({
|
|
6
|
+
__name: "CheckboxesControl",
|
|
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(e) {
|
|
18
|
+
const o = e, r = n(
|
|
19
|
+
() => {
|
|
20
|
+
var l;
|
|
21
|
+
return (l = o.control.uischema.options) == null ? void 0 : l.checkboxLayout;
|
|
22
|
+
}
|
|
23
|
+
), a = c(null), { possibleValues: u } = y(d(o, "control")), t = n(() => a.value ?? u.value);
|
|
24
|
+
return p(() => {
|
|
25
|
+
a.value = o.control.schema.anyOf ? o.control.schema.anyOf.map(v) : null;
|
|
26
|
+
}), (l, x) => t.value ? (b(), i(f(h), {
|
|
27
|
+
key: 0,
|
|
28
|
+
id: e.labelForId,
|
|
29
|
+
class: "checkboxes",
|
|
30
|
+
"possible-values": t.value,
|
|
31
|
+
alignment: r.value,
|
|
32
|
+
disabled: e.disabled,
|
|
33
|
+
"model-value": e.control.data,
|
|
34
|
+
error: e.error,
|
|
35
|
+
"sub-text": e.subText,
|
|
36
|
+
"onUpdate:modelValue": e.changeValue
|
|
37
|
+
}, null, 8, ["id", "possible-values", "alignment", "disabled", "model-value", "error", "sub-text", "onUpdate:modelValue"])) : m("", !0);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
export {
|
|
41
|
+
C as default
|
|
42
|
+
};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { defineComponent as X, computed as g, useTemplateRef as q, ref as b, watch as m, inject as B, onMounted as I, onUnmounted as J, createElementBlock as Q, openBlock as Y, createElementVNode as v, normalizeClass as Z, toDisplayString as ee, unref as s, createVNode as oe, normalizeStyle as te } from "vue";
|
|
2
|
+
import { t as ne, a7 as ae, a8 as re, a9 as se } from "./TextControl-52n-sttB-DssWw4KP.js";
|
|
3
|
+
import { editor as f, MarkerSeverity as ie } from "monaco-editor";
|
|
4
|
+
import { K as le, a as ce, M as de } from "./ai-bar-DDtzX23v.js";
|
|
5
|
+
import { _ as ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const pe = { class: "wrapper" }, ge = { class: "title" }, me = { class: "actions" }, ve = ["id"], fe = 18, he = 3, Me = "vs-light", ye = "vs-dark", Ce = /* @__PURE__ */ X({
|
|
7
|
+
__name: "CodeEditorControl",
|
|
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(F) {
|
|
19
|
+
var x, H, N, A;
|
|
20
|
+
const a = F, i = a.control.uischema, K = g(() => i), S = ((x = i.options) == null ? void 0 : x.language) ?? "plaintext", h = ((H = i.options) == null ? void 0 : H.fileType) ?? S.toUpperCase(), u = ((N = i.options) == null ? void 0 : N.minRows) ?? 3, W = ((A = i.options) == null ? void 0 : A.maxRows) ?? 15, c = ne(K, "languageServerId"), k = (i.providedOptions ?? []).includes(
|
|
21
|
+
"languageServerId"
|
|
22
|
+
), R = q("editor-container");
|
|
23
|
+
let e, p, M;
|
|
24
|
+
const w = b(fe), y = b(u), z = g(
|
|
25
|
+
() => Math.min(W, Math.max(u, y.value))
|
|
26
|
+
), G = g(
|
|
27
|
+
() => `${w.value * z.value + he}px`
|
|
28
|
+
), O = (o) => o ? ye : Me, { isDarkMode: T } = ae();
|
|
29
|
+
m(T, (o) => {
|
|
30
|
+
e && e.updateOptions({ theme: O(o) });
|
|
31
|
+
});
|
|
32
|
+
const D = b([]), P = g(() => {
|
|
33
|
+
const o = D.value;
|
|
34
|
+
if (o.length === 0)
|
|
35
|
+
return null;
|
|
36
|
+
const t = o[0], n = o.length > 1 ? `${t} (+${o.length - 1} more)` : t;
|
|
37
|
+
return () => ({ errors: [n] });
|
|
38
|
+
}), C = a.onRegisterValidation(P), { copy: $, copied: _ } = re({ copiedDuring: 2e3 }), U = () => {
|
|
39
|
+
var t;
|
|
40
|
+
const o = (t = e == null ? void 0 : e.getModel()) == null ? void 0 : t.getValue();
|
|
41
|
+
o && $(o);
|
|
42
|
+
}, l = k ? B("lspEventDispatcher") : void 0, E = k ? B("getData") : void 0, j = async (o) => {
|
|
43
|
+
const t = e == null ? void 0 : e.getModel();
|
|
44
|
+
if (!t || !l || !E)
|
|
45
|
+
return;
|
|
46
|
+
const n = await E({
|
|
47
|
+
method: "codeEditorLanguageServer.connect",
|
|
48
|
+
options: [o]
|
|
49
|
+
});
|
|
50
|
+
if (!(n != null && n.connected))
|
|
51
|
+
return;
|
|
52
|
+
const r = new le((L) => {
|
|
53
|
+
l.register(o, L);
|
|
54
|
+
}), d = new ce(
|
|
55
|
+
(L) => E({
|
|
56
|
+
method: "codeEditorLanguageServer.sendMessage",
|
|
57
|
+
options: [o, L]
|
|
58
|
+
})
|
|
59
|
+
);
|
|
60
|
+
try {
|
|
61
|
+
M = await de.create(t, r, d);
|
|
62
|
+
} catch {
|
|
63
|
+
l.unregister(o);
|
|
64
|
+
}
|
|
65
|
+
}, V = () => {
|
|
66
|
+
c.value && j(c.value);
|
|
67
|
+
};
|
|
68
|
+
return I(() => {
|
|
69
|
+
var o;
|
|
70
|
+
R.value && (e = f.create(R.value, {
|
|
71
|
+
value: a.control.data ?? "",
|
|
72
|
+
language: S,
|
|
73
|
+
automaticLayout: !0,
|
|
74
|
+
minimap: { enabled: !1 },
|
|
75
|
+
scrollBeyondLastLine: !1,
|
|
76
|
+
lineNumbersMinChars: 3,
|
|
77
|
+
fontFamily: '"Roboto Mono", monospace',
|
|
78
|
+
fontWeight: "400",
|
|
79
|
+
readOnly: a.disabled,
|
|
80
|
+
theme: O(T.value),
|
|
81
|
+
fixedOverflowWidgets: !0
|
|
82
|
+
}), w.value = e.getOption(f.EditorOption.lineHeight), y.value = ((o = e.getModel()) == null ? void 0 : o.getLineCount()) ?? u, e.onDidChangeModelContent(() => {
|
|
83
|
+
var n, r;
|
|
84
|
+
const t = ((n = e == null ? void 0 : e.getModel()) == null ? void 0 : n.getValue()) ?? "";
|
|
85
|
+
y.value = ((r = e == null ? void 0 : e.getModel()) == null ? void 0 : r.getLineCount()) ?? u, t !== a.control.data && a.changeValue(t);
|
|
86
|
+
}), p = f.onDidChangeMarkers((t) => {
|
|
87
|
+
const n = e == null ? void 0 : e.getModel();
|
|
88
|
+
if (n && t.some((r) => r.toString() === n.uri.toString())) {
|
|
89
|
+
const r = f.getModelMarkers({ resource: n.uri });
|
|
90
|
+
D.value = r.filter((d) => d.severity === ie.Error).map((d) => d.message);
|
|
91
|
+
}
|
|
92
|
+
}), V());
|
|
93
|
+
}), m(() => c.value, V), m(
|
|
94
|
+
() => a.disabled,
|
|
95
|
+
(o) => {
|
|
96
|
+
e == null || e.updateOptions({ readOnly: o });
|
|
97
|
+
}
|
|
98
|
+
), m(
|
|
99
|
+
() => a.control.data,
|
|
100
|
+
(o) => {
|
|
101
|
+
var t, n;
|
|
102
|
+
e && o !== ((t = e.getModel()) == null ? void 0 : t.getValue()) && ((n = e.getModel()) == null || n.setValue(o ?? ""));
|
|
103
|
+
}
|
|
104
|
+
), J(() => {
|
|
105
|
+
M && (M.dispose(), c.value && (l == null || l.unregister(c.value))), p == null || p.dispose(), C == null || C(), e == null || e.dispose();
|
|
106
|
+
}), (o, t) => (Y(), Q("div", pe, [
|
|
107
|
+
v("div", {
|
|
108
|
+
class: Z(["header", { invalid: o.error }])
|
|
109
|
+
}, [
|
|
110
|
+
v("span", ge, ee(s(h)), 1),
|
|
111
|
+
v("div", me, [
|
|
112
|
+
oe(s(se), {
|
|
113
|
+
ariaLabel: s(_) ? "Copied " + s(h) + " to clipboard" : "Copy " + s(h) + " to clipboard",
|
|
114
|
+
"leading-icon": s(_) ? "checkmark" : "copy",
|
|
115
|
+
state: s(_) ? "success" : "default",
|
|
116
|
+
size: "small",
|
|
117
|
+
variant: "transparent",
|
|
118
|
+
onClick: U
|
|
119
|
+
}, null, 8, ["ariaLabel", "leading-icon", "state"])
|
|
120
|
+
])
|
|
121
|
+
], 2),
|
|
122
|
+
v("div", {
|
|
123
|
+
id: o.labelForId,
|
|
124
|
+
ref: "editor-container",
|
|
125
|
+
class: "code-editor-container",
|
|
126
|
+
style: te({ height: G.value })
|
|
127
|
+
}, null, 12, ve)
|
|
128
|
+
]));
|
|
129
|
+
}
|
|
130
|
+
}), ke = /* @__PURE__ */ ue(Ce, [["__scopeId", "data-v-4e65cd5d"]]);
|
|
131
|
+
export {
|
|
132
|
+
ke as default
|
|
133
|
+
};
|
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
import { defineComponent as o, createBlock as a, openBlock as l, unref as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as o, createBlock as a, openBlock as l, unref as r } from "vue";
|
|
2
|
+
import { G as t } from "./TextControl-52n-sttB-DssWw4KP.js";
|
|
3
|
+
const p = /* @__PURE__ */ o({
|
|
4
4
|
__name: "ColorControl",
|
|
5
5
|
props: {
|
|
6
6
|
control: {},
|
|
7
7
|
handleChange: { type: Function },
|
|
8
8
|
changeValue: { type: Function },
|
|
9
9
|
disabled: { type: Boolean },
|
|
10
|
-
|
|
10
|
+
error: { type: Boolean },
|
|
11
|
+
subText: {},
|
|
11
12
|
onRegisterValidation: { type: Function },
|
|
12
13
|
labelForId: {}
|
|
13
14
|
},
|
|
14
15
|
setup(e) {
|
|
15
|
-
return (
|
|
16
|
+
return (n, d) => (l(), a(r(t), {
|
|
16
17
|
id: e.labelForId,
|
|
17
18
|
ariaLabel: e.control.label,
|
|
18
19
|
"model-value": e.control.data ?? "",
|
|
19
20
|
disabled: e.disabled,
|
|
20
|
-
error:
|
|
21
|
+
error: e.error,
|
|
22
|
+
"sub-text": e.subText,
|
|
21
23
|
"onUpdate:modelValue": e.changeValue
|
|
22
|
-
}, null, 8, ["id", "ariaLabel", "model-value", "disabled", "error", "onUpdate:modelValue"]));
|
|
24
|
+
}, null, 8, ["id", "ariaLabel", "model-value", "disabled", "error", "sub-text", "onUpdate:modelValue"]));
|
|
23
25
|
}
|
|
24
26
|
});
|
|
25
27
|
export {
|
|
26
|
-
|
|
28
|
+
p as default
|
|
27
29
|
};
|