@cratis/event-models 0.205.2 → 0.205.3
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/index.js +176 -175
- package/package.json +14 -14
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { c as Ga, d as Ha, f as We, l as Xi, m as oo, p as Va, s as Ja, t as er, u as
|
|
1
|
+
import { c as Ga, d as Ha, f as We, l as Xi, m as oo, p as Va, s as Ja, t as er, u as Zt } from "./defaultStructuredEditorStrings-Ch1I0Lci.js";
|
|
2
2
|
import { t as tr } from "./QueryBindingEditor-MTd0R7iQ.js";
|
|
3
3
|
import { i as Qa, n as Ya, r as Za, t as Xa } from "./toTemplateSources-B9ALGe3x.js";
|
|
4
|
-
import { _ as es, a as ev, c as Ko, d as nr, f as ts, g as tv, h as ns, i as os, l as nv, m as is, n as ov, o as
|
|
4
|
+
import { _ as es, a as ev, c as Ko, d as nr, f as ts, g as tv, h as ns, i as os, l as nv, m as is, n as ov, o as ln, p as or, r as rs, s as iv, t as rv, u as av, v as sv, y as lv } from "./structuredValue-vqCZttsk.js";
|
|
5
5
|
import { a as ve, n as as, r as ss } from "./iconDiagnostics-Ds4CnqD0.js";
|
|
6
6
|
import { t as uv } from "./StructuredValueEditor-CcwyOga0.js";
|
|
7
7
|
import { createContext as ls, createElement as yt, useCallback as U, useContext as cs, useEffect as le, useId as ds, useLayoutEffect as ye, useMemo as L, useRef as V, useState as z } from "react";
|
|
8
8
|
import { LayoutArrangement as J, PrototypeOverlayFrame as ir } from "@cratis/scene/ScreenEditor";
|
|
9
|
-
import { BindingMode as fv, BindingNullBehavior as gv, BindingSourceKind as vv, BindingSourceKind as xt, CollectionOperation as be, ComponentCategory as us, DestinationKind as bv, DestinationKind as rr, DiagnosticCode as ps, EditTarget as ms, EditingScopeKind as
|
|
10
|
-
import { ApplicationStructureIndex as
|
|
9
|
+
import { BindingMode as fv, BindingNullBehavior as gv, BindingSourceKind as vv, BindingSourceKind as xt, CollectionOperation as be, ComponentCategory as us, DestinationKind as bv, DestinationKind as rr, DiagnosticCode as ps, EditTarget as ms, EditingScopeKind as Vt, FlowContainerKind as cn, FormGenerationMode as he, FormWidthUnit as we, GridUnitType as hs, HorizontalAlignment as io, InteractionActionKind as lt, InteractionTriggerKind as ar, NavigationRegionKind as qo, NavigationRegionMode as xe, Orientation as ct, PackageKind as dt, PropertyEditorKind as Y, PropertyValueType as G, ProvenanceKind as Go, QueryOriginKind as fs, QueryResultShape as gs, SceneEditKind as Q, SceneNodeKind as vs, TemplateReferenceSource as bs, TemplateScope as ys, ValueSource as sr, VerticalAlignment as ro, Visibility as ao, componentCategories as ws } from "@cratis/scene.model";
|
|
10
|
+
import { ApplicationStructureIndex as Xt, EffectiveIconCatalog as ks, NavigationEditKind as Ho, TemplateCatalogKind as lr, ToolbarDiagnosticSeverity as Ss, addNavItem as Cs, applicableTemplates as Ns, applyEdit as cr, applyNavigationEdits as Ts, baseComponentLibraries as Is, componentArgumentSourcePrefix as Ps, componentBadge as Vo, computeSizeClass as xs, corePackage as so, createDescriptorCatalog as Os, diagnoseNavigationRegions as Rs, effectiveNavigation as dr, effectivePackages as ur, elementNodeId as oe, findComponentDescriptor as lo, findLayoutTypeDescriptor as Jo, inspect as co, isCanvas as ut, isDockPanel as Ds, isExternalComponent as qe, isGrid as uo, isPackageSelectionValid as Es, isPanel as jt, isStackPanel as po, isThemeCompatible as Fs, isWrapPanel as As, matchComponentQuery as Ms, normalizeToolbarButton as _s, packagesOfKind as Qo, rankFrequentlyUsedComponents as $s, resolveComponentName as Tt, resolveEffectiveConfiguration as pr, resolveIconLibraries as Ls, resolvePackageDependencies as Bs, resolveTemplateChain as mo, resolveToolbarButton as js, setApplicationLogo as Us, switchRegionMode as mr, toComponentCatalog as en, toolbarButtonFromItem as ho, validateToolbarButtons as Ws, validateValue as dn } from "@cratis/scene.engine";
|
|
11
11
|
import { Fragment as ae, jsx as a, jsxs as b } from "react/jsx-runtime";
|
|
12
12
|
import { ErrorBoundary as He, IconButton as Ie, Tabs as zs } from "@cratis/components/Common";
|
|
13
13
|
import { ColorScheme as Ks, ComponentName as qs, LayoutConfigProvider as hr, LayoutMode as Gs, LayoutName as Hs, TemplatePreviewState as at, applyTemplatePreviewState as Vs, composeApplicationScreen as Js, composeScreenElement as Qs, defaultApplicationChrome as Ys, defaultBlueprint as fr, defaultBlueprintName as Zs, effectiveShellOf as gr, externalComponent as fo, foundationSamples as Xs, resolveElementComponentNames as go } from "@cratis/scene.blueprint.default";
|
|
@@ -15,7 +15,7 @@ import { IconAdapterProvider as vr, SceneElementView as vo, SceneNavigationModel
|
|
|
15
15
|
import { Toolbar as ll, ToolbarFolder as cl } from "@cratis/components/Toolbar";
|
|
16
16
|
import { PrototypeLayout as Ze } from "@cratis/scene";
|
|
17
17
|
import { FileUploadHandlerProvider as dl, QuillLoaderProvider as ul, primeReactPackage as kr, primeReactThemes as Yo, usePrimeReactTheme as pl } from "@cratis/scene.primereact";
|
|
18
|
-
import { FaAlignJustify as Zo, FaAlignLeft as ml, FaAngleDoubleRight as
|
|
18
|
+
import { FaAlignJustify as Zo, FaAlignLeft as ml, FaAngleDoubleRight as un, FaArrowsAltH as hl, FaBars as st, FaBell as fl, FaBolt as gl, FaBookmark as vl, FaBorderAll as bl, FaCalendarAlt as Xo, FaCaretSquareDown as ei, FaChartBar as Sr, FaCheckSquare as ti, FaClock as yl, FaClone as wl, FaCode as kl, FaCog as ni, FaColumns as pn, FaCommentAlt as Sl, FaCommentDots as Cr, FaCompass as Cl, FaCreditCard as Nl, FaCube as Tl, FaDatabase as Il, FaDesktop as Fn, FaEdit as mn, FaEllipsisH as Pl, FaExclamationCircle as hn, FaExpandArrowsAlt as xl, FaFileAlt as An, FaFileUpload as Ol, FaFilter as oi, FaFolderOpen as ii, FaFont as ri, FaGripLines as Be, FaGripLinesVertical as Rl, FaGripVertical as Dl, FaHashtag as ai, FaHeading as Ut, FaHistory as El, FaHourglassHalf as Fl, FaIdBadge as Al, FaImage as Nr, FaImages as si, FaInfoCircle as Ml, FaKeyboard as Tr, FaLayerGroup as _l, FaLink as $l, FaList as Ir, FaListAlt as fn, FaListOl as gn, FaLock as Ll, FaMask as li, FaMobileAlt as Bl, FaMousePointer as Wt, FaObjectGroup as jl, FaPaintBrush as Ul, FaPalette as vn, FaPen as Wl, FaPercent as zl, FaPlay as Kl, FaProjectDiagram as ql, FaPuzzlePiece as Pr, FaRedo as Gl, FaRegCheckCircle as Hl, FaRegCircle as bn, FaRegSquare as bo, FaSave as Vl, FaSearch as ci, FaShapes as xr, FaSitemap as yn, FaSlidersH as Mn, FaSpinner as di, FaSquare as Jl, FaStar as Ql, FaStepForward as wn, FaStickyNote as Yl, FaStream as Zl, FaTable as pt, FaTag as Ot, FaTerminal as Xl, FaTh as ui, FaThLarge as Or, FaThList as yo, FaToggleOn as Rr, FaTools as ec, FaTrash as tc, FaTree as _n, FaUndo as nc, FaUser as oc, FaUserCircle as ic, FaVectorSquare as rc, FaWindowMaximize as mt, FaWindowRestore as ac } from "react-icons/fa";
|
|
19
19
|
import "@cratis/scene.primereact/primeReactTheme.css";
|
|
20
20
|
import { LuChevronLeft as sc, LuChevronRight as lc, LuCopy as cc, LuCornerDownRight as dc, LuLink as uc, LuLock as Dr, LuPanelLeft as pc, LuPlus as mc, LuTrash2 as hc, LuZap as fc } from "react-icons/lu";
|
|
21
21
|
import { PrimeReactProvider as gc } from "@primereact/core/config";
|
|
@@ -104,7 +104,7 @@ import { dynamicIconImports as Wd } from "lucide-react/dynamic";
|
|
|
104
104
|
var wo = {
|
|
105
105
|
name: "StudioScreen",
|
|
106
106
|
slots: [{ name: "content" }]
|
|
107
|
-
},
|
|
107
|
+
}, Jt = "content", ge = "Screen", zd = "template-root", Kd = "screen-root", Mr = () => ({
|
|
108
108
|
layouts: [wo],
|
|
109
109
|
screenTemplates: [],
|
|
110
110
|
dialogTemplates: [],
|
|
@@ -118,7 +118,7 @@ function qd(e, t) {
|
|
|
118
118
|
screens: [{
|
|
119
119
|
name: ge,
|
|
120
120
|
layout: wo.name,
|
|
121
|
-
slotContent: { [
|
|
121
|
+
slotContent: { [Jt]: [e] },
|
|
122
122
|
forms: [],
|
|
123
123
|
contributions: [],
|
|
124
124
|
...t ? { screenTemplate: t } : {}
|
|
@@ -130,26 +130,26 @@ function Gd(e, t, n) {
|
|
|
130
130
|
...Mr(),
|
|
131
131
|
screenTemplates: [{
|
|
132
132
|
name: e,
|
|
133
|
-
slots: [{ name:
|
|
134
|
-
content: { [
|
|
133
|
+
slots: [{ name: Jt }],
|
|
134
|
+
content: { [Jt]: [t] },
|
|
135
135
|
...n ? { fitsSlot: n } : {}
|
|
136
136
|
}]
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
139
|
function ht(e, t) {
|
|
140
|
-
return (t === void 0 ? e.screens.find((n) => n.name === ge)?.slotContent : e.screenTemplates.find((n) => n.name === t)?.content)?.[
|
|
140
|
+
return (t === void 0 ? e.screens.find((n) => n.name === ge)?.slotContent : e.screenTemplates.find((n) => n.name === t)?.content)?.[Jt]?.[0];
|
|
141
141
|
}
|
|
142
142
|
function $n(e, t = !1) {
|
|
143
143
|
return t && e !== void 0 ? {
|
|
144
|
-
kind:
|
|
144
|
+
kind: Vt.ScreenTemplate,
|
|
145
145
|
name: e,
|
|
146
146
|
layout: wo.name
|
|
147
147
|
} : {
|
|
148
|
-
kind:
|
|
148
|
+
kind: Vt.Screen,
|
|
149
149
|
name: ge
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
|
-
var
|
|
152
|
+
var kn = (e, t) => typeof t == "string" ? Object.values(e).find((n) => n === t) : void 0, Hd = (e) => {
|
|
153
153
|
const t = e;
|
|
154
154
|
return !!t && typeof t == "object" && [
|
|
155
155
|
"left",
|
|
@@ -161,11 +161,11 @@ var wn = (e, t) => typeof t == "string" ? Object.values(e).find((n) => n === t)
|
|
|
161
161
|
function Vd(e, t, n) {
|
|
162
162
|
const o = e;
|
|
163
163
|
o.zIndex = n;
|
|
164
|
-
const i =
|
|
164
|
+
const i = kn(ao, t.visibility);
|
|
165
165
|
i !== void 0 && (o.visibility = i), typeof t.isEnabled == "boolean" && (o.isEnabled = t.isEnabled), typeof t.opacity == "number" && (o.opacity = t.opacity), Hd(t.margin) && (o.margin = { ...t.margin });
|
|
166
|
-
const r =
|
|
166
|
+
const r = kn(io, t.horizontalAlignment);
|
|
167
167
|
r !== void 0 && (o.horizontalAlignment = r);
|
|
168
|
-
const s =
|
|
168
|
+
const s = kn(ro, t.verticalAlignment);
|
|
169
169
|
s !== void 0 && (o.verticalAlignment = s);
|
|
170
170
|
}
|
|
171
171
|
var Ln = {
|
|
@@ -221,15 +221,15 @@ function $r(e) {
|
|
|
221
221
|
if (!Ds(e))
|
|
222
222
|
return po(e) ? e.orientation === ct.Horizontal ? W.Row : W.Stack : As(e) ? W.Wrap : W.Container;
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function zt(e, t = () => {
|
|
225
225
|
}) {
|
|
226
226
|
return Bn((e?.children ?? []).map((n) => Lr(n, t)));
|
|
227
227
|
}
|
|
228
228
|
var me = (e, t) => typeof e == "number" ? e : t;
|
|
229
229
|
function Lr(e, t) {
|
|
230
|
-
const n = e, o = { ...n.properties ?? {} }, i =
|
|
230
|
+
const n = e, o = { ...n.properties ?? {} }, i = Zt(e).map((C) => Lr(C, t)), r = o[eu];
|
|
231
231
|
if (r != null && typeof r == "object") return iu(r, n, o, i);
|
|
232
|
-
const s = o[mi], l = typeof o.legacyType == "string" && o.legacyType !== "" ? o[pi] : void 0, c = l ?? (
|
|
232
|
+
const s = o[mi], l = typeof o.legacyType == "string" && o.legacyType !== "" ? o[pi] : void 0, c = l ?? (jt(e) ? Xd($r(e)) : t(qe(e) ? e.componentName : "")), u = qe(e) ? e.componentName : "", { [pi]: d, [mi]: p, [Ve]: m, [Je]: h, ...g } = o, f = {};
|
|
233
233
|
for (const C of s?.topKeys ?? []) C in g && (f[C] = g[C], delete g[C]);
|
|
234
234
|
const v = me(m, s?.position.x ?? 0), w = me(h, s?.position.y ?? 0), P = n.name ?? "", x = s?.emptyName === !0 && P === (l ?? "");
|
|
235
235
|
return {
|
|
@@ -298,10 +298,10 @@ var ru = [
|
|
|
298
298
|
".cm-editor",
|
|
299
299
|
".monaco-editor",
|
|
300
300
|
"[data-studio-typing]"
|
|
301
|
-
].join(","),
|
|
301
|
+
].join(","), tn = (e) => {
|
|
302
302
|
const t = e;
|
|
303
303
|
return !!t && typeof t.closest == "function" && (t.closest(ru) !== null || t.isContentEditable === !0);
|
|
304
|
-
}, ko = (e) => (e.key === "Delete" || e.key === "Backspace") && !e.ctrlKey && !e.metaKey && !e.altKey && !e.shiftKey && !e.defaultPrevented && !e.repeat && !e.nativeEvent?.isComposing && !
|
|
304
|
+
}, ko = (e) => (e.key === "Delete" || e.key === "Backspace") && !e.ctrlKey && !e.metaKey && !e.altKey && !e.shiftKey && !e.defaultPrevented && !e.repeat && !e.nativeEvent?.isComposing && !tn(e.target);
|
|
305
305
|
function ke(e, t, n, o = null) {
|
|
306
306
|
for (const [i, r] of e.entries()) {
|
|
307
307
|
if (n.idOf(r) === t) return {
|
|
@@ -575,7 +575,7 @@ function zr({ roots: e, adapter: t, strings: n, selectedId: o, onSelect: i, onEd
|
|
|
575
575
|
children: f
|
|
576
576
|
})] });
|
|
577
577
|
}
|
|
578
|
-
var
|
|
578
|
+
var Sn = /* @__PURE__ */ (function(e) {
|
|
579
579
|
return e.Properties = "properties", e.Structure = "structure", e;
|
|
580
580
|
})({}), du = /* @__PURE__ */ new Set([Ve, Je]);
|
|
581
581
|
function uu(e, t, n) {
|
|
@@ -847,7 +847,7 @@ var Cu = ({ component: e, descriptor: t, controller: n, environment: o, strings:
|
|
|
847
847
|
});
|
|
848
848
|
}, Iu = "commandForm", Wn = "command", Gr = (e) => e.slice(e.lastIndexOf(":") + 1) === Iu;
|
|
849
849
|
function Hr(e, t) {
|
|
850
|
-
return e.flatMap((n) => [...qe(n) && Gr(n.componentName) ? [Pu(n, t)] : [], ...Hr(
|
|
850
|
+
return e.flatMap((n) => [...qe(n) && Gr(n.componentName) ? [Pu(n, t)] : [], ...Hr(Zt(n), t)]);
|
|
851
851
|
}
|
|
852
852
|
function Pu(e, t) {
|
|
853
853
|
const n = e.properties?.[Wn], o = typeof n == "string" ? n : "";
|
|
@@ -1110,7 +1110,7 @@ var Gu = ({ form: e, strings: t, onChange: n }) => {
|
|
|
1110
1110
|
children: [
|
|
1111
1111
|
/* @__PURE__ */ b("fieldset", { children: [/* @__PURE__ */ a("legend", { children: t.columns }), i.columns.map((r) => /* @__PURE__ */ b("div", {
|
|
1112
1112
|
className: "studio-editor-properties__form-layout-row",
|
|
1113
|
-
children: [/* @__PURE__ */ a("span", { children: t.column(r.index + 1) }), /* @__PURE__ */ a(
|
|
1113
|
+
children: [/* @__PURE__ */ a("span", { children: t.column(r.index + 1) }), /* @__PURE__ */ a(Kt, {
|
|
1114
1114
|
name: t.column(r.index + 1),
|
|
1115
1115
|
value: r.width ?? De(),
|
|
1116
1116
|
strings: t,
|
|
@@ -1121,7 +1121,7 @@ var Gu = ({ form: e, strings: t, onChange: n }) => {
|
|
|
1121
1121
|
/* @__PURE__ */ a("legend", { children: t.gaps }),
|
|
1122
1122
|
/* @__PURE__ */ b("div", {
|
|
1123
1123
|
className: "studio-editor-properties__form-layout-row",
|
|
1124
|
-
children: [/* @__PURE__ */ a("span", { children: t.columnGap }), /* @__PURE__ */ a(
|
|
1124
|
+
children: [/* @__PURE__ */ a("span", { children: t.columnGap }), /* @__PURE__ */ a(Kt, {
|
|
1125
1125
|
name: t.columnGap,
|
|
1126
1126
|
value: i.columnGap ?? De(0, we.Pixels),
|
|
1127
1127
|
strings: t,
|
|
@@ -1130,7 +1130,7 @@ var Gu = ({ form: e, strings: t, onChange: n }) => {
|
|
|
1130
1130
|
}),
|
|
1131
1131
|
/* @__PURE__ */ b("div", {
|
|
1132
1132
|
className: "studio-editor-properties__form-layout-row",
|
|
1133
|
-
children: [/* @__PURE__ */ a("span", { children: t.rowGap }), /* @__PURE__ */ a(
|
|
1133
|
+
children: [/* @__PURE__ */ a("span", { children: t.rowGap }), /* @__PURE__ */ a(Kt, {
|
|
1134
1134
|
name: t.rowGap,
|
|
1135
1135
|
value: i.rowGap ?? De(0, we.Pixels),
|
|
1136
1136
|
strings: t,
|
|
@@ -1183,7 +1183,7 @@ var Gu = ({ form: e, strings: t, onChange: n }) => {
|
|
|
1183
1183
|
}),
|
|
1184
1184
|
minimum: 1
|
|
1185
1185
|
}),
|
|
1186
|
-
/* @__PURE__ */ b("label", { children: [/* @__PURE__ */ a("span", { children: t.fieldWidth }), /* @__PURE__ */ a(
|
|
1186
|
+
/* @__PURE__ */ b("label", { children: [/* @__PURE__ */ a("span", { children: t.fieldWidth }), /* @__PURE__ */ a(Kt, {
|
|
1187
1187
|
name: t.fieldWidth,
|
|
1188
1188
|
value: e.width ?? De(),
|
|
1189
1189
|
strings: t,
|
|
@@ -1192,7 +1192,7 @@ var Gu = ({ form: e, strings: t, onChange: n }) => {
|
|
|
1192
1192
|
width: o
|
|
1193
1193
|
})
|
|
1194
1194
|
})] })
|
|
1195
|
-
] }),
|
|
1195
|
+
] }), Kt = ({ name: e, value: t, strings: n, onChange: o }) => /* @__PURE__ */ b("span", {
|
|
1196
1196
|
className: "studio-editor-properties__form-width",
|
|
1197
1197
|
children: [/* @__PURE__ */ a("input", {
|
|
1198
1198
|
type: "number",
|
|
@@ -1406,7 +1406,7 @@ function Xu(e, t) {
|
|
|
1406
1406
|
function ep(e, t, n, o) {
|
|
1407
1407
|
const i = n.flatMap((s) => s.screens ?? []).find((s) => s.screenTemplate === e);
|
|
1408
1408
|
if (!i) return;
|
|
1409
|
-
const r =
|
|
1409
|
+
const r = en(n.map((s) => s.manifest));
|
|
1410
1410
|
return Vs(go(Qs(i), o, r), t);
|
|
1411
1411
|
}
|
|
1412
1412
|
function tp(e, t) {
|
|
@@ -1497,7 +1497,7 @@ var ft = /* @__PURE__ */ (function(e) {
|
|
|
1497
1497
|
})
|
|
1498
1498
|
]
|
|
1499
1499
|
});
|
|
1500
|
-
},
|
|
1500
|
+
}, Cn = ({ controller: e, environment: t, strings: n, disabled: o, authoringTemplate: i }) => {
|
|
1501
1501
|
const r = n.properties.templates;
|
|
1502
1502
|
if (i) {
|
|
1503
1503
|
const s = e.document.screenTemplates.find((c) => c.name === i);
|
|
@@ -1863,10 +1863,10 @@ function Kn(e, t, n = e.label) {
|
|
|
1863
1863
|
"boolean"
|
|
1864
1864
|
].includes(typeof t) ? void 0 : `${n} is not a word, a number or a yes or no`;
|
|
1865
1865
|
}
|
|
1866
|
-
if (e.valueType === G.Object && e.editorKind === is && e.properties === void 0) return
|
|
1867
|
-
if (os(e) &&
|
|
1866
|
+
if (e.valueType === G.Object && e.editorKind === is && e.properties === void 0) return ln(t) ? void 0 : `${n} is not a record of values`;
|
|
1867
|
+
if (os(e) && ln(t)) return e.properties.map((o) => Kn(o, t[o.path], `${n} / ${o.label}`)).find((o) => o !== void 0);
|
|
1868
1868
|
if (rs(e) && Array.isArray(t)) for (const [o, i] of t.entries()) {
|
|
1869
|
-
if (!
|
|
1869
|
+
if (!ln(i)) continue;
|
|
1870
1870
|
const r = e.item.properties.map((s) => Kn(s, i[s.path], `${n} ${o + 1} / ${s.label}`)).find((s) => s !== void 0);
|
|
1871
1871
|
if (r) return r;
|
|
1872
1872
|
}
|
|
@@ -1900,7 +1900,7 @@ function wi(e, t) {
|
|
|
1900
1900
|
};
|
|
1901
1901
|
}
|
|
1902
1902
|
var To = ({ registry: e, property: t, context: n, componentId: o, onChange: i, diagnostics: r, presentation: s = "field" }) => {
|
|
1903
|
-
const l = s === "popover", { descriptor: c } = t, u = `pe-${o}-${c.path}`.replace(/[^A-Za-z0-9_-]/g, "-"), d = e.resolve(c), p = Ga(t), { editor: m, failed: h } = wi(e, d?.id), { editor: g } = wi(e, p ? "bindingExpression" : void 0), f = n.strings.editors, v = !t.editable || c.readOnly === !0, w = t.editable ? c.readOnly === !0 ? f.readOnly : void 0 : t.reason ?? f.inherited, P = t.effectiveValue, x = wp(t, r), C = P == null || !Ko(c) ? void 0 :
|
|
1903
|
+
const l = s === "popover", { descriptor: c } = t, u = `pe-${o}-${c.path}`.replace(/[^A-Za-z0-9_-]/g, "-"), d = e.resolve(c), p = Ga(t), { editor: m, failed: h } = wi(e, d?.id), { editor: g } = wi(e, p ? "bindingExpression" : void 0), f = n.strings.editors, v = !t.editable || c.readOnly === !0, w = t.editable ? c.readOnly === !0 ? f.readOnly : void 0 : t.reason ?? f.inherited, P = t.effectiveValue, x = wp(t, r), C = P == null || !Ko(c) ? void 0 : dn(c, P) ?? Kn(c, P), k = C !== void 0 && dn(c, P) !== void 0 ? es(c, P) : void 0, y = k !== void 0 && dn(c, k) === void 0, T = (E) => i(t, E), A = p && Ja(P), I = c.valueType === "boolean", N = Ko(c);
|
|
1904
1904
|
return /* @__PURE__ */ b("div", {
|
|
1905
1905
|
className: `studio-editor-field${I ? " studio-editor-field--inline" : ""}`,
|
|
1906
1906
|
"data-property": c.path,
|
|
@@ -2680,7 +2680,7 @@ function xp() {
|
|
|
2680
2680
|
]) e.register(t, async () => (await import("./SummaryEditor-C5wP1uIH.js")).SummaryEditor);
|
|
2681
2681
|
return e;
|
|
2682
2682
|
}
|
|
2683
|
-
var
|
|
2683
|
+
var nn = xp(), Po = "presentation", xo = "arguments", Dt = (e) => typeof e == "string" ? e : "";
|
|
2684
2684
|
function Xr(e, t = "") {
|
|
2685
2685
|
const n = Dt(e?.command);
|
|
2686
2686
|
if (n === "") return;
|
|
@@ -2980,7 +2980,7 @@ var Oo = {
|
|
|
2980
2980
|
duplicate: "duplicate",
|
|
2981
2981
|
delete: "delete",
|
|
2982
2982
|
addSubItem: "addSubItem"
|
|
2983
|
-
},
|
|
2983
|
+
}, on = /* @__PURE__ */ (function(e) {
|
|
2984
2984
|
return e.Elements = "elements", e.Collection = "collection", e.Region = "region", e;
|
|
2985
2985
|
})({}), ta = (e) => "rejected" in e;
|
|
2986
2986
|
function $p(e, t) {
|
|
@@ -3036,10 +3036,10 @@ var Do = (e, t, n) => e.flatMap((o) => {
|
|
|
3036
3036
|
...n
|
|
3037
3037
|
})), Bp = (e, t) => Do(e, t, () => {
|
|
3038
3038
|
});
|
|
3039
|
-
function
|
|
3039
|
+
function Qt(e, t) {
|
|
3040
3040
|
for (const n of e) {
|
|
3041
3041
|
if (n.id === t) return n;
|
|
3042
|
-
const o = n.children ?
|
|
3042
|
+
const o = n.children ? Qt(n.children, t) : void 0;
|
|
3043
3043
|
if (o) return o;
|
|
3044
3044
|
}
|
|
3045
3045
|
}
|
|
@@ -3073,7 +3073,7 @@ var na = (e, t) => ({
|
|
|
3073
3073
|
...e.children ? { children: e.children.map((n) => na(n, t)) } : {}
|
|
3074
3074
|
});
|
|
3075
3075
|
function Up(e, t, n) {
|
|
3076
|
-
const o =
|
|
3076
|
+
const o = Qt(e, t), i = Ct(e, t);
|
|
3077
3077
|
if (!o || !i) return { items: [...e] };
|
|
3078
3078
|
const r = na(o, n), s = i.findIndex((c) => c.id === t) + 1, l = [
|
|
3079
3079
|
...i.slice(0, s),
|
|
@@ -3113,7 +3113,7 @@ function oa(e) {
|
|
|
3113
3113
|
const { region: t, module: n, navigation: o, structure: i, newId: r, slots: s, startingLabel: l, strings: c } = e, u = dr(i, o, n, t), d = Kp(o, n, t), p = Rs(i, o, { slots: [...s] }), m = (x) => `${n ?? "application"}:${t}:${x}`, h = [], g = (x, C) => {
|
|
3114
3114
|
const k = x.filter((y) => !y.readOnly);
|
|
3115
3115
|
x.forEach((y) => {
|
|
3116
|
-
const T =
|
|
3116
|
+
const T = Qt(d, y.id)?.target ?? (y.target ? {
|
|
3117
3117
|
module: y.target.module,
|
|
3118
3118
|
...y.target.feature ? { feature: y.target.feature } : {}
|
|
3119
3119
|
} : void 0), A = y.readOnly ? -1 : k.indexOf(y), I = Gp(i, T), N = p.filter((E) => E.entry === m(y.id)).map((E) => ({
|
|
@@ -3169,7 +3169,7 @@ function oa(e) {
|
|
|
3169
3169
|
});
|
|
3170
3170
|
};
|
|
3171
3171
|
return {
|
|
3172
|
-
kind:
|
|
3172
|
+
kind: on.Region,
|
|
3173
3173
|
items: h,
|
|
3174
3174
|
regionTag: {
|
|
3175
3175
|
text: u.sources.label,
|
|
@@ -3205,18 +3205,18 @@ function oa(e) {
|
|
|
3205
3205
|
},
|
|
3206
3206
|
rename: (x, C) => v("Rename", w(Ft(d, x.id, { title: C })), { itemId: x.id }),
|
|
3207
3207
|
choice: (x, C) => {
|
|
3208
|
-
const k =
|
|
3208
|
+
const k = Qt(d, C.id);
|
|
3209
3209
|
if (k) {
|
|
3210
3210
|
if (x === M.target) return {
|
|
3211
|
-
property:
|
|
3211
|
+
property: Nn("target", "Navigate to", "navigationItemTarget", k.target),
|
|
3212
3212
|
plan: (y) => v("Link", w(Ft(d, C.id, { target: Hp(y) ? y : void 0 })), { itemId: C.id })
|
|
3213
3213
|
};
|
|
3214
3214
|
if (x === M.slot) return {
|
|
3215
|
-
property:
|
|
3215
|
+
property: Nn("slot", "Render into slot", "renderingSlot", k.slot ?? "content"),
|
|
3216
3216
|
plan: (y) => v("Change", w(Ft(d, C.id, { slot: typeof y == "string" && y !== "content" ? y : void 0 })), { itemId: C.id })
|
|
3217
3217
|
};
|
|
3218
3218
|
if (x === "icon") return {
|
|
3219
|
-
property:
|
|
3219
|
+
property: Nn("icon", "Icon", "icon", k.icon),
|
|
3220
3220
|
plan: (y) => v("Change", w(Ft(d, C.id, { icon: typeof y == "string" && y !== "" ? y : void 0 })), { itemId: C.id })
|
|
3221
3221
|
};
|
|
3222
3222
|
}
|
|
@@ -3237,7 +3237,7 @@ function oa(e) {
|
|
|
3237
3237
|
};
|
|
3238
3238
|
}
|
|
3239
3239
|
var Hp = (e) => typeof e == "object" && e !== null && typeof e.module == "string";
|
|
3240
|
-
function
|
|
3240
|
+
function Nn(e, t, n, o) {
|
|
3241
3241
|
return {
|
|
3242
3242
|
descriptor: {
|
|
3243
3243
|
path: e,
|
|
@@ -3271,7 +3271,7 @@ function Vp({ componentId: e, property: t, newId: n, startingLabel: o, startingD
|
|
|
3271
3271
|
};
|
|
3272
3272
|
}), p = (h) => c.has(h), m = (h) => p(h) ? void 0 : { rejected: t.reason ?? h };
|
|
3273
3273
|
return {
|
|
3274
|
-
kind:
|
|
3274
|
+
kind: on.Collection,
|
|
3275
3275
|
items: d,
|
|
3276
3276
|
add: (h) => {
|
|
3277
3277
|
if (h !== M.addItem) return { rejected: h };
|
|
@@ -3425,7 +3425,7 @@ function aa(e, t, n) {
|
|
|
3425
3425
|
if (e.modules.length === 0) return;
|
|
3426
3426
|
const o = ho(t, n);
|
|
3427
3427
|
if (!o || o.slice) return;
|
|
3428
|
-
const { button: i, converted: r } = _s(new
|
|
3428
|
+
const { button: i, converted: r } = _s(new Xt(e), o);
|
|
3429
3429
|
return r && i.slice ? { slice: i.slice } : void 0;
|
|
3430
3430
|
}
|
|
3431
3431
|
function Qp(e, t) {
|
|
@@ -3454,7 +3454,7 @@ function Hn(e, t) {
|
|
|
3454
3454
|
typeof n.id == "string" && n.properties !== null && typeof n.properties == "object" && (n.id = t());
|
|
3455
3455
|
for (const [o, i] of Object.entries(n)) o !== "properties" && Hn(i, t);
|
|
3456
3456
|
}
|
|
3457
|
-
var Vn = (e) => typeof e == "string" ? e : "",
|
|
3457
|
+
var Vn = (e) => typeof e == "string" ? e : "", rn = { [M.addButton]: {
|
|
3458
3458
|
slot: "items",
|
|
3459
3459
|
componentName: "core:toolbarItem",
|
|
3460
3460
|
labelProperty: "label",
|
|
@@ -3462,7 +3462,7 @@ var Vn = (e) => typeof e == "string" ? e : "", on = { [M.addButton]: {
|
|
|
3462
3462
|
startingProperties: { kind: "Action" }
|
|
3463
3463
|
} };
|
|
3464
3464
|
function Zp({ component: e, addActionId: t, ownershipOf: n, inspect: o, newId: i, startingLabel: r, structure: s }) {
|
|
3465
|
-
const l =
|
|
3465
|
+
const l = rn[t];
|
|
3466
3466
|
if (!l) return;
|
|
3467
3467
|
const c = e.slots?.[l.slot] ?? [], u = c.map((m, h) => {
|
|
3468
3468
|
const g = m.id, f = m.properties ?? {}, v = n(g) !== ne.Local, w = s ? aa(s, g, f) : void 0;
|
|
@@ -3491,7 +3491,7 @@ function Zp({ component: e, addActionId: t, ownershipOf: n, inspect: o, newId: i
|
|
|
3491
3491
|
select: { elementId: m.id }
|
|
3492
3492
|
});
|
|
3493
3493
|
return {
|
|
3494
|
-
kind:
|
|
3494
|
+
kind: on.Elements,
|
|
3495
3495
|
items: u,
|
|
3496
3496
|
add: (m) => {
|
|
3497
3497
|
if (m !== t) return { rejected: m };
|
|
@@ -3571,7 +3571,7 @@ function Xp(e) {
|
|
|
3571
3571
|
const s = Ti(n, r);
|
|
3572
3572
|
if (s) return Ii(e, r, s.addActionId, i, !1);
|
|
3573
3573
|
const l = oo(t, o), c = l && Ti(n, l);
|
|
3574
|
-
if (l && c &&
|
|
3574
|
+
if (l && c && rn[c.addActionId]) return Ii(e, l, c.addActionId, o, !0);
|
|
3575
3575
|
}
|
|
3576
3576
|
function Ti(e, t) {
|
|
3577
3577
|
if (!qe(t)) return;
|
|
@@ -3595,7 +3595,7 @@ function Ii(e, t, n, o, i) {
|
|
|
3595
3595
|
startingLabel: u.item,
|
|
3596
3596
|
...e.startingDestination ? { startingDestination: e.startingDestination } : {}
|
|
3597
3597
|
});
|
|
3598
|
-
} else
|
|
3598
|
+
} else rn[n] ? p = Zp({
|
|
3599
3599
|
component: t,
|
|
3600
3600
|
addActionId: n,
|
|
3601
3601
|
ownershipOf: l,
|
|
@@ -3622,7 +3622,7 @@ function em({ controller: e, environment: t, strings: n, startingLabels: o, star
|
|
|
3622
3622
|
return () => clearTimeout(N);
|
|
3623
3623
|
}, [d]);
|
|
3624
3624
|
const { document: m, composition: h, context: g, selectedId: f, ownershipOf: v, selectedItemId: w, navigation: P, navigationModule: x, structure: C } = e, k = t.navigation?.slots ?? t.propertyEditors?.slots ?? tm, y = U((N) => {
|
|
3625
|
-
const E =
|
|
3625
|
+
const E = an(N.componentName);
|
|
3626
3626
|
return E ? oa({
|
|
3627
3627
|
region: E,
|
|
3628
3628
|
module: x,
|
|
@@ -3697,7 +3697,7 @@ function em({ controller: e, environment: t, strings: n, startingLabels: o, star
|
|
|
3697
3697
|
perform: I,
|
|
3698
3698
|
add: U((N) => {
|
|
3699
3699
|
if (!T) return !1;
|
|
3700
|
-
const E = T.source.kind ===
|
|
3700
|
+
const E = T.source.kind === on.Elements ? o.button : o.item;
|
|
3701
3701
|
return I(T.source.add(N), () => n.announce.added(E));
|
|
3702
3702
|
}, [
|
|
3703
3703
|
T,
|
|
@@ -3734,7 +3734,7 @@ function em({ controller: e, environment: t, strings: n, startingLabels: o, star
|
|
|
3734
3734
|
};
|
|
3735
3735
|
}
|
|
3736
3736
|
var tm = ["content"];
|
|
3737
|
-
function
|
|
3737
|
+
function an(e) {
|
|
3738
3738
|
const t = e.slice(e.lastIndexOf(":") + 1).toLowerCase();
|
|
3739
3739
|
return t === "topbar" ? qo.Topbar : t === "sidebar" ? qo.Sidebar : void 0;
|
|
3740
3740
|
}
|
|
@@ -3759,7 +3759,7 @@ var sa = (e) => ({
|
|
|
3759
3759
|
editable: r,
|
|
3760
3760
|
...s ? { reason: s } : {}
|
|
3761
3761
|
}), Pi = ({ controller: e, environment: t, strings: n }) => {
|
|
3762
|
-
const o = (n.designMode ?? Oo).navigation, { selection: i, selectedItemId: r, navigation: s, structure: l, navigationModule: c } = e, u = i && "componentName" in i ?
|
|
3762
|
+
const o = (n.designMode ?? Oo).navigation, { selection: i, selectedItemId: r, navigation: s, structure: l, navigationModule: c } = e, u = i && "componentName" in i ? an(String(i.componentName)) : void 0, [d, p] = z(!1), m = L(() => So(t.availableSources), [t.availableSources]);
|
|
3763
3763
|
if (!u) return null;
|
|
3764
3764
|
const h = t.navigation?.slots ?? t.propertyEditors?.slots ?? ["content"], g = oa({
|
|
3765
3765
|
region: u,
|
|
@@ -3777,7 +3777,7 @@ var sa = (e) => ({
|
|
|
3777
3777
|
application: o.application,
|
|
3778
3778
|
mainArea: "Main area"
|
|
3779
3779
|
}
|
|
3780
|
-
}), f = l.modules.find((S) => S.id === c)?.name ?? c, v = f ?? o.application, w = o.regionName[u], P = r ? g.items.find((S) => S.id === r) : void 0, x = t.propertyEditors?.registry ??
|
|
3780
|
+
}), f = l.modules.find((S) => S.id === c)?.name ?? c, v = f ?? o.application, w = o.regionName[u], P = r ? g.items.find((S) => S.id === r) : void 0, x = t.propertyEditors?.registry ?? nn, C = Io({
|
|
3781
3781
|
controller: e,
|
|
3782
3782
|
environment: t,
|
|
3783
3783
|
strings: n,
|
|
@@ -3951,7 +3951,7 @@ function xi(e, t) {
|
|
|
3951
3951
|
});
|
|
3952
3952
|
if (n.length === 0) return [];
|
|
3953
3953
|
const o = new Map(n.map((r) => [r.id, r.title])), i = { buttons: n };
|
|
3954
|
-
return Ws(new
|
|
3954
|
+
return Ws(new Xt(e), i).map((r) => ({
|
|
3955
3955
|
code: r.code,
|
|
3956
3956
|
severity: r.severity === Ss.Error ? "error" : "warning",
|
|
3957
3957
|
message: r.message.replace(`'${r.button}'`, `'${o.get(r.button) ?? r.button}'`),
|
|
@@ -3963,7 +3963,7 @@ var im = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), rm = (e)
|
|
|
3963
3963
|
if (!r || i.modules.length === 0) return;
|
|
3964
3964
|
const g = ho(n.id, l);
|
|
3965
3965
|
if (!g) return;
|
|
3966
|
-
const f = js(new
|
|
3966
|
+
const f = js(new Xt(i), g), v = f.slice ? Jr(i).find((w) => w.id === f.slice) : void 0;
|
|
3967
3967
|
return {
|
|
3968
3968
|
resolved: f,
|
|
3969
3969
|
feature: v ? v.path[v.path.length - 1] : void 0
|
|
@@ -4043,7 +4043,7 @@ var im = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), rm = (e)
|
|
|
4043
4043
|
if (!s || !l || !r)
|
|
4044
4044
|
return i ? /* @__PURE__ */ a("div", {
|
|
4045
4045
|
className: "studio-editor-properties",
|
|
4046
|
-
children: /* @__PURE__ */ a(
|
|
4046
|
+
children: /* @__PURE__ */ a(Cn, {
|
|
4047
4047
|
controller: e,
|
|
4048
4048
|
environment: t,
|
|
4049
4049
|
strings: n,
|
|
@@ -4057,7 +4057,7 @@ var im = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), rm = (e)
|
|
|
4057
4057
|
className: "studio-editor-properties__header",
|
|
4058
4058
|
children: /* @__PURE__ */ a("strong", { children: c.screenLabel })
|
|
4059
4059
|
}),
|
|
4060
|
-
/* @__PURE__ */ a(
|
|
4060
|
+
/* @__PURE__ */ a(Cn, {
|
|
4061
4061
|
controller: e,
|
|
4062
4062
|
environment: t,
|
|
4063
4063
|
strings: n,
|
|
@@ -4076,7 +4076,7 @@ var im = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), rm = (e)
|
|
|
4076
4076
|
})
|
|
4077
4077
|
]
|
|
4078
4078
|
});
|
|
4079
|
-
if (e.selectedItemId !== void 0 &&
|
|
4079
|
+
if (e.selectedItemId !== void 0 && an(String(l.componentName ?? "")) !== void 0) return /* @__PURE__ */ a("div", {
|
|
4080
4080
|
className: "studio-editor-properties",
|
|
4081
4081
|
children: /* @__PURE__ */ a(Pi, {
|
|
4082
4082
|
controller: e,
|
|
@@ -4084,7 +4084,7 @@ var im = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), rm = (e)
|
|
|
4084
4084
|
strings: n
|
|
4085
4085
|
})
|
|
4086
4086
|
});
|
|
4087
|
-
const p = Va(e.composition.roots, s), m = uu(r.properties, p, l.properties), { runtime: h } = t, g = sm(e.context.catalog.components, r.typeId), f = g ? h.packageDescriptorOf(g) : void 0, v = (S) => !!f && h.designTime.propertyEditor(f, S.descriptor).contribution !== void 0, w = t.propertyEditors?.registry ??
|
|
4087
|
+
const p = Va(e.composition.roots, s), m = uu(r.properties, p, l.properties), { runtime: h } = t, g = sm(e.context.catalog.components, r.typeId), f = g ? h.packageDescriptorOf(g) : void 0, v = (S) => !!f && h.designTime.propertyEditor(f, S.descriptor).contribution !== void 0, w = t.propertyEditors?.registry ?? nn, P = [...r.diagnostics, ...e.diagnostics], x = fu(m, r.typeId, (S) => lm.has(S.descriptor.path) || v(S)), C = gu(x), k = {
|
|
4088
4088
|
controller: e,
|
|
4089
4089
|
environment: t,
|
|
4090
4090
|
strings: n,
|
|
@@ -4132,7 +4132,7 @@ var im = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), rm = (e)
|
|
|
4132
4132
|
strings: n,
|
|
4133
4133
|
disabled: o !== void 0 && o !== "local"
|
|
4134
4134
|
}),
|
|
4135
|
-
i && /* @__PURE__ */ a(
|
|
4135
|
+
i && /* @__PURE__ */ a(Cn, {
|
|
4136
4136
|
controller: e,
|
|
4137
4137
|
environment: t,
|
|
4138
4138
|
strings: n,
|
|
@@ -4225,7 +4225,7 @@ var im = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), rm = (e)
|
|
|
4225
4225
|
]
|
|
4226
4226
|
});
|
|
4227
4227
|
}, la = ({ strings: e, controller: t, environment: n, authoringTemplate: o, structure: i, onClose: r }) => {
|
|
4228
|
-
const [s, l] = z(
|
|
4228
|
+
const [s, l] = z(Sn.Properties), c = t.selectedId ? t.ownershipOf(t.selectedId) : void 0;
|
|
4229
4229
|
return /* @__PURE__ */ b("section", {
|
|
4230
4230
|
className: "studio-editor-inspector",
|
|
4231
4231
|
"aria-label": e.inspectorTitle,
|
|
@@ -4248,7 +4248,7 @@ var im = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), rm = (e)
|
|
|
4248
4248
|
value: s,
|
|
4249
4249
|
onChange: l,
|
|
4250
4250
|
tabs: [{
|
|
4251
|
-
id:
|
|
4251
|
+
id: Sn.Properties,
|
|
4252
4252
|
label: e.propertiesTab,
|
|
4253
4253
|
content: /* @__PURE__ */ a(cm, {
|
|
4254
4254
|
controller: t,
|
|
@@ -4258,7 +4258,7 @@ var im = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), rm = (e)
|
|
|
4258
4258
|
authoringTemplate: o
|
|
4259
4259
|
})
|
|
4260
4260
|
}, {
|
|
4261
|
-
id:
|
|
4261
|
+
id: Sn.Structure,
|
|
4262
4262
|
label: e.structureTab,
|
|
4263
4263
|
content: i
|
|
4264
4264
|
}]
|
|
@@ -4271,21 +4271,21 @@ var im = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), rm = (e)
|
|
|
4271
4271
|
item: W.Stack,
|
|
4272
4272
|
type: "Stack",
|
|
4273
4273
|
panel: Xe.StackPanel,
|
|
4274
|
-
flowKind:
|
|
4274
|
+
flowKind: cn.Column,
|
|
4275
4275
|
arrangement: J.Column
|
|
4276
4276
|
},
|
|
4277
4277
|
{
|
|
4278
4278
|
item: W.Row,
|
|
4279
4279
|
type: "Row",
|
|
4280
4280
|
panel: Xe.StackPanel,
|
|
4281
|
-
flowKind:
|
|
4281
|
+
flowKind: cn.Row,
|
|
4282
4282
|
arrangement: J.Row
|
|
4283
4283
|
},
|
|
4284
4284
|
{
|
|
4285
4285
|
item: W.Grid,
|
|
4286
4286
|
type: "Grid",
|
|
4287
4287
|
panel: Xe.Grid,
|
|
4288
|
-
flowKind:
|
|
4288
|
+
flowKind: cn.Grid,
|
|
4289
4289
|
arrangement: J.Grid
|
|
4290
4290
|
},
|
|
4291
4291
|
{
|
|
@@ -4670,14 +4670,14 @@ function ma({ strings: e, layoutLabels: t, icons: n, paletteSources: o, onAdd: i
|
|
|
4670
4670
|
function Mo(e, t) {
|
|
4671
4671
|
return e.includes(":") ? e : `${t}:${e}`;
|
|
4672
4672
|
}
|
|
4673
|
-
function
|
|
4673
|
+
function qt(e) {
|
|
4674
4674
|
return e ? uo(e) ? Ze.grid : po(e) ? e.orientation === ct.Horizontal ? Ze.flexRow : Ze.flexColumn : ut(e) ? Ze.absolute : Ze.flexColumn : Ze.absolute;
|
|
4675
4675
|
}
|
|
4676
4676
|
var Ei = {
|
|
4677
4677
|
unitType: hs.Star,
|
|
4678
4678
|
value: 1
|
|
4679
4679
|
};
|
|
4680
|
-
function
|
|
4680
|
+
function Yt(e, t, n, o = [], i = {}) {
|
|
4681
4681
|
const r = Dm(e, i);
|
|
4682
4682
|
return {
|
|
4683
4683
|
...ia(t, n),
|
|
@@ -4780,7 +4780,7 @@ function ha(e, t) {
|
|
|
4780
4780
|
};
|
|
4781
4781
|
}
|
|
4782
4782
|
function Mm(e) {
|
|
4783
|
-
return e.authoringTemplate !== void 0 ? Gd(e.authoringTemplate,
|
|
4783
|
+
return e.authoringTemplate !== void 0 ? Gd(e.authoringTemplate, Yt(W.Stack, zd, "Template")) : qd(Yt(W.Stack, Kd, "Screen"), e.screenTemplate);
|
|
4784
4784
|
}
|
|
4785
4785
|
var fa = ({ placement: e, children: t }) => /* @__PURE__ */ a("div", {
|
|
4786
4786
|
className: "studio-screen-editor-palette-host",
|
|
@@ -4828,32 +4828,32 @@ var fa = ({ placement: e, children: t }) => /* @__PURE__ */ a("div", {
|
|
|
4828
4828
|
} catch {
|
|
4829
4829
|
return;
|
|
4830
4830
|
}
|
|
4831
|
-
},
|
|
4831
|
+
}, Gt = (e) => {
|
|
4832
4832
|
try {
|
|
4833
4833
|
return e();
|
|
4834
4834
|
} catch {
|
|
4835
4835
|
return;
|
|
4836
4836
|
}
|
|
4837
|
-
}, _m = () =>
|
|
4837
|
+
}, _m = () => Gt(() => typeof window < "u" ? window.localStorage : void 0);
|
|
4838
4838
|
function $m(e = _m()) {
|
|
4839
4839
|
return {
|
|
4840
|
-
read: (t) => e ? Ai(
|
|
4840
|
+
read: (t) => e ? Ai(Gt(() => e.getItem(`${Qn}:${t}`)) ?? null) : void 0,
|
|
4841
4841
|
write: (t, n) => {
|
|
4842
4842
|
if (!e) return;
|
|
4843
4843
|
const o = JSON.stringify({
|
|
4844
4844
|
width: Math.round(n.width),
|
|
4845
4845
|
height: Math.round(n.height)
|
|
4846
4846
|
});
|
|
4847
|
-
|
|
4847
|
+
Gt(() => {
|
|
4848
4848
|
e.setItem(`${Qn}:${t}`, o), e.setItem(Fi, o);
|
|
4849
4849
|
});
|
|
4850
4850
|
},
|
|
4851
|
-
readLastUsed: () => e ? Ai(
|
|
4851
|
+
readLastUsed: () => e ? Ai(Gt(() => e.getItem(Fi)) ?? null) : void 0
|
|
4852
4852
|
};
|
|
4853
4853
|
}
|
|
4854
4854
|
var Ge = /* @__PURE__ */ (function(e) {
|
|
4855
4855
|
return e.Desktop = "desktop", e.Mobile = "mobile", e;
|
|
4856
|
-
})({}),
|
|
4856
|
+
})({}), sn = {
|
|
4857
4857
|
[Ge.Desktop]: {
|
|
4858
4858
|
width: 1280,
|
|
4859
4859
|
height: 720
|
|
@@ -4880,7 +4880,7 @@ var Mi = {
|
|
|
4880
4880
|
height: 640
|
|
4881
4881
|
}, Lm = (e) => !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
|
|
4882
4882
|
function ya(e) {
|
|
4883
|
-
return _o(
|
|
4883
|
+
return _o(sn[Ge.Desktop], e);
|
|
4884
4884
|
}
|
|
4885
4885
|
function Bm(e) {
|
|
4886
4886
|
return !!e && e.width === Mi.width && e.height === Mi.height;
|
|
@@ -4919,7 +4919,7 @@ var wa = ({ environment: e, children: t }) => {
|
|
|
4919
4919
|
});
|
|
4920
4920
|
function zm(e, t) {
|
|
4921
4921
|
return Object.values(Ge).find((n) => {
|
|
4922
|
-
const o = _o(
|
|
4922
|
+
const o = _o(sn[n], t);
|
|
4923
4923
|
return o.width === e.width && o.height === e.height;
|
|
4924
4924
|
});
|
|
4925
4925
|
}
|
|
@@ -4935,7 +4935,7 @@ var qm = ({ windowSize: e, available: t, strings: n, shell: o, onResize: i }) =>
|
|
|
4935
4935
|
title: p,
|
|
4936
4936
|
variant: "ghost",
|
|
4937
4937
|
size: "small",
|
|
4938
|
-
onClick: () => i(_o(
|
|
4938
|
+
onClick: () => i(_o(sn[u], t))
|
|
4939
4939
|
});
|
|
4940
4940
|
return /* @__PURE__ */ b("div", {
|
|
4941
4941
|
className: "studio-editor-viewport-controls",
|
|
@@ -5115,7 +5115,7 @@ var Zn = ({ elementId: e, tone: t, text: n }) => /* @__PURE__ */ a("div", {
|
|
|
5115
5115
|
"data-tone": t,
|
|
5116
5116
|
role: "note",
|
|
5117
5117
|
children: n
|
|
5118
|
-
}),
|
|
5118
|
+
}), Ht = /* @__PURE__ */ (function(e) {
|
|
5119
5119
|
return e.Empty = "empty", e.Failed = "failed", e.Declaration = "declaration", e;
|
|
5120
5120
|
})({}), re = /* @__PURE__ */ (function(e) {
|
|
5121
5121
|
return e.Window = "window", e.Toast = "toast", e.Tooltip = "tooltip", e.Mask = "mask", e.Busy = "busy", e;
|
|
@@ -5231,7 +5231,7 @@ var Ca = ls(void 0), sh = () => {
|
|
|
5231
5231
|
"aria-hidden": "true"
|
|
5232
5232
|
})]
|
|
5233
5233
|
}) : null;
|
|
5234
|
-
},
|
|
5234
|
+
}, Tn = (e) => `data:image/svg+xml;utf8,${encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" width="320" height="200"><rect width="320" height="200" fill="hsl(${e} 40% 40%)"/></svg>`)}`, $i = [{
|
|
5235
5235
|
label: "Documents",
|
|
5236
5236
|
children: ["Work", "Home"]
|
|
5237
5237
|
}], lh = [
|
|
@@ -5249,7 +5249,7 @@ var Ca = ls(void 0), sh = () => {
|
|
|
5249
5249
|
"Draft",
|
|
5250
5250
|
"In review",
|
|
5251
5251
|
"Published"
|
|
5252
|
-
],
|
|
5252
|
+
], In = {
|
|
5253
5253
|
text: { text: "Text" },
|
|
5254
5254
|
title: {
|
|
5255
5255
|
text: "Title",
|
|
@@ -5557,17 +5557,17 @@ var Ca = ls(void 0), sh = () => {
|
|
|
5557
5557
|
},
|
|
5558
5558
|
blockUI: { blocked: !0 },
|
|
5559
5559
|
image: {
|
|
5560
|
-
src:
|
|
5560
|
+
src: Tn(220),
|
|
5561
5561
|
alt: "Image",
|
|
5562
5562
|
width: "200"
|
|
5563
5563
|
},
|
|
5564
5564
|
galleria: {
|
|
5565
5565
|
maxWidth: 320,
|
|
5566
5566
|
items: [{
|
|
5567
|
-
src:
|
|
5567
|
+
src: Tn(220),
|
|
5568
5568
|
alt: "One"
|
|
5569
5569
|
}, {
|
|
5570
|
-
src:
|
|
5570
|
+
src: Tn(10),
|
|
5571
5571
|
alt: "Two"
|
|
5572
5572
|
}]
|
|
5573
5573
|
},
|
|
@@ -5722,7 +5722,7 @@ var Ca = ls(void 0), sh = () => {
|
|
|
5722
5722
|
"navigate",
|
|
5723
5723
|
"errorBoundary",
|
|
5724
5724
|
"toolbarSeparator"
|
|
5725
|
-
]), vt = (e) => e.slice(e.lastIndexOf(":") + 1), Uo = (e, t) =>
|
|
5725
|
+
]), vt = (e) => e.slice(e.lastIndexOf(":") + 1), Uo = (e, t) => In[e] ?? In[t] ?? In[vt(t)];
|
|
5726
5726
|
function Ta(e, t, n) {
|
|
5727
5727
|
const o = Uo(e, t), i = n ?? {};
|
|
5728
5728
|
if (!o) return { ...i };
|
|
@@ -5779,7 +5779,7 @@ function fh(e, t, n, o) {
|
|
|
5779
5779
|
onError: (P) => g(P instanceof Error ? P.message : String(P)),
|
|
5780
5780
|
fallback: /* @__PURE__ */ a(Zn, {
|
|
5781
5781
|
elementId: r.element.id,
|
|
5782
|
-
tone:
|
|
5782
|
+
tone: Ht.Failed,
|
|
5783
5783
|
text: n.failedToDraw(v, h ?? "")
|
|
5784
5784
|
}),
|
|
5785
5785
|
children: p ? /* @__PURE__ */ a(ah, {
|
|
@@ -5800,7 +5800,7 @@ function fh(e, t, n, o) {
|
|
|
5800
5800
|
})
|
|
5801
5801
|
}, w), !f && /* @__PURE__ */ a(Zn, {
|
|
5802
5802
|
elementId: r.element.id,
|
|
5803
|
-
tone: u ?
|
|
5803
|
+
tone: u ? Ht.Declaration : Ht.Empty,
|
|
5804
5804
|
text: u ? n.declaration(v) : n.nothingToShow(v)
|
|
5805
5805
|
})]
|
|
5806
5806
|
});
|
|
@@ -5819,7 +5819,7 @@ var vh = (e) => ({ element: t }) => yt("span", {
|
|
|
5819
5819
|
style: { display: "contents" }
|
|
5820
5820
|
}, yt(Zn, {
|
|
5821
5821
|
elementId: t.id,
|
|
5822
|
-
tone:
|
|
5822
|
+
tone: Ht.Failed,
|
|
5823
5823
|
text: e.unavailable(t.name || t.componentName)
|
|
5824
5824
|
})), Se = /* @__PURE__ */ (function(e) {
|
|
5825
5825
|
return e.Container = "container", e.Between = "between", e;
|
|
@@ -6124,7 +6124,7 @@ var Bi = [
|
|
|
6124
6124
|
"dblclick"
|
|
6125
6125
|
], Mh = "[data-scene-id], [data-studio-element], [data-studio-placeholder-for]";
|
|
6126
6126
|
function _h(e, t, n = 0) {
|
|
6127
|
-
const o =
|
|
6127
|
+
const o = tn(t);
|
|
6128
6128
|
return {
|
|
6129
6129
|
select: e === "pointerdown" && n === 0 || e === "click",
|
|
6130
6130
|
swallow: !o,
|
|
@@ -6157,7 +6157,7 @@ function jh(e, t, n = !1) {
|
|
|
6157
6157
|
return;
|
|
6158
6158
|
}
|
|
6159
6159
|
const d = _h(l.type, c, l.button);
|
|
6160
|
-
d.select && (
|
|
6160
|
+
d.select && (tn(c) || r.focus({ preventScroll: !0 }), o.current($h(c), Bh(c))), d.cancelDefault && l.preventDefault(), d.swallow && l.stopPropagation();
|
|
6161
6161
|
};
|
|
6162
6162
|
for (const l of Bi) r.addEventListener(l, s, !0);
|
|
6163
6163
|
return () => {
|
|
@@ -6388,7 +6388,7 @@ var Wi = [
|
|
|
6388
6388
|
`[data-scene-nav-item="${t}"]`,
|
|
6389
6389
|
`[data-scene-item="${t}"]`
|
|
6390
6390
|
];
|
|
6391
|
-
},
|
|
6391
|
+
}, Pn = (e, t) => e === t || !!e && !!t && e.left === t.left && e.top === t.top && e.width === t.width && e.height === t.height, Vh = (e, t) => Pn(e.surface, t.surface) && Pn(e.component, t.component) && Object.keys(t.items).length === Object.keys(e.items).length && Object.entries(t.items).every(([n, o]) => Pn(e.items[n], o));
|
|
6392
6392
|
function eo(e, t, n) {
|
|
6393
6393
|
const [o, i] = z(), r = U(() => {
|
|
6394
6394
|
const s = e.current, l = s ? t(s, s.getBoundingClientRect()) : void 0;
|
|
@@ -6448,8 +6448,8 @@ function Jh(e, t) {
|
|
|
6448
6448
|
};
|
|
6449
6449
|
}, [t]), Vh);
|
|
6450
6450
|
}
|
|
6451
|
-
var
|
|
6452
|
-
const { subject: s } = t, l = Jh(e, s), [c, u] = z(), d = o.propertyEditors?.registry ??
|
|
6451
|
+
var xn = 34, Qh = ({ surface: e, state: t, controller: n, environment: o, editorStrings: i, strings: r }) => {
|
|
6452
|
+
const { subject: s } = t, l = Jh(e, s), [c, u] = z(), d = o.propertyEditors?.registry ?? nn, p = L(() => So(o.availableSources), [o.availableSources]), m = U((F) => {
|
|
6453
6453
|
if (typeof F != "string" || F === "") return;
|
|
6454
6454
|
const $ = o.propertyEditors?.slices?.find((se) => se.id === F) ?? o.stateChangeSlices.find((se) => se.id === F), q = F.split(".");
|
|
6455
6455
|
return $?.name ?? q[q.length - 1];
|
|
@@ -6485,7 +6485,7 @@ var Pn = 34, Qh = ({ surface: e, state: t, controller: n, environment: o, editor
|
|
|
6485
6485
|
top: (C ? C.top + C.height : y.top) + 8
|
|
6486
6486
|
} : {
|
|
6487
6487
|
left: C.left + C.width + 8,
|
|
6488
|
-
top: C.top + (C.height -
|
|
6488
|
+
top: C.top + (C.height - xn) / 2
|
|
6489
6489
|
} : void 0, A = v ? l.items[v.id] : void 0, I = c && v && c.itemId === v.id ? w.choice(c.actionId, v) : void 0, N = () => u(void 0), E = () => Io({
|
|
6490
6490
|
controller: n,
|
|
6491
6491
|
environment: o,
|
|
@@ -6510,8 +6510,8 @@ var Pn = 34, Qh = ({ surface: e, state: t, controller: n, environment: o, editor
|
|
|
6510
6510
|
style: {
|
|
6511
6511
|
left: T.left,
|
|
6512
6512
|
top: T.top,
|
|
6513
|
-
width:
|
|
6514
|
-
height:
|
|
6513
|
+
width: xn,
|
|
6514
|
+
height: xn
|
|
6515
6515
|
},
|
|
6516
6516
|
onClick: () => t.add(P.id),
|
|
6517
6517
|
children: /* @__PURE__ */ a(mc, { "aria-hidden": "true" })
|
|
@@ -6583,12 +6583,12 @@ function Yh(e, t) {
|
|
|
6583
6583
|
var zi = 6;
|
|
6584
6584
|
function Ra(e, t) {
|
|
6585
6585
|
return e.flatMap((n) => {
|
|
6586
|
-
const o = qe(n) ? n.componentName : void 0, i = o ? lo(t, o) : void 0, r = i?.designMode, s = o ?
|
|
6587
|
-
return [...r && r.addActions.length > 0 && (s !== void 0 || r.itemsPath !== void 0 ||
|
|
6586
|
+
const o = qe(n) ? n.componentName : void 0, i = o ? lo(t, o) : void 0, r = i?.designMode, s = o ? an(o) : void 0;
|
|
6587
|
+
return [...r && r.addActions.length > 0 && (s !== void 0 || r.itemsPath !== void 0 || rn[r.addActions[0].id] !== void 0) ? [{
|
|
6588
6588
|
id: n.id,
|
|
6589
6589
|
name: i?.displayName ?? i?.component ?? "",
|
|
6590
6590
|
...s ? { region: s } : {}
|
|
6591
|
-
}] : [], ...Ra(
|
|
6591
|
+
}] : [], ...Ra(Zt(n), t)];
|
|
6592
6592
|
});
|
|
6593
6593
|
}
|
|
6594
6594
|
var Zh = (e, t) => e.left === t.left && e.top === t.top && e.width === t.width && e.height === t.height, Ki = "content", Xh = (e, t) => e.length === t.length && e.every((n, o) => n.id === t[o].id && n.rect.left === t[o].rect.left && n.rect.top === t[o].rect.top && n.rect.width === t[o].rect.width && n.rect.height === t[o].rect.height), ef = ({ surface: e, controller: t, strings: n }) => {
|
|
@@ -6652,10 +6652,10 @@ var Zh = (e, t) => e.left === t.left && e.top === t.top && e.width === t.width &
|
|
|
6652
6652
|
})
|
|
6653
6653
|
}, h);
|
|
6654
6654
|
})] });
|
|
6655
|
-
}, tf = ol(),
|
|
6655
|
+
}, tf = ol(), Lt = () => {
|
|
6656
6656
|
throw new Error("The screen is being designed; it does not navigate.");
|
|
6657
6657
|
}, nf = ({ structure: e, navigation: t, module: n, logoLockedReason: o, onNavigate: i, peeking: r, children: s }) => {
|
|
6658
|
-
const l = L(() => new
|
|
6658
|
+
const l = L(() => new Xt(e), [e]), c = L(() => ({
|
|
6659
6659
|
structure: l,
|
|
6660
6660
|
navigation: t
|
|
6661
6661
|
}), [l, t]), u = n === void 0 ? void 0 : l.firstFeatureId(n) ?? `${n}.`, d = r || u, p = L(() => d === void 0 && i === void 0 ? void 0 : {
|
|
@@ -6669,9 +6669,10 @@ var Zh = (e, t) => e.left === t.left && e.top === t.top && e.width === t.width &
|
|
|
6669
6669
|
parameters: {},
|
|
6670
6670
|
action: "navigate",
|
|
6671
6671
|
diagnostics: []
|
|
6672
|
-
}) :
|
|
6673
|
-
closeDialog:
|
|
6674
|
-
|
|
6672
|
+
}) : Lt,
|
|
6673
|
+
closeDialog: Lt,
|
|
6674
|
+
closeOutlet: Lt,
|
|
6675
|
+
back: Lt
|
|
6675
6676
|
}, [d, i]), m = t.application.logo, h = L(() => m ? {
|
|
6676
6677
|
title: m.title,
|
|
6677
6678
|
locked: n !== void 0,
|
|
@@ -6704,7 +6705,7 @@ var Zh = (e, t) => e.left === t.left && e.top === t.top && e.width === t.width &
|
|
|
6704
6705
|
function af(e, t, n) {
|
|
6705
6706
|
const { subject: o } = t;
|
|
6706
6707
|
if (!o) return !1;
|
|
6707
|
-
const i =
|
|
6708
|
+
const i = tn(e.target), r = () => (e.preventDefault(), e.stopPropagation(), !0);
|
|
6708
6709
|
if (e.key === "Escape" && !i)
|
|
6709
6710
|
return t.deselect(), r();
|
|
6710
6711
|
const s = o.selected;
|
|
@@ -7313,17 +7314,17 @@ function Of(e) {
|
|
|
7313
7314
|
return {
|
|
7314
7315
|
idOf: to,
|
|
7315
7316
|
nameOf: Pf,
|
|
7316
|
-
childrenOf:
|
|
7317
|
-
withChildren: (t, n) =>
|
|
7317
|
+
childrenOf: Zt,
|
|
7318
|
+
withChildren: (t, n) => jt(t) ? {
|
|
7318
7319
|
...t,
|
|
7319
7320
|
children: n
|
|
7320
7321
|
} : qe(t) ? {
|
|
7321
7322
|
...t,
|
|
7322
7323
|
slots: { children: n }
|
|
7323
7324
|
} : t,
|
|
7324
|
-
acceptsChildren: (t) =>
|
|
7325
|
+
acceptsChildren: (t) => jt(t),
|
|
7325
7326
|
ownershipOf: (t) => e(to(t)) ?? ne.Local,
|
|
7326
|
-
arrangementOf: (t) =>
|
|
7327
|
+
arrangementOf: (t) => jt(t) ? xf($r(t)) : void 0
|
|
7327
7328
|
};
|
|
7328
7329
|
}
|
|
7329
7330
|
function Rf(e) {
|
|
@@ -7356,8 +7357,8 @@ function no(e, t) {
|
|
|
7356
7357
|
if (l)
|
|
7357
7358
|
for (const c of l.slots) r.push(...l.content?.[c.name] ?? []);
|
|
7358
7359
|
}
|
|
7359
|
-
return (t === void 0 || o.kind ===
|
|
7360
|
-
element:
|
|
7360
|
+
return (t === void 0 || o.kind === Vt.Screen) && r.push(...n?.slotContent.content ?? []), {
|
|
7361
|
+
element: Yt(W.Stack, Ef, "Composition", r),
|
|
7361
7362
|
roots: r,
|
|
7362
7363
|
templates: i
|
|
7363
7364
|
};
|
|
@@ -7563,7 +7564,7 @@ function La(e, t, n, o) {
|
|
|
7563
7564
|
move: q,
|
|
7564
7565
|
validateMove: (D) => Vi(x.roots, D, k),
|
|
7565
7566
|
insertComponent: (D, j, _, K) => $(ra(Nt(), D, D), j, _, "Add", K, D),
|
|
7566
|
-
insertLayout: (D, j, _, K) => $(
|
|
7567
|
+
insertLayout: (D, j, _, K) => $(Yt(D, Nt(), D), j, _, "Add layout", K, `layout:${D}`),
|
|
7567
7568
|
remove: (D) => {
|
|
7568
7569
|
if (!jn(x.roots, D, k)) return;
|
|
7569
7570
|
const j = jr(x.roots, D, k);
|
|
@@ -7645,9 +7646,9 @@ var Ji = () => ({
|
|
|
7645
7646
|
const q = ht(w.document, e.authoringTemplate);
|
|
7646
7647
|
m({
|
|
7647
7648
|
document: w.document,
|
|
7648
|
-
legacyElements:
|
|
7649
|
+
legacyElements: zt(q, t.runtime.legacyTypeOf),
|
|
7649
7650
|
windowSize: $,
|
|
7650
|
-
layout:
|
|
7651
|
+
layout: qt(q),
|
|
7651
7652
|
changed: w.isDirty
|
|
7652
7653
|
});
|
|
7653
7654
|
}, [
|
|
@@ -7660,9 +7661,9 @@ var Ji = () => ({
|
|
|
7660
7661
|
C($);
|
|
7661
7662
|
const q = ht(w.document, e.authoringTemplate), se = {
|
|
7662
7663
|
document: w.document,
|
|
7663
|
-
legacyElements:
|
|
7664
|
+
legacyElements: zt(q, t.runtime.legacyTypeOf),
|
|
7664
7665
|
windowSize: $,
|
|
7665
|
-
layout:
|
|
7666
|
+
layout: qt(q),
|
|
7666
7667
|
changed: w.isDirty
|
|
7667
7668
|
}, ce = await h?.(se);
|
|
7668
7669
|
return T(ce), !ce;
|
|
@@ -7678,9 +7679,9 @@ var Ji = () => ({
|
|
|
7678
7679
|
try {
|
|
7679
7680
|
const q = ht(w.document, e.authoringTemplate), se = await h({
|
|
7680
7681
|
document: w.document,
|
|
7681
|
-
legacyElements:
|
|
7682
|
+
legacyElements: zt(q, t.runtime.legacyTypeOf),
|
|
7682
7683
|
windowSize: $,
|
|
7683
|
-
layout:
|
|
7684
|
+
layout: qt(q),
|
|
7684
7685
|
changed: !0
|
|
7685
7686
|
});
|
|
7686
7687
|
T(se), se || w.markSaved();
|
|
@@ -7772,11 +7773,11 @@ function zf(e, t) {
|
|
|
7772
7773
|
}
|
|
7773
7774
|
return n;
|
|
7774
7775
|
}
|
|
7775
|
-
var it = "p-anchored-overlay",
|
|
7776
|
+
var it = "p-anchored-overlay", Bt = "p-collapsible", Rn = "p-overlay-mask", O = (e, t) => ({ props: t ? {
|
|
7776
7777
|
styles: e,
|
|
7777
7778
|
motionProps: { name: t }
|
|
7778
7779
|
} : { styles: e } }), ue = (e) => ({ props: { motionProps: { name: e } } }), Kf = {
|
|
7779
|
-
"Accordion.Root": O(vc,
|
|
7780
|
+
"Accordion.Root": O(vc, Bt),
|
|
7780
7781
|
"AutoComplete.Root": O(bc),
|
|
7781
7782
|
"AutoComplete.Popup": ue(it),
|
|
7782
7783
|
"Avatar.Root": O(yc),
|
|
@@ -7804,7 +7805,7 @@ var it = "p-anchored-overlay", Lt = "p-collapsible", Rn = "p-overlay-mask", O =
|
|
|
7804
7805
|
"Drawer.Root": O($c),
|
|
7805
7806
|
"Drawer.Backdrop": ue(Rn),
|
|
7806
7807
|
"Drawer.Popup": ue("p-drawer"),
|
|
7807
|
-
"Fieldset.Root": O(Lc,
|
|
7808
|
+
"Fieldset.Root": O(Lc, Bt),
|
|
7808
7809
|
"FileUpload.Root": O(Bc),
|
|
7809
7810
|
FloatLabel: O(jc),
|
|
7810
7811
|
Fluid: O(Uc),
|
|
@@ -7830,7 +7831,7 @@ var it = "p-anchored-overlay", Lt = "p-collapsible", Rn = "p-overlay-mask", O =
|
|
|
7830
7831
|
"OrganizationChart.Root": O(rd),
|
|
7831
7832
|
OverlayBadge: O(ad),
|
|
7832
7833
|
"Paginator.Root": O(sd),
|
|
7833
|
-
"Panel.Root": O(ld,
|
|
7834
|
+
"Panel.Root": O(ld, Bt),
|
|
7834
7835
|
"Popover.Root": O(dd),
|
|
7835
7836
|
"Popover.Popup": ue(it),
|
|
7836
7837
|
"ProgressBar.Root": O(ud),
|
|
@@ -7848,7 +7849,7 @@ var it = "p-anchored-overlay", Lt = "p-collapsible", Rn = "p-overlay-mask", O =
|
|
|
7848
7849
|
"Slider.Root": O(kd),
|
|
7849
7850
|
"SpeedDial.Root": O(Sd),
|
|
7850
7851
|
"Splitter.Root": O(Cd),
|
|
7851
|
-
"Stepper.Root": O(Nd,
|
|
7852
|
+
"Stepper.Root": O(Nd, Bt),
|
|
7852
7853
|
"Tabs.Root": O(Td),
|
|
7853
7854
|
Tag: O(Id),
|
|
7854
7855
|
"Terminal.Root": O(Pd),
|
|
@@ -7884,14 +7885,14 @@ var it = "p-anchored-overlay", Lt = "p-collapsible", Rn = "p-overlay-mask", O =
|
|
|
7884
7885
|
strings: e.strings
|
|
7885
7886
|
});
|
|
7886
7887
|
}, Hf = ({ subject: e, environment: t, strings: n, layoutLabels: o, icons: i, paletteSources: r, initialSize: s, onChange: l, renderPaletteHost: c, opened: u }) => {
|
|
7887
|
-
const d = V(void 0), p = La(u, e.authoringTemplate, t, (C) => d.current?.(C)), [m, h] = z(s ??
|
|
7888
|
+
const d = V(void 0), p = La(u, e.authoringTemplate, t, (C) => d.current?.(C)), [m, h] = z(s ?? sn[Ge.Desktop]), [g, f] = z(!0), v = V(l);
|
|
7888
7889
|
v.current = l, le(() => {
|
|
7889
7890
|
const C = ht(p.document, e.authoringTemplate);
|
|
7890
7891
|
v.current?.({
|
|
7891
7892
|
document: p.document,
|
|
7892
|
-
legacyElements:
|
|
7893
|
+
legacyElements: zt(C, t.runtime.legacyTypeOf),
|
|
7893
7894
|
windowSize: m,
|
|
7894
|
-
layout:
|
|
7895
|
+
layout: qt(C),
|
|
7895
7896
|
changed: p.isDirty
|
|
7896
7897
|
});
|
|
7897
7898
|
}, [
|
|
@@ -7990,7 +7991,7 @@ function ly(e) {
|
|
|
7990
7991
|
...e.navigation ? { navigation: e.navigation } : {}
|
|
7991
7992
|
};
|
|
7992
7993
|
}
|
|
7993
|
-
var Zf = [.../* @__PURE__ */ new Set([...
|
|
7994
|
+
var Zf = [.../* @__PURE__ */ new Set([...nn.ids, ...Object.values(Y)])];
|
|
7994
7995
|
function Xf(e, t) {
|
|
7995
7996
|
return sl({
|
|
7996
7997
|
bundles: e,
|
|
@@ -8233,7 +8234,7 @@ function fg(e) {
|
|
|
8233
8234
|
}
|
|
8234
8235
|
var Yi = "PrimeReact", gg = 1;
|
|
8235
8236
|
function vg(e, t, n) {
|
|
8236
|
-
const o =
|
|
8237
|
+
const o = en(e.map((p) => p.manifest)), i = e.flatMap((p) => p.descriptors ?? []), r = new Set(i.map((p) => p.component)), s = e.flatMap((p) => p.manifest.components.map((m) => ({
|
|
8237
8238
|
component: En(p.manifest.name, m),
|
|
8238
8239
|
displayName: m,
|
|
8239
8240
|
properties: []
|
|
@@ -8321,7 +8322,7 @@ var zo = "Cratis.Icons.Lucide", yg = {
|
|
|
8321
8322
|
Ar,
|
|
8322
8323
|
...Ng,
|
|
8323
8324
|
Cg
|
|
8324
|
-
], Tg = Pt.map((e) => e.manifest), cy = wr(Pt), dy =
|
|
8325
|
+
], Tg = Pt.map((e) => e.manifest), cy = wr(Pt), dy = en(Tg), uy = Pt.flatMap((e) => e.themes ?? []);
|
|
8325
8326
|
function Ig(e) {
|
|
8326
8327
|
const t = Is(e).map((i) => i.name), n = Qo(e, dt.Styling).map((i) => i.name), o = Qo(e, dt.Blueprint)[0];
|
|
8327
8328
|
return o ? [
|
|
@@ -8388,7 +8389,7 @@ function Ka(e, t) {
|
|
|
8388
8389
|
requiredBy: n.filter((d) => i.packages.includes(d.name) && d.dependencies.some((p) => p.name === c)).map((d) => d.name)
|
|
8389
8390
|
}] : [];
|
|
8390
8391
|
}),
|
|
8391
|
-
collisions: xg(s,
|
|
8392
|
+
collisions: xg(s, en(n)),
|
|
8392
8393
|
compatibleThemes: Pg(s, t.flatMap((c) => c.themes ?? [])),
|
|
8393
8394
|
layout: r,
|
|
8394
8395
|
isValid: Es(i)
|
|
@@ -8426,7 +8427,7 @@ function py(e, t = Pt, n, o) {
|
|
|
8426
8427
|
}
|
|
8427
8428
|
function Ag(e, t) {
|
|
8428
8429
|
const n = no(e), o = mo(e, {
|
|
8429
|
-
kind:
|
|
8430
|
+
kind: Vt.Screen,
|
|
8430
8431
|
name: ge
|
|
8431
8432
|
}), i = e.instanceContributions.length > 0 ? pr(o, e.instanceContributions, t) : void 0;
|
|
8432
8433
|
return {
|
|
@@ -8593,15 +8594,15 @@ var vy = {
|
|
|
8593
8594
|
[W.Canvas]: rc
|
|
8594
8595
|
}, qg = {
|
|
8595
8596
|
text: ml,
|
|
8596
|
-
button:
|
|
8597
|
+
button: Wt,
|
|
8597
8598
|
card: Nl,
|
|
8598
8599
|
data: Il,
|
|
8599
8600
|
action: gl,
|
|
8600
8601
|
section: jl,
|
|
8601
8602
|
navigate: Cl,
|
|
8602
|
-
title:
|
|
8603
|
+
title: Ut,
|
|
8603
8604
|
table: pt,
|
|
8604
|
-
summary:
|
|
8605
|
+
summary: fn,
|
|
8605
8606
|
field: Tr,
|
|
8606
8607
|
code: kl,
|
|
8607
8608
|
file: An,
|
|
@@ -8613,34 +8614,34 @@ var vy = {
|
|
|
8613
8614
|
floatLabel: Wl,
|
|
8614
8615
|
iconField: ci,
|
|
8615
8616
|
dropdown: ei,
|
|
8616
|
-
multiSelect:
|
|
8617
|
+
multiSelect: gn,
|
|
8617
8618
|
listBox: Ir,
|
|
8618
8619
|
selectButton: Be,
|
|
8619
8620
|
checkbox: ti,
|
|
8620
8621
|
multiStateCheckbox: Hl,
|
|
8621
|
-
radioButton:
|
|
8622
|
+
radioButton: bn,
|
|
8622
8623
|
toggleSwitch: Rr,
|
|
8623
8624
|
slider: Mn,
|
|
8624
8625
|
rating: Ql,
|
|
8625
8626
|
knob: zl,
|
|
8626
8627
|
calendar: Xo,
|
|
8627
|
-
colorPicker:
|
|
8628
|
+
colorPicker: vn,
|
|
8628
8629
|
chips: Ot,
|
|
8629
8630
|
autoComplete: ci,
|
|
8630
8631
|
treeSelect: _n,
|
|
8631
|
-
editor:
|
|
8632
|
+
editor: mn,
|
|
8632
8633
|
fileUpload: Ol,
|
|
8633
|
-
splitButton:
|
|
8634
|
+
splitButton: un,
|
|
8634
8635
|
speedDial: Pl,
|
|
8635
8636
|
buttonGroup: Be,
|
|
8636
8637
|
dataTable: pt,
|
|
8637
8638
|
dataView: ui,
|
|
8638
8639
|
dataScroller: Zl,
|
|
8639
8640
|
tree: _n,
|
|
8640
|
-
treeTable:
|
|
8641
|
+
treeTable: yn,
|
|
8641
8642
|
timeline: El,
|
|
8642
8643
|
paginator: hl,
|
|
8643
|
-
orderList:
|
|
8644
|
+
orderList: gn,
|
|
8644
8645
|
pickList: wl,
|
|
8645
8646
|
organizationChart: ql,
|
|
8646
8647
|
chart: Sr,
|
|
@@ -8648,24 +8649,24 @@ var vy = {
|
|
|
8648
8649
|
accordion: _l,
|
|
8649
8650
|
fieldset: bl,
|
|
8650
8651
|
divider: Be,
|
|
8651
|
-
splitter:
|
|
8652
|
+
splitter: pn,
|
|
8652
8653
|
scrollPanel: xl,
|
|
8653
8654
|
tabView: ii,
|
|
8654
8655
|
toolbar: ec,
|
|
8655
|
-
stepper:
|
|
8656
|
+
stepper: wn,
|
|
8656
8657
|
dialog: mt,
|
|
8657
|
-
confirmDialog:
|
|
8658
|
+
confirmDialog: hn,
|
|
8658
8659
|
overlayPanel: ac,
|
|
8659
|
-
sidebar:
|
|
8660
|
+
sidebar: pn,
|
|
8660
8661
|
tooltip: Sl,
|
|
8661
8662
|
menu: st,
|
|
8662
8663
|
menubar: st,
|
|
8663
|
-
breadcrumb:
|
|
8664
|
+
breadcrumb: un,
|
|
8664
8665
|
tabMenu: ii,
|
|
8665
|
-
steps:
|
|
8666
|
-
tieredMenu:
|
|
8666
|
+
steps: wn,
|
|
8667
|
+
tieredMenu: yn,
|
|
8667
8668
|
panelMenu: yo,
|
|
8668
|
-
contextMenu:
|
|
8669
|
+
contextMenu: Wt,
|
|
8669
8670
|
megaMenu: ui,
|
|
8670
8671
|
dock: Be,
|
|
8671
8672
|
message: Cr,
|
|
@@ -8681,16 +8682,16 @@ var vy = {
|
|
|
8681
8682
|
progressBar: Fl,
|
|
8682
8683
|
progressSpinner: di,
|
|
8683
8684
|
skeleton: Jl,
|
|
8684
|
-
scrollTop:
|
|
8685
|
+
scrollTop: un,
|
|
8685
8686
|
blockUI: li,
|
|
8686
|
-
inplace:
|
|
8687
|
+
inplace: mn,
|
|
8687
8688
|
terminal: Xl,
|
|
8688
8689
|
page: An,
|
|
8689
8690
|
dataPage: pt,
|
|
8690
|
-
formElement:
|
|
8691
|
+
formElement: fn,
|
|
8691
8692
|
singleResult: Al,
|
|
8692
8693
|
queryInputForm: oi,
|
|
8693
|
-
commandForm:
|
|
8694
|
+
commandForm: fn,
|
|
8694
8695
|
observableDataTable: pt,
|
|
8695
8696
|
inputTextField: ri,
|
|
8696
8697
|
numberField: ai,
|
|
@@ -8699,23 +8700,23 @@ var vy = {
|
|
|
8699
8700
|
dropdownField: ei,
|
|
8700
8701
|
sliderField: Mn,
|
|
8701
8702
|
calendarField: Xo,
|
|
8702
|
-
colorPickerField:
|
|
8703
|
-
multiSelectField:
|
|
8703
|
+
colorPickerField: vn,
|
|
8704
|
+
multiSelectField: gn,
|
|
8704
8705
|
chipsField: Ot,
|
|
8705
|
-
radioButtonField:
|
|
8706
|
-
radioGroupField:
|
|
8707
|
-
confirmationDialog:
|
|
8706
|
+
radioButtonField: bn,
|
|
8707
|
+
radioGroupField: bn,
|
|
8708
|
+
confirmationDialog: hn,
|
|
8708
8709
|
busyIndicatorDialog: di,
|
|
8709
8710
|
commandDialog: mt,
|
|
8710
|
-
stepperCommandDialog:
|
|
8711
|
+
stepperCommandDialog: wn,
|
|
8711
8712
|
icon: xr,
|
|
8712
|
-
errorBoundary:
|
|
8713
|
-
objectContentEditor:
|
|
8714
|
-
objectNavigationalBar:
|
|
8713
|
+
errorBoundary: hn,
|
|
8714
|
+
objectContentEditor: mn,
|
|
8715
|
+
objectNavigationalBar: yn,
|
|
8715
8716
|
schemaEditor: ni,
|
|
8716
8717
|
timeMachine: yl,
|
|
8717
8718
|
filterPanel: oi,
|
|
8718
|
-
toolbarButton:
|
|
8719
|
+
toolbarButton: Wt,
|
|
8719
8720
|
toolbarGroup: Be,
|
|
8720
8721
|
toolbarSeparator: Be,
|
|
8721
8722
|
appShell: Fn,
|
|
@@ -8723,22 +8724,22 @@ var vy = {
|
|
|
8723
8724
|
topbar: st,
|
|
8724
8725
|
menuItem: $l,
|
|
8725
8726
|
footer: Be,
|
|
8726
|
-
rightPanel:
|
|
8727
|
+
rightPanel: pn,
|
|
8727
8728
|
configPanel: ni,
|
|
8728
|
-
pageHeader:
|
|
8729
|
+
pageHeader: Ut,
|
|
8729
8730
|
mask: li,
|
|
8730
8731
|
logo: Yl,
|
|
8731
8732
|
userMenu: oc,
|
|
8732
|
-
themeSwitcher:
|
|
8733
|
+
themeSwitcher: vn,
|
|
8733
8734
|
layoutModeSwitcher: Fn,
|
|
8734
|
-
arcPageHeader:
|
|
8735
|
+
arcPageHeader: Ut
|
|
8735
8736
|
}, Gg = [
|
|
8736
8737
|
[/dialog/i, mt],
|
|
8737
8738
|
[/table|grid/i, pt],
|
|
8738
8739
|
[/menu|bar$/i, st],
|
|
8739
8740
|
[/chart/i, Sr],
|
|
8740
8741
|
[/field|input/i, Tr],
|
|
8741
|
-
[/button/i,
|
|
8742
|
+
[/button/i, Wt],
|
|
8742
8743
|
[/image|media/i, Nr],
|
|
8743
8744
|
[/list/i, Ir],
|
|
8744
8745
|
[/panel/i, bo],
|
|
@@ -8750,7 +8751,7 @@ var vy = {
|
|
|
8750
8751
|
[kr.manifest.name]: Rr,
|
|
8751
8752
|
[Er.manifest.name]: Pr,
|
|
8752
8753
|
[fr.manifest.name]: yo,
|
|
8753
|
-
[Ar.manifest.name]:
|
|
8754
|
+
[Ar.manifest.name]: Ut,
|
|
8754
8755
|
[Fr.manifest.name]: Ul
|
|
8755
8756
|
}, Jg = Tl, by = {
|
|
8756
8757
|
layout: (e) => {
|
|
@@ -8844,7 +8845,7 @@ export {
|
|
|
8844
8845
|
Bm as isLegacyDefaultWindow,
|
|
8845
8846
|
os as isObjectWithFields,
|
|
8846
8847
|
ev as isPrimitiveList,
|
|
8847
|
-
|
|
8848
|
+
ln as isRecord,
|
|
8848
8849
|
iv as isStringMap,
|
|
8849
8850
|
Ko as isStructured,
|
|
8850
8851
|
nv as movedItem,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cratis/event-models",
|
|
3
|
-
"version": "0.205.
|
|
3
|
+
"version": "0.205.3",
|
|
4
4
|
"description": "The Cratis event model board as a configurable React component.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Cratis",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"@cratis/components": "^4.26.2",
|
|
70
70
|
"@cratis/fundamentals": "^7.22.0",
|
|
71
|
-
"@cratis/scene": "^0.205.
|
|
71
|
+
"@cratis/scene": "^0.205.3",
|
|
72
72
|
"@cratis/scene.blueprint.approvals": "^4.12.0",
|
|
73
73
|
"@cratis/scene.blueprint.components": "^4.12.0",
|
|
74
74
|
"@cratis/scene.blueprint.crm": "^4.12.0",
|
|
@@ -96,18 +96,18 @@
|
|
|
96
96
|
"devDependencies": {
|
|
97
97
|
"@cratis/components": "^4.26.2",
|
|
98
98
|
"@cratis/fundamentals": "^7.22.0",
|
|
99
|
-
"@cratis/scene": "0.205.
|
|
100
|
-
"@cratis/scene.blueprint.approvals": "4.
|
|
101
|
-
"@cratis/scene.blueprint.components": "4.
|
|
102
|
-
"@cratis/scene.blueprint.crm": "4.
|
|
103
|
-
"@cratis/scene.blueprint.default": "4.
|
|
104
|
-
"@cratis/scene.blueprint.ticketing": "4.
|
|
105
|
-
"@cratis/scene.components": "4.
|
|
106
|
-
"@cratis/scene.engine": "4.
|
|
107
|
-
"@cratis/scene.model": "4.
|
|
108
|
-
"@cratis/scene.primereact": "4.
|
|
109
|
-
"@cratis/scene.react": "4.
|
|
110
|
-
"@cratis/scene.tailwind": "4.
|
|
99
|
+
"@cratis/scene": "0.205.3",
|
|
100
|
+
"@cratis/scene.blueprint.approvals": "4.67.0",
|
|
101
|
+
"@cratis/scene.blueprint.components": "4.67.0",
|
|
102
|
+
"@cratis/scene.blueprint.crm": "4.67.0",
|
|
103
|
+
"@cratis/scene.blueprint.default": "4.67.0",
|
|
104
|
+
"@cratis/scene.blueprint.ticketing": "4.67.0",
|
|
105
|
+
"@cratis/scene.components": "4.67.0",
|
|
106
|
+
"@cratis/scene.engine": "4.67.0",
|
|
107
|
+
"@cratis/scene.model": "4.67.0",
|
|
108
|
+
"@cratis/scene.primereact": "4.67.0",
|
|
109
|
+
"@cratis/scene.react": "4.67.0",
|
|
110
|
+
"@cratis/scene.tailwind": "4.67.0",
|
|
111
111
|
"@primereact/styles": "^11.2.0",
|
|
112
112
|
"chart.js": "4.5.1",
|
|
113
113
|
"lucide-react": "1.52.0",
|