@knime/scripting-editor 0.0.126 → 0.0.128
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AnyOfTwinlist-C0gjxeQW-DdmyqOPW.js → AnyOfTwinlist-SXwBBRp2-Bqhgogiq.js} +5 -4
- package/dist/{ArrayLayout-0R2_c1hY.js → ArrayLayout-Dh1QLh8H.js} +41 -41
- package/dist/{ButtonControl-CAZYfYSF.js → ButtonControl-CaaKmrFb.js} +21 -21
- package/dist/CheckboxControl-CbWn843V-BTn1nVWQ.js +40 -0
- package/dist/CheckboxesControl-BiQOMrsp-BCRpKfZV.js +42 -0
- package/dist/CodeEditorControl-BhQdOlWM.js +133 -0
- package/dist/{ColorControl-DeSwgyjS-D4t0Ool5.js → ColorControl-B_mQdOCs-Dl3vNMVD.js} +10 -8
- package/dist/{ColorPreviewControl-CntI0nTL-B4W3C2Y0.js → ColorPreviewControl-BREwhSO9-uTvGtvF_.js} +21 -21
- package/dist/ComboBoxControl-BIZlnizm-7kcBjn_F.js +42 -0
- package/dist/{ConfigurationNodeNotSupported-DlGIHCIw.js → ConfigurationNodeNotSupported-CILWy-1v.js} +1 -1
- package/dist/{ControlWithSubParameters-yO5GSBha.js → ControlWithSubParameters-DNFQ_0Ol.js} +4 -4
- package/dist/CredentialsControl-DYI2eHZH.js +33 -0
- package/dist/CredentialsControlBase-Be_pBbr8.js +96 -0
- package/dist/DateControl-vkwY-8Qy-D35WLbKn.js +44 -0
- package/dist/DateTimeControl-CtXV6_D2-yc6SBo7d.js +89 -0
- package/dist/DateTimeFormatPickerControl-a7MPaNFN-CerJZl-s.js +37 -0
- package/dist/DateTimeFormatPickerWithTypeControl-B9Nu0dh1-B3FsqcQG.js +598 -0
- package/dist/{DialogFileExplorer-LqJqncub.js → DialogFileExplorer-BZuisQeJ.js} +2 -2
- package/dist/{DirtyTrackerRenderer-UW-Cxf7s.js → DirtyTrackerRenderer-qBfv19cz.js} +7 -7
- package/dist/DropdownControl-BUwovb4K-DZFITmfl.js +32 -0
- package/dist/DynamicInputControl-Br_sRCEw.js +6 -0
- package/dist/ExecutorCoresControl-DN-1o1XJ-B6JZf8lR.js +51 -0
- package/dist/ExecutorMemoryControl-UzqzP4hI-DEOR9ioJ.js +44 -0
- package/dist/{FileChooserControl-D3xMMTLF.js → FileChooserControl-UiGh3RA6.js} +4 -3
- package/dist/{FileChooserControlBase-CI3pdTpr.js → FileChooserControlBase-C0jKG7YK.js} +148 -144
- package/dist/{FileChooserControlForMultiFile-DuAaeTcz.js → FileChooserControlForMultiFile-Di4Pk53x.js} +5 -4
- package/dist/FileUploadControl-WC8TFQHe-BuGo0ZRQ.js +545 -0
- package/dist/GridSelectionControl-BgqT1t9d-BRz6UGC9.js +117 -0
- package/dist/{HorizontalLayout-DwdPdBTW-DNqvkBZ6.js → HorizontalLayout-CESRA3YR-DDxfF6ry.js} +7 -7
- package/dist/{IntegerControl-D8OzxbRA-DLAl4Ar6.js → IntegerControl-DKXN0mcE-DGJ3KRkb.js} +5 -4
- package/dist/IntervalControl-BswGPjcV-BmiAjHOy.js +51 -0
- package/dist/{LabeledGroup-CGcLflGw.js → LabeledGroup-5xwthvS8.js} +5 -5
- package/dist/LegacyCredentialsControl-DjJGg7vr.js +88 -0
- package/dist/{LinkControl-BvBBTFCs-B4x8DZjr.js → LinkControl-DTqOfnTg-BA_L4RtV.js} +10 -10
- package/dist/{LoadingDropdown.vue_vue_type_script_setup_true_lang-BLSG6Lpo-DtWE26ZK.js → LoadingDropdown.vue_vue_type_script_setup_true_lang-Cic7UEOM-RBq7a_S3.js} +5 -5
- package/dist/ManualTwinlistControl-CoZdPu6n-BF9bz65d.js +77 -0
- package/dist/MultiFileChooserControl-BFW6QI_y.js +342 -0
- package/dist/{MultiRuleWrapper-BYA-GGQr.js → MultiRuleWrapper-B2ISI9_F.js} +1 -1
- package/dist/{MultiSelectListBoxControl-nmvLP18g-fumwGYev.js → MultiSelectListBoxControl-CjM94miu-DiufrbYU.js} +9 -8
- package/dist/{MultimodeTwinlistControl-yCdeWH2E-BiXMa7PW.js → MultimodeTwinlistControl-NMnPBn6a-DQkdp8td.js} +68 -66
- package/dist/{NameFilter-D1TMJydD-fZcEEzXz.js → NameFilter-DuVJG0SF-DAH98lDD.js} +7 -6
- package/dist/{NumberControl-uLMOLEbg-DEvsj1Mn.js → NumberControl-NMJmxuze-Bih_-Og_.js} +8 -7
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-bph2Cze8-BGSxRVVz.js +54 -0
- package/dist/OneOfDropdown-CwJemyYo-Do-MOPV7.js +36 -0
- package/dist/{RadioButtonsWithDescriptionControl-5M_6G7Qk-ChulOTPN.js → RadioButtonsWithDescriptionControl-BK3UCreL-qWSS1DwX.js} +17 -17
- package/dist/RadioControl-ts1-JozG-Bt4Ssbnx.js +21 -0
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-jxw_5dVt-B1RfPe72.js +64 -0
- package/dist/ResourceControlBase-FDiyHyQi-n4PYam8s.js +113 -0
- package/dist/{RichTextControl-D9QD2_uO-XEpxJaH_.js → RichTextControl-DH6GqUeF-DhVLA7bv.js} +7748 -6742
- package/dist/{SectionLayout-DY27pAtG-D9m5lyoN.js → SectionLayout-Cb3_L9Te-Ch2TL8Ns.js} +5 -5
- package/dist/{SettingsSubPanelLayout-82gMWhpv-CmIBNBVs.js → SettingsSubPanelLayout-DruWJjQA-BPDZqGKD.js} +22 -22
- package/dist/{SimpleTwinlistControl-P4KEYOq0-RZuXJS5p.js → SimpleTwinlistControl-CnBe4qsI-QQXdW90w.js} +7 -6
- package/dist/SingleSelectControl-C4Qzk2Ki-B4KRT-4U.js +58 -0
- package/dist/{SingleSelectListBoxControl-oMWH0vEE-CozC-ARB.js → SingleSelectListBoxControl-sLe2Y67h-aYZGPc-_.js} +14 -13
- package/dist/SortListControl-ChpYm3CZ-BHWX9fRm.js +112 -0
- package/dist/{StringFileChooserControl-CbuY9W_N.js → StringFileChooserControl-BGMU3nOp.js} +33 -30
- package/dist/{StyledListItem-D3LSfgGV-D8iKceFt.js → StyledListItem-BJEJoIzr-5JeRrk8P.js} +1 -1
- package/dist/{TeamAndSpacesControl-CH5ImByy-XXNR9HMn.js → TeamAndSpacesControl-7ZXPUwBb-DdkrLxnT.js} +21 -20
- package/dist/TeamResourceControl-BZDXMRLZ-Moa_pv2o.js +44 -0
- package/dist/{TextAreaControl-CrsZSU_f-D43BOhiB.js → TextAreaControl-BDGtgWys-B5coKRJL.js} +11 -9
- package/dist/TextControl-8jfyOJKb-BkT4AwNP.js +50876 -0
- package/dist/TimeControl-Dvt5U7xN-CTkb_kae.js +71 -0
- package/dist/TimeframesControl-DcUxC3kX-1e3a-BRE.js +352 -0
- package/dist/{TwinlistControlBase.vue_vue_type_script_setup_true_lang-B5lCsIOD-DoWlznIt.js → TwinlistControlBase.vue_vue_type_script_setup_true_lang-Buo-KA0N-tQDZulBA.js} +16 -13
- package/dist/{TypedStringFilter-ry7fTUTx-BqgMPUbD.js → TypedStringFilter-Cx8OCQcE-Cx82QY6q.js} +7 -6
- package/dist/{ValueSwitchControl-aVx7pUi9-BQVaMPgo.js → ValueSwitchControl-1ax1yKbk-Dssrj-K0.js} +7 -6
- package/dist/{VennDiagramLayout-Bh7M9sdS.js → VennDiagramLayout-TqRKYgWl.js} +42 -42
- package/dist/{VerticalLayout-Bv-LJOZ0-Bhthjlig.js → VerticalLayout-DnyoqTeh-COL0gWjl.js} +6 -6
- package/dist/ZonedDateTimeControl-mIIRwaHz-BSWCo5dl.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-grENCIdl.js +22 -0
- package/dist/main.js +9985 -13280
- package/dist/parameters.js +1 -1
- package/dist/plainDateTimeUtils-CR0UhpkD-DU-LM4_V.js +52 -0
- package/dist/src/scripting-service.d.ts +1 -1
- package/dist/useDropdownNavigation-CdrbT-CQ-Dxb_y1Fq.js +2003 -0
- package/dist/{useFileChooserBackend-Cf-ZWfup.js → useFileChooserBackend-DeqNZEZE.js} +6 -6
- package/dist/usePlainDateTimeBatch-Bd2G-GY9-DO2Zu0Mj.js +34 -0
- package/dist/{usePossibleValues-B-W6u-1T-CRO8qQzd.js → usePossibleValues-CtPV4Cjp-B6UlAJ8A.js} +3 -3
- package/package.json +6 -8
- package/dist/CheckboxControl-CS6iXHnF-aIaqHkPz.js +0 -38
- package/dist/CheckboxesControl-CPKIkyWt-Dfc5NCOp.js +0 -40
- package/dist/CodeEditorControl-BfC_vRfK.js +0 -103
- package/dist/ComboBoxControl-DBYnBkC4-YvQjV2xd.js +0 -40
- package/dist/CredentialsControl-BUdDVnKd.js +0 -32
- package/dist/CredentialsControlBase-CtiUUF6O.js +0 -96
- package/dist/DateControl-Cx_CwvNB-C6ZnNH2a.js +0 -35
- package/dist/DateTimeControl-BJsDzufC-BmyUPQid.js +0 -56
- package/dist/DateTimeFormatPickerControl-C80v1qfK-CksyyT9D.js +0 -35
- package/dist/DateTimeFormatPickerWithTypeControl-Dt-FKtYV-gb4KLPWO.js +0 -475
- package/dist/DropdownControl-D_BnA4-1-CZ3UBEZH.js +0 -30
- package/dist/DynamicInputControl-BW5MedWv.js +0 -6
- package/dist/ExecutorCoresControl-BnglyGMR-DCluaRJt.js +0 -56
- package/dist/ExecutorMemoryControl-CRATGs9C-BVornFOp.js +0 -50
- package/dist/FileUploadControl-D42rjpJg-BV-xemVF.js +0 -221
- package/dist/GridSelectionControl-BJk8-yiM-B-qEAJYS.js +0 -116
- package/dist/IntervalControl-Drljrv-b-HGlNWiOa.js +0 -751
- package/dist/LegacyCredentialsControl-SuSGcr6Q.js +0 -87
- package/dist/ManualTwinlistControl-By0Hur_m-CZ6mwit-.js +0 -75
- package/dist/MultiFileChooserControl-CnC8Sgqt.js +0 -401
- package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-VVQDBYw7-DCpZfhmB.js +0 -52
- package/dist/OneOfDropdown-CDwwxb3h-1Z26R3-a.js +0 -34
- package/dist/RadioControl-C73s-icb-BvMjmtnc.js +0 -24
- package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-BScekfhl-Cu_jwWBt.js +0 -60
- package/dist/ResourceControlBase-Bqq1PAX_-Dr521i_s.js +0 -183
- package/dist/SingleSelectControl-C_ZKkV5m-DnVAQEBt.js +0 -56
- package/dist/SortListControl-4v3T2j_9-Dd2NciQI.js +0 -110
- package/dist/TeamResourceControl-BFMuyWnk-BjuVm4u6.js +0 -47
- package/dist/TextControl-B0ag-3Pv-CVDIw3MG.js +0 -54656
- package/dist/TimeControl-Bt5OcjBc-Bb-uwA5L.js +0 -41
- package/dist/TimePartInput-CvwAzDuY-BVy_Fjvr.js +0 -253
- package/dist/TimeframesControl-BE3LFgyl-BlMPvvjh.js +0 -94
- package/dist/Tooltip-UlemzxdS-CT790DKa.js +0 -24
- package/dist/ValueSwitch-BXaDBm2C-CKjAMq9f.js +0 -130
- package/dist/ZonedDateTimeControl-6MUvXzd3-CoRMMPNO.js +0 -72
- package/dist/_Uint8Array-C_ozLuQF-D-SZhESZ.js +0 -349
- package/dist/arrow-dropdown-DMFBPPcK-uCJYJfqE.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-C93hA6Y8.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-BV68kR4E.js +0 -949
- package/dist/useDropdownNavigation-2Yhk7zes-75raAHpT.js +0 -821
- /package/dist/{useUnknownValuesInTwinlist-BbwGcno5-D2ve7iXH.js → useUnknownValuesInTwinlist-BCbqJg7j-D2ve7iXH.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as o, createBlock as n, openBlock as t, mergeProps as
|
|
2
|
-
import { h as
|
|
1
|
+
import { defineComponent as o, createBlock as n, openBlock as t, mergeProps as r } from "vue";
|
|
2
|
+
import { h as p } from "./NumberControlBase.vue_vue_type_script_setup_true_lang-bph2Cze8-BGSxRVVz.js";
|
|
3
3
|
const c = /* @__PURE__ */ o({
|
|
4
4
|
__name: "IntegerControl",
|
|
5
5
|
props: {
|
|
@@ -7,12 +7,13 @@ const c = /* @__PURE__ */ o({
|
|
|
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(l) {
|
|
15
|
-
return (e, a) => (t(), n(
|
|
16
|
+
return (e, a) => (t(), n(p, r(e.$props, { type: "integer" }), null, 16));
|
|
16
17
|
}
|
|
17
18
|
});
|
|
18
19
|
export {
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { defineComponent as p, computed as r, createBlock as b, openBlock as f, unref as l } from "vue";
|
|
2
|
+
import { a as n, i as g } from "./TextControl-8jfyOJKb-BkT4AwNP.js";
|
|
3
|
+
import { D as v } from "./classApi-CHpAZrj3-BptMrhKH.js";
|
|
4
|
+
const F = /* @__PURE__ */ p({
|
|
5
|
+
__name: "IntervalControl",
|
|
6
|
+
props: {
|
|
7
|
+
control: {},
|
|
8
|
+
handleChange: { type: Function },
|
|
9
|
+
changeValue: { type: Function },
|
|
10
|
+
disabled: { type: Boolean },
|
|
11
|
+
error: { type: Boolean },
|
|
12
|
+
subText: {},
|
|
13
|
+
onRegisterValidation: { type: Function },
|
|
14
|
+
labelForId: {}
|
|
15
|
+
},
|
|
16
|
+
setup(a) {
|
|
17
|
+
const o = a, t = r(
|
|
18
|
+
() => o.control.uischema
|
|
19
|
+
), u = n(
|
|
20
|
+
t,
|
|
21
|
+
"intervalType",
|
|
22
|
+
"DATE_OR_TIME"
|
|
23
|
+
), d = r(() => u.value.toLowerCase()), i = n(t, "allowDescending", !0), s = (e) => {
|
|
24
|
+
if (!e)
|
|
25
|
+
return null;
|
|
26
|
+
try {
|
|
27
|
+
return v.Duration.from(e);
|
|
28
|
+
} catch {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
}, c = r(
|
|
32
|
+
() => s(o.control.data)
|
|
33
|
+
), m = (e) => {
|
|
34
|
+
o.changeValue((e == null ? void 0 : e.toString()) ?? "");
|
|
35
|
+
};
|
|
36
|
+
return (e, y) => (f(), b(l(g), {
|
|
37
|
+
id: a.labelForId,
|
|
38
|
+
ariaLabel: o.control.label,
|
|
39
|
+
"model-value": c.value,
|
|
40
|
+
"allow-descending": l(i),
|
|
41
|
+
disabled: a.disabled,
|
|
42
|
+
error: a.error,
|
|
43
|
+
format: d.value,
|
|
44
|
+
"sub-text": a.subText,
|
|
45
|
+
"onUpdate:modelValue": m
|
|
46
|
+
}, null, 8, ["id", "ariaLabel", "model-value", "allow-descending", "disabled", "error", "format", "sub-text"]));
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
F as default
|
|
51
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as n, createBlock as t, openBlock as r, unref as l, withCtx as o, createVNode as u, renderSlot as p } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { ac as d, v as m, a3 as c } from "./TextControl-8jfyOJKb-BkT4AwNP.js";
|
|
3
3
|
import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const b = /* @__PURE__ */ n({
|
|
5
5
|
__name: "LabeledGroup",
|
|
6
6
|
props: {
|
|
7
7
|
layout: {}
|
|
8
8
|
},
|
|
9
|
-
setup(
|
|
10
|
-
return (e,
|
|
9
|
+
setup(i) {
|
|
10
|
+
return (e, f) => (r(), t(l(d), {
|
|
11
11
|
label: e.layout.label,
|
|
12
12
|
large: ""
|
|
13
13
|
}, {
|
|
@@ -36,7 +36,7 @@ const b = /* @__PURE__ */ n({
|
|
|
36
36
|
_: 3
|
|
37
37
|
}, 8, ["label"]));
|
|
38
38
|
}
|
|
39
|
-
}),
|
|
39
|
+
}), $ = /* @__PURE__ */ h(b, [["__scopeId", "data-v-376e2740"]]);
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
$ as default
|
|
42
42
|
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { defineComponent as b, onMounted as m, computed as h, createElementBlock as F, openBlock as C, Fragment as y, createVNode as p, unref as S } from "vue";
|
|
2
|
+
import { ad as u, ae as P, af as v, ag as N, Z as B, ah as L, $ as M } from "./TextControl-8jfyOJKb-BkT4AwNP.js";
|
|
3
|
+
import { C as _ } from "./CredentialsControlBase-Be_pBbr8.js";
|
|
4
|
+
const k = /* @__PURE__ */ b({
|
|
5
|
+
__name: "LegacyFlowVariableHandler",
|
|
6
|
+
props: {
|
|
7
|
+
flowVariableName: {}
|
|
8
|
+
},
|
|
9
|
+
emits: ["flowVariableSet"],
|
|
10
|
+
setup(n, { emit: a }) {
|
|
11
|
+
const { configPaths: t } = u(), r = P(), { getSettingStateFlowVariables: i } = u(), { getFlowVariableOverrideValue: s } = v("flowVariablesApi"), c = n, e = a;
|
|
12
|
+
return m(() => {
|
|
13
|
+
const o = c.flowVariableName;
|
|
14
|
+
o && setTimeout(async () => {
|
|
15
|
+
const { setControllingFlowVariable: l, invalidateSetFlowVariable: w } = N({
|
|
16
|
+
flowVariablesMap: r,
|
|
17
|
+
getSettingStateFlowVariables: i
|
|
18
|
+
}), { configPath: d, dataPath: V } = t.value[0];
|
|
19
|
+
if (!d)
|
|
20
|
+
return;
|
|
21
|
+
const g = {
|
|
22
|
+
path: d,
|
|
23
|
+
flowVariableName: o,
|
|
24
|
+
cleanPreserving: !0
|
|
25
|
+
};
|
|
26
|
+
l(g);
|
|
27
|
+
const f = await s(
|
|
28
|
+
d,
|
|
29
|
+
V
|
|
30
|
+
);
|
|
31
|
+
typeof f > "u" && w(g), e("flowVariableSet", f);
|
|
32
|
+
}, 0);
|
|
33
|
+
}), () => {
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
}), $ = /* @__PURE__ */ b({
|
|
37
|
+
__name: "LegacyCredentialsControl",
|
|
38
|
+
props: {
|
|
39
|
+
control: {},
|
|
40
|
+
handleChange: { type: Function },
|
|
41
|
+
changeValue: { type: Function },
|
|
42
|
+
disabled: { type: Boolean },
|
|
43
|
+
error: { type: Boolean },
|
|
44
|
+
subText: {},
|
|
45
|
+
onRegisterValidation: { type: Function },
|
|
46
|
+
labelForId: {}
|
|
47
|
+
},
|
|
48
|
+
setup(n) {
|
|
49
|
+
const a = n, { flowSettings: t, configPaths: r } = B({
|
|
50
|
+
path: h(() => a.control.path)
|
|
51
|
+
});
|
|
52
|
+
L({
|
|
53
|
+
flowSettings: t,
|
|
54
|
+
configPaths: r,
|
|
55
|
+
dataPath: a.control.path
|
|
56
|
+
});
|
|
57
|
+
const { getSettingState: i } = M(), s = (e) => {
|
|
58
|
+
a.changeValue({ credentials: e, flowVarName: null });
|
|
59
|
+
}, c = (e) => {
|
|
60
|
+
var l;
|
|
61
|
+
const o = {
|
|
62
|
+
credentials: e ?? a.control.data.credentials,
|
|
63
|
+
flowVarName: null
|
|
64
|
+
};
|
|
65
|
+
a.changeValue(o), (l = i(a.control.path)) == null || l(o, {
|
|
66
|
+
cleanPreserving: !0
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
return (e, o) => (C(), F(y, null, [
|
|
70
|
+
p(_, {
|
|
71
|
+
control: e.control,
|
|
72
|
+
data: e.control.data.credentials,
|
|
73
|
+
"flow-settings": S(t),
|
|
74
|
+
disabled: e.disabled,
|
|
75
|
+
"label-for-id": e.labelForId,
|
|
76
|
+
error: e.error,
|
|
77
|
+
onChange: s
|
|
78
|
+
}, null, 8, ["control", "data", "flow-settings", "disabled", "label-for-id", "error"]),
|
|
79
|
+
p(k, {
|
|
80
|
+
"flow-variable-name": e.control.data.flowVarName,
|
|
81
|
+
onFlowVariableSet: c
|
|
82
|
+
}, null, 8, ["flow-variable-name"])
|
|
83
|
+
], 64));
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
export {
|
|
87
|
+
$ as default
|
|
88
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
const b = { class: "link-wrapper" }, h = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as s, useCssVars as p, unref as n, createElementBlock as d, openBlock as u, createVNode as g } from "vue";
|
|
2
|
+
import { E as m, j as f } from "./TextControl-8jfyOJKb-BkT4AwNP.js";
|
|
3
|
+
const b = { class: "link-wrapper" }, h = /* @__PURE__ */ s({
|
|
4
4
|
__name: "LinkControl",
|
|
5
5
|
props: {
|
|
6
6
|
control: {},
|
|
@@ -8,18 +8,18 @@ const b = { class: "link-wrapper" }, h = /* @__PURE__ */ c({
|
|
|
8
8
|
changeValue: { type: Function },
|
|
9
9
|
disabled: { type: Boolean },
|
|
10
10
|
labelForId: {},
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
error: { type: Boolean },
|
|
12
|
+
subText: {},
|
|
13
13
|
onRegisterValidation: { type: Function }
|
|
14
14
|
},
|
|
15
15
|
setup(e) {
|
|
16
16
|
var t;
|
|
17
|
-
p((
|
|
17
|
+
p((c) => ({
|
|
18
18
|
bc3ff08c: n(a)
|
|
19
19
|
}));
|
|
20
20
|
const o = e, a = ((t = o.control.uischema.options) == null ? void 0 : t.alignment) === "right" ? "flex-end" : "flex-start", { to: l, leadingIcon: i, trailingIcon: r } = o.control.uischema.options || {};
|
|
21
|
-
return (
|
|
22
|
-
|
|
21
|
+
return (c, k) => (u(), d("div", b, [
|
|
22
|
+
g(n(f), {
|
|
23
23
|
class: "link-button",
|
|
24
24
|
label: e.control.label,
|
|
25
25
|
to: n(l),
|
|
@@ -30,7 +30,7 @@ const b = { class: "link-wrapper" }, h = /* @__PURE__ */ c({
|
|
|
30
30
|
}, null, 8, ["label", "to", "leading-icon", "trailing-icon"])
|
|
31
31
|
]));
|
|
32
32
|
}
|
|
33
|
-
}),
|
|
33
|
+
}), B = /* @__PURE__ */ m(h, [["__scopeId", "data-v-d1973605"]]);
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
B as default
|
|
36
36
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as V, computed as o, createBlock as y, openBlock as f, unref as g, mergeProps as x } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
2
|
+
import { k as L } from "./TextControl-8jfyOJKb-BkT4AwNP.js";
|
|
3
|
+
const B = /* @__PURE__ */ V({
|
|
4
4
|
__name: "LoadingDropdown",
|
|
5
5
|
props: {
|
|
6
6
|
possibleValues: {},
|
|
@@ -11,8 +11,8 @@ const T = /* @__PURE__ */ V({
|
|
|
11
11
|
error: { type: Boolean }
|
|
12
12
|
},
|
|
13
13
|
emits: ["update:modelValue"],
|
|
14
|
-
setup(
|
|
15
|
-
const e =
|
|
14
|
+
setup(r, { emit: i }) {
|
|
15
|
+
const e = r, n = i, p = o(() => e.possibleValues === null ? "" : e.modelValue), d = o(() => e.possibleValues === null), b = o(
|
|
16
16
|
() => {
|
|
17
17
|
var l;
|
|
18
18
|
return (l = e.possibleValues) == null ? void 0 : l.some((s) => s.type !== void 0);
|
|
@@ -57,5 +57,5 @@ const T = /* @__PURE__ */ V({
|
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
export {
|
|
60
|
-
|
|
60
|
+
B as L
|
|
61
61
|
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { defineComponent as v, toRef as s, computed as r, createBlock as w, openBlock as C, unref as a, mergeProps as U } from "vue";
|
|
2
|
+
import { T as V } from "./TextControl-8jfyOJKb-BkT4AwNP.js";
|
|
3
|
+
import { i } from "./index-Blg1O3Fz-CGafpkU1.js";
|
|
4
|
+
import { c as h, t as T } from "./usePossibleValues-CtPV4Cjp-B6UlAJ8A.js";
|
|
5
|
+
import { p as B } from "./toKdsPossibleValues-BklBg3gG-Dr1D12GJ.js";
|
|
6
|
+
import { F as I } from "./useUnknownValuesInTwinlist-BCbqJg7j-D2ve7iXH.js";
|
|
7
|
+
const q = /* @__PURE__ */ v({
|
|
8
|
+
__name: "ManualTwinlistControl",
|
|
9
|
+
props: {
|
|
10
|
+
control: {},
|
|
11
|
+
handleChange: { type: Function },
|
|
12
|
+
changeValue: { type: Function },
|
|
13
|
+
disabled: { type: Boolean },
|
|
14
|
+
error: { type: Boolean },
|
|
15
|
+
subText: {},
|
|
16
|
+
onRegisterValidation: { type: Function },
|
|
17
|
+
labelForId: {}
|
|
18
|
+
},
|
|
19
|
+
setup(l) {
|
|
20
|
+
const o = l, { excludedLabel: m, includedLabel: p } = h(
|
|
21
|
+
s(o, "control")
|
|
22
|
+
), { possibleValues: c } = T(
|
|
23
|
+
s(o, "control")
|
|
24
|
+
), b = r(
|
|
25
|
+
() => B(c.value ?? [])
|
|
26
|
+
), { selectedAndDeselected: u, setCurrentManualFilter: y } = I({
|
|
27
|
+
data: r(() => ({ manualFilter: o.control.data })),
|
|
28
|
+
possibleValueIds: r(
|
|
29
|
+
() => {
|
|
30
|
+
var e;
|
|
31
|
+
return ((e = c.value) == null ? void 0 : e.map(({ id: t }) => t)) ?? null;
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
}), f = (e) => {
|
|
35
|
+
const t = i(o.control.data, e);
|
|
36
|
+
o.changeValue(t), y(t);
|
|
37
|
+
};
|
|
38
|
+
let n = null;
|
|
39
|
+
const x = () => {
|
|
40
|
+
if (n !== null) {
|
|
41
|
+
const e = n;
|
|
42
|
+
n = null, f(e);
|
|
43
|
+
}
|
|
44
|
+
}, d = (e) => {
|
|
45
|
+
n === null ? (n = e, queueMicrotask(x)) : n = i(
|
|
46
|
+
n,
|
|
47
|
+
e
|
|
48
|
+
);
|
|
49
|
+
}, g = (e) => {
|
|
50
|
+
d({ manuallySelected: e });
|
|
51
|
+
}, k = (e) => {
|
|
52
|
+
d({ manuallyDeselected: e });
|
|
53
|
+
}, F = (e) => {
|
|
54
|
+
e !== null && d({ includeUnknownColumns: e });
|
|
55
|
+
};
|
|
56
|
+
return (e, t) => (C(), w(a(V), U(e.$attrs, {
|
|
57
|
+
id: l.labelForId,
|
|
58
|
+
ariaLabel: l.control.label,
|
|
59
|
+
disabled: l.disabled,
|
|
60
|
+
"manually-included": a(u).selected ?? [],
|
|
61
|
+
"manually-excluded": a(u).deselected ?? [],
|
|
62
|
+
"include-unknown-values": l.control.data.includeUnknownColumns,
|
|
63
|
+
"possible-values": b.value,
|
|
64
|
+
loading: a(u).selected === null,
|
|
65
|
+
"exclude-label": a(m),
|
|
66
|
+
"include-label": a(p),
|
|
67
|
+
error: l.error,
|
|
68
|
+
"sub-text": l.subText,
|
|
69
|
+
"onUpdate:manuallyIncluded": g,
|
|
70
|
+
"onUpdate:manuallyExcluded": k,
|
|
71
|
+
"onUpdate:includeUnknownValues": F
|
|
72
|
+
}), null, 16, ["id", "ariaLabel", "disabled", "manually-included", "manually-excluded", "include-unknown-values", "possible-values", "loading", "exclude-label", "include-label", "error", "sub-text"]));
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
export {
|
|
76
|
+
q as default
|
|
77
|
+
};
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
import { defineComponent as I, createPropsRestProxy as V, computed as n, ref as y, watch as L, createElementBlock as _, openBlock as f, createVNode as F, createCommentVNode as O, unref as g, toDisplayString as W, createBlock as C, Fragment as N, withCtx as A, createElementVNode as K, normalizeProps as U, mergeProps as Q } from "vue";
|
|
2
|
+
import { ao as j, ap as x, a3 as q, a2 as z, a1 as $, _ as H, a as G, aq as b, ar as J } from "./TextControl-8jfyOJKb-BkT4AwNP.js";
|
|
3
|
+
import { u as X, g as Y, a as Z } from "./useFileChooserBackend-DeqNZEZE.js";
|
|
4
|
+
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
const ee = { class: "container" }, te = ["title"], oe = /* @__PURE__ */ I({
|
|
6
|
+
__name: "FileSelectionPreview",
|
|
7
|
+
props: {
|
|
8
|
+
previewData: {},
|
|
9
|
+
filterMode: {},
|
|
10
|
+
expandByDefault: { type: Boolean, default: !1 },
|
|
11
|
+
isLoading: { type: Boolean, default: !1 },
|
|
12
|
+
trailingButton: {}
|
|
13
|
+
},
|
|
14
|
+
setup(c) {
|
|
15
|
+
const e = V(c, ["expandByDefault", "isLoading"]), l = n(
|
|
16
|
+
() => e.previewData.resultType === "SUCCESS" ? e.previewData.itemsAfterFiltering : []
|
|
17
|
+
), u = n(() => {
|
|
18
|
+
switch (e.filterMode) {
|
|
19
|
+
case "FILES_AND_FOLDERS":
|
|
20
|
+
return "files/folders";
|
|
21
|
+
case "FOLDERS":
|
|
22
|
+
return "folders";
|
|
23
|
+
default:
|
|
24
|
+
return "files";
|
|
25
|
+
}
|
|
26
|
+
}), r = n(() => {
|
|
27
|
+
if (e.previewData.resultType === "ERROR")
|
|
28
|
+
return `Error loading ${u.value}`;
|
|
29
|
+
const a = l.value.length, s = e.previewData.numItemsBeforeFiltering, v = `${a}${e.previewData.numFilesAfterFilteringIsOnlyLowerBound ? "+" : ""}`, m = `${s}${e.previewData.numFilesBeforeFilteringIsOnlyLowerBound ? "+" : ""}`;
|
|
30
|
+
return `${v} of ${m} ${u.value}`;
|
|
31
|
+
}), i = n(
|
|
32
|
+
() => e.previewData.resultType === "ERROR" ? "circle-error" : "file"
|
|
33
|
+
), p = n(
|
|
34
|
+
() => l.value.map((a, s) => ({ id: `${s}-${a}`, text: a }))
|
|
35
|
+
), d = y(c.expandByDefault);
|
|
36
|
+
return L(
|
|
37
|
+
() => c.expandByDefault,
|
|
38
|
+
(a) => {
|
|
39
|
+
d.value = a;
|
|
40
|
+
}
|
|
41
|
+
), (a, s) => (f(), _("div", ee, [
|
|
42
|
+
F(g(j), {
|
|
43
|
+
expanded: d.value,
|
|
44
|
+
"onUpdate:expanded": s[0] || (s[0] = (v) => d.value = v),
|
|
45
|
+
headline: r.value,
|
|
46
|
+
"leading-icon": i.value,
|
|
47
|
+
loading: a.isLoading,
|
|
48
|
+
items: p.value,
|
|
49
|
+
"empty-state-headline": "No files",
|
|
50
|
+
"trailing-button": a.trailingButton
|
|
51
|
+
}, null, 8, ["expanded", "headline", "leading-icon", "loading", "items", "trailing-button"]),
|
|
52
|
+
a.previewData.resultType === "ERROR" ? (f(), _("div", {
|
|
53
|
+
key: 0,
|
|
54
|
+
class: "flexible-error-message-container",
|
|
55
|
+
"data-test-id": "error-message",
|
|
56
|
+
title: a.previewData.errorMessage
|
|
57
|
+
}, W(a.previewData.errorMessage), 9, te)) : O("", !0)
|
|
58
|
+
]));
|
|
59
|
+
}
|
|
60
|
+
}), T = /* @__PURE__ */ B(oe, [["__scopeId", "data-v-28a36301"]]), ne = /* @__PURE__ */ I({
|
|
61
|
+
__name: "FieldRenderer",
|
|
62
|
+
props: {
|
|
63
|
+
control: {},
|
|
64
|
+
fieldName: {},
|
|
65
|
+
uischema: {}
|
|
66
|
+
},
|
|
67
|
+
setup(c) {
|
|
68
|
+
const e = c, l = n(() => x(e.control.path, e.fieldName)), u = n(
|
|
69
|
+
() => {
|
|
70
|
+
var r;
|
|
71
|
+
return (r = e.control.schema.properties) == null ? void 0 : r[e.fieldName];
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
return (r, i) => (f(), C(g(q), {
|
|
75
|
+
key: l.value,
|
|
76
|
+
schema: u.value,
|
|
77
|
+
uischema: r.uischema,
|
|
78
|
+
path: l.value,
|
|
79
|
+
enabled: r.control.enabled,
|
|
80
|
+
renderers: r.control.renderers,
|
|
81
|
+
cells: r.control.cells
|
|
82
|
+
}, null, 8, ["schema", "uischema", "path", "enabled", "renderers", "cells"]));
|
|
83
|
+
}
|
|
84
|
+
}), P = "filters", le = /* @__PURE__ */ I({
|
|
85
|
+
__name: "FilterSettings",
|
|
86
|
+
props: {
|
|
87
|
+
control: {},
|
|
88
|
+
handleChange: { type: Function }
|
|
89
|
+
},
|
|
90
|
+
setup(c, { expose: e }) {
|
|
91
|
+
const l = c, u = n(() => x(l.control.path, P)), r = n(
|
|
92
|
+
() => {
|
|
93
|
+
var i;
|
|
94
|
+
return (i = l.control.uischema.options) == null ? void 0 : i.filters.uiSchema;
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
return e({
|
|
98
|
+
/**
|
|
99
|
+
* Resets the filter settings to their default values. NOT the same as discarding them
|
|
100
|
+
* and returning to the saved state.
|
|
101
|
+
*/
|
|
102
|
+
resetFilters: () => {
|
|
103
|
+
var i;
|
|
104
|
+
l.handleChange(u.value, {
|
|
105
|
+
...(i = l.control.schema.default) == null ? void 0 : i[P],
|
|
106
|
+
filterMode: l.control.data.filters.filterMode
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
}), (i, p) => (f(), C(ne, {
|
|
110
|
+
control: i.control,
|
|
111
|
+
"field-name": P,
|
|
112
|
+
"handle-change": i.handleChange,
|
|
113
|
+
uischema: r.value
|
|
114
|
+
}, null, 8, ["control", "handle-change", "uischema"]));
|
|
115
|
+
}
|
|
116
|
+
}), ae = ({
|
|
117
|
+
backendType: c,
|
|
118
|
+
filterOptions: e,
|
|
119
|
+
additionalFilterOptionsClassIdentifier: l,
|
|
120
|
+
includeSubFolders: u
|
|
121
|
+
}) => {
|
|
122
|
+
const r = z("getData");
|
|
123
|
+
return {
|
|
124
|
+
listItemsForPreview: (d, a) => {
|
|
125
|
+
const s = [
|
|
126
|
+
c.value,
|
|
127
|
+
d,
|
|
128
|
+
a,
|
|
129
|
+
u.value,
|
|
130
|
+
{
|
|
131
|
+
additionalFilterOptions: e.value,
|
|
132
|
+
additionalFilterOptionsClassIdentifier: l
|
|
133
|
+
}
|
|
134
|
+
];
|
|
135
|
+
return r({
|
|
136
|
+
method: "fileFilterPreview.listItemsForPreview",
|
|
137
|
+
options: s
|
|
138
|
+
});
|
|
139
|
+
},
|
|
140
|
+
resolveRelativePath: (d, a) => r({
|
|
141
|
+
method: "fileChooser.resolveRelativePath",
|
|
142
|
+
options: [c.value, d, a]
|
|
143
|
+
})
|
|
144
|
+
};
|
|
145
|
+
}, re = { class: "filter-settings-drawer-content" }, ie = /* @__PURE__ */ I({
|
|
146
|
+
__name: "FilterPreview",
|
|
147
|
+
props: {
|
|
148
|
+
control: {},
|
|
149
|
+
handleChange: { type: Function },
|
|
150
|
+
changeValue: { type: Function },
|
|
151
|
+
disabled: { type: Boolean },
|
|
152
|
+
labelForId: {},
|
|
153
|
+
error: { type: Boolean },
|
|
154
|
+
subText: {},
|
|
155
|
+
onRegisterValidation: { type: Function }
|
|
156
|
+
},
|
|
157
|
+
setup(c) {
|
|
158
|
+
var o;
|
|
159
|
+
const e = c, l = n(() => {
|
|
160
|
+
var t;
|
|
161
|
+
return (t = e.control.data) == null ? void 0 : t.includeSubfolders;
|
|
162
|
+
}), u = n(
|
|
163
|
+
() => e.control.uischema
|
|
164
|
+
), { portIndex: r } = X(u), i = n(
|
|
165
|
+
() => Y(e.control.data.path.fsCategory, r.value)
|
|
166
|
+
), p = y({
|
|
167
|
+
itemsAfterFiltering: [],
|
|
168
|
+
numItemsBeforeFiltering: 0,
|
|
169
|
+
numFilesAfterFilteringIsOnlyLowerBound: !1,
|
|
170
|
+
numFilesBeforeFilteringIsOnlyLowerBound: !1,
|
|
171
|
+
resultType: "SUCCESS"
|
|
172
|
+
}), d = y(!0), a = y(null), s = n(() => {
|
|
173
|
+
var t;
|
|
174
|
+
return (t = e.control.data) == null ? void 0 : t.filters;
|
|
175
|
+
}), v = ae({
|
|
176
|
+
backendType: i,
|
|
177
|
+
includeSubFolders: l,
|
|
178
|
+
filterOptions: s,
|
|
179
|
+
additionalFilterOptionsClassIdentifier: (o = e.control.uischema.options) == null ? void 0 : o.filters.classId
|
|
180
|
+
}), m = n(() => e.control.data.path), w = n(() => e.control.data.filterMode), R = y(0), D = async () => {
|
|
181
|
+
var M, k;
|
|
182
|
+
d.value = !0, ++R.value;
|
|
183
|
+
let t = m.value.path;
|
|
184
|
+
m.value.fsCategory === "relative-to-workflow" && ((k = (M = u.value.options) == null ? void 0 : M.spaceFSOptions) != null && k.relativeWorkflowPath) && (t = await v.resolveRelativePath(
|
|
185
|
+
t,
|
|
186
|
+
u.value.options.spaceFSOptions.relativeWorkflowPath
|
|
187
|
+
));
|
|
188
|
+
const E = R.value, h = await v.listItemsForPreview(
|
|
189
|
+
t,
|
|
190
|
+
w.value
|
|
191
|
+
);
|
|
192
|
+
E === R.value && (p.value = h, d.value = !1);
|
|
193
|
+
};
|
|
194
|
+
L(
|
|
195
|
+
w,
|
|
196
|
+
(t) => {
|
|
197
|
+
e.control.data.filters.filterMode !== t && e.handleChange(
|
|
198
|
+
$($(e.control.path, "filters"), "filterMode"),
|
|
199
|
+
t
|
|
200
|
+
);
|
|
201
|
+
},
|
|
202
|
+
{ immediate: !0 }
|
|
203
|
+
), L(
|
|
204
|
+
[l, s, m],
|
|
205
|
+
() => D(),
|
|
206
|
+
{
|
|
207
|
+
deep: !0
|
|
208
|
+
}
|
|
209
|
+
);
|
|
210
|
+
const S = y(null);
|
|
211
|
+
return (t, E) => (f(), _(N, null, [
|
|
212
|
+
F(T, {
|
|
213
|
+
"preview-data": p.value,
|
|
214
|
+
"is-loading": d.value,
|
|
215
|
+
"filter-mode": w.value,
|
|
216
|
+
"trailing-button": {
|
|
217
|
+
label: "Edit filters",
|
|
218
|
+
trailingIcon: "chevron-right",
|
|
219
|
+
onClick: () => {
|
|
220
|
+
var h;
|
|
221
|
+
return (h = a.value) == null ? void 0 : h.expand();
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}, null, 8, ["preview-data", "is-loading", "filter-mode", "trailing-button"]),
|
|
225
|
+
F(g(H), {
|
|
226
|
+
ref_key: "filterPanelRef",
|
|
227
|
+
ref: a,
|
|
228
|
+
"show-back-arrow": "",
|
|
229
|
+
"background-color-override": "var(--knime-gray-ultra-light)"
|
|
230
|
+
}, {
|
|
231
|
+
default: A(() => [
|
|
232
|
+
K("div", re, [
|
|
233
|
+
F(T, {
|
|
234
|
+
"preview-data": p.value,
|
|
235
|
+
"filter-mode": w.value,
|
|
236
|
+
"is-loading": d.value,
|
|
237
|
+
"expand-by-default": "",
|
|
238
|
+
"trailing-button": {
|
|
239
|
+
label: "Reset all filters",
|
|
240
|
+
destructive: !0,
|
|
241
|
+
onClick: () => {
|
|
242
|
+
var h;
|
|
243
|
+
return (h = S.value) == null ? void 0 : h.resetFilters();
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}, null, 8, ["preview-data", "filter-mode", "is-loading", "trailing-button"]),
|
|
247
|
+
F(le, {
|
|
248
|
+
ref_key: "filterSettingsRef",
|
|
249
|
+
ref: S,
|
|
250
|
+
control: t.control,
|
|
251
|
+
"handle-change": t.handleChange
|
|
252
|
+
}, null, 8, ["control", "handle-change"])
|
|
253
|
+
])
|
|
254
|
+
]),
|
|
255
|
+
_: 1
|
|
256
|
+
}, 512)
|
|
257
|
+
], 64));
|
|
258
|
+
}
|
|
259
|
+
}), se = /* @__PURE__ */ B(ie, [["__scopeId", "data-v-fd82211f"]]), ce = { class: "flex-column" }, ue = /* @__PURE__ */ I({
|
|
260
|
+
__name: "MultiFileChooserControl",
|
|
261
|
+
props: {
|
|
262
|
+
control: {},
|
|
263
|
+
handleChange: { type: Function },
|
|
264
|
+
changeValue: { type: Function },
|
|
265
|
+
disabled: { type: Boolean },
|
|
266
|
+
labelForId: {},
|
|
267
|
+
error: { type: Boolean },
|
|
268
|
+
subText: {},
|
|
269
|
+
onRegisterValidation: { type: Function }
|
|
270
|
+
},
|
|
271
|
+
setup(c) {
|
|
272
|
+
const e = c, l = n(
|
|
273
|
+
() => e.control.uischema
|
|
274
|
+
), u = G(l, "connectedFSOptions"), r = n(() => {
|
|
275
|
+
var t;
|
|
276
|
+
const o = (t = e.control.data) == null ? void 0 : t.filterMode;
|
|
277
|
+
return o === "WORKFLOW" ? "WORKFLOW" : o === "FILE" ? "FILE" : "FOLDER";
|
|
278
|
+
}), i = n(() => {
|
|
279
|
+
var t;
|
|
280
|
+
const o = (t = e.control.data) == null ? void 0 : t.filterMode;
|
|
281
|
+
return o !== "FILE" && o !== "FOLDER";
|
|
282
|
+
}), p = n(() => {
|
|
283
|
+
var o;
|
|
284
|
+
return {
|
|
285
|
+
...l.value.options,
|
|
286
|
+
connectedFSOptions: u.value ?? ((o = l.value.options) == null ? void 0 : o.connectedFSOptions),
|
|
287
|
+
selectionMode: r.value
|
|
288
|
+
};
|
|
289
|
+
}), d = {
|
|
290
|
+
FILE: "File",
|
|
291
|
+
WORKFLOW: "Workflow",
|
|
292
|
+
FOLDER: "Folder",
|
|
293
|
+
FILES_AND_FOLDERS: "Files and folders",
|
|
294
|
+
FILES_IN_FOLDERS: "Files in folders",
|
|
295
|
+
FOLDERS: "Folders"
|
|
296
|
+
}, a = (o) => ({
|
|
297
|
+
id: o,
|
|
298
|
+
text: d[o]
|
|
299
|
+
}), s = n(
|
|
300
|
+
() => {
|
|
301
|
+
var o, t;
|
|
302
|
+
return ((t = (o = l.value.options) == null ? void 0 : o.possibleFilterModes) == null ? void 0 : t.map(
|
|
303
|
+
a
|
|
304
|
+
)) ?? [];
|
|
305
|
+
}
|
|
306
|
+
), v = n(() => ({
|
|
307
|
+
possibleValues: s.value
|
|
308
|
+
})), m = n(() => s.value.length > 1), w = n(
|
|
309
|
+
() => s.value.length > 2 ? "radio" : "valueSwitch"
|
|
310
|
+
), { isConnectedButNoFileConnectionIsAvailable: R, isConnected: D } = Z(p), S = n(
|
|
311
|
+
() => {
|
|
312
|
+
var o;
|
|
313
|
+
return R.value || !D.value && ((o = e.control.data) == null ? void 0 : o.path.fsCategory) === "CONNECTED";
|
|
314
|
+
}
|
|
315
|
+
);
|
|
316
|
+
return (o, t) => (f(), _("div", ce, [
|
|
317
|
+
m.value ? (f(), C(g(b), {
|
|
318
|
+
key: 0,
|
|
319
|
+
"field-name": "filterMode",
|
|
320
|
+
format: w.value,
|
|
321
|
+
options: v.value,
|
|
322
|
+
control: o.control
|
|
323
|
+
}, null, 8, ["format", "options", "control"])) : O("", !0),
|
|
324
|
+
F(g(b), {
|
|
325
|
+
"field-name": "path",
|
|
326
|
+
format: g(J),
|
|
327
|
+
options: p.value,
|
|
328
|
+
control: o.control
|
|
329
|
+
}, null, 8, ["format", "options", "control"]),
|
|
330
|
+
i.value ? (f(), _(N, { key: 1 }, [
|
|
331
|
+
F(g(b), {
|
|
332
|
+
"field-name": "includeSubfolders",
|
|
333
|
+
control: o.control
|
|
334
|
+
}, null, 8, ["control"]),
|
|
335
|
+
S.value ? O("", !0) : (f(), C(se, U(Q({ key: 0 }, e)), null, 16))
|
|
336
|
+
], 64)) : O("", !0)
|
|
337
|
+
]));
|
|
338
|
+
}
|
|
339
|
+
}), me = /* @__PURE__ */ B(ue, [["__scopeId", "data-v-3709134c"]]);
|
|
340
|
+
export {
|
|
341
|
+
me as default
|
|
342
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as t, createElementBlock as n, openBlock as r, Fragment as s, renderList as o, createBlock as u, unref as m } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { a3 as p } from "./TextControl-8jfyOJKb-BkT4AwNP.js";
|
|
3
3
|
const y = /* @__PURE__ */ t({
|
|
4
4
|
__name: "MultiRuleWrapper",
|
|
5
5
|
props: {
|