@vectoriox/iox-builder 11.42.2 → 11.43.0
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 +369 -87
- package/fesm2022/vectoriox-iox-builder.mjs.map +1 -1
- package/index.d.ts +97 -10
- package/package.json +2 -2
|
@@ -17,20 +17,20 @@ 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 { 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,
|
|
20
|
+
import { Breakpoint, setOverride, nodeCssId, needsGroupName, resolveBoundValue, isBoundStyleProp, applyBoundStyle, safeSetInput, 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, 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, groundHeadersIn, watchHeaderHeight, compilePageStyle, nodeUsesContext, attachTooltips, showToastDesign, TOOLTIP_ATTRIBUTE, hidingHeadersIn, HeaderRuntime, inkFollowingHeadersIn, HeaderInkRuntime, isScrolled, SCROLLED_ATTRIBUTE, syncSubmitButtons, buttonBlockHref, pageLanguageOf, 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';
|
|
24
24
|
import { Subject, BehaviorSubject, of, forkJoin, combineLatest } from 'rxjs';
|
|
25
|
+
import { isPlaceholderRow, variableAliases, listTitleField } from '@vectoriox/iox-ui/data-core';
|
|
25
26
|
import interact from 'interactjs';
|
|
26
|
-
import { HeaderTrait, HeaderBehaviour, HeaderEdge, HeaderInk, SECTION_EDGE_TRAIT, SECTION_EDGES, SECTION_SHAPE_TRAIT, SectionShape, MenuTrait, MenuForm, MenuReveal, MenuHover, MenuPhoneForm, MenuButtonKind, localeDirection, pageColumn, pageOpeningScheme, menuDialogAttributes, MenuAttribute, closeWord } from '@vectoriox/iox-ui/design-core';
|
|
27
|
+
import { HeaderTrait, HeaderBehaviour, HeaderEdge, HeaderInk, HeaderGround, SECTION_EDGE_TRAIT, SECTION_EDGES, SECTION_SHAPE_TRAIT, SectionShape, MenuTrait, MenuForm, MenuReveal, MenuHover, MenuPhoneForm, MenuButtonKind, openingMediaOf, localeDirection, pageColumn, HeaderAttribute, pageOpeningScheme, menuDialogAttributes, MenuAttribute, closeWord } from '@vectoriox/iox-ui/design-core';
|
|
27
28
|
import { map, catchError, skip } from 'rxjs/operators';
|
|
28
29
|
import * as i1 from '@angular/common/http';
|
|
29
30
|
import { SAMPLE_PRODUCT, productInScope, simulatedCartTransport, storefrontCatalog, SAMPLE_STUDIO, SAMPLE_CART_LINE, SAMPLE_SWATCHES } from '@vectoriox/iox-ui/commerce-core';
|
|
30
31
|
import { POPOVER_ACTION_TYPE_SET, TOAST_ACTION_TYPES, itemActionOf, BEHAVIOUR_ACTION_TYPES, SHOP_ACTION_TYPES, ACCOUNT_ACTION_TYPES, SERVER_ELEMENT_ACTION_TYPES, CONSENT_ACTION_TYPES, opensAtClickedItem, openedDialogId, DIALOG_CLOSING_ATTRIBUTE, cancelExit, runExitMotion, dialogOpenersSelector, dialogDomId, revealOrigin, holdClosedWhile, revealOriginStyle, popoverOpenersSelector, popoverDomId } from '@vectoriox/iox-ui/actions-core';
|
|
31
32
|
import { NavRole, navShapeBreakpoint, isScrubbedEntrance, ENTRANCE_TRIGGER, entranceInteraction, entranceAction, sectionEntrances, EntrancePart } from '@vectoriox/iox-ui/generation-core';
|
|
32
33
|
import { ScrollDriver, syncSceneAttributes, SCENE_LAND_TRIGGER, onSceneLand, watchArrival, arrivedWithin, buildSceneRecipe } from '@vectoriox/iox-ui/scene-core';
|
|
33
|
-
import { variableAliases } from '@vectoriox/iox-ui/data-core';
|
|
34
34
|
import Lenis from 'lenis';
|
|
35
35
|
import { simulatedSiteAuthTransport } from '@vectoriox/iox-ui/identity-core';
|
|
36
36
|
import Moveable from 'moveable';
|
|
@@ -190,6 +190,10 @@ const IOX_CONTENT_TYPE_LABELS = new InjectionToken('IOX_CONTENT_TYPE_LABELS', {
|
|
|
190
190
|
providedIn: 'root',
|
|
191
191
|
factory: () => () => null,
|
|
192
192
|
});
|
|
193
|
+
const IOX_CONTENT_CREATE_LINK = new InjectionToken('IOX_CONTENT_CREATE_LINK', {
|
|
194
|
+
providedIn: 'root',
|
|
195
|
+
factory: () => () => null,
|
|
196
|
+
});
|
|
193
197
|
/** Standalone behaviour: the English text the library ships with. */
|
|
194
198
|
const defaultBuilderLabels = (_key, fallback) => fallback;
|
|
195
199
|
/**
|
|
@@ -270,6 +274,9 @@ const BUILDER_CHROME_EN = Object.freeze({
|
|
|
270
274
|
'builder.chrome.fromContent': 'From {source} · {count} rows',
|
|
271
275
|
'builder.chrome.emptySource': 'No rows in “{alias}”.',
|
|
272
276
|
'builder.chrome.emptySourceHint': 'The {type} content type has no published items that match this source’s filters. Add items in Content ▸ {type}, or change the source.',
|
|
277
|
+
'builder.chrome.ghostTitle': 'Add your first {noun}',
|
|
278
|
+
'builder.chrome.ghostBody': 'It appears here as soon as you add it. Visitors never see this card.',
|
|
279
|
+
'builder.chrome.ghostAdd': 'Add {noun}',
|
|
273
280
|
'builder.chrome.fromRow': 'row {row} — every row wears this part',
|
|
274
281
|
'builder.chrome.auditFormInLink': 'Is inside {host} — a click in a field would follow the link.',
|
|
275
282
|
'builder.chrome.auditMoveFormOut': 'Move it out',
|
|
@@ -1292,6 +1299,39 @@ function cloneNodesForItem(nodes, item, scope) {
|
|
|
1292
1299
|
return clone;
|
|
1293
1300
|
});
|
|
1294
1301
|
}
|
|
1302
|
+
/**
|
|
1303
|
+
* Row 1 of a bound list (a Repeater's, a Slider's): write `item`'s values into the LIVE template nodes, the whole subtree
|
|
1304
|
+
* — rows 2..n carry theirs baked in by `cloneNodesForItem`. ONE function for both lists (they held a copy each).
|
|
1305
|
+
*
|
|
1306
|
+
* Only the row's own bindings (#165): one to another page source is the page resolver's to write. Path + pipes, like every
|
|
1307
|
+
* other binding-resolution point; a `style:` binding (a colour block's ground and ink) is written on the element, the
|
|
1308
|
+
* engine's carrier, never pushed into an input.
|
|
1309
|
+
*
|
|
1310
|
+
* A value goes in through `safeSetInput`: a declared input through `setInput`, which marks an OnPush component (Heading,
|
|
1311
|
+
* Text…) for check. A bare assignment followed by `detectChanges()` on the HOST view never redrew an OnPush view, so row 1
|
|
1312
|
+
* kept its design-time words — an empty title, the sample price — while rows 2..n showed theirs (vectoriox/iox-ui#176).
|
|
1313
|
+
*/
|
|
1314
|
+
function applyItemToTemplateRow(nodes, item, scope, refOf) {
|
|
1315
|
+
for (const node of nodes) {
|
|
1316
|
+
if (node.bindings?.length) {
|
|
1317
|
+
const ref = refOf(node);
|
|
1318
|
+
if (ref?.componentRef) {
|
|
1319
|
+
for (const binding of node.bindings) {
|
|
1320
|
+
if (!isRowBinding(binding, scope))
|
|
1321
|
+
continue;
|
|
1322
|
+
const value = resolveBoundValue(item, binding);
|
|
1323
|
+
if (applyBoundStyle(ref.element, binding.prop, value))
|
|
1324
|
+
continue;
|
|
1325
|
+
if (value !== undefined)
|
|
1326
|
+
safeSetInput(ref.componentRef, binding.prop, value);
|
|
1327
|
+
}
|
|
1328
|
+
ref.componentRef.changeDetectorRef.detectChanges();
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
if (node.children?.length)
|
|
1332
|
+
applyItemToTemplateRow(node.children, item, scope, refOf);
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1295
1335
|
|
|
1296
1336
|
/** The content type a data source reads (`faqs`), or '' for a source that reads none (external, static). */
|
|
1297
1337
|
function sourceContentType(ds) {
|
|
@@ -1307,6 +1347,41 @@ function sourceTypeLabel(alias, ds, resolve) {
|
|
|
1307
1347
|
return (type && resolve(type)) || alias;
|
|
1308
1348
|
}
|
|
1309
1349
|
|
|
1350
|
+
/**
|
|
1351
|
+
* The rows a list draws, the owner's first (board A2: real cards first, then one quiet ghost per remaining sample) and
|
|
1352
|
+
* at most `limit` of them — as the engine lists the live rows first and then applies the limit.
|
|
1353
|
+
*/
|
|
1354
|
+
function planGhostRows(items, titleField, limit) {
|
|
1355
|
+
const own = [];
|
|
1356
|
+
const samples = [];
|
|
1357
|
+
for (const item of items ?? [])
|
|
1358
|
+
(isPlaceholderRow(item, titleField) ? samples : own).push(item);
|
|
1359
|
+
const rows = [...own, ...samples].slice(0, Math.max(0, limit));
|
|
1360
|
+
return { rows, ghosts: rows.map((_, i) => i >= own.length) };
|
|
1361
|
+
}
|
|
1362
|
+
/**
|
|
1363
|
+
* The English noun a ghost card names its type by ("Add your first project"): the content type's name in words, made
|
|
1364
|
+
* singular (`projects` → project, `teamMembers` → team member, `categories` → category). An interim reading until the
|
|
1365
|
+
* contract carries a per-type singular label in both languages; the Hebrew title names no noun.
|
|
1366
|
+
*/
|
|
1367
|
+
function ghostNoun(contentType) {
|
|
1368
|
+
const words = (contentType ?? '')
|
|
1369
|
+
.replace(/([a-z0-9])([A-Z])/g, '$1 $2')
|
|
1370
|
+
.replace(/[-_\s]+/g, ' ')
|
|
1371
|
+
.trim()
|
|
1372
|
+
.toLowerCase()
|
|
1373
|
+
.split(' ')
|
|
1374
|
+
.filter(Boolean);
|
|
1375
|
+
if (!words.length)
|
|
1376
|
+
return '';
|
|
1377
|
+
const last = words[words.length - 1];
|
|
1378
|
+
words[words.length - 1] = /ies$/.test(last) ? last.replace(/ies$/, 'y')
|
|
1379
|
+
: /(ch|sh|ss|x)es$/.test(last) ? last.replace(/es$/, '')
|
|
1380
|
+
: /[^s]s$/.test(last) ? last.replace(/s$/, '')
|
|
1381
|
+
: last;
|
|
1382
|
+
return words.join(' ');
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1310
1385
|
const freshId = () => Math.random().toString(36).substr(2, 9);
|
|
1311
1386
|
/**
|
|
1312
1387
|
* Assign fresh ids to a cloned ComponentNode subtree AND remap intra-subtree references to the
|
|
@@ -2262,6 +2337,16 @@ function buildHeaderBehaviourTraits() {
|
|
|
2262
2337
|
{ label: "The page's opening", value: HeaderInk.Opening },
|
|
2263
2338
|
{ label: 'Every section', value: HeaderInk.Follows },
|
|
2264
2339
|
]),
|
|
2340
|
+
// HI3 slice 1 (HI3-D1, D13): what the header stands on — its own bar, the look's glass, or over the opening (clear
|
|
2341
|
+
// until the page moves). Written by the Header studio (Around the bar ▸ Ground) and the composer (`ground:<word>`);
|
|
2342
|
+
// no default (R-H4), so a header that never chose saves none — and a composed one KEEPS its word through the
|
|
2343
|
+
// builder's load and save (a prop with no trait here was dropped on the first save).
|
|
2344
|
+
new TraitConfig(HeaderTrait.Ground, 'Ground', TraitInputType.Select, [
|
|
2345
|
+
{ label: 'Its own bar', value: HeaderGround.Solid },
|
|
2346
|
+
{ label: 'Glass', value: HeaderGround.Glass },
|
|
2347
|
+
{ label: 'Over the picture', value: HeaderGround.Over },
|
|
2348
|
+
{ label: 'Over the picture, then glass', value: HeaderGround.OverGlass },
|
|
2349
|
+
]),
|
|
2265
2350
|
];
|
|
2266
2351
|
}
|
|
2267
2352
|
/**
|
|
@@ -4662,7 +4747,7 @@ var CanvasShowGroup;
|
|
|
4662
4747
|
})(CanvasShowGroup || (CanvasShowGroup = {}));
|
|
4663
4748
|
const EMPTY_SNAPSHOT = () => ({
|
|
4664
4749
|
revealed: new Set(), selectedTriggers: new Set(), pinned: new Set(), triggeredBySelection: new Set(), shown: new Map(), items: new Map(),
|
|
4665
|
-
runtime: new Set(), menu: null, tooltips: new Set(), toast: null,
|
|
4750
|
+
runtime: new Set(), menu: null, tooltips: new Set(), toast: null, scrolled: false,
|
|
4666
4751
|
});
|
|
4667
4752
|
/**
|
|
4668
4753
|
* The canvas's DESIGN state (complex-components R2; composite plan §5a's CompositeDesignStateService,
|
|
@@ -4845,6 +4930,17 @@ class CanvasDesignStateService {
|
|
|
4845
4930
|
get toastShown() {
|
|
4846
4931
|
return this._state$.value.toast;
|
|
4847
4932
|
}
|
|
4933
|
+
/** On the canvas ▸ At the top (false) · Scrolled (true): hold the canvas in the Page scrolled state, or let it follow
|
|
4934
|
+
* its own scroll again. Canvas-only — never saved, never a history step. */
|
|
4935
|
+
setScrolledShown(on) {
|
|
4936
|
+
if (this._state$.value.scrolled === on)
|
|
4937
|
+
return;
|
|
4938
|
+
this._state$.next({ ...this._state$.value, scrolled: on });
|
|
4939
|
+
}
|
|
4940
|
+
/** True while the canvas is held in the Page scrolled state. */
|
|
4941
|
+
get scrolledShown() {
|
|
4942
|
+
return this._state$.value.scrolled;
|
|
4943
|
+
}
|
|
4848
4944
|
/** A new page on the canvas: nothing is revealed or switched open. */
|
|
4849
4945
|
reset() {
|
|
4850
4946
|
this._state$.next(EMPTY_SNAPSHOT());
|
|
@@ -6926,6 +7022,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
6926
7022
|
const EMPTY_SOURCE_KEY = 'builder.chrome.emptySource';
|
|
6927
7023
|
const EMPTY_SOURCE_HINT_KEY = 'builder.chrome.emptySourceHint';
|
|
6928
7024
|
const NO_TYPE_LABELS = () => null;
|
|
7025
|
+
const GHOST_TITLE_KEY = 'builder.chrome.ghostTitle';
|
|
7026
|
+
const GHOST_BODY_KEY = 'builder.chrome.ghostBody';
|
|
7027
|
+
const GHOST_ADD_KEY = 'builder.chrome.ghostAdd';
|
|
7028
|
+
const NO_CREATE_LINK = () => null;
|
|
6929
7029
|
class BuilderRepeaterComponent {
|
|
6930
7030
|
get children() { return this._children; }
|
|
6931
7031
|
/** RenderDirective sets `source` (→ fetchData) BEFORE `children`. With an async source the response
|
|
@@ -6937,8 +7037,9 @@ class BuilderRepeaterComponent {
|
|
|
6937
7037
|
// Defer to the next tick: RenderDirective sets `children` before the template child's
|
|
6938
7038
|
// component is instantiated/registered, so applyFirstItemToTemplate needs the ref to exist
|
|
6939
7039
|
// first (otherwise the FIRST row shows its default instead of item[0]'s value).
|
|
7040
|
+
// The template names the title field the ghost reading needs, so the rows are read again with it.
|
|
6940
7041
|
if (this.items.length)
|
|
6941
|
-
setTimeout(() => this.refreshPreviews());
|
|
7042
|
+
setTimeout(() => { this.applyRows(); this.refreshPreviews(); });
|
|
6942
7043
|
}
|
|
6943
7044
|
/**
|
|
6944
7045
|
* Whether the template row is drawn. The canvas always draws it — it is what the author edits. Preview draws it only
|
|
@@ -6961,6 +7062,49 @@ class BuilderRepeaterComponent {
|
|
|
6961
7062
|
const type = sourceTypeLabel(this._source, this.dsRegistry.findByAlias(this._source), this.typeLabels ?? NO_TYPE_LABELS);
|
|
6962
7063
|
return this.label(EMPTY_SOURCE_HINT_KEY).split('{type}').join(type);
|
|
6963
7064
|
}
|
|
7065
|
+
/**
|
|
7066
|
+
* Whether row `index` draws as a ghost card. A plain list only: an Accordion's or a Tabs' rows are a control's
|
|
7067
|
+
* items, not cards (they keep drawing as rows; the live engine leaves their samples out the same way).
|
|
7068
|
+
*/
|
|
7069
|
+
ghostAt(index) {
|
|
7070
|
+
return !!this.ghosts[index] && !isAccordionRoot(this.node) && !isExclusiveList(this.node);
|
|
7071
|
+
}
|
|
7072
|
+
/** The first row is a ghost only when every row is (the owner's rows come first): it carries the prompt (board A). */
|
|
7073
|
+
get ghostPrompt() {
|
|
7074
|
+
return this.ghostAt(0);
|
|
7075
|
+
}
|
|
7076
|
+
/** The eyebrow: the content type's label as the host names it ("Products", "מוצרים"), else the alias. */
|
|
7077
|
+
get ghostKicker() {
|
|
7078
|
+
return sourceTypeLabel(this._source, this.dsRegistry.findByAlias(this._source), this.typeLabels ?? NO_TYPE_LABELS);
|
|
7079
|
+
}
|
|
7080
|
+
/** The noun the English words name ("product"); the Hebrew words name none (Hebrew has gender — board A1). */
|
|
7081
|
+
get ghostNounWord() {
|
|
7082
|
+
return ghostNoun(sourceContentType(this.dsRegistry.findByAlias(this._source)) || this._source);
|
|
7083
|
+
}
|
|
7084
|
+
get ghostTitle() {
|
|
7085
|
+
return this.label(GHOST_TITLE_KEY).split('{noun}').join(this.ghostNounWord);
|
|
7086
|
+
}
|
|
7087
|
+
get ghostBody() {
|
|
7088
|
+
return this.label(GHOST_BODY_KEY);
|
|
7089
|
+
}
|
|
7090
|
+
get ghostAddLabel() {
|
|
7091
|
+
return this.label(GHOST_ADD_KEY).split('{noun}').join(this.ghostNounWord);
|
|
7092
|
+
}
|
|
7093
|
+
/** Where the host creates the type's first item — the canvas only, never Preview (G-D5); null draws no button. */
|
|
7094
|
+
get ghostAddUrl() {
|
|
7095
|
+
if (this.isPreview)
|
|
7096
|
+
return null;
|
|
7097
|
+
const type = sourceContentType(this.dsRegistry.findByAlias(this._source));
|
|
7098
|
+
return type ? (this.createLink ?? NO_CREATE_LINK)(type) : null;
|
|
7099
|
+
}
|
|
7100
|
+
/** Opens the content editor's new item in a new tab, so the page being built stays open. */
|
|
7101
|
+
openGhostAdd(event) {
|
|
7102
|
+
event.stopPropagation();
|
|
7103
|
+
event.preventDefault();
|
|
7104
|
+
const url = this.ghostAddUrl;
|
|
7105
|
+
if (url)
|
|
7106
|
+
window.open(url, '_blank', 'noopener');
|
|
7107
|
+
}
|
|
6964
7108
|
label(key) {
|
|
6965
7109
|
return (this.labels ?? defaultBuilderLabels)(key, BUILDER_CHROME_EN[key]);
|
|
6966
7110
|
}
|
|
@@ -6974,6 +7118,8 @@ class BuilderRepeaterComponent {
|
|
|
6974
7118
|
}
|
|
6975
7119
|
else {
|
|
6976
7120
|
this.items = [];
|
|
7121
|
+
this.fetchedItems = [];
|
|
7122
|
+
this.ghosts = [];
|
|
6977
7123
|
this.previewRows = [];
|
|
6978
7124
|
this.announceRows();
|
|
6979
7125
|
}
|
|
@@ -6998,7 +7144,7 @@ class BuilderRepeaterComponent {
|
|
|
6998
7144
|
this.fetchData();
|
|
6999
7145
|
}
|
|
7000
7146
|
}
|
|
7001
|
-
constructor(dragEngine, overlayService, dataSourceService, dsRegistry, panelEventService, cdr, interactionEngine, labels, typeLabels, preview, pageBindings) {
|
|
7147
|
+
constructor(dragEngine, overlayService, dataSourceService, dsRegistry, panelEventService, cdr, interactionEngine, labels, typeLabels, preview, pageBindings, createLink) {
|
|
7002
7148
|
this.dragEngine = dragEngine;
|
|
7003
7149
|
this.overlayService = overlayService;
|
|
7004
7150
|
this.dataSourceService = dataSourceService;
|
|
@@ -7009,6 +7155,7 @@ class BuilderRepeaterComponent {
|
|
|
7009
7155
|
this.labels = labels;
|
|
7010
7156
|
this.typeLabels = typeLabels;
|
|
7011
7157
|
this.pageBindings = pageBindings;
|
|
7158
|
+
this.createLink = createLink;
|
|
7012
7159
|
this._children = [];
|
|
7013
7160
|
this.style = {};
|
|
7014
7161
|
this.nodeId = '';
|
|
@@ -7017,6 +7164,10 @@ class BuilderRepeaterComponent {
|
|
|
7017
7164
|
this.childMouseEnter = new EventEmitter();
|
|
7018
7165
|
this.childMouseLeave = new EventEmitter();
|
|
7019
7166
|
this.items = [];
|
|
7167
|
+
/** Per drawn row (`items`): a placeholder sample the canvas and Preview draw as a ghost card (iox-ui#178). */
|
|
7168
|
+
this.ghosts = [];
|
|
7169
|
+
/** The rows as the source answered, before the owner's are put first and the limit applies. */
|
|
7170
|
+
this.fetchedItems = [];
|
|
7020
7171
|
this.previewRows = [];
|
|
7021
7172
|
this.isLoading = false;
|
|
7022
7173
|
/** The node rendered (assigned by RenderDirective). An Accordion from content is a Repeater (CC2). */
|
|
@@ -7097,11 +7248,9 @@ class BuilderRepeaterComponent {
|
|
|
7097
7248
|
this.dataSourceService.fetchRepeaterItemsByAlias(this._source, (a) => this.dsRegistry.findByAlias(a), this._sourcePath, this.dsRegistry.pageParams).subscribe(items => {
|
|
7098
7249
|
if (seq !== this._fetchSeq)
|
|
7099
7250
|
return; // a newer fetch superseded this one — ignore stale items
|
|
7100
|
-
this.
|
|
7251
|
+
this.fetchedItems = items;
|
|
7252
|
+
this.applyRows();
|
|
7101
7253
|
this.fetched = true;
|
|
7102
|
-
// Row markers store a REFERENCE (source + index); the engine needs the array to resolve
|
|
7103
|
-
// it back to an item, exactly as the SSR runtime uses resolvedData.
|
|
7104
|
-
this.interactionEngine.setContextData({ [this._source]: this.items });
|
|
7105
7254
|
// Preview drew no template row while there were no rows (drawsTemplate): draw it NOW, so row 1 takes item[0]'s
|
|
7106
7255
|
// values in this same turn — never an empty card first.
|
|
7107
7256
|
if (this.isPreview && this.viewReady && !this.destroyed)
|
|
@@ -7112,6 +7261,21 @@ class BuilderRepeaterComponent {
|
|
|
7112
7261
|
this.announceRows();
|
|
7113
7262
|
});
|
|
7114
7263
|
}
|
|
7264
|
+
/**
|
|
7265
|
+
* The rows drawn: the owner's first, then the placeholder samples as ghosts, at most `limit` (`planGhostRows` over the
|
|
7266
|
+
* shared `isPlaceholderRow`) — the order the live engine lists them in once it leaves the samples out.
|
|
7267
|
+
*/
|
|
7268
|
+
applyRows() {
|
|
7269
|
+
// Rows of an array inside one item (`sourcePath`, a gallery's pictures) are that item's values, never samples.
|
|
7270
|
+
const plan = this._sourcePath
|
|
7271
|
+
? { rows: this.fetchedItems.slice(0, this._limit), ghosts: [] }
|
|
7272
|
+
: planGhostRows(this.fetchedItems, listTitleField({ type: 'Repeater', bindings: [{ prop: 'source', source: this._source, path: '' }], children: this.children }), this._limit);
|
|
7273
|
+
this.items = plan.rows;
|
|
7274
|
+
this.ghosts = plan.ghosts;
|
|
7275
|
+
// Row markers store a REFERENCE (source + index); the engine needs the array to resolve
|
|
7276
|
+
// it back to an item, exactly as the SSR runtime uses resolvedData.
|
|
7277
|
+
this.interactionEngine.setContextData({ [this._source]: this.items });
|
|
7278
|
+
}
|
|
7115
7279
|
/** Tell the chrome (the layer tree's "N more rows" line) how many rows the canvas now repeats. */
|
|
7116
7280
|
announceRows() {
|
|
7117
7281
|
this.panelEventService.emit(PanelEventTypes.REPEATER_ROWS_CHANGED, { nodeId: this.nodeId, count: this.items.length });
|
|
@@ -7139,43 +7303,13 @@ class BuilderRepeaterComponent {
|
|
|
7139
7303
|
pageValue: binding => this.pageBindings?.valueFor(binding),
|
|
7140
7304
|
};
|
|
7141
7305
|
}
|
|
7306
|
+
/** Row 1 is the live template row: item[0]'s values go into its whole subtree — a bound node can sit any level deep
|
|
7307
|
+
* once a template child is wrapped (the shared row rule, iox-ui#176). */
|
|
7142
7308
|
applyFirstItemToTemplate(scope) {
|
|
7143
7309
|
const item = this.items[0];
|
|
7144
7310
|
if (!item || !this.children.length)
|
|
7145
7311
|
return;
|
|
7146
|
-
|
|
7147
|
-
}
|
|
7148
|
-
/** Apply item[0]'s bound values to the live template row, walking the WHOLE subtree — not just
|
|
7149
|
-
* direct children. A bound node can sit any level deep once a template child is wrapped in a
|
|
7150
|
-
* container (or otherwise nested), so recursion is required or the first row shows defaults. */
|
|
7151
|
-
applyBindingsToNodes(nodes, item, scope) {
|
|
7152
|
-
for (const child of nodes) {
|
|
7153
|
-
if (child.bindings?.length) {
|
|
7154
|
-
const ref = this.overlayService.getNodeRef(child);
|
|
7155
|
-
if (ref?.componentRef) {
|
|
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;
|
|
7161
|
-
// Path + pipes, like every other binding-resolution point. See
|
|
7162
|
-
// binding-filters-plan.md — row 1 used to skip the filters.
|
|
7163
|
-
const value = resolveBoundValue(item, binding);
|
|
7164
|
-
// A `style:` binding (a colour block's own ground and ink) is written on the element — the
|
|
7165
|
-
// same carrier the engine uses; never pushed into an input.
|
|
7166
|
-
if (applyBoundStyle(ref.element, binding.prop, value))
|
|
7167
|
-
continue;
|
|
7168
|
-
if (value !== undefined) {
|
|
7169
|
-
ref.componentRef.instance[binding.prop] = value;
|
|
7170
|
-
}
|
|
7171
|
-
}
|
|
7172
|
-
ref.componentRef.changeDetectorRef.detectChanges();
|
|
7173
|
-
}
|
|
7174
|
-
}
|
|
7175
|
-
if (child.children?.length) {
|
|
7176
|
-
this.applyBindingsToNodes(child.children, item, scope);
|
|
7177
|
-
}
|
|
7178
|
-
}
|
|
7312
|
+
applyItemToTemplateRow(this.children, item, scope, node => this.overlayService.getNodeRef(node));
|
|
7179
7313
|
}
|
|
7180
7314
|
/** Rebuild preview rows after the template STRUCTURE changed (e.g. a child was wrapped, deleted,
|
|
7181
7315
|
* or moved). Deferred so the new DOM + overlay refs exist before bindings are re-applied. */
|
|
@@ -7183,7 +7317,7 @@ class BuilderRepeaterComponent {
|
|
|
7183
7317
|
if (this.items.length)
|
|
7184
7318
|
setTimeout(() => this.refreshPreviews());
|
|
7185
7319
|
}
|
|
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 }); }
|
|
7320
|
+
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 }, { token: IOX_CONTENT_CREATE_LINK, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7187
7321
|
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: `
|
|
7188
7322
|
<ng-template #badgeContent>
|
|
7189
7323
|
<i class="ph-thin ph-repeat"></i>
|
|
@@ -7240,8 +7374,9 @@ class BuilderRepeaterComponent {
|
|
|
7240
7374
|
<!-- Template items — DIRECT children of repeater-root.
|
|
7241
7375
|
:first-child / :nth-child(odd) etc. now correctly target these
|
|
7242
7376
|
as siblings of the preview items below. -->
|
|
7243
|
-
<div *ngFor="let child of children"
|
|
7377
|
+
<div *ngFor="let child of children; let ci = index"
|
|
7244
7378
|
[ngClass]="['repeater-item-template', 'iox-outer-' + (child.styleId ?? child.id)]"
|
|
7379
|
+
[class.iox-ghost-row]="ghostAt(0)"
|
|
7245
7380
|
[attr.data-iox-row-src]="source || null"
|
|
7246
7381
|
[attr.data-iox-row-idx]="source ? 0 : null"
|
|
7247
7382
|
ioxDraggable
|
|
@@ -7253,6 +7388,25 @@ class BuilderRepeaterComponent {
|
|
|
7253
7388
|
(onMouseEnter)="childMouseEnter.emit($event)"
|
|
7254
7389
|
(onMouseLeave)="childMouseLeave.emit()">
|
|
7255
7390
|
</ng-container>
|
|
7391
|
+
<!-- Ghost card (iox-ui#178, board A): a sample still titled "Product 2" is an owner prompt, never a card.
|
|
7392
|
+
The template stays under it (selectable through it); the live site never lists the row. -->
|
|
7393
|
+
@if (ghostAt(0)) {
|
|
7394
|
+
<div class="iox-ghost-face" [class.iox-ghost-face--prompt]="ci === 0 && ghostPrompt" data-iox-chrome>
|
|
7395
|
+
@if (ci === 0 && ghostPrompt) {
|
|
7396
|
+
<span class="iox-ghost-plate"><span class="iox-ghost-mark"><i class="ph-thin ph-plus"></i></span></span>
|
|
7397
|
+
<span class="iox-ghost-body">
|
|
7398
|
+
<span class="iox-ghost-kick">{{ ghostKicker }}</span>
|
|
7399
|
+
<strong class="iox-ghost-title">{{ ghostTitle }}</strong>
|
|
7400
|
+
<span class="iox-ghost-sum">{{ ghostBody }}</span>
|
|
7401
|
+
@if (ghostAddUrl) {
|
|
7402
|
+
<button type="button" class="iox-ghost-act"
|
|
7403
|
+
(pointerdown)="$event.stopPropagation()"
|
|
7404
|
+
(click)="openGhostAdd($event)"><i class="ph-thin ph-plus"></i>{{ ghostAddLabel }}</button>
|
|
7405
|
+
}
|
|
7406
|
+
</span>
|
|
7407
|
+
}
|
|
7408
|
+
</div>
|
|
7409
|
+
}
|
|
7256
7410
|
</div>
|
|
7257
7411
|
}
|
|
7258
7412
|
|
|
@@ -7260,6 +7414,7 @@ class BuilderRepeaterComponent {
|
|
|
7260
7414
|
<ng-container *ngFor="let row of previewRows; let ri = index">
|
|
7261
7415
|
<div *ngFor="let child of row"
|
|
7262
7416
|
[ngClass]="['repeater-preview-child', 'iox-outer-' + (child.styleId ?? child.id)]"
|
|
7417
|
+
[class.iox-ghost-row]="ghostAt(ri + 1)"
|
|
7263
7418
|
[attr.data-iox-row-src]="source || null"
|
|
7264
7419
|
[attr.data-iox-row-idx]="ri + 1">
|
|
7265
7420
|
<!-- A row's click reaches the builder only for a composite's rows (CC2): the RenderDirective
|
|
@@ -7270,11 +7425,22 @@ class BuilderRepeaterComponent {
|
|
|
7270
7425
|
(onMouseEnter)="$event"
|
|
7271
7426
|
(onMouseLeave)="undefined">
|
|
7272
7427
|
</ng-container>
|
|
7428
|
+
<!-- Rows 2..n of samples: quiet plates — the arrangement held, nothing to read (G-D2). -->
|
|
7429
|
+
@if (ghostAt(ri + 1)) {
|
|
7430
|
+
<div class="iox-ghost-face iox-ghost-face--quiet" data-iox-chrome aria-hidden="true">
|
|
7431
|
+
<span class="iox-ghost-plate"></span>
|
|
7432
|
+
<span class="iox-ghost-body">
|
|
7433
|
+
<span class="iox-ghost-kick">{{ ghostKicker }}</span>
|
|
7434
|
+
<strong class="iox-ghost-title">{{ ghostTitle }}</strong>
|
|
7435
|
+
<span class="iox-ghost-sum">{{ ghostBody }}</span>
|
|
7436
|
+
</span>
|
|
7437
|
+
</div>
|
|
7438
|
+
}
|
|
7273
7439
|
</div>
|
|
7274
7440
|
</ng-container>
|
|
7275
7441
|
</div>
|
|
7276
7442
|
</div>
|
|
7277
|
-
`, isInline: true, styles: [".repeater-wrapper{position:relative;box-sizing:border-box}.repeater-badge{display:flex;align-items:center;gap:.4rem;padding:4px 8px;font-size:11px;color:#cb9090;background:#cb909014;border:1px dashed rgba(203,144,144,.4);border-bottom:none;border-radius:4px 4px 0 0;-webkit-user-select:none;user-select:none}.repeater-wrapper.has-children>.repeater-badge{position:absolute;top:0;inset-inline-start:0;z-index:10;border-radius:0 0 4px;border:1px solid rgba(203,144,144,.5);opacity:0;pointer-events:none;transition:opacity .15s}.repeater-wrapper.has-children:hover>.repeater-badge{opacity:1}.repeater-badge i{font-size:13px}.repeater-badge-empty{opacity:.55}.repeater-badge-count{margin-
|
|
7443
|
+
`, isInline: true, styles: [".repeater-wrapper{position:relative;box-sizing:border-box}.repeater-badge{display:flex;align-items:center;gap:.4rem;padding:4px 8px;font-size:11px;color:#cb9090;background:#cb909014;border:1px dashed rgba(203,144,144,.4);border-bottom:none;border-radius:4px 4px 0 0;-webkit-user-select:none;user-select:none}.repeater-wrapper.has-children>.repeater-badge{position:absolute;top:0;inset-inline-start:0;z-index:10;border-radius:0 0 4px;border:1px solid rgba(203,144,144,.5);opacity:0;pointer-events:none;transition:opacity .15s}.repeater-wrapper.has-children:hover>.repeater-badge{opacity:1}.repeater-badge i{font-size:13px}.repeater-badge-empty{opacity:.55}.repeater-badge-count{margin-inline-start:auto;font-weight:600}.repeater-badge-loading i{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.repeater-root{box-sizing:border-box}.repeater-wrapper:not(.has-children) .repeater-root{outline:1px dashed rgba(203,144,144,.4);outline-offset:-1px;min-height:40px}.repeater-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;padding:1.5rem 1rem;color:#64748b80;font-size:12px;pointer-events:none;-webkit-user-select:none;user-select:none}.repeater-placeholder i{font-size:20px}.repeater-placeholder--source{border:1px dashed rgba(203,144,144,.5);border-radius:4px;text-align:center;color:#475569d9;font-size:13px;line-height:1.5}.repeater-placeholder--source strong{font-weight:600;color:#1e293be6}.repeater-item-template{min-width:0}.repeater-preview-child{opacity:.55;pointer-events:none;min-width:0}.repeater-wrapper.is-preview .repeater-preview-child{opacity:1;pointer-events:auto}.iox-ghost-row{position:relative}.repeater-preview-child.iox-ghost-row{opacity:1}.iox-ghost-row>::ng-deep .iox-es{box-shadow:none}.iox-ghost-face{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;overflow:hidden;pointer-events:none;text-align:start;color:var(--iox-text);font-family:var(--iox-font-body);background:var(--iox-surface-2);border-radius:var(--iox-card-radius);outline:var(--iox-border-width) dashed var(--iox-line);outline-offset:calc(var(--iox-border-width) * -1)}.iox-ghost-plate{flex:1 1 auto;min-height:64px;display:grid;place-items:center;border-block-end:var(--iox-border-width) dashed var(--iox-line)}.iox-ghost-mark{width:48px;height:48px;display:grid;place-items:center;font-size:22px;color:var(--iox-accent-text);background:var(--iox-bg);border:var(--iox-border-width) solid var(--iox-line);border-radius:var(--iox-radius-pill)}.iox-ghost-body{flex:0 0 auto;display:grid;gap:6px;justify-items:start;padding:var(--iox-card-pad)}.iox-ghost-kick{font:500 var(--iox-size-small)/1.3 var(--iox-font-body);letter-spacing:.14em;text-transform:uppercase;color:var(--iox-accent-text)}.iox-ghost-kick:dir(rtl){letter-spacing:0}.iox-ghost-title{font:500 var(--iox-size-lead)/1.25 var(--iox-font-display);color:var(--iox-text)}.iox-ghost-sum{font-size:var(--iox-size-body);line-height:1.5;color:var(--iox-text-muted)}.iox-ghost-face--quiet .iox-ghost-body{visibility:hidden}.iox-ghost-act{pointer-events:auto;margin-block-start:8px;display:inline-flex;gap:6px;align-items:center;min-height:36px;padding:8px 14px;font:500 var(--iox-size-small) var(--iox-font-body);color:var(--iox-accent-text);background:transparent;border:var(--iox-border-width) solid var(--iox-accent);border-radius:var(--iox-radius-pill);cursor:pointer;transition:transform var(--iox-dur-fast, .16s) var(--iox-ease-standard, ease-out),background-color var(--iox-dur-hover, .15s) var(--iox-ease-hover, ease-out)}.iox-ghost-act:active{transform:scale(var(--iox-press-scale, .97));transition-duration:var(--iox-dur-press, .1s)}.iox-ghost-act:focus-visible{outline:none;box-shadow:var(--iox-focus-ring)}@media(hover:hover)and (pointer:fine){.iox-ghost-act:hover{background:var(--iox-bg)}}:host(.iox-role-accordion) .repeater-preview-child,:host(.iox-role-tabs-list) .repeater-preview-child,:host(.iox-role-tabs-panels) .repeater-preview-child{pointer-events:auto}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RenderDirective, selector: "[ioxRender]", inputs: ["ioxRender", "ioxDragSourceId", "ioxPhrasing"], outputs: ["onClick", "onMouseEnter", "onMouseLeave"] }, { kind: "directive", type: IoxDraggableDirective, selector: "[ioxDraggable]", inputs: ["ioxDragData", "ioxDragSourceId", "ioxDragDisabled"] }, { kind: "directive", type: IoxDropzoneDirective, selector: "[ioxDropzone]", inputs: ["ioxDropzoneId", "ioxDropzoneData", "ioxDropzonePostDrop"], outputs: ["ioxDrop"] }] }); }
|
|
7278
7444
|
}
|
|
7279
7445
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: BuilderRepeaterComponent, decorators: [{
|
|
7280
7446
|
type: Component,
|
|
@@ -7334,8 +7500,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
7334
7500
|
<!-- Template items — DIRECT children of repeater-root.
|
|
7335
7501
|
:first-child / :nth-child(odd) etc. now correctly target these
|
|
7336
7502
|
as siblings of the preview items below. -->
|
|
7337
|
-
<div *ngFor="let child of children"
|
|
7503
|
+
<div *ngFor="let child of children; let ci = index"
|
|
7338
7504
|
[ngClass]="['repeater-item-template', 'iox-outer-' + (child.styleId ?? child.id)]"
|
|
7505
|
+
[class.iox-ghost-row]="ghostAt(0)"
|
|
7339
7506
|
[attr.data-iox-row-src]="source || null"
|
|
7340
7507
|
[attr.data-iox-row-idx]="source ? 0 : null"
|
|
7341
7508
|
ioxDraggable
|
|
@@ -7347,6 +7514,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
7347
7514
|
(onMouseEnter)="childMouseEnter.emit($event)"
|
|
7348
7515
|
(onMouseLeave)="childMouseLeave.emit()">
|
|
7349
7516
|
</ng-container>
|
|
7517
|
+
<!-- Ghost card (iox-ui#178, board A): a sample still titled "Product 2" is an owner prompt, never a card.
|
|
7518
|
+
The template stays under it (selectable through it); the live site never lists the row. -->
|
|
7519
|
+
@if (ghostAt(0)) {
|
|
7520
|
+
<div class="iox-ghost-face" [class.iox-ghost-face--prompt]="ci === 0 && ghostPrompt" data-iox-chrome>
|
|
7521
|
+
@if (ci === 0 && ghostPrompt) {
|
|
7522
|
+
<span class="iox-ghost-plate"><span class="iox-ghost-mark"><i class="ph-thin ph-plus"></i></span></span>
|
|
7523
|
+
<span class="iox-ghost-body">
|
|
7524
|
+
<span class="iox-ghost-kick">{{ ghostKicker }}</span>
|
|
7525
|
+
<strong class="iox-ghost-title">{{ ghostTitle }}</strong>
|
|
7526
|
+
<span class="iox-ghost-sum">{{ ghostBody }}</span>
|
|
7527
|
+
@if (ghostAddUrl) {
|
|
7528
|
+
<button type="button" class="iox-ghost-act"
|
|
7529
|
+
(pointerdown)="$event.stopPropagation()"
|
|
7530
|
+
(click)="openGhostAdd($event)"><i class="ph-thin ph-plus"></i>{{ ghostAddLabel }}</button>
|
|
7531
|
+
}
|
|
7532
|
+
</span>
|
|
7533
|
+
}
|
|
7534
|
+
</div>
|
|
7535
|
+
}
|
|
7350
7536
|
</div>
|
|
7351
7537
|
}
|
|
7352
7538
|
|
|
@@ -7354,6 +7540,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
7354
7540
|
<ng-container *ngFor="let row of previewRows; let ri = index">
|
|
7355
7541
|
<div *ngFor="let child of row"
|
|
7356
7542
|
[ngClass]="['repeater-preview-child', 'iox-outer-' + (child.styleId ?? child.id)]"
|
|
7543
|
+
[class.iox-ghost-row]="ghostAt(ri + 1)"
|
|
7357
7544
|
[attr.data-iox-row-src]="source || null"
|
|
7358
7545
|
[attr.data-iox-row-idx]="ri + 1">
|
|
7359
7546
|
<!-- A row's click reaches the builder only for a composite's rows (CC2): the RenderDirective
|
|
@@ -7364,11 +7551,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
7364
7551
|
(onMouseEnter)="$event"
|
|
7365
7552
|
(onMouseLeave)="undefined">
|
|
7366
7553
|
</ng-container>
|
|
7554
|
+
<!-- Rows 2..n of samples: quiet plates — the arrangement held, nothing to read (G-D2). -->
|
|
7555
|
+
@if (ghostAt(ri + 1)) {
|
|
7556
|
+
<div class="iox-ghost-face iox-ghost-face--quiet" data-iox-chrome aria-hidden="true">
|
|
7557
|
+
<span class="iox-ghost-plate"></span>
|
|
7558
|
+
<span class="iox-ghost-body">
|
|
7559
|
+
<span class="iox-ghost-kick">{{ ghostKicker }}</span>
|
|
7560
|
+
<strong class="iox-ghost-title">{{ ghostTitle }}</strong>
|
|
7561
|
+
<span class="iox-ghost-sum">{{ ghostBody }}</span>
|
|
7562
|
+
</span>
|
|
7563
|
+
</div>
|
|
7564
|
+
}
|
|
7367
7565
|
</div>
|
|
7368
7566
|
</ng-container>
|
|
7369
7567
|
</div>
|
|
7370
7568
|
</div>
|
|
7371
|
-
`, standalone: false, styles: [".repeater-wrapper{position:relative;box-sizing:border-box}.repeater-badge{display:flex;align-items:center;gap:.4rem;padding:4px 8px;font-size:11px;color:#cb9090;background:#cb909014;border:1px dashed rgba(203,144,144,.4);border-bottom:none;border-radius:4px 4px 0 0;-webkit-user-select:none;user-select:none}.repeater-wrapper.has-children>.repeater-badge{position:absolute;top:0;inset-inline-start:0;z-index:10;border-radius:0 0 4px;border:1px solid rgba(203,144,144,.5);opacity:0;pointer-events:none;transition:opacity .15s}.repeater-wrapper.has-children:hover>.repeater-badge{opacity:1}.repeater-badge i{font-size:13px}.repeater-badge-empty{opacity:.55}.repeater-badge-count{margin-
|
|
7569
|
+
`, standalone: false, styles: [".repeater-wrapper{position:relative;box-sizing:border-box}.repeater-badge{display:flex;align-items:center;gap:.4rem;padding:4px 8px;font-size:11px;color:#cb9090;background:#cb909014;border:1px dashed rgba(203,144,144,.4);border-bottom:none;border-radius:4px 4px 0 0;-webkit-user-select:none;user-select:none}.repeater-wrapper.has-children>.repeater-badge{position:absolute;top:0;inset-inline-start:0;z-index:10;border-radius:0 0 4px;border:1px solid rgba(203,144,144,.5);opacity:0;pointer-events:none;transition:opacity .15s}.repeater-wrapper.has-children:hover>.repeater-badge{opacity:1}.repeater-badge i{font-size:13px}.repeater-badge-empty{opacity:.55}.repeater-badge-count{margin-inline-start:auto;font-weight:600}.repeater-badge-loading i{animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.repeater-root{box-sizing:border-box}.repeater-wrapper:not(.has-children) .repeater-root{outline:1px dashed rgba(203,144,144,.4);outline-offset:-1px;min-height:40px}.repeater-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;padding:1.5rem 1rem;color:#64748b80;font-size:12px;pointer-events:none;-webkit-user-select:none;user-select:none}.repeater-placeholder i{font-size:20px}.repeater-placeholder--source{border:1px dashed rgba(203,144,144,.5);border-radius:4px;text-align:center;color:#475569d9;font-size:13px;line-height:1.5}.repeater-placeholder--source strong{font-weight:600;color:#1e293be6}.repeater-item-template{min-width:0}.repeater-preview-child{opacity:.55;pointer-events:none;min-width:0}.repeater-wrapper.is-preview .repeater-preview-child{opacity:1;pointer-events:auto}.iox-ghost-row{position:relative}.repeater-preview-child.iox-ghost-row{opacity:1}.iox-ghost-row>::ng-deep .iox-es{box-shadow:none}.iox-ghost-face{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;overflow:hidden;pointer-events:none;text-align:start;color:var(--iox-text);font-family:var(--iox-font-body);background:var(--iox-surface-2);border-radius:var(--iox-card-radius);outline:var(--iox-border-width) dashed var(--iox-line);outline-offset:calc(var(--iox-border-width) * -1)}.iox-ghost-plate{flex:1 1 auto;min-height:64px;display:grid;place-items:center;border-block-end:var(--iox-border-width) dashed var(--iox-line)}.iox-ghost-mark{width:48px;height:48px;display:grid;place-items:center;font-size:22px;color:var(--iox-accent-text);background:var(--iox-bg);border:var(--iox-border-width) solid var(--iox-line);border-radius:var(--iox-radius-pill)}.iox-ghost-body{flex:0 0 auto;display:grid;gap:6px;justify-items:start;padding:var(--iox-card-pad)}.iox-ghost-kick{font:500 var(--iox-size-small)/1.3 var(--iox-font-body);letter-spacing:.14em;text-transform:uppercase;color:var(--iox-accent-text)}.iox-ghost-kick:dir(rtl){letter-spacing:0}.iox-ghost-title{font:500 var(--iox-size-lead)/1.25 var(--iox-font-display);color:var(--iox-text)}.iox-ghost-sum{font-size:var(--iox-size-body);line-height:1.5;color:var(--iox-text-muted)}.iox-ghost-face--quiet .iox-ghost-body{visibility:hidden}.iox-ghost-act{pointer-events:auto;margin-block-start:8px;display:inline-flex;gap:6px;align-items:center;min-height:36px;padding:8px 14px;font:500 var(--iox-size-small) var(--iox-font-body);color:var(--iox-accent-text);background:transparent;border:var(--iox-border-width) solid var(--iox-accent);border-radius:var(--iox-radius-pill);cursor:pointer;transition:transform var(--iox-dur-fast, .16s) var(--iox-ease-standard, ease-out),background-color var(--iox-dur-hover, .15s) var(--iox-ease-hover, ease-out)}.iox-ghost-act:active{transform:scale(var(--iox-press-scale, .97));transition-duration:var(--iox-dur-press, .1s)}.iox-ghost-act:focus-visible{outline:none;box-shadow:var(--iox-focus-ring)}@media(hover:hover)and (pointer:fine){.iox-ghost-act:hover{background:var(--iox-bg)}}:host(.iox-role-accordion) .repeater-preview-child,:host(.iox-role-tabs-list) .repeater-preview-child,:host(.iox-role-tabs-panels) .repeater-preview-child{pointer-events:auto}\n"] }]
|
|
7372
7570
|
}], ctorParameters: () => [{ type: DragEngineService }, { type: OverlayService }, { type: BuilderDataSourceService }, { type: DataSourceRegistryService }, { type: PanelEventService }, { type: i0.ChangeDetectorRef }, { type: InteractionEngineService }, { type: undefined, decorators: [{
|
|
7373
7571
|
type: Optional
|
|
7374
7572
|
}, {
|
|
@@ -7386,6 +7584,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
7386
7584
|
args: [IS_PREVIEW]
|
|
7387
7585
|
}] }, { type: PageBindingResolverService, decorators: [{
|
|
7388
7586
|
type: Optional
|
|
7587
|
+
}] }, { type: undefined, decorators: [{
|
|
7588
|
+
type: Optional
|
|
7589
|
+
}, {
|
|
7590
|
+
type: Inject,
|
|
7591
|
+
args: [IOX_CONTENT_CREATE_LINK]
|
|
7389
7592
|
}] }], propDecorators: { children: [{
|
|
7390
7593
|
type: Input
|
|
7391
7594
|
}], style: [{
|
|
@@ -7934,6 +8137,37 @@ function refreshSubtree(node, styleRegistry, refOf, emptyImageLabel) {
|
|
|
7934
8137
|
});
|
|
7935
8138
|
}
|
|
7936
8139
|
|
|
8140
|
+
function valuesOf(traits, into) {
|
|
8141
|
+
for (const t of traits ?? [])
|
|
8142
|
+
if (t?.name !== undefined && t.default !== undefined)
|
|
8143
|
+
into[t.name] = t.default;
|
|
8144
|
+
return into;
|
|
8145
|
+
}
|
|
8146
|
+
/** The node in the shape design-core reads (the serializer's flattening: props from traits, styleProps from style traits). */
|
|
8147
|
+
function asOpeningNode(node, depth) {
|
|
8148
|
+
const styleProps = {};
|
|
8149
|
+
for (const group of node.styleTraits ?? [])
|
|
8150
|
+
valuesOf(group?.traits, styleProps);
|
|
8151
|
+
return {
|
|
8152
|
+
type: node.type,
|
|
8153
|
+
role: node.role ?? null,
|
|
8154
|
+
props: valuesOf(node.traits, {}),
|
|
8155
|
+
styleProps,
|
|
8156
|
+
// design-core reads the first section and its direct children only (a picture laid behind the words).
|
|
8157
|
+
children: depth > 0 ? (node.children ?? []).filter((c) => !!c).map(c => asOpeningNode(c, depth - 1)) : [],
|
|
8158
|
+
};
|
|
8159
|
+
}
|
|
8160
|
+
/**
|
|
8161
|
+
* What the page on the canvas opens on (HI3-D10) — design-core's `openingMediaOf`, the ONE answer the engine also writes
|
|
8162
|
+
* on its `<body>`, read from the builder's nodes. The canvas writes it as `data-iox-opening-media` on the header's layer
|
|
8163
|
+
* and on the page, beside `data-iox-opening`. Pure; the base style only (a breakpoint's own background does not change
|
|
8164
|
+
* what the page opens on, as on the live site, which writes the attribute once in the raw SSR).
|
|
8165
|
+
*/
|
|
8166
|
+
function canvasOpeningMedia(layout) {
|
|
8167
|
+
const first = layout?.find((n) => !!n);
|
|
8168
|
+
return openingMediaOf(first ? [asOpeningNode(first, 1)] : []);
|
|
8169
|
+
}
|
|
8170
|
+
|
|
7937
8171
|
/**
|
|
7938
8172
|
* HI1b (HS-1) — how much of the canvas column a side-card covers, and on which PHYSICAL side.
|
|
7939
8173
|
*
|
|
@@ -10428,6 +10662,10 @@ function pickInherited(css) {
|
|
|
10428
10662
|
out[prop] = css[prop];
|
|
10429
10663
|
return out;
|
|
10430
10664
|
}
|
|
10665
|
+
/** The same elements, in the same order. */
|
|
10666
|
+
function sameElements(a, b) {
|
|
10667
|
+
return a.length === b.length && a.every((el, i) => el === b[i]);
|
|
10668
|
+
}
|
|
10431
10669
|
/**
|
|
10432
10670
|
* The editor canvas's own scroller — an editing surface, not the site: it never follows the look's
|
|
10433
10671
|
* Scrolling choice (that plays on the live site and in Preview, `planScroll`). These were the
|
|
@@ -10716,6 +10954,16 @@ class BuilderComponent {
|
|
|
10716
10954
|
// globals let it name the phone menu the selection belongs to (CC1.3: the Menu chip, Bindings ▸ Phone menu).
|
|
10717
10955
|
this.canvasDesignState.setSelectionPath(path, this.globalElements);
|
|
10718
10956
|
}
|
|
10957
|
+
/**
|
|
10958
|
+
* HI3-D10: what the page on the canvas opens on — a picture or a plain ground (design-core `openingMediaOf`, the answer
|
|
10959
|
+
* the engine writes on its `<body>`), as `data-iox-opening-media` on the header's layer (an over header stands clear
|
|
10960
|
+
* over a picture and gives its height back, so the page's top reserve drops to 0 — T1) and on the page (the opening's
|
|
10961
|
+
* words keep clear of the bar). A getter: the first section's picture is edited in place (a background, a layer), and
|
|
10962
|
+
* it answers a word, so the binding never churns.
|
|
10963
|
+
*/
|
|
10964
|
+
get openingMedia() {
|
|
10965
|
+
return canvasOpeningMedia(this.layout);
|
|
10966
|
+
}
|
|
10719
10967
|
/**
|
|
10720
10968
|
* The content column in force (award §0c, AW-D36), as `data-iox-column` on BOTH token scopes — the page's frame and
|
|
10721
10969
|
* the global layer — so the header, the footer and every section read one inset, as the engine's `<body>` gives them:
|
|
@@ -10760,17 +11008,58 @@ class BuilderComponent {
|
|
|
10760
11008
|
return;
|
|
10761
11009
|
this.beforeGlobalsRo?.disconnect();
|
|
10762
11010
|
this.beforeGlobalsRo = undefined;
|
|
11011
|
+
this.beforeGlobalsMo?.disconnect();
|
|
11012
|
+
this.beforeGlobalsMo = undefined;
|
|
10763
11013
|
this.beforeGlobalsEl = el;
|
|
10764
11014
|
if (!el) {
|
|
11015
|
+
this.syncHeaderHeights();
|
|
10765
11016
|
// Called from a view query, mid change detection: apply on the next turn.
|
|
10766
11017
|
Promise.resolve().then(() => this.setHeaderReserve(0));
|
|
10767
11018
|
return;
|
|
10768
11019
|
}
|
|
10769
|
-
|
|
11020
|
+
// HI3-D7: a header standing on a ground keeps its height on both scopes before the wrapper is measured — over a
|
|
11021
|
+
// pictured opening it gives that height back (iox-design.css), and the wrapper's flow-root size, the reserve, drops
|
|
11022
|
+
// by it. A header re-rendered, or its ground word written or changed, re-syncs.
|
|
11023
|
+
this.syncHeaderHeights();
|
|
11024
|
+
this.beforeGlobalsMo = new MutationObserver(() => this.syncHeaderHeights());
|
|
11025
|
+
this.beforeGlobalsMo.observe(el, { subtree: true, childList: true, attributes: true, attributeFilter: [HeaderAttribute.Ground] });
|
|
11026
|
+
const ro = new ResizeObserver(entries => {
|
|
10770
11027
|
const entry = entries[0];
|
|
10771
11028
|
this.setHeaderReserve(entry?.borderBoxSize?.[0]?.blockSize ?? entry?.contentRect.height ?? 0);
|
|
11029
|
+
if (!this.headerHeights)
|
|
11030
|
+
return;
|
|
11031
|
+
// A ground header that changed height rewrites `--header-h` in this same pass, which resizes this wrapper
|
|
11032
|
+
// again: let that land on the next frame instead of as a "ResizeObserver loop" error (layout px, unzoomed).
|
|
11033
|
+
ro.unobserve(el);
|
|
11034
|
+
requestAnimationFrame(() => {
|
|
11035
|
+
if (this.beforeGlobalsRo !== ro)
|
|
11036
|
+
return;
|
|
11037
|
+
ro.observe(el);
|
|
11038
|
+
this.setHeaderReserve(el.offsetHeight);
|
|
11039
|
+
});
|
|
10772
11040
|
});
|
|
10773
|
-
this.beforeGlobalsRo
|
|
11041
|
+
this.beforeGlobalsRo = ro;
|
|
11042
|
+
ro.observe(el);
|
|
11043
|
+
}
|
|
11044
|
+
/** The two token scopes on the canvas: the globals layer (the header's own) and the page (the opening's words). */
|
|
11045
|
+
headerHeightScopes() {
|
|
11046
|
+
const page = this.previewCanvas?.nativeElement?.querySelector('iox-page-component.iox-token-scope');
|
|
11047
|
+
return [this.globalOverlayRef?.nativeElement, page].filter((el) => !!el);
|
|
11048
|
+
}
|
|
11049
|
+
/**
|
|
11050
|
+
* HI3-D7 on the canvas: every BEFORE global standing on a ground (over · over-glass · glass) keeps `--header-h` on the
|
|
11051
|
+
* globals layer AND the page — iox-ui's `watchHeaderHeight`, the one ResizeObserver the live site runs on its root.
|
|
11052
|
+
* Re-watched only when the headers or the scopes change; with none, the var goes (the look's bar height stands in).
|
|
11053
|
+
*/
|
|
11054
|
+
syncHeaderHeights() {
|
|
11055
|
+
const headers = this.beforeGlobalsEl ? groundHeadersIn(this.beforeGlobalsEl) : [];
|
|
11056
|
+
const scopes = headers.length ? this.headerHeightScopes() : [];
|
|
11057
|
+
const was = this.headerHeights;
|
|
11058
|
+
if (was && sameElements(was.headers, headers) && sameElements(was.scopes, scopes))
|
|
11059
|
+
return;
|
|
11060
|
+
for (const stop of was?.stops ?? [])
|
|
11061
|
+
stop();
|
|
11062
|
+
this.headerHeights = headers.length ? { headers, scopes, stops: headers.map(h => watchHeaderHeight(h, scopes)) } : null;
|
|
10774
11063
|
}
|
|
10775
11064
|
setHeaderReserve(px) {
|
|
10776
11065
|
const reserve = Math.max(0, Math.round(px));
|
|
@@ -10972,6 +11261,7 @@ class BuilderComponent {
|
|
|
10972
11261
|
* page's first content starts below it, as on the live site (iox-ui#19). 0 for a fixed header. */
|
|
10973
11262
|
this.canvasHeaderReserve = 0;
|
|
10974
11263
|
this.beforeGlobalsEl = null;
|
|
11264
|
+
this.headerHeights = null;
|
|
10975
11265
|
/** Canvas frame height in canvas-space pixels (= previewScroll.clientHeight / scale).
|
|
10976
11266
|
* Used as iox-page-component's height so position:fixed top:0;bottom:0 fills the
|
|
10977
11267
|
* same area as height:100vh (both resolve to this value). */
|
|
@@ -11002,6 +11292,8 @@ class BuilderComponent {
|
|
|
11002
11292
|
* the canvas driver's scroll (never a dispatched DOM scroll). It writes the opening attribute on the BEFORE
|
|
11003
11293
|
* globals' wrapper, which the shared scheme CSS reads. */
|
|
11004
11294
|
this.headerInk = null;
|
|
11295
|
+
/** The canvas's last scroll offset (Lenis px), so a held Scrolled state can be let go to the true one. */
|
|
11296
|
+
this.canvasScrollOffset = 0;
|
|
11005
11297
|
/**
|
|
11006
11298
|
* HI1b (HS-1): the width a covering side-card takes from the canvas column, in screen px — the column's inline-end
|
|
11007
11299
|
* margin, so the canvas, its two strips and the overlays re-centre in the room left beside the card. (A pan moved only
|
|
@@ -11073,7 +11365,7 @@ class BuilderComponent {
|
|
|
11073
11365
|
this.canvasDesignState.setSelectionPath(this._selectedPath, this.globalElements);
|
|
11074
11366
|
// The *ngIf on the global overlay renders after this hook — defer so
|
|
11075
11367
|
// globalOverlayRef is in the DOM before we try to set CSS vars on it.
|
|
11076
|
-
setTimeout(() => this.updatePreviewVh());
|
|
11368
|
+
setTimeout(() => { this.updatePreviewVh(); this.syncScrolled(this.canvasScrollOffset); });
|
|
11077
11369
|
}
|
|
11078
11370
|
// A newly loaded page: the bar's dots must reflect its overrides before anything is selected.
|
|
11079
11371
|
if (changes['layout'] && !changes['layout'].firstChange)
|
|
@@ -11101,6 +11393,10 @@ class BuilderComponent {
|
|
|
11101
11393
|
this.attachCanvasFloating();
|
|
11102
11394
|
this.attachCanvasShop();
|
|
11103
11395
|
this.attachCanvasAccount();
|
|
11396
|
+
// HI3: the page scope exists now (a view query can hand the BEFORE wrapper over before it); and the studio's held
|
|
11397
|
+
// Scrolled state turns the canvas as its own scroll would — the overlay may be (re)drawn later, so sync on each change.
|
|
11398
|
+
this.syncHeaderHeights();
|
|
11399
|
+
this.scrolledSub = this.canvasDesignState.state$.subscribe(() => this.syncScrolled(this.canvasScrollOffset));
|
|
11104
11400
|
// Builder dispatches synthetic 'scroll' events on .preview-lenis-content from
|
|
11105
11401
|
// the Lenis callback — point the overlay scroll listener at that element.
|
|
11106
11402
|
// (Not previewScrollRef which is the Lenis eventsTarget — dispatching there
|
|
@@ -11356,6 +11652,7 @@ class BuilderComponent {
|
|
|
11356
11652
|
this.canvasAccount?.destroy();
|
|
11357
11653
|
this.canvasAccount = null;
|
|
11358
11654
|
this.floatingSub?.unsubscribe();
|
|
11655
|
+
this.scrolledSub?.unsubscribe();
|
|
11359
11656
|
this.canvasTooltips?.destroy();
|
|
11360
11657
|
this.canvasTooltips = null;
|
|
11361
11658
|
this.sub?.unsubscribe();
|
|
@@ -11372,6 +11669,10 @@ class BuilderComponent {
|
|
|
11372
11669
|
this.canvasRo?.disconnect();
|
|
11373
11670
|
this.previewFrameRo?.disconnect();
|
|
11374
11671
|
this.beforeGlobalsRo?.disconnect();
|
|
11672
|
+
this.beforeGlobalsMo?.disconnect();
|
|
11673
|
+
for (const stop of this.headerHeights?.stops ?? [])
|
|
11674
|
+
stop();
|
|
11675
|
+
this.headerHeights = null;
|
|
11375
11676
|
this.overlayService.setContainer(null);
|
|
11376
11677
|
this.overlayService.setScrollContainer(null);
|
|
11377
11678
|
this.overlayService.setIntersectionRoot(null);
|
|
@@ -11468,7 +11769,9 @@ class BuilderComponent {
|
|
|
11468
11769
|
/** Keep the Scrolled attribute (iox-ui SCROLLED_ATTRIBUTE) on the canvas page and the header overlay — written only
|
|
11469
11770
|
* when it changes, so the overlay's mutation observers never wake for a scroll tick. */
|
|
11470
11771
|
syncScrolled(offset) {
|
|
11471
|
-
|
|
11772
|
+
this.canvasScrollOffset = offset;
|
|
11773
|
+
// HI3-D13: the Header studio's On the canvas ▸ Scrolled holds the state while the page sits at its top.
|
|
11774
|
+
const scrolled = isScrolled(offset) || this.canvasDesignState.scrolledShown;
|
|
11472
11775
|
for (const el of [this.previewCanvas?.nativeElement, this.globalOverlayRef?.nativeElement]) {
|
|
11473
11776
|
if (el && el.hasAttribute(SCROLLED_ATTRIBUTE) !== scrolled)
|
|
11474
11777
|
el.toggleAttribute(SCROLLED_ATTRIBUTE, scrolled);
|
|
@@ -12519,11 +12822,11 @@ class BuilderComponent {
|
|
|
12519
12822
|
}
|
|
12520
12823
|
}
|
|
12521
12824
|
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 }); }
|
|
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"] }] }); }
|
|
12825
|
+
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). A header standing on a\n ground over a pictured opening (data-iox-opening-media) gives its height back, so the reserve\n drops by it and the picture starts at the top, under the bar (HI3-D7, T1). -->\n @if (globalElementsBefore.length) {\n <div #globalsBefore class=\"iox-canvas-globals-before\" [attr.data-iox-opening]=\"openingScheme\" [attr.data-iox-opening-media]=\"openingMedia\">\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 [attr.data-iox-opening-media]=\"openingMedia\"\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"] }] }); }
|
|
12523
12826
|
}
|
|
12524
12827
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: BuilderComponent, decorators: [{
|
|
12525
12828
|
type: Component,
|
|
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"] }]
|
|
12829
|
+
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). A header standing on a\n ground over a pictured opening (data-iox-opening-media) gives its height back, so the reserve\n drops by it and the picture starts at the top, under the bar (HI3-D7, T1). -->\n @if (globalElementsBefore.length) {\n <div #globalsBefore class=\"iox-canvas-globals-before\" [attr.data-iox-opening]=\"openingScheme\" [attr.data-iox-opening-media]=\"openingMedia\">\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 [attr.data-iox-opening-media]=\"openingMedia\"\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"] }]
|
|
12527
12830
|
}], 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: [{
|
|
12528
12831
|
type: Input
|
|
12529
12832
|
}], dataSources: [{
|
|
@@ -13441,7 +13744,10 @@ class BuilderDialogComponent {
|
|
|
13441
13744
|
}
|
|
13442
13745
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: BuilderDialogComponent, deps: [{ token: DragEngineService }, { token: i2$1.ComponentInstanceRegistryService }, { token: OverlayService }, { token: i0.ChangeDetectorRef }, { token: CanvasDesignStateService, optional: true }, { token: PanelEventService, optional: true }, { token: i0.NgZone, optional: true }, { token: i0.ElementRef, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
13443
13746
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.31", type: BuilderDialogComponent, isStandalone: false, selector: "app-builder-dialog", inputs: { children: "children", nodeId: "nodeId", dropListId: "dropListId", closeOnBackdrop: "closeOnBackdrop", showCloseButton: "showCloseButton", placement: "placement", menuForm: "menuForm", menuReveal: "menuReveal", menuHover: "menuHover", menuPhone: "menuPhone", popupKind: "popupKind", popupForm: "popupForm" }, outputs: { childClick: "childClick", childMouseEnter: "childMouseEnter", childMouseLeave: "childMouseLeave" }, viewQueries: [{ propertyName: "stageRef", first: true, predicate: ["stage"], descendants: true }, { propertyName: "surfaceRef", first: true, predicate: ["surface"], descendants: true }], ngImport: i0, template: `
|
|
13444
|
-
|
|
13747
|
+
<!-- data-iox-menu-open: design-core HEADER_MENU_OPEN_ATTRIBUTE — the canvas twin of an open <dialog>, so the shared
|
|
13748
|
+
CSS firms an over header while its menu is open (iox-ui#181). Spelled here until the builder is on ^5.197.0
|
|
13749
|
+
(it compiles against the PUBLISHED iox-ui); design-core's header-ground.spec holds the two equal. -->
|
|
13750
|
+
<div *ngIf="designOpen" #stage class="dialog-stage" data-iox-menu-open [attr.data-placement]="placementValue"
|
|
13445
13751
|
[attr.data-popup-form]="popupFormValue"
|
|
13446
13752
|
(click)="onStageClick($event)">
|
|
13447
13753
|
<div #surface [ngClass]="['iox-node-' + nodeId, 'iox-outer-' + nodeId]"
|
|
@@ -13482,7 +13788,10 @@ class BuilderDialogComponent {
|
|
|
13482
13788
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: BuilderDialogComponent, decorators: [{
|
|
13483
13789
|
type: Component,
|
|
13484
13790
|
args: [{ selector: 'app-builder-dialog', template: `
|
|
13485
|
-
|
|
13791
|
+
<!-- data-iox-menu-open: design-core HEADER_MENU_OPEN_ATTRIBUTE — the canvas twin of an open <dialog>, so the shared
|
|
13792
|
+
CSS firms an over header while its menu is open (iox-ui#181). Spelled here until the builder is on ^5.197.0
|
|
13793
|
+
(it compiles against the PUBLISHED iox-ui); design-core's header-ground.spec holds the two equal. -->
|
|
13794
|
+
<div *ngIf="designOpen" #stage class="dialog-stage" data-iox-menu-open [attr.data-placement]="placementValue"
|
|
13486
13795
|
[attr.data-popup-form]="popupFormValue"
|
|
13487
13796
|
(click)="onStageClick($event)">
|
|
13488
13797
|
<div #surface [ngClass]="['iox-node-' + nodeId, 'iox-outer-' + nodeId]"
|
|
@@ -14131,40 +14440,13 @@ class SliderContainerComponent {
|
|
|
14131
14440
|
rowScope() {
|
|
14132
14441
|
return { aliases: new Set(rowScopeAliases(this._source)), pageValue: binding => this.pageBindings?.valueFor(binding) };
|
|
14133
14442
|
}
|
|
14443
|
+
/** Row 1 is the live template slide: item[0]'s values go into it (the shared row rule, iox-ui#176). */
|
|
14134
14444
|
applyFirstItemToTemplate(scope) {
|
|
14135
14445
|
const item = this.items[0];
|
|
14136
14446
|
if (!item || !this.slides.length || !this.overlayService)
|
|
14137
14447
|
return;
|
|
14138
|
-
|
|
14139
|
-
|
|
14140
|
-
}
|
|
14141
|
-
applyItemToNodes(nodes, item, scope) {
|
|
14142
|
-
for (const node of nodes) {
|
|
14143
|
-
if (node.bindings?.length) {
|
|
14144
|
-
const ref = this.overlayService.getNodeRef(node);
|
|
14145
|
-
if (ref?.componentRef) {
|
|
14146
|
-
for (const binding of node.bindings) {
|
|
14147
|
-
// Only the slide's own bindings (#165) — another page source is the page resolver's to write.
|
|
14148
|
-
if (!isRowBinding(binding, scope))
|
|
14149
|
-
continue;
|
|
14150
|
-
// Path + pipes, like every other binding-resolution point. See
|
|
14151
|
-
// binding-filters-plan.md — slide 1 used to skip the filters.
|
|
14152
|
-
const value = resolveBoundValue(item, binding);
|
|
14153
|
-
// A `style:` binding (a colour block's own ground and ink) is written on the element — the
|
|
14154
|
-
// same carrier the engine uses; never pushed into an input.
|
|
14155
|
-
if (applyBoundStyle(ref.element, binding.prop, value))
|
|
14156
|
-
continue;
|
|
14157
|
-
if (value !== undefined) {
|
|
14158
|
-
ref.componentRef.instance[binding.prop] = value;
|
|
14159
|
-
}
|
|
14160
|
-
}
|
|
14161
|
-
ref.componentRef.changeDetectorRef.detectChanges();
|
|
14162
|
-
}
|
|
14163
|
-
}
|
|
14164
|
-
if (node.children?.length) {
|
|
14165
|
-
this.applyItemToNodes(node.children, item, scope);
|
|
14166
|
-
}
|
|
14167
|
-
}
|
|
14448
|
+
const overlay = this.overlayService;
|
|
14449
|
+
applyItemToTemplateRow([this.slides[0]], item, scope, node => overlay.getNodeRef(node));
|
|
14168
14450
|
}
|
|
14169
14451
|
_isInTemplate(target) {
|
|
14170
14452
|
const search = (nodes) => nodes.some(c => c === target || c.id === target.id ||
|
|
@@ -16952,5 +17234,5 @@ class BuilderSpacerComponentConfig extends ComponentConfig {
|
|
|
16952
17234
|
* Generated bundle index. Do not edit.
|
|
16953
17235
|
*/
|
|
16954
17236
|
|
|
16955
|
-
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 };
|
|
17237
|
+
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_CREATE_LINK, 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, canvasOpeningMedia, 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 };
|
|
16956
17238
|
//# sourceMappingURL=vectoriox-iox-builder.mjs.map
|