@vectoriox/iox-builder 11.41.0 → 11.42.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/fesm2022/vectoriox-iox-builder.mjs +331 -221
- package/fesm2022/vectoriox-iox-builder.mjs.map +1 -1
- package/index.d.ts +102 -49
- package/package.json +2 -2
|
@@ -17,7 +17,7 @@ import { TooltipModule } from 'primeng/tooltip';
|
|
|
17
17
|
import * as i20 from 'primeng/dialog';
|
|
18
18
|
import { DialogModule } from 'primeng/dialog';
|
|
19
19
|
import * as i2$1 from '@vectoriox/iox-ui';
|
|
20
|
-
import { nodeCssId, needsGroupName, resolveBoundValue, isBoundStyleProp, STRUCTURAL_STATES as STRUCTURAL_STATES$1, VALIDATION_STATES as VALIDATION_STATES$1, VALIDATION_STATE_CLASS as VALIDATION_STATE_CLASS$1, DEFAULT_WIDTH_BY_TYPE, TEXT_DIRECTION_KEY, TEXT_ALIGN_KEY, TextAlign, COLOR_SCHEME_TRAIT, COLOR_SCHEMES, ColorScheme, LinkType, MAX_LINES_KEY, A11yTrait, BREAKPOINTS,
|
|
20
|
+
import { Breakpoint, setOverride, nodeCssId, needsGroupName, resolveBoundValue, isBoundStyleProp, STRUCTURAL_STATES as STRUCTURAL_STATES$1, VALIDATION_STATES as VALIDATION_STATES$1, VALIDATION_STATE_CLASS as VALIDATION_STATE_CLASS$1, DEFAULT_WIDTH_BY_TYPE, TEXT_DIRECTION_KEY, TEXT_ALIGN_KEY, TextAlign, COLOR_SCHEME_TRAIT, COLOR_SCHEMES, ColorScheme, LinkType, MAX_LINES_KEY, A11yTrait, BREAKPOINTS, withSchemeInk, stripSuppressedProps, DeclarationContext, planPartRule, gateHoverRule, planResponsiveRules, resolveStyleProps, planStateRule, splitOuterProps, OUTER_STYLE_PROPS, siteColumnOf, compileTokenCssBlocks, catalogFontId, fontsForTokens, GOOGLE_FONTS_FILE_ORIGIN, googleFontHref, compileDeclarations, isLastEmittedStateKey, wrapInBreakpointQuery, BreakpointQueryKind, NEW_NODE_STYLE_DEFAULTS, defaultElementStyleFor, applyElementStyle, planDataSource, dataSourcePlanToRequest, normalizeCollectionResult, resolveRepeaterItems, getByPath, computeRelative, PROGRESS_ATTRIBUTE, interactionMarkerAttributes, cascadeChain, attachScrollProgress, ContextStore, ENTRANCE_ACTION_TYPES, EXIT_ACTION_TYPES, ComponentInstanceRegistryService, syncInteractionMarkers, entranceStartsHidden, isActionEnabled, restoreCountUp, SCROLL_PROGRESS_TRIGGER, armInteractionCounts, splitPressFeedback, isHoverPointer, isContextAction, contextActionEffect, resolveContextValue, effectiveActionType, INTERACTION_HIDDEN_ATTRIBUTE, COUNT_UP_ACTION, motionAllowed, reducedEntranceRun, settleInteraction, settleModeFor, SettleMode, playInteraction, entranceDelay, repeatedRowIndex, resolveInteractionEasing, entrancePreStateStyle, buildInteractionKeyframes, showToast, applyBoundStyle, safeSetInput, IS_PREVIEW, declaredInputNames, emptyImagePlaceholder, syncNodeDesignClasses, nodeTraitValue, syncNodeA11yAttributes, nodeA11yAttributes, colorSchemeOf, withStateTransitions, composeVirtualTraits, stateNamesIn, partClassName, applyBoundStyles, switchElementStyle, releaseElementStyle, countOverrides, breakpointDef, breakpointForWidth, FormRenderState, collectContextSlotKeys, withContextSlots, needsAccessibleName, resolveInputs, setInputOverride, barReserveClass, compilePageStyle, nodeUsesContext, attachTooltips, showToastDesign, TOOLTIP_ATTRIBUTE, hidingHeadersIn, HeaderRuntime, inkFollowingHeadersIn, HeaderInkRuntime, isScrolled, SCROLLED_ATTRIBUTE, syncSubmitButtons, buttonBlockHref, layerFrame, rectInLayer, placeFloating, FloatingAlign, popoverSide, bootSlider, IoxPageModule, PALETTE_PRESETS, elementStyleById, PART_CLASS_NAMES } from '@vectoriox/iox-ui';
|
|
21
21
|
export { ComponentInstanceRegistryService, VIRTUAL_TRAIT_KEYS, composeVirtualTraits } from '@vectoriox/iox-ui';
|
|
22
22
|
import { StructureEdit, isAccordionPart, isDisclosurePart, isSliderPart, isTabsPart, isSegmentedPart, structureRefusal, StructureRefusal, SegmentedRole, SEGMENTED_MAX_OPTIONS, AccordionRole, SEGMENTED_MIN_OPTIONS, isExclusiveItemPart, TabsRole, ITEM_OPEN_STATE, readStyle, isSegmentedRoot, segmentedDefaultOn, segmentedOptions, isTabsRoot, isTabsFromContent, tabsTriggers, isAccordionRoot, isAccordionFromContent, accordionItems, initialAccordionOpen, accordionBehaviour, exclusiveItemLabel, exclusiveRootOf, tabTriggerOf, tabLabel, removeTabPair, tabPanelOf, tabsListOf, tabsPanelsOf, nextTabKey, CompositeBehaviourTrait, ACCORDION_DEFAULT_ONS, TabsBehaviourTrait, TABS_ACTIVATE_ONS, TABS_ORIENTATIONS, MarqueeTrait, MarqueeSpeed, MarqueeDirection, PopupTrait, PopupKind, PopupForm, PopupArrive, PopupAgain, DIALOG_MODAL_TRAIT, DisclosureRole, isExclusiveTrigger, onCompositeItemState, isCompositeItemOn, runAccountAction, ShopActionType, runShopAction, runCompositeItemAction, shouldScrollToItem, rowIndexOf as rowIndexOf$1, slideIndexForRow, isMarqueeRoot, compositeScopeId, compositeRowKeys, isExclusiveRoot, ExclusiveRuntime, exclusiveDefaultOf, exclusiveLabelOf, exclusiveBehaviourOf, exclusiveKindOf, compositeKindOfRole, AccordionRuntime, isToggleKind, MarqueeRuntime, closestAccordionItem, isAnyCompositeRoot, SceneRole, isExclusiveList, buildCardRecipe, buildBadge, buildChip, buildAccordionRecipe, buildDisclosureRecipe, buildTabsRecipe, buildSegmentedRecipe, buildLightboxRecipe, buildMarqueeRecipe, buildCounterRecipe, buildReadingBarRecipe, SHOP_RECIPES, ShopRecipe, ACCOUNT_RECIPES, AccountRecipe, NO_ELEMENT_STYLE, CompositeKind, PopupRole, SliderRole, accordionItemLabel, segmentedOptionLabel, isExclusivePanels, isLockedPart, attachShop, ShopRole, attachAccount, AccountRole, accordionRootOf, accordionItemOf, addAccordionItem, addTabPair, segmentedAddRefusal, addSegmentedOption, isCompositeItem, accordionHeadingLevel, isCompositePanel, isCompositeTrigger, popupFormOf, splitSliderChildren, hasSliderParts, buildConsentRecipe, SLIDE_CAPTION_TRAIT, SLIDER_SCROLL_PLAYS_TRAIT, SLIDER_PLACEMENT_TRAIT, SliderPlacement, SliderFlag } from '@vectoriox/iox-ui/composite-core';
|
|
23
23
|
import { formContentInHost, isInteractiveHost, findFormContentInHosts, formPresetById, presetFormActions, busyWord, fieldKindWords, channelWords, FORM_CHANNEL_ROLE, channelHref, channelOpensNewTab, FORM_ACTIONS_ROLE, SUBMIT_BUTTON_NODE_TYPE, FORM_NODE_TYPE, FIELD_NODE_TYPE, formWordIn, DEFAULT_BUSY_WORDS, FORM_AFTER_SEND_TRAIT, FormAfterSend, baselineFormWords } from '@vectoriox/iox-ui/forms-core';
|
|
@@ -39,6 +39,114 @@ import * as i18 from 'primeng/api';
|
|
|
39
39
|
import { planVideo, VideoKind, VideoSource, VIDEO_PROVIDER_LABEL, VideoTrait, VideoMode } from '@vectoriox/iox-ui/media-core';
|
|
40
40
|
import { ConsentCategory } from '@vectoriox/iox-ui/consent-core';
|
|
41
41
|
|
|
42
|
+
const GRID = (columns) => ({ display: 'grid', gridTemplateColumns: columns, gap: '24px', width: '100%' });
|
|
43
|
+
const ONE_COLUMN = { gridTemplateColumns: 'repeat(1, minmax(0, 1fr))' };
|
|
44
|
+
const LAYOUT_PRESETS = Object.freeze([
|
|
45
|
+
{
|
|
46
|
+
id: 'stack', name: 'Stack', icon: 'ph-thin ph-rows',
|
|
47
|
+
description: 'Vertical flow with even spacing.',
|
|
48
|
+
container: { display: 'flex', flexDirection: 'column', gap: '24px', width: '100%' },
|
|
49
|
+
childCount: 2,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: 'two-columns', name: 'Two columns', icon: 'ph-thin ph-columns',
|
|
53
|
+
description: 'Side by side; stacks on a phone.',
|
|
54
|
+
container: GRID('repeat(2, minmax(0, 1fr))'),
|
|
55
|
+
containerResponsive: { [Breakpoint.Small]: ONE_COLUMN },
|
|
56
|
+
childCount: 2,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
id: 'three-columns', name: 'Three columns', icon: 'ph-thin ph-columns',
|
|
60
|
+
description: 'Three across; two on a tablet, one on a phone.',
|
|
61
|
+
container: GRID('repeat(3, minmax(0, 1fr))'),
|
|
62
|
+
containerResponsive: {
|
|
63
|
+
[Breakpoint.Tablet]: { gridTemplateColumns: 'repeat(2, minmax(0, 1fr))' },
|
|
64
|
+
[Breakpoint.Small]: ONE_COLUMN,
|
|
65
|
+
},
|
|
66
|
+
childCount: 3,
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: 'sidebar-main', name: 'Sidebar + main', icon: 'ph-thin ph-layout',
|
|
70
|
+
description: 'Fixed sidebar beside flexible content; the sidebar drops under it on a tablet.',
|
|
71
|
+
container: GRID('280px minmax(0, 1fr)'),
|
|
72
|
+
containerResponsive: { [Breakpoint.Tablet]: ONE_COLUMN },
|
|
73
|
+
childCount: 2,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
id: 'card-grid', name: 'Card grid', icon: 'ph-thin ph-squares-four',
|
|
77
|
+
description: 'A grid of cards: three, then two, then one.',
|
|
78
|
+
container: GRID('repeat(3, minmax(0, 1fr))'),
|
|
79
|
+
containerResponsive: {
|
|
80
|
+
[Breakpoint.Tablet]: { gridTemplateColumns: 'repeat(2, minmax(0, 1fr))' },
|
|
81
|
+
[Breakpoint.Small]: ONE_COLUMN,
|
|
82
|
+
},
|
|
83
|
+
childCount: 6,
|
|
84
|
+
child: { minHeight: '160px' },
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: 'split-hero', name: 'Split hero', icon: 'ph-thin ph-square-split-horizontal',
|
|
88
|
+
description: 'Text beside media; on a phone the media moves above the text.',
|
|
89
|
+
container: GRID('minmax(0, 1.2fr) minmax(0, 1fr)'),
|
|
90
|
+
containerResponsive: { [Breakpoint.Small]: ONE_COLUMN },
|
|
91
|
+
childCount: 2,
|
|
92
|
+
// On a phone the MEDIA (child 2) leads — CSS order only, the DOM order never changes.
|
|
93
|
+
childResponsive: [{ [Breakpoint.Small]: { order: '1' } }, { [Breakpoint.Small]: { order: '0' } }],
|
|
94
|
+
},
|
|
95
|
+
]);
|
|
96
|
+
/** The chrome key of a preset's name — the empty-page starter speaks the admin's language (iox-ui#163). */
|
|
97
|
+
const layoutPresetNameKey = (id) => `builder.chrome.layoutName.${id}`;
|
|
98
|
+
/** The chrome key of a preset's one-line description. */
|
|
99
|
+
const layoutPresetDescriptionKey = (id) => `builder.chrome.layoutDesc.${id}`;
|
|
100
|
+
/** Every preset's English words by chrome key — spread into `BUILDER_CHROME_EN`, the hosts' translation contract. */
|
|
101
|
+
const LAYOUT_PRESET_WORDS_EN = Object.freeze(Object.fromEntries(LAYOUT_PRESETS.flatMap(def => [[layoutPresetNameKey(def.id), def.name], [layoutPresetDescriptionKey(def.id), def.description]])));
|
|
102
|
+
/** Set a style trait's value on a node built from a component config. */
|
|
103
|
+
function setStyleTrait(node, name, value) {
|
|
104
|
+
for (const group of node.styleTraits ?? []) {
|
|
105
|
+
const trait = group.traits.find(t => t.name === name);
|
|
106
|
+
if (trait) {
|
|
107
|
+
trait.default = value;
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
function applyResponsive(node, layers) {
|
|
113
|
+
if (!layers)
|
|
114
|
+
return;
|
|
115
|
+
let responsive = node.responsive;
|
|
116
|
+
for (const [bp, styles] of Object.entries(layers)) {
|
|
117
|
+
for (const [prop, value] of Object.entries(styles ?? {})) {
|
|
118
|
+
responsive = setOverride(responsive, bp, prop, value);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
node.responsive = responsive;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Build a preset's node tree. `createNode` makes an empty node of a type (the component registry in
|
|
125
|
+
* the builder) — passed in so this stays pure and testable.
|
|
126
|
+
*
|
|
127
|
+
* @returns the container node, or `null` when the container type can't be created.
|
|
128
|
+
*/
|
|
129
|
+
function buildLayoutPreset(def, createNode) {
|
|
130
|
+
const container = createNode('Container');
|
|
131
|
+
if (!container)
|
|
132
|
+
return null;
|
|
133
|
+
for (const [prop, value] of Object.entries(def.container))
|
|
134
|
+
setStyleTrait(container, prop, value);
|
|
135
|
+
applyResponsive(container, def.containerResponsive);
|
|
136
|
+
const children = [];
|
|
137
|
+
for (let i = 0; i < def.childCount; i++) {
|
|
138
|
+
const child = createNode('Container');
|
|
139
|
+
if (!child)
|
|
140
|
+
continue;
|
|
141
|
+
for (const [prop, value] of Object.entries(def.child ?? {}))
|
|
142
|
+
setStyleTrait(child, prop, value);
|
|
143
|
+
applyResponsive(child, def.childResponsive?.[i]);
|
|
144
|
+
children.push(child);
|
|
145
|
+
}
|
|
146
|
+
container.children = children;
|
|
147
|
+
return container;
|
|
148
|
+
}
|
|
149
|
+
|
|
42
150
|
/**
|
|
43
151
|
* Canvas data preview used to come from host-provided content services (IOX_CONTENT_SERVICE /
|
|
44
152
|
* IOX_SHOP_SERVICE), whose `getContent(contentType, orgId)` hit the ADMIN resources endpoint and
|
|
@@ -180,6 +288,11 @@ const BUILDER_CHROME_EN = Object.freeze({
|
|
|
180
288
|
'builder.chrome.layerRename': 'Rename',
|
|
181
289
|
'builder.chrome.layerDuplicate': 'Duplicate',
|
|
182
290
|
'builder.chrome.layerDelete': 'Delete',
|
|
291
|
+
// The empty-page starter (B4) — builder chrome, so the ADMIN's words and direction (iox-ui#163).
|
|
292
|
+
'builder.chrome.startTitle': 'Start with a layout',
|
|
293
|
+
'builder.chrome.startSub': 'Each one already adapts to tablet and phone. You can edit or take it apart afterwards.',
|
|
294
|
+
'builder.chrome.startSingle': 'Or start from a single element',
|
|
295
|
+
...LAYOUT_PRESET_WORDS_EN,
|
|
183
296
|
});
|
|
184
297
|
/** The layer tree's eye-slash title on a part hidden at rest (a closed drawer, R2). */
|
|
185
298
|
const HIDDEN_AT_REST_LABEL_KEY = 'builder.chrome.hiddenAtRest';
|
|
@@ -1000,6 +1113,126 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
1000
1113
|
type: Injectable
|
|
1001
1114
|
}] });
|
|
1002
1115
|
|
|
1116
|
+
/** The binding prop that names the data source a list (Repeater, SliderContainer) repeats. */
|
|
1117
|
+
const SOURCE_BINDING_PROP = 'source';
|
|
1118
|
+
/**
|
|
1119
|
+
* A node's `source` binding — the canonical carrier of what a list repeats (the composer writes it, the engine reads it
|
|
1120
|
+
* first: `repeaterSource`). Its value is the ALIAS itself, never data, so the render applies it the moment the node is
|
|
1121
|
+
* drawn (vectoriox/iox-ui#162): the canvas once took it from the Bindings PANEL alone, and Preview, which mounts no
|
|
1122
|
+
* panel, drew a composed list unsourced — one empty card. Null when the node has no source binding.
|
|
1123
|
+
*/
|
|
1124
|
+
function sourceBindingOf(node) {
|
|
1125
|
+
const binding = node?.bindings?.find(b => b?.prop === SOURCE_BINDING_PROP && !!b.source);
|
|
1126
|
+
return binding ? { source: binding.source, path: binding.path ?? '' } : null;
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
/** No address params — design time: a route filter falls back to `defaultId`, a query filter to its `defaultValue`. */
|
|
1130
|
+
const NO_PAGE_PARAMS = Object.freeze({ route: Object.freeze({}), query: Object.freeze({}) });
|
|
1131
|
+
/** How a PAGE binding (one bound outside any list row) reads its source's value. */
|
|
1132
|
+
var PageBindingRead;
|
|
1133
|
+
(function (PageBindingRead) {
|
|
1134
|
+
/** As the SSR engine's `resolveProps`: path + pipes on the source's value itself. A list read outside a row
|
|
1135
|
+
* answers nothing, so the part keeps its own default. Preview reads this way — it must draw what the site draws. */
|
|
1136
|
+
PageBindingRead["AsEngine"] = "asEngine";
|
|
1137
|
+
/** The editing canvas's design aid: a list source is read as its FIRST row, so a part bound to a list outside a
|
|
1138
|
+
* Repeater still shows a real value while the owner designs it. */
|
|
1139
|
+
PageBindingRead["FirstRow"] = "firstRow";
|
|
1140
|
+
})(PageBindingRead || (PageBindingRead = {}));
|
|
1141
|
+
/**
|
|
1142
|
+
* ONE value rule for a page binding — `undefined` means "leave the part as it is". `AsEngine` mirrors the engine's
|
|
1143
|
+
* `resolveProps` (a null or undefined value is not written); `FirstRow` is the canvas reading the Bindings panel did
|
|
1144
|
+
* before it delegated here. Both go through the shared `resolveBoundValue` (path, then pipes).
|
|
1145
|
+
*/
|
|
1146
|
+
function pageBindingValue(raw, binding, read) {
|
|
1147
|
+
const data = read === PageBindingRead.FirstRow && Array.isArray(raw) ? raw[0] : raw;
|
|
1148
|
+
if (data == null)
|
|
1149
|
+
return undefined;
|
|
1150
|
+
const value = resolveBoundValue(data, binding);
|
|
1151
|
+
return value == null ? undefined : value;
|
|
1152
|
+
}
|
|
1153
|
+
/** The trait a SliderContainer stores what it repeats in (a Repeater's `source` binding is canonical, #162). */
|
|
1154
|
+
const SOURCE_PATH_PROP = 'sourcePath';
|
|
1155
|
+
function traitDefault(node, name) {
|
|
1156
|
+
const value = node.traits?.find(t => t.name === name)?.default;
|
|
1157
|
+
return typeof value === 'string' ? value : '';
|
|
1158
|
+
}
|
|
1159
|
+
/**
|
|
1160
|
+
* The aliases a list's ROWS bind to — the engine's row scope (`{ [source]: item, [itemAlias]: item }`): the source it
|
|
1161
|
+
* repeats, and the item alias named after the repeated path's last segment (`product.gallery` → `gallery`). Empty for a
|
|
1162
|
+
* node that repeats nothing. Reads the `source` binding first, then the `source` / `sourcePath` traits — the engine's
|
|
1163
|
+
* `repeaterSource` / `repeaterItemAlias` order.
|
|
1164
|
+
*/
|
|
1165
|
+
function listScopeAliases(node) {
|
|
1166
|
+
const bound = sourceBindingOf(node);
|
|
1167
|
+
const source = bound?.source ?? traitDefault(node, SOURCE_BINDING_PROP);
|
|
1168
|
+
const path = bound ? bound.path : traitDefault(node, SOURCE_PATH_PROP);
|
|
1169
|
+
return rowScopeAliases(source, path);
|
|
1170
|
+
}
|
|
1171
|
+
/**
|
|
1172
|
+
* The row scope of a list repeating `source` (over `path` inside it, if any): the source alias, and the item alias the
|
|
1173
|
+
* engine names after the path's last segment (`product.gallery` → `gallery`). A list component that already knows its
|
|
1174
|
+
* resolved `source` / `sourcePath` asks this; a node asks `listScopeAliases`.
|
|
1175
|
+
*/
|
|
1176
|
+
function rowScopeAliases(source, path = '') {
|
|
1177
|
+
if (!source)
|
|
1178
|
+
return [];
|
|
1179
|
+
const itemAlias = String(path ?? '').split('.').filter(Boolean).pop() || source;
|
|
1180
|
+
return itemAlias === source ? [source] : [source, itemAlias];
|
|
1181
|
+
}
|
|
1182
|
+
/** Is `binding` the ROW's to fill — its source one of the list's own aliases? */
|
|
1183
|
+
function isRowBinding(binding, scope) {
|
|
1184
|
+
return !!binding?.source && scope.aliases.has(binding.source);
|
|
1185
|
+
}
|
|
1186
|
+
/**
|
|
1187
|
+
* The value a row's copy carries for `binding`, `undefined` meaning "keep the template's": a row binding reads the
|
|
1188
|
+
* item (path + pipes); any other binding reads the page's value — never the item. A nested list's `source` binding
|
|
1189
|
+
* out of the row is the nested list's own to apply (#162), so it is never baked.
|
|
1190
|
+
*/
|
|
1191
|
+
function rowBindingValue(binding, item, scope) {
|
|
1192
|
+
if (!binding?.source)
|
|
1193
|
+
return undefined;
|
|
1194
|
+
if (isRowBinding(binding, scope))
|
|
1195
|
+
return item == null ? undefined : resolveBoundValue(item, binding);
|
|
1196
|
+
return binding.prop === SOURCE_BINDING_PROP ? undefined : scope.pageValue?.(binding);
|
|
1197
|
+
}
|
|
1198
|
+
/**
|
|
1199
|
+
* Every node inside a list's template → the aliases its enclosing lists own (nested lists add up). A binding to one of
|
|
1200
|
+
* them is the LIST's to apply per row (the Repeater writes row 1, its copies carry the rest), never the page's.
|
|
1201
|
+
*/
|
|
1202
|
+
function listOwnedAliases(nodes) {
|
|
1203
|
+
const owned = new Map();
|
|
1204
|
+
const mark = (children, aliases) => {
|
|
1205
|
+
for (const child of children ?? []) {
|
|
1206
|
+
const set = owned.get(child) ?? new Set();
|
|
1207
|
+
aliases.forEach(a => set.add(a));
|
|
1208
|
+
owned.set(child, set);
|
|
1209
|
+
const inner = listScopeAliases(child);
|
|
1210
|
+
mark(child.children, inner.length ? new Set([...set, ...inner]) : set);
|
|
1211
|
+
}
|
|
1212
|
+
};
|
|
1213
|
+
for (const node of nodes) {
|
|
1214
|
+
const aliases = listScopeAliases(node);
|
|
1215
|
+
if (aliases.length)
|
|
1216
|
+
mark(node.children, new Set([...(owned.get(node) ?? []), ...aliases]));
|
|
1217
|
+
}
|
|
1218
|
+
return owned;
|
|
1219
|
+
}
|
|
1220
|
+
/**
|
|
1221
|
+
* A node's PAGE bindings — the ones the page resolver writes: not a list's `source` binding (the render applies it,
|
|
1222
|
+
* #162), not one without a source, not one whose source is `skip`ped (an enclosing list's alias, a variable — the
|
|
1223
|
+
* context engine writes those).
|
|
1224
|
+
*/
|
|
1225
|
+
function pageBindingsOf(node, skip = new Set()) {
|
|
1226
|
+
return (node.bindings ?? []).filter(b => !!b?.source && b.prop !== SOURCE_BINDING_PROP && !skip.has(b.source));
|
|
1227
|
+
}
|
|
1228
|
+
/** Does any node of a list's template bind `alias` OUTSIDE the row — so its copies must be re-baked when it lands? */
|
|
1229
|
+
function templateReadsPageAlias(nodes, alias, scope) {
|
|
1230
|
+
if (!alias || scope.aliases.has(alias))
|
|
1231
|
+
return false;
|
|
1232
|
+
return (nodes ?? []).some(node => (node.bindings ?? []).some(b => b?.source === alias && b.prop !== SOURCE_BINDING_PROP)
|
|
1233
|
+
|| templateReadsPageAlias(node.children, alias, scope));
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1003
1236
|
/** A preview row's resolved `style:` bindings (its own colour block ground and ink), carried on the clone for the render
|
|
1004
1237
|
* directive to write on the row's element through iox-ui `applyBoundStyles` — a clone has no live ref to push into. */
|
|
1005
1238
|
const PREVIEW_BOUND_STYLES = '__boundStyles';
|
|
@@ -1015,8 +1248,12 @@ function previewBoundStyles(node) {
|
|
|
1015
1248
|
* but shares the original node's CSS class by setting `styleId = originalId`.
|
|
1016
1249
|
* This means all repeated preview rows point to the same CSS rule block as the
|
|
1017
1250
|
* template node — the style engine only needs one rule per logical slot.
|
|
1251
|
+
*
|
|
1252
|
+
* Which value a binding takes is the ROW SCOPE's (vectoriox/iox-ui#165, `rowBindingValue`): a binding to one of the
|
|
1253
|
+
* list's aliases reads `item`; any other reads the page's value through `scope.pageValue` — a copy is never reached by
|
|
1254
|
+
* the page resolver's pass, so the page value is baked in here, as row 1 gets it from the resolver.
|
|
1018
1255
|
*/
|
|
1019
|
-
function cloneNodesForItem(nodes, item) {
|
|
1256
|
+
function cloneNodesForItem(nodes, item, scope) {
|
|
1020
1257
|
return nodes.map(node => {
|
|
1021
1258
|
// Capture the CSS-owning id before clone
|
|
1022
1259
|
const cssId = node.styleId ?? node.id;
|
|
@@ -1030,10 +1267,11 @@ function cloneNodesForItem(nodes, item) {
|
|
|
1030
1267
|
clone.__previewClone = true;
|
|
1031
1268
|
if (clone.bindings?.length && item) {
|
|
1032
1269
|
for (const binding of clone.bindings) {
|
|
1033
|
-
// Path lookup AND pipes (UI "Filters")
|
|
1034
|
-
|
|
1035
|
-
//
|
|
1036
|
-
|
|
1270
|
+
// Path lookup AND pipes (UI "Filters") — on the item for a row binding, on the page's value otherwise.
|
|
1271
|
+
const value = rowBindingValue(binding, item, scope);
|
|
1272
|
+
// Out of the row and the page has no value (yet): the copy keeps the template's, as row 1 does.
|
|
1273
|
+
if (value === undefined && !isRowBinding(binding, scope))
|
|
1274
|
+
continue;
|
|
1037
1275
|
if (isBoundStyleProp(binding.prop)) {
|
|
1038
1276
|
const styles = (clone[PREVIEW_BOUND_STYLES] ??= {});
|
|
1039
1277
|
styles[binding.prop] = value;
|
|
@@ -1049,7 +1287,7 @@ function cloneNodesForItem(nodes, item) {
|
|
|
1049
1287
|
}
|
|
1050
1288
|
}
|
|
1051
1289
|
if (clone.children?.length) {
|
|
1052
|
-
clone.children = cloneNodesForItem(clone.children, item);
|
|
1290
|
+
clone.children = cloneNodesForItem(clone.children, item, scope);
|
|
1053
1291
|
}
|
|
1054
1292
|
return clone;
|
|
1055
1293
|
});
|
|
@@ -4135,95 +4373,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
4135
4373
|
args: [IOX_BUILDER_LABELS]
|
|
4136
4374
|
}] }] });
|
|
4137
4375
|
|
|
4138
|
-
/** The binding prop that names the data source a list (Repeater, SliderContainer) repeats. */
|
|
4139
|
-
const SOURCE_BINDING_PROP = 'source';
|
|
4140
|
-
/**
|
|
4141
|
-
* A node's `source` binding — the canonical carrier of what a list repeats (the composer writes it, the engine reads it
|
|
4142
|
-
* first: `repeaterSource`). Its value is the ALIAS itself, never data, so the render applies it the moment the node is
|
|
4143
|
-
* drawn (vectoriox/iox-ui#162): the canvas once took it from the Bindings PANEL alone, and Preview, which mounts no
|
|
4144
|
-
* panel, drew a composed list unsourced — one empty card. Null when the node has no source binding.
|
|
4145
|
-
*/
|
|
4146
|
-
function sourceBindingOf(node) {
|
|
4147
|
-
const binding = node?.bindings?.find(b => b?.prop === SOURCE_BINDING_PROP && !!b.source);
|
|
4148
|
-
return binding ? { source: binding.source, path: binding.path ?? '' } : null;
|
|
4149
|
-
}
|
|
4150
|
-
|
|
4151
|
-
/** No address params — design time: a route filter falls back to `defaultId`, a query filter to its `defaultValue`. */
|
|
4152
|
-
const NO_PAGE_PARAMS = Object.freeze({ route: Object.freeze({}), query: Object.freeze({}) });
|
|
4153
|
-
/** How a PAGE binding (one bound outside any list row) reads its source's value. */
|
|
4154
|
-
var PageBindingRead;
|
|
4155
|
-
(function (PageBindingRead) {
|
|
4156
|
-
/** As the SSR engine's `resolveProps`: path + pipes on the source's value itself. A list read outside a row
|
|
4157
|
-
* answers nothing, so the part keeps its own default. Preview reads this way — it must draw what the site draws. */
|
|
4158
|
-
PageBindingRead["AsEngine"] = "asEngine";
|
|
4159
|
-
/** The editing canvas's design aid: a list source is read as its FIRST row, so a part bound to a list outside a
|
|
4160
|
-
* Repeater still shows a real value while the owner designs it. */
|
|
4161
|
-
PageBindingRead["FirstRow"] = "firstRow";
|
|
4162
|
-
})(PageBindingRead || (PageBindingRead = {}));
|
|
4163
|
-
/**
|
|
4164
|
-
* ONE value rule for a page binding — `undefined` means "leave the part as it is". `AsEngine` mirrors the engine's
|
|
4165
|
-
* `resolveProps` (a null or undefined value is not written); `FirstRow` is the canvas reading the Bindings panel did
|
|
4166
|
-
* before it delegated here. Both go through the shared `resolveBoundValue` (path, then pipes).
|
|
4167
|
-
*/
|
|
4168
|
-
function pageBindingValue(raw, binding, read) {
|
|
4169
|
-
const data = read === PageBindingRead.FirstRow && Array.isArray(raw) ? raw[0] : raw;
|
|
4170
|
-
if (data == null)
|
|
4171
|
-
return undefined;
|
|
4172
|
-
const value = resolveBoundValue(data, binding);
|
|
4173
|
-
return value == null ? undefined : value;
|
|
4174
|
-
}
|
|
4175
|
-
/** The trait a SliderContainer stores what it repeats in (a Repeater's `source` binding is canonical, #162). */
|
|
4176
|
-
const SOURCE_PATH_PROP = 'sourcePath';
|
|
4177
|
-
function traitDefault(node, name) {
|
|
4178
|
-
const value = node.traits?.find(t => t.name === name)?.default;
|
|
4179
|
-
return typeof value === 'string' ? value : '';
|
|
4180
|
-
}
|
|
4181
|
-
/**
|
|
4182
|
-
* The aliases a list's ROWS bind to — the engine's row scope (`{ [source]: item, [itemAlias]: item }`): the source it
|
|
4183
|
-
* repeats, and the item alias named after the repeated path's last segment (`product.gallery` → `gallery`). Empty for a
|
|
4184
|
-
* node that repeats nothing. Reads the `source` binding first, then the `source` / `sourcePath` traits — the engine's
|
|
4185
|
-
* `repeaterSource` / `repeaterItemAlias` order.
|
|
4186
|
-
*/
|
|
4187
|
-
function listScopeAliases(node) {
|
|
4188
|
-
const bound = sourceBindingOf(node);
|
|
4189
|
-
const source = bound?.source ?? traitDefault(node, SOURCE_BINDING_PROP);
|
|
4190
|
-
if (!source)
|
|
4191
|
-
return [];
|
|
4192
|
-
const path = bound ? bound.path : traitDefault(node, SOURCE_PATH_PROP);
|
|
4193
|
-
const itemAlias = path.split('.').filter(Boolean).pop() || source;
|
|
4194
|
-
return itemAlias === source ? [source] : [source, itemAlias];
|
|
4195
|
-
}
|
|
4196
|
-
/**
|
|
4197
|
-
* Every node inside a list's template → the aliases its enclosing lists own (nested lists add up). A binding to one of
|
|
4198
|
-
* them is the LIST's to apply per row (the Repeater writes row 1, its copies carry the rest), never the page's.
|
|
4199
|
-
*/
|
|
4200
|
-
function listOwnedAliases(nodes) {
|
|
4201
|
-
const owned = new Map();
|
|
4202
|
-
const mark = (children, aliases) => {
|
|
4203
|
-
for (const child of children ?? []) {
|
|
4204
|
-
const set = owned.get(child) ?? new Set();
|
|
4205
|
-
aliases.forEach(a => set.add(a));
|
|
4206
|
-
owned.set(child, set);
|
|
4207
|
-
const inner = listScopeAliases(child);
|
|
4208
|
-
mark(child.children, inner.length ? new Set([...set, ...inner]) : set);
|
|
4209
|
-
}
|
|
4210
|
-
};
|
|
4211
|
-
for (const node of nodes) {
|
|
4212
|
-
const aliases = listScopeAliases(node);
|
|
4213
|
-
if (aliases.length)
|
|
4214
|
-
mark(node.children, new Set([...(owned.get(node) ?? []), ...aliases]));
|
|
4215
|
-
}
|
|
4216
|
-
return owned;
|
|
4217
|
-
}
|
|
4218
|
-
/**
|
|
4219
|
-
* A node's PAGE bindings — the ones the page resolver writes: not a list's `source` binding (the render applies it,
|
|
4220
|
-
* #162), not one without a source, not one whose source is `skip`ped (an enclosing list's alias, a variable — the
|
|
4221
|
-
* context engine writes those).
|
|
4222
|
-
*/
|
|
4223
|
-
function pageBindingsOf(node, skip = new Set()) {
|
|
4224
|
-
return (node.bindings ?? []).filter(b => !!b?.source && b.prop !== SOURCE_BINDING_PROP && !skip.has(b.source));
|
|
4225
|
-
}
|
|
4226
|
-
|
|
4227
4376
|
/**
|
|
4228
4377
|
* Public content bases the builder canvas resolves data against — the SAME `@Public()` controllers
|
|
4229
4378
|
* the live storefront (SSR engine) hits, so the canvas preview shows what the published page shows.
|
|
@@ -5797,6 +5946,19 @@ class PageBindingResolverService {
|
|
|
5797
5946
|
if (!this.cache.has(alias))
|
|
5798
5947
|
this.inFlight.set(alias, sub);
|
|
5799
5948
|
}
|
|
5949
|
+
/**
|
|
5950
|
+
* The page's value for ONE binding, read as this page reads (`read`) — for a part the pass never reaches: a list's
|
|
5951
|
+
* preview copy bakes it in (rows 2..n, vectoriox/iox-ui#165). Asks for the alias if it has not landed (`resolved$`
|
|
5952
|
+
* says when); always `undefined` for a variable (the context engine's) and a list's `source` binding (#162).
|
|
5953
|
+
*/
|
|
5954
|
+
valueFor(binding) {
|
|
5955
|
+
if (!binding?.source || binding.prop === SOURCE_BINDING_PROP)
|
|
5956
|
+
return undefined;
|
|
5957
|
+
if (variableAliases(this.registry.getDataSources()).has(binding.source))
|
|
5958
|
+
return undefined;
|
|
5959
|
+
this.ensure(binding.source);
|
|
5960
|
+
return this.cache.has(binding.source) ? pageBindingValue(this.cache.get(binding.source), binding, this.read) : undefined;
|
|
5961
|
+
}
|
|
5800
5962
|
/** Apply every registered node's page bindings now (the deferred pass; public for hosts and specs). */
|
|
5801
5963
|
applyAll() {
|
|
5802
5964
|
const entries = Array.from(this.overlay.getAllNodeEntries());
|
|
@@ -6836,7 +6998,7 @@ class BuilderRepeaterComponent {
|
|
|
6836
6998
|
this.fetchData();
|
|
6837
6999
|
}
|
|
6838
7000
|
}
|
|
6839
|
-
constructor(dragEngine, overlayService, dataSourceService, dsRegistry, panelEventService, cdr, interactionEngine, labels, typeLabels, preview) {
|
|
7001
|
+
constructor(dragEngine, overlayService, dataSourceService, dsRegistry, panelEventService, cdr, interactionEngine, labels, typeLabels, preview, pageBindings) {
|
|
6840
7002
|
this.dragEngine = dragEngine;
|
|
6841
7003
|
this.overlayService = overlayService;
|
|
6842
7004
|
this.dataSourceService = dataSourceService;
|
|
@@ -6846,6 +7008,7 @@ class BuilderRepeaterComponent {
|
|
|
6846
7008
|
this.interactionEngine = interactionEngine;
|
|
6847
7009
|
this.labels = labels;
|
|
6848
7010
|
this.typeLabels = typeLabels;
|
|
7011
|
+
this.pageBindings = pageBindings;
|
|
6849
7012
|
this._children = [];
|
|
6850
7013
|
this.style = {};
|
|
6851
7014
|
this.nodeId = '';
|
|
@@ -6876,6 +7039,11 @@ class BuilderRepeaterComponent {
|
|
|
6876
7039
|
this.isPreview = !!preview;
|
|
6877
7040
|
}
|
|
6878
7041
|
ngOnInit() {
|
|
7042
|
+
// A part inside a row bound to ANOTHER page source (#165): its value lands later than the rows — re-bake the copies.
|
|
7043
|
+
this.pageSub = this.pageBindings?.resolved$.subscribe(alias => {
|
|
7044
|
+
if (this.items.length && templateReadsPageAlias(this.children, alias, this.rowScope()))
|
|
7045
|
+
this.refreshPreviews();
|
|
7046
|
+
});
|
|
6879
7047
|
this.bindingSub = this.panelEventService.subscribe(event => {
|
|
6880
7048
|
// A binding OR an interaction change on a template node must re-clone the preview rows.
|
|
6881
7049
|
// Interactions matter because clones are attached by ELEMENT at render time, so a newly
|
|
@@ -6908,6 +7076,7 @@ class BuilderRepeaterComponent {
|
|
|
6908
7076
|
this.destroyed = true;
|
|
6909
7077
|
this.bindingSub?.unsubscribe();
|
|
6910
7078
|
this.sourceSub?.unsubscribe();
|
|
7079
|
+
this.pageSub?.unsubscribe();
|
|
6911
7080
|
}
|
|
6912
7081
|
onDrop(event) {
|
|
6913
7082
|
this.dragEngine.handleDrop(this.children, event, this.dropListId, this.cdr, () => { if (this.items.length > 0)
|
|
@@ -6958,25 +7127,37 @@ class BuilderRepeaterComponent {
|
|
|
6958
7127
|
this.cdr.markForCheck();
|
|
6959
7128
|
return;
|
|
6960
7129
|
}
|
|
6961
|
-
this.
|
|
6962
|
-
this.
|
|
7130
|
+
const scope = this.rowScope();
|
|
7131
|
+
this.applyFirstItemToTemplate(scope);
|
|
7132
|
+
this.previewRows = this.items.slice(1).map(item => cloneNodesForItem(this.children, item, scope));
|
|
6963
7133
|
this.cdr.markForCheck();
|
|
6964
7134
|
}
|
|
6965
|
-
|
|
7135
|
+
/** The engine's row scope (#165): the aliases this list's item answers to; any other source is the PAGE's value. */
|
|
7136
|
+
rowScope() {
|
|
7137
|
+
return {
|
|
7138
|
+
aliases: new Set(rowScopeAliases(this._source, this._sourcePath)),
|
|
7139
|
+
pageValue: binding => this.pageBindings?.valueFor(binding),
|
|
7140
|
+
};
|
|
7141
|
+
}
|
|
7142
|
+
applyFirstItemToTemplate(scope) {
|
|
6966
7143
|
const item = this.items[0];
|
|
6967
7144
|
if (!item || !this.children.length)
|
|
6968
7145
|
return;
|
|
6969
|
-
this.applyBindingsToNodes(this.children, item);
|
|
7146
|
+
this.applyBindingsToNodes(this.children, item, scope);
|
|
6970
7147
|
}
|
|
6971
7148
|
/** Apply item[0]'s bound values to the live template row, walking the WHOLE subtree — not just
|
|
6972
7149
|
* direct children. A bound node can sit any level deep once a template child is wrapped in a
|
|
6973
7150
|
* container (or otherwise nested), so recursion is required or the first row shows defaults. */
|
|
6974
|
-
applyBindingsToNodes(nodes, item) {
|
|
7151
|
+
applyBindingsToNodes(nodes, item, scope) {
|
|
6975
7152
|
for (const child of nodes) {
|
|
6976
7153
|
if (child.bindings?.length) {
|
|
6977
7154
|
const ref = this.overlayService.getNodeRef(child);
|
|
6978
7155
|
if (ref?.componentRef) {
|
|
6979
7156
|
for (const binding of child.bindings) {
|
|
7157
|
+
// Only the row's own bindings (#165) — one to another page source is the page resolver's
|
|
7158
|
+
// (row 1 is a registered node, so its pass writes it); writing the item there would clobber it.
|
|
7159
|
+
if (!isRowBinding(binding, scope))
|
|
7160
|
+
continue;
|
|
6980
7161
|
// Path + pipes, like every other binding-resolution point. See
|
|
6981
7162
|
// binding-filters-plan.md — row 1 used to skip the filters.
|
|
6982
7163
|
const value = resolveBoundValue(item, binding);
|
|
@@ -6992,7 +7173,7 @@ class BuilderRepeaterComponent {
|
|
|
6992
7173
|
}
|
|
6993
7174
|
}
|
|
6994
7175
|
if (child.children?.length) {
|
|
6995
|
-
this.applyBindingsToNodes(child.children, item);
|
|
7176
|
+
this.applyBindingsToNodes(child.children, item, scope);
|
|
6996
7177
|
}
|
|
6997
7178
|
}
|
|
6998
7179
|
}
|
|
@@ -7002,7 +7183,7 @@ class BuilderRepeaterComponent {
|
|
|
7002
7183
|
if (this.items.length)
|
|
7003
7184
|
setTimeout(() => this.refreshPreviews());
|
|
7004
7185
|
}
|
|
7005
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: BuilderRepeaterComponent, deps: [{ token: DragEngineService }, { token: OverlayService }, { token: BuilderDataSourceService }, { token: DataSourceRegistryService }, { token: PanelEventService }, { token: i0.ChangeDetectorRef }, { token: InteractionEngineService }, { token: IOX_BUILDER_LABELS, optional: true }, { token: IOX_CONTENT_TYPE_LABELS, optional: true }, { token: IS_PREVIEW, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7186
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: BuilderRepeaterComponent, deps: [{ token: DragEngineService }, { token: OverlayService }, { token: BuilderDataSourceService }, { token: DataSourceRegistryService }, { token: PanelEventService }, { token: i0.ChangeDetectorRef }, { token: InteractionEngineService }, { token: IOX_BUILDER_LABELS, optional: true }, { token: IOX_CONTENT_TYPE_LABELS, optional: true }, { token: IS_PREVIEW, optional: true }, { token: PageBindingResolverService, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7006
7187
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: BuilderRepeaterComponent, isStandalone: false, selector: "app-builder-repeater", inputs: { children: "children", style: "style", nodeId: "nodeId", dropListId: "dropListId", source: "source", sourcePath: "sourcePath", limit: "limit" }, outputs: { childClick: "childClick", childMouseEnter: "childMouseEnter", childMouseLeave: "childMouseLeave" }, ngImport: i0, template: `
|
|
7007
7188
|
<ng-template #badgeContent>
|
|
7008
7189
|
<i class="ph-thin ph-repeat"></i>
|
|
@@ -7203,6 +7384,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
7203
7384
|
}, {
|
|
7204
7385
|
type: Inject,
|
|
7205
7386
|
args: [IS_PREVIEW]
|
|
7387
|
+
}] }, { type: PageBindingResolverService, decorators: [{
|
|
7388
|
+
type: Optional
|
|
7206
7389
|
}] }], propDecorators: { children: [{
|
|
7207
7390
|
type: Input
|
|
7208
7391
|
}], style: [{
|
|
@@ -7330,17 +7513,17 @@ const COMPOSITE_PRESETS = Object.freeze([
|
|
|
7330
7513
|
{
|
|
7331
7514
|
id: CompositePresetId.Price, group: CompositePaletteGroup.Shop, name: 'Price', icon: 'ph-thin ph-coins',
|
|
7332
7515
|
description: 'The chosen option\'s price in your studio\'s currency, and its earlier price struck through when there is one.',
|
|
7333
|
-
build: create => SHOP_RECIPES[ShopRecipe.Price](create),
|
|
7516
|
+
build: (create, lang) => SHOP_RECIPES[ShopRecipe.Price](create, lang),
|
|
7334
7517
|
},
|
|
7335
7518
|
{
|
|
7336
7519
|
id: CompositePresetId.Variants, group: CompositePaletteGroup.Shop, name: 'Options', icon: 'ph-thin ph-swatches',
|
|
7337
7520
|
description: 'One row per option — colours as swatches, a few words as chips, a long list as a menu. A sold-out option stays visible and says so.',
|
|
7338
|
-
build: create => SHOP_RECIPES[ShopRecipe.Variants](create),
|
|
7521
|
+
build: (create, lang) => SHOP_RECIPES[ShopRecipe.Variants](create, lang),
|
|
7339
7522
|
},
|
|
7340
7523
|
{
|
|
7341
7524
|
id: CompositePresetId.Quantity, group: CompositePaletteGroup.Shop, name: 'Quantity', icon: 'ph-thin ph-plus-minus',
|
|
7342
7525
|
description: 'How many to add — never below one, never above what is in stock.',
|
|
7343
|
-
build: create => SHOP_RECIPES[ShopRecipe.Quantity](create),
|
|
7526
|
+
build: (create, lang) => SHOP_RECIPES[ShopRecipe.Quantity](create, lang),
|
|
7344
7527
|
},
|
|
7345
7528
|
{
|
|
7346
7529
|
id: CompositePresetId.AddToCart, group: CompositePaletteGroup.Shop, name: 'Add to cart', icon: 'ph-thin ph-shopping-cart-simple',
|
|
@@ -7623,108 +7806,6 @@ function moveFormContentOut(roots, contentId, afterRemove) {
|
|
|
7623
7806
|
return hit.content;
|
|
7624
7807
|
}
|
|
7625
7808
|
|
|
7626
|
-
const GRID = (columns) => ({ display: 'grid', gridTemplateColumns: columns, gap: '24px', width: '100%' });
|
|
7627
|
-
const ONE_COLUMN = { gridTemplateColumns: 'repeat(1, minmax(0, 1fr))' };
|
|
7628
|
-
const LAYOUT_PRESETS = Object.freeze([
|
|
7629
|
-
{
|
|
7630
|
-
id: 'stack', name: 'Stack', icon: 'ph-thin ph-rows',
|
|
7631
|
-
description: 'Vertical flow with even spacing.',
|
|
7632
|
-
container: { display: 'flex', flexDirection: 'column', gap: '24px', width: '100%' },
|
|
7633
|
-
childCount: 2,
|
|
7634
|
-
},
|
|
7635
|
-
{
|
|
7636
|
-
id: 'two-columns', name: 'Two columns', icon: 'ph-thin ph-columns',
|
|
7637
|
-
description: 'Side by side; stacks on a phone.',
|
|
7638
|
-
container: GRID('repeat(2, minmax(0, 1fr))'),
|
|
7639
|
-
containerResponsive: { [Breakpoint.Small]: ONE_COLUMN },
|
|
7640
|
-
childCount: 2,
|
|
7641
|
-
},
|
|
7642
|
-
{
|
|
7643
|
-
id: 'three-columns', name: 'Three columns', icon: 'ph-thin ph-columns',
|
|
7644
|
-
description: 'Three across; two on a tablet, one on a phone.',
|
|
7645
|
-
container: GRID('repeat(3, minmax(0, 1fr))'),
|
|
7646
|
-
containerResponsive: {
|
|
7647
|
-
[Breakpoint.Tablet]: { gridTemplateColumns: 'repeat(2, minmax(0, 1fr))' },
|
|
7648
|
-
[Breakpoint.Small]: ONE_COLUMN,
|
|
7649
|
-
},
|
|
7650
|
-
childCount: 3,
|
|
7651
|
-
},
|
|
7652
|
-
{
|
|
7653
|
-
id: 'sidebar-main', name: 'Sidebar + main', icon: 'ph-thin ph-layout',
|
|
7654
|
-
description: 'Fixed sidebar beside flexible content; the sidebar drops under it on a tablet.',
|
|
7655
|
-
container: GRID('280px minmax(0, 1fr)'),
|
|
7656
|
-
containerResponsive: { [Breakpoint.Tablet]: ONE_COLUMN },
|
|
7657
|
-
childCount: 2,
|
|
7658
|
-
},
|
|
7659
|
-
{
|
|
7660
|
-
id: 'card-grid', name: 'Card grid', icon: 'ph-thin ph-squares-four',
|
|
7661
|
-
description: 'A grid of cards: three, then two, then one.',
|
|
7662
|
-
container: GRID('repeat(3, minmax(0, 1fr))'),
|
|
7663
|
-
containerResponsive: {
|
|
7664
|
-
[Breakpoint.Tablet]: { gridTemplateColumns: 'repeat(2, minmax(0, 1fr))' },
|
|
7665
|
-
[Breakpoint.Small]: ONE_COLUMN,
|
|
7666
|
-
},
|
|
7667
|
-
childCount: 6,
|
|
7668
|
-
child: { minHeight: '160px' },
|
|
7669
|
-
},
|
|
7670
|
-
{
|
|
7671
|
-
id: 'split-hero', name: 'Split hero', icon: 'ph-thin ph-square-split-horizontal',
|
|
7672
|
-
description: 'Text beside media; on a phone the media moves above the text.',
|
|
7673
|
-
container: GRID('minmax(0, 1.2fr) minmax(0, 1fr)'),
|
|
7674
|
-
containerResponsive: { [Breakpoint.Small]: ONE_COLUMN },
|
|
7675
|
-
childCount: 2,
|
|
7676
|
-
// On a phone the MEDIA (child 2) leads — CSS order only, the DOM order never changes.
|
|
7677
|
-
childResponsive: [{ [Breakpoint.Small]: { order: '1' } }, { [Breakpoint.Small]: { order: '0' } }],
|
|
7678
|
-
},
|
|
7679
|
-
]);
|
|
7680
|
-
/** Set a style trait's value on a node built from a component config. */
|
|
7681
|
-
function setStyleTrait(node, name, value) {
|
|
7682
|
-
for (const group of node.styleTraits ?? []) {
|
|
7683
|
-
const trait = group.traits.find(t => t.name === name);
|
|
7684
|
-
if (trait) {
|
|
7685
|
-
trait.default = value;
|
|
7686
|
-
return;
|
|
7687
|
-
}
|
|
7688
|
-
}
|
|
7689
|
-
}
|
|
7690
|
-
function applyResponsive(node, layers) {
|
|
7691
|
-
if (!layers)
|
|
7692
|
-
return;
|
|
7693
|
-
let responsive = node.responsive;
|
|
7694
|
-
for (const [bp, styles] of Object.entries(layers)) {
|
|
7695
|
-
for (const [prop, value] of Object.entries(styles ?? {})) {
|
|
7696
|
-
responsive = setOverride(responsive, bp, prop, value);
|
|
7697
|
-
}
|
|
7698
|
-
}
|
|
7699
|
-
node.responsive = responsive;
|
|
7700
|
-
}
|
|
7701
|
-
/**
|
|
7702
|
-
* Build a preset's node tree. `createNode` makes an empty node of a type (the component registry in
|
|
7703
|
-
* the builder) — passed in so this stays pure and testable.
|
|
7704
|
-
*
|
|
7705
|
-
* @returns the container node, or `null` when the container type can't be created.
|
|
7706
|
-
*/
|
|
7707
|
-
function buildLayoutPreset(def, createNode) {
|
|
7708
|
-
const container = createNode('Container');
|
|
7709
|
-
if (!container)
|
|
7710
|
-
return null;
|
|
7711
|
-
for (const [prop, value] of Object.entries(def.container))
|
|
7712
|
-
setStyleTrait(container, prop, value);
|
|
7713
|
-
applyResponsive(container, def.containerResponsive);
|
|
7714
|
-
const children = [];
|
|
7715
|
-
for (let i = 0; i < def.childCount; i++) {
|
|
7716
|
-
const child = createNode('Container');
|
|
7717
|
-
if (!child)
|
|
7718
|
-
continue;
|
|
7719
|
-
for (const [prop, value] of Object.entries(def.child ?? {}))
|
|
7720
|
-
setStyleTrait(child, prop, value);
|
|
7721
|
-
applyResponsive(child, def.childResponsive?.[i]);
|
|
7722
|
-
children.push(child);
|
|
7723
|
-
}
|
|
7724
|
-
container.children = children;
|
|
7725
|
-
return container;
|
|
7726
|
-
}
|
|
7727
|
-
|
|
7728
7809
|
/**
|
|
7729
7810
|
* The canvas owns every drag: interact.js moves nodes from pointer events, and a NATIVE drag steals
|
|
7730
7811
|
* that pointer stream (the browser fires pointercancel) while carrying a payload of its own. On an
|
|
@@ -11379,7 +11460,7 @@ class BuilderComponent {
|
|
|
11379
11460
|
for (const el of Array.from(page.children)) {
|
|
11380
11461
|
if (el.classList.contains(GLOBALS_AFTER_CLASS))
|
|
11381
11462
|
out.push(...Array.from(el.children));
|
|
11382
|
-
else
|
|
11463
|
+
else
|
|
11383
11464
|
out.push(el);
|
|
11384
11465
|
}
|
|
11385
11466
|
return out;
|
|
@@ -12166,6 +12247,18 @@ class BuilderComponent {
|
|
|
12166
12247
|
cancelPairRemoval() {
|
|
12167
12248
|
this.pendingPairRemoval = null;
|
|
12168
12249
|
}
|
|
12250
|
+
/** A chrome word in the host's language (the empty-page starter, iox-ui#163) — read at render, so a locale that
|
|
12251
|
+
* lands late still reaches it; an unknown key reads as itself, never blank. */
|
|
12252
|
+
chromeWord(key) {
|
|
12253
|
+
return this.labels(key, BUILDER_CHROME_EN[key] ?? key);
|
|
12254
|
+
}
|
|
12255
|
+
/** A starter's name and one-line description, in the host's language. */
|
|
12256
|
+
starterName(def) {
|
|
12257
|
+
return this.labels(layoutPresetNameKey(def.id), def.name);
|
|
12258
|
+
}
|
|
12259
|
+
starterDescription(def) {
|
|
12260
|
+
return this.labels(layoutPresetDescriptionKey(def.id), def.description);
|
|
12261
|
+
}
|
|
12169
12262
|
/** The pair-removal confirm's words, in the host's language. */
|
|
12170
12263
|
pairRemovalText(key) {
|
|
12171
12264
|
return this.labels(key, BUILDER_CHROME_EN[key]).replace('{tab}', this.pendingPairRemoval?.label ?? '');
|
|
@@ -12426,11 +12519,11 @@ class BuilderComponent {
|
|
|
12426
12519
|
}
|
|
12427
12520
|
}
|
|
12428
12521
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: BuilderComponent, deps: [{ token: ComponentRegistryService }, { token: OverlayService }, { token: PanelEventService }, { token: DragEngineService }, { token: DataSourceRegistryService }, { token: ViewportService }, { token: FormStateService }, { token: CanvasDesignStateService }, { token: InteractionEngineService }, { token: InteractionPresetRegistryService }, { token: BuilderClipboardService }, { token: SymbolRegistryService }, { token: i0.ChangeDetectorRef }, { token: i0.ApplicationRef }, { token: MoveableCanvasService }, { token: SelectoCanvasService }, { token: StyleRegistryService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12429
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: BuilderComponent, isStandalone: false, selector: "app-builder", inputs: { layout: "layout", dataSources: "dataSources", orgId: "orgId", routeParams: "routeParams", pageName: "pageName", isSaving: "isSaving", pageStatus: "pageStatus", publishChecking: "publishChecking", pageSettings: "pageSettings", globalElements: "globalElements", pagePath: "pagePath", canUndo: "canUndo", canRedo: "canRedo", canvasLocale: "canvasLocale", moveableMode: "moveableMode" }, outputs: { save: "save", undo: "undo", redo: "redo", back: "back", preview: "preview", publishToggle: "publishToggle", pageSettingsChange: "pageSettingsChange", applyAnimationToAll: "applyAnimationToAll", saveBlock: "saveBlock", globalElementsChange: "globalElementsChange" }, providers: [{ provide: IOX_BUILDER_CANVAS, useValue: true }], viewQueries: [{ propertyName: "previewCanvas", first: true, predicate: ["previewCanvas"], descendants: true }, { propertyName: "previewScrollRef", first: true, predicate: ["previewScroll"], descendants: true }, { propertyName: "lenisContentRef", first: true, predicate: ["lenisContent"], descendants: true }, { propertyName: "globalOverlayRef", first: true, predicate: ["globalOverlay"], descendants: true }, { propertyName: "globalsBeforeRef", first: true, predicate: ["globalsBefore"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"builder\">\n\n <div class=\"builder-main\" [class.panel-open]=\"isPanelOpen\">\n <!-- The switcher is the panel's OWN tab bar. It used to live in the header, at the\n maximum possible distance from the thing it controls; attached, the column and the\n panel are one card with one shadow. See board D2. -->\n <aside class=\"sidebar\">\n <div class=\"sidebar-switcher\">\n <button (click)=\"activeSidebar = 'pages'\" [class.active]=\"activeSidebar === 'pages'\" title=\"Pages\" aria-label=\"Pages\">\n <i class=\"ph-thin ph-browsers\"></i>\n </button>\n <button (click)=\"activeSidebar = 'components'\" [class.active]=\"activeSidebar === 'components'\" title=\"Components\" aria-label=\"Components\">\n <i class=\"ph-thin ph-cube\"></i>\n </button>\n <button (click)=\"activeSidebar = 'tree'\" [class.active]=\"activeSidebar === 'tree'\" title=\"Layers\" aria-label=\"Layers\">\n <i class=\"ph-thin ph-tree-structure\"></i>\n </button>\n <button (click)=\"activeSidebar = 'tokens'\" [class.active]=\"activeSidebar === 'tokens'\" title=\"Design Tokens\" aria-label=\"Design Tokens\">\n <i class=\"ph-thin ph-circles-three\"></i>\n </button>\n </div>\n <div class=\"sidebar-body\">\n @if (activeSidebar === 'pages') {\n <div class=\"sidebar-slot\">\n <ng-content select=\"[builderPages]\"></ng-content>\n </div>\n }\n @if (activeSidebar === 'components') {\n <div class=\"sidebar-slot\">\n <ng-content select=\"[builderComponents]\"></ng-content>\n </div>\n }\n @if (activeSidebar === 'tokens') {\n <div class=\"sidebar-slot\">\n <ng-content select=\"[builderTokens]\"></ng-content>\n </div>\n }\n @if (activeSidebar === 'tree') {\n <app-layer-tree\n [layout]=\"layout\"\n [globalElements]=\"globalElements\"\n (nodeSelect)=\"onTreeNodeSelect($event)\"\n (nodeAction)=\"onTreeNodeAction($event)\"\n (nodeMove)=\"onTreeNodeMove()\"></app-layer-tree>\n }\n </div>\n </aside>\n\n <!-- \u26A0\uFE0F The strips are SIBLINGS of .preview, not children of it. Board D2 floated them\n over the canvas and that is what they did \u2014 over the page being edited, which is the\n one thing in the builder that must stay clear. They keep their pill shape and their\n centre alignment; they just take their own row.\n\n Siblings, specifically, rather than a wrapper INSIDE .preview: `previewCanvas` is the\n overlay container and the coordinate origin for the selection box, the drag clone,\n Lenis and the zoom maths (nine call sites). Nesting anything between it and the canvas\n would shift every one of them by the strip's height. -->\n <div class=\"canvas-column\" [style.margin-left.px]=\"coverSide === CoverSide.Left ? (coverInset || null) : null\" [style.margin-right.px]=\"coverSide === CoverSide.Right ? (coverInset || null) : null\">\n <!-- \u2460 THE ACTION STRIP \u2014 floating, top-centre (board D2). It was a solid\n full-width header bar costing 56px of height on every screen; the canvas now\n starts at the top of the viewport and the strip hovers over it.\n stopPropagation for the same reason the breadcrumb does: .preview's (click)\n is \"you clicked empty canvas, drop the selection\". -->\n <div class=\"toolbar-strip\" (click)=\"$event.stopPropagation()\">\n <app-toolbar\n [activeMode]=\"activeMode\"\n [activeBreakpoint]=\"activeBreakpoint\"\n [breakpointCounts]=\"breakpointCounts\"\n [auditCount]=\"auditFindings.length || structureFindings.length\"\n [auditOpen]=\"auditOpen\"\n [activeZoom]=\"activeZoom\"\n [activeScreenWidth]=\"activeScreenWidth\"\n [isSaving]=\"isSaving\"\n [pageStatus]=\"pageStatus\"\n [publishChecking]=\"publishChecking\"\n [canUndo]=\"canUndo\"\n [canRedo]=\"canRedo\"\n (modeChange)=\"handleToolbarModeChange($event)\"\n (breakpointChange)=\"handleToolbarBreakpointChange($event)\"\n (auditToggle)=\"toggleAudit()\"\n (zoomChange)=\"handleToolbarZoomChange($event)\"\n (screenWidthChange)=\"handleToolbarScreenWidthChange($event)\"\n (save)=\"save.emit()\"\n (preview)=\"preview.emit()\"\n (publishToggle)=\"publishToggle.emit()\"\n (undo)=\"undo.emit()\"\n (redo)=\"redo.emit()\">\n <ng-content select=\"[builderToolbarActions]\"></ng-content>\n </app-toolbar>\n </div>\n\n <main #previewCanvas class=\"preview\"\n [class.grab-mode]=\"activeMode === builderModes.Pan\"\n [class.grabbing]=\"isPanning\"\n (click)=\"handleCanvasClick()\"\n (mousedown)=\"onBoardMouseDown($event)\"\n (mousemove)=\"onBoardMouseMove($event)\"\n (mouseup)=\"onBoardMouseUp()\"\n (mouseleave)=\"onBoardMouseUp()\"\n (dragstart)=\"onNativeDragStart($event)\">\n <app-overlay (toolbarAction)=\"onToolbarAction($event)\"></app-overlay>\n\n <!-- Responsive audit (A5) \u2014 floats over the canvas, right gutter. -->\n @if (auditOpen) {\n <div class=\"audit-dock\" (click)=\"$event.stopPropagation()\">\n <app-audit-panel\n [findings]=\"auditFindings\"\n [breakpointLabel]=\"auditBreakpointLabel\"\n [running]=\"auditRunning\"\n (select)=\"selectAuditNode($event)\"\n (fix)=\"applyAuditFix($event)\"\n (fixAll)=\"applyAllAuditFixes()\"\n (rerun)=\"runAudit()\"\n (closePanel)=\"toggleAudit()\"></app-audit-panel>\n </div>\n }\n\n <!-- Custom Lenis scrollbar \u2014 lives in .preview (not .preview-scroll) so it\n stays in the right gutter and never overlaps the canvas at large widths.\n No translateY counteract needed since it isn't inside the Lenis wrapper. -->\n <div class=\"canvas-scrollbar\"\n [class.visible]=\"isScrollbarVisible\">\n <div class=\"canvas-scrollbar-thumb\"\n [style.height.px]=\"scrollThumbHeight\"\n [style.top.px]=\"scrollThumbTop\">\n </div>\n </div>\n\n <!-- Global elements overlay \u2014 outside Lenis so position:fixed children\n stay pinned to the canvas viewport rather than scrolling with content.\n Shares viewportTransform so elements scale correctly at any zoom level.\n Height is the frame a pinned global sits in (globalOverlayHeight: the canvas\n slot, or the page on a short page), bound in px so position:fixed + inset:0\n fills it (CSS calc(100%) would give the wrong containing-block height). -->\n @if (globalElements.length) {\n <div\n #globalOverlay\n class=\"global-elements-overlay iox-token-scope\"\n [attr.dir]=\"canvasDir\"\n [attr.lang]=\"canvasLocale || null\"\n [attr.data-iox-column]=\"columnWord\"\n [ngStyle]=\"globalLayerCss\"\n [style.width.px]=\"viewportWidth\"\n [style.height.px]=\"globalOverlayHeight\"\n [style.transform]=\"viewportTransform\">\n <!-- BEFORE globals stay here, in the frame (a Dialog inside a header must fill the frame,\n not scroll away with the page). Their wrapper's height is what the in-flow ones take,\n and the page reserves it at its top (canvasHeaderReserve, iox-ui#19). -->\n @if (globalElementsBefore.length) {\n <div #globalsBefore class=\"iox-canvas-globals-before\" [attr.data-iox-opening]=\"openingScheme\">\n @for (item of globalElementsBefore; track item) {\n <ng-container [ioxRender]=\"item\"\n (onClick)=\"handleClick($event)\"\n (onMouseEnter)=\"handleMouseEnter($event)\"\n (onMouseLeave)=\"handleMouseLeave()\">\n </ng-container>\n }\n </div>\n }\n <!-- The PINNED after globals (a fixed bottom bar, a Dialog). An in-flow AFTER global (a\n footer) is drawn in the page, after its content (iox-ui#12). -->\n @for (item of globalElementsPinnedAfter; track item) {\n <ng-container [ioxRender]=\"item\"\n (onClick)=\"handleClick($event)\"\n (onMouseEnter)=\"handleMouseEnter($event)\"\n (onMouseLeave)=\"handleMouseLeave()\">\n </ng-container>\n }\n </div>\n }\n\n <div class=\"preview-scroll\"\n #previewScroll\n [style.width.px]=\"viewportScaledWidth\"\n [class.pan-mode]=\"activeMode === builderModes.Pan\">\n\n <!-- Lenis content proxy: height = realContentHeight \u00D7 scale.\n Lenis scrolls against this value so scroll range is always in\n visual px \u2014 correct at any zoom level. -->\n <div class=\"preview-lenis-content\" #lenisContent\n [style.height.px]=\"scaledContentHeight\">\n\n <!-- iox-token-scope: the ORG's design tokens are declared on this class, not :root\n (StyleRegistryService.upsertTokens), so they never repaint the admin chrome. -->\n <iox-page-component class=\"iox-token-scope\"\n [attr.dir]=\"canvasDir\"\n [attr.lang]=\"canvasLocale || null\"\n [attr.data-iox-column]=\"columnWord\"\n [style.width.px]=\"viewportWidth\"\n [style.height.px]=\"canvasFrameHeight || viewportHeight\"\n [style.transform]=\"viewportTransform\">\n\n <!-- ngStyle carries the page's own background/typography (pageSettings.style),\n compiled by the SAME function the engine applies to <body>. Inline wins over\n the #canvas-preview white default, which stays as the unset fallback. -->\n <div class=\"canvas-viewport\"\n id=\"canvas-preview\"\n [attr.data-bar-reserve]=\"canvasBarReserve\"\n [style.padding-block-start.px]=\"canvasHeaderReserve || null\"\n [ngStyle]=\"pageStyleCss\"\n [style.min-height.px]=\"canvasMinHeight\">\n\n <!-- Empty page (B4): a starting point beats a blank canvas. Each starter is\n a responsive layout preset \u2014 ordinary nodes, editable afterwards. -->\n @if (isPageEmpty) {\n <!-- The builder's own words (English literals), not the site's: left-to-right on any page. -->\n <div class=\"empty-canvas\" dir=\"ltr\" (click)=\"$event.stopPropagation()\">\n <h2 class=\"empty-title\">Start with a layout</h2>\n <p class=\"empty-sub\">Each one already adapts to tablet and phone. You can edit or take it apart afterwards.</p>\n <div class=\"empty-grid\">\n @for (starter of starterLayouts; track starter.id) {\n <button type=\"button\" class=\"empty-card\" (click)=\"startWithLayout(starter)\">\n <i [class]=\"starter.icon\" aria-hidden=\"true\"></i>\n <span class=\"empty-card-name\">{{ starter.name }}</span>\n <span class=\"empty-card-desc\">{{ starter.description }}</span>\n </button>\n }\n </div>\n <button type=\"button\" class=\"empty-link\" (click)=\"browseComponents()\">Or start from a single element</button>\n </div>\n }\n\n <!-- WRAPPER COLLAPSE (task 9c): top-level nodes render DIRECTLY into the\n canvas viewport \u2014 no .preview-node wrapper; iox-outer + drag move to the\n host (RenderDirective, via ioxDragSourceId). -->\n @for (item of layout; track item) {\n <ng-container\n [ioxRender]=\"item\"\n [ioxDragSourceId]=\"'canvas-preview'\"\n (onClick)=\"handleClick($event)\"\n (onMouseEnter)=\"handleMouseEnter($event)\"\n (onMouseLeave)=\"handleMouseLeave()\">\n </ng-container>\n }\n\n <!-- In-flow AFTER globals (a footer) follow the page's content, inside the page's\n ground, as on the live site (iox-ui#12). Not part of the layout: the drag\n engine skips this wrapper (GLOBALS_AFTER_CLASS). -->\n @if (globalElementsInPage.length) {\n <div [class]=\"globalsAfterClass\">\n @for (item of globalElementsInPage; track item) {\n <ng-container [ioxRender]=\"item\"\n (onClick)=\"handleClick($event)\"\n (onMouseEnter)=\"handleMouseEnter($event)\"\n (onMouseLeave)=\"handleMouseLeave()\">\n </ng-container>\n }\n </div>\n }\n </div>\n </iox-page-component>\n </div>\n </div>\n </main>\n <!-- \u2462 THE ELEMENT PATH \u2014 a thin floating strip, BOTTOM-CENTRE (board D2). It is\n pinned to the PREVIEW VIEWPORT, not to the canvas frame: the frame pans and\n scales, so a breadcrumb tracking its edge would drift off-screen and shrink with\n zoom. It used to sit in the top gutter, which is where the eye is least often \u2014\n and where the floating action strip now lives.\n\n \u26A0\uFE0F stopPropagation is REQUIRED, not defensive. This element lives inside .preview,\n whose (click) is handleCanvasClick() \u2014 \"you clicked empty canvas, drop the\n selection\". Without it, picking an ancestor crumb selects that node and then\n immediately bubbles into the canvas handler, which clears it: the selection and the\n layer-tree highlight both fall back to Body. Same reason .audit-dock stops its own. -->\n <app-breadcrumb-bar\n (click)=\"$event.stopPropagation()\"\n [path]=\"selectedPath\"\n (nodeSelect)=\"onCrumbSelect($event)\"\n (rootSelect)=\"onCrumbRootSelect()\"\n (nodePeek)=\"onCrumbPeek($event)\">\n </app-breadcrumb-bar>\n\n <!-- \u2463 THE SCENE TIMELINE (premium sites SC2, board G) \u2014 its own row under the canvas, projected from the host\n like every panel, and only there while the page holds a Scene. A sibling of .preview for the reason above. -->\n <ng-content select=\"[builderTimeline]\"></ng-content>\n\n </div>\n\n <!-- Same rule as the sidebar: the switcher belongs to the panel it drives, as a\n tab ROW across its top. -->\n <div class=\"panel-dock\">\n <div class=\"panel-switcher\">\n <button (click)=\"selectPanel(panelTypes.BINDINGS)\" [class.active]=\"activePanel === panelTypes.BINDINGS\" title=\"Bindings\">\n <i class=\"ph-thin ph-plugs-connected\"></i>\n </button>\n <button (click)=\"selectPanel(panelTypes.STYLES)\" [class.active]=\"activePanel === panelTypes.STYLES\" title=\"Styles\">\n <i class=\"ph-thin ph-paint-brush\"></i>\n </button>\n <button (click)=\"selectPanel(panelTypes.PAGE)\" [class.active]=\"activePanel === panelTypes.PAGE\" title=\"Page settings\" aria-label=\"Page settings\">\n <i class=\"ph-thin ph-gear-six\"></i>\n </button>\n <button (click)=\"selectPanel(panelTypes.INTERACTIONS)\" [class.active]=\"activePanel === panelTypes.INTERACTIONS\" title=\"Interactions\">\n <i class=\"ph-thin ph-lightning\"></i>\n </button>\n <button (click)=\"selectPanel(panelTypes.ASK)\" [class.active]=\"activePanel === panelTypes.ASK\" title=\"Ask AI\" aria-label=\"Ask AI\" data-panel-tab=\"ask\">\n <i class=\"ph-thin ph-sparkle\"></i>\n </button>\n </div>\n <ng-content select=\"[builderPanel]\"></ng-content>\n </div>\n </div>\n\n <!-- Save as Reusable Block dialog -->\n <!-- A tab or a panel deleted alone (CC4a \u2014 composite T18): the pair goes together, so the delete is offered for\n both. Every delete path asks the one guard; this is its answer. -->\n <p-dialog [visible]=\"!!pendingPairRemoval\" (visibleChange)=\"$event || cancelPairRemoval()\" [modal]=\"true\" [closable]=\"true\"\n [draggable]=\"false\" [resizable]=\"false\" [header]=\"pairRemovalText('builder.chrome.deletePairTitle')\" styleClass=\"iox-pair-removal-dialog\"\n appendTo=\"body\" [style]=\"{ width: '400px' }\">\n <p class=\"pair-removal-body\">{{ pairRemovalText('builder.chrome.deletePairBody') }}</p>\n <ng-template pTemplate=\"footer\">\n <p-button size=\"small\" severity=\"secondary\" [label]=\"pairRemovalText('builder.chrome.cancel')\" (onClick)=\"cancelPairRemoval()\"></p-button>\n <p-button size=\"small\" severity=\"danger\" [label]=\"pairRemovalText('builder.chrome.deletePair')\" (onClick)=\"confirmPairRemoval()\"></p-button>\n </ng-template>\n </p-dialog>\n\n @if (showSaveBlockDialog) {\n <div class=\"save-block-backdrop\" (click)=\"cancelSaveBlock()\"></div>\n <div class=\"save-block-dialog\" (click)=\"$event.stopPropagation()\">\n <h4 class=\"save-block-title\">Save as Reusable Block</h4>\n <input class=\"save-block-input\"\n type=\"text\"\n placeholder=\"Block name...\"\n [(ngModel)]=\"saveBlockName\"\n (keydown.enter)=\"confirmSaveBlock()\"\n (keydown.escape)=\"cancelSaveBlock()\"\n autofocus>\n <div class=\"save-block-actions\">\n <p-button size=\"small\" severity=\"secondary\" label=\"Cancel\" (click)=\"cancelSaveBlock()\"></p-button>\n <p-button size=\"small\" label=\"Save\" [disabled]=\"!saveBlockName.trim()\" (click)=\"confirmSaveBlock()\"></p-button>\n </div>\n </div>\n }\n</div>", styles: ["@charset \"UTF-8\";:host{display:flex;flex:1;min-height:0;overflow:hidden}.builder{display:flex;flex-direction:column;direction:ltr;width:100%;height:100%;min-height:0;border-radius:0;overflow:hidden;position:relative}.builder .toolbar-strip{flex:none;align-self:center;max-inline-size:100%;display:flex;align-items:center;padding:6px 8px;background:#ffffffeb;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid var(--iox-border-1, #DDE1E8);border-radius:999px;box-shadow:0 6px 20px #101b421a;max-inline-size:calc(100% - 40px);overflow-x:auto;scrollbar-width:none}.builder .toolbar-strip::-webkit-scrollbar{display:none}.builder .sidebar-switcher,.builder .panel-switcher{flex:none;display:flex;flex-direction:row;align-items:center;gap:.375rem;padding:7px 10px;background:var(--p-surface-0);border-block-end:1px solid var(--iox-neutral-100, #EDEFF3)}.builder .sidebar-switcher button,.builder .panel-switcher button{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;border:none;background:var(--iox-surface-3, #F6F7F9);color:var(--p-text-muted-color);cursor:pointer;font-size:1rem;transition:background .15s ease-out,color .15s ease-out}.builder .sidebar-switcher button i,.builder .panel-switcher button i{pointer-events:none}.builder .sidebar-switcher button:hover,.builder .panel-switcher button:hover{background:var(--iox-rose-100, #F8EAEA);color:var(--p-text-color)}.builder .sidebar-switcher button.active,.builder .panel-switcher button.active{background:var(--iox-grad-brand, linear-gradient(135deg, #9B4458 0%, #8A3A72 50%, #63347F 100%));color:#fff}.builder .panel-dock{display:grid;grid-template-rows:auto minmax(0,1fr);flex:none;min-height:0;background:var(--p-surface-0);border:1px solid var(--iox-border-1, #DDE1E8);border-radius:var(--iox-radius-card, 20px);box-shadow:var(--iox-elev-1, 0 0 12px rgba(16, 27, 66, .05));overflow:hidden}.builder .builder-main{display:flex;flex:1 1 0;min-height:0;position:relative;overflow:hidden;gap:12px;padding:14px;background:transparent}.builder .sidebar{display:flex;flex-direction:column;inline-size:260px;min-inline-size:260px;background:var(--p-surface-0);border:1px solid var(--iox-border-1, #DDE1E8);border-radius:var(--iox-radius-card, 20px);box-shadow:var(--iox-elev-1, 0 0 12px rgba(16, 27, 66, .05));overflow:hidden;flex-shrink:0;min-block-size:0}.builder .sidebar .sidebar-body{flex:1;min-inline-size:0;overflow-y:auto;overflow-x:hidden}.builder .sidebar:dir(rtl),.builder .panel-dock:dir(rtl){direction:rtl}.builder .canvas-column{flex:1 1 0;min-width:0;min-height:0;display:flex;flex-direction:column;gap:10px}.builder .preview{flex:1 1 0;min-width:0;min-height:0;position:relative;overflow:hidden;background:transparent}.builder .preview.grab-mode{cursor:grab}.builder .preview.grab-mode iox-page-component{pointer-events:none}.builder .preview.grabbing{cursor:grabbing}.builder .canvas-scrollbar{position:absolute;right:4px;top:20px;bottom:20px;width:6px;z-index:20;opacity:0;transition:opacity .2s ease;pointer-events:none}.builder .canvas-scrollbar.visible{opacity:1}.builder .canvas-scrollbar-thumb{position:absolute;left:0;width:100%;background:#00000059;border-radius:3px;transition:top .05s linear}.builder .preview-scroll{position:absolute;inset:20px auto;inset-inline-start:50%;transform:translate(-50%);max-width:calc(100% - 40px);height:calc(100% - 40px);overflow:hidden}.builder .preview-lenis-content{position:relative;width:100%;overflow:hidden;contain:paint}.builder iox-page-component{position:absolute!important;top:0;bottom:auto!important;right:auto!important;left:50%;transform-origin:top center;overflow:visible!important;direction:ltr}.builder iox-page-component[dir=rtl]{direction:rtl}.builder iox-page-component{container:iox-canvas/inline-size;box-shadow:0 1px 4px #00000014,0 4px 16px #0000000a;transition:width .25s ease,transform .25s ease}.builder iox-page-component ::ng-deep .iox-page-wrapper{height:auto!important;overflow:visible!important}.builder #canvas-preview{background:#fff}.builder #canvas-preview[data-bar-reserve=iox-bar-reserve]{padding-block-end:calc(var(--iox-tabbar-height, 64px) + var(--iox-border-width, 1px) + var(--iox-tabbar-inset, 0px) * 2)}@container iox-canvas (max-width: 1200px){.builder #canvas-preview[data-bar-reserve=iox-bar-reserve-laptop]{padding-block-end:calc(var(--iox-tabbar-height, 64px) + var(--iox-border-width, 1px) + var(--iox-tabbar-inset, 0px) * 2)}}@container iox-canvas (max-width: 991px){.builder #canvas-preview[data-bar-reserve=iox-bar-reserve-tablet]{padding-block-end:calc(var(--iox-tabbar-height, 64px) + var(--iox-border-width, 1px) + var(--iox-tabbar-inset, 0px) * 2)}}@container iox-canvas (max-width: 767px){.builder #canvas-preview[data-bar-reserve=iox-bar-reserve-mobile]{padding-block-end:calc(var(--iox-tabbar-height, 64px) + var(--iox-border-width, 1px) + var(--iox-tabbar-inset, 0px) * 2)}}@container iox-canvas (max-width: 479px){.builder #canvas-preview[data-bar-reserve=iox-bar-reserve-small]{padding-block-end:calc(var(--iox-tabbar-height, 64px) + var(--iox-border-width, 1px) + var(--iox-tabbar-inset, 0px) * 2)}}.builder .empty-canvas{max-inline-size:560px;margin:0 auto;padding:48px 24px;text-align:center;color:#4b5563}.builder .empty-title{margin:0;font-size:18px;font-weight:600;color:#111827}.builder .empty-sub{margin:6px 0 20px;font-size:12px;line-height:1.5;color:#6b7280}.builder .empty-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.builder .empty-card{display:flex;flex-direction:column;align-items:center;gap:4px;padding:14px 10px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}.builder .empty-card:hover{border-color:#cb9090;box-shadow:0 2px 10px #0000000f}.builder .empty-card:focus-visible{outline:2px solid #cb9090;outline-offset:2px}.builder .empty-card i{font-size:20px;color:#a05c5c}.builder .empty-card-name{font-size:11.5px;font-weight:600;color:#111827}.builder .empty-card-desc{font-size:9.5px;line-height:1.35;color:#6b7280}.builder .empty-link{margin-block-start:16px;padding:0;border:none;background:none;font-size:11px;color:#a05c5c;cursor:pointer}.builder .empty-link:hover{text-decoration:underline}.builder .empty-link:focus-visible{outline:2px solid #cb9090;outline-offset:2px}.builder app-breadcrumb-bar{flex:none;align-self:center;max-inline-size:100%;display:flex;align-items:center;padding:5px 13px;background:#ffffffeb;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid var(--iox-border-1, #DDE1E8);border-radius:999px;box-shadow:0 6px 20px #101b421a;max-inline-size:calc(100% - 112px);pointer-events:none}.builder .audit-dock{position:absolute;inset-block-start:20px;inset-inline-end:16px;z-index:20}.builder .global-elements-overlay{position:absolute;top:20px;left:50%;transform-origin:top center;pointer-events:none;z-index:9;overflow:hidden;container:iox-canvas/inline-size;direction:ltr}.builder .global-elements-overlay[dir=rtl]{direction:rtl}.builder .global-elements-overlay ::ng-deep>*{pointer-events:auto}.builder .global-elements-overlay .iox-canvas-globals-before{display:flow-root;pointer-events:none}.builder .global-elements-overlay .iox-canvas-globals-before ::ng-deep>*{pointer-events:auto}.builder .preview-node.is-selected{cursor:grab}.builder .empty-state{min-height:240px;border:1px dashed var(--p-surface-200);border-radius:10px;display:flex;align-items:center;justify-content:center;color:var(--p-text-muted-color);text-align:center;padding:1rem}.save-block-backdrop{position:fixed;inset:0;z-index:1000;background:#00000040}.save-block-dialog{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1001;background:#fff;border-radius:8px;box-shadow:0 8px 32px #0000002e;padding:24px;width:320px}.save-block-dialog .save-block-title{margin:0 0 16px;font-size:14px;font-weight:600;color:var(--p-text-color, #333)}.save-block-dialog .save-block-input{width:100%;padding:8px 10px;border:1px solid var(--p-surface-300, #d1d5db);border-radius:6px;font-size:13px;outline:none;box-sizing:border-box;margin-bottom:16px}.save-block-dialog .save-block-input:focus{border-color:#cb9090;box-shadow:0 0 0 2px #cb909033}.save-block-dialog .save-block-actions{display:flex;justify-content:flex-end;gap:8px}::ng-deep .moveable-control-box.iox-moveable-silent{z-index:1000!important}::ng-deep .moveable-control-box.iox-moveable-silent .moveable-line,::ng-deep .moveable-control-box.iox-moveable-silent .moveable-rotation,::ng-deep .moveable-control-box.iox-moveable-silent .moveable-rotation-line{display:none!important}::ng-deep .moveable-control-box.iox-moveable-silent .moveable-control{display:block!important;width:10px!important;height:10px!important;margin-top:-5px!important;margin-inline-start:-5px!important;background:#fff!important;border:1.5px solid #cb9090!important;border-radius:2px!important;box-shadow:0 1px 3px #0003!important}\n"], dependencies: [{ kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i17.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i17.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i17.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i18.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i19.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: i20.Dialog, selector: "p-dialog", inputs: ["hostName", "header", "draggable", "resizable", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "appendTo", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "component", type: i2$1.IoxPageComponent, selector: "iox-page-component", inputs: ["class", "scroll"], outputs: ["scrollEvent"] }, { kind: "directive", type: RenderDirective, selector: "[ioxRender]", inputs: ["ioxRender", "ioxDragSourceId", "ioxPhrasing"], outputs: ["onClick", "onMouseEnter", "onMouseLeave"] }, { kind: "component", type: OverlayComponent, selector: "app-overlay", outputs: ["toolbarAction"] }, { kind: "component", type: ToolbarComponent, selector: "app-toolbar", inputs: ["activeMode", "activeBreakpoint", "breakpointCounts", "auditCount", "auditOpen", "activeZoom", "activeScreenWidth", "canUndo", "canRedo", "isSaving", "pageStatus", "publishChecking"], outputs: ["modeChange", "breakpointChange", "auditToggle", "zoomChange", "screenWidthChange", "undo", "redo", "save", "preview", "publishToggle"] }, { kind: "component", type: LayerTreeComponent, selector: "app-layer-tree", inputs: ["layout", "globalElements"], outputs: ["nodeSelect", "nodeAction", "nodeMove"] }, { kind: "component", type: BreadcrumbBarComponent, selector: "app-breadcrumb-bar", inputs: ["path"], outputs: ["nodeSelect", "rootSelect", "nodePeek"] }, { kind: "component", type: AuditPanelComponent, selector: "app-audit-panel", inputs: ["findings", "breakpointLabel", "running"], outputs: ["select", "fix", "fixAll", "rerun", "closePanel"] }] }); }
|
|
12522
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: BuilderComponent, isStandalone: false, selector: "app-builder", inputs: { layout: "layout", dataSources: "dataSources", orgId: "orgId", routeParams: "routeParams", pageName: "pageName", isSaving: "isSaving", pageStatus: "pageStatus", publishChecking: "publishChecking", pageSettings: "pageSettings", globalElements: "globalElements", pagePath: "pagePath", canUndo: "canUndo", canRedo: "canRedo", canvasLocale: "canvasLocale", moveableMode: "moveableMode" }, outputs: { save: "save", undo: "undo", redo: "redo", back: "back", preview: "preview", publishToggle: "publishToggle", pageSettingsChange: "pageSettingsChange", applyAnimationToAll: "applyAnimationToAll", saveBlock: "saveBlock", globalElementsChange: "globalElementsChange" }, providers: [{ provide: IOX_BUILDER_CANVAS, useValue: true }], viewQueries: [{ propertyName: "previewCanvas", first: true, predicate: ["previewCanvas"], descendants: true }, { propertyName: "previewScrollRef", first: true, predicate: ["previewScroll"], descendants: true }, { propertyName: "lenisContentRef", first: true, predicate: ["lenisContent"], descendants: true }, { propertyName: "globalOverlayRef", first: true, predicate: ["globalOverlay"], descendants: true }, { propertyName: "globalsBeforeRef", first: true, predicate: ["globalsBefore"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"builder\">\n\n <div class=\"builder-main\" [class.panel-open]=\"isPanelOpen\">\n <!-- The switcher is the panel's OWN tab bar. It used to live in the header, at the\n maximum possible distance from the thing it controls; attached, the column and the\n panel are one card with one shadow. See board D2. -->\n <aside class=\"sidebar\">\n <div class=\"sidebar-switcher\">\n <button (click)=\"activeSidebar = 'pages'\" [class.active]=\"activeSidebar === 'pages'\" title=\"Pages\" aria-label=\"Pages\">\n <i class=\"ph-thin ph-browsers\"></i>\n </button>\n <button (click)=\"activeSidebar = 'components'\" [class.active]=\"activeSidebar === 'components'\" title=\"Components\" aria-label=\"Components\">\n <i class=\"ph-thin ph-cube\"></i>\n </button>\n <button (click)=\"activeSidebar = 'tree'\" [class.active]=\"activeSidebar === 'tree'\" title=\"Layers\" aria-label=\"Layers\">\n <i class=\"ph-thin ph-tree-structure\"></i>\n </button>\n <button (click)=\"activeSidebar = 'tokens'\" [class.active]=\"activeSidebar === 'tokens'\" title=\"Design Tokens\" aria-label=\"Design Tokens\">\n <i class=\"ph-thin ph-circles-three\"></i>\n </button>\n </div>\n <div class=\"sidebar-body\">\n @if (activeSidebar === 'pages') {\n <div class=\"sidebar-slot\">\n <ng-content select=\"[builderPages]\"></ng-content>\n </div>\n }\n @if (activeSidebar === 'components') {\n <div class=\"sidebar-slot\">\n <ng-content select=\"[builderComponents]\"></ng-content>\n </div>\n }\n @if (activeSidebar === 'tokens') {\n <div class=\"sidebar-slot\">\n <ng-content select=\"[builderTokens]\"></ng-content>\n </div>\n }\n @if (activeSidebar === 'tree') {\n <app-layer-tree\n [layout]=\"layout\"\n [globalElements]=\"globalElements\"\n (nodeSelect)=\"onTreeNodeSelect($event)\"\n (nodeAction)=\"onTreeNodeAction($event)\"\n (nodeMove)=\"onTreeNodeMove()\"></app-layer-tree>\n }\n </div>\n </aside>\n\n <!-- \u26A0\uFE0F The strips are SIBLINGS of .preview, not children of it. Board D2 floated them\n over the canvas and that is what they did \u2014 over the page being edited, which is the\n one thing in the builder that must stay clear. They keep their pill shape and their\n centre alignment; they just take their own row.\n\n Siblings, specifically, rather than a wrapper INSIDE .preview: `previewCanvas` is the\n overlay container and the coordinate origin for the selection box, the drag clone,\n Lenis and the zoom maths (nine call sites). Nesting anything between it and the canvas\n would shift every one of them by the strip's height. -->\n <div class=\"canvas-column\" [style.margin-left.px]=\"coverSide === CoverSide.Left ? (coverInset || null) : null\" [style.margin-right.px]=\"coverSide === CoverSide.Right ? (coverInset || null) : null\">\n <!-- \u2460 THE ACTION STRIP \u2014 floating, top-centre (board D2). It was a solid\n full-width header bar costing 56px of height on every screen; the canvas now\n starts at the top of the viewport and the strip hovers over it.\n stopPropagation for the same reason the breadcrumb does: .preview's (click)\n is \"you clicked empty canvas, drop the selection\". -->\n <div class=\"toolbar-strip\" (click)=\"$event.stopPropagation()\">\n <app-toolbar\n [activeMode]=\"activeMode\"\n [activeBreakpoint]=\"activeBreakpoint\"\n [breakpointCounts]=\"breakpointCounts\"\n [auditCount]=\"auditFindings.length || structureFindings.length\"\n [auditOpen]=\"auditOpen\"\n [activeZoom]=\"activeZoom\"\n [activeScreenWidth]=\"activeScreenWidth\"\n [isSaving]=\"isSaving\"\n [pageStatus]=\"pageStatus\"\n [publishChecking]=\"publishChecking\"\n [canUndo]=\"canUndo\"\n [canRedo]=\"canRedo\"\n (modeChange)=\"handleToolbarModeChange($event)\"\n (breakpointChange)=\"handleToolbarBreakpointChange($event)\"\n (auditToggle)=\"toggleAudit()\"\n (zoomChange)=\"handleToolbarZoomChange($event)\"\n (screenWidthChange)=\"handleToolbarScreenWidthChange($event)\"\n (save)=\"save.emit()\"\n (preview)=\"preview.emit()\"\n (publishToggle)=\"publishToggle.emit()\"\n (undo)=\"undo.emit()\"\n (redo)=\"redo.emit()\">\n <ng-content select=\"[builderToolbarActions]\"></ng-content>\n </app-toolbar>\n </div>\n\n <main #previewCanvas class=\"preview\"\n [class.grab-mode]=\"activeMode === builderModes.Pan\"\n [class.grabbing]=\"isPanning\"\n (click)=\"handleCanvasClick()\"\n (mousedown)=\"onBoardMouseDown($event)\"\n (mousemove)=\"onBoardMouseMove($event)\"\n (mouseup)=\"onBoardMouseUp()\"\n (mouseleave)=\"onBoardMouseUp()\"\n (dragstart)=\"onNativeDragStart($event)\">\n <app-overlay (toolbarAction)=\"onToolbarAction($event)\"></app-overlay>\n\n <!-- Responsive audit (A5) \u2014 floats over the canvas, right gutter. -->\n @if (auditOpen) {\n <div class=\"audit-dock\" (click)=\"$event.stopPropagation()\">\n <app-audit-panel\n [findings]=\"auditFindings\"\n [breakpointLabel]=\"auditBreakpointLabel\"\n [running]=\"auditRunning\"\n (select)=\"selectAuditNode($event)\"\n (fix)=\"applyAuditFix($event)\"\n (fixAll)=\"applyAllAuditFixes()\"\n (rerun)=\"runAudit()\"\n (closePanel)=\"toggleAudit()\"></app-audit-panel>\n </div>\n }\n\n <!-- Empty page (B4): a starting point beats a blank canvas. Each starter is a responsive layout preset \u2014\n ordinary nodes, editable afterwards. It is builder CHROME (iox-ui#168): it floats over the canvas like the\n audit dock \u2014 absolutely placed, so nothing in .preview moves \u2014 and never inside the zoomed frame, so its\n words are drawn at their own size in the admin's font (inside iox-page-component they took the frame's\n zoom, 11px \u2192 ~6px at 57%, and the page's font). The words are the builder's own (IOX_BUILDER_LABELS,\n iox-ui#163): `dir=\"auto\"` reads their direction \u2014 the ADMIN's language \u2014 whatever the page's is. Click and\n press stop here: .preview's (click) drops the selection, its (mousedown) starts a pan. -->\n @if (isPageEmpty) {\n <div class=\"empty-canvas\" dir=\"auto\" (click)=\"$event.stopPropagation()\" (mousedown)=\"$event.stopPropagation()\">\n <h2 class=\"empty-title\">{{ chromeWord('builder.chrome.startTitle') }}</h2>\n <p class=\"empty-sub\">{{ chromeWord('builder.chrome.startSub') }}</p>\n <div class=\"empty-grid\">\n @for (starter of starterLayouts; track starter.id) {\n <button type=\"button\" class=\"empty-card\" (click)=\"startWithLayout(starter)\">\n <i [class]=\"starter.icon\" aria-hidden=\"true\"></i>\n <span class=\"empty-card-name\">{{ starterName(starter) }}</span>\n <span class=\"empty-card-desc\">{{ starterDescription(starter) }}</span>\n </button>\n }\n </div>\n <button type=\"button\" class=\"empty-link\" (click)=\"browseComponents()\">{{ chromeWord('builder.chrome.startSingle') }}</button>\n </div>\n }\n\n <!-- Custom Lenis scrollbar \u2014 lives in .preview (not .preview-scroll) so it\n stays in the right gutter and never overlaps the canvas at large widths.\n No translateY counteract needed since it isn't inside the Lenis wrapper. -->\n <div class=\"canvas-scrollbar\"\n [class.visible]=\"isScrollbarVisible\">\n <div class=\"canvas-scrollbar-thumb\"\n [style.height.px]=\"scrollThumbHeight\"\n [style.top.px]=\"scrollThumbTop\">\n </div>\n </div>\n\n <!-- Global elements overlay \u2014 outside Lenis so position:fixed children\n stay pinned to the canvas viewport rather than scrolling with content.\n Shares viewportTransform so elements scale correctly at any zoom level.\n Height is the frame a pinned global sits in (globalOverlayHeight: the canvas\n slot, or the page on a short page), bound in px so position:fixed + inset:0\n fills it (CSS calc(100%) would give the wrong containing-block height). -->\n @if (globalElements.length) {\n <div\n #globalOverlay\n class=\"global-elements-overlay iox-token-scope\"\n [attr.dir]=\"canvasDir\"\n [attr.lang]=\"canvasLocale || null\"\n [attr.data-iox-column]=\"columnWord\"\n [ngStyle]=\"globalLayerCss\"\n [style.width.px]=\"viewportWidth\"\n [style.height.px]=\"globalOverlayHeight\"\n [style.transform]=\"viewportTransform\">\n <!-- BEFORE globals stay here, in the frame (a Dialog inside a header must fill the frame,\n not scroll away with the page). Their wrapper's height is what the in-flow ones take,\n and the page reserves it at its top (canvasHeaderReserve, iox-ui#19). -->\n @if (globalElementsBefore.length) {\n <div #globalsBefore class=\"iox-canvas-globals-before\" [attr.data-iox-opening]=\"openingScheme\">\n @for (item of globalElementsBefore; track item) {\n <ng-container [ioxRender]=\"item\"\n (onClick)=\"handleClick($event)\"\n (onMouseEnter)=\"handleMouseEnter($event)\"\n (onMouseLeave)=\"handleMouseLeave()\">\n </ng-container>\n }\n </div>\n }\n <!-- The PINNED after globals (a fixed bottom bar, a Dialog). An in-flow AFTER global (a\n footer) is drawn in the page, after its content (iox-ui#12). -->\n @for (item of globalElementsPinnedAfter; track item) {\n <ng-container [ioxRender]=\"item\"\n (onClick)=\"handleClick($event)\"\n (onMouseEnter)=\"handleMouseEnter($event)\"\n (onMouseLeave)=\"handleMouseLeave()\">\n </ng-container>\n }\n </div>\n }\n\n <div class=\"preview-scroll\"\n #previewScroll\n [style.width.px]=\"viewportScaledWidth\"\n [class.pan-mode]=\"activeMode === builderModes.Pan\">\n\n <!-- Lenis content proxy: height = realContentHeight \u00D7 scale.\n Lenis scrolls against this value so scroll range is always in\n visual px \u2014 correct at any zoom level. -->\n <div class=\"preview-lenis-content\" #lenisContent\n [style.height.px]=\"scaledContentHeight\">\n\n <!-- iox-token-scope: the ORG's design tokens are declared on this class, not :root\n (StyleRegistryService.upsertTokens), so they never repaint the admin chrome. -->\n <iox-page-component class=\"iox-token-scope\"\n [attr.dir]=\"canvasDir\"\n [attr.lang]=\"canvasLocale || null\"\n [attr.data-iox-column]=\"columnWord\"\n [style.width.px]=\"viewportWidth\"\n [style.height.px]=\"canvasFrameHeight || viewportHeight\"\n [style.transform]=\"viewportTransform\">\n\n <!-- ngStyle carries the page's own background/typography (pageSettings.style),\n compiled by the SAME function the engine applies to <body>. Inline wins over\n the #canvas-preview white default, which stays as the unset fallback. -->\n <div class=\"canvas-viewport\"\n id=\"canvas-preview\"\n [attr.data-bar-reserve]=\"canvasBarReserve\"\n [style.padding-block-start.px]=\"canvasHeaderReserve || null\"\n [ngStyle]=\"pageStyleCss\"\n [style.min-height.px]=\"canvasMinHeight\">\n\n <!-- WRAPPER COLLAPSE (task 9c): top-level nodes render DIRECTLY into the\n canvas viewport \u2014 no .preview-node wrapper; iox-outer + drag move to the\n host (RenderDirective, via ioxDragSourceId). -->\n @for (item of layout; track item) {\n <ng-container\n [ioxRender]=\"item\"\n [ioxDragSourceId]=\"'canvas-preview'\"\n (onClick)=\"handleClick($event)\"\n (onMouseEnter)=\"handleMouseEnter($event)\"\n (onMouseLeave)=\"handleMouseLeave()\">\n </ng-container>\n }\n\n <!-- In-flow AFTER globals (a footer) follow the page's content, inside the page's\n ground, as on the live site (iox-ui#12). Not part of the layout: the drag\n engine skips this wrapper (GLOBALS_AFTER_CLASS). -->\n @if (globalElementsInPage.length) {\n <div [class]=\"globalsAfterClass\">\n @for (item of globalElementsInPage; track item) {\n <ng-container [ioxRender]=\"item\"\n (onClick)=\"handleClick($event)\"\n (onMouseEnter)=\"handleMouseEnter($event)\"\n (onMouseLeave)=\"handleMouseLeave()\">\n </ng-container>\n }\n </div>\n }\n </div>\n </iox-page-component>\n </div>\n </div>\n </main>\n <!-- \u2462 THE ELEMENT PATH \u2014 a thin floating strip, BOTTOM-CENTRE (board D2). It is\n pinned to the PREVIEW VIEWPORT, not to the canvas frame: the frame pans and\n scales, so a breadcrumb tracking its edge would drift off-screen and shrink with\n zoom. It used to sit in the top gutter, which is where the eye is least often \u2014\n and where the floating action strip now lives.\n\n \u26A0\uFE0F stopPropagation is REQUIRED, not defensive. This element lives inside .preview,\n whose (click) is handleCanvasClick() \u2014 \"you clicked empty canvas, drop the\n selection\". Without it, picking an ancestor crumb selects that node and then\n immediately bubbles into the canvas handler, which clears it: the selection and the\n layer-tree highlight both fall back to Body. Same reason .audit-dock stops its own. -->\n <app-breadcrumb-bar\n (click)=\"$event.stopPropagation()\"\n [path]=\"selectedPath\"\n (nodeSelect)=\"onCrumbSelect($event)\"\n (rootSelect)=\"onCrumbRootSelect()\"\n (nodePeek)=\"onCrumbPeek($event)\">\n </app-breadcrumb-bar>\n\n <!-- \u2463 THE SCENE TIMELINE (premium sites SC2, board G) \u2014 its own row under the canvas, projected from the host\n like every panel, and only there while the page holds a Scene. A sibling of .preview for the reason above. -->\n <ng-content select=\"[builderTimeline]\"></ng-content>\n\n </div>\n\n <!-- Same rule as the sidebar: the switcher belongs to the panel it drives, as a\n tab ROW across its top. -->\n <div class=\"panel-dock\">\n <div class=\"panel-switcher\">\n <button (click)=\"selectPanel(panelTypes.BINDINGS)\" [class.active]=\"activePanel === panelTypes.BINDINGS\" title=\"Bindings\">\n <i class=\"ph-thin ph-plugs-connected\"></i>\n </button>\n <button (click)=\"selectPanel(panelTypes.STYLES)\" [class.active]=\"activePanel === panelTypes.STYLES\" title=\"Styles\">\n <i class=\"ph-thin ph-paint-brush\"></i>\n </button>\n <button (click)=\"selectPanel(panelTypes.PAGE)\" [class.active]=\"activePanel === panelTypes.PAGE\" title=\"Page settings\" aria-label=\"Page settings\">\n <i class=\"ph-thin ph-gear-six\"></i>\n </button>\n <button (click)=\"selectPanel(panelTypes.INTERACTIONS)\" [class.active]=\"activePanel === panelTypes.INTERACTIONS\" title=\"Interactions\">\n <i class=\"ph-thin ph-lightning\"></i>\n </button>\n <button (click)=\"selectPanel(panelTypes.ASK)\" [class.active]=\"activePanel === panelTypes.ASK\" title=\"Ask AI\" aria-label=\"Ask AI\" data-panel-tab=\"ask\">\n <i class=\"ph-thin ph-sparkle\"></i>\n </button>\n </div>\n <ng-content select=\"[builderPanel]\"></ng-content>\n </div>\n </div>\n\n <!-- Save as Reusable Block dialog -->\n <!-- A tab or a panel deleted alone (CC4a \u2014 composite T18): the pair goes together, so the delete is offered for\n both. Every delete path asks the one guard; this is its answer. -->\n <p-dialog [visible]=\"!!pendingPairRemoval\" (visibleChange)=\"$event || cancelPairRemoval()\" [modal]=\"true\" [closable]=\"true\"\n [draggable]=\"false\" [resizable]=\"false\" [header]=\"pairRemovalText('builder.chrome.deletePairTitle')\" styleClass=\"iox-pair-removal-dialog\"\n appendTo=\"body\" [style]=\"{ width: '400px' }\">\n <p class=\"pair-removal-body\">{{ pairRemovalText('builder.chrome.deletePairBody') }}</p>\n <ng-template pTemplate=\"footer\">\n <p-button size=\"small\" severity=\"secondary\" [label]=\"pairRemovalText('builder.chrome.cancel')\" (onClick)=\"cancelPairRemoval()\"></p-button>\n <p-button size=\"small\" severity=\"danger\" [label]=\"pairRemovalText('builder.chrome.deletePair')\" (onClick)=\"confirmPairRemoval()\"></p-button>\n </ng-template>\n </p-dialog>\n\n @if (showSaveBlockDialog) {\n <div class=\"save-block-backdrop\" (click)=\"cancelSaveBlock()\"></div>\n <div class=\"save-block-dialog\" (click)=\"$event.stopPropagation()\">\n <h4 class=\"save-block-title\">Save as Reusable Block</h4>\n <input class=\"save-block-input\"\n type=\"text\"\n placeholder=\"Block name...\"\n [(ngModel)]=\"saveBlockName\"\n (keydown.enter)=\"confirmSaveBlock()\"\n (keydown.escape)=\"cancelSaveBlock()\"\n autofocus>\n <div class=\"save-block-actions\">\n <p-button size=\"small\" severity=\"secondary\" label=\"Cancel\" (click)=\"cancelSaveBlock()\"></p-button>\n <p-button size=\"small\" label=\"Save\" [disabled]=\"!saveBlockName.trim()\" (click)=\"confirmSaveBlock()\"></p-button>\n </div>\n </div>\n }\n</div>", styles: ["@charset \"UTF-8\";:host{display:flex;flex:1;min-height:0;overflow:hidden}.builder{display:flex;flex-direction:column;direction:ltr;width:100%;height:100%;min-height:0;border-radius:0;overflow:hidden;position:relative}.builder .toolbar-strip{flex:none;align-self:center;max-inline-size:100%;display:flex;align-items:center;padding:6px 8px;background:#ffffffeb;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid var(--iox-border-1, #DDE1E8);border-radius:999px;box-shadow:0 6px 20px #101b421a;max-inline-size:calc(100% - 40px);overflow-x:auto;scrollbar-width:none}.builder .toolbar-strip::-webkit-scrollbar{display:none}.builder .sidebar-switcher,.builder .panel-switcher{flex:none;display:flex;flex-direction:row;align-items:center;gap:.375rem;padding:7px 10px;background:var(--p-surface-0);border-block-end:1px solid var(--iox-neutral-100, #EDEFF3)}.builder .sidebar-switcher button,.builder .panel-switcher button{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;border:none;background:var(--iox-surface-3, #F6F7F9);color:var(--p-text-muted-color);cursor:pointer;font-size:1rem;transition:background .15s ease-out,color .15s ease-out}.builder .sidebar-switcher button i,.builder .panel-switcher button i{pointer-events:none}.builder .sidebar-switcher button:hover,.builder .panel-switcher button:hover{background:var(--iox-rose-100, #F8EAEA);color:var(--p-text-color)}.builder .sidebar-switcher button.active,.builder .panel-switcher button.active{background:var(--iox-grad-brand, linear-gradient(135deg, #9B4458 0%, #8A3A72 50%, #63347F 100%));color:#fff}.builder .panel-dock{display:grid;grid-template-rows:auto minmax(0,1fr);flex:none;min-height:0;background:var(--p-surface-0);border:1px solid var(--iox-border-1, #DDE1E8);border-radius:var(--iox-radius-card, 20px);box-shadow:var(--iox-elev-1, 0 0 12px rgba(16, 27, 66, .05));overflow:hidden}.builder .builder-main{display:flex;flex:1 1 0;min-height:0;position:relative;overflow:hidden;gap:12px;padding:14px;background:transparent}.builder .sidebar{display:flex;flex-direction:column;inline-size:260px;min-inline-size:260px;background:var(--p-surface-0);border:1px solid var(--iox-border-1, #DDE1E8);border-radius:var(--iox-radius-card, 20px);box-shadow:var(--iox-elev-1, 0 0 12px rgba(16, 27, 66, .05));overflow:hidden;flex-shrink:0;min-block-size:0}.builder .sidebar .sidebar-body{flex:1;min-inline-size:0;overflow-y:auto;overflow-x:hidden}.builder .sidebar:dir(rtl),.builder .panel-dock:dir(rtl){direction:rtl}.builder .canvas-column{flex:1 1 0;min-width:0;min-height:0;display:flex;flex-direction:column;gap:10px}.builder .preview{flex:1 1 0;min-width:0;min-height:0;position:relative;overflow:hidden;background:transparent}.builder .preview.grab-mode{cursor:grab}.builder .preview.grab-mode iox-page-component{pointer-events:none}.builder .preview.grabbing{cursor:grabbing}.builder .canvas-scrollbar{position:absolute;right:4px;top:20px;bottom:20px;width:6px;z-index:20;opacity:0;transition:opacity .2s ease;pointer-events:none}.builder .canvas-scrollbar.visible{opacity:1}.builder .canvas-scrollbar-thumb{position:absolute;left:0;width:100%;background:#00000059;border-radius:3px;transition:top .05s linear}.builder .preview-scroll{position:absolute;inset:20px auto;inset-inline-start:50%;transform:translate(-50%);max-width:calc(100% - 40px);height:calc(100% - 40px);overflow:hidden}.builder .preview-lenis-content{position:relative;width:100%;overflow:hidden;contain:paint}.builder iox-page-component{position:absolute!important;top:0;bottom:auto!important;right:auto!important;left:50%;transform-origin:top center;overflow:visible!important;direction:ltr}.builder iox-page-component[dir=rtl]{direction:rtl}.builder iox-page-component{container:iox-canvas/inline-size;box-shadow:0 1px 4px #00000014,0 4px 16px #0000000a;transition:width .25s ease,transform .25s ease}.builder iox-page-component ::ng-deep .iox-page-wrapper{height:auto!important;overflow:visible!important}.builder #canvas-preview{background:#fff}.builder #canvas-preview[data-bar-reserve=iox-bar-reserve]{padding-block-end:calc(var(--iox-tabbar-height, 64px) + var(--iox-border-width, 1px) + var(--iox-tabbar-inset, 0px) * 2)}@container iox-canvas (max-width: 1200px){.builder #canvas-preview[data-bar-reserve=iox-bar-reserve-laptop]{padding-block-end:calc(var(--iox-tabbar-height, 64px) + var(--iox-border-width, 1px) + var(--iox-tabbar-inset, 0px) * 2)}}@container iox-canvas (max-width: 991px){.builder #canvas-preview[data-bar-reserve=iox-bar-reserve-tablet]{padding-block-end:calc(var(--iox-tabbar-height, 64px) + var(--iox-border-width, 1px) + var(--iox-tabbar-inset, 0px) * 2)}}@container iox-canvas (max-width: 767px){.builder #canvas-preview[data-bar-reserve=iox-bar-reserve-mobile]{padding-block-end:calc(var(--iox-tabbar-height, 64px) + var(--iox-border-width, 1px) + var(--iox-tabbar-inset, 0px) * 2)}}@container iox-canvas (max-width: 479px){.builder #canvas-preview[data-bar-reserve=iox-bar-reserve-small]{padding-block-end:calc(var(--iox-tabbar-height, 64px) + var(--iox-border-width, 1px) + var(--iox-tabbar-inset, 0px) * 2)}}.builder .empty-canvas{position:absolute;inset-block-start:40px;inset-inline:0;margin-inline:auto;z-index:11;inline-size:min(560px,100% - 80px);max-block-size:calc(100% - 80px);overflow-y:auto;box-sizing:border-box;padding:24px;text-align:center;color:var(--iox-text-2, #535D6E);background:#ffffffeb;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid var(--iox-border-1, #DDE1E8);border-radius:20px;box-shadow:0 6px 20px #101b421a;cursor:default}.builder .empty-title{margin:0;font-size:14px;font-weight:600;line-height:1.4;color:var(--iox-text-1, #101B42)}.builder .empty-sub{margin:6px 0 16px;font-size:12px;line-height:1.5;color:var(--iox-text-2, #535D6E)}.builder .empty-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px}.builder .empty-card{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 8px;border:1px solid var(--iox-border-1, #DDE1E8);border-radius:14px;background:#fff;cursor:pointer;font:inherit;transition:border-color .15s ease-out,box-shadow .15s ease-out,transform .12s cubic-bezier(.23,1,.32,1)}@media(hover:hover)and (pointer:fine){.builder .empty-card:hover{border-color:#cb9090;box-shadow:0 2px 10px #0000000f}}.builder .empty-card:active{transform:scale(.97)}.builder .empty-card:focus-visible{outline:2px solid #cb9090;outline-offset:2px}.builder .empty-card i{font-size:20px;color:var(--iox-accent-text, #A05C5C)}.builder .empty-card-name{font-size:12px;font-weight:600;color:var(--iox-text-1, #101B42)}.builder .empty-card-desc{font-size:11px;line-height:1.4;color:var(--iox-text-2, #535D6E)}.builder .empty-link{margin-block-start:16px;padding:0;border:none;background:none;font:inherit;font-size:12px;color:var(--iox-accent-text, #A05C5C);cursor:pointer}@media(hover:hover)and (pointer:fine){.builder .empty-link:hover{text-decoration:underline}}.builder .empty-link:focus-visible{outline:2px solid #cb9090;outline-offset:2px}.builder app-breadcrumb-bar{flex:none;align-self:center;max-inline-size:100%;display:flex;align-items:center;padding:5px 13px;background:#ffffffeb;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid var(--iox-border-1, #DDE1E8);border-radius:999px;box-shadow:0 6px 20px #101b421a;max-inline-size:calc(100% - 112px);pointer-events:none}.builder .audit-dock{position:absolute;inset-block-start:20px;inset-inline-end:16px;z-index:20}.builder .global-elements-overlay{position:absolute;top:20px;left:50%;transform-origin:top center;pointer-events:none;z-index:9;overflow:hidden;container:iox-canvas/inline-size;direction:ltr}.builder .global-elements-overlay[dir=rtl]{direction:rtl}.builder .global-elements-overlay ::ng-deep>*{pointer-events:auto}.builder .global-elements-overlay .iox-canvas-globals-before{display:flow-root;pointer-events:none}.builder .global-elements-overlay .iox-canvas-globals-before ::ng-deep>*{pointer-events:auto}.builder .preview-node.is-selected{cursor:grab}.builder .empty-state{min-height:240px;border:1px dashed var(--p-surface-200);border-radius:10px;display:flex;align-items:center;justify-content:center;color:var(--p-text-muted-color);text-align:center;padding:1rem}.save-block-backdrop{position:fixed;inset:0;z-index:1000;background:#00000040}.save-block-dialog{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1001;background:#fff;border-radius:8px;box-shadow:0 8px 32px #0000002e;padding:24px;width:320px}.save-block-dialog .save-block-title{margin:0 0 16px;font-size:14px;font-weight:600;color:var(--p-text-color, #333)}.save-block-dialog .save-block-input{width:100%;padding:8px 10px;border:1px solid var(--p-surface-300, #d1d5db);border-radius:6px;font-size:13px;outline:none;box-sizing:border-box;margin-bottom:16px}.save-block-dialog .save-block-input:focus{border-color:#cb9090;box-shadow:0 0 0 2px #cb909033}.save-block-dialog .save-block-actions{display:flex;justify-content:flex-end;gap:8px}::ng-deep .moveable-control-box.iox-moveable-silent{z-index:1000!important}::ng-deep .moveable-control-box.iox-moveable-silent .moveable-line,::ng-deep .moveable-control-box.iox-moveable-silent .moveable-rotation,::ng-deep .moveable-control-box.iox-moveable-silent .moveable-rotation-line{display:none!important}::ng-deep .moveable-control-box.iox-moveable-silent .moveable-control{display:block!important;width:10px!important;height:10px!important;margin-top:-5px!important;margin-inline-start:-5px!important;background:#fff!important;border:1.5px solid #cb9090!important;border-radius:2px!important;box-shadow:0 1px 3px #0003!important}\n"], dependencies: [{ kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i17.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i17.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i17.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i18.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i19.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: i20.Dialog, selector: "p-dialog", inputs: ["hostName", "header", "draggable", "resizable", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "appendTo", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "component", type: i2$1.IoxPageComponent, selector: "iox-page-component", inputs: ["class", "scroll"], outputs: ["scrollEvent"] }, { kind: "directive", type: RenderDirective, selector: "[ioxRender]", inputs: ["ioxRender", "ioxDragSourceId", "ioxPhrasing"], outputs: ["onClick", "onMouseEnter", "onMouseLeave"] }, { kind: "component", type: OverlayComponent, selector: "app-overlay", outputs: ["toolbarAction"] }, { kind: "component", type: ToolbarComponent, selector: "app-toolbar", inputs: ["activeMode", "activeBreakpoint", "breakpointCounts", "auditCount", "auditOpen", "activeZoom", "activeScreenWidth", "canUndo", "canRedo", "isSaving", "pageStatus", "publishChecking"], outputs: ["modeChange", "breakpointChange", "auditToggle", "zoomChange", "screenWidthChange", "undo", "redo", "save", "preview", "publishToggle"] }, { kind: "component", type: LayerTreeComponent, selector: "app-layer-tree", inputs: ["layout", "globalElements"], outputs: ["nodeSelect", "nodeAction", "nodeMove"] }, { kind: "component", type: BreadcrumbBarComponent, selector: "app-breadcrumb-bar", inputs: ["path"], outputs: ["nodeSelect", "rootSelect", "nodePeek"] }, { kind: "component", type: AuditPanelComponent, selector: "app-audit-panel", inputs: ["findings", "breakpointLabel", "running"], outputs: ["select", "fix", "fixAll", "rerun", "closePanel"] }] }); }
|
|
12430
12523
|
}
|
|
12431
12524
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: BuilderComponent, decorators: [{
|
|
12432
12525
|
type: Component,
|
|
12433
|
-
args: [{ selector: 'app-builder', standalone: false, providers: [{ provide: IOX_BUILDER_CANVAS, useValue: true }], template: "<div class=\"builder\">\n\n <div class=\"builder-main\" [class.panel-open]=\"isPanelOpen\">\n <!-- The switcher is the panel's OWN tab bar. It used to live in the header, at the\n maximum possible distance from the thing it controls; attached, the column and the\n panel are one card with one shadow. See board D2. -->\n <aside class=\"sidebar\">\n <div class=\"sidebar-switcher\">\n <button (click)=\"activeSidebar = 'pages'\" [class.active]=\"activeSidebar === 'pages'\" title=\"Pages\" aria-label=\"Pages\">\n <i class=\"ph-thin ph-browsers\"></i>\n </button>\n <button (click)=\"activeSidebar = 'components'\" [class.active]=\"activeSidebar === 'components'\" title=\"Components\" aria-label=\"Components\">\n <i class=\"ph-thin ph-cube\"></i>\n </button>\n <button (click)=\"activeSidebar = 'tree'\" [class.active]=\"activeSidebar === 'tree'\" title=\"Layers\" aria-label=\"Layers\">\n <i class=\"ph-thin ph-tree-structure\"></i>\n </button>\n <button (click)=\"activeSidebar = 'tokens'\" [class.active]=\"activeSidebar === 'tokens'\" title=\"Design Tokens\" aria-label=\"Design Tokens\">\n <i class=\"ph-thin ph-circles-three\"></i>\n </button>\n </div>\n <div class=\"sidebar-body\">\n @if (activeSidebar === 'pages') {\n <div class=\"sidebar-slot\">\n <ng-content select=\"[builderPages]\"></ng-content>\n </div>\n }\n @if (activeSidebar === 'components') {\n <div class=\"sidebar-slot\">\n <ng-content select=\"[builderComponents]\"></ng-content>\n </div>\n }\n @if (activeSidebar === 'tokens') {\n <div class=\"sidebar-slot\">\n <ng-content select=\"[builderTokens]\"></ng-content>\n </div>\n }\n @if (activeSidebar === 'tree') {\n <app-layer-tree\n [layout]=\"layout\"\n [globalElements]=\"globalElements\"\n (nodeSelect)=\"onTreeNodeSelect($event)\"\n (nodeAction)=\"onTreeNodeAction($event)\"\n (nodeMove)=\"onTreeNodeMove()\"></app-layer-tree>\n }\n </div>\n </aside>\n\n <!-- \u26A0\uFE0F The strips are SIBLINGS of .preview, not children of it. Board D2 floated them\n over the canvas and that is what they did \u2014 over the page being edited, which is the\n one thing in the builder that must stay clear. They keep their pill shape and their\n centre alignment; they just take their own row.\n\n Siblings, specifically, rather than a wrapper INSIDE .preview: `previewCanvas` is the\n overlay container and the coordinate origin for the selection box, the drag clone,\n Lenis and the zoom maths (nine call sites). Nesting anything between it and the canvas\n would shift every one of them by the strip's height. -->\n <div class=\"canvas-column\" [style.margin-left.px]=\"coverSide === CoverSide.Left ? (coverInset || null) : null\" [style.margin-right.px]=\"coverSide === CoverSide.Right ? (coverInset || null) : null\">\n <!-- \u2460 THE ACTION STRIP \u2014 floating, top-centre (board D2). It was a solid\n full-width header bar costing 56px of height on every screen; the canvas now\n starts at the top of the viewport and the strip hovers over it.\n stopPropagation for the same reason the breadcrumb does: .preview's (click)\n is \"you clicked empty canvas, drop the selection\". -->\n <div class=\"toolbar-strip\" (click)=\"$event.stopPropagation()\">\n <app-toolbar\n [activeMode]=\"activeMode\"\n [activeBreakpoint]=\"activeBreakpoint\"\n [breakpointCounts]=\"breakpointCounts\"\n [auditCount]=\"auditFindings.length || structureFindings.length\"\n [auditOpen]=\"auditOpen\"\n [activeZoom]=\"activeZoom\"\n [activeScreenWidth]=\"activeScreenWidth\"\n [isSaving]=\"isSaving\"\n [pageStatus]=\"pageStatus\"\n [publishChecking]=\"publishChecking\"\n [canUndo]=\"canUndo\"\n [canRedo]=\"canRedo\"\n (modeChange)=\"handleToolbarModeChange($event)\"\n (breakpointChange)=\"handleToolbarBreakpointChange($event)\"\n (auditToggle)=\"toggleAudit()\"\n (zoomChange)=\"handleToolbarZoomChange($event)\"\n (screenWidthChange)=\"handleToolbarScreenWidthChange($event)\"\n (save)=\"save.emit()\"\n (preview)=\"preview.emit()\"\n (publishToggle)=\"publishToggle.emit()\"\n (undo)=\"undo.emit()\"\n (redo)=\"redo.emit()\">\n <ng-content select=\"[builderToolbarActions]\"></ng-content>\n </app-toolbar>\n </div>\n\n <main #previewCanvas class=\"preview\"\n [class.grab-mode]=\"activeMode === builderModes.Pan\"\n [class.grabbing]=\"isPanning\"\n (click)=\"handleCanvasClick()\"\n (mousedown)=\"onBoardMouseDown($event)\"\n (mousemove)=\"onBoardMouseMove($event)\"\n (mouseup)=\"onBoardMouseUp()\"\n (mouseleave)=\"onBoardMouseUp()\"\n (dragstart)=\"onNativeDragStart($event)\">\n <app-overlay (toolbarAction)=\"onToolbarAction($event)\"></app-overlay>\n\n <!-- Responsive audit (A5) \u2014 floats over the canvas, right gutter. -->\n @if (auditOpen) {\n <div class=\"audit-dock\" (click)=\"$event.stopPropagation()\">\n <app-audit-panel\n [findings]=\"auditFindings\"\n [breakpointLabel]=\"auditBreakpointLabel\"\n [running]=\"auditRunning\"\n (select)=\"selectAuditNode($event)\"\n (fix)=\"applyAuditFix($event)\"\n (fixAll)=\"applyAllAuditFixes()\"\n (rerun)=\"runAudit()\"\n (closePanel)=\"toggleAudit()\"></app-audit-panel>\n </div>\n }\n\n <!-- Custom Lenis scrollbar \u2014 lives in .preview (not .preview-scroll) so it\n stays in the right gutter and never overlaps the canvas at large widths.\n No translateY counteract needed since it isn't inside the Lenis wrapper. -->\n <div class=\"canvas-scrollbar\"\n [class.visible]=\"isScrollbarVisible\">\n <div class=\"canvas-scrollbar-thumb\"\n [style.height.px]=\"scrollThumbHeight\"\n [style.top.px]=\"scrollThumbTop\">\n </div>\n </div>\n\n <!-- Global elements overlay \u2014 outside Lenis so position:fixed children\n stay pinned to the canvas viewport rather than scrolling with content.\n Shares viewportTransform so elements scale correctly at any zoom level.\n Height is the frame a pinned global sits in (globalOverlayHeight: the canvas\n slot, or the page on a short page), bound in px so position:fixed + inset:0\n fills it (CSS calc(100%) would give the wrong containing-block height). -->\n @if (globalElements.length) {\n <div\n #globalOverlay\n class=\"global-elements-overlay iox-token-scope\"\n [attr.dir]=\"canvasDir\"\n [attr.lang]=\"canvasLocale || null\"\n [attr.data-iox-column]=\"columnWord\"\n [ngStyle]=\"globalLayerCss\"\n [style.width.px]=\"viewportWidth\"\n [style.height.px]=\"globalOverlayHeight\"\n [style.transform]=\"viewportTransform\">\n <!-- BEFORE globals stay here, in the frame (a Dialog inside a header must fill the frame,\n not scroll away with the page). Their wrapper's height is what the in-flow ones take,\n and the page reserves it at its top (canvasHeaderReserve, iox-ui#19). -->\n @if (globalElementsBefore.length) {\n <div #globalsBefore class=\"iox-canvas-globals-before\" [attr.data-iox-opening]=\"openingScheme\">\n @for (item of globalElementsBefore; track item) {\n <ng-container [ioxRender]=\"item\"\n (onClick)=\"handleClick($event)\"\n (onMouseEnter)=\"handleMouseEnter($event)\"\n (onMouseLeave)=\"handleMouseLeave()\">\n </ng-container>\n }\n </div>\n }\n <!-- The PINNED after globals (a fixed bottom bar, a Dialog). An in-flow AFTER global (a\n footer) is drawn in the page, after its content (iox-ui#12). -->\n @for (item of globalElementsPinnedAfter; track item) {\n <ng-container [ioxRender]=\"item\"\n (onClick)=\"handleClick($event)\"\n (onMouseEnter)=\"handleMouseEnter($event)\"\n (onMouseLeave)=\"handleMouseLeave()\">\n </ng-container>\n }\n </div>\n }\n\n <div class=\"preview-scroll\"\n #previewScroll\n [style.width.px]=\"viewportScaledWidth\"\n [class.pan-mode]=\"activeMode === builderModes.Pan\">\n\n <!-- Lenis content proxy: height = realContentHeight \u00D7 scale.\n Lenis scrolls against this value so scroll range is always in\n visual px \u2014 correct at any zoom level. -->\n <div class=\"preview-lenis-content\" #lenisContent\n [style.height.px]=\"scaledContentHeight\">\n\n <!-- iox-token-scope: the ORG's design tokens are declared on this class, not :root\n (StyleRegistryService.upsertTokens), so they never repaint the admin chrome. -->\n <iox-page-component class=\"iox-token-scope\"\n [attr.dir]=\"canvasDir\"\n [attr.lang]=\"canvasLocale || null\"\n [attr.data-iox-column]=\"columnWord\"\n [style.width.px]=\"viewportWidth\"\n [style.height.px]=\"canvasFrameHeight || viewportHeight\"\n [style.transform]=\"viewportTransform\">\n\n <!-- ngStyle carries the page's own background/typography (pageSettings.style),\n compiled by the SAME function the engine applies to <body>. Inline wins over\n the #canvas-preview white default, which stays as the unset fallback. -->\n <div class=\"canvas-viewport\"\n id=\"canvas-preview\"\n [attr.data-bar-reserve]=\"canvasBarReserve\"\n [style.padding-block-start.px]=\"canvasHeaderReserve || null\"\n [ngStyle]=\"pageStyleCss\"\n [style.min-height.px]=\"canvasMinHeight\">\n\n <!-- Empty page (B4): a starting point beats a blank canvas. Each starter is\n a responsive layout preset \u2014 ordinary nodes, editable afterwards. -->\n @if (isPageEmpty) {\n <!-- The builder's own words (English literals), not the site's: left-to-right on any page. -->\n <div class=\"empty-canvas\" dir=\"ltr\" (click)=\"$event.stopPropagation()\">\n <h2 class=\"empty-title\">Start with a layout</h2>\n <p class=\"empty-sub\">Each one already adapts to tablet and phone. You can edit or take it apart afterwards.</p>\n <div class=\"empty-grid\">\n @for (starter of starterLayouts; track starter.id) {\n <button type=\"button\" class=\"empty-card\" (click)=\"startWithLayout(starter)\">\n <i [class]=\"starter.icon\" aria-hidden=\"true\"></i>\n <span class=\"empty-card-name\">{{ starter.name }}</span>\n <span class=\"empty-card-desc\">{{ starter.description }}</span>\n </button>\n }\n </div>\n <button type=\"button\" class=\"empty-link\" (click)=\"browseComponents()\">Or start from a single element</button>\n </div>\n }\n\n <!-- WRAPPER COLLAPSE (task 9c): top-level nodes render DIRECTLY into the\n canvas viewport \u2014 no .preview-node wrapper; iox-outer + drag move to the\n host (RenderDirective, via ioxDragSourceId). -->\n @for (item of layout; track item) {\n <ng-container\n [ioxRender]=\"item\"\n [ioxDragSourceId]=\"'canvas-preview'\"\n (onClick)=\"handleClick($event)\"\n (onMouseEnter)=\"handleMouseEnter($event)\"\n (onMouseLeave)=\"handleMouseLeave()\">\n </ng-container>\n }\n\n <!-- In-flow AFTER globals (a footer) follow the page's content, inside the page's\n ground, as on the live site (iox-ui#12). Not part of the layout: the drag\n engine skips this wrapper (GLOBALS_AFTER_CLASS). -->\n @if (globalElementsInPage.length) {\n <div [class]=\"globalsAfterClass\">\n @for (item of globalElementsInPage; track item) {\n <ng-container [ioxRender]=\"item\"\n (onClick)=\"handleClick($event)\"\n (onMouseEnter)=\"handleMouseEnter($event)\"\n (onMouseLeave)=\"handleMouseLeave()\">\n </ng-container>\n }\n </div>\n }\n </div>\n </iox-page-component>\n </div>\n </div>\n </main>\n <!-- \u2462 THE ELEMENT PATH \u2014 a thin floating strip, BOTTOM-CENTRE (board D2). It is\n pinned to the PREVIEW VIEWPORT, not to the canvas frame: the frame pans and\n scales, so a breadcrumb tracking its edge would drift off-screen and shrink with\n zoom. It used to sit in the top gutter, which is where the eye is least often \u2014\n and where the floating action strip now lives.\n\n \u26A0\uFE0F stopPropagation is REQUIRED, not defensive. This element lives inside .preview,\n whose (click) is handleCanvasClick() \u2014 \"you clicked empty canvas, drop the\n selection\". Without it, picking an ancestor crumb selects that node and then\n immediately bubbles into the canvas handler, which clears it: the selection and the\n layer-tree highlight both fall back to Body. Same reason .audit-dock stops its own. -->\n <app-breadcrumb-bar\n (click)=\"$event.stopPropagation()\"\n [path]=\"selectedPath\"\n (nodeSelect)=\"onCrumbSelect($event)\"\n (rootSelect)=\"onCrumbRootSelect()\"\n (nodePeek)=\"onCrumbPeek($event)\">\n </app-breadcrumb-bar>\n\n <!-- \u2463 THE SCENE TIMELINE (premium sites SC2, board G) \u2014 its own row under the canvas, projected from the host\n like every panel, and only there while the page holds a Scene. A sibling of .preview for the reason above. -->\n <ng-content select=\"[builderTimeline]\"></ng-content>\n\n </div>\n\n <!-- Same rule as the sidebar: the switcher belongs to the panel it drives, as a\n tab ROW across its top. -->\n <div class=\"panel-dock\">\n <div class=\"panel-switcher\">\n <button (click)=\"selectPanel(panelTypes.BINDINGS)\" [class.active]=\"activePanel === panelTypes.BINDINGS\" title=\"Bindings\">\n <i class=\"ph-thin ph-plugs-connected\"></i>\n </button>\n <button (click)=\"selectPanel(panelTypes.STYLES)\" [class.active]=\"activePanel === panelTypes.STYLES\" title=\"Styles\">\n <i class=\"ph-thin ph-paint-brush\"></i>\n </button>\n <button (click)=\"selectPanel(panelTypes.PAGE)\" [class.active]=\"activePanel === panelTypes.PAGE\" title=\"Page settings\" aria-label=\"Page settings\">\n <i class=\"ph-thin ph-gear-six\"></i>\n </button>\n <button (click)=\"selectPanel(panelTypes.INTERACTIONS)\" [class.active]=\"activePanel === panelTypes.INTERACTIONS\" title=\"Interactions\">\n <i class=\"ph-thin ph-lightning\"></i>\n </button>\n <button (click)=\"selectPanel(panelTypes.ASK)\" [class.active]=\"activePanel === panelTypes.ASK\" title=\"Ask AI\" aria-label=\"Ask AI\" data-panel-tab=\"ask\">\n <i class=\"ph-thin ph-sparkle\"></i>\n </button>\n </div>\n <ng-content select=\"[builderPanel]\"></ng-content>\n </div>\n </div>\n\n <!-- Save as Reusable Block dialog -->\n <!-- A tab or a panel deleted alone (CC4a \u2014 composite T18): the pair goes together, so the delete is offered for\n both. Every delete path asks the one guard; this is its answer. -->\n <p-dialog [visible]=\"!!pendingPairRemoval\" (visibleChange)=\"$event || cancelPairRemoval()\" [modal]=\"true\" [closable]=\"true\"\n [draggable]=\"false\" [resizable]=\"false\" [header]=\"pairRemovalText('builder.chrome.deletePairTitle')\" styleClass=\"iox-pair-removal-dialog\"\n appendTo=\"body\" [style]=\"{ width: '400px' }\">\n <p class=\"pair-removal-body\">{{ pairRemovalText('builder.chrome.deletePairBody') }}</p>\n <ng-template pTemplate=\"footer\">\n <p-button size=\"small\" severity=\"secondary\" [label]=\"pairRemovalText('builder.chrome.cancel')\" (onClick)=\"cancelPairRemoval()\"></p-button>\n <p-button size=\"small\" severity=\"danger\" [label]=\"pairRemovalText('builder.chrome.deletePair')\" (onClick)=\"confirmPairRemoval()\"></p-button>\n </ng-template>\n </p-dialog>\n\n @if (showSaveBlockDialog) {\n <div class=\"save-block-backdrop\" (click)=\"cancelSaveBlock()\"></div>\n <div class=\"save-block-dialog\" (click)=\"$event.stopPropagation()\">\n <h4 class=\"save-block-title\">Save as Reusable Block</h4>\n <input class=\"save-block-input\"\n type=\"text\"\n placeholder=\"Block name...\"\n [(ngModel)]=\"saveBlockName\"\n (keydown.enter)=\"confirmSaveBlock()\"\n (keydown.escape)=\"cancelSaveBlock()\"\n autofocus>\n <div class=\"save-block-actions\">\n <p-button size=\"small\" severity=\"secondary\" label=\"Cancel\" (click)=\"cancelSaveBlock()\"></p-button>\n <p-button size=\"small\" label=\"Save\" [disabled]=\"!saveBlockName.trim()\" (click)=\"confirmSaveBlock()\"></p-button>\n </div>\n </div>\n }\n</div>", styles: ["@charset \"UTF-8\";:host{display:flex;flex:1;min-height:0;overflow:hidden}.builder{display:flex;flex-direction:column;direction:ltr;width:100%;height:100%;min-height:0;border-radius:0;overflow:hidden;position:relative}.builder .toolbar-strip{flex:none;align-self:center;max-inline-size:100%;display:flex;align-items:center;padding:6px 8px;background:#ffffffeb;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid var(--iox-border-1, #DDE1E8);border-radius:999px;box-shadow:0 6px 20px #101b421a;max-inline-size:calc(100% - 40px);overflow-x:auto;scrollbar-width:none}.builder .toolbar-strip::-webkit-scrollbar{display:none}.builder .sidebar-switcher,.builder .panel-switcher{flex:none;display:flex;flex-direction:row;align-items:center;gap:.375rem;padding:7px 10px;background:var(--p-surface-0);border-block-end:1px solid var(--iox-neutral-100, #EDEFF3)}.builder .sidebar-switcher button,.builder .panel-switcher button{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;border:none;background:var(--iox-surface-3, #F6F7F9);color:var(--p-text-muted-color);cursor:pointer;font-size:1rem;transition:background .15s ease-out,color .15s ease-out}.builder .sidebar-switcher button i,.builder .panel-switcher button i{pointer-events:none}.builder .sidebar-switcher button:hover,.builder .panel-switcher button:hover{background:var(--iox-rose-100, #F8EAEA);color:var(--p-text-color)}.builder .sidebar-switcher button.active,.builder .panel-switcher button.active{background:var(--iox-grad-brand, linear-gradient(135deg, #9B4458 0%, #8A3A72 50%, #63347F 100%));color:#fff}.builder .panel-dock{display:grid;grid-template-rows:auto minmax(0,1fr);flex:none;min-height:0;background:var(--p-surface-0);border:1px solid var(--iox-border-1, #DDE1E8);border-radius:var(--iox-radius-card, 20px);box-shadow:var(--iox-elev-1, 0 0 12px rgba(16, 27, 66, .05));overflow:hidden}.builder .builder-main{display:flex;flex:1 1 0;min-height:0;position:relative;overflow:hidden;gap:12px;padding:14px;background:transparent}.builder .sidebar{display:flex;flex-direction:column;inline-size:260px;min-inline-size:260px;background:var(--p-surface-0);border:1px solid var(--iox-border-1, #DDE1E8);border-radius:var(--iox-radius-card, 20px);box-shadow:var(--iox-elev-1, 0 0 12px rgba(16, 27, 66, .05));overflow:hidden;flex-shrink:0;min-block-size:0}.builder .sidebar .sidebar-body{flex:1;min-inline-size:0;overflow-y:auto;overflow-x:hidden}.builder .sidebar:dir(rtl),.builder .panel-dock:dir(rtl){direction:rtl}.builder .canvas-column{flex:1 1 0;min-width:0;min-height:0;display:flex;flex-direction:column;gap:10px}.builder .preview{flex:1 1 0;min-width:0;min-height:0;position:relative;overflow:hidden;background:transparent}.builder .preview.grab-mode{cursor:grab}.builder .preview.grab-mode iox-page-component{pointer-events:none}.builder .preview.grabbing{cursor:grabbing}.builder .canvas-scrollbar{position:absolute;right:4px;top:20px;bottom:20px;width:6px;z-index:20;opacity:0;transition:opacity .2s ease;pointer-events:none}.builder .canvas-scrollbar.visible{opacity:1}.builder .canvas-scrollbar-thumb{position:absolute;left:0;width:100%;background:#00000059;border-radius:3px;transition:top .05s linear}.builder .preview-scroll{position:absolute;inset:20px auto;inset-inline-start:50%;transform:translate(-50%);max-width:calc(100% - 40px);height:calc(100% - 40px);overflow:hidden}.builder .preview-lenis-content{position:relative;width:100%;overflow:hidden;contain:paint}.builder iox-page-component{position:absolute!important;top:0;bottom:auto!important;right:auto!important;left:50%;transform-origin:top center;overflow:visible!important;direction:ltr}.builder iox-page-component[dir=rtl]{direction:rtl}.builder iox-page-component{container:iox-canvas/inline-size;box-shadow:0 1px 4px #00000014,0 4px 16px #0000000a;transition:width .25s ease,transform .25s ease}.builder iox-page-component ::ng-deep .iox-page-wrapper{height:auto!important;overflow:visible!important}.builder #canvas-preview{background:#fff}.builder #canvas-preview[data-bar-reserve=iox-bar-reserve]{padding-block-end:calc(var(--iox-tabbar-height, 64px) + var(--iox-border-width, 1px) + var(--iox-tabbar-inset, 0px) * 2)}@container iox-canvas (max-width: 1200px){.builder #canvas-preview[data-bar-reserve=iox-bar-reserve-laptop]{padding-block-end:calc(var(--iox-tabbar-height, 64px) + var(--iox-border-width, 1px) + var(--iox-tabbar-inset, 0px) * 2)}}@container iox-canvas (max-width: 991px){.builder #canvas-preview[data-bar-reserve=iox-bar-reserve-tablet]{padding-block-end:calc(var(--iox-tabbar-height, 64px) + var(--iox-border-width, 1px) + var(--iox-tabbar-inset, 0px) * 2)}}@container iox-canvas (max-width: 767px){.builder #canvas-preview[data-bar-reserve=iox-bar-reserve-mobile]{padding-block-end:calc(var(--iox-tabbar-height, 64px) + var(--iox-border-width, 1px) + var(--iox-tabbar-inset, 0px) * 2)}}@container iox-canvas (max-width: 479px){.builder #canvas-preview[data-bar-reserve=iox-bar-reserve-small]{padding-block-end:calc(var(--iox-tabbar-height, 64px) + var(--iox-border-width, 1px) + var(--iox-tabbar-inset, 0px) * 2)}}.builder .empty-canvas{max-inline-size:560px;margin:0 auto;padding:48px 24px;text-align:center;color:#4b5563}.builder .empty-title{margin:0;font-size:18px;font-weight:600;color:#111827}.builder .empty-sub{margin:6px 0 20px;font-size:12px;line-height:1.5;color:#6b7280}.builder .empty-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.builder .empty-card{display:flex;flex-direction:column;align-items:center;gap:4px;padding:14px 10px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}.builder .empty-card:hover{border-color:#cb9090;box-shadow:0 2px 10px #0000000f}.builder .empty-card:focus-visible{outline:2px solid #cb9090;outline-offset:2px}.builder .empty-card i{font-size:20px;color:#a05c5c}.builder .empty-card-name{font-size:11.5px;font-weight:600;color:#111827}.builder .empty-card-desc{font-size:9.5px;line-height:1.35;color:#6b7280}.builder .empty-link{margin-block-start:16px;padding:0;border:none;background:none;font-size:11px;color:#a05c5c;cursor:pointer}.builder .empty-link:hover{text-decoration:underline}.builder .empty-link:focus-visible{outline:2px solid #cb9090;outline-offset:2px}.builder app-breadcrumb-bar{flex:none;align-self:center;max-inline-size:100%;display:flex;align-items:center;padding:5px 13px;background:#ffffffeb;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid var(--iox-border-1, #DDE1E8);border-radius:999px;box-shadow:0 6px 20px #101b421a;max-inline-size:calc(100% - 112px);pointer-events:none}.builder .audit-dock{position:absolute;inset-block-start:20px;inset-inline-end:16px;z-index:20}.builder .global-elements-overlay{position:absolute;top:20px;left:50%;transform-origin:top center;pointer-events:none;z-index:9;overflow:hidden;container:iox-canvas/inline-size;direction:ltr}.builder .global-elements-overlay[dir=rtl]{direction:rtl}.builder .global-elements-overlay ::ng-deep>*{pointer-events:auto}.builder .global-elements-overlay .iox-canvas-globals-before{display:flow-root;pointer-events:none}.builder .global-elements-overlay .iox-canvas-globals-before ::ng-deep>*{pointer-events:auto}.builder .preview-node.is-selected{cursor:grab}.builder .empty-state{min-height:240px;border:1px dashed var(--p-surface-200);border-radius:10px;display:flex;align-items:center;justify-content:center;color:var(--p-text-muted-color);text-align:center;padding:1rem}.save-block-backdrop{position:fixed;inset:0;z-index:1000;background:#00000040}.save-block-dialog{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1001;background:#fff;border-radius:8px;box-shadow:0 8px 32px #0000002e;padding:24px;width:320px}.save-block-dialog .save-block-title{margin:0 0 16px;font-size:14px;font-weight:600;color:var(--p-text-color, #333)}.save-block-dialog .save-block-input{width:100%;padding:8px 10px;border:1px solid var(--p-surface-300, #d1d5db);border-radius:6px;font-size:13px;outline:none;box-sizing:border-box;margin-bottom:16px}.save-block-dialog .save-block-input:focus{border-color:#cb9090;box-shadow:0 0 0 2px #cb909033}.save-block-dialog .save-block-actions{display:flex;justify-content:flex-end;gap:8px}::ng-deep .moveable-control-box.iox-moveable-silent{z-index:1000!important}::ng-deep .moveable-control-box.iox-moveable-silent .moveable-line,::ng-deep .moveable-control-box.iox-moveable-silent .moveable-rotation,::ng-deep .moveable-control-box.iox-moveable-silent .moveable-rotation-line{display:none!important}::ng-deep .moveable-control-box.iox-moveable-silent .moveable-control{display:block!important;width:10px!important;height:10px!important;margin-top:-5px!important;margin-inline-start:-5px!important;background:#fff!important;border:1.5px solid #cb9090!important;border-radius:2px!important;box-shadow:0 1px 3px #0003!important}\n"] }]
|
|
12526
|
+
args: [{ selector: 'app-builder', standalone: false, providers: [{ provide: IOX_BUILDER_CANVAS, useValue: true }], template: "<div class=\"builder\">\n\n <div class=\"builder-main\" [class.panel-open]=\"isPanelOpen\">\n <!-- The switcher is the panel's OWN tab bar. It used to live in the header, at the\n maximum possible distance from the thing it controls; attached, the column and the\n panel are one card with one shadow. See board D2. -->\n <aside class=\"sidebar\">\n <div class=\"sidebar-switcher\">\n <button (click)=\"activeSidebar = 'pages'\" [class.active]=\"activeSidebar === 'pages'\" title=\"Pages\" aria-label=\"Pages\">\n <i class=\"ph-thin ph-browsers\"></i>\n </button>\n <button (click)=\"activeSidebar = 'components'\" [class.active]=\"activeSidebar === 'components'\" title=\"Components\" aria-label=\"Components\">\n <i class=\"ph-thin ph-cube\"></i>\n </button>\n <button (click)=\"activeSidebar = 'tree'\" [class.active]=\"activeSidebar === 'tree'\" title=\"Layers\" aria-label=\"Layers\">\n <i class=\"ph-thin ph-tree-structure\"></i>\n </button>\n <button (click)=\"activeSidebar = 'tokens'\" [class.active]=\"activeSidebar === 'tokens'\" title=\"Design Tokens\" aria-label=\"Design Tokens\">\n <i class=\"ph-thin ph-circles-three\"></i>\n </button>\n </div>\n <div class=\"sidebar-body\">\n @if (activeSidebar === 'pages') {\n <div class=\"sidebar-slot\">\n <ng-content select=\"[builderPages]\"></ng-content>\n </div>\n }\n @if (activeSidebar === 'components') {\n <div class=\"sidebar-slot\">\n <ng-content select=\"[builderComponents]\"></ng-content>\n </div>\n }\n @if (activeSidebar === 'tokens') {\n <div class=\"sidebar-slot\">\n <ng-content select=\"[builderTokens]\"></ng-content>\n </div>\n }\n @if (activeSidebar === 'tree') {\n <app-layer-tree\n [layout]=\"layout\"\n [globalElements]=\"globalElements\"\n (nodeSelect)=\"onTreeNodeSelect($event)\"\n (nodeAction)=\"onTreeNodeAction($event)\"\n (nodeMove)=\"onTreeNodeMove()\"></app-layer-tree>\n }\n </div>\n </aside>\n\n <!-- \u26A0\uFE0F The strips are SIBLINGS of .preview, not children of it. Board D2 floated them\n over the canvas and that is what they did \u2014 over the page being edited, which is the\n one thing in the builder that must stay clear. They keep their pill shape and their\n centre alignment; they just take their own row.\n\n Siblings, specifically, rather than a wrapper INSIDE .preview: `previewCanvas` is the\n overlay container and the coordinate origin for the selection box, the drag clone,\n Lenis and the zoom maths (nine call sites). Nesting anything between it and the canvas\n would shift every one of them by the strip's height. -->\n <div class=\"canvas-column\" [style.margin-left.px]=\"coverSide === CoverSide.Left ? (coverInset || null) : null\" [style.margin-right.px]=\"coverSide === CoverSide.Right ? (coverInset || null) : null\">\n <!-- \u2460 THE ACTION STRIP \u2014 floating, top-centre (board D2). It was a solid\n full-width header bar costing 56px of height on every screen; the canvas now\n starts at the top of the viewport and the strip hovers over it.\n stopPropagation for the same reason the breadcrumb does: .preview's (click)\n is \"you clicked empty canvas, drop the selection\". -->\n <div class=\"toolbar-strip\" (click)=\"$event.stopPropagation()\">\n <app-toolbar\n [activeMode]=\"activeMode\"\n [activeBreakpoint]=\"activeBreakpoint\"\n [breakpointCounts]=\"breakpointCounts\"\n [auditCount]=\"auditFindings.length || structureFindings.length\"\n [auditOpen]=\"auditOpen\"\n [activeZoom]=\"activeZoom\"\n [activeScreenWidth]=\"activeScreenWidth\"\n [isSaving]=\"isSaving\"\n [pageStatus]=\"pageStatus\"\n [publishChecking]=\"publishChecking\"\n [canUndo]=\"canUndo\"\n [canRedo]=\"canRedo\"\n (modeChange)=\"handleToolbarModeChange($event)\"\n (breakpointChange)=\"handleToolbarBreakpointChange($event)\"\n (auditToggle)=\"toggleAudit()\"\n (zoomChange)=\"handleToolbarZoomChange($event)\"\n (screenWidthChange)=\"handleToolbarScreenWidthChange($event)\"\n (save)=\"save.emit()\"\n (preview)=\"preview.emit()\"\n (publishToggle)=\"publishToggle.emit()\"\n (undo)=\"undo.emit()\"\n (redo)=\"redo.emit()\">\n <ng-content select=\"[builderToolbarActions]\"></ng-content>\n </app-toolbar>\n </div>\n\n <main #previewCanvas class=\"preview\"\n [class.grab-mode]=\"activeMode === builderModes.Pan\"\n [class.grabbing]=\"isPanning\"\n (click)=\"handleCanvasClick()\"\n (mousedown)=\"onBoardMouseDown($event)\"\n (mousemove)=\"onBoardMouseMove($event)\"\n (mouseup)=\"onBoardMouseUp()\"\n (mouseleave)=\"onBoardMouseUp()\"\n (dragstart)=\"onNativeDragStart($event)\">\n <app-overlay (toolbarAction)=\"onToolbarAction($event)\"></app-overlay>\n\n <!-- Responsive audit (A5) \u2014 floats over the canvas, right gutter. -->\n @if (auditOpen) {\n <div class=\"audit-dock\" (click)=\"$event.stopPropagation()\">\n <app-audit-panel\n [findings]=\"auditFindings\"\n [breakpointLabel]=\"auditBreakpointLabel\"\n [running]=\"auditRunning\"\n (select)=\"selectAuditNode($event)\"\n (fix)=\"applyAuditFix($event)\"\n (fixAll)=\"applyAllAuditFixes()\"\n (rerun)=\"runAudit()\"\n (closePanel)=\"toggleAudit()\"></app-audit-panel>\n </div>\n }\n\n <!-- Empty page (B4): a starting point beats a blank canvas. Each starter is a responsive layout preset \u2014\n ordinary nodes, editable afterwards. It is builder CHROME (iox-ui#168): it floats over the canvas like the\n audit dock \u2014 absolutely placed, so nothing in .preview moves \u2014 and never inside the zoomed frame, so its\n words are drawn at their own size in the admin's font (inside iox-page-component they took the frame's\n zoom, 11px \u2192 ~6px at 57%, and the page's font). The words are the builder's own (IOX_BUILDER_LABELS,\n iox-ui#163): `dir=\"auto\"` reads their direction \u2014 the ADMIN's language \u2014 whatever the page's is. Click and\n press stop here: .preview's (click) drops the selection, its (mousedown) starts a pan. -->\n @if (isPageEmpty) {\n <div class=\"empty-canvas\" dir=\"auto\" (click)=\"$event.stopPropagation()\" (mousedown)=\"$event.stopPropagation()\">\n <h2 class=\"empty-title\">{{ chromeWord('builder.chrome.startTitle') }}</h2>\n <p class=\"empty-sub\">{{ chromeWord('builder.chrome.startSub') }}</p>\n <div class=\"empty-grid\">\n @for (starter of starterLayouts; track starter.id) {\n <button type=\"button\" class=\"empty-card\" (click)=\"startWithLayout(starter)\">\n <i [class]=\"starter.icon\" aria-hidden=\"true\"></i>\n <span class=\"empty-card-name\">{{ starterName(starter) }}</span>\n <span class=\"empty-card-desc\">{{ starterDescription(starter) }}</span>\n </button>\n }\n </div>\n <button type=\"button\" class=\"empty-link\" (click)=\"browseComponents()\">{{ chromeWord('builder.chrome.startSingle') }}</button>\n </div>\n }\n\n <!-- Custom Lenis scrollbar \u2014 lives in .preview (not .preview-scroll) so it\n stays in the right gutter and never overlaps the canvas at large widths.\n No translateY counteract needed since it isn't inside the Lenis wrapper. -->\n <div class=\"canvas-scrollbar\"\n [class.visible]=\"isScrollbarVisible\">\n <div class=\"canvas-scrollbar-thumb\"\n [style.height.px]=\"scrollThumbHeight\"\n [style.top.px]=\"scrollThumbTop\">\n </div>\n </div>\n\n <!-- Global elements overlay \u2014 outside Lenis so position:fixed children\n stay pinned to the canvas viewport rather than scrolling with content.\n Shares viewportTransform so elements scale correctly at any zoom level.\n Height is the frame a pinned global sits in (globalOverlayHeight: the canvas\n slot, or the page on a short page), bound in px so position:fixed + inset:0\n fills it (CSS calc(100%) would give the wrong containing-block height). -->\n @if (globalElements.length) {\n <div\n #globalOverlay\n class=\"global-elements-overlay iox-token-scope\"\n [attr.dir]=\"canvasDir\"\n [attr.lang]=\"canvasLocale || null\"\n [attr.data-iox-column]=\"columnWord\"\n [ngStyle]=\"globalLayerCss\"\n [style.width.px]=\"viewportWidth\"\n [style.height.px]=\"globalOverlayHeight\"\n [style.transform]=\"viewportTransform\">\n <!-- BEFORE globals stay here, in the frame (a Dialog inside a header must fill the frame,\n not scroll away with the page). Their wrapper's height is what the in-flow ones take,\n and the page reserves it at its top (canvasHeaderReserve, iox-ui#19). -->\n @if (globalElementsBefore.length) {\n <div #globalsBefore class=\"iox-canvas-globals-before\" [attr.data-iox-opening]=\"openingScheme\">\n @for (item of globalElementsBefore; track item) {\n <ng-container [ioxRender]=\"item\"\n (onClick)=\"handleClick($event)\"\n (onMouseEnter)=\"handleMouseEnter($event)\"\n (onMouseLeave)=\"handleMouseLeave()\">\n </ng-container>\n }\n </div>\n }\n <!-- The PINNED after globals (a fixed bottom bar, a Dialog). An in-flow AFTER global (a\n footer) is drawn in the page, after its content (iox-ui#12). -->\n @for (item of globalElementsPinnedAfter; track item) {\n <ng-container [ioxRender]=\"item\"\n (onClick)=\"handleClick($event)\"\n (onMouseEnter)=\"handleMouseEnter($event)\"\n (onMouseLeave)=\"handleMouseLeave()\">\n </ng-container>\n }\n </div>\n }\n\n <div class=\"preview-scroll\"\n #previewScroll\n [style.width.px]=\"viewportScaledWidth\"\n [class.pan-mode]=\"activeMode === builderModes.Pan\">\n\n <!-- Lenis content proxy: height = realContentHeight \u00D7 scale.\n Lenis scrolls against this value so scroll range is always in\n visual px \u2014 correct at any zoom level. -->\n <div class=\"preview-lenis-content\" #lenisContent\n [style.height.px]=\"scaledContentHeight\">\n\n <!-- iox-token-scope: the ORG's design tokens are declared on this class, not :root\n (StyleRegistryService.upsertTokens), so they never repaint the admin chrome. -->\n <iox-page-component class=\"iox-token-scope\"\n [attr.dir]=\"canvasDir\"\n [attr.lang]=\"canvasLocale || null\"\n [attr.data-iox-column]=\"columnWord\"\n [style.width.px]=\"viewportWidth\"\n [style.height.px]=\"canvasFrameHeight || viewportHeight\"\n [style.transform]=\"viewportTransform\">\n\n <!-- ngStyle carries the page's own background/typography (pageSettings.style),\n compiled by the SAME function the engine applies to <body>. Inline wins over\n the #canvas-preview white default, which stays as the unset fallback. -->\n <div class=\"canvas-viewport\"\n id=\"canvas-preview\"\n [attr.data-bar-reserve]=\"canvasBarReserve\"\n [style.padding-block-start.px]=\"canvasHeaderReserve || null\"\n [ngStyle]=\"pageStyleCss\"\n [style.min-height.px]=\"canvasMinHeight\">\n\n <!-- WRAPPER COLLAPSE (task 9c): top-level nodes render DIRECTLY into the\n canvas viewport \u2014 no .preview-node wrapper; iox-outer + drag move to the\n host (RenderDirective, via ioxDragSourceId). -->\n @for (item of layout; track item) {\n <ng-container\n [ioxRender]=\"item\"\n [ioxDragSourceId]=\"'canvas-preview'\"\n (onClick)=\"handleClick($event)\"\n (onMouseEnter)=\"handleMouseEnter($event)\"\n (onMouseLeave)=\"handleMouseLeave()\">\n </ng-container>\n }\n\n <!-- In-flow AFTER globals (a footer) follow the page's content, inside the page's\n ground, as on the live site (iox-ui#12). Not part of the layout: the drag\n engine skips this wrapper (GLOBALS_AFTER_CLASS). -->\n @if (globalElementsInPage.length) {\n <div [class]=\"globalsAfterClass\">\n @for (item of globalElementsInPage; track item) {\n <ng-container [ioxRender]=\"item\"\n (onClick)=\"handleClick($event)\"\n (onMouseEnter)=\"handleMouseEnter($event)\"\n (onMouseLeave)=\"handleMouseLeave()\">\n </ng-container>\n }\n </div>\n }\n </div>\n </iox-page-component>\n </div>\n </div>\n </main>\n <!-- \u2462 THE ELEMENT PATH \u2014 a thin floating strip, BOTTOM-CENTRE (board D2). It is\n pinned to the PREVIEW VIEWPORT, not to the canvas frame: the frame pans and\n scales, so a breadcrumb tracking its edge would drift off-screen and shrink with\n zoom. It used to sit in the top gutter, which is where the eye is least often \u2014\n and where the floating action strip now lives.\n\n \u26A0\uFE0F stopPropagation is REQUIRED, not defensive. This element lives inside .preview,\n whose (click) is handleCanvasClick() \u2014 \"you clicked empty canvas, drop the\n selection\". Without it, picking an ancestor crumb selects that node and then\n immediately bubbles into the canvas handler, which clears it: the selection and the\n layer-tree highlight both fall back to Body. Same reason .audit-dock stops its own. -->\n <app-breadcrumb-bar\n (click)=\"$event.stopPropagation()\"\n [path]=\"selectedPath\"\n (nodeSelect)=\"onCrumbSelect($event)\"\n (rootSelect)=\"onCrumbRootSelect()\"\n (nodePeek)=\"onCrumbPeek($event)\">\n </app-breadcrumb-bar>\n\n <!-- \u2463 THE SCENE TIMELINE (premium sites SC2, board G) \u2014 its own row under the canvas, projected from the host\n like every panel, and only there while the page holds a Scene. A sibling of .preview for the reason above. -->\n <ng-content select=\"[builderTimeline]\"></ng-content>\n\n </div>\n\n <!-- Same rule as the sidebar: the switcher belongs to the panel it drives, as a\n tab ROW across its top. -->\n <div class=\"panel-dock\">\n <div class=\"panel-switcher\">\n <button (click)=\"selectPanel(panelTypes.BINDINGS)\" [class.active]=\"activePanel === panelTypes.BINDINGS\" title=\"Bindings\">\n <i class=\"ph-thin ph-plugs-connected\"></i>\n </button>\n <button (click)=\"selectPanel(panelTypes.STYLES)\" [class.active]=\"activePanel === panelTypes.STYLES\" title=\"Styles\">\n <i class=\"ph-thin ph-paint-brush\"></i>\n </button>\n <button (click)=\"selectPanel(panelTypes.PAGE)\" [class.active]=\"activePanel === panelTypes.PAGE\" title=\"Page settings\" aria-label=\"Page settings\">\n <i class=\"ph-thin ph-gear-six\"></i>\n </button>\n <button (click)=\"selectPanel(panelTypes.INTERACTIONS)\" [class.active]=\"activePanel === panelTypes.INTERACTIONS\" title=\"Interactions\">\n <i class=\"ph-thin ph-lightning\"></i>\n </button>\n <button (click)=\"selectPanel(panelTypes.ASK)\" [class.active]=\"activePanel === panelTypes.ASK\" title=\"Ask AI\" aria-label=\"Ask AI\" data-panel-tab=\"ask\">\n <i class=\"ph-thin ph-sparkle\"></i>\n </button>\n </div>\n <ng-content select=\"[builderPanel]\"></ng-content>\n </div>\n </div>\n\n <!-- Save as Reusable Block dialog -->\n <!-- A tab or a panel deleted alone (CC4a \u2014 composite T18): the pair goes together, so the delete is offered for\n both. Every delete path asks the one guard; this is its answer. -->\n <p-dialog [visible]=\"!!pendingPairRemoval\" (visibleChange)=\"$event || cancelPairRemoval()\" [modal]=\"true\" [closable]=\"true\"\n [draggable]=\"false\" [resizable]=\"false\" [header]=\"pairRemovalText('builder.chrome.deletePairTitle')\" styleClass=\"iox-pair-removal-dialog\"\n appendTo=\"body\" [style]=\"{ width: '400px' }\">\n <p class=\"pair-removal-body\">{{ pairRemovalText('builder.chrome.deletePairBody') }}</p>\n <ng-template pTemplate=\"footer\">\n <p-button size=\"small\" severity=\"secondary\" [label]=\"pairRemovalText('builder.chrome.cancel')\" (onClick)=\"cancelPairRemoval()\"></p-button>\n <p-button size=\"small\" severity=\"danger\" [label]=\"pairRemovalText('builder.chrome.deletePair')\" (onClick)=\"confirmPairRemoval()\"></p-button>\n </ng-template>\n </p-dialog>\n\n @if (showSaveBlockDialog) {\n <div class=\"save-block-backdrop\" (click)=\"cancelSaveBlock()\"></div>\n <div class=\"save-block-dialog\" (click)=\"$event.stopPropagation()\">\n <h4 class=\"save-block-title\">Save as Reusable Block</h4>\n <input class=\"save-block-input\"\n type=\"text\"\n placeholder=\"Block name...\"\n [(ngModel)]=\"saveBlockName\"\n (keydown.enter)=\"confirmSaveBlock()\"\n (keydown.escape)=\"cancelSaveBlock()\"\n autofocus>\n <div class=\"save-block-actions\">\n <p-button size=\"small\" severity=\"secondary\" label=\"Cancel\" (click)=\"cancelSaveBlock()\"></p-button>\n <p-button size=\"small\" label=\"Save\" [disabled]=\"!saveBlockName.trim()\" (click)=\"confirmSaveBlock()\"></p-button>\n </div>\n </div>\n }\n</div>", styles: ["@charset \"UTF-8\";:host{display:flex;flex:1;min-height:0;overflow:hidden}.builder{display:flex;flex-direction:column;direction:ltr;width:100%;height:100%;min-height:0;border-radius:0;overflow:hidden;position:relative}.builder .toolbar-strip{flex:none;align-self:center;max-inline-size:100%;display:flex;align-items:center;padding:6px 8px;background:#ffffffeb;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid var(--iox-border-1, #DDE1E8);border-radius:999px;box-shadow:0 6px 20px #101b421a;max-inline-size:calc(100% - 40px);overflow-x:auto;scrollbar-width:none}.builder .toolbar-strip::-webkit-scrollbar{display:none}.builder .sidebar-switcher,.builder .panel-switcher{flex:none;display:flex;flex-direction:row;align-items:center;gap:.375rem;padding:7px 10px;background:var(--p-surface-0);border-block-end:1px solid var(--iox-neutral-100, #EDEFF3)}.builder .sidebar-switcher button,.builder .panel-switcher button{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;border:none;background:var(--iox-surface-3, #F6F7F9);color:var(--p-text-muted-color);cursor:pointer;font-size:1rem;transition:background .15s ease-out,color .15s ease-out}.builder .sidebar-switcher button i,.builder .panel-switcher button i{pointer-events:none}.builder .sidebar-switcher button:hover,.builder .panel-switcher button:hover{background:var(--iox-rose-100, #F8EAEA);color:var(--p-text-color)}.builder .sidebar-switcher button.active,.builder .panel-switcher button.active{background:var(--iox-grad-brand, linear-gradient(135deg, #9B4458 0%, #8A3A72 50%, #63347F 100%));color:#fff}.builder .panel-dock{display:grid;grid-template-rows:auto minmax(0,1fr);flex:none;min-height:0;background:var(--p-surface-0);border:1px solid var(--iox-border-1, #DDE1E8);border-radius:var(--iox-radius-card, 20px);box-shadow:var(--iox-elev-1, 0 0 12px rgba(16, 27, 66, .05));overflow:hidden}.builder .builder-main{display:flex;flex:1 1 0;min-height:0;position:relative;overflow:hidden;gap:12px;padding:14px;background:transparent}.builder .sidebar{display:flex;flex-direction:column;inline-size:260px;min-inline-size:260px;background:var(--p-surface-0);border:1px solid var(--iox-border-1, #DDE1E8);border-radius:var(--iox-radius-card, 20px);box-shadow:var(--iox-elev-1, 0 0 12px rgba(16, 27, 66, .05));overflow:hidden;flex-shrink:0;min-block-size:0}.builder .sidebar .sidebar-body{flex:1;min-inline-size:0;overflow-y:auto;overflow-x:hidden}.builder .sidebar:dir(rtl),.builder .panel-dock:dir(rtl){direction:rtl}.builder .canvas-column{flex:1 1 0;min-width:0;min-height:0;display:flex;flex-direction:column;gap:10px}.builder .preview{flex:1 1 0;min-width:0;min-height:0;position:relative;overflow:hidden;background:transparent}.builder .preview.grab-mode{cursor:grab}.builder .preview.grab-mode iox-page-component{pointer-events:none}.builder .preview.grabbing{cursor:grabbing}.builder .canvas-scrollbar{position:absolute;right:4px;top:20px;bottom:20px;width:6px;z-index:20;opacity:0;transition:opacity .2s ease;pointer-events:none}.builder .canvas-scrollbar.visible{opacity:1}.builder .canvas-scrollbar-thumb{position:absolute;left:0;width:100%;background:#00000059;border-radius:3px;transition:top .05s linear}.builder .preview-scroll{position:absolute;inset:20px auto;inset-inline-start:50%;transform:translate(-50%);max-width:calc(100% - 40px);height:calc(100% - 40px);overflow:hidden}.builder .preview-lenis-content{position:relative;width:100%;overflow:hidden;contain:paint}.builder iox-page-component{position:absolute!important;top:0;bottom:auto!important;right:auto!important;left:50%;transform-origin:top center;overflow:visible!important;direction:ltr}.builder iox-page-component[dir=rtl]{direction:rtl}.builder iox-page-component{container:iox-canvas/inline-size;box-shadow:0 1px 4px #00000014,0 4px 16px #0000000a;transition:width .25s ease,transform .25s ease}.builder iox-page-component ::ng-deep .iox-page-wrapper{height:auto!important;overflow:visible!important}.builder #canvas-preview{background:#fff}.builder #canvas-preview[data-bar-reserve=iox-bar-reserve]{padding-block-end:calc(var(--iox-tabbar-height, 64px) + var(--iox-border-width, 1px) + var(--iox-tabbar-inset, 0px) * 2)}@container iox-canvas (max-width: 1200px){.builder #canvas-preview[data-bar-reserve=iox-bar-reserve-laptop]{padding-block-end:calc(var(--iox-tabbar-height, 64px) + var(--iox-border-width, 1px) + var(--iox-tabbar-inset, 0px) * 2)}}@container iox-canvas (max-width: 991px){.builder #canvas-preview[data-bar-reserve=iox-bar-reserve-tablet]{padding-block-end:calc(var(--iox-tabbar-height, 64px) + var(--iox-border-width, 1px) + var(--iox-tabbar-inset, 0px) * 2)}}@container iox-canvas (max-width: 767px){.builder #canvas-preview[data-bar-reserve=iox-bar-reserve-mobile]{padding-block-end:calc(var(--iox-tabbar-height, 64px) + var(--iox-border-width, 1px) + var(--iox-tabbar-inset, 0px) * 2)}}@container iox-canvas (max-width: 479px){.builder #canvas-preview[data-bar-reserve=iox-bar-reserve-small]{padding-block-end:calc(var(--iox-tabbar-height, 64px) + var(--iox-border-width, 1px) + var(--iox-tabbar-inset, 0px) * 2)}}.builder .empty-canvas{position:absolute;inset-block-start:40px;inset-inline:0;margin-inline:auto;z-index:11;inline-size:min(560px,100% - 80px);max-block-size:calc(100% - 80px);overflow-y:auto;box-sizing:border-box;padding:24px;text-align:center;color:var(--iox-text-2, #535D6E);background:#ffffffeb;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid var(--iox-border-1, #DDE1E8);border-radius:20px;box-shadow:0 6px 20px #101b421a;cursor:default}.builder .empty-title{margin:0;font-size:14px;font-weight:600;line-height:1.4;color:var(--iox-text-1, #101B42)}.builder .empty-sub{margin:6px 0 16px;font-size:12px;line-height:1.5;color:var(--iox-text-2, #535D6E)}.builder .empty-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px}.builder .empty-card{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 8px;border:1px solid var(--iox-border-1, #DDE1E8);border-radius:14px;background:#fff;cursor:pointer;font:inherit;transition:border-color .15s ease-out,box-shadow .15s ease-out,transform .12s cubic-bezier(.23,1,.32,1)}@media(hover:hover)and (pointer:fine){.builder .empty-card:hover{border-color:#cb9090;box-shadow:0 2px 10px #0000000f}}.builder .empty-card:active{transform:scale(.97)}.builder .empty-card:focus-visible{outline:2px solid #cb9090;outline-offset:2px}.builder .empty-card i{font-size:20px;color:var(--iox-accent-text, #A05C5C)}.builder .empty-card-name{font-size:12px;font-weight:600;color:var(--iox-text-1, #101B42)}.builder .empty-card-desc{font-size:11px;line-height:1.4;color:var(--iox-text-2, #535D6E)}.builder .empty-link{margin-block-start:16px;padding:0;border:none;background:none;font:inherit;font-size:12px;color:var(--iox-accent-text, #A05C5C);cursor:pointer}@media(hover:hover)and (pointer:fine){.builder .empty-link:hover{text-decoration:underline}}.builder .empty-link:focus-visible{outline:2px solid #cb9090;outline-offset:2px}.builder app-breadcrumb-bar{flex:none;align-self:center;max-inline-size:100%;display:flex;align-items:center;padding:5px 13px;background:#ffffffeb;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid var(--iox-border-1, #DDE1E8);border-radius:999px;box-shadow:0 6px 20px #101b421a;max-inline-size:calc(100% - 112px);pointer-events:none}.builder .audit-dock{position:absolute;inset-block-start:20px;inset-inline-end:16px;z-index:20}.builder .global-elements-overlay{position:absolute;top:20px;left:50%;transform-origin:top center;pointer-events:none;z-index:9;overflow:hidden;container:iox-canvas/inline-size;direction:ltr}.builder .global-elements-overlay[dir=rtl]{direction:rtl}.builder .global-elements-overlay ::ng-deep>*{pointer-events:auto}.builder .global-elements-overlay .iox-canvas-globals-before{display:flow-root;pointer-events:none}.builder .global-elements-overlay .iox-canvas-globals-before ::ng-deep>*{pointer-events:auto}.builder .preview-node.is-selected{cursor:grab}.builder .empty-state{min-height:240px;border:1px dashed var(--p-surface-200);border-radius:10px;display:flex;align-items:center;justify-content:center;color:var(--p-text-muted-color);text-align:center;padding:1rem}.save-block-backdrop{position:fixed;inset:0;z-index:1000;background:#00000040}.save-block-dialog{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1001;background:#fff;border-radius:8px;box-shadow:0 8px 32px #0000002e;padding:24px;width:320px}.save-block-dialog .save-block-title{margin:0 0 16px;font-size:14px;font-weight:600;color:var(--p-text-color, #333)}.save-block-dialog .save-block-input{width:100%;padding:8px 10px;border:1px solid var(--p-surface-300, #d1d5db);border-radius:6px;font-size:13px;outline:none;box-sizing:border-box;margin-bottom:16px}.save-block-dialog .save-block-input:focus{border-color:#cb9090;box-shadow:0 0 0 2px #cb909033}.save-block-dialog .save-block-actions{display:flex;justify-content:flex-end;gap:8px}::ng-deep .moveable-control-box.iox-moveable-silent{z-index:1000!important}::ng-deep .moveable-control-box.iox-moveable-silent .moveable-line,::ng-deep .moveable-control-box.iox-moveable-silent .moveable-rotation,::ng-deep .moveable-control-box.iox-moveable-silent .moveable-rotation-line{display:none!important}::ng-deep .moveable-control-box.iox-moveable-silent .moveable-control{display:block!important;width:10px!important;height:10px!important;margin-top:-5px!important;margin-inline-start:-5px!important;background:#fff!important;border:1.5px solid #cb9090!important;border-radius:2px!important;box-shadow:0 1px 3px #0003!important}\n"] }]
|
|
12434
12527
|
}], ctorParameters: () => [{ type: ComponentRegistryService }, { type: OverlayService }, { type: PanelEventService }, { type: DragEngineService }, { type: DataSourceRegistryService }, { type: ViewportService }, { type: FormStateService }, { type: CanvasDesignStateService }, { type: InteractionEngineService }, { type: InteractionPresetRegistryService }, { type: BuilderClipboardService }, { type: SymbolRegistryService }, { type: i0.ChangeDetectorRef }, { type: i0.ApplicationRef }, { type: MoveableCanvasService }, { type: SelectoCanvasService }, { type: StyleRegistryService }], propDecorators: { layout: [{
|
|
12435
12528
|
type: Input
|
|
12436
12529
|
}], dataSources: [{
|
|
@@ -13815,7 +13908,7 @@ class SliderContainerComponent {
|
|
|
13815
13908
|
this.fetchData();
|
|
13816
13909
|
}
|
|
13817
13910
|
}
|
|
13818
|
-
constructor(dragEngine, cdr, isPreview, overlayService, dataSourceService, dsRegistry, panelEventService) {
|
|
13911
|
+
constructor(dragEngine, cdr, isPreview, overlayService, dataSourceService, dsRegistry, panelEventService, pageBindings) {
|
|
13819
13912
|
this.dragEngine = dragEngine;
|
|
13820
13913
|
this.cdr = cdr;
|
|
13821
13914
|
this.isPreview = isPreview;
|
|
@@ -13823,6 +13916,7 @@ class SliderContainerComponent {
|
|
|
13823
13916
|
this.dataSourceService = dataSourceService;
|
|
13824
13917
|
this.dsRegistry = dsRegistry;
|
|
13825
13918
|
this.panelEventService = panelEventService;
|
|
13919
|
+
this.pageBindings = pageBindings;
|
|
13826
13920
|
this._children = [];
|
|
13827
13921
|
/** The slides (into `.swiper-wrapper`); the template slide of a bound slider is `slides[0]`. */
|
|
13828
13922
|
this.slides = [];
|
|
@@ -13904,6 +13998,11 @@ class SliderContainerComponent {
|
|
|
13904
13998
|
this.isPreview = !!isPreview;
|
|
13905
13999
|
}
|
|
13906
14000
|
ngOnInit() {
|
|
14001
|
+
// A part inside a slide bound to ANOTHER page source (#165): its value lands later than the slides — re-bake them.
|
|
14002
|
+
this._pageSub = this.pageBindings?.resolved$.subscribe(alias => {
|
|
14003
|
+
if (this.items.length && templateReadsPageAlias(this.slides.slice(0, 1), alias, this.rowScope()))
|
|
14004
|
+
this.refreshPreviews();
|
|
14005
|
+
});
|
|
13907
14006
|
if (this.panelEventService) {
|
|
13908
14007
|
this._bindingSub = this.panelEventService.subscribe(event => {
|
|
13909
14008
|
if (event.type !== PanelEventTypes.BINDING_CHANGED)
|
|
@@ -13962,6 +14061,7 @@ class SliderContainerComponent {
|
|
|
13962
14061
|
this._destroySwiper();
|
|
13963
14062
|
this.syncSceneDriver(false);
|
|
13964
14063
|
this._bindingSub?.unsubscribe();
|
|
14064
|
+
this._pageSub?.unsubscribe();
|
|
13965
14065
|
}
|
|
13966
14066
|
/** Hand the runway to the scene driver while the scroll plays the slider, and take it back when it stops. */
|
|
13967
14067
|
syncSceneDriver(on) {
|
|
@@ -14014,25 +14114,33 @@ class SliderContainerComponent {
|
|
|
14014
14114
|
this._scheduleReinit();
|
|
14015
14115
|
return;
|
|
14016
14116
|
}
|
|
14017
|
-
this.
|
|
14117
|
+
const scope = this.rowScope();
|
|
14118
|
+
this.applyFirstItemToTemplate(scope);
|
|
14018
14119
|
// Each preview slide = one cloned SliderSlide node with item data resolved
|
|
14019
|
-
this.previewSlides = this.items.slice(1).map(item => cloneNodesForItem([this.slides[0]], item)[0]);
|
|
14120
|
+
this.previewSlides = this.items.slice(1).map(item => cloneNodesForItem([this.slides[0]], item, scope)[0]);
|
|
14020
14121
|
this.cdr.markForCheck();
|
|
14021
14122
|
this._scheduleReinit();
|
|
14022
14123
|
}
|
|
14023
|
-
|
|
14124
|
+
/** The engine's row scope (#165): the slider repeats `source` itself; any other source is the PAGE's value. */
|
|
14125
|
+
rowScope() {
|
|
14126
|
+
return { aliases: new Set(rowScopeAliases(this._source)), pageValue: binding => this.pageBindings?.valueFor(binding) };
|
|
14127
|
+
}
|
|
14128
|
+
applyFirstItemToTemplate(scope) {
|
|
14024
14129
|
const item = this.items[0];
|
|
14025
14130
|
if (!item || !this.slides.length || !this.overlayService)
|
|
14026
14131
|
return;
|
|
14027
14132
|
// Bindings live on leaf nodes inside the template slide, so recurse into the tree
|
|
14028
|
-
this.applyItemToNodes([this.slides[0]], item);
|
|
14133
|
+
this.applyItemToNodes([this.slides[0]], item, scope);
|
|
14029
14134
|
}
|
|
14030
|
-
applyItemToNodes(nodes, item) {
|
|
14135
|
+
applyItemToNodes(nodes, item, scope) {
|
|
14031
14136
|
for (const node of nodes) {
|
|
14032
14137
|
if (node.bindings?.length) {
|
|
14033
14138
|
const ref = this.overlayService.getNodeRef(node);
|
|
14034
14139
|
if (ref?.componentRef) {
|
|
14035
14140
|
for (const binding of node.bindings) {
|
|
14141
|
+
// Only the slide's own bindings (#165) — another page source is the page resolver's to write.
|
|
14142
|
+
if (!isRowBinding(binding, scope))
|
|
14143
|
+
continue;
|
|
14036
14144
|
// Path + pipes, like every other binding-resolution point. See
|
|
14037
14145
|
// binding-filters-plan.md — slide 1 used to skip the filters.
|
|
14038
14146
|
const value = resolveBoundValue(item, binding);
|
|
@@ -14048,7 +14156,7 @@ class SliderContainerComponent {
|
|
|
14048
14156
|
}
|
|
14049
14157
|
}
|
|
14050
14158
|
if (node.children?.length) {
|
|
14051
|
-
this.applyItemToNodes(node.children, item);
|
|
14159
|
+
this.applyItemToNodes(node.children, item, scope);
|
|
14052
14160
|
}
|
|
14053
14161
|
}
|
|
14054
14162
|
}
|
|
@@ -14117,7 +14225,7 @@ class SliderContainerComponent {
|
|
|
14117
14225
|
}
|
|
14118
14226
|
}
|
|
14119
14227
|
}
|
|
14120
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: SliderContainerComponent, deps: [{ token: DragEngineService }, { token: i0.ChangeDetectorRef }, { token: IS_PREVIEW, optional: true }, { token: OverlayService, optional: true }, { token: BuilderDataSourceService, optional: true }, { token: DataSourceRegistryService, optional: true }, { token: PanelEventService, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14228
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: SliderContainerComponent, deps: [{ token: DragEngineService }, { token: i0.ChangeDetectorRef }, { token: IS_PREVIEW, optional: true }, { token: OverlayService, optional: true }, { token: BuilderDataSourceService, optional: true }, { token: DataSourceRegistryService, optional: true }, { token: PanelEventService, optional: true }, { token: PageBindingResolverService, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14121
14229
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.31", type: SliderContainerComponent, isStandalone: false, selector: "app-slider-container", inputs: { children: "children", style: "style", nodeId: "nodeId", dropListId: "dropListId", dir: "dir", direction: "direction", slidesPerView: "slidesPerView", slidesPerGroup: "slidesPerGroup", loop: "loop", centeredSlides: "centeredSlides", spaceBetween: "spaceBetween", initialSlide: "initialSlide", autoHeight: "autoHeight", grabCursor: "grabCursor", slideToClickedSlide: "slideToClickedSlide", effect: "effect", creativePreset: "creativePreset", speed: "speed", scrollPlays: "scrollPlays", enableNavigation: "enableNavigation", navigationColor: "navigationColor", navigationSize: "navigationSize", enablePagination: "enablePagination", paginationColor: "paginationColor", paginationType: "paginationType", paginationClickable: "paginationClickable", paginationDynamicBullets: "paginationDynamicBullets", enableAutoplay: "enableAutoplay", autoplayDelay: "autoplayDelay", autoplayPauseOnMouseEnter: "autoplayPauseOnMouseEnter", autoplayDisableOnInteraction: "autoplayDisableOnInteraction", enableScrollbar: "enableScrollbar", freeMode: "freeMode", enableKeyboard: "enableKeyboard", enableMousewheel: "enableMousewheel", enableZoom: "enableZoom", enableParallax: "enableParallax", enableGrid: "enableGrid", gridRows: "gridRows", breakpoints: "breakpoints", source: "source", limit: "limit" }, outputs: { childClick: "childClick", childMouseEnter: "childMouseEnter", childMouseLeave: "childMouseLeave" }, viewQueries: [{ propertyName: "runwayEl", first: true, predicate: ["runwayEl"], descendants: true, static: true }, { propertyName: "swiperEl", first: true, predicate: ["swiperEl"], descendants: true }, { propertyName: "editSwiperEl", first: true, predicate: ["editSwiperEl"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
14122
14230
|
<!-- Premium M4: a slider the SCROLL plays sits in its runway — the Scene root the ONE scene driver drives (pinned
|
|
14123
14231
|
with translate on the canvas, sticky in Preview). Otherwise the wrapper is display: contents. -->
|
|
@@ -14490,6 +14598,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
14490
14598
|
type: Optional
|
|
14491
14599
|
}] }, { type: PanelEventService, decorators: [{
|
|
14492
14600
|
type: Optional
|
|
14601
|
+
}] }, { type: PageBindingResolverService, decorators: [{
|
|
14602
|
+
type: Optional
|
|
14493
14603
|
}] }], propDecorators: { children: [{
|
|
14494
14604
|
type: Input
|
|
14495
14605
|
}], style: [{
|
|
@@ -16836,5 +16946,5 @@ class BuilderSpacerComponentConfig extends ComponentConfig {
|
|
|
16836
16946
|
* Generated bundle index. Do not edit.
|
|
16837
16947
|
*/
|
|
16838
16948
|
|
|
16839
|
-
export { ACTION_TYPE_OPTIONS, AuditCode, AuditPanelComponent, AuditSeverity, BODY_CRUMB_LABEL, BOUND_ICON, BREAKPOINT_PRESENTATION, BUILDER_CANVAS_CONTAINER, BUILDER_CHROME_EN, BUILDER_FONT_LINK_ATTR, BUILDER_TOKEN_SCOPE_CLASS, BackgroundGroupStyleConfig, BorderGroupStyleConfig, BreadcrumbBarComponent, BuilderButtonBlockComponent, BuilderButtonComponentConfig, BuilderClipboardService, BuilderComponent, BuilderContainerComponent, BuilderContainerComponentConfig, BuilderDataSourceService, BuilderDialogComponent, BuilderDividerComponentConfig, BuilderHeadingComponentConfig, BuilderHistoryService, BuilderIconComponentConfig, BuilderImageComponentConfig, BuilderLinkComponentConfig, BuilderLinkedContainerComponent, BuilderLinkedContainerConfig, BuilderListComponentConfig, BuilderListItemComponentConfig, BuilderMode, BuilderPopoverComponent, BuilderRepeaterComponent, BuilderSpacerComponentConfig, BusinessSpecimenView, ButtonBlockComponentConfig, CANVAS_EMPTY_IMAGE_LABEL_EN, CANVAS_EMPTY_IMAGE_LABEL_KEY, CANVAS_ROOT_RESET_CSS, CANVAS_TOKEN_SCOPE, COMPOSITE_PRESETS, CanvasDesignStateService, CanvasShowGroup, CanvasShowState, CardComponentConfig, ChildLayoutGroupStyleConfig, ComponentConfig, ComponentRegistryService, CompositeCanvasService, CompositePaletteGroup, CompositePresetId, DEFAULT_ESSENTIAL_TRAITS, DESCRIPTOR_MAX_LENGTH, DRAG_HANDLE_ATTR, DROP_REFUSED_CLASS, DataSourceRegistryService, DataSourceType, DialogComponentConfig, DimensionsGroupStyleConfig, DragEngineService, EASING_OPTIONS, EDITOR_CHROME_ATTRIBUTE, ESSENTIAL_TRAITS_BY_TYPE, EffectsGroupStyleConfig, FIELD_KIND_PRESETS, FIELD_PARTS, FOOTER_MIX_TRAIT, FORM_STATE_BLOCK_TYPES, FORM_TYPE, FORM_WORD_TYPES, FieldComponentConfig, FieldGroupComponentConfig, FieldTrait, FormComponentConfig, FormErrorComponentConfig, FormStateService, FormSuccessComponentConfig, GLOBALS_AFTER_CLASS, GalleryConfig, GlobalCanvasLayer, GroupStyleConfig, HIDDEN_AT_REST_LABEL_KEY, HIDDEN_AT_REST_ROLES, HIDDEN_AT_REST_TYPES, INSERT_REFUSAL_LABEL_KEYS, INTERACTION_STATES, INVERSE_ACTION, IOX_BUILDER_CANVAS, IOX_BUILDER_LABELS, IOX_CONTENT_TYPE_LABELS, IOX_DATA_SOURCE_ENDPOINTS, IOX_RENDER_DISPLAY_ONLY, InsertRefusal, InteractionEngineService, InteractionPresetRegistryService, IoxBuilderModule, IoxDraggableDirective, IoxDropzoneDirective, LAYOUT_PRESETS, LIST_MIX_TRAIT, LayerTreeComponent, LayoutGroupStyleConfig, ListGroupStyleConfig, NO_PAGE_PARAMS, NodeAction, OPENING_MIX_TRAIT, OverlayComponent, OverlayService, PAGE_TRANSITION_EASING_OPTIONS, PALETTE_PRESET_DEFS, POPOVER_PLACEMENT_OPTIONS, POPOVER_SHEET_MAX_WIDTH, PageBindingRead, PageBindingResolverService, PanelChildComponent, PanelComponent, PanelEventService, PanelEventTypes, PanelTypes, PhoneMenuOpenerAction, PopoverComponentConfig, PositionGroupStyleConfig, PresetRegistryService, RELATIONAL_STATES, RELATIONAL_STATE_BASE, REPEATER_SOURCE_PROP, REPEATER_TYPE, REVEALED_WHILE_SELECTED_ROLES, ROOT_ESCAPE_PX, ROUTE_ANIMATION_OPTIONS, RenderDirective, RepeaterComponentConfig, RootZone, SCREEN_WIDTH_OPTIONS, SENT_LABEL_TRAIT, SILENT_REFUSALS, SLIDER_CREATIVE_PRESET_TRAIT, STRUCTURAL_STATES, SUPPORTED_STATES, SceneCanvasService, SectionComponent, SectionComponentConfig, SelectionReveal, SizeGroupStyleConfig, SliderContainerComponent, SliderContainerConfig, SliderSlideComponent, SliderSlideConfig, SpacingGroupStyleConfig, StructureFix, StyleCategory, StyleRegistryService, TraitConfig as StyleTraitConfig, SubmitButtonComponentConfig, SymbolRegistryService, TARGETED_STATES, TARGETED_STATE_BASE, TOGGLE_PART_ROLES, TRIGGER_OPTIONS, TextBlockComponentConfig, ToolbarAction, ToolbarComponent, TraitConfig, TraitInputType, TypographyGroupStyleConfig, UNITS_ALL, UNITS_DEG, UNITS_FIXED, UNITS_NO_VW, VALIDATION_STATES, VALIDATION_STATE_CLASS, VideoConfig, ViewportService, ZOOM_OPTIONS, addFormChannel, arrayItemSchemaFields, arraySchemaFields, auditNodes, bindingLabel, bindingLabels, buildBusinessSpecimen, buildCompositePreset, buildConsentPreset, buildElementStyleSpecimen, buildFieldKindPreset, buildFlavorSpecimen, buildFormActionsRow, buildFormChannel, buildFormPreset, buildFullStyleTraits, buildLayoutPreset, buildPalettePreset, buildPresetStyleTraits, builderCompositeFactory, canFluidise, canvasEmptyImageLabel, canvasFloatingContainer, canvasHostDisplay, channelLabel, collapseColumnsProps, columnCountOf, compositeStructureFindings, defaultBuilderLabels, defaultPageSettings, deleteTabPair, displayTrigger, displayTriggerOf, dropChildren, dropSectionStamps, dropTargetLabel, duplicateTabPair, escapesRoot, essentialTraitsFor, findNodeByIdInEither, findNodeLocation, findParentOf, flattenLayerTree, flattenSchemaFields, fluidiseProps, followsScroll, formChannelOf, generateNodeId, globalCanvasLayer, hiddenAtBase, hiddenUntilItemOn, inPhoneMenuContext, insertRefusal, insertRefusalLabel, interactionTargets, isDisplayOnlyNode, isHiddenAt, isHiddenAtRest, isPhoneMenuOpener, isPinnedGlobal, isReadingBar, isSpecimen, itemsOnAtRest, listOwnedAliases, listScopeAliases, markSpecimen, matchesControlSearch, nearestFormNode, neverShown, nodeAncestorPath, nodeAncestorPathInEither, nodeDescriptor, nodeStyleMap, overlayGlobals, pageBindingValue, pageBindingsOf, pathToNode, phoneMenuOf, phoneMenuShowsAt, refreshSubtree, regenerateNodeIds, removalRefusal, reorderProps, repeaterSourceAlias, repeaterSubLabel, resolveDragData, resolveInsertTarget, resolveTraitControllerType, resolveTraitOptions, retypeNode, rootEscapeBand, rootZone, rowInsertIndex, selectionRevealOf, setChannelAddress, setOverlayPreview, setStyleTrait, setTrait, shortDescriptor, showCanvasToast, shownBeforeControl, sourceContentType, sourceTypeLabel, stackChildrenProps, summarise, syncEmptyImagePlaceholder, syncNodeDesign, syncNodeInputs, tabPairLabel, tabsRootForPart, textNode, upsertNodeStyles, visibilityProps, walkNodes, wearFormWords, wrapNode };
|
|
16949
|
+
export { ACTION_TYPE_OPTIONS, AuditCode, AuditPanelComponent, AuditSeverity, BODY_CRUMB_LABEL, BOUND_ICON, BREAKPOINT_PRESENTATION, BUILDER_CANVAS_CONTAINER, BUILDER_CHROME_EN, BUILDER_FONT_LINK_ATTR, BUILDER_TOKEN_SCOPE_CLASS, BackgroundGroupStyleConfig, BorderGroupStyleConfig, BreadcrumbBarComponent, BuilderButtonBlockComponent, BuilderButtonComponentConfig, BuilderClipboardService, BuilderComponent, BuilderContainerComponent, BuilderContainerComponentConfig, BuilderDataSourceService, BuilderDialogComponent, BuilderDividerComponentConfig, BuilderHeadingComponentConfig, BuilderHistoryService, BuilderIconComponentConfig, BuilderImageComponentConfig, BuilderLinkComponentConfig, BuilderLinkedContainerComponent, BuilderLinkedContainerConfig, BuilderListComponentConfig, BuilderListItemComponentConfig, BuilderMode, BuilderPopoverComponent, BuilderRepeaterComponent, BuilderSpacerComponentConfig, BusinessSpecimenView, ButtonBlockComponentConfig, CANVAS_EMPTY_IMAGE_LABEL_EN, CANVAS_EMPTY_IMAGE_LABEL_KEY, CANVAS_ROOT_RESET_CSS, CANVAS_TOKEN_SCOPE, COMPOSITE_PRESETS, CanvasDesignStateService, CanvasShowGroup, CanvasShowState, CardComponentConfig, ChildLayoutGroupStyleConfig, ComponentConfig, ComponentRegistryService, CompositeCanvasService, CompositePaletteGroup, CompositePresetId, DEFAULT_ESSENTIAL_TRAITS, DESCRIPTOR_MAX_LENGTH, DRAG_HANDLE_ATTR, DROP_REFUSED_CLASS, DataSourceRegistryService, DataSourceType, DialogComponentConfig, DimensionsGroupStyleConfig, DragEngineService, EASING_OPTIONS, EDITOR_CHROME_ATTRIBUTE, ESSENTIAL_TRAITS_BY_TYPE, EffectsGroupStyleConfig, FIELD_KIND_PRESETS, FIELD_PARTS, FOOTER_MIX_TRAIT, FORM_STATE_BLOCK_TYPES, FORM_TYPE, FORM_WORD_TYPES, FieldComponentConfig, FieldGroupComponentConfig, FieldTrait, FormComponentConfig, FormErrorComponentConfig, FormStateService, FormSuccessComponentConfig, GLOBALS_AFTER_CLASS, GalleryConfig, GlobalCanvasLayer, GroupStyleConfig, HIDDEN_AT_REST_LABEL_KEY, HIDDEN_AT_REST_ROLES, HIDDEN_AT_REST_TYPES, INSERT_REFUSAL_LABEL_KEYS, INTERACTION_STATES, INVERSE_ACTION, IOX_BUILDER_CANVAS, IOX_BUILDER_LABELS, IOX_CONTENT_TYPE_LABELS, IOX_DATA_SOURCE_ENDPOINTS, IOX_RENDER_DISPLAY_ONLY, InsertRefusal, InteractionEngineService, InteractionPresetRegistryService, IoxBuilderModule, IoxDraggableDirective, IoxDropzoneDirective, LAYOUT_PRESETS, LAYOUT_PRESET_WORDS_EN, LIST_MIX_TRAIT, LayerTreeComponent, LayoutGroupStyleConfig, ListGroupStyleConfig, NO_PAGE_PARAMS, NodeAction, OPENING_MIX_TRAIT, OverlayComponent, OverlayService, PAGE_TRANSITION_EASING_OPTIONS, PALETTE_PRESET_DEFS, POPOVER_PLACEMENT_OPTIONS, POPOVER_SHEET_MAX_WIDTH, PageBindingRead, PageBindingResolverService, PanelChildComponent, PanelComponent, PanelEventService, PanelEventTypes, PanelTypes, PhoneMenuOpenerAction, PopoverComponentConfig, PositionGroupStyleConfig, PresetRegistryService, RELATIONAL_STATES, RELATIONAL_STATE_BASE, REPEATER_SOURCE_PROP, REPEATER_TYPE, REVEALED_WHILE_SELECTED_ROLES, ROOT_ESCAPE_PX, ROUTE_ANIMATION_OPTIONS, RenderDirective, RepeaterComponentConfig, RootZone, SCREEN_WIDTH_OPTIONS, SENT_LABEL_TRAIT, SILENT_REFUSALS, SLIDER_CREATIVE_PRESET_TRAIT, STRUCTURAL_STATES, SUPPORTED_STATES, SceneCanvasService, SectionComponent, SectionComponentConfig, SelectionReveal, SizeGroupStyleConfig, SliderContainerComponent, SliderContainerConfig, SliderSlideComponent, SliderSlideConfig, SpacingGroupStyleConfig, StructureFix, StyleCategory, StyleRegistryService, TraitConfig as StyleTraitConfig, SubmitButtonComponentConfig, SymbolRegistryService, TARGETED_STATES, TARGETED_STATE_BASE, TOGGLE_PART_ROLES, TRIGGER_OPTIONS, TextBlockComponentConfig, ToolbarAction, ToolbarComponent, TraitConfig, TraitInputType, TypographyGroupStyleConfig, UNITS_ALL, UNITS_DEG, UNITS_FIXED, UNITS_NO_VW, VALIDATION_STATES, VALIDATION_STATE_CLASS, VideoConfig, ViewportService, ZOOM_OPTIONS, addFormChannel, arrayItemSchemaFields, arraySchemaFields, auditNodes, bindingLabel, bindingLabels, buildBusinessSpecimen, buildCompositePreset, buildConsentPreset, buildElementStyleSpecimen, buildFieldKindPreset, buildFlavorSpecimen, buildFormActionsRow, buildFormChannel, buildFormPreset, buildFullStyleTraits, buildLayoutPreset, buildPalettePreset, buildPresetStyleTraits, builderCompositeFactory, canFluidise, canvasEmptyImageLabel, canvasFloatingContainer, canvasHostDisplay, channelLabel, collapseColumnsProps, columnCountOf, compositeStructureFindings, defaultBuilderLabels, defaultPageSettings, deleteTabPair, displayTrigger, displayTriggerOf, dropChildren, dropSectionStamps, dropTargetLabel, duplicateTabPair, escapesRoot, essentialTraitsFor, findNodeByIdInEither, findNodeLocation, findParentOf, flattenLayerTree, flattenSchemaFields, fluidiseProps, followsScroll, formChannelOf, generateNodeId, globalCanvasLayer, hiddenAtBase, hiddenUntilItemOn, inPhoneMenuContext, insertRefusal, insertRefusalLabel, interactionTargets, isDisplayOnlyNode, isHiddenAt, isHiddenAtRest, isPhoneMenuOpener, isPinnedGlobal, isReadingBar, isRowBinding, isSpecimen, itemsOnAtRest, layoutPresetDescriptionKey, layoutPresetNameKey, listOwnedAliases, listScopeAliases, markSpecimen, matchesControlSearch, nearestFormNode, neverShown, nodeAncestorPath, nodeAncestorPathInEither, nodeDescriptor, nodeStyleMap, overlayGlobals, pageBindingValue, pageBindingsOf, pathToNode, phoneMenuOf, phoneMenuShowsAt, refreshSubtree, regenerateNodeIds, removalRefusal, reorderProps, repeaterSourceAlias, repeaterSubLabel, resolveDragData, resolveInsertTarget, resolveTraitControllerType, resolveTraitOptions, retypeNode, rootEscapeBand, rootZone, rowBindingValue, rowInsertIndex, rowScopeAliases, selectionRevealOf, setChannelAddress, setOverlayPreview, setStyleTrait, setTrait, shortDescriptor, showCanvasToast, shownBeforeControl, sourceContentType, sourceTypeLabel, stackChildrenProps, summarise, syncEmptyImagePlaceholder, syncNodeDesign, syncNodeInputs, tabPairLabel, tabsRootForPart, templateReadsPageAlias, textNode, upsertNodeStyles, visibilityProps, walkNodes, wearFormWords, wrapNode };
|
|
16840
16950
|
//# sourceMappingURL=vectoriox-iox-builder.mjs.map
|