@cratis/event-models 0.351.0 → 0.352.1
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/screen-editor/{DataBindingSections-DAYezlvg.js → DataBindingSections-C5fdyulB.js} +258 -255
- package/dist/screen-editor/{QueryBindingPropertyEditor-8eD_hPn0.js → QueryBindingPropertyEditor-B_UWKYLt.js} +1 -1
- package/dist/screen-editor/ScreenEditor/Forms/FormFields.d.ts +13 -0
- package/dist/screen-editor/ScreenEditor/Forms/formFieldGrid.d.ts +10 -0
- package/dist/screen-editor/ScreenEditor/Inspector/PropertiesPanel.d.ts +3 -1
- package/dist/screen-editor/ScreenEditor/Inspector/ScreenInspector.d.ts +2 -1
- package/dist/screen-editor/ScreenEditor/Inspector/ScreenProperties.d.ts +3 -1
- package/dist/screen-editor/ScreenEditor/Menu/MenuPopover.d.ts +4 -1
- package/dist/screen-editor/ScreenEditor/Palette/PaletteFolders.d.ts +4 -1
- package/dist/screen-editor/ScreenEditor/Palette/useComponentPalette.d.ts +4 -1
- package/dist/screen-editor/ScreenEditor/Templates/dialogTitle.d.ts +2 -0
- package/dist/screen-editor/ScreenEditor/Templates/nativeStandIns.d.ts +1 -0
- package/dist/screen-editor/index.js +2757 -2656
- package/dist/screen-editor/screen-editor.css +1 -1
- package/package.json +3 -3
package/dist/screen-editor/{DataBindingSections-DAYezlvg.js → DataBindingSections-C5fdyulB.js}
RENAMED
|
@@ -6,10 +6,11 @@ import { EditingScopeKind as ie, FilterControl as ae, HorizontalAlignment as dt,
|
|
|
6
6
|
import { NavigationEditKind as we, OutletDiagnosticCode as ft, OutletItemSource as Te, OutletLevelKind as $, OutletRemoval as ht, addNavigationItem as gt, applicationNavigationLevel as vt, diagnoseNavigationOutlets as bt, dialogTemplateOutlets as yt, effectiveNavigation as Ot, effectiveOutlet as St, elementNodeId as wt, findComponentDescriptor as Tt, isExternalComponent as kt, outletChainOf as It, outletItemsComponentName as Me, ownOutletItems as Nt, switchOutletMode as At } from "@cratis/scene.engine";
|
|
7
7
|
import { itemEditableRule as Re, itemInheritedReason as De, navigationDesignMode as Ct, toolbarDesignMode as jt } from "@cratis/scene.react";
|
|
8
8
|
import { defaultBlueprint as ee } from "@cratis/scene.blueprint.default";
|
|
9
|
+
import { humanizeBindingName as $t } from "@cratis/scene.blueprint.components";
|
|
9
10
|
var pe = {
|
|
10
11
|
name: "StudioScreen",
|
|
11
12
|
slots: [{ name: "content" }]
|
|
12
|
-
}, H = "content", E = "Screen",
|
|
13
|
+
}, H = "content", E = "Screen", sr = "template-root", or = "screen-root", Le = () => ({
|
|
13
14
|
layouts: [pe],
|
|
14
15
|
screenTemplates: [],
|
|
15
16
|
dialogTemplates: [],
|
|
@@ -17,7 +18,7 @@ var pe = {
|
|
|
17
18
|
exposures: [],
|
|
18
19
|
instanceContributions: []
|
|
19
20
|
});
|
|
20
|
-
function
|
|
21
|
+
function ir(e, t) {
|
|
21
22
|
return {
|
|
22
23
|
...Le(),
|
|
23
24
|
screens: [{
|
|
@@ -30,7 +31,7 @@ function rr(e, t) {
|
|
|
30
31
|
}]
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
+
function ar(e, t, n) {
|
|
34
35
|
return {
|
|
35
36
|
...Le(),
|
|
36
37
|
screenTemplates: [{
|
|
@@ -41,10 +42,10 @@ function sr(e, t, n) {
|
|
|
41
42
|
}]
|
|
42
43
|
};
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
+
function lr(e, t) {
|
|
45
46
|
return (t === void 0 ? e.screens.find((n) => n.name === E)?.slotContent : e.screenTemplates.find((n) => n.name === t)?.content)?.[H]?.[0];
|
|
46
47
|
}
|
|
47
|
-
function
|
|
48
|
+
function dr(e, t = !1) {
|
|
48
49
|
return t && e !== void 0 ? {
|
|
49
50
|
kind: ie.ScreenTemplate,
|
|
50
51
|
name: e,
|
|
@@ -54,28 +55,28 @@ function ir(e, t = !1) {
|
|
|
54
55
|
name: E
|
|
55
56
|
};
|
|
56
57
|
}
|
|
57
|
-
var
|
|
58
|
+
var Ft = () => ({
|
|
58
59
|
application: { outlets: [] },
|
|
59
60
|
modules: []
|
|
60
|
-
}), fe = (e) => e.navigation ??
|
|
61
|
+
}), fe = (e) => e.navigation ?? Ft(), Et = (e, t) => ({
|
|
61
62
|
...e,
|
|
62
63
|
navigation: t
|
|
63
64
|
});
|
|
64
|
-
function
|
|
65
|
+
function xt(e, t, n) {
|
|
65
66
|
return Nt(e, t, n).filter((r) => r.kind === O.Navigation);
|
|
66
67
|
}
|
|
67
68
|
var Be = (e, t) => e !== void 0 && t !== void 0 && e.kind === t.kind && e.name === t.name, he = (e) => e.outletLevels ?? [];
|
|
68
|
-
function
|
|
69
|
+
function Mt(e, t) {
|
|
69
70
|
const { outletLevels: n, ...r } = e, s = t.filter((o) => (o.refinements ?? []).length > 0 || (o.contributions ?? []).length > 0 || (o.outlets ?? []).length > 0);
|
|
70
71
|
return s.length === 0 ? r : {
|
|
71
72
|
...r,
|
|
72
73
|
outletLevels: s
|
|
73
74
|
};
|
|
74
75
|
}
|
|
75
|
-
function
|
|
76
|
+
function Rt(e, t, n) {
|
|
76
77
|
return t.kind === $.Module ? fe(e).modules.find((r) => r.module === t.name)?.refinements?.find((r) => r.outlet === n) : he(e).find((r) => r.kind === t.kind && r.name === t.name)?.refinements?.find((r) => r.outlet === n);
|
|
77
78
|
}
|
|
78
|
-
function
|
|
79
|
+
function Dt(e, t, n, r) {
|
|
79
80
|
const s = (i) => {
|
|
80
81
|
const d = (i ?? []).filter((a) => a.outlet !== n);
|
|
81
82
|
return r ? [...d, r] : d;
|
|
@@ -83,31 +84,31 @@ function Rt(e, t, n, r) {
|
|
|
83
84
|
if (t.kind === $.Module) {
|
|
84
85
|
const i = fe(e), d = (i.modules.some((a) => a.module === t.name) ? i.modules : [...i.modules, { module: t.name }]).flatMap((a) => {
|
|
85
86
|
if (a.module !== t.name) return [a];
|
|
86
|
-
const { refinements:
|
|
87
|
+
const { refinements: p, ...y } = a, h = s(a.refinements), g = h.length > 0 ? {
|
|
87
88
|
...y,
|
|
88
89
|
refinements: h
|
|
89
90
|
} : y;
|
|
90
91
|
return g.refinements || g.contributions ? [g] : [];
|
|
91
92
|
});
|
|
92
|
-
return
|
|
93
|
+
return Et(e, {
|
|
93
94
|
...i,
|
|
94
95
|
modules: d
|
|
95
96
|
});
|
|
96
97
|
}
|
|
97
98
|
const o = he(e);
|
|
98
|
-
return
|
|
99
|
+
return Mt(e, (o.some((i) => i.kind === t.kind && i.name === t.name) ? o : [...o, {
|
|
99
100
|
kind: t.kind,
|
|
100
101
|
name: t.name
|
|
101
102
|
}]).map((i) => {
|
|
102
103
|
if (i.kind !== t.kind || i.name !== t.name) return i;
|
|
103
|
-
const { refinements: d, ...a } = i,
|
|
104
|
-
return
|
|
104
|
+
const { refinements: d, ...a } = i, p = s(i.refinements);
|
|
105
|
+
return p.length > 0 ? {
|
|
105
106
|
...a,
|
|
106
|
-
refinements:
|
|
107
|
+
refinements: p
|
|
107
108
|
} : a;
|
|
108
109
|
}));
|
|
109
110
|
}
|
|
110
|
-
function
|
|
111
|
+
function cr(e, t, n) {
|
|
111
112
|
return {
|
|
112
113
|
...e,
|
|
113
114
|
screenTemplates: e.screenTemplates.map((r) => {
|
|
@@ -120,10 +121,10 @@ function ar(e, t, n) {
|
|
|
120
121
|
})
|
|
121
122
|
};
|
|
122
123
|
}
|
|
123
|
-
function
|
|
124
|
+
function ur(e) {
|
|
124
125
|
return { types: e };
|
|
125
126
|
}
|
|
126
|
-
var
|
|
127
|
+
var mr = ({ diagnostics: e, label: t }) => {
|
|
127
128
|
if (e.length === 0) return null;
|
|
128
129
|
const n = [...e].sort((r, s) => +(s.severity === "error") - +(r.severity === "error"));
|
|
129
130
|
return /* @__PURE__ */ I("div", {
|
|
@@ -183,13 +184,13 @@ var dr = ({ diagnostics: e, label: t }) => {
|
|
|
183
184
|
addSubItem: "addSubItem"
|
|
184
185
|
}, _e = /* @__PURE__ */ (function(e) {
|
|
185
186
|
return e.Elements = "elements", e.Collection = "collection", e.Region = "region", e.Outlet = "outlet", e;
|
|
186
|
-
})({}),
|
|
187
|
+
})({}), Lt = (e) => "rejected" in e, M = (e, t, n) => ({
|
|
187
188
|
id: e,
|
|
188
189
|
icon: Ee(t),
|
|
189
190
|
title: n,
|
|
190
191
|
availability: Re,
|
|
191
192
|
readOnlyReason: De
|
|
192
|
-
}),
|
|
193
|
+
}), Bt = [
|
|
193
194
|
M(c.moveEarlier, "arrow-left", "Move earlier"),
|
|
194
195
|
M(c.moveLater, "arrow-right", "Move later"),
|
|
195
196
|
M(c.duplicate, "copy", "Duplicate"),
|
|
@@ -224,10 +225,10 @@ var dr = ({ diagnostics: e, label: t }) => {
|
|
|
224
225
|
itemToolbar: [
|
|
225
226
|
M(c.rename, "pencil", "Rename"),
|
|
226
227
|
...n,
|
|
227
|
-
...
|
|
228
|
+
...Bt
|
|
228
229
|
]
|
|
229
230
|
});
|
|
230
|
-
function
|
|
231
|
+
function _t(e) {
|
|
231
232
|
switch (e) {
|
|
232
233
|
case F.Actions: {
|
|
233
234
|
const t = jt(), n = t.itemToolbar.findIndex((o) => o.id === c.emphasis), r = [M(c.opens, "panel-right-open", "Opens"), M(c.enabled, "toggle-right", "Enabled")], s = n < 0 ? [...t.itemToolbar, ...r] : [
|
|
@@ -250,7 +251,7 @@ function Bt(e) {
|
|
|
250
251
|
return se(e, "Add stat", [M(c.valueFrom, "hash", "Value from")]);
|
|
251
252
|
}
|
|
252
253
|
}
|
|
253
|
-
var
|
|
254
|
+
var qt = {
|
|
254
255
|
kinds: {
|
|
255
256
|
actions: "actions",
|
|
256
257
|
filters: "filters",
|
|
@@ -374,7 +375,7 @@ var _t = {
|
|
|
374
375
|
primary: "primary",
|
|
375
376
|
optional: "optional"
|
|
376
377
|
}
|
|
377
|
-
},
|
|
378
|
+
}, Pt = {
|
|
378
379
|
toolbarLabel: (e) => `Actions for ${e}`,
|
|
379
380
|
slotName: (e) => `slot: ${e}`,
|
|
380
381
|
titleField: "Title",
|
|
@@ -471,7 +472,7 @@ var _t = {
|
|
|
471
472
|
}
|
|
472
473
|
},
|
|
473
474
|
close: "Close",
|
|
474
|
-
outlets:
|
|
475
|
+
outlets: qt,
|
|
475
476
|
announce: {
|
|
476
477
|
added: (e) => `Added ${e}`,
|
|
477
478
|
moved: (e, t, n) => `Moved ${e} to position ${t} of ${n}`,
|
|
@@ -481,7 +482,7 @@ var _t = {
|
|
|
481
482
|
nothingToAdd: "Not possible: there is nothing here to add to"
|
|
482
483
|
}
|
|
483
484
|
}, qe = () => globalThis.crypto.randomUUID();
|
|
484
|
-
function
|
|
485
|
+
function Ht({ document: e, screen: t, slices: n, queries: r, templates: s = [], layouts: o = [] }) {
|
|
485
486
|
return {
|
|
486
487
|
slices: n,
|
|
487
488
|
slots: rt(e, s, o, t),
|
|
@@ -489,7 +490,7 @@ function Pt({ document: e, screen: t, slices: n, queries: r, templates: s = [],
|
|
|
489
490
|
routeParameters: []
|
|
490
491
|
};
|
|
491
492
|
}
|
|
492
|
-
function
|
|
493
|
+
function Vt(e, t) {
|
|
493
494
|
switch (e.availability) {
|
|
494
495
|
case void 0:
|
|
495
496
|
return !0;
|
|
@@ -500,8 +501,8 @@ function Ht(e, t) {
|
|
|
500
501
|
}
|
|
501
502
|
}
|
|
502
503
|
var Y = De;
|
|
503
|
-
function
|
|
504
|
-
if (!
|
|
504
|
+
function pr(e, t) {
|
|
505
|
+
if (!Vt(e, t)) return {
|
|
505
506
|
visible: !1,
|
|
506
507
|
enabled: !1
|
|
507
508
|
};
|
|
@@ -537,10 +538,10 @@ var ge = (e, t, n) => e.flatMap((r) => {
|
|
|
537
538
|
...r,
|
|
538
539
|
children: ge(r.children, t, n)
|
|
539
540
|
} : r];
|
|
540
|
-
}),
|
|
541
|
+
}), Wt = (e) => Object.fromEntries(Object.entries(e).filter(([, t]) => t !== void 0)), Z = (e, t, n) => ge(e, t, (r) => Wt({
|
|
541
542
|
...r,
|
|
542
543
|
...n
|
|
543
|
-
})),
|
|
544
|
+
})), Ut = (e, t) => ge(e, t, () => {
|
|
544
545
|
});
|
|
545
546
|
function G(e, t) {
|
|
546
547
|
for (const n of e) {
|
|
@@ -556,7 +557,7 @@ function J(e, t) {
|
|
|
556
557
|
if (r) return r;
|
|
557
558
|
}
|
|
558
559
|
}
|
|
559
|
-
function
|
|
560
|
+
function zt(e, t, n) {
|
|
560
561
|
const r = J(e, t);
|
|
561
562
|
if (!r) return [...e];
|
|
562
563
|
const s = r.findIndex((d) => d.id === t);
|
|
@@ -578,7 +579,7 @@ var Pe = (e, t) => ({
|
|
|
578
579
|
id: t(),
|
|
579
580
|
...e.children ? { children: e.children.map((n) => Pe(n, t)) } : {}
|
|
580
581
|
});
|
|
581
|
-
function
|
|
582
|
+
function Kt(e, t, n) {
|
|
582
583
|
const r = G(e, t), s = J(e, t);
|
|
583
584
|
if (!r || !s) return { items: [...e] };
|
|
584
585
|
const o = Pe(r, n), i = s.findIndex((a) => a.id === t) + 1, d = [
|
|
@@ -591,7 +592,7 @@ function zt(e, t, n) {
|
|
|
591
592
|
copy: o
|
|
592
593
|
};
|
|
593
594
|
}
|
|
594
|
-
var
|
|
595
|
+
var Qt = (e) => e === D.Inherits ? "inherit" : e === D.Extends ? "extend" : e === D.Overrides ? "override" : void 0;
|
|
595
596
|
function He(e, t) {
|
|
596
597
|
if (!t?.module) return;
|
|
597
598
|
const n = e.modules.find((o) => o.id === t.module);
|
|
@@ -605,8 +606,8 @@ function He(e, t) {
|
|
|
605
606
|
}
|
|
606
607
|
return [n.name, ...r].join(" › ");
|
|
607
608
|
}
|
|
608
|
-
function
|
|
609
|
-
const { region: t, module: n, navigation: r, structure: s, newId: o, slots: i, startingLabel: d, strings: a } = e,
|
|
609
|
+
function fr(e) {
|
|
610
|
+
const { region: t, module: n, navigation: r, structure: s, newId: o, slots: i, startingLabel: d, strings: a } = e, p = Ot(s, r, n, t), y = xt(r, n, t), h = bt(s, r, { slots: [...i] }), g = (T) => `${n ?? "application"}:${t}:${T}`, f = [], k = (T, v) => {
|
|
610
611
|
const S = T.filter((u) => !u.readOnly);
|
|
611
612
|
T.forEach((u) => {
|
|
612
613
|
const C = G(y, u.id)?.target ?? (u.target ? {
|
|
@@ -616,7 +617,7 @@ function ur(e) {
|
|
|
616
617
|
code: W.code,
|
|
617
618
|
message: W.message
|
|
618
619
|
}));
|
|
619
|
-
|
|
620
|
+
f.push({
|
|
620
621
|
id: u.id,
|
|
621
622
|
label: u.title,
|
|
622
623
|
index: K,
|
|
@@ -642,7 +643,7 @@ function ur(e) {
|
|
|
642
643
|
}), u.children && k(u.children, u.id);
|
|
643
644
|
});
|
|
644
645
|
};
|
|
645
|
-
k(
|
|
646
|
+
k(p.items);
|
|
646
647
|
const L = t, j = (T, v, S, u = {}) => v.rejected ? { rejected: v.rejected } : {
|
|
647
648
|
label: T,
|
|
648
649
|
edits: [],
|
|
@@ -667,16 +668,16 @@ function ur(e) {
|
|
|
667
668
|
};
|
|
668
669
|
return {
|
|
669
670
|
kind: _e.Region,
|
|
670
|
-
items:
|
|
671
|
+
items: f,
|
|
671
672
|
regionTag: {
|
|
672
|
-
text:
|
|
673
|
-
long: a.tagLong(t,
|
|
674
|
-
kind:
|
|
673
|
+
text: p.sources.label,
|
|
674
|
+
long: a.tagLong(t, p.sources.label),
|
|
675
|
+
kind: p.sources.kind
|
|
675
676
|
},
|
|
676
677
|
region: {
|
|
677
678
|
region: L,
|
|
678
679
|
...n !== void 0 ? { module: n } : {},
|
|
679
|
-
...
|
|
680
|
+
...p.mode ? { mode: Qt(p.mode) } : {}
|
|
680
681
|
},
|
|
681
682
|
add: (T) => T === c.addItem ? A() : { rejected: T },
|
|
682
683
|
act: (T, v) => {
|
|
@@ -686,15 +687,15 @@ function ur(e) {
|
|
|
686
687
|
case c.moveEarlier:
|
|
687
688
|
case c.moveLater: {
|
|
688
689
|
const S = v.index + (T === c.moveEarlier ? -1 : 1), u = J(y, v.id);
|
|
689
|
-
return !u || S < 0 || S >= u.length ? { rejected: "noWhere" } : j("Move", w(
|
|
690
|
+
return !u || S < 0 || S >= u.length ? { rejected: "noWhere" } : j("Move", w(zt(y, v.id, S)), { itemId: v.id });
|
|
690
691
|
}
|
|
691
692
|
case c.duplicate: {
|
|
692
|
-
const S =
|
|
693
|
+
const S = Kt(y, v.id, o);
|
|
693
694
|
return S.copy ? j("Duplicate", w(S.items), { itemId: S.copy.id }) : { rejected: T };
|
|
694
695
|
}
|
|
695
696
|
case c.delete: {
|
|
696
697
|
const S = J(y, v.id) ?? [], u = S.findIndex((K) => K.id === v.id), C = S[u + 1] ?? S[u - 1];
|
|
697
|
-
return j("Remove", w(
|
|
698
|
+
return j("Remove", w(Ut(y, v.id)), { itemId: C?.id ?? null });
|
|
698
699
|
}
|
|
699
700
|
default:
|
|
700
701
|
return { rejected: T };
|
|
@@ -706,7 +707,7 @@ function ur(e) {
|
|
|
706
707
|
if (S) {
|
|
707
708
|
if (T === c.target) return {
|
|
708
709
|
property: oe("target", "Navigate to", "navigationItemTarget", S.target),
|
|
709
|
-
plan: (u) => j("Link", w(Z(y, v.id, { target:
|
|
710
|
+
plan: (u) => j("Link", w(Z(y, v.id, { target: Yt(u) ? u : void 0 })), { itemId: v.id })
|
|
710
711
|
};
|
|
711
712
|
if (T === c.slot) return {
|
|
712
713
|
property: oe("slot", "Render into slot", "renderingSlot", S.slot ?? "content"),
|
|
@@ -733,7 +734,7 @@ function ur(e) {
|
|
|
733
734
|
}]
|
|
734
735
|
};
|
|
735
736
|
}
|
|
736
|
-
var
|
|
737
|
+
var Yt = (e) => typeof e == "object" && e !== null && typeof e.module == "string";
|
|
737
738
|
function oe(e, t, n, r) {
|
|
738
739
|
return {
|
|
739
740
|
descriptor: {
|
|
@@ -749,7 +750,7 @@ function oe(e, t, n, r) {
|
|
|
749
750
|
editable: !0
|
|
750
751
|
};
|
|
751
752
|
}
|
|
752
|
-
function
|
|
753
|
+
function Jt(e, t) {
|
|
753
754
|
return {
|
|
754
755
|
id: e,
|
|
755
756
|
name: t,
|
|
@@ -771,26 +772,26 @@ function Yt(e, t) {
|
|
|
771
772
|
properties: {}
|
|
772
773
|
};
|
|
773
774
|
}
|
|
774
|
-
function
|
|
775
|
+
function Zt(e, t, n, r = {}, s = {}) {
|
|
775
776
|
return {
|
|
776
|
-
...
|
|
777
|
+
...Jt(e, t),
|
|
777
778
|
componentName: n,
|
|
778
779
|
properties: r,
|
|
779
780
|
slots: s
|
|
780
781
|
};
|
|
781
782
|
}
|
|
782
|
-
function
|
|
783
|
+
function Gt(e, t = [], n = !1, r = Xt) {
|
|
783
784
|
if (e?.fits && e.fits.length > 0) return e.fits;
|
|
784
785
|
const s = e?.screenTemplate;
|
|
785
786
|
return s !== void 0 && r.includes(s) ? [U.Dialog] : s !== void 0 && t.includes(s) ? [U.Page] : n ? [U.Dialog] : [U.Page];
|
|
786
787
|
}
|
|
787
|
-
var
|
|
788
|
+
var Xt = (ee.dialogTemplates ?? []).map((e) => e.name);
|
|
788
789
|
function Ve(e, t = []) {
|
|
789
790
|
const n = new Set((e?.screenTemplates ?? []).map((s) => s.name)), r = new Set((e?.dialogTemplates ?? []).map((s) => s.name));
|
|
790
791
|
for (const s of [...ee.dialogTemplates ?? [], ...t]) n.has(s.name) || r.add(s.name);
|
|
791
792
|
return [...r];
|
|
792
793
|
}
|
|
793
|
-
function
|
|
794
|
+
function en(e, t = []) {
|
|
794
795
|
const n = /* @__PURE__ */ new Set();
|
|
795
796
|
for (const r of [
|
|
796
797
|
...e?.screenTemplates ?? [],
|
|
@@ -803,49 +804,51 @@ function ke(e = []) {
|
|
|
803
804
|
const t = /* @__PURE__ */ new Set();
|
|
804
805
|
return [...ee.dialogTemplates ?? [], ...e.flatMap((n) => n.dialogTemplates ?? [])].filter((n) => !t.has(n.name) && !!t.add(n.name));
|
|
805
806
|
}
|
|
807
|
+
function tn(e) {
|
|
808
|
+
const t = (e?.forms ?? []).find((n) => typeof n?.forCommand == "string" && n.forCommand !== "")?.forCommand;
|
|
809
|
+
return t === void 0 ? void 0 : $t(t);
|
|
810
|
+
}
|
|
806
811
|
var Ie = /* @__PURE__ */ (function(e) {
|
|
807
812
|
return e.Dialog = "dialog", e.Drawer = "drawer", e;
|
|
808
813
|
})({});
|
|
809
|
-
function
|
|
814
|
+
function nn(e, t = []) {
|
|
810
815
|
return [...e.dialogTemplates ?? [], ...t];
|
|
811
816
|
}
|
|
812
817
|
function We(e, t = [], n = !1, r) {
|
|
813
|
-
const s =
|
|
818
|
+
const s = Gt(e, t, n, r)[0];
|
|
814
819
|
if (s === U.Dialog) return Ie.Dialog;
|
|
815
820
|
if (s === U.Drawer) return Ie.Drawer;
|
|
816
821
|
}
|
|
817
|
-
function
|
|
818
|
-
const s = e.screens.find((
|
|
822
|
+
function hr(e, t = [], n = [], r = !1) {
|
|
823
|
+
const s = e.screens.find((p) => p.name === E);
|
|
819
824
|
if (!s) return;
|
|
820
|
-
const o =
|
|
825
|
+
const o = nn(e, t), i = We(s, [...e.screenTemplates.map((p) => p.name), ...n], r, Ve(e, t));
|
|
821
826
|
if (i === void 0) return;
|
|
822
|
-
const d = s.screenTemplate === void 0 ? void 0 : o.find((
|
|
827
|
+
const d = s.screenTemplate === void 0 ? void 0 : o.find((p) => p.name === s.screenTemplate), a = tn(s) ?? d?.displayName ?? d?.name;
|
|
823
828
|
return {
|
|
824
829
|
presentation: i,
|
|
825
|
-
...d ? {
|
|
826
|
-
|
|
827
|
-
title: d.displayName ?? d.name
|
|
828
|
-
} : {}
|
|
830
|
+
...d ? { template: d.name } : {},
|
|
831
|
+
...a ? { title: a } : {}
|
|
829
832
|
};
|
|
830
833
|
}
|
|
831
|
-
var
|
|
832
|
-
function
|
|
834
|
+
var rn = "dialog-actions-chrome";
|
|
835
|
+
function sn(e, t = [], n = !1, r) {
|
|
833
836
|
const s = e.screens.find((o) => o.name === E);
|
|
834
837
|
return s !== void 0 && We(s, [...e.screenTemplates.map((o) => o.name), ...t], n, Ve(e, r)) !== void 0;
|
|
835
838
|
}
|
|
836
|
-
function
|
|
839
|
+
function on(e, t = []) {
|
|
837
840
|
const n = e.dialogTemplates ?? [], r = e.screens.find((s) => s.name === E)?.screenTemplate;
|
|
838
841
|
return (r === void 0 ? void 0 : [...n, ...t].find((s) => s.name === r)) ?? n.find((s) => s.name === "FormDialog") ?? n[0] ?? {
|
|
839
842
|
name: "FormDialog",
|
|
840
843
|
slots: []
|
|
841
844
|
};
|
|
842
845
|
}
|
|
843
|
-
function
|
|
844
|
-
if (!
|
|
846
|
+
function an(e, t = [], n = [], r = !1, s) {
|
|
847
|
+
if (!sn(e, en(e, [{ screenTemplates: [...t] }]), r, s)) return !1;
|
|
845
848
|
const o = e.screens.find((a) => a.name === E), i = o?.screenTemplate ? [...e.screenTemplates, ...t].find((a) => a.name === o.screenTemplate) : void 0, d = o?.layout ? [...e.layouts, ...n].find((a) => a.name === o.layout) : void 0;
|
|
846
849
|
return ![...i?.outlets ?? [], ...d?.outlets ?? []].some((a) => a.name === xe);
|
|
847
850
|
}
|
|
848
|
-
function
|
|
851
|
+
function gr(e, t) {
|
|
849
852
|
if (t.length === 0) return e;
|
|
850
853
|
const n = e.screens.map((r) => {
|
|
851
854
|
if (r.name !== "Screen") return r;
|
|
@@ -866,8 +869,8 @@ function pr(e, t) {
|
|
|
866
869
|
screens: n
|
|
867
870
|
};
|
|
868
871
|
}
|
|
869
|
-
function
|
|
870
|
-
return
|
|
872
|
+
function vr() {
|
|
873
|
+
return Zt(rn, "Dialog actions", Me, {
|
|
871
874
|
name: xe,
|
|
872
875
|
kind: "actions",
|
|
873
876
|
items: []
|
|
@@ -883,7 +886,7 @@ function X(e, t) {
|
|
|
883
886
|
...typeof n.enabledWhen == "string" && n.enabledWhen !== "" ? { enabledWhen: n.enabledWhen } : {}
|
|
884
887
|
};
|
|
885
888
|
}
|
|
886
|
-
var
|
|
889
|
+
var ln = (e) => {
|
|
887
890
|
switch (e) {
|
|
888
891
|
case O.Button:
|
|
889
892
|
case O.MenuEntry:
|
|
@@ -930,21 +933,21 @@ var on = (e) => {
|
|
|
930
933
|
effectiveValue: s,
|
|
931
934
|
source: me.Local,
|
|
932
935
|
editable: !0
|
|
933
|
-
}),
|
|
936
|
+
}), dn = (e) => e.flatMap((t) => t.parameters.map((n) => ({
|
|
934
937
|
value: be(t.name, n.name),
|
|
935
938
|
label: `${t.name} › ${n.name}`
|
|
936
|
-
}))),
|
|
939
|
+
}))), cn = (e) => e.filter((t) => t.resultShape !== Fe.Collection).flatMap((t) => t.resultFields.map((n) => ({
|
|
937
940
|
value: be(t.name, n.name),
|
|
938
941
|
label: `${t.name} › ${n.name}`
|
|
939
942
|
})));
|
|
940
|
-
function
|
|
943
|
+
function un(e, t, n) {
|
|
941
944
|
const r = t, s = n.strings, o = (i) => {
|
|
942
945
|
const d = i;
|
|
943
946
|
return d?.query ? be(d.query, d.parameter ?? d.field ?? "") : void 0;
|
|
944
947
|
};
|
|
945
948
|
switch (e) {
|
|
946
949
|
case c.sets:
|
|
947
|
-
return _("sets", s.sets, x.Enum, Q.Enum, o(r.sets),
|
|
950
|
+
return _("sets", s.sets, x.Enum, Q.Enum, o(r.sets), dn(n.queries));
|
|
948
951
|
case c.control:
|
|
949
952
|
return _("control", s.control, x.Enum, Q.Enum, r.control ?? ae.Search, Object.values(ae).map((i) => ({
|
|
950
953
|
value: i,
|
|
@@ -956,7 +959,7 @@ function dn(e, t, n) {
|
|
|
956
959
|
label: i.label
|
|
957
960
|
})));
|
|
958
961
|
case c.valueFrom:
|
|
959
|
-
return _("valueFrom", s.valueFrom, x.Enum, Q.Enum, o(r.valueFrom),
|
|
962
|
+
return _("valueFrom", s.valueFrom, x.Enum, Q.Enum, o(r.valueFrom), cn(n.queries));
|
|
960
963
|
case c.target:
|
|
961
964
|
return _("target", s.target, x.String, "navigationItemTarget", r.target);
|
|
962
965
|
case c.slot:
|
|
@@ -991,7 +994,7 @@ function dn(e, t, n) {
|
|
|
991
994
|
return;
|
|
992
995
|
}
|
|
993
996
|
}
|
|
994
|
-
function
|
|
997
|
+
function mn(e, t) {
|
|
995
998
|
const n = t == null || t === "";
|
|
996
999
|
switch (e) {
|
|
997
1000
|
case c.sets: {
|
|
@@ -1029,7 +1032,7 @@ function cn(e, t) {
|
|
|
1029
1032
|
return;
|
|
1030
1033
|
}
|
|
1031
1034
|
}
|
|
1032
|
-
function
|
|
1035
|
+
function pn(e, t) {
|
|
1033
1036
|
const n = e, r = t.strings, s = {}, o = n.sets, i = n.valueFrom;
|
|
1034
1037
|
switch (e.kind) {
|
|
1035
1038
|
case O.Filter:
|
|
@@ -1052,7 +1055,7 @@ function un(e, t) {
|
|
|
1052
1055
|
}
|
|
1053
1056
|
return s;
|
|
1054
1057
|
}
|
|
1055
|
-
function
|
|
1058
|
+
function fn(e) {
|
|
1056
1059
|
const t = e;
|
|
1057
1060
|
switch (e.kind) {
|
|
1058
1061
|
case O.Button:
|
|
@@ -1080,7 +1083,7 @@ var z = (e) => {
|
|
|
1080
1083
|
key: "items",
|
|
1081
1084
|
items: t.items
|
|
1082
1085
|
};
|
|
1083
|
-
},
|
|
1086
|
+
}, hn = (e) => Object.fromEntries(Object.entries(e).filter(([, t]) => t !== void 0));
|
|
1084
1087
|
function te(e, t, n) {
|
|
1085
1088
|
return e.flatMap((r) => {
|
|
1086
1089
|
if (r.id === t) {
|
|
@@ -1108,19 +1111,19 @@ function de(e, t) {
|
|
|
1108
1111
|
if (s) return s;
|
|
1109
1112
|
}
|
|
1110
1113
|
}
|
|
1111
|
-
var Ae = (e, t, n) => te(e, t, (r) =>
|
|
1114
|
+
var Ae = (e, t, n) => te(e, t, (r) => hn({
|
|
1112
1115
|
...r,
|
|
1113
1116
|
...n
|
|
1114
|
-
})),
|
|
1117
|
+
})), gn = (e, t) => te(e, t, () => {
|
|
1115
1118
|
});
|
|
1116
|
-
function
|
|
1119
|
+
function vn(e, t, n) {
|
|
1117
1120
|
const r = (s) => {
|
|
1118
1121
|
const o = s.findIndex((a) => a.id === t);
|
|
1119
1122
|
if (o < 0) return s.map((a) => {
|
|
1120
|
-
const
|
|
1121
|
-
return
|
|
1123
|
+
const p = z(a);
|
|
1124
|
+
return p ? {
|
|
1122
1125
|
...a,
|
|
1123
|
-
[
|
|
1126
|
+
[p.key]: r(p.items)
|
|
1124
1127
|
} : a;
|
|
1125
1128
|
});
|
|
1126
1129
|
const i = [...s], [d] = i.splice(o, 1);
|
|
@@ -1128,24 +1131,24 @@ function hn(e, t, n) {
|
|
|
1128
1131
|
};
|
|
1129
1132
|
return r(e);
|
|
1130
1133
|
}
|
|
1131
|
-
function
|
|
1134
|
+
function bn(e, t, n) {
|
|
1132
1135
|
const r = ye(e, t);
|
|
1133
1136
|
if (!r) return { items: [...e] };
|
|
1134
1137
|
const s = (d) => {
|
|
1135
|
-
const a = z(d),
|
|
1138
|
+
const a = z(d), p = {
|
|
1136
1139
|
...d,
|
|
1137
1140
|
id: n()
|
|
1138
1141
|
};
|
|
1139
1142
|
return a ? {
|
|
1140
|
-
...
|
|
1143
|
+
...p,
|
|
1141
1144
|
[a.key]: a.items.map(s)
|
|
1142
|
-
} :
|
|
1145
|
+
} : p;
|
|
1143
1146
|
}, o = s(r), i = (d) => d.flatMap((a) => {
|
|
1144
1147
|
if (a.id === t) return [a, o];
|
|
1145
|
-
const
|
|
1146
|
-
return [
|
|
1148
|
+
const p = z(a);
|
|
1149
|
+
return [p ? {
|
|
1147
1150
|
...a,
|
|
1148
|
-
[
|
|
1151
|
+
[p.key]: i(p.items)
|
|
1149
1152
|
} : a];
|
|
1150
1153
|
});
|
|
1151
1154
|
return {
|
|
@@ -1153,21 +1156,21 @@ function gn(e, t, n) {
|
|
|
1153
1156
|
copy: o
|
|
1154
1157
|
};
|
|
1155
1158
|
}
|
|
1156
|
-
var
|
|
1159
|
+
var yn = (e, t, n) => te(e, t, (r) => ({
|
|
1157
1160
|
...r,
|
|
1158
1161
|
children: [...r.children ?? [], n]
|
|
1159
1162
|
})), Ce = (e, t) => [...e, ...(t ?? []).filter((n) => !e.some((r) => r.name === n.name))];
|
|
1160
|
-
function
|
|
1161
|
-
const i = he(e), d = i.find((
|
|
1162
|
-
...
|
|
1163
|
+
function On({ document: e, screen: t, path: n, templates: r, layouts: s, dialogTemplate: o }) {
|
|
1164
|
+
const i = he(e), d = i.find((f) => f.kind === $.Screen && f.name === t), a = e.screens.map((f) => f.name === t && !f.path && n && n.length > 0 ? {
|
|
1165
|
+
...f,
|
|
1163
1166
|
path: [...n]
|
|
1164
|
-
} :
|
|
1167
|
+
} : f), { chain: p, contributors: y } = It({
|
|
1165
1168
|
layouts: Ce(e.layouts, s),
|
|
1166
1169
|
screenTemplates: Ce(e.screenTemplates, r),
|
|
1167
1170
|
screens: a,
|
|
1168
1171
|
navigation: fe(e),
|
|
1169
|
-
levels: i.filter((
|
|
1170
|
-
}, t), h = o ?
|
|
1172
|
+
levels: i.filter((f) => f.kind !== $.Screen)
|
|
1173
|
+
}, t), h = o ? Sn(p, o) : p;
|
|
1171
1174
|
if (h.length === 0 || !d?.refinements) return {
|
|
1172
1175
|
chain: h,
|
|
1173
1176
|
contributors: y
|
|
@@ -1181,7 +1184,7 @@ function bn({ document: e, screen: t, path: n, templates: r, layouts: s, dialogT
|
|
|
1181
1184
|
contributors: y
|
|
1182
1185
|
};
|
|
1183
1186
|
}
|
|
1184
|
-
function
|
|
1187
|
+
function Sn(e, t) {
|
|
1185
1188
|
const n = new Set(e.flatMap((i) => (i.outlets ?? []).map((d) => d.name))), r = yt(t).filter((i) => !n.has(i.name));
|
|
1186
1189
|
if (r.length === 0) return [...e];
|
|
1187
1190
|
const s = e.findIndex((i) => i.kind === $.Module || i.kind === $.Feature || i.kind === $.Slice || i.kind === $.Screen), o = s < 0 ? e.length : s;
|
|
@@ -1195,13 +1198,13 @@ function yn(e, t) {
|
|
|
1195
1198
|
...e.slice(o)
|
|
1196
1199
|
];
|
|
1197
1200
|
}
|
|
1198
|
-
var
|
|
1201
|
+
var wn = (e) => e.filter((t) => t.kind === $.Module || t.kind === $.Feature || t.kind === $.Slice || t.kind === $.Screen).map((t) => ({
|
|
1199
1202
|
kind: t.kind,
|
|
1200
1203
|
name: t.name
|
|
1201
1204
|
}));
|
|
1202
|
-
function
|
|
1205
|
+
function Tn(e, t) {
|
|
1203
1206
|
if (!t) return e;
|
|
1204
|
-
const n =
|
|
1207
|
+
const n = kn(e.chain, (s) => Be(s, t));
|
|
1205
1208
|
if (n < 0 || n === e.chain.length - 1) return e;
|
|
1206
1209
|
const r = e.chain.slice(n + 1).filter((s) => (s.contributions ?? []).length > 0).map((s) => ({
|
|
1207
1210
|
kind: s.kind,
|
|
@@ -1213,36 +1216,36 @@ function Sn(e, t) {
|
|
|
1213
1216
|
contributors: [...e.contributors, ...r]
|
|
1214
1217
|
};
|
|
1215
1218
|
}
|
|
1216
|
-
function
|
|
1219
|
+
function kn(e, t) {
|
|
1217
1220
|
for (let n = e.length - 1; n >= 0; n--) if (t(e[n])) return n;
|
|
1218
1221
|
return -1;
|
|
1219
1222
|
}
|
|
1220
|
-
var
|
|
1223
|
+
var In = (e) => e.flatMap((t) => (t.outlets ?? []).map((n) => ({
|
|
1221
1224
|
outlet: n,
|
|
1222
1225
|
level: t
|
|
1223
|
-
}))),
|
|
1226
|
+
}))), Nn = (e) => e === D.Overrides ? "override" : e === D.Extends ? "extend" : "inherit", An = {
|
|
1224
1227
|
inherit: D.Inherits,
|
|
1225
1228
|
extend: D.Extends,
|
|
1226
1229
|
override: D.Overrides
|
|
1227
1230
|
}, je = (e) => {
|
|
1228
1231
|
const t = e.title;
|
|
1229
1232
|
return typeof t == "string" ? t : "";
|
|
1230
|
-
},
|
|
1233
|
+
}, Cn = (e) => {
|
|
1231
1234
|
const t = e.children;
|
|
1232
1235
|
return Array.isArray(t) ? t : [];
|
|
1233
1236
|
};
|
|
1234
|
-
function
|
|
1237
|
+
function jn(e, t) {
|
|
1235
1238
|
return e.chain.some((n) => (n.outlets ?? []).some((r) => r.name === t));
|
|
1236
1239
|
}
|
|
1237
|
-
function
|
|
1238
|
-
const { document: t, outlet: n, level: r, newId: s, binding: o, strings: i } = e, d =
|
|
1239
|
-
if (!
|
|
1240
|
-
const a = St(d.chain, n, d.contributors),
|
|
1240
|
+
function $n(e) {
|
|
1241
|
+
const { document: t, outlet: n, level: r, newId: s, binding: o, strings: i } = e, d = Tn(e.outlets, r);
|
|
1242
|
+
if (!jn(d, n)) return;
|
|
1243
|
+
const a = St(d.chain, n, d.contributors), p = a.subject ? {
|
|
1241
1244
|
...o,
|
|
1242
1245
|
outletSubject: a.subject
|
|
1243
1246
|
} : o;
|
|
1244
1247
|
if (a.diagnostics.some((l) => l.code === ft.UnknownOutlet) || !a.kind) return;
|
|
1245
|
-
const y = a.kind, h =
|
|
1248
|
+
const y = a.kind, h = Rt(t, r, n), g = h?.items ?? [], f = h?.hide ?? [], k = Nn(a.mode), L = (l) => a.diagnostics.filter((m) => m.item === l).map((m) => ({
|
|
1246
1249
|
code: m.code,
|
|
1247
1250
|
message: m.message
|
|
1248
1251
|
})), j = [], w = g.map((l) => l.id), A = (l, m, b, N) => {
|
|
@@ -1262,11 +1265,11 @@ function Cn(e) {
|
|
|
1262
1265
|
...l,
|
|
1263
1266
|
provenance: m
|
|
1264
1267
|
},
|
|
1265
|
-
chips:
|
|
1268
|
+
chips: pn(l, p),
|
|
1266
1269
|
...P.length > 0 ? { problems: P } : {},
|
|
1267
|
-
unlinked:
|
|
1270
|
+
unlinked: fn(l),
|
|
1268
1271
|
provenance: m
|
|
1269
|
-
}),
|
|
1272
|
+
}), Cn(l).forEach((re) => A(re, m, b, l.id));
|
|
1270
1273
|
};
|
|
1271
1274
|
a.items.forEach((l) => {
|
|
1272
1275
|
const m = l.provenance.source === Te.Own && l.editable && w.includes(l.item.id);
|
|
@@ -1302,7 +1305,7 @@ function Cn(e) {
|
|
|
1302
1305
|
}, S = (l, m, b, N = {}) => ({
|
|
1303
1306
|
label: l,
|
|
1304
1307
|
edits: [],
|
|
1305
|
-
documentChange: (B) =>
|
|
1308
|
+
documentChange: (B) => Dt(B, r, n, m),
|
|
1306
1309
|
...b ? { select: b } : {},
|
|
1307
1310
|
...N
|
|
1308
1311
|
}), u = () => k === "inherit" ? { mode: D.Extends } : {}, C = (l, m, b, N = {}) => {
|
|
@@ -1351,11 +1354,11 @@ function Cn(e) {
|
|
|
1351
1354
|
title: b
|
|
1352
1355
|
};
|
|
1353
1356
|
}
|
|
1354
|
-
}, ne = (l) => "rejected" in l, V = (l) => l.readOnly ? void 0 : ye(g, l.id), W =
|
|
1355
|
-
hide: [...
|
|
1357
|
+
}, ne = (l) => "rejected" in l, V = (l) => l.readOnly ? void 0 : ye(g, l.id), W = _t(y), Oe = (l) => l.readOnly ? f.includes(l.id) ? { rejected: "alreadyHidden" } : S("Hide", v({
|
|
1358
|
+
hide: [...f, l.id],
|
|
1356
1359
|
...u()
|
|
1357
1360
|
}), { itemId: null }) : { rejected: "ownItem" }, Se = (l) => {
|
|
1358
|
-
if (
|
|
1361
|
+
if (f.includes(l.id)) return S("Bring back", v({ hide: f.filter((m) => m !== l.id) }), { itemId: l.id });
|
|
1359
1362
|
if (l.removal === "overridden") {
|
|
1360
1363
|
const m = a.removed.find((b) => b.item.id === l.id)?.item;
|
|
1361
1364
|
return m ? S("Bring back", v({ items: [...g, structuredClone(m)] }), { itemId: l.id }) : { rejected: "notRemoved" };
|
|
@@ -1367,7 +1370,7 @@ function Cn(e) {
|
|
|
1367
1370
|
if (l === "extend") return S("Extend", v({ mode: D.Extends }));
|
|
1368
1371
|
const b = m ? a.items.filter((N) => N.provenance.source !== Te.Contribution && !w.includes(N.item.id)).map((N) => structuredClone(N.item)) : [];
|
|
1369
1372
|
return S("Override", v({
|
|
1370
|
-
mode:
|
|
1373
|
+
mode: An.override,
|
|
1371
1374
|
items: [...b, ...g],
|
|
1372
1375
|
hide: []
|
|
1373
1376
|
}));
|
|
@@ -1410,15 +1413,15 @@ function Cn(e) {
|
|
|
1410
1413
|
case c.moveEarlier:
|
|
1411
1414
|
case c.moveLater: {
|
|
1412
1415
|
const b = m.index + (l === c.moveEarlier ? -1 : 1);
|
|
1413
|
-
return b < 0 || b >= m.count ? { rejected: "noWhere" } : C("Move",
|
|
1416
|
+
return b < 0 || b >= m.count ? { rejected: "noWhere" } : C("Move", vn(g, m.id, b), m.id);
|
|
1414
1417
|
}
|
|
1415
1418
|
case c.duplicate: {
|
|
1416
|
-
const b =
|
|
1419
|
+
const b = bn(g, m.id, s);
|
|
1417
1420
|
return b.copy ? C("Duplicate", b.items, b.copy.id) : { rejected: l };
|
|
1418
1421
|
}
|
|
1419
1422
|
case c.delete: {
|
|
1420
1423
|
const b = de(g, m.id) ?? [], N = b.findIndex((P) => P.id === m.id), B = b[N + 1] ?? b[N - 1];
|
|
1421
|
-
return C("Remove",
|
|
1424
|
+
return C("Remove", gn(g, m.id), B?.id ?? null);
|
|
1422
1425
|
}
|
|
1423
1426
|
case c.addSubItem: {
|
|
1424
1427
|
if (y !== F.Navigation || m.parentId !== void 0) return { rejected: "subItemOfSubItem" };
|
|
@@ -1427,7 +1430,7 @@ function Cn(e) {
|
|
|
1427
1430
|
id: s(),
|
|
1428
1431
|
title: i.newItem.navigation
|
|
1429
1432
|
};
|
|
1430
|
-
return C("Add",
|
|
1433
|
+
return C("Add", yn(g, m.id, b), b.id, { renameNext: !0 });
|
|
1431
1434
|
}
|
|
1432
1435
|
default:
|
|
1433
1436
|
return { rejected: l };
|
|
@@ -1436,13 +1439,13 @@ function Cn(e) {
|
|
|
1436
1439
|
rename: (l, m) => V(l) ? C("Rename", Ae(g, l.id, { title: m }), l.id) : { rejected: l.readOnlyReason ?? Y },
|
|
1437
1440
|
choice: (l, m) => {
|
|
1438
1441
|
const b = V(m);
|
|
1439
|
-
if (!b || !
|
|
1440
|
-
const N =
|
|
1442
|
+
if (!b || !ln(b.kind).includes(l)) return;
|
|
1443
|
+
const N = un(l, b, p);
|
|
1441
1444
|
if (N)
|
|
1442
1445
|
return {
|
|
1443
1446
|
property: N,
|
|
1444
1447
|
plan: (B) => {
|
|
1445
|
-
const P =
|
|
1448
|
+
const P = mn(l, B);
|
|
1446
1449
|
return P ? C("Bind", Ae(g, m.id, P), m.id) : { rejected: l };
|
|
1447
1450
|
}
|
|
1448
1451
|
};
|
|
@@ -1453,7 +1456,7 @@ function Cn(e) {
|
|
|
1453
1456
|
bringBack: Se
|
|
1454
1457
|
};
|
|
1455
1458
|
}
|
|
1456
|
-
function
|
|
1459
|
+
function Fn(e, t) {
|
|
1457
1460
|
const n = /* @__PURE__ */ new Set(), r = (o) => {
|
|
1458
1461
|
if (Array.isArray(o)) {
|
|
1459
1462
|
o.forEach(r);
|
|
@@ -1467,22 +1470,22 @@ function jn(e, t) {
|
|
|
1467
1470
|
const s = t.filter((o) => n.has(o.id) || n.has(o.name));
|
|
1468
1471
|
return s.length > 0 ? s : [...t];
|
|
1469
1472
|
}
|
|
1470
|
-
function
|
|
1473
|
+
function En(e) {
|
|
1471
1474
|
return Tt(e, Me)?.properties.find((t) => t.path === "items")?.item?.properties ?? [];
|
|
1472
1475
|
}
|
|
1473
|
-
function
|
|
1474
|
-
const { document: t, catalog: n, strings: r } = e, s =
|
|
1476
|
+
function xn(e) {
|
|
1477
|
+
const { document: t, catalog: n, strings: r } = e, s = On({
|
|
1475
1478
|
document: t,
|
|
1476
1479
|
screen: E,
|
|
1477
1480
|
...e.path ? { path: e.path } : {},
|
|
1478
1481
|
...e.templates ? { templates: e.templates } : {},
|
|
1479
1482
|
...e.layouts ? { layouts: e.layouts } : {},
|
|
1480
1483
|
...e.dialogTemplate ? { dialogTemplate: e.dialogTemplate } : {}
|
|
1481
|
-
}), o =
|
|
1482
|
-
queries:
|
|
1484
|
+
}), o = wn(s.chain), i = o.find((h) => h.kind === $.Screen), d = o.find((h) => Be(h, e.requestedLevel)) ?? i, a = {
|
|
1485
|
+
queries: Fn(t, e.queries),
|
|
1483
1486
|
screens: e.screens,
|
|
1484
|
-
actionProperties:
|
|
1485
|
-
...e.slices ? { placement:
|
|
1487
|
+
actionProperties: En(n),
|
|
1488
|
+
...e.slices ? { placement: Ht({
|
|
1486
1489
|
document: t,
|
|
1487
1490
|
screen: E,
|
|
1488
1491
|
slices: e.slices,
|
|
@@ -1492,7 +1495,7 @@ function Fn(e) {
|
|
|
1492
1495
|
}) } : {},
|
|
1493
1496
|
...e.structure ? { structure: e.structure } : {},
|
|
1494
1497
|
strings: r.bindings
|
|
1495
|
-
},
|
|
1498
|
+
}, p = In(s.chain).map(({ outlet: h, level: g }) => ({
|
|
1496
1499
|
name: h.name,
|
|
1497
1500
|
kind: h.kind,
|
|
1498
1501
|
owner: g.name,
|
|
@@ -1502,9 +1505,9 @@ function Fn(e) {
|
|
|
1502
1505
|
outlets: s,
|
|
1503
1506
|
levels: o,
|
|
1504
1507
|
level: d,
|
|
1505
|
-
declared:
|
|
1508
|
+
declared: p,
|
|
1506
1509
|
binding: a,
|
|
1507
|
-
design: (h) => d ?
|
|
1510
|
+
design: (h) => d ? $n({
|
|
1508
1511
|
document: t,
|
|
1509
1512
|
outlets: s,
|
|
1510
1513
|
outlet: h,
|
|
@@ -1515,23 +1518,23 @@ function Fn(e) {
|
|
|
1515
1518
|
}) : void 0
|
|
1516
1519
|
};
|
|
1517
1520
|
}
|
|
1518
|
-
function
|
|
1519
|
-
const { document: r, context: s, outletLevel: o, structure: i } = e, d = t.location?.path, a = R(() => [...t.ownTemplates ?? [], ...t.runtime.bundles.flatMap((
|
|
1520
|
-
id:
|
|
1521
|
-
label:
|
|
1522
|
-
})), [t.destinations]), h = s.scope.kind === ie.Screen, g = R(() => h &&
|
|
1521
|
+
function Mn(e, t, n) {
|
|
1522
|
+
const { document: r, context: s, outletLevel: o, structure: i } = e, d = t.location?.path, a = R(() => [...t.ownTemplates ?? [], ...t.runtime.bundles.flatMap((f) => f.screenTemplates ?? [])], [t.ownTemplates, t.runtime.bundles]), p = R(() => t.runtime.bundles.flatMap((f) => f.layouts ?? []), [t.runtime.bundles]), y = R(() => t.destinations.map((f) => ({
|
|
1523
|
+
id: f.id,
|
|
1524
|
+
label: f.label
|
|
1525
|
+
})), [t.destinations]), h = s.scope.kind === ie.Screen, g = R(() => h && an(r, a, p, e.opensOverPage, ke(t.runtime.bundles)) ? on(r, ke(t.runtime.bundles)) : void 0, [
|
|
1523
1526
|
r,
|
|
1524
1527
|
h,
|
|
1525
1528
|
a,
|
|
1526
|
-
|
|
1529
|
+
p,
|
|
1527
1530
|
t.runtime.bundles,
|
|
1528
1531
|
e.opensOverPage
|
|
1529
1532
|
]);
|
|
1530
|
-
return R(() =>
|
|
1533
|
+
return R(() => xn({
|
|
1531
1534
|
document: r,
|
|
1532
1535
|
catalog: s.catalog,
|
|
1533
1536
|
templates: a,
|
|
1534
|
-
layouts:
|
|
1537
|
+
layouts: p,
|
|
1535
1538
|
...g ? { dialogTemplate: g } : {},
|
|
1536
1539
|
queries: t.queryCandidates,
|
|
1537
1540
|
slices: t.stateChangeSlices,
|
|
@@ -1544,7 +1547,7 @@ function En(e, t, n) {
|
|
|
1544
1547
|
r,
|
|
1545
1548
|
s.catalog,
|
|
1546
1549
|
a,
|
|
1547
|
-
|
|
1550
|
+
p,
|
|
1548
1551
|
t.queryCandidates,
|
|
1549
1552
|
t.stateChangeSlices,
|
|
1550
1553
|
y,
|
|
@@ -1555,7 +1558,7 @@ function En(e, t, n) {
|
|
|
1555
1558
|
g
|
|
1556
1559
|
]);
|
|
1557
1560
|
}
|
|
1558
|
-
function
|
|
1561
|
+
function br(e) {
|
|
1559
1562
|
return {
|
|
1560
1563
|
queryId: e.id,
|
|
1561
1564
|
query: e.name,
|
|
@@ -1563,11 +1566,11 @@ function hr(e) {
|
|
|
1563
1566
|
results: []
|
|
1564
1567
|
};
|
|
1565
1568
|
}
|
|
1566
|
-
function
|
|
1569
|
+
function Rn(e) {
|
|
1567
1570
|
const t = e;
|
|
1568
1571
|
return !!t && typeof t == "object" && typeof t.queryId == "string" && Array.isArray(t.arguments) && Array.isArray(t.results);
|
|
1569
1572
|
}
|
|
1570
|
-
function
|
|
1573
|
+
function Dn(e, t, n) {
|
|
1571
1574
|
const r = e.arguments.filter((s) => s.parameter !== t);
|
|
1572
1575
|
return {
|
|
1573
1576
|
...e,
|
|
@@ -1577,7 +1580,7 @@ function Mn(e, t, n) {
|
|
|
1577
1580
|
}]
|
|
1578
1581
|
};
|
|
1579
1582
|
}
|
|
1580
|
-
function
|
|
1583
|
+
function yr(e, t, n = t) {
|
|
1581
1584
|
return e.results.some((r) => r.field === t) ? e : {
|
|
1582
1585
|
...e,
|
|
1583
1586
|
results: [...e.results, {
|
|
@@ -1586,8 +1589,8 @@ function gr(e, t, n = t) {
|
|
|
1586
1589
|
}]
|
|
1587
1590
|
};
|
|
1588
1591
|
}
|
|
1589
|
-
function
|
|
1590
|
-
const s = e.results.findIndex((
|
|
1592
|
+
function Or(e, t, n, r = t) {
|
|
1593
|
+
const s = e.results.findIndex((p) => p.field === t), o = e.results.filter((p) => p.field !== t), i = s >= 0 ? e.results[s] : {
|
|
1591
1594
|
target: r,
|
|
1592
1595
|
field: t
|
|
1593
1596
|
}, d = n === void 0 ? s >= 0 ? s : o.length : s >= 0 && s < n ? n - 1 : n, a = Math.max(0, Math.min(o.length, d));
|
|
@@ -1600,25 +1603,25 @@ function vr(e, t, n, r = t) {
|
|
|
1600
1603
|
]
|
|
1601
1604
|
};
|
|
1602
1605
|
}
|
|
1603
|
-
function
|
|
1606
|
+
function Sr(e, t) {
|
|
1604
1607
|
return {
|
|
1605
1608
|
...e,
|
|
1606
1609
|
results: e.results.filter((n) => n.field !== t)
|
|
1607
1610
|
};
|
|
1608
1611
|
}
|
|
1609
|
-
var
|
|
1612
|
+
var Ln = (e, t) => e.arguments.find((n) => n.parameter === t.name)?.source.path ?? "", wr = (e, t) => e.results.some((n) => n.field === t.name), ce = (e) => {
|
|
1610
1613
|
const t = e.values.sets;
|
|
1611
1614
|
return t !== null && typeof t == "object" && typeof t.query == "string" && typeof t.parameter == "string" ? t : void 0;
|
|
1612
1615
|
};
|
|
1613
|
-
function
|
|
1616
|
+
function Bn(e, t, n, r) {
|
|
1614
1617
|
return t.filter((s) => s.values.kind === O.Filter && ce(s)?.query === n && ce(s)?.parameter === r).map((s) => ({
|
|
1615
1618
|
outlet: e,
|
|
1616
1619
|
id: s.id,
|
|
1617
1620
|
title: s.label
|
|
1618
1621
|
}));
|
|
1619
1622
|
}
|
|
1620
|
-
var
|
|
1621
|
-
function
|
|
1623
|
+
var Tr = (e, t) => e.filter((n) => n.values.kind === O.Filter && ce(n)?.query === t);
|
|
1624
|
+
function _n(e, t, n) {
|
|
1622
1625
|
return {
|
|
1623
1626
|
kind: O.Filter,
|
|
1624
1627
|
id: n,
|
|
@@ -1629,16 +1632,16 @@ function Ln(e, t, n) {
|
|
|
1629
1632
|
}
|
|
1630
1633
|
};
|
|
1631
1634
|
}
|
|
1632
|
-
var
|
|
1635
|
+
var qn = (e, t, n) => {
|
|
1633
1636
|
const r = e.arguments.find((s) => s.parameter === t)?.source.path;
|
|
1634
1637
|
return n.find((s) => s.path === r);
|
|
1635
|
-
},
|
|
1636
|
-
function
|
|
1638
|
+
}, Pn = (e, t, n) => Dn(e, t, n?.path ?? ""), Ue = /^show\s+(\S+)\s+by\s+(\S+)\s+from\s+(\S+?)\.selection\s*$/, Hn = (e) => `show ${e.screen} by ${e.by} from ${e.element}.selection`;
|
|
1639
|
+
function Vn(e) {
|
|
1637
1640
|
const t = [...e].filter((n) => /[A-Za-z0-9_]/.test(n)).join("");
|
|
1638
1641
|
return t.length === 0 ? "Unnamed" : /^[0-9]/.test(t) ? `_${t}` : t;
|
|
1639
1642
|
}
|
|
1640
1643
|
var ze = (e) => e.screens.find((t) => t.name === E);
|
|
1641
|
-
function
|
|
1644
|
+
function Wn(e) {
|
|
1642
1645
|
const t = ze(e)?.native?.slots ?? {};
|
|
1643
1646
|
return Object.entries(t).flatMap(([n, r]) => r.flatMap((s) => {
|
|
1644
1647
|
const o = Ue.exec(s.text.trim());
|
|
@@ -1655,52 +1658,52 @@ function $e(e, t, n) {
|
|
|
1655
1658
|
if (!r) return e;
|
|
1656
1659
|
const s = r.native ?? {}, o = (s.slots?.[t] ?? []).filter((k) => !Ue.test(k.text.trim())), i = n ? [...o, {
|
|
1657
1660
|
at: (r.slotContent[t] ?? []).length,
|
|
1658
|
-
text:
|
|
1661
|
+
text: Hn(n)
|
|
1659
1662
|
}] : o, d = {
|
|
1660
1663
|
...s.slots ?? {},
|
|
1661
1664
|
[t]: i
|
|
1662
1665
|
};
|
|
1663
1666
|
i.length === 0 && delete d[t];
|
|
1664
|
-
const { slots: a, ...
|
|
1665
|
-
...
|
|
1667
|
+
const { slots: a, ...p } = s, y = {
|
|
1668
|
+
...p,
|
|
1666
1669
|
...Object.keys(d).length > 0 ? { slots: d } : {}
|
|
1667
|
-
}, { native: h, ...g } = r,
|
|
1670
|
+
}, { native: h, ...g } = r, f = Object.keys(y).length > 0 ? {
|
|
1668
1671
|
...g,
|
|
1669
1672
|
native: y
|
|
1670
1673
|
} : g;
|
|
1671
1674
|
return {
|
|
1672
1675
|
...e,
|
|
1673
|
-
screens: e.screens.map((k) => k === r ?
|
|
1676
|
+
screens: e.screens.map((k) => k === r ? f : k)
|
|
1674
1677
|
};
|
|
1675
1678
|
}
|
|
1676
1679
|
function Ke(e, t, n) {
|
|
1677
1680
|
const r = e.screens.find((s) => s.name === E);
|
|
1678
1681
|
return (r?.screenTemplate ? t.find((s) => s.name === r.screenTemplate)?.slots : n.find((s) => s.name === r?.layout)?.slots) ?? [];
|
|
1679
1682
|
}
|
|
1680
|
-
var
|
|
1683
|
+
var Un = (e, t, n) => Ke(e, t, n).some((r) => r.routed === !0);
|
|
1681
1684
|
function Qe(e, t, n) {
|
|
1682
1685
|
return Ke(e, t, n).filter((r) => r.routed === !0 && (r.routedBy ?? []).length > 0).map((r) => ({
|
|
1683
1686
|
name: r.name,
|
|
1684
1687
|
routedBy: r.routedBy ?? []
|
|
1685
1688
|
}));
|
|
1686
1689
|
}
|
|
1687
|
-
var
|
|
1690
|
+
var zn = [
|
|
1688
1691
|
"dataTable",
|
|
1689
1692
|
"table",
|
|
1690
1693
|
"observableDataTable"
|
|
1691
|
-
], Ye = "query",
|
|
1694
|
+
], Ye = "query", Kn = (e) => e.slice(e.lastIndexOf(":") + 1);
|
|
1692
1695
|
function ue(e) {
|
|
1693
1696
|
if (!kt(e)) return;
|
|
1694
1697
|
const t = e, n = t.properties?.[Ye];
|
|
1695
|
-
return
|
|
1698
|
+
return zn.includes(Kn(t.componentName)) && Rn(n) ? {
|
|
1696
1699
|
elementId: t.id,
|
|
1697
1700
|
binding: n
|
|
1698
1701
|
} : void 0;
|
|
1699
1702
|
}
|
|
1700
|
-
function
|
|
1701
|
-
return e.flatMap((t) => [...ue(t) ? [ue(t)] : [], ...
|
|
1703
|
+
function Qn(e) {
|
|
1704
|
+
return e.flatMap((t) => [...ue(t) ? [ue(t)] : [], ...Qn(tt(t))]);
|
|
1702
1705
|
}
|
|
1703
|
-
var
|
|
1706
|
+
var kr = (e, t) => ({
|
|
1704
1707
|
kind: ut.SetProperty,
|
|
1705
1708
|
nodeId: wt(e),
|
|
1706
1709
|
path: Ye,
|
|
@@ -1709,18 +1712,18 @@ var Sr = (e, t) => ({
|
|
|
1709
1712
|
...t.screenTemplates,
|
|
1710
1713
|
...e.ownTemplates ?? [],
|
|
1711
1714
|
...e.runtime.bundles.flatMap((n) => n.screenTemplates ?? [])
|
|
1712
|
-
], Ze = (e, t) => [...t.layouts, ...e.runtime.bundles.flatMap((n) => n.layouts ?? [])],
|
|
1713
|
-
const d = n.properties.dataBinding, a = n.designMode ??
|
|
1715
|
+
], Ze = (e, t) => [...t.layouts, ...e.runtime.bundles.flatMap((n) => n.layouts ?? [])], Ir = ({ controller: e, environment: t, strings: n, binding: r, candidate: s, disabled: o, onChange: i }) => {
|
|
1716
|
+
const d = n.properties.dataBinding, a = n.designMode ?? Pt, p = Mn(e, t, a.outlets), y = R(() => Je(t, e.document), [t, e.document]), h = R(() => Ze(t, e.document), [t, e.document]), g = R(() => Qe(e.document, y, h), [
|
|
1714
1717
|
e.document,
|
|
1715
1718
|
y,
|
|
1716
1719
|
h
|
|
1717
|
-
]),
|
|
1720
|
+
]), f = g.flatMap((w) => w.routedBy.map((A) => ({
|
|
1718
1721
|
slot: w.name,
|
|
1719
1722
|
parameter: A,
|
|
1720
1723
|
path: `route.${A}`
|
|
1721
|
-
}))), k =
|
|
1724
|
+
}))), k = p.declared.filter((w) => w.kind === F.Filters && !w.shell);
|
|
1722
1725
|
if (s.parameters.length === 0) return null;
|
|
1723
|
-
const L = k.flatMap((w) => (
|
|
1726
|
+
const L = k.flatMap((w) => (p.design(w.name)?.items ?? []).map((A) => ({
|
|
1724
1727
|
outlet: w.name,
|
|
1725
1728
|
item: {
|
|
1726
1729
|
id: A.id,
|
|
@@ -1728,10 +1731,10 @@ var Sr = (e, t) => ({
|
|
|
1728
1731
|
values: A.values
|
|
1729
1732
|
}
|
|
1730
1733
|
}))), j = (w) => {
|
|
1731
|
-
const A = k[0] &&
|
|
1734
|
+
const A = k[0] && p.design(k[0].name);
|
|
1732
1735
|
if (!A) return;
|
|
1733
|
-
const T = A.addItem(
|
|
1734
|
-
!
|
|
1736
|
+
const T = A.addItem(_n(s.name, w, qe()));
|
|
1737
|
+
!Lt(T) && T.documentChange && e.changeDocument(T.documentChange, T.label);
|
|
1735
1738
|
};
|
|
1736
1739
|
return /* @__PURE__ */ q("div", {
|
|
1737
1740
|
className: "studio-editor-query__group",
|
|
@@ -1741,7 +1744,7 @@ var Sr = (e, t) => ({
|
|
|
1741
1744
|
/* @__PURE__ */ I("ul", {
|
|
1742
1745
|
className: "studio-editor-query__feeds",
|
|
1743
1746
|
children: s.parameters.map((w) => {
|
|
1744
|
-
const A = L.flatMap((u) =>
|
|
1747
|
+
const A = L.flatMap((u) => Bn(u.outlet, [u.item], s.name, w.name)), T = g.filter((u) => u.routedBy.includes(w.name)), v = Ln(r, w), S = A.length > 0 || T.length > 0 || v !== "";
|
|
1745
1748
|
return /* @__PURE__ */ q("li", {
|
|
1746
1749
|
"data-fed": S,
|
|
1747
1750
|
children: [
|
|
@@ -1771,16 +1774,16 @@ var Sr = (e, t) => ({
|
|
|
1771
1774
|
onClick: () => j(w.name),
|
|
1772
1775
|
children: d.addFilter
|
|
1773
1776
|
}),
|
|
1774
|
-
i &&
|
|
1777
|
+
i && f.length > 0 && /* @__PURE__ */ q("select", {
|
|
1775
1778
|
"aria-label": d.routeSource(w.name),
|
|
1776
1779
|
"data-route-source": w.name,
|
|
1777
1780
|
disabled: o,
|
|
1778
|
-
value:
|
|
1779
|
-
onChange: (u) => i(
|
|
1781
|
+
value: qn(r, w.name, f)?.path ?? "",
|
|
1782
|
+
onChange: (u) => i(Pn(r, w.name, f.find((C) => C.path === u.target.value)), w, u.target.value),
|
|
1780
1783
|
children: [/* @__PURE__ */ I("option", {
|
|
1781
1784
|
value: "",
|
|
1782
1785
|
children: d.routeSourceNone
|
|
1783
|
-
}),
|
|
1786
|
+
}), f.map((u) => /* @__PURE__ */ I("option", {
|
|
1784
1787
|
value: u.path,
|
|
1785
1788
|
children: d.routeSourceOption(u.parameter, u.slot)
|
|
1786
1789
|
}, `${u.slot}.${u.parameter}`))]
|
|
@@ -1789,22 +1792,22 @@ var Sr = (e, t) => ({
|
|
|
1789
1792
|
}, w.name);
|
|
1790
1793
|
})
|
|
1791
1794
|
}),
|
|
1792
|
-
L.length > 0 &&
|
|
1795
|
+
L.length > 0 && Un(e.document, y, h) && /* @__PURE__ */ I("p", {
|
|
1793
1796
|
className: "studio-editor-properties__hint",
|
|
1794
1797
|
children: d.filtersInAddress
|
|
1795
1798
|
})
|
|
1796
1799
|
]
|
|
1797
1800
|
});
|
|
1798
|
-
},
|
|
1801
|
+
}, Nr = ({ controller: e, environment: t, strings: n, elementId: r, disabled: s }) => {
|
|
1799
1802
|
const o = n.properties.dataBinding, i = R(() => Je(t, e.document), [t, e.document]), d = R(() => Ze(t, e.document), [t, e.document]), a = R(() => Qe(e.document, i, d), [
|
|
1800
1803
|
e.document,
|
|
1801
1804
|
i,
|
|
1802
1805
|
d
|
|
1803
|
-
]),
|
|
1804
|
-
if (!(
|
|
1805
|
-
const y =
|
|
1806
|
-
const w = h && h.slot !==
|
|
1807
|
-
return $e(w,
|
|
1806
|
+
]), p = et(e.composition.roots, r);
|
|
1807
|
+
if (!(p && ue(p))) return null;
|
|
1808
|
+
const y = Vn(r), h = Wn(e.document).filter((f) => f.element === y)[0], g = (f, k, L) => e.changeDocument((j) => {
|
|
1809
|
+
const w = h && h.slot !== f ? $e(j, h.slot, void 0) : j;
|
|
1810
|
+
return $e(w, f, k === "" ? void 0 : {
|
|
1808
1811
|
screen: k,
|
|
1809
1812
|
by: L,
|
|
1810
1813
|
element: y
|
|
@@ -1827,30 +1830,30 @@ var Sr = (e, t) => ({
|
|
|
1827
1830
|
}),
|
|
1828
1831
|
/* @__PURE__ */ q("label", { children: [/* @__PURE__ */ I("span", { children: o.selectionSlot }), /* @__PURE__ */ I("select", {
|
|
1829
1832
|
value: h?.slot ?? a[0].name,
|
|
1830
|
-
onChange: (
|
|
1831
|
-
children: a.map((
|
|
1832
|
-
value:
|
|
1833
|
+
onChange: (f) => h && g(f.target.value, h.screen, a.find((k) => k.name === f.target.value)?.routedBy[0] ?? h.by),
|
|
1834
|
+
children: a.map((f) => /* @__PURE__ */ q("option", {
|
|
1835
|
+
value: f.name,
|
|
1833
1836
|
children: [
|
|
1834
|
-
|
|
1837
|
+
f.name,
|
|
1835
1838
|
" (",
|
|
1836
|
-
|
|
1839
|
+
f.routedBy.join(", "),
|
|
1837
1840
|
")"
|
|
1838
1841
|
]
|
|
1839
|
-
},
|
|
1842
|
+
}, f.name))
|
|
1840
1843
|
})] }),
|
|
1841
1844
|
/* @__PURE__ */ q("label", { children: [/* @__PURE__ */ I("span", { children: o.selectionScreen }), /* @__PURE__ */ q("select", {
|
|
1842
1845
|
value: h?.screen ?? "",
|
|
1843
|
-
onChange: (
|
|
1846
|
+
onChange: (f) => {
|
|
1844
1847
|
const k = a.find((L) => L.name === (h?.slot ?? a[0].name)) ?? a[0];
|
|
1845
|
-
g(k.name,
|
|
1848
|
+
g(k.name, f.target.value, k.routedBy[0]);
|
|
1846
1849
|
},
|
|
1847
1850
|
children: [/* @__PURE__ */ I("option", {
|
|
1848
1851
|
value: "",
|
|
1849
1852
|
children: o.selectionNone
|
|
1850
|
-
}), t.destinations.map((
|
|
1851
|
-
value:
|
|
1852
|
-
children:
|
|
1853
|
-
},
|
|
1853
|
+
}), t.destinations.map((f) => /* @__PURE__ */ I("option", {
|
|
1854
|
+
value: f.label,
|
|
1855
|
+
children: f.label
|
|
1856
|
+
}, f.id))]
|
|
1854
1857
|
})] }),
|
|
1855
1858
|
h && /* @__PURE__ */ I("p", {
|
|
1856
1859
|
className: "studio-editor-query__preview",
|
|
@@ -1863,59 +1866,59 @@ var Sr = (e, t) => ({
|
|
|
1863
1866
|
};
|
|
1864
1867
|
export {
|
|
1865
1868
|
E as $,
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1869
|
+
fr as A,
|
|
1870
|
+
mr as B,
|
|
1871
|
+
an as C,
|
|
1872
|
+
en as D,
|
|
1870
1873
|
ke as E,
|
|
1871
|
-
|
|
1872
|
-
|
|
1874
|
+
Pt as F,
|
|
1875
|
+
cr as G,
|
|
1873
1876
|
he as H,
|
|
1874
1877
|
le as I,
|
|
1875
|
-
|
|
1878
|
+
lr as J,
|
|
1876
1879
|
fe as K,
|
|
1877
1880
|
_e as L,
|
|
1878
1881
|
Y as M,
|
|
1879
|
-
|
|
1880
|
-
|
|
1882
|
+
Ht as N,
|
|
1883
|
+
Zt as O,
|
|
1881
1884
|
qe as P,
|
|
1882
|
-
|
|
1885
|
+
dr as Q,
|
|
1883
1886
|
c as R,
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1887
|
+
gr as S,
|
|
1888
|
+
hr as T,
|
|
1889
|
+
Mt as U,
|
|
1890
|
+
ur as V,
|
|
1891
|
+
Dt as W,
|
|
1892
|
+
ir as X,
|
|
1890
1893
|
H as Y,
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1894
|
+
ar as Z,
|
|
1895
|
+
Tn as _,
|
|
1896
|
+
Qn as a,
|
|
1897
|
+
vr as b,
|
|
1898
|
+
br as c,
|
|
1899
|
+
yr as d,
|
|
1900
|
+
or as et,
|
|
1901
|
+
Dn as f,
|
|
1902
|
+
Mn as g,
|
|
1903
|
+
Sr as h,
|
|
1901
1904
|
ue as i,
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1905
|
+
pr as j,
|
|
1906
|
+
Jt as k,
|
|
1907
|
+
wr as l,
|
|
1908
|
+
Ln as m,
|
|
1909
|
+
Nr as n,
|
|
1910
|
+
sr as nt,
|
|
1911
|
+
zn as o,
|
|
1912
|
+
Or as p,
|
|
1913
|
+
Et as q,
|
|
1914
|
+
kr as r,
|
|
1915
|
+
Tr as s,
|
|
1916
|
+
Ir as t,
|
|
1914
1917
|
pe as tt,
|
|
1915
|
-
|
|
1916
|
-
|
|
1918
|
+
Rn as u,
|
|
1919
|
+
On as v,
|
|
1917
1920
|
Ie as w,
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
+
on as x,
|
|
1922
|
+
ln as y,
|
|
1923
|
+
Lt as z
|
|
1921
1924
|
};
|