@knime/scripting-editor 0.0.149 → 0.0.150
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-DdcxtAjb-CaN_HwzO.js → AnyOfTwinlist-DdcxtAjb-QRuNcffK.js} +3 -3
- package/dist/{ArrayLayout-Cqct4YS3.js → ArrayLayout-CiNvK2R8.js} +204 -193
- package/dist/ButtonControl-XAPpl7GY.js +116 -0
- package/dist/{CheckboxControl-C99OdmDL-CDrrcyc8.js → CheckboxControl-C99OdmDL-Do7Fm1Hf.js} +12 -12
- package/dist/{CheckboxesControl-BZhMhT9x-DX6Wv2OC.js → CheckboxesControl-BZhMhT9x-Pc8YrIvQ.js} +3 -3
- package/dist/{CodeEditorControl-C0nEU4Bk.js → CodeEditorControl-BZlds1_z.js} +1 -1
- package/dist/{ColorControl-D1dNnNbO-ZnPFuKHS.js → ColorControl-D1dNnNbO-D2ewwNgx.js} +1 -1
- package/dist/{ColorPreviewControl-B4zix2kb-lDW3LcbF.js → ColorPreviewControl-B4zix2kb-C8iUsUfi.js} +10 -10
- package/dist/{ComboBoxControl-BGWAD9IW-CYGoHz_u.js → ComboBoxControl-BGWAD9IW-Dqnlk__Q.js} +2 -2
- package/dist/{ConfigurationNodeNotSupported-D-Rxn0Gi.js → ConfigurationNodeNotSupported-CGclvYAj.js} +6 -6
- package/dist/{ControlWithSubParameters-C3O8tagW.js → ControlWithSubParameters-D_0dvLqM.js} +10 -10
- package/dist/{CredentialsControl-DaEBQpvd.js → CredentialsControl-uYcyYidL.js} +2 -2
- package/dist/{CredentialsControlBase-BivCOrno.js → CredentialsControlBase-u4DXxRC0.js} +7 -7
- package/dist/{DateControl-D0HfVrtz-9eE4B_fe.js → DateControl-D0HfVrtz-Bt1CkhVc.js} +3 -3
- package/dist/{DateTimeControl-kTQZI9JC-DmnFBKmN.js → DateTimeControl-kTQZI9JC-DT157PDM.js} +3 -3
- package/dist/{DateTimeFormatPickerControl-BiYcsKSn-xVSLrwBl.js → DateTimeFormatPickerControl-BiYcsKSn-CMda9u5J.js} +5 -5
- package/dist/{DirtyTrackerRenderer-DMDmrGOs.js → DirtyTrackerRenderer-BePhAn76.js} +3 -3
- package/dist/{DropdownControl-jsayV3N5-8v3EQUz3.js → DropdownControl-jsayV3N5-Dsha5hge.js} +3 -3
- package/dist/{ExecutorCoresControl-DNo2SaC6-BoEm-W4r.js → ExecutorCoresControl-DNo2SaC6-BkcAA9UN.js} +2 -2
- package/dist/{ExecutorMemoryControl-C8RLYQdd-B8ZEGYAX.js → ExecutorMemoryControl-C8RLYQdd-Cedm5trN.js} +2 -2
- package/dist/{FileChooserControl-DNfgbEr3.js → FileChooserControl-Ct51fY7Z.js} +1 -1
- package/dist/{FileChooserControlBase-BozmAfJW.js → FileChooserControlBase-CGo0zU3e.js} +35 -35
- package/dist/{FileChooserControlForMultiFile-B21mwjMa.js → FileChooserControlForMultiFile-Dh_WXtgn.js} +1 -1
- package/dist/{FileUploadControl-D5QfM3Wa-DXqlNHXY.js → FileUploadControl-D5QfM3Wa-7kqQRO4-.js} +1 -1
- package/dist/FlowVariableButtonWrapper-mLnms8yQ.js +466 -0
- package/dist/FlowVariableSelector-C4IiVzue.js +162 -0
- package/dist/{GridSelectionControl-RKdnWWGk-CqxxipH6.js → GridSelectionControl-RKdnWWGk-naGGUZCh.js} +13 -13
- package/dist/{HorizontalLayout-B_lETfCu-CQVlABjY.js → HorizontalLayout-B_lETfCu-BZK7jH4z.js} +2 -2
- package/dist/{IntegerControl-Cr8SO0xH-DmFardsB.js → IntegerControl-Cr8SO0xH-lclR3djp.js} +2 -2
- package/dist/{IntervalControl-BdjKEwLy-CRGsrkTU.js → IntervalControl-BdjKEwLy-C_LCaU8r.js} +6 -6
- package/dist/{LabeledGroup-BSlRYaIO.js → LabeledGroup-C4WOU_qE.js} +1 -1
- package/dist/{LegacyCredentialsControl-DDppdKDf.js → LegacyCredentialsControl-CuFuBunJ.js} +11 -11
- package/dist/{LinkControl-QMwkCJlj-D7KOgNqO.js → LinkControl-QMwkCJlj-DZRZvKsJ.js} +8 -8
- package/dist/{LoadingDropdown-BpU4Uiin-DDrrGAtm.js → LoadingDropdown-BpU4Uiin-DpT8YNnA.js} +1 -1
- package/dist/{ManualTwinlistControl-5dfnmQZ--BLDAtepu.js → ManualTwinlistControl-5dfnmQZ--9BVHFNRR.js} +5 -5
- package/dist/{MultiFileChooserControl-yLU6lVm6.js → MultiFileChooserControl-Buzeme6N.js} +54 -54
- package/dist/{NameFilter-DzqgrcaF-BHDDEtD7.js → NameFilter-DzqgrcaF-Cl38kTPw.js} +2 -2
- package/dist/{NumberControl-ODy5GAlR-DqeFhQlG.js → NumberControl-ODy5GAlR-IQBNh99B.js} +2 -2
- package/dist/{NumberControlBase-Cl3QcvzB-CLt8mpCC.js → NumberControlBase-Cl3QcvzB-DLl4RMsa.js} +5 -5
- package/dist/{OneOfDropdown-CMPRAraI-D0fD0jJG.js → OneOfDropdown-CMPRAraI-DyOs4qXq.js} +2 -2
- package/dist/{ProgressButtonControl-hlI6JZ-z-iW0cQ79f.js → ProgressButtonControl-hlI6JZ-z-C3y7IOhk.js} +12 -12
- package/dist/{RadioButtonsWithDescriptionControl-DJu3ODo7-BVxmFTjy.js → RadioButtonsWithDescriptionControl-DJu3ODo7-BvOWhYc3.js} +9 -9
- package/dist/{RadioControl-D_NE5s4n-CBhjB07g.js → RadioControl-D_NE5s4n-DQ3orr8G.js} +2 -2
- package/dist/{RadioControlBase-knF86px0-M-iKdCgZ.js → RadioControlBase-knF86px0-CNYDwFjA.js} +3 -3
- package/dist/{ResourceControlBase-BVMVVYns-CCmfdMoZ.js → ResourceControlBase-BVMVVYns-DHo4NA_m.js} +17 -17
- package/dist/{RichTextControl-JIM904_P-Cz7wPLpv.js → RichTextControl-JIM904_P-CCTpWWMW.js} +2717 -2697
- package/dist/{SectionLayout-Ca6XH3w3-C31MJtZ9.js → SectionLayout-Ca6XH3w3-Civ901Ea.js} +3 -3
- package/dist/{SettingsSubPanelLayout-B7QJ7YhZ-BVhurigk.js → SettingsSubPanelLayout-B7QJ7YhZ-Dmgm0Ir9.js} +20 -20
- package/dist/{SimpleTwinlistControl-CQ4tSh0c-D-AFsdOr.js → SimpleTwinlistControl-CQ4tSh0c-Ce_hUVf7.js} +3 -3
- package/dist/{SingleSelectControl-CJV9VMZm-jwZqt2tP.js → SingleSelectControl-CJV9VMZm-Bk8t6TSw.js} +3 -3
- package/dist/{SortListControl-D-ifoRva-VjNJfqzM.js → SortListControl-D-ifoRva-CJZ3kNt9.js} +5 -5
- package/dist/{StringFileChooserControl-BWoTwYp2.js → StringFileChooserControl-HEpT7Ip7.js} +8 -8
- package/dist/{TeamAndSpacesControl-D1FvyeCV-QFi264Nj.js → TeamAndSpacesControl-D1FvyeCV-DnRJHhj4.js} +9 -9
- package/dist/{TeamResourceControl-DyCO6-Nk-DHNrRSMY.js → TeamResourceControl-DyCO6-Nk-BI-LwsIM.js} +2 -2
- package/dist/{TextAreaControl-7QziyTgn-BniXqehe.js → TextAreaControl-7QziyTgn-BtBO7YNu.js} +1 -1
- package/dist/{TimeControl-B29iTlhP-eYfkjPai.js → TimeControl-B29iTlhP-e7HifMYl.js} +3 -3
- package/dist/{TimeframesControl-Wvu--J0V-DhhqpxZS.js → TimeframesControl-Wvu--J0V-BuY4sciw.js} +9 -9
- package/dist/{TwinlistControlBase-CaRdq20R-BspKBwDU.js → TwinlistControlBase-CaRdq20R-Dc80qJgM.js} +3 -3
- package/dist/{TypedStringFilter-B3ZMqGIC-D3eyvWTQ.js → TypedStringFilter-B3ZMqGIC-ByKsSSQ4.js} +2 -2
- package/dist/{ValueSwitchControl-H2t2Wgo6-Dkr6ED74.js → ValueSwitchControl-H2t2Wgo6-CQw22eR0.js} +2 -2
- package/dist/{VennDiagramLayout-rZsnxKb8.js → VennDiagramLayout-BiBLF_be.js} +15 -15
- package/dist/{VerticalLayout-sPAmI_XK-BHSQFbh5.js → VerticalLayout-sPAmI_XK-BZz3aVLy.js} +2 -2
- package/dist/{ZonedDateTimeControl-Co3v2EVv-fcHef5TR.js → ZonedDateTimeControl-Co3v2EVv-mFgzT9ZR.js} +2 -2
- package/dist/{_plugin-vue_export-helper-B3ysoDQm-C4BqYrqY.js → _plugin-vue_export-helper-B3ysoDQm-jCLY2oWQ.js} +1 -1
- package/dist/elementCheckboxRenderer-BTDQ1ITf.js +117 -0
- package/dist/{fileChooserRenderer-CqIzTlME.js → fileChooserRenderer-C9ULvJjo.js} +3 -3
- package/dist/{inject-DEsHVs5q-zP4nUeAa.js → inject-DEsHVs5q-ChUMe45j.js} +1 -1
- package/dist/lib/main.d.ts +5 -3
- package/dist/main.js +764 -692
- package/dist/parameters.js +469 -647
- package/dist/{paths-DH9g52IX.js → paths-daLajhdU.js} +9 -6
- package/dist/{plainDateTimeUtils-5uOCJ4N5-DRHKOepZ.js → plainDateTimeUtils-5uOCJ4N5-3VUpuprJ.js} +2 -2
- package/dist/{rolldown-runtime-Dy4uBu1J-Cwht8A8-.js → rolldown-runtime-Dy4uBu1J-DiUrVT6I.js} +1 -1
- package/dist/settings-service-browser-mock.js +13 -5
- package/dist/src/components/MainEditorPane.vue.d.ts +74 -7
- package/dist/src/components/ScriptingEditor.vue.d.ts +0 -23
- package/dist/src/editor.d.ts +1 -1
- package/dist/src/settings-service-browser-mock.d.ts +3 -4
- package/dist/src/settings-service.d.ts +3 -35
- package/dist/src/store/settings.d.ts +52 -0
- package/dist/src-pw1LRAdm-uu-I1-YX.js +1246 -0
- package/dist/{temporal-polyfill-D4u1I_Z--enRiDjrC.js → temporal-polyfill-D4u1I_Z--B8F1flcx.js} +1 -1
- package/dist/{toKdsPossibleValues-BAEvyJCk-COlZpol8.js → toKdsPossibleValues-BAEvyJCk-Dww9tu-1.js} +1 -1
- package/dist/useArrayIds-CpJmT5_d.js +28 -0
- package/dist/{useBuiltinValidations-B_Drc2y--BIe8Vj_8.js → useBuiltinValidations-B_Drc2y--vtgmNI5H.js} +2 -2
- package/dist/{useDirtySettings-C_JB8Tb9.js → useDirtySettings-DVDbAZgX.js} +1 -1
- package/dist/{useFileChooserBrowseOptions-l1i9z66C.js → useFileChooserBrowseOptions-ClAKTcw1.js} +16 -16
- package/dist/{useFlowVariables-BFaB9PV-.js → useFlowVariables-BPi2ZpWk.js} +8 -8
- package/dist/{usePossibleValues-Cx6iSt_X-BlD7PZcJ.js → usePossibleValues-Cx6iSt_X-Ch5oJkDE.js} +2 -2
- package/dist/{useProvideForFlowVariables-AgNwtMFv.js → useProvideForFlowVariables-Ck3YUR2C.js} +2 -2
- package/dist/{useProvidedState-478_KXOe-KGpEF13j.js → useProvidedState-478_KXOe-Dpb35s5s.js} +2 -2
- package/dist/{useSideDrawerContent-Bl7nrXfr.js → useSideDrawerContent-BKwzHoq0.js} +2 -2
- package/dist/{useUnknownValuesInTwinlist-CHB8kt9t-Bak4ZAxt.js → useUnknownValuesInTwinlist-CHB8kt9t-C4bjDxVB.js} +30 -30
- package/dist/{useUpdates-Binc_B7h.js → useUpdates-Db1ELMwP.js} +60 -60
- package/dist/{utils-DmZLgn8X-D9PS3NK4.js → utils-DmZLgn8X-yDkNNqcu.js} +1 -1
- package/package.json +2 -2
- package/dist/ButtonControl-JfX5cPMH.js +0 -117
- package/dist/ai-bar-DEyz4yf0.js +0 -332
- package/dist/elementCheckboxRenderer-CfYz9-5L.js +0 -214
- package/dist/src-pw1LRAdm-BUOXZfmX.js +0 -1246
- package/dist/useArrayIds-CvcfiogC.js +0 -29
- package/dist/v4-Dd9glBki.js +0 -30
|
@@ -1,66 +1,68 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { G as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import {
|
|
2
|
+
import { o as t } from "./useFlowVariables-BPi2ZpWk.js";
|
|
3
|
+
import { n, t as r } from "./inject-DGoSf00A.js";
|
|
4
|
+
import { G as i, Z as a, n as o, p as s, u as c } from "./dist-iAFUw6uq.js";
|
|
5
|
+
import { a as l, i as u, n as d, o as f, t as p } from "./FlowVariableSelector-C4IiVzue.js";
|
|
6
|
+
import { t as m } from "./useProvideForFlowVariables-Ck3YUR2C.js";
|
|
7
|
+
import { n as h } from "./useProvidedState-478_KXOe-Dpb35s5s.js";
|
|
8
|
+
import { T as g, a as _, i as v, r as y, t as b, u as x } from "./jsonforms-vue.esm-B9eODaNM.js";
|
|
9
|
+
import { r as S } from "./src-pw1LRAdm-uu-I1-YX.js";
|
|
10
|
+
import { a as ee, i as C, l as te, n as w, o as ne, r as T, t as E } from "./useArrayIds-CpJmT5_d.js";
|
|
11
|
+
import { a as D, o as re, r as O, s as k, t as A } from "./elementCheckboxRenderer-BTDQ1ITf.js";
|
|
12
|
+
import { Fragment as j, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createVNode as L, defineComponent as R, inject as ie, mergeProps as ae, nextTick as oe, normalizeClass as z, normalizeStyle as B, onMounted as V, openBlock as H, provide as U, ref as W, renderList as G, renderSlot as K, resolveComponent as q, toDisplayString as J, toRaw as se, unref as Y, watch as X, withCtx as Z } from "vue";
|
|
12
13
|
//#region ../core-ui/src/nodeDialog/layoutComponents/arrayLayout/ArrayFlowVariablesButton.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
-
var
|
|
14
|
-
key: 0,
|
|
15
|
-
class: "confirm-step"
|
|
16
|
-
}, se = {
|
|
14
|
+
var ce = {
|
|
17
15
|
key: 1,
|
|
16
|
+
class: "confirm-step"
|
|
17
|
+
}, le = {
|
|
18
|
+
key: 2,
|
|
18
19
|
class: "popover"
|
|
19
|
-
},
|
|
20
|
+
}, Q = /*#__PURE__*/ e(/* @__PURE__ */ R({
|
|
20
21
|
__name: "ArrayFlowVariablesButton",
|
|
21
22
|
props: {
|
|
22
23
|
arrayFlowVariables: {},
|
|
24
|
+
deprecatedConfigPaths: {},
|
|
23
25
|
dataPath: {},
|
|
24
26
|
hover: { type: Boolean },
|
|
25
27
|
previewError: { type: Boolean }
|
|
26
28
|
},
|
|
27
|
-
setup(e, { expose:
|
|
28
|
-
let
|
|
29
|
+
setup(e, { expose: n }) {
|
|
30
|
+
let r = e, a = M(() => !!r.arrayFlowVariables?.some(({ controllingFlowVariableName: e }) => !!e)), s = M(() => r.arrayFlowVariables.map(({ configPath: e }) => ({
|
|
29
31
|
configPath: e,
|
|
30
32
|
exposeOnly: !1,
|
|
31
|
-
dataPath:
|
|
32
|
-
deprecatedConfigPaths:
|
|
33
|
+
dataPath: r.dataPath,
|
|
34
|
+
deprecatedConfigPaths: r.deprecatedConfigPaths
|
|
33
35
|
})));
|
|
34
|
-
|
|
35
|
-
dataPath:
|
|
36
|
-
configPaths:
|
|
36
|
+
m({
|
|
37
|
+
dataPath: r.dataPath,
|
|
38
|
+
configPaths: s
|
|
37
39
|
});
|
|
38
|
-
let
|
|
39
|
-
let t =
|
|
40
|
+
let { deprecatedSetConfigPaths: l } = u(s), f = M(() => l.value.length > 0), h = t(), g = M(() => r.arrayFlowVariables.filter(({ controllingFlowVariableName: e }) => !!e).some(({ configPath: e }) => {
|
|
41
|
+
let t = h[e];
|
|
40
42
|
return t?.controllingFlowVariableAvailable === !1 || t?.controllingFlowVariableOfCorrectType === !1;
|
|
41
|
-
})),
|
|
42
|
-
X(
|
|
43
|
-
e && (
|
|
43
|
+
})), _ = M(() => r.previewError || g.value), v = W(!1), y = M(() => a.value || v.value), b = W(!1);
|
|
44
|
+
X(b, (e) => {
|
|
45
|
+
e && (v.value = a.value);
|
|
44
46
|
});
|
|
45
|
-
let
|
|
46
|
-
return
|
|
47
|
-
if (!
|
|
48
|
-
let e =
|
|
47
|
+
let x = (e) => e.required && !e.controllingFlowVariableName ? "A flow variable is required here." : void 0, S = W(null);
|
|
48
|
+
return n({ scrollIntoViewIfPopoverOpen: () => {
|
|
49
|
+
if (!b.value) return;
|
|
50
|
+
let e = S.value?.$el ?? null;
|
|
49
51
|
for (; e !== null && !(e instanceof Element);) e = e.nextSibling;
|
|
50
52
|
e?.scrollIntoView?.({ block: "nearest" });
|
|
51
|
-
} }), (e, t) => (
|
|
53
|
+
} }), (e, t) => (H(), N(Y(i), {
|
|
52
54
|
ref_key: "toggleButton",
|
|
53
|
-
ref:
|
|
54
|
-
modelValue:
|
|
55
|
-
"onUpdate:modelValue": t[1] ||= (e) =>
|
|
56
|
-
"in-set":
|
|
57
|
-
error:
|
|
58
|
-
hidden: !e.hover && !
|
|
55
|
+
ref: S,
|
|
56
|
+
modelValue: b.value,
|
|
57
|
+
"onUpdate:modelValue": t[1] ||= (e) => b.value = e,
|
|
58
|
+
"in-set": a.value || f.value,
|
|
59
|
+
error: _.value,
|
|
60
|
+
hidden: !e.hover && !a.value && !f.value && !_.value
|
|
59
61
|
}, {
|
|
60
|
-
default: Z(() => [d.value ? (
|
|
62
|
+
default: Z(() => [f.value ? (H(), N(d, { key: 0 })) : y.value ? (H(), F("div", le, [(H(!0), F(j, null, G(e.arrayFlowVariables, (t) => (H(), N(p, {
|
|
61
63
|
key: t.configPath,
|
|
62
64
|
label: t.title,
|
|
63
|
-
"error-sub-text":
|
|
65
|
+
"error-sub-text": a.value ? x(t) : void 0,
|
|
64
66
|
"data-path": e.dataPath,
|
|
65
67
|
"persist-path": t.configPath,
|
|
66
68
|
"skip-override-value-fetch": "",
|
|
@@ -70,11 +72,11 @@ var oe = {
|
|
|
70
72
|
"error-sub-text",
|
|
71
73
|
"data-path",
|
|
72
74
|
"persist-path"
|
|
73
|
-
]))), 128))])) : (
|
|
75
|
+
]))), 128))])) : (H(), F("div", ce, [L(Y(c), { text: "Instead of manually adding elements to the array, you can set the content via array variables here." }), L(Y(o), {
|
|
74
76
|
variant: "outlined",
|
|
75
77
|
size: "small",
|
|
76
78
|
label: "Set array flow variables",
|
|
77
|
-
onClick: t[0] ||= (e) =>
|
|
79
|
+
onClick: t[0] ||= (e) => v.value = !0
|
|
78
80
|
})]))]),
|
|
79
81
|
_: 1
|
|
80
82
|
}, 8, [
|
|
@@ -84,13 +86,13 @@ var oe = {
|
|
|
84
86
|
"hidden"
|
|
85
87
|
]));
|
|
86
88
|
}
|
|
87
|
-
}), [["__scopeId", "data-v-
|
|
89
|
+
}), [["__scopeId", "data-v-258e4563"]]), ue = {
|
|
88
90
|
key: 1,
|
|
89
91
|
class: "vertical"
|
|
90
|
-
},
|
|
92
|
+
}, de = { class: "title-container" }, fe = ["title"], pe = { key: 0 }, me = {
|
|
91
93
|
key: 0,
|
|
92
94
|
class: "sub-title"
|
|
93
|
-
},
|
|
95
|
+
}, he = "topLevelElementScope", ge = /*#__PURE__*/ e(/* @__PURE__ */ R({
|
|
94
96
|
__name: "ArrayLayoutItemLabel",
|
|
95
97
|
props: {
|
|
96
98
|
arrayUiSchema: {},
|
|
@@ -99,50 +101,50 @@ var oe = {
|
|
|
99
101
|
useSectionLayout: { type: Boolean }
|
|
100
102
|
},
|
|
101
103
|
setup(e) {
|
|
102
|
-
let
|
|
103
|
-
...
|
|
104
|
-
scope:
|
|
105
|
-
})),
|
|
106
|
-
return (e, t) => e.useSectionLayout ? (
|
|
104
|
+
let t = e, n = t.titleConfig, r = M(() => ({
|
|
105
|
+
...t.arrayUiSchema,
|
|
106
|
+
scope: he
|
|
107
|
+
})), i = n.type === "provided" ? h(r, "arrayElementTitle", "") : n.title, a = M(() => n.type === "provided" ? null : t.index + 1), o = h(r, "elementSubTitle", "");
|
|
108
|
+
return (e, t) => e.useSectionLayout ? (H(), N(Y(S), {
|
|
107
109
|
key: 0,
|
|
108
|
-
"title-text": Y(
|
|
110
|
+
"title-text": Y(n).type === "enumerated" && a.value ? `${Y(i)} ${a.value}` : Y(i),
|
|
109
111
|
class: "section-heading"
|
|
110
|
-
}, null, 8, ["title-text"])) : (
|
|
112
|
+
}, null, 8, ["title-text"])) : (H(), F("div", ue, [I("div", de, [I("span", {
|
|
111
113
|
class: "title",
|
|
112
|
-
title: Y(
|
|
113
|
-
},
|
|
114
|
+
title: Y(i)
|
|
115
|
+
}, J(Y(i)), 9, fe), a.value ? (H(), F("span", pe, "\xA0" + J(a.value), 1)) : P("", !0)]), Y(o) ? (H(), F("span", me, J(Y(o)), 1)) : P("", !0)]));
|
|
114
116
|
}
|
|
115
|
-
}), [["__scopeId", "data-v-a0a3d922"]]),
|
|
117
|
+
}), [["__scopeId", "data-v-a0a3d922"]]), _e = (e, t) => {
|
|
116
118
|
if ("id" in e) return { id: `${t}/items${e.id.replace(/^#/, "")}` };
|
|
117
119
|
let n = e.scope;
|
|
118
120
|
return n ? n === "topLevelElementScope" ? { scope: t } : { scope: `${t}/items${n.replace(/^#/, "")}` } : { scope: n };
|
|
119
|
-
},
|
|
120
|
-
let
|
|
121
|
-
|
|
121
|
+
}, ve = (e, t, r) => {
|
|
122
|
+
let i = "addStateProviderListener", a = n(i), o = Symbol("arrayParentScope"), s = ie(o) ?? r;
|
|
123
|
+
U(o, s), U(i, ({ indexIds: n = [], indices: r = [], ...i }, o) => i.settingsId ? a({
|
|
122
124
|
indexIds: n,
|
|
123
125
|
indices: r,
|
|
124
|
-
...
|
|
125
|
-
},
|
|
126
|
-
...
|
|
127
|
-
...
|
|
126
|
+
...i
|
|
127
|
+
}, o) : a({
|
|
128
|
+
...i,
|
|
129
|
+
..._e(i, s),
|
|
128
130
|
indexIds: [e, ...n],
|
|
129
131
|
indices: [t, ...r]
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
let t = "trigger",
|
|
133
|
-
|
|
134
|
-
let { id:
|
|
135
|
-
return
|
|
136
|
-
id:
|
|
132
|
+
}, o));
|
|
133
|
+
}, ye = (e) => {
|
|
134
|
+
let t = "trigger", r = n(t);
|
|
135
|
+
U(t, (t) => {
|
|
136
|
+
let { id: n, indexIds: i = [], settingsId: a } = t;
|
|
137
|
+
return r(a ? {
|
|
138
|
+
id: n,
|
|
137
139
|
indexIds: i,
|
|
138
140
|
settingsId: a
|
|
139
141
|
} : {
|
|
140
|
-
id:
|
|
142
|
+
id: n,
|
|
141
143
|
indexIds: [e, ...i]
|
|
142
144
|
});
|
|
143
145
|
});
|
|
144
|
-
let
|
|
145
|
-
|
|
146
|
+
let i = "isTriggerActive", a = n(i);
|
|
147
|
+
U(i, ({ id: t, indexIds: n = [], settingsId: r }) => a(r ? {
|
|
146
148
|
id: t,
|
|
147
149
|
indexIds: n,
|
|
148
150
|
settingsId: r
|
|
@@ -150,10 +152,10 @@ var oe = {
|
|
|
150
152
|
id: t,
|
|
151
153
|
indexIds: [e, ...n]
|
|
152
154
|
}));
|
|
153
|
-
},
|
|
155
|
+
}, be = { class: "item-header" }, xe = { class: "elements" }, Se = {
|
|
154
156
|
key: 1,
|
|
155
157
|
class: "element"
|
|
156
|
-
},
|
|
158
|
+
}, Ce = { class: "form-component" }, we = { class: "compensate-label" }, Te = /*#__PURE__*/ e(/* @__PURE__ */ R({
|
|
157
159
|
__name: "ArrayLayoutItem",
|
|
158
160
|
props: {
|
|
159
161
|
elements: {},
|
|
@@ -170,38 +172,38 @@ var oe = {
|
|
|
170
172
|
useSectionLayout: { type: Boolean }
|
|
171
173
|
},
|
|
172
174
|
setup(e, { expose: t }) {
|
|
173
|
-
let
|
|
174
|
-
|
|
175
|
-
let
|
|
176
|
-
|
|
177
|
-
let
|
|
178
|
-
return
|
|
179
|
-
!
|
|
175
|
+
let r = e, { resetElementDirtyState: i } = k({ isNewElement: r.isNewElement });
|
|
176
|
+
ve(r.id, r.index, r.arrayUiSchema.scope), ye(r.id);
|
|
177
|
+
let a = w(r.idsRecord, r.id);
|
|
178
|
+
U("createArrayAtPath", (e) => E(a, e));
|
|
179
|
+
let o = M(() => x(r.path, `${r.index}`)), s = n("sendAlert");
|
|
180
|
+
return V(() => {
|
|
181
|
+
!r.arrayElementTitle && r.elements.length > 1 && s({
|
|
180
182
|
message: "For displaying more than one row of widgets within an array layout element, the configuration must provide a title for an element.",
|
|
181
183
|
type: "error"
|
|
182
184
|
});
|
|
183
185
|
}), t({
|
|
184
186
|
deleteArrayItem: () => {
|
|
185
|
-
|
|
187
|
+
C(r.idsRecord, r.id);
|
|
186
188
|
},
|
|
187
189
|
resetDirtyState: () => {
|
|
188
|
-
|
|
190
|
+
i();
|
|
189
191
|
}
|
|
190
|
-
}), (e, t) => (e.useCardLayout || e.useSectionLayout) && e.arrayElementTitle ? (
|
|
192
|
+
}), (e, t) => (e.useCardLayout || e.useSectionLayout) && e.arrayElementTitle ? (H(), F(j, { key: 0 }, [I("div", be, [I("div", {
|
|
191
193
|
class: "left",
|
|
192
|
-
style:
|
|
194
|
+
style: B({
|
|
193
195
|
alignItems: e.subTitleProvider ? "normal" : "center",
|
|
194
196
|
...e.useSectionLayout ? { flex: 1 } : {}
|
|
195
197
|
})
|
|
196
|
-
}, [e.elementCheckboxScope ?
|
|
198
|
+
}, [e.elementCheckboxScope ? K(e.$slots, "renderer", {
|
|
197
199
|
key: 0,
|
|
198
|
-
path:
|
|
200
|
+
path: o.value,
|
|
199
201
|
element: {
|
|
200
202
|
type: "Control",
|
|
201
203
|
scope: e.elementCheckboxScope,
|
|
202
|
-
options: { format: Y(
|
|
204
|
+
options: { format: Y(A) }
|
|
203
205
|
}
|
|
204
|
-
}, void 0, !0) : P("", !0), L(
|
|
206
|
+
}, void 0, !0) : P("", !0), L(ge, {
|
|
205
207
|
"title-config": e.arrayElementTitle,
|
|
206
208
|
"array-ui-schema": e.arrayUiSchema,
|
|
207
209
|
index: e.index,
|
|
@@ -211,16 +213,16 @@ var oe = {
|
|
|
211
213
|
"array-ui-schema",
|
|
212
214
|
"index",
|
|
213
215
|
"use-section-layout"
|
|
214
|
-
])], 4),
|
|
215
|
-
key: `${
|
|
216
|
-
path:
|
|
216
|
+
])], 4), K(e.$slots, "controls", {}, void 0, !0)]), I("div", xe, [(H(!0), F(j, null, G(e.elements, ([t, n]) => K(e.$slots, "renderer", {
|
|
217
|
+
key: `${o.value}-${t}`,
|
|
218
|
+
path: o.value,
|
|
217
219
|
element: n
|
|
218
|
-
}, void 0, !0)), 128))])], 64)) : (
|
|
220
|
+
}, void 0, !0)), 128))])], 64)) : (H(), F("div", Se, [I("div", Ce, [K(e.$slots, "renderer", {
|
|
219
221
|
element: e.elements[0][1],
|
|
220
|
-
path:
|
|
221
|
-
}, void 0, !0)]), I("div",
|
|
222
|
+
path: o.value
|
|
223
|
+
}, void 0, !0)]), I("div", we, [K(e.$slots, "controls", {}, void 0, !0)])]));
|
|
222
224
|
}
|
|
223
|
-
}), [["__scopeId", "data-v-175abc25"]]),
|
|
225
|
+
}), [["__scopeId", "data-v-175abc25"]]), Ee = { class: "item-controls" }, De = /*#__PURE__*/ e(/* @__PURE__ */ R({
|
|
224
226
|
__name: "ArrayLayoutItemControls",
|
|
225
227
|
props: {
|
|
226
228
|
isFirst: {
|
|
@@ -256,9 +258,9 @@ var oe = {
|
|
|
256
258
|
],
|
|
257
259
|
setup(e, { emit: t }) {
|
|
258
260
|
let n = t;
|
|
259
|
-
return (e, t) => (
|
|
260
|
-
|
|
261
|
-
e.showSortControls ? (
|
|
261
|
+
return (e, t) => (H(), F("div", Ee, [
|
|
262
|
+
K(e.$slots, "before", {}, void 0, !0),
|
|
263
|
+
e.showSortControls ? (H(), N(Y(o), {
|
|
262
264
|
key: 0,
|
|
263
265
|
"leading-icon": "arrow-up",
|
|
264
266
|
size: "small",
|
|
@@ -268,7 +270,7 @@ var oe = {
|
|
|
268
270
|
ariaLabel: "Move up",
|
|
269
271
|
onClick: t[0] ||= (e) => n("moveUp")
|
|
270
272
|
}, null, 8, ["disabled"])) : P("", !0),
|
|
271
|
-
e.showSortControls ? (
|
|
273
|
+
e.showSortControls ? (H(), N(Y(o), {
|
|
272
274
|
key: 1,
|
|
273
275
|
"leading-icon": "arrow-down",
|
|
274
276
|
size: "small",
|
|
@@ -278,7 +280,7 @@ var oe = {
|
|
|
278
280
|
ariaLabel: "Move down",
|
|
279
281
|
onClick: t[1] ||= (e) => n("moveDown")
|
|
280
282
|
}, null, 8, ["disabled"])) : P("", !0),
|
|
281
|
-
e.showDuplicateButton ? (
|
|
283
|
+
e.showDuplicateButton ? (H(), N(Y(o), {
|
|
282
284
|
key: 2,
|
|
283
285
|
"leading-icon": "copy",
|
|
284
286
|
size: "small",
|
|
@@ -288,7 +290,7 @@ var oe = {
|
|
|
288
290
|
ariaLabel: "Duplicate",
|
|
289
291
|
onClick: t[2] ||= (e) => n("duplicate")
|
|
290
292
|
}, null, 8, ["disabled"])) : P("", !0),
|
|
291
|
-
e.showDeleteButton ? (
|
|
293
|
+
e.showDeleteButton ? (H(), N(Y(o), {
|
|
292
294
|
key: 3,
|
|
293
295
|
"leading-icon": "trash",
|
|
294
296
|
size: "small",
|
|
@@ -300,114 +302,118 @@ var oe = {
|
|
|
300
302
|
}, null, 8, ["disabled"])) : P("", !0)
|
|
301
303
|
]));
|
|
302
304
|
}
|
|
303
|
-
}), [["__scopeId", "data-v-83acfe84"]]),
|
|
304
|
-
let { arrayFlowVariables: n, arrayFlowVariablesSet:
|
|
305
|
-
|
|
306
|
-
let
|
|
307
|
-
if (!
|
|
308
|
-
|
|
305
|
+
}), [["__scopeId", "data-v-83acfe84"]]), Oe = ({ path: e, handleChange: t }) => {
|
|
306
|
+
let { arrayFlowVariables: n, arrayFlowVariablesSet: i, deprecatedConfigPaths: a, deprecatedVariablesSet: o, missingRequiredVariables: s } = f(e);
|
|
307
|
+
l(i);
|
|
308
|
+
let c = W(null), u = W(0), d = r("flowVariablesApi"), p = 0, m = async () => {
|
|
309
|
+
if (!i.value) {
|
|
310
|
+
c.value = null, u.value = 0;
|
|
309
311
|
return;
|
|
310
312
|
}
|
|
311
|
-
if (
|
|
312
|
-
|
|
313
|
+
if (s.value.length > 0) {
|
|
314
|
+
c.value = "No array flow variable is set for a required parameter.";
|
|
313
315
|
return;
|
|
314
316
|
}
|
|
315
|
-
let
|
|
316
|
-
|
|
317
|
+
let r = ++p, a = await d.getFlowVariableOverrideValue(n.value.map(({ configPath: e }) => e), e.value);
|
|
318
|
+
r === p && (a === void 0 ? c.value = "The array content could not be derived from the set array flow variables. Make sure the variables exist and provide the same number of elements." : (c.value = null, u.value = Math.max(0, a.length - 3), t(e.value, a.slice(0, 3))));
|
|
317
319
|
};
|
|
318
|
-
return
|
|
319
|
-
|
|
320
|
-
}), X(n, () =>
|
|
320
|
+
return V(() => {
|
|
321
|
+
i.value && m();
|
|
322
|
+
}), X(n, () => m()), {
|
|
321
323
|
arrayFlowVariables: n,
|
|
322
|
-
arrayFlowVariablesSet:
|
|
323
|
-
|
|
324
|
-
|
|
324
|
+
arrayFlowVariablesSet: i,
|
|
325
|
+
deprecatedConfigPaths: a,
|
|
326
|
+
deprecatedVariablesSet: o,
|
|
327
|
+
arrayFlowVariablesPreviewError: c,
|
|
328
|
+
numHiddenPreviewElements: u
|
|
325
329
|
};
|
|
326
|
-
},
|
|
327
|
-
let
|
|
330
|
+
}, $ = 200, ke = (e) => e.every((e) => typeof e == "string"), Ae = (e) => ke(e) ? e.reduce((e, t) => e + t, "") : !1, je = (e, t) => {
|
|
331
|
+
let r = W(/* @__PURE__ */ new Map()), i = W(!1), a = n("isTriggerActive"), o = () => {
|
|
328
332
|
let e = !1;
|
|
329
|
-
|
|
330
|
-
e = !0, t.state === "SUCCESS" && (
|
|
333
|
+
a({ id: D }).then((t) => {
|
|
334
|
+
e = !0, t.state === "SUCCESS" && (r.value = t.result.reduce((e, { indices: t, isActive: n }) => (e.set(t[0], n), e), /* @__PURE__ */ new Map()), i.value = !1);
|
|
331
335
|
}), setTimeout(() => {
|
|
332
|
-
e || (
|
|
333
|
-
},
|
|
334
|
-
},
|
|
335
|
-
return
|
|
336
|
+
e || (i.value = !0);
|
|
337
|
+
}, $), i.value = !1;
|
|
338
|
+
}, s = W(!1);
|
|
339
|
+
return V(() => {
|
|
336
340
|
setTimeout(() => {
|
|
337
|
-
|
|
338
|
-
},
|
|
339
|
-
}), X(() =>
|
|
340
|
-
e &&
|
|
341
|
+
s.value || (i.value = !0);
|
|
342
|
+
}, $);
|
|
343
|
+
}), X(() => Ae(t.value), (n) => {
|
|
344
|
+
e && n && (s.value = !0, t.value.every((e) => r.value.has(e)) && r.value.size === t.value.length || oe(o));
|
|
341
345
|
}, { immediate: !0 }), {
|
|
342
|
-
isEdited:
|
|
343
|
-
isEditedIsLoading:
|
|
346
|
+
isEdited: r,
|
|
347
|
+
isEditedIsLoading: i
|
|
344
348
|
};
|
|
345
|
-
},
|
|
349
|
+
}, Me = R({
|
|
346
350
|
name: "ArrayLayout",
|
|
347
351
|
components: {
|
|
348
|
-
DispatchRenderer:
|
|
349
|
-
KdsButton:
|
|
350
|
-
KdsEmptyState:
|
|
351
|
-
ArrayFlowVariablesButton:
|
|
352
|
-
ArrayLayoutItemControls:
|
|
353
|
-
ArrayLayoutItem:
|
|
352
|
+
DispatchRenderer: y,
|
|
353
|
+
KdsButton: o,
|
|
354
|
+
KdsEmptyState: s,
|
|
355
|
+
ArrayFlowVariablesButton: Q,
|
|
356
|
+
ArrayLayoutItemControls: De,
|
|
357
|
+
ArrayLayoutItem: Te
|
|
354
358
|
},
|
|
355
|
-
props: { ...
|
|
359
|
+
props: { ...b() },
|
|
356
360
|
setup(e) {
|
|
357
|
-
let { handleChange:
|
|
358
|
-
|
|
359
|
-
dataPath: M(() =>
|
|
360
|
-
value:
|
|
361
|
-
initialValue:
|
|
361
|
+
let { handleChange: t, control: r } = _(e), i = M(() => r.value.data?.length ?? 0), o = n("getInitialValue")(r.value.path), s = W(o?.length ?? 0), c = h(M(() => r.value.uischema), "elementDefaultValue", null);
|
|
362
|
+
re({
|
|
363
|
+
dataPath: M(() => r.value.path),
|
|
364
|
+
value: i,
|
|
365
|
+
initialValue: s.value ?? 0,
|
|
362
366
|
valueComparator: {
|
|
363
367
|
setSettings: (e) => {
|
|
364
|
-
|
|
368
|
+
s.value = e;
|
|
365
369
|
},
|
|
366
|
-
isModified: (e) =>
|
|
370
|
+
isModified: (e) => s.value !== e
|
|
367
371
|
}
|
|
368
372
|
});
|
|
369
|
-
let
|
|
370
|
-
X(() =>
|
|
371
|
-
e.forEach((e,
|
|
372
|
-
e._id ||
|
|
373
|
+
let l = n("createArrayAtPath")(g(r.value.uischema.scope)), u = (e) => Object.keys(l).find((t) => ne(t) === e), d = (e) => u(e) ?? T();
|
|
374
|
+
X(() => r.value.data, (e) => {
|
|
375
|
+
e.forEach((e, n) => {
|
|
376
|
+
e._id || t(x(x(r.value.path, `${n}`), "_id"), d(n));
|
|
373
377
|
});
|
|
374
378
|
}, { immediate: !0 });
|
|
375
|
-
let
|
|
376
|
-
X(() =>
|
|
377
|
-
t &&
|
|
379
|
+
let f = M(() => r.value.data.map(({ _id: e }) => e)), p = (e) => e.reduce((e, t) => (e ?? "<noId>") + (t ?? "<noId>"), "");
|
|
380
|
+
X(() => f.value, (e, t) => {
|
|
381
|
+
t && p(e) === p(t) || (e.forEach((e, t) => e && te(e, t)), t?.filter((t) => t && !e.includes(t)).forEach((e) => ee(e)));
|
|
378
382
|
}, { immediate: !0 });
|
|
379
|
-
let { isEdited:
|
|
380
|
-
path: M(() =>
|
|
381
|
-
handleChange:
|
|
382
|
-
}),
|
|
383
|
-
|
|
384
|
-
let { addItem: A, moveDown: j, moveUp: N, removeItems: P, control: F } =
|
|
383
|
+
let { isEdited: m, isEditedIsLoading: y } = je(r.value.uischema.options.withEditAndReset, f), b = W(null), { arrayFlowVariables: S, arrayFlowVariablesSet: C, deprecatedConfigPaths: w, deprecatedVariablesSet: E, arrayFlowVariablesPreviewError: D, numHiddenPreviewElements: O } = Oe({
|
|
384
|
+
path: M(() => r.value.path),
|
|
385
|
+
handleChange: t
|
|
386
|
+
}), k = W(null);
|
|
387
|
+
S.value !== null && a(k, () => b.value?.scrollIntoViewIfPopoverOpen());
|
|
388
|
+
let { addItem: A, moveDown: j, moveUp: N, removeItems: P, control: F } = v(e);
|
|
385
389
|
return {
|
|
386
390
|
addItem: A,
|
|
387
391
|
moveDown: j,
|
|
388
392
|
moveUp: N,
|
|
389
393
|
removeItems: P,
|
|
390
|
-
handleChange:
|
|
394
|
+
handleChange: t,
|
|
391
395
|
control: F,
|
|
392
|
-
numElements:
|
|
393
|
-
cleanArrayLength:
|
|
394
|
-
idsRecord:
|
|
395
|
-
providedElementDefaultValue:
|
|
396
|
-
isEdited:
|
|
397
|
-
isEditedIsLoading:
|
|
398
|
-
arrayFlowVariables:
|
|
399
|
-
arrayFlowVariablesSet:
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
396
|
+
numElements: i,
|
|
397
|
+
cleanArrayLength: s,
|
|
398
|
+
idsRecord: l,
|
|
399
|
+
providedElementDefaultValue: c,
|
|
400
|
+
isEdited: m,
|
|
401
|
+
isEditedIsLoading: y,
|
|
402
|
+
arrayFlowVariables: S,
|
|
403
|
+
arrayFlowVariablesSet: C,
|
|
404
|
+
deprecatedConfigPaths: w,
|
|
405
|
+
deprecatedVariablesSet: E,
|
|
406
|
+
arrayFlowVariablesPreviewError: D,
|
|
407
|
+
numHiddenPreviewElements: O,
|
|
408
|
+
arrayFlowVariablesButton: b,
|
|
409
|
+
arrayRoot: k
|
|
404
410
|
};
|
|
405
411
|
},
|
|
406
412
|
data() {
|
|
407
413
|
return {
|
|
408
414
|
elementLayoutKey: "elementLayout",
|
|
409
415
|
arrayElementTitleKey: "arrayElementTitle",
|
|
410
|
-
editResetButtonFormat:
|
|
416
|
+
editResetButtonFormat: O,
|
|
411
417
|
newElementId: null,
|
|
412
418
|
resetDirtyStateMethods: /* @__PURE__ */ new Map(),
|
|
413
419
|
deleteArrayItemMethods: /* @__PURE__ */ new Map(),
|
|
@@ -418,6 +424,9 @@ var oe = {
|
|
|
418
424
|
disabled() {
|
|
419
425
|
return !this.control.enabled;
|
|
420
426
|
},
|
|
427
|
+
deprecatedOrNewArrayFlowVariablesSet() {
|
|
428
|
+
return this.deprecatedVariablesSet || this.arrayFlowVariablesSet;
|
|
429
|
+
},
|
|
421
430
|
showItems() {
|
|
422
431
|
return this.numElements > 0 && !(this.arrayFlowVariablesSet && this.arrayFlowVariablesPreviewError);
|
|
423
432
|
},
|
|
@@ -487,7 +496,7 @@ var oe = {
|
|
|
487
496
|
}), t;
|
|
488
497
|
},
|
|
489
498
|
addDefaultItem() {
|
|
490
|
-
let e =
|
|
499
|
+
let e = T();
|
|
491
500
|
this.newElementId = e, this.addItem(this.control.path, {
|
|
492
501
|
...this.createDefaultValue(this.control.schema),
|
|
493
502
|
_id: e
|
|
@@ -500,9 +509,9 @@ var oe = {
|
|
|
500
509
|
this.moveDown?.(this.control.path, e)();
|
|
501
510
|
},
|
|
502
511
|
duplicateItem(e) {
|
|
503
|
-
let t =
|
|
512
|
+
let t = se(this.control.data[e]);
|
|
504
513
|
if (t) {
|
|
505
|
-
let n = JSON.parse(JSON.stringify(t)), r =
|
|
514
|
+
let n = JSON.parse(JSON.stringify(t)), r = T();
|
|
506
515
|
n._id = r, this.newElementId = r;
|
|
507
516
|
let i = [...this.control.data];
|
|
508
517
|
i.splice(e + 1, 0, n), this.handleChange(this.control.path, i);
|
|
@@ -518,20 +527,20 @@ var oe = {
|
|
|
518
527
|
},
|
|
519
528
|
deleteItem(e) {
|
|
520
529
|
let t = this.control.data[this.control.data.length - 1]._id, n = this.control.data[e]._id;
|
|
521
|
-
this.clearState(n, t), this.removeItems?.(
|
|
530
|
+
this.clearState(n, t), this.removeItems?.(x(this.control.path, ""), [e])();
|
|
522
531
|
}
|
|
523
532
|
}
|
|
524
|
-
}),
|
|
533
|
+
}), Ne = {
|
|
525
534
|
key: 0,
|
|
526
535
|
class: "hidden-elements"
|
|
527
|
-
},
|
|
528
|
-
function
|
|
529
|
-
let o =
|
|
530
|
-
return e.control.visible ? (
|
|
536
|
+
}, Pe = { class: "right-of-center" };
|
|
537
|
+
function Fe(e, t, n, r, i, a) {
|
|
538
|
+
let o = q("DispatchRenderer"), s = q("ArrayLayoutItemControls"), c = q("ArrayLayoutItem"), l = q("KdsEmptyState"), u = q("KdsButton"), d = q("ArrayFlowVariablesButton");
|
|
539
|
+
return e.control.visible ? (H(), F("div", {
|
|
531
540
|
key: 0,
|
|
532
541
|
ref: "arrayRoot",
|
|
533
542
|
class: z(["array", { cards: e.useCardLayout }])
|
|
534
|
-
}, [e.showItems ? (
|
|
543
|
+
}, [e.showItems ? (H(!0), F(j, { key: 0 }, G(e.control.data, (t, n) => (H(), F("div", {
|
|
535
544
|
key: `${e.control.path}-${t._id}`,
|
|
536
545
|
class: z(["item", {
|
|
537
546
|
card: e.useCardLayout,
|
|
@@ -556,14 +565,14 @@ function Ne(e, t, n, r, i, a) {
|
|
|
556
565
|
schema: e.control.schema,
|
|
557
566
|
uischema: t,
|
|
558
567
|
path: n,
|
|
559
|
-
enabled: e.
|
|
568
|
+
enabled: !e.disabled && !e.arrayFlowVariablesSet
|
|
560
569
|
}, null, 8, [
|
|
561
570
|
"schema",
|
|
562
571
|
"uischema",
|
|
563
572
|
"path",
|
|
564
573
|
"enabled"
|
|
565
574
|
])]),
|
|
566
|
-
controls: Z(() => [e.
|
|
575
|
+
controls: Z(() => [e.deprecatedOrNewArrayFlowVariablesSet ? P("", !0) : (H(), N(s, {
|
|
567
576
|
key: 0,
|
|
568
577
|
"is-first": n === 0,
|
|
569
578
|
"is-last": n === e.control.data.length - 1,
|
|
@@ -576,7 +585,7 @@ function Ne(e, t, n, r, i, a) {
|
|
|
576
585
|
onDuplicate: (t) => e.duplicateItem(n),
|
|
577
586
|
onDelete: (t) => e.deleteItem(n)
|
|
578
587
|
}, {
|
|
579
|
-
before: Z(() => [e.showEditAndResetControls ? (
|
|
588
|
+
before: Z(() => [e.showEditAndResetControls ? (H(), N(o, ae({
|
|
580
589
|
key: 0,
|
|
581
590
|
ref_for: !0
|
|
582
591
|
}, e.control, {
|
|
@@ -623,7 +632,7 @@ function Ne(e, t, n, r, i, a) {
|
|
|
623
632
|
"element-checkbox-scope",
|
|
624
633
|
"use-card-layout",
|
|
625
634
|
"use-section-layout"
|
|
626
|
-
]), e.isPreviewCutOff && n === e.control.data.length - 1 ? (
|
|
635
|
+
]), e.isPreviewCutOff && n === e.control.data.length - 1 ? (H(), F("div", Ne, J(e.hiddenPreviewElementsText), 1)) : P("", !0)], 2))), 128)) : P("", !0), I("div", null, [e.showItems ? P("", !0) : (H(), N(l, {
|
|
627
636
|
key: 0,
|
|
628
637
|
class: "empty-array",
|
|
629
638
|
disabled: e.disabled,
|
|
@@ -637,32 +646,34 @@ function Ne(e, t, n, r, i, a) {
|
|
|
637
646
|
class: "button-row",
|
|
638
647
|
onMouseover: t[0] ||= (t) => e.buttonRowHovered = !0,
|
|
639
648
|
onMouseleave: t[1] ||= (t) => e.buttonRowHovered = !1
|
|
640
|
-
}, [e.showAddAndDeleteButtons ? (
|
|
649
|
+
}, [e.showAddAndDeleteButtons ? (H(), N(u, {
|
|
641
650
|
key: 0,
|
|
642
651
|
variant: "outlined",
|
|
643
652
|
size: "small",
|
|
644
653
|
"leading-icon": "plus",
|
|
645
654
|
label: e.control.uischema.options.addButtonText || "New",
|
|
646
|
-
disabled: e.disabled || e.
|
|
655
|
+
disabled: e.disabled || e.deprecatedOrNewArrayFlowVariablesSet,
|
|
647
656
|
onClick: e.addDefaultItem
|
|
648
657
|
}, null, 8, [
|
|
649
658
|
"label",
|
|
650
659
|
"disabled",
|
|
651
660
|
"onClick"
|
|
652
|
-
])) : P("", !0), I("div",
|
|
661
|
+
])) : P("", !0), I("div", Pe, [e.arrayFlowVariables ? (H(), N(d, {
|
|
653
662
|
key: 0,
|
|
654
663
|
ref: "arrayFlowVariablesButton",
|
|
655
664
|
"array-flow-variables": e.arrayFlowVariables,
|
|
665
|
+
"deprecated-config-paths": e.deprecatedConfigPaths,
|
|
656
666
|
"data-path": e.control.path,
|
|
657
667
|
hover: e.buttonRowHovered,
|
|
658
668
|
"preview-error": !!e.arrayFlowVariablesPreviewError
|
|
659
669
|
}, null, 8, [
|
|
660
670
|
"array-flow-variables",
|
|
671
|
+
"deprecated-config-paths",
|
|
661
672
|
"data-path",
|
|
662
673
|
"hover",
|
|
663
674
|
"preview-error"
|
|
664
675
|
])) : P("", !0)])], 32)])], 2)) : P("", !0);
|
|
665
676
|
}
|
|
666
|
-
var
|
|
677
|
+
var Ie = /*#__PURE__*/ e(Me, [["render", Fe], ["__scopeId", "data-v-f85660bc"]]);
|
|
667
678
|
//#endregion
|
|
668
|
-
export {
|
|
679
|
+
export { Ie as default };
|