@vectoriox/iox-builder 11.33.0 → 11.34.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.
|
@@ -19,7 +19,7 @@ import { DialogModule } from 'primeng/dialog';
|
|
|
19
19
|
import * as i2$1 from '@vectoriox/iox-ui';
|
|
20
20
|
import { nodeCssId, needsGroupName, resolveBoundValue, isBoundStyleProp, STRUCTURAL_STATES as STRUCTURAL_STATES$1, VALIDATION_STATES as VALIDATION_STATES$1, VALIDATION_STATE_CLASS as VALIDATION_STATE_CLASS$1, DEFAULT_WIDTH_BY_TYPE, TEXT_DIRECTION_KEY, TEXT_ALIGN_KEY, TextAlign, COLOR_SCHEME_TRAIT, COLOR_SCHEMES, ColorScheme, LinkType, MAX_LINES_KEY, A11yTrait, BREAKPOINTS, Breakpoint, 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, declaredInputNames, emptyImagePlaceholder, syncNodeDesignClasses, nodeTraitValue, syncNodeA11yAttributes, nodeA11yAttributes, safeSetInput, colorSchemeOf, withStateTransitions, composeVirtualTraits, stateNamesIn, partClassName, applyBoundStyles, applyBoundStyle, switchElementStyle, releaseElementStyle, countOverrides, setOverride, breakpointDef, breakpointForWidth, FormRenderState, collectContextSlotKeys, withContextSlots, needsAccessibleName, resolveInputs, setInputOverride, barReserveClass, compilePageStyle, nodeUsesContext, attachTooltips, showToastDesign, TOOLTIP_ATTRIBUTE, hidingHeadersIn, HeaderRuntime, inkFollowingHeadersIn, HeaderInkRuntime, 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, 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, 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';
|
|
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, presetFormActions, 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';
|
|
@@ -145,6 +145,11 @@ const BUILDER_CHROME_EN = Object.freeze({
|
|
|
145
145
|
'builder.chrome.deletePairBody': '“{tab}” and the panel it shows go together: deleting one deletes both. Undo brings them back.',
|
|
146
146
|
'builder.chrome.deletePair': 'Delete tab and its panel',
|
|
147
147
|
'builder.chrome.kindSegmented': 'Segmented',
|
|
148
|
+
// PU2 (popups board PP-D6): a popup's badge reads "Popup · Offer" — the kind word after the composite's name.
|
|
149
|
+
'builder.chrome.kindPopup': 'Popup',
|
|
150
|
+
'builder.chrome.popupAnnouncement': 'Announcement',
|
|
151
|
+
'builder.chrome.popupOffer': 'Offer',
|
|
152
|
+
'builder.chrome.popupNewsletter': 'Newsletter',
|
|
148
153
|
'builder.chrome.addOption': 'Add option',
|
|
149
154
|
'builder.chrome.refuseLockedSegmentedPartMove': 'This part belongs to its Segmented control — an option stays in it, and its badge in its option.',
|
|
150
155
|
'builder.chrome.refuseSegmentedAccepts': 'A Segmented control holds only its options. Put it beside the control instead.',
|
|
@@ -2088,6 +2093,7 @@ function buildPopupTraits() {
|
|
|
2088
2093
|
{ label: 'Whichever comes first', value: PopupArrive.ScrollOrTime },
|
|
2089
2094
|
{ label: 'After scrolling', value: PopupArrive.Scroll },
|
|
2090
2095
|
{ label: 'After a time', value: PopupArrive.Time },
|
|
2096
|
+
{ label: 'When leaving (laptop)', value: PopupArrive.Leaving },
|
|
2091
2097
|
{ label: 'Only from a button', value: PopupArrive.Button },
|
|
2092
2098
|
]),
|
|
2093
2099
|
new TraitConfig(PopupTrait.Screens, 'Scrolled (screens)', TraitInputType.Number),
|
|
@@ -8270,14 +8276,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
8270
8276
|
* An accordion's and a disclosure's parts are named by the part alone (`trigger`, "Accordion · trigger", board 3);
|
|
8271
8277
|
* a card keeps its full role (`card.title`, "Card · card.title", board 8).
|
|
8272
8278
|
*/
|
|
8273
|
-
const SHORT_ROLE_KINDS = new Set([CompositeKind.Accordion, CompositeKind.Disclosure, CompositeKind.Tabs, CompositeKind.Segmented]);
|
|
8279
|
+
const SHORT_ROLE_KINDS = new Set([CompositeKind.Accordion, CompositeKind.Disclosure, CompositeKind.Tabs, CompositeKind.Segmented, PopupRole.Popup]);
|
|
8274
8280
|
/** A composite kind's glyph (Phosphor, weight-less): the badge, the root's crumb and its tree row carry it
|
|
8275
8281
|
* (board 3: "the composite root carrying its kind icon"). A card keeps the generic stack glyph. */
|
|
8276
8282
|
const KIND_GLYPHS = {
|
|
8277
8283
|
[CompositeKind.Accordion]: 'ph-rows', [CompositeKind.Disclosure]: 'ph-caret-circle-down', [CompositeKind.Tabs]: 'ph-tabs', [CompositeKind.Segmented]: 'ph-pill',
|
|
8278
8284
|
slider: 'ph-slideshow',
|
|
8285
|
+
// A popup's PART (its title, its words): the window glyph — the root carries its kind's (POPUP_KIND_GLYPHS).
|
|
8286
|
+
[PopupRole.Popup]: 'ph-app-window',
|
|
8279
8287
|
};
|
|
8280
8288
|
const DEFAULT_KIND_GLYPH = 'ph-stack';
|
|
8289
|
+
/** PU2 (popups board PP-D6): a popup carries its KIND's glyph — the palette tile's (cms-client POPUP_PRESETS). */
|
|
8290
|
+
const POPUP_KIND_GLYPHS = {
|
|
8291
|
+
[PopupKind.Announcement]: 'ph-megaphone',
|
|
8292
|
+
[PopupKind.Offer]: 'ph-tag',
|
|
8293
|
+
[PopupKind.Newsletter]: 'ph-envelope-simple',
|
|
8294
|
+
};
|
|
8295
|
+
/** The chrome key of a popup kind's word ("Offer"), in `BUILDER_CHROME_EN`. */
|
|
8296
|
+
const POPUP_KIND_LABEL_KEYS = {
|
|
8297
|
+
[PopupKind.Announcement]: 'builder.chrome.popupAnnouncement',
|
|
8298
|
+
[PopupKind.Offer]: 'builder.chrome.popupOffer',
|
|
8299
|
+
[PopupKind.Newsletter]: 'builder.chrome.popupNewsletter',
|
|
8300
|
+
};
|
|
8301
|
+
/** A popup ROOT's kind (its `popupKind` trait), or null for any other node. */
|
|
8302
|
+
function popupKindOf(node) {
|
|
8303
|
+
if (node?.role !== PopupRole.Popup)
|
|
8304
|
+
return null;
|
|
8305
|
+
const kind = node.traits?.find(t => t.name === PopupTrait.Kind)?.default;
|
|
8306
|
+
return Object.values(PopupKind).includes(kind) ? kind : PopupKind.Offer;
|
|
8307
|
+
}
|
|
8308
|
+
/** The glyph a composite ROOT carries on its crumb, badge and tree row — a popup's by its kind — or null for any other node. */
|
|
8309
|
+
function nodeKindGlyph(node) {
|
|
8310
|
+
const kind = popupKindOf(node);
|
|
8311
|
+
if (kind)
|
|
8312
|
+
return POPUP_KIND_GLYPHS[kind];
|
|
8313
|
+
return node?.role && isAnyCompositeRoot(node) ? compositeKindGlyph(node.role) : null;
|
|
8314
|
+
}
|
|
8281
8315
|
/** The tree icon of an accordion's structural parts (board 3): rows on the root, a stack on an item and a
|
|
8282
8316
|
* panel, a cursor on the header, a sparkle on the icon. Other parts keep their type's icon. */
|
|
8283
8317
|
const PART_ICONS = {
|
|
@@ -8313,7 +8347,10 @@ function compositeKindGlyph(role) {
|
|
|
8313
8347
|
return KIND_GLYPHS[role.split('.')[0]] ?? DEFAULT_KIND_GLYPH;
|
|
8314
8348
|
}
|
|
8315
8349
|
/** A composite part's own tree icon, or null to keep its type's. */
|
|
8316
|
-
function compositePartIcon(role) {
|
|
8350
|
+
function compositePartIcon(role, node) {
|
|
8351
|
+
const kind = popupKindOf(node);
|
|
8352
|
+
if (kind)
|
|
8353
|
+
return `ph-thin ${POPUP_KIND_GLYPHS[kind]}`;
|
|
8317
8354
|
return (role && PART_ICONS[role]) || null;
|
|
8318
8355
|
}
|
|
8319
8356
|
/** The role chip: `trigger` for an accordion's header, `card.title` for a card's title. */
|
|
@@ -8321,12 +8358,15 @@ function roleChipLabel(role) {
|
|
|
8321
8358
|
const [kind, part] = role.split('.');
|
|
8322
8359
|
return SHORT_ROLE_KINDS.has(kind) ? (part ?? kind) : role;
|
|
8323
8360
|
}
|
|
8324
|
-
/** The selection's kind badge: "Accordion" on the root, "Accordion · trigger" on a part, "Card · card.title"
|
|
8325
|
-
|
|
8361
|
+
/** The selection's kind badge: "Accordion" on the root, "Accordion · trigger" on a part, "Card · card.title" — and a
|
|
8362
|
+
* popup's root "Popup · Offer" (`rootWord`, its kind's word in the host's language — PP-D6). */
|
|
8363
|
+
function roleBadgeLabel(role, kindLabel, rootWord) {
|
|
8326
8364
|
const [kind, part] = role.split('.');
|
|
8327
8365
|
if (!SHORT_ROLE_KINDS.has(kind))
|
|
8328
8366
|
return `${kindLabel} · ${role}`;
|
|
8329
|
-
|
|
8367
|
+
if (part)
|
|
8368
|
+
return `${kindLabel} · ${part}`;
|
|
8369
|
+
return rootWord ? `${kindLabel} · ${rootWord}` : kindLabel;
|
|
8330
8370
|
}
|
|
8331
8371
|
/** What a part's row and crumb say after its name: an accordion item names its question ("Item · Do you take
|
|
8332
8372
|
* projects…", board 3), and a tab AND its panel name the tab's words ("Tab · Kitchens", "Panel · Kitchens") — so
|
|
@@ -8511,7 +8551,7 @@ const DIALOG_ACTION_KEYS = {
|
|
|
8511
8551
|
};
|
|
8512
8552
|
const ADD_ITEM_KEY = 'builder.chrome.addItem';
|
|
8513
8553
|
/** The kind label a composite part's selection badge shows (Card v2: "Card · card.title"). */
|
|
8514
|
-
const COMPOSITE_KIND_KEYS = { card: 'builder.chrome.kindCard', accordion: 'builder.chrome.kindAccordion', disclosure: 'builder.chrome.kindDisclosure', tabs: 'builder.chrome.kindTabs', segmented: 'builder.chrome.kindSegmented', slider: 'builder.chrome.kindSlider', nav: 'builder.chrome.kindNav' };
|
|
8554
|
+
const COMPOSITE_KIND_KEYS = { card: 'builder.chrome.kindCard', accordion: 'builder.chrome.kindAccordion', disclosure: 'builder.chrome.kindDisclosure', tabs: 'builder.chrome.kindTabs', segmented: 'builder.chrome.kindSegmented', slider: 'builder.chrome.kindSlider', nav: 'builder.chrome.kindNav', popup: 'builder.chrome.kindPopup' };
|
|
8515
8555
|
/** The interaction chip's trigger word and icon, by the trigger the card reads as (`displayTrigger`). */
|
|
8516
8556
|
const TRIGGER_CHIP_LABELS = {
|
|
8517
8557
|
pageLoad: 'Load', viewportEnter: 'Scroll', click: 'Click',
|
|
@@ -8770,7 +8810,8 @@ class OverlayComponent {
|
|
|
8770
8810
|
get selectedRoleIcon() {
|
|
8771
8811
|
if (this.selectEntry?.node?.type === VIDEO_TYPE && !this.selectEntry.node.role)
|
|
8772
8812
|
return 'ph-fill ph-film-strip';
|
|
8773
|
-
|
|
8813
|
+
const node = this.selectEntry?.node;
|
|
8814
|
+
return `ph-fill ${nodeKindGlyph(node) ?? compositeKindGlyph(node?.role ?? '')}`;
|
|
8774
8815
|
}
|
|
8775
8816
|
/** A composite part's kind + role under the selection (board 3/8 "Selection kind badge"), or null. A Video says
|
|
8776
8817
|
* where it plays from and that the canvas shows its poster only (board 5: "Video · YouTube · poster only"). */
|
|
@@ -8783,7 +8824,10 @@ class OverlayComponent {
|
|
|
8783
8824
|
return null;
|
|
8784
8825
|
const prefix = role.split('.')[0];
|
|
8785
8826
|
const key = COMPOSITE_KIND_KEYS[prefix];
|
|
8786
|
-
|
|
8827
|
+
// A popup's root names its kind ("Popup · Offer", PP-D6).
|
|
8828
|
+
const kind = popupKindOf(node);
|
|
8829
|
+
const kindWord = kind ? this.builderLabels(POPUP_KIND_LABEL_KEYS[kind], BUILDER_CHROME_EN[POPUP_KIND_LABEL_KEYS[kind]]) : null;
|
|
8830
|
+
const badge = roleBadgeLabel(role, key ? this.builderLabels(key, BUILDER_CHROME_EN[key]) : prefix, kindWord);
|
|
8787
8831
|
// A click on a From-content row selected its TEMPLATE part: say which row was clicked (board 3).
|
|
8788
8832
|
const row = this.overlayService.selectedRow;
|
|
8789
8833
|
return row ? `${badge} · ${this.builderLabels(FROM_ROW_KEY, BUILDER_CHROME_EN[FROM_ROW_KEY]).replace('{row}', String(row))}` : badge;
|
|
@@ -9513,7 +9557,7 @@ function walk(nodes, depth, out, ctx, inTemplate, templateOf, ancestors) {
|
|
|
9513
9557
|
const descriptor = rows ? null : (nodeDescriptor(node, label) ?? compositePartSub(node, ancestors));
|
|
9514
9558
|
out.push({
|
|
9515
9559
|
node,
|
|
9516
|
-
icon: bound ? BOUND_ICON : (compositePartIcon(node.role) || ctx.iconOf(node.type) || DEFAULT_ICON),
|
|
9560
|
+
icon: bound ? BOUND_ICON : (compositePartIcon(node.role, node) || ctx.iconOf(node.type) || DEFAULT_ICON),
|
|
9517
9561
|
label,
|
|
9518
9562
|
hiddenAtRest: isHiddenAtRest(node) || (!!ctx.onAtRest && hiddenUntilItemOn(node, ctx.onAtRest)),
|
|
9519
9563
|
depth,
|
|
@@ -9795,6 +9839,11 @@ function crumbLabel(node, ancestors = []) {
|
|
|
9795
9839
|
const sub = compositePartSub(node, ancestors);
|
|
9796
9840
|
return sub ? `${name} · ${sub}` : name;
|
|
9797
9841
|
}
|
|
9842
|
+
/** A composite root's kind glyph (a popup's by its kind — PP-D6), or null. */
|
|
9843
|
+
function crumbIcon(node) {
|
|
9844
|
+
const glyph = nodeKindGlyph(node);
|
|
9845
|
+
return glyph ? `ph-thin ${glyph}` : null;
|
|
9846
|
+
}
|
|
9798
9847
|
/**
|
|
9799
9848
|
* The element path bar — the full ancestor chain of the selected node, clickable,
|
|
9800
9849
|
* plus a badge for each piece of node state that otherwise only surfaces by opening
|
|
@@ -9831,7 +9880,7 @@ class BreadcrumbBarComponent {
|
|
|
9831
9880
|
...nodes.map((node, i) => ({
|
|
9832
9881
|
node,
|
|
9833
9882
|
label: crumbLabel(node, nodes.slice(0, i)),
|
|
9834
|
-
icon:
|
|
9883
|
+
icon: crumbIcon(node),
|
|
9835
9884
|
isCurrent: i === last,
|
|
9836
9885
|
key: node,
|
|
9837
9886
|
})),
|
|
@@ -12716,6 +12765,15 @@ class BuilderDialogComponent {
|
|
|
12716
12765
|
set menuReveal(v) { this.setMenu(MenuTrait.Reveal, v); }
|
|
12717
12766
|
set menuHover(v) { this.setMenu(MenuTrait.Hover, v); }
|
|
12718
12767
|
set menuPhone(v) { this.setMenu(MenuTrait.Phone, v); }
|
|
12768
|
+
/** PU2: the popup's kind and form (composite-core PopupTrait) — a Dialog with no kind is not a popup and draws as before. */
|
|
12769
|
+
set popupKind(v) { this.popupLook = { ...this.popupLook, kind: v }; this.cdr?.markForCheck(); }
|
|
12770
|
+
set popupForm(v) { this.popupLook = { ...this.popupLook, form: v }; this.cdr?.markForCheck(); }
|
|
12771
|
+
/** The form the stage is drawn in (PP-D4) — composite-core `popupFormOf`, the live page's reader: `centred` only for a
|
|
12772
|
+
* newsletter; null when the Dialog is not a popup. */
|
|
12773
|
+
get popupFormValue() {
|
|
12774
|
+
const kind = this.popupLook.kind;
|
|
12775
|
+
return Object.values(PopupKind).includes(kind) ? popupFormOf(kind, this.popupLook.form) : null;
|
|
12776
|
+
}
|
|
12719
12777
|
setMenu(trait, value) {
|
|
12720
12778
|
this.menuLook = { ...this.menuLook, [trait]: value };
|
|
12721
12779
|
this.menuAttrs = menuDialogAttributes(name => this.menuLook[name]);
|
|
@@ -12745,6 +12803,7 @@ class BuilderDialogComponent {
|
|
|
12745
12803
|
this.closeOnBackdrop = true;
|
|
12746
12804
|
this.showCloseButton = true;
|
|
12747
12805
|
this.placement = 'center';
|
|
12806
|
+
this.popupLook = {};
|
|
12748
12807
|
this.menuAttr = MenuAttribute;
|
|
12749
12808
|
/** The attributes the surface wears (a default writes none — R-H4). */
|
|
12750
12809
|
this.menuAttrs = {};
|
|
@@ -12939,8 +12998,9 @@ class BuilderDialogComponent {
|
|
|
12939
12998
|
this.dragEngine.handleDrop(this.children, event, this.dropListId, this.cdr);
|
|
12940
12999
|
}
|
|
12941
13000
|
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 }); }
|
|
12942
|
-
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: `
|
|
13001
|
+
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: `
|
|
12943
13002
|
<div *ngIf="designOpen" #stage class="dialog-stage" [attr.data-placement]="placementValue"
|
|
13003
|
+
[attr.data-popup-form]="popupFormValue"
|
|
12944
13004
|
(click)="onStageClick($event)">
|
|
12945
13005
|
<div #surface [ngClass]="['iox-node-' + nodeId, 'iox-outer-' + nodeId]"
|
|
12946
13006
|
class="dialog-surface"
|
|
@@ -12975,12 +13035,13 @@ class BuilderDialogComponent {
|
|
|
12975
13035
|
</ng-container>
|
|
12976
13036
|
</div>
|
|
12977
13037
|
</div>
|
|
12978
|
-
`, 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"] }] }); }
|
|
13038
|
+
`, 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)}}:host .dialog-stage[data-popup-form]{--popup-pad: var(--iox-popup-inset, 24px)}:host .dialog-stage:is([data-popup-form=corner],[data-popup-form=bar]){background:transparent;animation:none;pointer-events:none;padding:var(--popup-pad);align-items:end}:host .dialog-stage:is([data-popup-form=corner],[data-popup-form=bar]) .dialog-surface{pointer-events:auto}:host .dialog-stage[data-popup-form=corner]{justify-items:right}:host .dialog-stage[data-popup-form=corner] .dialog-surface{--dialog-exit-x: calc(100% + var(--popup-pad));--dialog-exit-y: 0px;min-width:min(360px,100%);max-width:min(560px,100%)}:host .dialog-stage[data-popup-form=bar]{padding:0;justify-items:stretch}:host .dialog-stage[data-popup-form=bar] .dialog-surface{--dialog-exit-x: 0px;--dialog-exit-y: 100%;width:100%;max-width:100%;max-height:64px;border-radius:0}@container iox-canvas (max-width: 767px){:host .dialog-stage[data-popup-form]{--popup-pad: min(var(--iox-popup-inset, 24px), 12px)}:host .dialog-stage[data-popup-form]:not([data-popup-form=bar]){background:transparent;animation:none;pointer-events:none;padding:var(--popup-pad);align-items:end;justify-items:stretch}:host .dialog-stage[data-popup-form]:not([data-popup-form=bar]) .dialog-surface{--dialog-exit-x: 0px;--dialog-exit-y: 24px;pointer-events:auto;width:100%;min-width:0;max-width:none;max-height:30%}:host .dialog-stage[data-popup-form=bar] .dialog-surface{max-height:88px}}: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"] }] }); }
|
|
12979
13039
|
}
|
|
12980
13040
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: BuilderDialogComponent, decorators: [{
|
|
12981
13041
|
type: Component,
|
|
12982
13042
|
args: [{ selector: 'app-builder-dialog', template: `
|
|
12983
13043
|
<div *ngIf="designOpen" #stage class="dialog-stage" [attr.data-placement]="placementValue"
|
|
13044
|
+
[attr.data-popup-form]="popupFormValue"
|
|
12984
13045
|
(click)="onStageClick($event)">
|
|
12985
13046
|
<div #surface [ngClass]="['iox-node-' + nodeId, 'iox-outer-' + nodeId]"
|
|
12986
13047
|
class="dialog-surface"
|
|
@@ -13015,7 +13076,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
13015
13076
|
</ng-container>
|
|
13016
13077
|
</div>
|
|
13017
13078
|
</div>
|
|
13018
|
-
`, 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"] }]
|
|
13079
|
+
`, 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)}}:host .dialog-stage[data-popup-form]{--popup-pad: var(--iox-popup-inset, 24px)}:host .dialog-stage:is([data-popup-form=corner],[data-popup-form=bar]){background:transparent;animation:none;pointer-events:none;padding:var(--popup-pad);align-items:end}:host .dialog-stage:is([data-popup-form=corner],[data-popup-form=bar]) .dialog-surface{pointer-events:auto}:host .dialog-stage[data-popup-form=corner]{justify-items:right}:host .dialog-stage[data-popup-form=corner] .dialog-surface{--dialog-exit-x: calc(100% + var(--popup-pad));--dialog-exit-y: 0px;min-width:min(360px,100%);max-width:min(560px,100%)}:host .dialog-stage[data-popup-form=bar]{padding:0;justify-items:stretch}:host .dialog-stage[data-popup-form=bar] .dialog-surface{--dialog-exit-x: 0px;--dialog-exit-y: 100%;width:100%;max-width:100%;max-height:64px;border-radius:0}@container iox-canvas (max-width: 767px){:host .dialog-stage[data-popup-form]{--popup-pad: min(var(--iox-popup-inset, 24px), 12px)}:host .dialog-stage[data-popup-form]:not([data-popup-form=bar]){background:transparent;animation:none;pointer-events:none;padding:var(--popup-pad);align-items:end;justify-items:stretch}:host .dialog-stage[data-popup-form]:not([data-popup-form=bar]) .dialog-surface{--dialog-exit-x: 0px;--dialog-exit-y: 24px;pointer-events:auto;width:100%;min-width:0;max-width:none;max-height:30%}:host .dialog-stage[data-popup-form=bar] .dialog-surface{max-height:88px}}: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"] }]
|
|
13019
13080
|
}], ctorParameters: () => [{ type: DragEngineService }, { type: i2$1.ComponentInstanceRegistryService }, { type: OverlayService }, { type: i0.ChangeDetectorRef }, { type: CanvasDesignStateService, decorators: [{
|
|
13020
13081
|
type: Optional
|
|
13021
13082
|
}] }, { type: PanelEventService, decorators: [{
|
|
@@ -13042,6 +13103,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
13042
13103
|
type: Input
|
|
13043
13104
|
}], menuPhone: [{
|
|
13044
13105
|
type: Input
|
|
13106
|
+
}], popupKind: [{
|
|
13107
|
+
type: Input
|
|
13108
|
+
}], popupForm: [{
|
|
13109
|
+
type: Input
|
|
13045
13110
|
}], childClick: [{
|
|
13046
13111
|
type: Output
|
|
13047
13112
|
}], childMouseEnter: [{
|