@vectoriox/iox-builder 11.22.0 → 11.24.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 +150 -208
- package/fesm2022/vectoriox-iox-builder.mjs.map +1 -1
- package/index.d.ts +41 -4
- package/package.json +2 -2
|
@@ -19,15 +19,15 @@ import { DialogModule } from 'primeng/dialog';
|
|
|
19
19
|
import * as i2$1 from '@vectoriox/iox-ui';
|
|
20
20
|
import { nodeCssId, needsGroupName, resolveBoundValue, 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, Breakpoint, withSchemeInk, stripSuppressedProps, DeclarationContext, planPartRule, gateHoverRule, planResponsiveRules, resolveStyleProps, planStateRule, splitOuterProps, OUTER_STYLE_PROPS, 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, settleInteraction, settleModeFor, playInteraction, resolveInteractionEasing, entranceDelay, repeatedRowIndex, entrancePreStateStyle, buildInteractionKeyframes, showToast, declaredInputNames, emptyImagePlaceholder, syncNodeDesignClasses, nodeTraitValue, syncNodeA11yAttributes, nodeA11yAttributes, safeSetInput, colorSchemeOf, withStateTransitions, composeVirtualTraits, stateNamesIn, partClassName, switchElementStyle, releaseElementStyle, countOverrides, setOverride, breakpointDef, breakpointForWidth, FormRenderState, collectContextSlotKeys, withContextSlots, needsAccessibleName, resolveInputs, setInputOverride, barReserveClass, compilePageStyle, nodeUsesContext, attachTooltips, showToastDesign, TOOLTIP_ATTRIBUTE, hidingHeadersIn, HeaderRuntime, isScrolled, SCROLLED_ATTRIBUTE, syncSubmitButtons, IS_PREVIEW, buttonBlockHref, layerFrame, rectInLayer, placeFloating, FloatingAlign, popoverSide, bootSlider, IoxPageModule, PALETTE_PRESETS, elementStyleById, PART_CLASS_NAMES } from '@vectoriox/iox-ui';
|
|
21
21
|
export { ComponentInstanceRegistryService, VIRTUAL_TRAIT_KEYS, composeVirtualTraits } from '@vectoriox/iox-ui';
|
|
22
|
-
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, 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, SliderRole, accordionItemLabel, segmentedOptionLabel, isExclusivePanels, isLockedPart, attachShop, ShopRole, attachAccount, AccountRole, accordionRootOf, accordionItemOf, addAccordionItem, addTabPair, segmentedAddRefusal, addSegmentedOption, isCompositeItem, accordionHeadingLevel, isCompositePanel, isCompositeTrigger, splitSliderChildren, hasSliderParts, SLIDE_CAPTION_TRAIT, SLIDER_SCROLL_PLAYS_TRAIT, SLIDER_PLACEMENT_TRAIT, SliderPlacement, SliderFlag } from '@vectoriox/iox-ui/composite-core';
|
|
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, 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, SliderRole, accordionItemLabel, segmentedOptionLabel, isExclusivePanels, isLockedPart, attachShop, ShopRole, attachAccount, AccountRole, accordionRootOf, accordionItemOf, addAccordionItem, addTabPair, segmentedAddRefusal, addSegmentedOption, isCompositeItem, accordionHeadingLevel, isCompositePanel, isCompositeTrigger, 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, FORM_CHANNEL_ROLE, channelHref, channelOpensNewTab, FORM_ACTIONS_ROLE, SUBMIT_BUTTON_NODE_TYPE, FORM_AFTER_SEND_TRAIT, FormAfterSend } from '@vectoriox/iox-ui/forms-core';
|
|
24
24
|
import { Subject, BehaviorSubject, of, forkJoin } from 'rxjs';
|
|
25
25
|
import interact from 'interactjs';
|
|
26
|
-
import { HeaderTrait, HeaderBehaviour, HeaderEdge, pageOpeningScheme } from '@vectoriox/iox-ui/design-core';
|
|
26
|
+
import { HeaderTrait, HeaderBehaviour, HeaderEdge, MenuTrait, MenuForm, MenuReveal, MenuHover, MenuPhoneForm, MenuButtonKind, pageOpeningScheme, menuDialogAttributes, MenuAttribute } from '@vectoriox/iox-ui/design-core';
|
|
27
27
|
import { map, catchError } from 'rxjs/operators';
|
|
28
28
|
import * as i1 from '@angular/common/http';
|
|
29
29
|
import { SAMPLE_PRODUCT, productInScope, simulatedCartTransport, storefrontCatalog, SAMPLE_STUDIO, SAMPLE_CART_LINE, SAMPLE_SWATCHES } from '@vectoriox/iox-ui/commerce-core';
|
|
30
|
-
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, popoverOpenersSelector, popoverDomId } from '@vectoriox/iox-ui/actions-core';
|
|
30
|
+
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
31
|
import { NavRole, navShapeBreakpoint, entranceInteraction, entranceAction, sectionEntrances, EntrancePart } from '@vectoriox/iox-ui/generation-core';
|
|
32
32
|
import { ScrollDriver, syncSceneAttributes, buildSceneRecipe } from '@vectoriox/iox-ui/scene-core';
|
|
33
33
|
import Lenis from 'lenis';
|
|
@@ -1984,6 +1984,50 @@ function buildHeaderBehaviourTraits() {
|
|
|
1984
1984
|
]),
|
|
1985
1985
|
];
|
|
1986
1986
|
}
|
|
1987
|
+
/**
|
|
1988
|
+
* The MENU's look (header ingredients HI2a, board v2) — on the navigation's drawer Dialog: its form, how it reveals, how
|
|
1989
|
+
* its page names answer a mouse, and what it becomes on a phone. No default: a Dialog that is not a menu saves none, and a
|
|
1990
|
+
* menu with none of them is the drawer it always was (R-H4). design-core `menuDialogAttributes` turns them into the
|
|
1991
|
+
* attributes the shared CSS reads; edited in the Navigation bar's menu group, never as generic rows.
|
|
1992
|
+
*/
|
|
1993
|
+
function buildMenuTraits() {
|
|
1994
|
+
return [
|
|
1995
|
+
new TraitConfig(MenuTrait.Form, 'Menu form', TraitInputType.Select, [
|
|
1996
|
+
{ label: 'Drawer', value: MenuForm.Drawer },
|
|
1997
|
+
{ label: 'Full screen', value: MenuForm.Full },
|
|
1998
|
+
{ label: 'Top panel', value: MenuForm.Panel },
|
|
1999
|
+
{ label: 'Card', value: MenuForm.Card },
|
|
2000
|
+
{ label: 'Mega panel', value: MenuForm.Mega },
|
|
2001
|
+
]),
|
|
2002
|
+
new TraitConfig(MenuTrait.Reveal, 'Menu reveal', TraitInputType.Select, [
|
|
2003
|
+
{ label: 'Slide', value: MenuReveal.Slide },
|
|
2004
|
+
{ label: 'Fade', value: MenuReveal.Fade },
|
|
2005
|
+
{ label: 'Zoom', value: MenuReveal.Zoom },
|
|
2006
|
+
{ label: 'Circle', value: MenuReveal.Circle },
|
|
2007
|
+
{ label: 'Torn edge', value: MenuReveal.Torn },
|
|
2008
|
+
]),
|
|
2009
|
+
new TraitConfig(MenuTrait.Hover, 'Menu hover', TraitInputType.Select, [
|
|
2010
|
+
{ label: 'Underline', value: MenuHover.Line },
|
|
2011
|
+
{ label: 'Dim the others', value: MenuHover.Dim },
|
|
2012
|
+
{ label: 'Light the row', value: MenuHover.Row },
|
|
2013
|
+
{ label: 'None', value: MenuHover.None },
|
|
2014
|
+
]),
|
|
2015
|
+
new TraitConfig(MenuTrait.Phone, 'Menu on a phone', TraitInputType.Select, [
|
|
2016
|
+
{ label: 'Drawer', value: MenuPhoneForm.Drawer },
|
|
2017
|
+
{ label: 'Full screen', value: MenuPhoneForm.Full },
|
|
2018
|
+
]),
|
|
2019
|
+
];
|
|
2020
|
+
}
|
|
2021
|
+
/** How the menu button (and the menu's Close, the same button open) is drawn (HI2a) — on a ButtonBlock. No default. */
|
|
2022
|
+
function buildMenuButtonTraits() {
|
|
2023
|
+
return [
|
|
2024
|
+
new TraitConfig(MenuTrait.Button, 'Menu button', TraitInputType.Select, [
|
|
2025
|
+
{ label: 'Lines', value: MenuButtonKind.Lines },
|
|
2026
|
+
{ label: 'Word', value: MenuButtonKind.Word },
|
|
2027
|
+
{ label: 'Dots', value: MenuButtonKind.Dots },
|
|
2028
|
+
]),
|
|
2029
|
+
];
|
|
2030
|
+
}
|
|
1987
2031
|
const LINK_TARGETS = [
|
|
1988
2032
|
{ label: 'Same tab', value: '_self' },
|
|
1989
2033
|
{ label: 'New tab', value: '_blank' },
|
|
@@ -12360,6 +12404,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
12360
12404
|
* Open/close/toggle actions reach it through the instance registry, same as Swiper's methods.
|
|
12361
12405
|
*/
|
|
12362
12406
|
class BuilderDialogComponent {
|
|
12407
|
+
/** HI2a: the menu's look (design-core MenuTrait) — read through ONE `menuDialogAttributes`, the live page's reader. */
|
|
12408
|
+
set menuForm(v) { this.setMenu(MenuTrait.Form, v); }
|
|
12409
|
+
set menuReveal(v) { this.setMenu(MenuTrait.Reveal, v); }
|
|
12410
|
+
set menuHover(v) { this.setMenu(MenuTrait.Hover, v); }
|
|
12411
|
+
set menuPhone(v) { this.setMenu(MenuTrait.Phone, v); }
|
|
12412
|
+
setMenu(trait, value) {
|
|
12413
|
+
this.menuLook = { ...this.menuLook, [trait]: value };
|
|
12414
|
+
this.menuAttrs = menuDialogAttributes(name => this.menuLook[name]);
|
|
12415
|
+
this.cdr?.markForCheck();
|
|
12416
|
+
}
|
|
12417
|
+
/** HI2a: the surface, seen once it renders — a menu that reveals grows from its opener, measured right then. */
|
|
12418
|
+
set surfaceRef(ref) {
|
|
12419
|
+
if (ref && ref.nativeElement !== this.surfaceEl)
|
|
12420
|
+
this.placeReveal(ref.nativeElement);
|
|
12421
|
+
this.surfaceEl = ref?.nativeElement;
|
|
12422
|
+
}
|
|
12363
12423
|
get placementValue() {
|
|
12364
12424
|
const allowed = ['center', 'top', 'bottom', 'start', 'end'];
|
|
12365
12425
|
return allowed.indexOf(String(this.placement)) >= 0 ? String(this.placement) : 'center';
|
|
@@ -12378,6 +12438,10 @@ class BuilderDialogComponent {
|
|
|
12378
12438
|
this.closeOnBackdrop = true;
|
|
12379
12439
|
this.showCloseButton = true;
|
|
12380
12440
|
this.placement = 'center';
|
|
12441
|
+
this.menuAttr = MenuAttribute;
|
|
12442
|
+
/** The attributes the surface wears (a default writes none — R-H4). */
|
|
12443
|
+
this.menuAttrs = {};
|
|
12444
|
+
this.menuLook = {};
|
|
12381
12445
|
this.childClick = new EventEmitter();
|
|
12382
12446
|
this.childMouseEnter = new EventEmitter();
|
|
12383
12447
|
this.childMouseLeave = new EventEmitter();
|
|
@@ -12457,6 +12521,38 @@ class BuilderDialogComponent {
|
|
|
12457
12521
|
if (handOff)
|
|
12458
12522
|
this.panelEvents?.emit(PanelEventTypes.DIALOG_CLOSED_OVER_SELECTION, { dialogId: this.nodeId });
|
|
12459
12523
|
}
|
|
12524
|
+
/**
|
|
12525
|
+
* Where a menu's reveal grows from on the canvas (HI2a): the opener's centre in the surface's own box — actions-core
|
|
12526
|
+
* `revealOrigin`, the ONE rule the live page's `revealFrom` runs. The canvas is zoomed, so the box is measured in
|
|
12527
|
+
* screen px from the stage (fixed, the frame's size) plus the surface's untransformed offsets, and the zoom handed to
|
|
12528
|
+
* the rule; the opener is the first rendered element naming this dialog (`aria-controls`), else the menu's top corner.
|
|
12529
|
+
* The write runs through actions-core `holdClosedWhile`, as the live page's `revealFrom` does.
|
|
12530
|
+
*/
|
|
12531
|
+
placeReveal(surface) {
|
|
12532
|
+
if (!surface.hasAttribute(MenuAttribute.Reveal))
|
|
12533
|
+
return;
|
|
12534
|
+
const stage = surface.parentElement;
|
|
12535
|
+
if (!stage || !stage.offsetWidth)
|
|
12536
|
+
return;
|
|
12537
|
+
const stageRect = stage.getBoundingClientRect();
|
|
12538
|
+
const scale = stageRect.width / stage.offsetWidth || 1;
|
|
12539
|
+
const box = {
|
|
12540
|
+
left: stageRect.left + surface.offsetLeft * scale,
|
|
12541
|
+
top: stageRect.top + surface.offsetTop * scale,
|
|
12542
|
+
width: surface.offsetWidth * scale,
|
|
12543
|
+
height: surface.offsetHeight * scale,
|
|
12544
|
+
};
|
|
12545
|
+
const doc = surface.ownerDocument;
|
|
12546
|
+
const opener = Array.from(doc.querySelectorAll(dialogOpenersSelector(dialogDomId(this.nodeId))))
|
|
12547
|
+
.find(el => !stage.contains(el) && el.getClientRects().length > 0) ?? null;
|
|
12548
|
+
const view = doc.defaultView;
|
|
12549
|
+
const atLeft = (this.placementValue === 'start') !== (view?.getComputedStyle(surface).direction === 'rtl');
|
|
12550
|
+
const origin = revealOrigin(opener?.getBoundingClientRect() ?? null, box, { scale, atLeft });
|
|
12551
|
+
// Written with the menu HELD in its closed shape (the stage marked closing, transitions off) and flushed, so the
|
|
12552
|
+
// reveal starts at the opener — never at the CSS default corner the first computed style would give it.
|
|
12553
|
+
holdClosedWhile(surface, stage, () => { for (const [name, value] of Object.entries(revealOriginStyle(origin)))
|
|
12554
|
+
surface.style.setProperty(name, value); }, () => { view?.getComputedStyle(surface).getPropertyValue('clip-path'); });
|
|
12555
|
+
}
|
|
12460
12556
|
/** True when the canvas selection is this dialog or a node inside it. */
|
|
12461
12557
|
selectionInside() {
|
|
12462
12558
|
const sel = this.overlayService.getCurrentSelection?.();
|
|
@@ -12536,11 +12632,15 @@ class BuilderDialogComponent {
|
|
|
12536
12632
|
this.dragEngine.handleDrop(this.children, event, this.dropListId, this.cdr);
|
|
12537
12633
|
}
|
|
12538
12634
|
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 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12539
|
-
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" }, outputs: { childClick: "childClick", childMouseEnter: "childMouseEnter", childMouseLeave: "childMouseLeave" }, viewQueries: [{ propertyName: "stageRef", first: true, predicate: ["stage"], descendants: true }], ngImport: i0, template: `
|
|
12635
|
+
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" }, 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: `
|
|
12540
12636
|
<div *ngIf="designOpen" #stage class="dialog-stage" [attr.data-placement]="placementValue"
|
|
12541
12637
|
(click)="onStageClick($event)">
|
|
12542
|
-
<div [ngClass]="['iox-node-' + nodeId, 'iox-outer-' + nodeId]"
|
|
12638
|
+
<div #surface [ngClass]="['iox-node-' + nodeId, 'iox-outer-' + nodeId]"
|
|
12543
12639
|
class="dialog-surface"
|
|
12640
|
+
[attr.data-iox-menu]="menuAttrs[menuAttr.Form]"
|
|
12641
|
+
[attr.data-iox-reveal]="menuAttrs[menuAttr.Reveal]"
|
|
12642
|
+
[attr.data-iox-menu-hover]="menuAttrs[menuAttr.Hover]"
|
|
12643
|
+
[attr.data-iox-menu-phone]="menuAttrs[menuAttr.Phone]"
|
|
12544
12644
|
ioxDropzone
|
|
12545
12645
|
[ioxDropzoneId]="dropListId"
|
|
12546
12646
|
[ioxDropzoneData]="children"
|
|
@@ -12568,15 +12668,19 @@ class BuilderDialogComponent {
|
|
|
12568
12668
|
</ng-container>
|
|
12569
12669
|
</div>
|
|
12570
12670
|
</div>
|
|
12571
|
-
`, isInline: true, styles: [":host{display:contents}.dialog-stage{position:fixed;inset:0;z-index:50;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);place-items:center;padding:24px;box-sizing:border-box;background:#0f172a73}:host(.iox-es) .dialog-stage{background:var(--iox-scrim)}.dialog-stage[data-placement=top]{align-items:start}.dialog-stage[data-placement=bottom]{align-items:end}.dialog-stage[data-placement=start]{justify-items:start}.dialog-stage[data-placement=end]{justify-items:end}:host(.iox-es) .dialog-stage:is([data-placement=end],[data-placement=start]){padding:0}:host(.iox-es) .dialog-stage:is([data-placement=end],[data-placement=start]) .dialog-surface{height:100%;max-height:100%}:host(.iox-es) .dialog-stage[data-placement=end] .dialog-surface{border-start-end-radius:0;border-end-end-radius:0}:host(.iox-es) .dialog-stage[data-placement=start] .dialog-surface{border-start-start-radius:0;border-end-start-radius:0}:host(.iox-es) .dialog-stage{animation:iox-dialog-scrim-in var(--iox-dur-base) var(--iox-ease-enter) both}:host(.iox-es) .dialog-stage[data-iox-closing]{animation:iox-dialog-scrim-out var(--iox-dur-base) var(--iox-ease-exit) both}:host(.iox-es) .dialog-surface{--dialog-exit-x: 0px;--dialog-exit-y: 12px;--dialog-exit-opacity: 0;animation:iox-dialog-in var(--iox-dur-base) var(--iox-ease-enter) both}:host(.iox-es) .dialog-stage[data-iox-closing] .dialog-surface{animation:iox-dialog-out var(--iox-dur-base) var(--iox-ease-exit) both}:host(.iox-es) .dialog-stage[data-placement=top] .dialog-surface{--dialog-exit-y: -12px}:host(.iox-es) .dialog-stage:is([data-placement=end],[data-placement=start]) .dialog-surface{--dialog-exit-y: 0px;--dialog-exit-opacity: 1}:host(.iox-es) .dialog-stage[data-placement=end] .dialog-surface{--dialog-exit-x: calc(100% * var(--dialog-dir, 1))}:host(.iox-es) .dialog-stage[data-placement=start] .dialog-surface{--dialog-exit-x: calc(-100% * var(--dialog-dir, 1))}:host-context([dir=\"rtl\"]){--dialog-dir: -1}@keyframes iox-dialog-scrim-in{0%{background-color:transparent}}@keyframes iox-dialog-scrim-out{to{background-color:transparent}}@keyframes iox-dialog-in{0%{translate:var(--dialog-exit-x) var(--dialog-exit-y);opacity:var(--dialog-exit-opacity)}}@keyframes iox-dialog-out{to{translate:var(--dialog-exit-x) var(--dialog-exit-y);opacity:var(--dialog-exit-opacity)}}:where(.dialog-surface){box-sizing:border-box;max-width:100%;max-height:100%;overflow:auto;contain:layout}.dialog-close{position:absolute;inset-inline-end:10px;top:10px;width:26px;height:26px;border:none;border-radius:999px;background:#0f172a0f;color:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}:host(.iox-es) .dialog-close{border-radius:var(--iox-radius-pill);background:var(--iox-surface-2);color:var(--iox-text)}.dialog-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;min-height:90px;border:1.5px dashed rgba(100,116,139,.35);border-radius:4px;color:#64748b80;font-size:12px}.dialog-placeholder i{font-size:18px}\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: RenderDirective, selector: "[ioxRender]", inputs: ["ioxRender", "ioxDragSourceId", "ioxPhrasing"], outputs: ["onClick", "onMouseEnter", "onMouseLeave"] }, { kind: "directive", type: IoxDropzoneDirective, selector: "[ioxDropzone]", inputs: ["ioxDropzoneId", "ioxDropzoneData", "ioxDropzonePostDrop"], outputs: ["ioxDrop"] }] }); }
|
|
12671
|
+
`, isInline: true, styles: [":host{display:contents}.dialog-stage{position:fixed;inset:0;z-index:50;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);place-items:center;padding:24px;box-sizing:border-box;background:#0f172a73}:host(.iox-es) .dialog-stage{background:var(--iox-scrim)}.dialog-stage[data-placement=top]{align-items:start}.dialog-stage[data-placement=bottom]{align-items:end}.dialog-stage[data-placement=start]{justify-items:start}.dialog-stage[data-placement=end]{justify-items:end}:host(.iox-es) .dialog-stage:is([data-placement=end],[data-placement=start]){padding:0}:host(.iox-es) .dialog-stage:is([data-placement=end],[data-placement=start]) .dialog-surface{height:100%;max-height:100%}:host(.iox-es) .dialog-stage[data-placement=end] .dialog-surface{border-start-end-radius:0;border-end-end-radius:0}:host(.iox-es) .dialog-stage[data-placement=start] .dialog-surface{border-start-start-radius:0;border-end-start-radius:0}:host(.iox-es) .dialog-stage{animation:iox-dialog-scrim-in var(--iox-dur-base) var(--iox-ease-enter) both}:host(.iox-es) .dialog-stage[data-iox-closing]{animation:iox-dialog-scrim-out var(--iox-dur-base) var(--iox-ease-exit) both}:host(.iox-es) .dialog-surface{--dialog-exit-x: 0px;--dialog-exit-y: 12px;--dialog-exit-opacity: 0;animation:iox-dialog-in var(--iox-dur-base) var(--iox-ease-enter) both}:host(.iox-es) .dialog-stage[data-iox-closing] .dialog-surface{animation:iox-dialog-out var(--iox-dur-base) var(--iox-ease-exit) both}:host(.iox-es) .dialog-stage[data-placement=top] .dialog-surface{--dialog-exit-y: -12px}:host(.iox-es) .dialog-stage:is([data-placement=end],[data-placement=start]) .dialog-surface{--dialog-exit-y: 0px;--dialog-exit-opacity: 1}:host(.iox-es) .dialog-stage[data-placement=end] .dialog-surface{--dialog-exit-x: calc(100% * var(--dialog-dir, 1))}:host(.iox-es) .dialog-stage[data-placement=start] .dialog-surface{--dialog-exit-x: calc(-100% * var(--dialog-dir, 1))}:host-context([dir=\"rtl\"]){--dialog-dir: -1}@keyframes iox-dialog-scrim-in{0%{background-color:transparent}}@keyframes iox-dialog-scrim-out{to{background-color:transparent}}@keyframes iox-dialog-in{0%{translate:var(--dialog-exit-x) var(--dialog-exit-y);opacity:var(--dialog-exit-opacity)}}@keyframes iox-dialog-out{to{translate:var(--dialog-exit-x) var(--dialog-exit-y);opacity:var(--dialog-exit-opacity)}}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface[data-iox-reveal]{--dialog-exit-x: 0px;--dialog-exit-y: 0px}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface[data-iox-reveal=fade],:host(.iox-es) .dialog-stage[data-placement] .dialog-surface[data-iox-reveal=zoom]{--dialog-exit-opacity: 0}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface:is([data-iox-reveal=circle],[data-iox-reveal=torn]){--dialog-exit-opacity: 0}@media(prefers-reduced-motion:no-preference){:host(.iox-es) .dialog-stage[data-placement] .dialog-surface:is([data-iox-reveal=circle],[data-iox-reveal=torn]){--dialog-exit-opacity: 1}}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface:is([data-iox-menu],[data-iox-reveal],[data-iox-menu-phone]){animation-duration:var(--menu-in, var(--iox-dur-ui, .2s))}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface:is([data-iox-menu],[data-iox-reveal],[data-iox-menu-phone]):not([data-iox-reveal=torn]){transition:scale var(--menu-in, var(--iox-dur-ui, .2s)) var(--iox-ease-enter),clip-path var(--menu-in, var(--iox-dur-ui, .2s)) var(--iox-ease-enter)}:host(.iox-es) .dialog-stage[data-iox-closing][data-placement] .dialog-surface:is([data-iox-menu],[data-iox-reveal],[data-iox-menu-phone]){animation-duration:var(--menu-out, calc(var(--iox-dur-ui, .2s) * .7));transition-duration:var(--menu-out, calc(var(--iox-dur-ui, .2s) * .7));transition-timing-function:var(--iox-ease-exit)}:host(.iox-es) .dialog-stage[data-placement]:has(>.dialog-surface:is([data-iox-menu],[data-iox-reveal],[data-iox-menu-phone])){animation-duration:var(--iox-dur-ui, .2s)}:host(.iox-es) .dialog-stage[data-iox-closing][data-placement]:has(>.dialog-surface:is([data-iox-menu],[data-iox-reveal],[data-iox-menu-phone])){animation-duration:calc(var(--iox-dur-ui, .2s) * .7)}:host(.iox-es) .dialog-stage:has(>.dialog-surface[data-iox-menu=full]){padding:0}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface[data-iox-menu=full]{width:100%;max-width:none;height:100%;max-height:100%;border-radius:0}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface[data-iox-menu=full]:not([data-iox-reveal]){--dialog-exit-x: 0px;--dialog-exit-y: -14px;--dialog-exit-opacity: 0}@container iox-canvas (max-width: 767px){:host(.iox-es) .dialog-stage:has(>.dialog-surface[data-iox-menu-phone=full]){padding:0}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface[data-iox-menu-phone=full]{width:100%;max-width:none;height:100%;max-height:100%;border-radius:0}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface[data-iox-menu-phone=full]:not([data-iox-reveal]){--dialog-exit-x: 0px;--dialog-exit-y: -14px;--dialog-exit-opacity: 0}}@container iox-canvas (min-width: 768px){:host(.iox-es) .dialog-stage:has(>.dialog-surface:is([data-iox-menu=card],[data-iox-menu=panel],[data-iox-menu=mega])){padding:0}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface:is([data-iox-menu=card],[data-iox-menu=panel],[data-iox-menu=mega]){max-width:none;height:fit-content;overflow:auto}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface:is([data-iox-menu=card],[data-iox-menu=panel],[data-iox-menu=mega]):not([data-iox-reveal]){--dialog-exit-x: 0px;--dialog-exit-y: -14px;--dialog-exit-opacity: 0}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface[data-iox-menu=card]{margin-block:10px auto;margin-inline:auto 14px;width:min(440px,calc(100% - 28px));max-height:calc(100% - 20px);border-radius:var(--iox-dialog-radius)}:host(.iox-es) .dialog-stage[data-placement=start] .dialog-surface[data-iox-menu=card]{margin-inline:14px auto}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface[data-iox-menu=panel]{margin:0 0 auto;width:100%;max-height:80%;border-radius:0 0 var(--iox-dialog-radius) var(--iox-dialog-radius)}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface[data-iox-menu=mega]{margin:10px 14px auto;width:calc(100% - 28px);max-height:calc(100% - 20px);border-radius:var(--iox-dialog-radius)}}:where(.dialog-surface){box-sizing:border-box;max-width:100%;max-height:100%;overflow:auto;contain:layout}.dialog-close{position:absolute;inset-inline-end:10px;top:10px;width:26px;height:26px;border:none;border-radius:999px;background:#0f172a0f;color:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}:host(.iox-es) .dialog-close{border-radius:var(--iox-radius-pill);background:var(--iox-surface-2);color:var(--iox-text)}.dialog-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;min-height:90px;border:1.5px dashed rgba(100,116,139,.35);border-radius:4px;color:#64748b80;font-size:12px}.dialog-placeholder i{font-size:18px}\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: RenderDirective, selector: "[ioxRender]", inputs: ["ioxRender", "ioxDragSourceId", "ioxPhrasing"], outputs: ["onClick", "onMouseEnter", "onMouseLeave"] }, { kind: "directive", type: IoxDropzoneDirective, selector: "[ioxDropzone]", inputs: ["ioxDropzoneId", "ioxDropzoneData", "ioxDropzonePostDrop"], outputs: ["ioxDrop"] }] }); }
|
|
12572
12672
|
}
|
|
12573
12673
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: BuilderDialogComponent, decorators: [{
|
|
12574
12674
|
type: Component,
|
|
12575
12675
|
args: [{ selector: 'app-builder-dialog', template: `
|
|
12576
12676
|
<div *ngIf="designOpen" #stage class="dialog-stage" [attr.data-placement]="placementValue"
|
|
12577
12677
|
(click)="onStageClick($event)">
|
|
12578
|
-
<div [ngClass]="['iox-node-' + nodeId, 'iox-outer-' + nodeId]"
|
|
12678
|
+
<div #surface [ngClass]="['iox-node-' + nodeId, 'iox-outer-' + nodeId]"
|
|
12579
12679
|
class="dialog-surface"
|
|
12680
|
+
[attr.data-iox-menu]="menuAttrs[menuAttr.Form]"
|
|
12681
|
+
[attr.data-iox-reveal]="menuAttrs[menuAttr.Reveal]"
|
|
12682
|
+
[attr.data-iox-menu-hover]="menuAttrs[menuAttr.Hover]"
|
|
12683
|
+
[attr.data-iox-menu-phone]="menuAttrs[menuAttr.Phone]"
|
|
12580
12684
|
ioxDropzone
|
|
12581
12685
|
[ioxDropzoneId]="dropListId"
|
|
12582
12686
|
[ioxDropzoneData]="children"
|
|
@@ -12604,7 +12708,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
12604
12708
|
</ng-container>
|
|
12605
12709
|
</div>
|
|
12606
12710
|
</div>
|
|
12607
|
-
`, standalone: false, styles: [":host{display:contents}.dialog-stage{position:fixed;inset:0;z-index:50;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);place-items:center;padding:24px;box-sizing:border-box;background:#0f172a73}:host(.iox-es) .dialog-stage{background:var(--iox-scrim)}.dialog-stage[data-placement=top]{align-items:start}.dialog-stage[data-placement=bottom]{align-items:end}.dialog-stage[data-placement=start]{justify-items:start}.dialog-stage[data-placement=end]{justify-items:end}:host(.iox-es) .dialog-stage:is([data-placement=end],[data-placement=start]){padding:0}:host(.iox-es) .dialog-stage:is([data-placement=end],[data-placement=start]) .dialog-surface{height:100%;max-height:100%}:host(.iox-es) .dialog-stage[data-placement=end] .dialog-surface{border-start-end-radius:0;border-end-end-radius:0}:host(.iox-es) .dialog-stage[data-placement=start] .dialog-surface{border-start-start-radius:0;border-end-start-radius:0}:host(.iox-es) .dialog-stage{animation:iox-dialog-scrim-in var(--iox-dur-base) var(--iox-ease-enter) both}:host(.iox-es) .dialog-stage[data-iox-closing]{animation:iox-dialog-scrim-out var(--iox-dur-base) var(--iox-ease-exit) both}:host(.iox-es) .dialog-surface{--dialog-exit-x: 0px;--dialog-exit-y: 12px;--dialog-exit-opacity: 0;animation:iox-dialog-in var(--iox-dur-base) var(--iox-ease-enter) both}:host(.iox-es) .dialog-stage[data-iox-closing] .dialog-surface{animation:iox-dialog-out var(--iox-dur-base) var(--iox-ease-exit) both}:host(.iox-es) .dialog-stage[data-placement=top] .dialog-surface{--dialog-exit-y: -12px}:host(.iox-es) .dialog-stage:is([data-placement=end],[data-placement=start]) .dialog-surface{--dialog-exit-y: 0px;--dialog-exit-opacity: 1}:host(.iox-es) .dialog-stage[data-placement=end] .dialog-surface{--dialog-exit-x: calc(100% * var(--dialog-dir, 1))}:host(.iox-es) .dialog-stage[data-placement=start] .dialog-surface{--dialog-exit-x: calc(-100% * var(--dialog-dir, 1))}:host-context([dir=\"rtl\"]){--dialog-dir: -1}@keyframes iox-dialog-scrim-in{0%{background-color:transparent}}@keyframes iox-dialog-scrim-out{to{background-color:transparent}}@keyframes iox-dialog-in{0%{translate:var(--dialog-exit-x) var(--dialog-exit-y);opacity:var(--dialog-exit-opacity)}}@keyframes iox-dialog-out{to{translate:var(--dialog-exit-x) var(--dialog-exit-y);opacity:var(--dialog-exit-opacity)}}:where(.dialog-surface){box-sizing:border-box;max-width:100%;max-height:100%;overflow:auto;contain:layout}.dialog-close{position:absolute;inset-inline-end:10px;top:10px;width:26px;height:26px;border:none;border-radius:999px;background:#0f172a0f;color:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}:host(.iox-es) .dialog-close{border-radius:var(--iox-radius-pill);background:var(--iox-surface-2);color:var(--iox-text)}.dialog-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;min-height:90px;border:1.5px dashed rgba(100,116,139,.35);border-radius:4px;color:#64748b80;font-size:12px}.dialog-placeholder i{font-size:18px}\n"] }]
|
|
12711
|
+
`, standalone: false, styles: [":host{display:contents}.dialog-stage{position:fixed;inset:0;z-index:50;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);place-items:center;padding:24px;box-sizing:border-box;background:#0f172a73}:host(.iox-es) .dialog-stage{background:var(--iox-scrim)}.dialog-stage[data-placement=top]{align-items:start}.dialog-stage[data-placement=bottom]{align-items:end}.dialog-stage[data-placement=start]{justify-items:start}.dialog-stage[data-placement=end]{justify-items:end}:host(.iox-es) .dialog-stage:is([data-placement=end],[data-placement=start]){padding:0}:host(.iox-es) .dialog-stage:is([data-placement=end],[data-placement=start]) .dialog-surface{height:100%;max-height:100%}:host(.iox-es) .dialog-stage[data-placement=end] .dialog-surface{border-start-end-radius:0;border-end-end-radius:0}:host(.iox-es) .dialog-stage[data-placement=start] .dialog-surface{border-start-start-radius:0;border-end-start-radius:0}:host(.iox-es) .dialog-stage{animation:iox-dialog-scrim-in var(--iox-dur-base) var(--iox-ease-enter) both}:host(.iox-es) .dialog-stage[data-iox-closing]{animation:iox-dialog-scrim-out var(--iox-dur-base) var(--iox-ease-exit) both}:host(.iox-es) .dialog-surface{--dialog-exit-x: 0px;--dialog-exit-y: 12px;--dialog-exit-opacity: 0;animation:iox-dialog-in var(--iox-dur-base) var(--iox-ease-enter) both}:host(.iox-es) .dialog-stage[data-iox-closing] .dialog-surface{animation:iox-dialog-out var(--iox-dur-base) var(--iox-ease-exit) both}:host(.iox-es) .dialog-stage[data-placement=top] .dialog-surface{--dialog-exit-y: -12px}:host(.iox-es) .dialog-stage:is([data-placement=end],[data-placement=start]) .dialog-surface{--dialog-exit-y: 0px;--dialog-exit-opacity: 1}:host(.iox-es) .dialog-stage[data-placement=end] .dialog-surface{--dialog-exit-x: calc(100% * var(--dialog-dir, 1))}:host(.iox-es) .dialog-stage[data-placement=start] .dialog-surface{--dialog-exit-x: calc(-100% * var(--dialog-dir, 1))}:host-context([dir=\"rtl\"]){--dialog-dir: -1}@keyframes iox-dialog-scrim-in{0%{background-color:transparent}}@keyframes iox-dialog-scrim-out{to{background-color:transparent}}@keyframes iox-dialog-in{0%{translate:var(--dialog-exit-x) var(--dialog-exit-y);opacity:var(--dialog-exit-opacity)}}@keyframes iox-dialog-out{to{translate:var(--dialog-exit-x) var(--dialog-exit-y);opacity:var(--dialog-exit-opacity)}}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface[data-iox-reveal]{--dialog-exit-x: 0px;--dialog-exit-y: 0px}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface[data-iox-reveal=fade],:host(.iox-es) .dialog-stage[data-placement] .dialog-surface[data-iox-reveal=zoom]{--dialog-exit-opacity: 0}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface:is([data-iox-reveal=circle],[data-iox-reveal=torn]){--dialog-exit-opacity: 0}@media(prefers-reduced-motion:no-preference){:host(.iox-es) .dialog-stage[data-placement] .dialog-surface:is([data-iox-reveal=circle],[data-iox-reveal=torn]){--dialog-exit-opacity: 1}}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface:is([data-iox-menu],[data-iox-reveal],[data-iox-menu-phone]){animation-duration:var(--menu-in, var(--iox-dur-ui, .2s))}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface:is([data-iox-menu],[data-iox-reveal],[data-iox-menu-phone]):not([data-iox-reveal=torn]){transition:scale var(--menu-in, var(--iox-dur-ui, .2s)) var(--iox-ease-enter),clip-path var(--menu-in, var(--iox-dur-ui, .2s)) var(--iox-ease-enter)}:host(.iox-es) .dialog-stage[data-iox-closing][data-placement] .dialog-surface:is([data-iox-menu],[data-iox-reveal],[data-iox-menu-phone]){animation-duration:var(--menu-out, calc(var(--iox-dur-ui, .2s) * .7));transition-duration:var(--menu-out, calc(var(--iox-dur-ui, .2s) * .7));transition-timing-function:var(--iox-ease-exit)}:host(.iox-es) .dialog-stage[data-placement]:has(>.dialog-surface:is([data-iox-menu],[data-iox-reveal],[data-iox-menu-phone])){animation-duration:var(--iox-dur-ui, .2s)}:host(.iox-es) .dialog-stage[data-iox-closing][data-placement]:has(>.dialog-surface:is([data-iox-menu],[data-iox-reveal],[data-iox-menu-phone])){animation-duration:calc(var(--iox-dur-ui, .2s) * .7)}:host(.iox-es) .dialog-stage:has(>.dialog-surface[data-iox-menu=full]){padding:0}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface[data-iox-menu=full]{width:100%;max-width:none;height:100%;max-height:100%;border-radius:0}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface[data-iox-menu=full]:not([data-iox-reveal]){--dialog-exit-x: 0px;--dialog-exit-y: -14px;--dialog-exit-opacity: 0}@container iox-canvas (max-width: 767px){:host(.iox-es) .dialog-stage:has(>.dialog-surface[data-iox-menu-phone=full]){padding:0}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface[data-iox-menu-phone=full]{width:100%;max-width:none;height:100%;max-height:100%;border-radius:0}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface[data-iox-menu-phone=full]:not([data-iox-reveal]){--dialog-exit-x: 0px;--dialog-exit-y: -14px;--dialog-exit-opacity: 0}}@container iox-canvas (min-width: 768px){:host(.iox-es) .dialog-stage:has(>.dialog-surface:is([data-iox-menu=card],[data-iox-menu=panel],[data-iox-menu=mega])){padding:0}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface:is([data-iox-menu=card],[data-iox-menu=panel],[data-iox-menu=mega]){max-width:none;height:fit-content;overflow:auto}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface:is([data-iox-menu=card],[data-iox-menu=panel],[data-iox-menu=mega]):not([data-iox-reveal]){--dialog-exit-x: 0px;--dialog-exit-y: -14px;--dialog-exit-opacity: 0}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface[data-iox-menu=card]{margin-block:10px auto;margin-inline:auto 14px;width:min(440px,calc(100% - 28px));max-height:calc(100% - 20px);border-radius:var(--iox-dialog-radius)}:host(.iox-es) .dialog-stage[data-placement=start] .dialog-surface[data-iox-menu=card]{margin-inline:14px auto}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface[data-iox-menu=panel]{margin:0 0 auto;width:100%;max-height:80%;border-radius:0 0 var(--iox-dialog-radius) var(--iox-dialog-radius)}:host(.iox-es) .dialog-stage[data-placement] .dialog-surface[data-iox-menu=mega]{margin:10px 14px auto;width:calc(100% - 28px);max-height:calc(100% - 20px);border-radius:var(--iox-dialog-radius)}}:where(.dialog-surface){box-sizing:border-box;max-width:100%;max-height:100%;overflow:auto;contain:layout}.dialog-close{position:absolute;inset-inline-end:10px;top:10px;width:26px;height:26px;border:none;border-radius:999px;background:#0f172a0f;color:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}:host(.iox-es) .dialog-close{border-radius:var(--iox-radius-pill);background:var(--iox-surface-2);color:var(--iox-text)}.dialog-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;min-height:90px;border:1.5px dashed rgba(100,116,139,.35);border-radius:4px;color:#64748b80;font-size:12px}.dialog-placeholder i{font-size:18px}\n"] }]
|
|
12608
12712
|
}], ctorParameters: () => [{ type: DragEngineService }, { type: i2$1.ComponentInstanceRegistryService }, { type: OverlayService }, { type: i0.ChangeDetectorRef }, { type: CanvasDesignStateService, decorators: [{
|
|
12609
12713
|
type: Optional
|
|
12610
12714
|
}] }, { type: PanelEventService, decorators: [{
|
|
@@ -12623,6 +12727,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
12623
12727
|
type: Input
|
|
12624
12728
|
}], placement: [{
|
|
12625
12729
|
type: Input
|
|
12730
|
+
}], menuForm: [{
|
|
12731
|
+
type: Input
|
|
12732
|
+
}], menuReveal: [{
|
|
12733
|
+
type: Input
|
|
12734
|
+
}], menuHover: [{
|
|
12735
|
+
type: Input
|
|
12736
|
+
}], menuPhone: [{
|
|
12737
|
+
type: Input
|
|
12626
12738
|
}], childClick: [{
|
|
12627
12739
|
type: Output
|
|
12628
12740
|
}], childMouseEnter: [{
|
|
@@ -12632,6 +12744,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
12632
12744
|
}], stageRef: [{
|
|
12633
12745
|
type: ViewChild,
|
|
12634
12746
|
args: ['stage']
|
|
12747
|
+
}], surfaceRef: [{
|
|
12748
|
+
type: ViewChild,
|
|
12749
|
+
args: ['surface']
|
|
12635
12750
|
}] } });
|
|
12636
12751
|
|
|
12637
12752
|
/** A frame this narrow is a phone: the popover is a bottom sheet there (iox-ui FLOATING_SHEET_QUERY's width). */
|
|
@@ -14523,207 +14638,25 @@ function buildPalettePreset(def, createConfig) {
|
|
|
14523
14638
|
return node;
|
|
14524
14639
|
}
|
|
14525
14640
|
|
|
14526
|
-
|
|
14527
|
-
|
|
14528
|
-
|
|
14529
|
-
for (const [prop, value] of Object.entries(styles))
|
|
14530
|
-
setStyleTrait(node, prop, value);
|
|
14531
|
-
return node;
|
|
14532
|
-
}
|
|
14533
|
-
/**
|
|
14534
|
-
* THE CONSENT PRESET (consent plan C3) — the banner as builder elements, which is the whole bet:
|
|
14535
|
-
* Wix ships a banner you cannot design, Webflow ships a design system and no banner; ours is a
|
|
14536
|
-
* Dialog made of ordinary nodes, so it arrives flavored, stylable, translatable and RTL-correct
|
|
14537
|
-
* like everything else on the canvas.
|
|
14538
|
-
*
|
|
14539
|
-
* Three roots, inserted as GLOBAL elements (D-C5 — site-wide by construction):
|
|
14540
|
-
* 1. the banner Dialog (`consentRole` — the live runtime opens it when `needsPrompt` says so),
|
|
14541
|
-
* 2. the preferences Dialog (per-category Allow/Refuse, recorded immediately — state-free),
|
|
14542
|
-
* 3. a small "Cookie settings" element — the withdrawal path (§7.3), free once actions exist.
|
|
14543
|
-
*
|
|
14544
|
-
* Design rules carried in the tree (§7): Accept and Reject are the SAME component with the same
|
|
14545
|
-
* defaults on the same row — reject is as easy as accept; the three categories are named on the
|
|
14546
|
-
* first layer; `closeOnBackdrop` is OFF — clicking away is not consent; the X stays, because the
|
|
14547
|
-
* live runtime records a close-without-decision as a "no".
|
|
14548
|
-
*
|
|
14549
|
-
* The TEXTS are the customer's (D-C7). These strings are neutral mechanism-microcopy seeded for
|
|
14550
|
-
* editing — never policy language, which we do not write (§8).
|
|
14551
|
-
*/
|
|
14552
|
-
const click = (actions) => ({
|
|
14553
|
-
id: generateNodeId(),
|
|
14554
|
-
trigger: 'click',
|
|
14555
|
-
actions: actions.map(a => ({
|
|
14556
|
-
target: 'self', duration: 0, delay: 0, easing: 'ease', ...a,
|
|
14557
|
-
})),
|
|
14558
|
-
});
|
|
14559
|
-
const TOKEN = (name, fallback) => `var(--iox-${name}, ${fallback})`;
|
|
14560
|
-
function button$1(label, createConfig, interaction, styles = {}) {
|
|
14561
|
-
const btn = createConfig('ButtonBlock');
|
|
14562
|
-
const text = textNode(label, createConfig);
|
|
14563
|
-
if (!btn || !text)
|
|
14564
|
-
return null;
|
|
14565
|
-
setTrait(btn, 'tag', 'button');
|
|
14566
|
-
setStyleTrait(text, 'fontSize', 'inherit');
|
|
14567
|
-
setStyleTrait(text, 'fontWeight', 'inherit');
|
|
14568
|
-
setStyleTrait(text, 'color', 'inherit');
|
|
14569
|
-
for (const [prop, value] of Object.entries(styles))
|
|
14570
|
-
setStyleTrait(btn, prop, value);
|
|
14571
|
-
btn.children = [text];
|
|
14572
|
-
btn.interactions = [interaction];
|
|
14573
|
-
return btn;
|
|
14574
|
-
}
|
|
14575
|
-
/** The C1/C2 board button voices — Swiss by fallback, the brand's the moment tokens seed. */
|
|
14576
|
-
// width:'auto' + flexShrink:'0' on every voice: a consent button never stretches to its row's
|
|
14577
|
-
// height nor shrinks until its label wraps — both happened on the canvas (Rule 0, 2026-10-10).
|
|
14578
|
-
const SOLID = {
|
|
14579
|
-
backgroundColor: TOKEN('brand-500', '#1f1d1b'), color: TOKEN('brandInk', '#ffffff'),
|
|
14580
|
-
fontSize: '12px', fontWeight: '600', padding: '9px 16px',
|
|
14581
|
-
borderRadius: TOKEN('radius-control', '4px'),
|
|
14582
|
-
width: 'auto', flexShrink: '0',
|
|
14583
|
-
};
|
|
14584
|
-
const OUTLINED = {
|
|
14585
|
-
backgroundColor: 'transparent', color: TOKEN('ink', '#1f1d1b'),
|
|
14586
|
-
borderWidth: '1px', borderStyle: 'solid', borderColor: TOKEN('ink', '#1f1d1b'),
|
|
14587
|
-
fontSize: '12px', fontWeight: '600', padding: '8px 16px',
|
|
14588
|
-
borderRadius: TOKEN('radius-control', '4px'),
|
|
14589
|
-
width: 'auto', flexShrink: '0',
|
|
14590
|
-
};
|
|
14591
|
-
const QUIET = {
|
|
14592
|
-
backgroundColor: 'transparent', color: TOKEN('inkMuted', '#4a453f'),
|
|
14593
|
-
fontSize: '11px', fontWeight: '400', padding: '2px 4px', textDecoration: 'underline',
|
|
14594
|
-
width: 'auto', flexShrink: '0',
|
|
14595
|
-
};
|
|
14596
|
-
function row(createConfig, styles, children) {
|
|
14597
|
-
const container = createConfig('Container');
|
|
14598
|
-
if (!container || children.some(c => !c))
|
|
14599
|
-
return null;
|
|
14600
|
-
// The Container config defaults (minHeight 200px — the canvas droppability affordance) are
|
|
14601
|
-
// serialized with the node, so a preset box must OWN its height or every card ships 200px
|
|
14602
|
-
// tall with dead space (Rule 0 catch, 2026-10-10). Callers may still override.
|
|
14603
|
-
setStyleTrait(container, 'minHeight', 'auto');
|
|
14604
|
-
for (const [prop, value] of Object.entries(styles))
|
|
14605
|
-
setStyleTrait(container, prop, value);
|
|
14606
|
-
container.children = children;
|
|
14607
|
-
return container;
|
|
14608
|
-
}
|
|
14641
|
+
const NO_BASELINE = () => ({});
|
|
14642
|
+
/** The tail of `builderCompositeFactory`'s error for a type the registry does not have. */
|
|
14643
|
+
const UNREGISTERED = 'is not a registered component type';
|
|
14609
14644
|
/** Build the three roots. Null when any type is missing — a half-built banner never ships. */
|
|
14610
|
-
function buildConsentPreset(createConfig) {
|
|
14611
|
-
const
|
|
14612
|
-
|
|
14613
|
-
|
|
14614
|
-
return
|
|
14615
|
-
|
|
14616
|
-
|
|
14617
|
-
|
|
14618
|
-
|
|
14619
|
-
|
|
14620
|
-
|
|
14621
|
-
|
|
14622
|
-
|
|
14623
|
-
|
|
14624
|
-
|
|
14625
|
-
setStyleTrait(banner, 'backgroundColor', TOKEN('surface', '#ffffff'));
|
|
14626
|
-
setStyleTrait(banner, 'borderWidth', '1px');
|
|
14627
|
-
setStyleTrait(banner, 'borderStyle', 'solid');
|
|
14628
|
-
setStyleTrait(banner, 'borderColor', TOKEN('ink', '#1f1d1b'));
|
|
14629
|
-
setStyleTrait(banner, 'boxShadow', 'none');
|
|
14630
|
-
const heading = text$1('Cookies on this site', { fontSize: '13px', fontWeight: '600', color: TOKEN('ink', '#1f1d1b') }, createConfig);
|
|
14631
|
-
// The first layer NAMES the three categories (plan §7) — the board does it in the copy.
|
|
14632
|
-
const body = text$1('We use analytics and marketing cookies only if you allow them. Necessary ones always run.', { fontSize: '11px', color: TOKEN('inkMuted', '#4a453f'), lineHeight: '1.5', maxWidth: '330px' }, createConfig);
|
|
14633
|
-
// width:'auto' throughout — the Container default is 100%, and two 100%-wide columns
|
|
14634
|
-
// cannot share the bar's row (they wrap into a stack; Rule 0 catch, 2026-10-10).
|
|
14635
|
-
const textCol = row(createConfig, { display: 'flex', flexDirection: 'column', gap: '4px', flexGrow: '1', width: 'auto' }, [heading, body]);
|
|
14636
|
-
const accept = button$1('Accept all', createConfig, click([
|
|
14637
|
-
{ type: 'grantConsent' },
|
|
14638
|
-
{ type: 'closeDialog', target: banner.id },
|
|
14639
|
-
]), SOLID);
|
|
14640
|
-
const reject = button$1('Reject all', createConfig, click([
|
|
14641
|
-
{ type: 'denyConsent' },
|
|
14642
|
-
{ type: 'closeDialog', target: banner.id },
|
|
14643
|
-
]), OUTLINED);
|
|
14644
|
-
const prefs = button$1('Preferences', createConfig, click([
|
|
14645
|
-
{ type: 'openConsentPreferences', target: preferences.id },
|
|
14646
|
-
]), QUIET);
|
|
14647
|
-
const acceptRejectRow = row(createConfig, { display: 'flex', gap: '7px', alignItems: 'center', width: 'auto' }, [accept, reject]);
|
|
14648
|
-
const buttonsCol = row(createConfig, { display: 'flex', flexDirection: 'column', gap: '7px', alignItems: 'center', width: 'auto', flexShrink: '0' }, [acceptRejectRow, prefs]);
|
|
14649
|
-
const bannerRow = row(createConfig, { display: 'flex', gap: '18px', alignItems: 'center', flexWrap: 'wrap' }, [textCol, buttonsCol]);
|
|
14650
|
-
if (!bannerRow)
|
|
14651
|
-
return null;
|
|
14652
|
-
banner.children = [bannerRow];
|
|
14653
|
-
// ── the preferences modal ────────────────────────────────────────────────
|
|
14654
|
-
preferences.label = 'Consent preferences';
|
|
14655
|
-
setTrait(preferences, 'closeOnBackdrop', true);
|
|
14656
|
-
setTrait(preferences, 'showCloseButton', true);
|
|
14657
|
-
setStyleTrait(preferences, 'width', 'min(480px, calc(100vw - 48px))');
|
|
14658
|
-
setStyleTrait(preferences, 'padding', '18px 20px');
|
|
14659
|
-
setStyleTrait(preferences, 'display', 'flex');
|
|
14660
|
-
setStyleTrait(preferences, 'flexDirection', 'column');
|
|
14661
|
-
setStyleTrait(preferences, 'gap', '12px');
|
|
14662
|
-
const prefsHeading = text$1('Your privacy choices', { fontSize: '16px', fontWeight: '600', color: TOKEN('ink', '#1f1d1b') }, createConfig);
|
|
14663
|
-
const prefsSub = text$1('Change these any time from “Cookie settings” in the footer.', { fontSize: '12px', color: TOKEN('inkMuted', '#6b6560') }, createConfig);
|
|
14664
|
-
const CARD = {
|
|
14665
|
-
display: 'flex', gap: '12px', alignItems: 'flex-start',
|
|
14666
|
-
borderWidth: '1px', borderStyle: 'solid', borderColor: TOKEN('line', '#e6e3e1'),
|
|
14667
|
-
borderRadius: TOKEN('radius-surface', '8px'), padding: '12px 14px',
|
|
14668
|
-
};
|
|
14669
|
-
const nameText = (s) => text$1(s, { fontSize: '13px', fontWeight: '600', color: TOKEN('ink', '#1f1d1b') }, createConfig);
|
|
14670
|
-
const descText = (s) => text$1(s, { fontSize: '11px', color: TOKEN('inkMuted', '#6b6560'), lineHeight: '1.5' }, createConfig);
|
|
14671
|
-
const textColOf = (name, desc) => row(createConfig, { display: 'flex', flexDirection: 'column', gap: '2px', flexGrow: '1', width: 'auto' }, [nameText(name), descText(desc)]);
|
|
14672
|
-
const alwaysOn = text$1('ALWAYS ON', {
|
|
14673
|
-
fontSize: '10px', fontWeight: '600', color: TOKEN('inkMuted', '#6b6560'),
|
|
14674
|
-
borderWidth: '1px', borderStyle: 'solid', borderColor: TOKEN('line', '#e6e3e1'),
|
|
14675
|
-
borderRadius: '999px', padding: '3px 8px',
|
|
14676
|
-
width: 'auto', flexShrink: '0', // a chip hugs its word (Text defaults to 100%)
|
|
14677
|
-
}, createConfig);
|
|
14678
|
-
const necessaryCard = row(createConfig, CARD, [
|
|
14679
|
-
textColOf('Necessary', 'Keeps the site working: your session, your language, this very choice. Always on.'),
|
|
14680
|
-
alwaysOn,
|
|
14681
|
-
]);
|
|
14682
|
-
// Board C2's switches, for real: a Field in switch clothing whose NAME carries the
|
|
14683
|
-
// category ('consent-<category>') — the engine's consent runtime binds checked-state to
|
|
14684
|
-
// the decision and records on change. State lives in the cookie, never in the tree.
|
|
14685
|
-
const categoryCard = (category, name, desc) => {
|
|
14686
|
-
const sw = createConfig('Field');
|
|
14687
|
-
if (!sw)
|
|
14688
|
-
return null;
|
|
14689
|
-
setTrait(sw, 'label', name);
|
|
14690
|
-
setTrait(sw, 'labelHidden', true); // the card's own texts carry the words
|
|
14691
|
-
setTrait(sw, 'control', 'switch');
|
|
14692
|
-
setTrait(sw, 'name', `consent-${category}`);
|
|
14693
|
-
setStyleTrait(sw, 'width', 'auto');
|
|
14694
|
-
setStyleTrait(sw, 'flexShrink', '0');
|
|
14695
|
-
return row(createConfig, CARD, [textColOf(name, desc), sw]);
|
|
14696
|
-
};
|
|
14697
|
-
const analyticsCard = categoryCard('analytics', 'Analytics', 'Anonymous counts of visits and pages. Off means the analytics script never loads.');
|
|
14698
|
-
const marketingCard = categoryCard('marketing', 'Marketing', 'Ads measurement and remarketing. Off means no ad cookies and no data shared.');
|
|
14699
|
-
// Board C2's footer: bulk exits live here too — Reject | (grow) | Done | Accept.
|
|
14700
|
-
const prefsReject = button$1('Reject all', createConfig, click([
|
|
14701
|
-
{ type: 'denyConsent' },
|
|
14702
|
-
{ type: 'closeDialog', target: preferences.id },
|
|
14703
|
-
]), OUTLINED);
|
|
14704
|
-
const prefsDone = button$1('Done', createConfig, click([
|
|
14705
|
-
{ type: 'closeDialog', target: preferences.id },
|
|
14706
|
-
]), { ...OUTLINED, color: TOKEN('inkMuted', '#3d3833'), borderColor: TOKEN('line', '#d8d4d1') });
|
|
14707
|
-
const prefsAccept = button$1('Accept all', createConfig, click([
|
|
14708
|
-
{ type: 'grantConsent' },
|
|
14709
|
-
{ type: 'closeDialog', target: preferences.id },
|
|
14710
|
-
]), SOLID);
|
|
14711
|
-
// No spacer Container — an EMPTY container paints the canvas "click to select" placeholder
|
|
14712
|
-
// and squeezes the buttons until their labels wrap (Rule 0 catch). space-between + an end
|
|
14713
|
-
// group is the same board layout with no empty node.
|
|
14714
|
-
const footerEnd = row(createConfig, { display: 'flex', gap: '8px', alignItems: 'center', width: 'auto', flexShrink: '0' }, [prefsDone, prefsAccept]);
|
|
14715
|
-
const footer = row(createConfig, { display: 'flex', gap: '8px', alignItems: 'center', justifyContent: 'space-between' }, [prefsReject, footerEnd]);
|
|
14716
|
-
if (!prefsHeading || !prefsSub || !necessaryCard || !analyticsCard || !marketingCard || !footer)
|
|
14717
|
-
return null;
|
|
14718
|
-
preferences.children = [prefsHeading, prefsSub, necessaryCard, analyticsCard, marketingCard, footer];
|
|
14719
|
-
// ── the withdrawal path (§7.3) ───────────────────────────────────────────
|
|
14720
|
-
const withdrawal = button$1('Cookie settings', createConfig, click([
|
|
14721
|
-
{ type: 'openConsentPreferences', target: preferences.id },
|
|
14722
|
-
]), QUIET);
|
|
14723
|
-
if (!withdrawal)
|
|
14724
|
-
return null;
|
|
14725
|
-
withdrawal.label = 'Cookie settings';
|
|
14726
|
-
return { banner, preferences, withdrawal };
|
|
14645
|
+
function buildConsentPreset(createConfig, options = {}) {
|
|
14646
|
+
const { baselineStyles = NO_BASELINE, ...recipe } = options;
|
|
14647
|
+
try {
|
|
14648
|
+
const { banner, preferences, settings } = buildConsentRecipe(builderCompositeFactory(createConfig, baselineStyles), recipe);
|
|
14649
|
+
return {
|
|
14650
|
+
banner: banner,
|
|
14651
|
+
preferences: preferences,
|
|
14652
|
+
withdrawal: settings,
|
|
14653
|
+
};
|
|
14654
|
+
}
|
|
14655
|
+
catch (error) {
|
|
14656
|
+
if (error instanceof Error && error.message.endsWith(UNREGISTERED))
|
|
14657
|
+
return null; // a type the registry lacks
|
|
14658
|
+
throw error;
|
|
14659
|
+
}
|
|
14727
14660
|
}
|
|
14728
14661
|
|
|
14729
14662
|
/**
|
|
@@ -15051,6 +14984,10 @@ class DialogComponentConfig extends ComponentConfig {
|
|
|
15051
14984
|
closeAbove: 'select',
|
|
15052
14985
|
colorScheme: 'select',
|
|
15053
14986
|
ariaLabel: 'text',
|
|
14987
|
+
menuForm: 'select',
|
|
14988
|
+
menuReveal: 'select',
|
|
14989
|
+
menuHover: 'select',
|
|
14990
|
+
menuPhone: 'select',
|
|
15054
14991
|
};
|
|
15055
14992
|
this.traits = [
|
|
15056
14993
|
// A5: "Centre modal · bottom bar · side sheet — placement is a style choice."
|
|
@@ -15064,6 +15001,8 @@ class DialogComponentConfig extends ComponentConfig {
|
|
|
15064
15001
|
...buildAccessibleNameTraits(),
|
|
15065
15002
|
// CC3 (board 6): a dialog may wear a section colour scheme — the Lightbox is Inverse.
|
|
15066
15003
|
buildColorSchemeTrait(),
|
|
15004
|
+
// HI2a: the navigation's drawer as a MENU — form, reveal, hover, phone form (no default: R-H4).
|
|
15005
|
+
...buildMenuTraits(),
|
|
15067
15006
|
];
|
|
15068
15007
|
this.styleTraits = buildFullStyleTraits();
|
|
15069
15008
|
this.applyStyleDefaults({
|
|
@@ -15153,6 +15092,7 @@ class ButtonBlockComponentConfig extends ComponentConfig {
|
|
|
15153
15092
|
target: 'select',
|
|
15154
15093
|
type: 'select',
|
|
15155
15094
|
ariaLabel: 'text',
|
|
15095
|
+
menuButton: 'select',
|
|
15156
15096
|
};
|
|
15157
15097
|
// A link button points at a URL or at a website PAGE by route — the Link's two link types
|
|
15158
15098
|
// (W1.1): a page route is shown as the route here and resolved base-relative by the engine.
|
|
@@ -15165,6 +15105,8 @@ class ButtonBlockComponentConfig extends ComponentConfig {
|
|
|
15165
15105
|
...buildAccessibleNameTraits(),
|
|
15166
15106
|
// Premium M5: words for a control that has none of its own (Bindings ▸ Tooltip).
|
|
15167
15107
|
...buildTooltipTraits(),
|
|
15108
|
+
// HI2a: drawn as the menu button (lines · word · dots) — the opener and the menu's Close. No default.
|
|
15109
|
+
...buildMenuButtonTraits(),
|
|
15168
15110
|
];
|
|
15169
15111
|
this.styleTraits = buildFullStyleTraits();
|
|
15170
15112
|
this.applyStyleDefaults({
|