@vectoriox/iox-builder 11.32.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, 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.',
|
|
@@ -2064,6 +2069,48 @@ function buildMenuTraits() {
|
|
|
2064
2069
|
]),
|
|
2065
2070
|
];
|
|
2066
2071
|
}
|
|
2072
|
+
/**
|
|
2073
|
+
* The POPUP's traits (popups-plan.md §9, PU2) — on a Dialog stamped from composite-core `buildPopupRecipe`: its kind, form,
|
|
2074
|
+
* arrival (with its depth / seconds), show-again rule, dates and version, plus the Dialog's own `modal`. Names and values are
|
|
2075
|
+
* composite-core's (`PopupTrait`, the enums the actions-core planner and `popupDialogAttributes` read) — never retyped.
|
|
2076
|
+
* NO default on any of them, `modal` included: a Dialog without `popupKind` is not a popup and saves none, and a Dialog
|
|
2077
|
+
* without `modal` opens modal exactly as before (R-H4). Edited in Bindings ▸ Popup (cms-client), never as generic rows.
|
|
2078
|
+
* `leaving` is not offered until PU2b draws it (a stored one arrives by time — the planner's rule).
|
|
2079
|
+
*/
|
|
2080
|
+
function buildPopupTraits() {
|
|
2081
|
+
return [
|
|
2082
|
+
new TraitConfig(PopupTrait.Kind, 'Popup kind', TraitInputType.Select, [
|
|
2083
|
+
{ label: 'Announcement', value: PopupKind.Announcement },
|
|
2084
|
+
{ label: 'Offer', value: PopupKind.Offer },
|
|
2085
|
+
{ label: 'Newsletter', value: PopupKind.Newsletter },
|
|
2086
|
+
]),
|
|
2087
|
+
new TraitConfig(PopupTrait.Form, 'Popup form', TraitInputType.Select, [
|
|
2088
|
+
{ label: 'Corner', value: PopupForm.Corner },
|
|
2089
|
+
{ label: 'Bar', value: PopupForm.Bar },
|
|
2090
|
+
{ label: 'Centred', value: PopupForm.Centred },
|
|
2091
|
+
]),
|
|
2092
|
+
new TraitConfig(PopupTrait.Arrive, 'Arrives', TraitInputType.Select, [
|
|
2093
|
+
{ label: 'Whichever comes first', value: PopupArrive.ScrollOrTime },
|
|
2094
|
+
{ label: 'After scrolling', value: PopupArrive.Scroll },
|
|
2095
|
+
{ label: 'After a time', value: PopupArrive.Time },
|
|
2096
|
+
{ label: 'When leaving (laptop)', value: PopupArrive.Leaving },
|
|
2097
|
+
{ label: 'Only from a button', value: PopupArrive.Button },
|
|
2098
|
+
]),
|
|
2099
|
+
new TraitConfig(PopupTrait.Screens, 'Scrolled (screens)', TraitInputType.Number),
|
|
2100
|
+
new TraitConfig(PopupTrait.PageShare, 'Scrolled (share of the page)', TraitInputType.Number),
|
|
2101
|
+
new TraitConfig(PopupTrait.Seconds, 'Seconds on the page', TraitInputType.Number),
|
|
2102
|
+
new TraitConfig(PopupTrait.Again, 'Show again', TraitInputType.Select, [
|
|
2103
|
+
{ label: 'After some days', value: PopupAgain.Days },
|
|
2104
|
+
{ label: 'Each visit', value: PopupAgain.Visit },
|
|
2105
|
+
{ label: 'Once', value: PopupAgain.Once },
|
|
2106
|
+
]),
|
|
2107
|
+
new TraitConfig(PopupTrait.Days, 'Days', TraitInputType.Number),
|
|
2108
|
+
new TraitConfig(PopupTrait.ShowFrom, 'Show from', TraitInputType.Text),
|
|
2109
|
+
new TraitConfig(PopupTrait.ShowUntil, 'Show until', TraitInputType.Text),
|
|
2110
|
+
new TraitConfig(PopupTrait.Version, 'Popup version', TraitInputType.Number),
|
|
2111
|
+
new TraitConfig(DIALOG_MODAL_TRAIT, 'Modal', TraitInputType.Checkbox),
|
|
2112
|
+
];
|
|
2113
|
+
}
|
|
2067
2114
|
/** How the menu button (and the menu's Close, the same button open) is drawn (HI2a) — on a ButtonBlock. No default. */
|
|
2068
2115
|
function buildMenuButtonTraits() {
|
|
2069
2116
|
return [
|
|
@@ -8229,14 +8276,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
8229
8276
|
* An accordion's and a disclosure's parts are named by the part alone (`trigger`, "Accordion · trigger", board 3);
|
|
8230
8277
|
* a card keeps its full role (`card.title`, "Card · card.title", board 8).
|
|
8231
8278
|
*/
|
|
8232
|
-
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]);
|
|
8233
8280
|
/** A composite kind's glyph (Phosphor, weight-less): the badge, the root's crumb and its tree row carry it
|
|
8234
8281
|
* (board 3: "the composite root carrying its kind icon"). A card keeps the generic stack glyph. */
|
|
8235
8282
|
const KIND_GLYPHS = {
|
|
8236
8283
|
[CompositeKind.Accordion]: 'ph-rows', [CompositeKind.Disclosure]: 'ph-caret-circle-down', [CompositeKind.Tabs]: 'ph-tabs', [CompositeKind.Segmented]: 'ph-pill',
|
|
8237
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',
|
|
8238
8287
|
};
|
|
8239
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
|
+
}
|
|
8240
8315
|
/** The tree icon of an accordion's structural parts (board 3): rows on the root, a stack on an item and a
|
|
8241
8316
|
* panel, a cursor on the header, a sparkle on the icon. Other parts keep their type's icon. */
|
|
8242
8317
|
const PART_ICONS = {
|
|
@@ -8272,7 +8347,10 @@ function compositeKindGlyph(role) {
|
|
|
8272
8347
|
return KIND_GLYPHS[role.split('.')[0]] ?? DEFAULT_KIND_GLYPH;
|
|
8273
8348
|
}
|
|
8274
8349
|
/** A composite part's own tree icon, or null to keep its type's. */
|
|
8275
|
-
function compositePartIcon(role) {
|
|
8350
|
+
function compositePartIcon(role, node) {
|
|
8351
|
+
const kind = popupKindOf(node);
|
|
8352
|
+
if (kind)
|
|
8353
|
+
return `ph-thin ${POPUP_KIND_GLYPHS[kind]}`;
|
|
8276
8354
|
return (role && PART_ICONS[role]) || null;
|
|
8277
8355
|
}
|
|
8278
8356
|
/** The role chip: `trigger` for an accordion's header, `card.title` for a card's title. */
|
|
@@ -8280,12 +8358,15 @@ function roleChipLabel(role) {
|
|
|
8280
8358
|
const [kind, part] = role.split('.');
|
|
8281
8359
|
return SHORT_ROLE_KINDS.has(kind) ? (part ?? kind) : role;
|
|
8282
8360
|
}
|
|
8283
|
-
/** The selection's kind badge: "Accordion" on the root, "Accordion · trigger" on a part, "Card · card.title"
|
|
8284
|
-
|
|
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) {
|
|
8285
8364
|
const [kind, part] = role.split('.');
|
|
8286
8365
|
if (!SHORT_ROLE_KINDS.has(kind))
|
|
8287
8366
|
return `${kindLabel} · ${role}`;
|
|
8288
|
-
|
|
8367
|
+
if (part)
|
|
8368
|
+
return `${kindLabel} · ${part}`;
|
|
8369
|
+
return rootWord ? `${kindLabel} · ${rootWord}` : kindLabel;
|
|
8289
8370
|
}
|
|
8290
8371
|
/** What a part's row and crumb say after its name: an accordion item names its question ("Item · Do you take
|
|
8291
8372
|
* projects…", board 3), and a tab AND its panel name the tab's words ("Tab · Kitchens", "Panel · Kitchens") — so
|
|
@@ -8470,7 +8551,7 @@ const DIALOG_ACTION_KEYS = {
|
|
|
8470
8551
|
};
|
|
8471
8552
|
const ADD_ITEM_KEY = 'builder.chrome.addItem';
|
|
8472
8553
|
/** The kind label a composite part's selection badge shows (Card v2: "Card · card.title"). */
|
|
8473
|
-
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' };
|
|
8474
8555
|
/** The interaction chip's trigger word and icon, by the trigger the card reads as (`displayTrigger`). */
|
|
8475
8556
|
const TRIGGER_CHIP_LABELS = {
|
|
8476
8557
|
pageLoad: 'Load', viewportEnter: 'Scroll', click: 'Click',
|
|
@@ -8729,7 +8810,8 @@ class OverlayComponent {
|
|
|
8729
8810
|
get selectedRoleIcon() {
|
|
8730
8811
|
if (this.selectEntry?.node?.type === VIDEO_TYPE && !this.selectEntry.node.role)
|
|
8731
8812
|
return 'ph-fill ph-film-strip';
|
|
8732
|
-
|
|
8813
|
+
const node = this.selectEntry?.node;
|
|
8814
|
+
return `ph-fill ${nodeKindGlyph(node) ?? compositeKindGlyph(node?.role ?? '')}`;
|
|
8733
8815
|
}
|
|
8734
8816
|
/** A composite part's kind + role under the selection (board 3/8 "Selection kind badge"), or null. A Video says
|
|
8735
8817
|
* where it plays from and that the canvas shows its poster only (board 5: "Video · YouTube · poster only"). */
|
|
@@ -8742,7 +8824,10 @@ class OverlayComponent {
|
|
|
8742
8824
|
return null;
|
|
8743
8825
|
const prefix = role.split('.')[0];
|
|
8744
8826
|
const key = COMPOSITE_KIND_KEYS[prefix];
|
|
8745
|
-
|
|
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);
|
|
8746
8831
|
// A click on a From-content row selected its TEMPLATE part: say which row was clicked (board 3).
|
|
8747
8832
|
const row = this.overlayService.selectedRow;
|
|
8748
8833
|
return row ? `${badge} · ${this.builderLabels(FROM_ROW_KEY, BUILDER_CHROME_EN[FROM_ROW_KEY]).replace('{row}', String(row))}` : badge;
|
|
@@ -9472,7 +9557,7 @@ function walk(nodes, depth, out, ctx, inTemplate, templateOf, ancestors) {
|
|
|
9472
9557
|
const descriptor = rows ? null : (nodeDescriptor(node, label) ?? compositePartSub(node, ancestors));
|
|
9473
9558
|
out.push({
|
|
9474
9559
|
node,
|
|
9475
|
-
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),
|
|
9476
9561
|
label,
|
|
9477
9562
|
hiddenAtRest: isHiddenAtRest(node) || (!!ctx.onAtRest && hiddenUntilItemOn(node, ctx.onAtRest)),
|
|
9478
9563
|
depth,
|
|
@@ -9754,6 +9839,11 @@ function crumbLabel(node, ancestors = []) {
|
|
|
9754
9839
|
const sub = compositePartSub(node, ancestors);
|
|
9755
9840
|
return sub ? `${name} · ${sub}` : name;
|
|
9756
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
|
+
}
|
|
9757
9847
|
/**
|
|
9758
9848
|
* The element path bar — the full ancestor chain of the selected node, clickable,
|
|
9759
9849
|
* plus a badge for each piece of node state that otherwise only surfaces by opening
|
|
@@ -9790,7 +9880,7 @@ class BreadcrumbBarComponent {
|
|
|
9790
9880
|
...nodes.map((node, i) => ({
|
|
9791
9881
|
node,
|
|
9792
9882
|
label: crumbLabel(node, nodes.slice(0, i)),
|
|
9793
|
-
icon:
|
|
9883
|
+
icon: crumbIcon(node),
|
|
9794
9884
|
isCurrent: i === last,
|
|
9795
9885
|
key: node,
|
|
9796
9886
|
})),
|
|
@@ -12675,6 +12765,15 @@ class BuilderDialogComponent {
|
|
|
12675
12765
|
set menuReveal(v) { this.setMenu(MenuTrait.Reveal, v); }
|
|
12676
12766
|
set menuHover(v) { this.setMenu(MenuTrait.Hover, v); }
|
|
12677
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
|
+
}
|
|
12678
12777
|
setMenu(trait, value) {
|
|
12679
12778
|
this.menuLook = { ...this.menuLook, [trait]: value };
|
|
12680
12779
|
this.menuAttrs = menuDialogAttributes(name => this.menuLook[name]);
|
|
@@ -12704,6 +12803,7 @@ class BuilderDialogComponent {
|
|
|
12704
12803
|
this.closeOnBackdrop = true;
|
|
12705
12804
|
this.showCloseButton = true;
|
|
12706
12805
|
this.placement = 'center';
|
|
12806
|
+
this.popupLook = {};
|
|
12707
12807
|
this.menuAttr = MenuAttribute;
|
|
12708
12808
|
/** The attributes the surface wears (a default writes none — R-H4). */
|
|
12709
12809
|
this.menuAttrs = {};
|
|
@@ -12898,8 +12998,9 @@ class BuilderDialogComponent {
|
|
|
12898
12998
|
this.dragEngine.handleDrop(this.children, event, this.dropListId, this.cdr);
|
|
12899
12999
|
}
|
|
12900
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 }); }
|
|
12901
|
-
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: `
|
|
12902
13002
|
<div *ngIf="designOpen" #stage class="dialog-stage" [attr.data-placement]="placementValue"
|
|
13003
|
+
[attr.data-popup-form]="popupFormValue"
|
|
12903
13004
|
(click)="onStageClick($event)">
|
|
12904
13005
|
<div #surface [ngClass]="['iox-node-' + nodeId, 'iox-outer-' + nodeId]"
|
|
12905
13006
|
class="dialog-surface"
|
|
@@ -12934,12 +13035,13 @@ class BuilderDialogComponent {
|
|
|
12934
13035
|
</ng-container>
|
|
12935
13036
|
</div>
|
|
12936
13037
|
</div>
|
|
12937
|
-
`, 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"] }] }); }
|
|
12938
13039
|
}
|
|
12939
13040
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: BuilderDialogComponent, decorators: [{
|
|
12940
13041
|
type: Component,
|
|
12941
13042
|
args: [{ selector: 'app-builder-dialog', template: `
|
|
12942
13043
|
<div *ngIf="designOpen" #stage class="dialog-stage" [attr.data-placement]="placementValue"
|
|
13044
|
+
[attr.data-popup-form]="popupFormValue"
|
|
12943
13045
|
(click)="onStageClick($event)">
|
|
12944
13046
|
<div #surface [ngClass]="['iox-node-' + nodeId, 'iox-outer-' + nodeId]"
|
|
12945
13047
|
class="dialog-surface"
|
|
@@ -12974,7 +13076,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
12974
13076
|
</ng-container>
|
|
12975
13077
|
</div>
|
|
12976
13078
|
</div>
|
|
12977
|
-
`, 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"] }]
|
|
12978
13080
|
}], ctorParameters: () => [{ type: DragEngineService }, { type: i2$1.ComponentInstanceRegistryService }, { type: OverlayService }, { type: i0.ChangeDetectorRef }, { type: CanvasDesignStateService, decorators: [{
|
|
12979
13081
|
type: Optional
|
|
12980
13082
|
}] }, { type: PanelEventService, decorators: [{
|
|
@@ -13001,6 +13103,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
|
|
|
13001
13103
|
type: Input
|
|
13002
13104
|
}], menuPhone: [{
|
|
13003
13105
|
type: Input
|
|
13106
|
+
}], popupKind: [{
|
|
13107
|
+
type: Input
|
|
13108
|
+
}], popupForm: [{
|
|
13109
|
+
type: Input
|
|
13004
13110
|
}], childClick: [{
|
|
13005
13111
|
type: Output
|
|
13006
13112
|
}], childMouseEnter: [{
|
|
@@ -15270,6 +15376,18 @@ class DialogComponentConfig extends ComponentConfig {
|
|
|
15270
15376
|
menuReveal: 'select',
|
|
15271
15377
|
menuHover: 'select',
|
|
15272
15378
|
menuPhone: 'select',
|
|
15379
|
+
popupKind: 'select',
|
|
15380
|
+
popupForm: 'select',
|
|
15381
|
+
popupArrive: 'select',
|
|
15382
|
+
popupScreens: 'number',
|
|
15383
|
+
popupPageShare: 'number',
|
|
15384
|
+
popupSeconds: 'number',
|
|
15385
|
+
popupAgain: 'select',
|
|
15386
|
+
popupDays: 'number',
|
|
15387
|
+
popupFrom: 'text',
|
|
15388
|
+
popupUntil: 'text',
|
|
15389
|
+
popupVersion: 'number',
|
|
15390
|
+
modal: 'checkbox',
|
|
15273
15391
|
};
|
|
15274
15392
|
this.traits = [
|
|
15275
15393
|
// A5: "Centre modal · bottom bar · side sheet — placement is a style choice."
|
|
@@ -15285,6 +15403,9 @@ class DialogComponentConfig extends ComponentConfig {
|
|
|
15285
15403
|
buildColorSchemeTrait(),
|
|
15286
15404
|
// HI2a: the navigation's drawer as a MENU — form, reveal, hover, phone form (no default: R-H4).
|
|
15287
15405
|
...buildMenuTraits(),
|
|
15406
|
+
// PU2: a POPUP (composite-core buildPopupRecipe) — kind · form · arrival · show again · dates · version, and the
|
|
15407
|
+
// Dialog's own `modal` (absent = modal). No default on any (R-H4); Bindings ▸ Popup edits them.
|
|
15408
|
+
...buildPopupTraits(),
|
|
15288
15409
|
];
|
|
15289
15410
|
this.styleTraits = buildFullStyleTraits();
|
|
15290
15411
|
this.applyStyleDefaults({
|
|
@@ -16107,11 +16228,16 @@ class RepeaterComponentConfig extends ComponentConfig {
|
|
|
16107
16228
|
* `stampOpeningMix`, read by Bindings ▸ Opening and the Opening studio; no renderer reads it. A trait, so a saved
|
|
16108
16229
|
* opening keeps it through the builder's load and save (as the header's `headerMix`). */
|
|
16109
16230
|
const OPENING_MIX_TRAIT = 'openingMix';
|
|
16231
|
+
/** AW12: the mix a composed footer was composed as — design-core `FOOTER_MIX_PROP`, written by generation-core
|
|
16232
|
+
* `stampFooterMix`; the canvas and both engine paths draw its words from the classes it becomes (`footerMixClasses`). A
|
|
16233
|
+
* trait, so a saved footer keeps it through the builder's load and save; no default, so a plain Section saves nothing new. */
|
|
16234
|
+
const FOOTER_MIX_TRAIT = 'footerMix';
|
|
16110
16235
|
class SectionComponentConfig extends ComponentConfig {
|
|
16111
16236
|
constructor() {
|
|
16112
16237
|
super('Section', 'app-section', 'ph-thin ph-rows', 'Layout');
|
|
16113
16238
|
this.children = [];
|
|
16114
|
-
this.traits = [buildColorSchemeTrait(), new TraitConfig(OPENING_MIX_TRAIT, 'Opening mix', TraitInputType.Text),
|
|
16239
|
+
this.traits = [buildColorSchemeTrait(), new TraitConfig(OPENING_MIX_TRAIT, 'Opening mix', TraitInputType.Text),
|
|
16240
|
+
new TraitConfig(FOOTER_MIX_TRAIT, 'Footer mix', TraitInputType.Text), ...buildSectionEdgeTraits()];
|
|
16115
16241
|
this.styleTraits = buildFullStyleTraits();
|
|
16116
16242
|
this.applyStyleDefaults({
|
|
16117
16243
|
width: 'auto',
|
|
@@ -16316,5 +16442,5 @@ class BuilderSpacerComponentConfig extends ComponentConfig {
|
|
|
16316
16442
|
* Generated bundle index. Do not edit.
|
|
16317
16443
|
*/
|
|
16318
16444
|
|
|
16319
|
-
export { ACTION_TYPE_OPTIONS, AuditCode, AuditPanelComponent, AuditSeverity, BODY_CRUMB_LABEL, BOUND_ICON, BREAKPOINT_PRESENTATION, BUILDER_CANVAS_CONTAINER, BUILDER_CHROME_EN, BUILDER_FONT_LINK_ATTR, BUILDER_TOKEN_SCOPE_CLASS, BackgroundGroupStyleConfig, BorderGroupStyleConfig, BreadcrumbBarComponent, BuilderButtonBlockComponent, BuilderButtonComponentConfig, BuilderClipboardService, BuilderComponent, BuilderContainerComponent, BuilderContainerComponentConfig, BuilderDataSourceService, BuilderDialogComponent, BuilderDividerComponentConfig, BuilderHeadingComponentConfig, BuilderHistoryService, BuilderIconComponentConfig, BuilderImageComponentConfig, BuilderLinkComponentConfig, BuilderLinkedContainerComponent, BuilderLinkedContainerConfig, BuilderListComponentConfig, BuilderListItemComponentConfig, BuilderMode, BuilderPopoverComponent, BuilderRepeaterComponent, BuilderSpacerComponentConfig, BusinessSpecimenView, ButtonBlockComponentConfig, CANVAS_EMPTY_IMAGE_LABEL_EN, CANVAS_EMPTY_IMAGE_LABEL_KEY, CANVAS_ROOT_RESET_CSS, CANVAS_TOKEN_SCOPE, COMPOSITE_PRESETS, CanvasDesignStateService, CanvasShowState, CardComponentConfig, ChildLayoutGroupStyleConfig, ComponentConfig, ComponentRegistryService, CompositeCanvasService, CompositePaletteGroup, CompositePresetId, DEFAULT_ESSENTIAL_TRAITS, DESCRIPTOR_MAX_LENGTH, DRAG_HANDLE_ATTR, DROP_REFUSED_CLASS, DataSourceRegistryService, DataSourceType, DialogComponentConfig, DimensionsGroupStyleConfig, DragEngineService, EASING_OPTIONS, EDITOR_CHROME_ATTRIBUTE, ESSENTIAL_TRAITS_BY_TYPE, EffectsGroupStyleConfig, FIELD_KIND_PRESETS, FIELD_PARTS, FORM_STATE_BLOCK_TYPES, FORM_TYPE, FieldComponentConfig, FieldGroupComponentConfig, FieldTrait, FormComponentConfig, FormErrorComponentConfig, FormStateService, FormSuccessComponentConfig, GLOBALS_AFTER_CLASS, GalleryConfig, GlobalCanvasLayer, GroupStyleConfig, HIDDEN_AT_REST_LABEL_KEY, HIDDEN_AT_REST_ROLES, HIDDEN_AT_REST_TYPES, INSERT_REFUSAL_LABEL_KEYS, INTERACTION_STATES, INVERSE_ACTION, IOX_BUILDER_CANVAS, IOX_BUILDER_LABELS, IOX_CONTENT_TYPE_LABELS, IOX_DATA_SOURCE_ENDPOINTS, IOX_RENDER_DISPLAY_ONLY, InsertRefusal, InteractionEngineService, InteractionPresetRegistryService, IoxBuilderModule, IoxDraggableDirective, IoxDropzoneDirective, LAYOUT_PRESETS, LIST_MIX_TRAIT, LayerTreeComponent, LayoutGroupStyleConfig, ListGroupStyleConfig, NodeAction, OPENING_MIX_TRAIT, OverlayComponent, OverlayService, PAGE_TRANSITION_EASING_OPTIONS, PALETTE_PRESET_DEFS, POPOVER_PLACEMENT_OPTIONS, POPOVER_SHEET_MAX_WIDTH, PanelChildComponent, PanelComponent, PanelEventService, PanelEventTypes, PanelTypes, PhoneMenuOpenerAction, PopoverComponentConfig, PositionGroupStyleConfig, PresetRegistryService, RELATIONAL_STATES, RELATIONAL_STATE_BASE, REPEATER_SOURCE_PROP, REPEATER_TYPE, REVEALED_WHILE_SELECTED_ROLES, ROOT_ESCAPE_PX, ROUTE_ANIMATION_OPTIONS, RenderDirective, RepeaterComponentConfig, RootZone, SCREEN_WIDTH_OPTIONS, SENT_LABEL_TRAIT, SILENT_REFUSALS, SLIDER_CREATIVE_PRESET_TRAIT, STRUCTURAL_STATES, SUPPORTED_STATES, SceneCanvasService, SectionComponent, SectionComponentConfig, SelectionReveal, SizeGroupStyleConfig, SliderContainerComponent, SliderContainerConfig, SliderSlideComponent, SliderSlideConfig, SpacingGroupStyleConfig, StructureFix, StyleCategory, StyleRegistryService, TraitConfig as StyleTraitConfig, SubmitButtonComponentConfig, SymbolRegistryService, TARGETED_STATES, TARGETED_STATE_BASE, TOGGLE_PART_ROLES, TRIGGER_OPTIONS, TextBlockComponentConfig, ToolbarAction, ToolbarComponent, TraitConfig, TraitInputType, TypographyGroupStyleConfig, UNITS_ALL, UNITS_DEG, UNITS_FIXED, UNITS_NO_VW, VALIDATION_STATES, VALIDATION_STATE_CLASS, VideoConfig, ViewportService, ZOOM_OPTIONS, addFormChannel, arrayItemSchemaFields, arraySchemaFields, auditNodes, bindingLabel, bindingLabels, buildBusinessSpecimen, buildCompositePreset, buildConsentPreset, buildElementStyleSpecimen, buildFieldKindPreset, buildFlavorSpecimen, buildFormActionsRow, buildFormChannel, buildFormPreset, buildFullStyleTraits, buildLayoutPreset, buildPalettePreset, buildPresetStyleTraits, builderCompositeFactory, canFluidise, canvasEmptyImageLabel, canvasFloatingContainer, canvasHostDisplay, collapseColumnsProps, columnCountOf, compositeStructureFindings, defaultBuilderLabels, defaultPageSettings, deleteTabPair, displayTrigger, displayTriggerOf, dropChildren, dropSectionStamps, dropTargetLabel, duplicateTabPair, escapesRoot, essentialTraitsFor, findNodeByIdInEither, findNodeLocation, findParentOf, flattenLayerTree, flattenSchemaFields, fluidiseProps, followsScroll, formChannelOf, generateNodeId, globalCanvasLayer, hiddenAtBase, hiddenUntilItemOn, inPhoneMenuContext, insertRefusal, insertRefusalLabel, interactionTargets, isDisplayOnlyNode, isHiddenAt, isHiddenAtRest, isPhoneMenuOpener, isPinnedGlobal, isReadingBar, isSpecimen, itemsOnAtRest, markSpecimen, matchesControlSearch, nearestFormNode, neverShown, nodeAncestorPath, nodeAncestorPathInEither, nodeDescriptor, nodeStyleMap, overlayGlobals, pathToNode, phoneMenuOf, phoneMenuShowsAt, refreshSubtree, regenerateNodeIds, removalRefusal, reorderProps, repeaterSourceAlias, repeaterSubLabel, resolveInsertTarget, resolveTraitControllerType, resolveTraitOptions, retypeNode, rootEscapeBand, rootZone, selectionRevealOf, setChannelAddress, setOverlayPreview, setStyleTrait, setTrait, shortDescriptor, showCanvasToast, shownBeforeControl, sourceContentType, sourceTypeLabel, stackChildrenProps, summarise, syncEmptyImagePlaceholder, syncNodeDesign, syncNodeInputs, tabPairLabel, tabsRootForPart, textNode, upsertNodeStyles, visibilityProps, walkNodes, wrapNode };
|
|
16445
|
+
export { ACTION_TYPE_OPTIONS, AuditCode, AuditPanelComponent, AuditSeverity, BODY_CRUMB_LABEL, BOUND_ICON, BREAKPOINT_PRESENTATION, BUILDER_CANVAS_CONTAINER, BUILDER_CHROME_EN, BUILDER_FONT_LINK_ATTR, BUILDER_TOKEN_SCOPE_CLASS, BackgroundGroupStyleConfig, BorderGroupStyleConfig, BreadcrumbBarComponent, BuilderButtonBlockComponent, BuilderButtonComponentConfig, BuilderClipboardService, BuilderComponent, BuilderContainerComponent, BuilderContainerComponentConfig, BuilderDataSourceService, BuilderDialogComponent, BuilderDividerComponentConfig, BuilderHeadingComponentConfig, BuilderHistoryService, BuilderIconComponentConfig, BuilderImageComponentConfig, BuilderLinkComponentConfig, BuilderLinkedContainerComponent, BuilderLinkedContainerConfig, BuilderListComponentConfig, BuilderListItemComponentConfig, BuilderMode, BuilderPopoverComponent, BuilderRepeaterComponent, BuilderSpacerComponentConfig, BusinessSpecimenView, ButtonBlockComponentConfig, CANVAS_EMPTY_IMAGE_LABEL_EN, CANVAS_EMPTY_IMAGE_LABEL_KEY, CANVAS_ROOT_RESET_CSS, CANVAS_TOKEN_SCOPE, COMPOSITE_PRESETS, CanvasDesignStateService, CanvasShowState, CardComponentConfig, ChildLayoutGroupStyleConfig, ComponentConfig, ComponentRegistryService, CompositeCanvasService, CompositePaletteGroup, CompositePresetId, DEFAULT_ESSENTIAL_TRAITS, DESCRIPTOR_MAX_LENGTH, DRAG_HANDLE_ATTR, DROP_REFUSED_CLASS, DataSourceRegistryService, DataSourceType, DialogComponentConfig, DimensionsGroupStyleConfig, DragEngineService, EASING_OPTIONS, EDITOR_CHROME_ATTRIBUTE, ESSENTIAL_TRAITS_BY_TYPE, EffectsGroupStyleConfig, FIELD_KIND_PRESETS, FIELD_PARTS, FOOTER_MIX_TRAIT, FORM_STATE_BLOCK_TYPES, FORM_TYPE, FieldComponentConfig, FieldGroupComponentConfig, FieldTrait, FormComponentConfig, FormErrorComponentConfig, FormStateService, FormSuccessComponentConfig, GLOBALS_AFTER_CLASS, GalleryConfig, GlobalCanvasLayer, GroupStyleConfig, HIDDEN_AT_REST_LABEL_KEY, HIDDEN_AT_REST_ROLES, HIDDEN_AT_REST_TYPES, INSERT_REFUSAL_LABEL_KEYS, INTERACTION_STATES, INVERSE_ACTION, IOX_BUILDER_CANVAS, IOX_BUILDER_LABELS, IOX_CONTENT_TYPE_LABELS, IOX_DATA_SOURCE_ENDPOINTS, IOX_RENDER_DISPLAY_ONLY, InsertRefusal, InteractionEngineService, InteractionPresetRegistryService, IoxBuilderModule, IoxDraggableDirective, IoxDropzoneDirective, LAYOUT_PRESETS, LIST_MIX_TRAIT, LayerTreeComponent, LayoutGroupStyleConfig, ListGroupStyleConfig, NodeAction, OPENING_MIX_TRAIT, OverlayComponent, OverlayService, PAGE_TRANSITION_EASING_OPTIONS, PALETTE_PRESET_DEFS, POPOVER_PLACEMENT_OPTIONS, POPOVER_SHEET_MAX_WIDTH, PanelChildComponent, PanelComponent, PanelEventService, PanelEventTypes, PanelTypes, PhoneMenuOpenerAction, PopoverComponentConfig, PositionGroupStyleConfig, PresetRegistryService, RELATIONAL_STATES, RELATIONAL_STATE_BASE, REPEATER_SOURCE_PROP, REPEATER_TYPE, REVEALED_WHILE_SELECTED_ROLES, ROOT_ESCAPE_PX, ROUTE_ANIMATION_OPTIONS, RenderDirective, RepeaterComponentConfig, RootZone, SCREEN_WIDTH_OPTIONS, SENT_LABEL_TRAIT, SILENT_REFUSALS, SLIDER_CREATIVE_PRESET_TRAIT, STRUCTURAL_STATES, SUPPORTED_STATES, SceneCanvasService, SectionComponent, SectionComponentConfig, SelectionReveal, SizeGroupStyleConfig, SliderContainerComponent, SliderContainerConfig, SliderSlideComponent, SliderSlideConfig, SpacingGroupStyleConfig, StructureFix, StyleCategory, StyleRegistryService, TraitConfig as StyleTraitConfig, SubmitButtonComponentConfig, SymbolRegistryService, TARGETED_STATES, TARGETED_STATE_BASE, TOGGLE_PART_ROLES, TRIGGER_OPTIONS, TextBlockComponentConfig, ToolbarAction, ToolbarComponent, TraitConfig, TraitInputType, TypographyGroupStyleConfig, UNITS_ALL, UNITS_DEG, UNITS_FIXED, UNITS_NO_VW, VALIDATION_STATES, VALIDATION_STATE_CLASS, VideoConfig, ViewportService, ZOOM_OPTIONS, addFormChannel, arrayItemSchemaFields, arraySchemaFields, auditNodes, bindingLabel, bindingLabels, buildBusinessSpecimen, buildCompositePreset, buildConsentPreset, buildElementStyleSpecimen, buildFieldKindPreset, buildFlavorSpecimen, buildFormActionsRow, buildFormChannel, buildFormPreset, buildFullStyleTraits, buildLayoutPreset, buildPalettePreset, buildPresetStyleTraits, builderCompositeFactory, canFluidise, canvasEmptyImageLabel, canvasFloatingContainer, canvasHostDisplay, collapseColumnsProps, columnCountOf, compositeStructureFindings, defaultBuilderLabels, defaultPageSettings, deleteTabPair, displayTrigger, displayTriggerOf, dropChildren, dropSectionStamps, dropTargetLabel, duplicateTabPair, escapesRoot, essentialTraitsFor, findNodeByIdInEither, findNodeLocation, findParentOf, flattenLayerTree, flattenSchemaFields, fluidiseProps, followsScroll, formChannelOf, generateNodeId, globalCanvasLayer, hiddenAtBase, hiddenUntilItemOn, inPhoneMenuContext, insertRefusal, insertRefusalLabel, interactionTargets, isDisplayOnlyNode, isHiddenAt, isHiddenAtRest, isPhoneMenuOpener, isPinnedGlobal, isReadingBar, isSpecimen, itemsOnAtRest, markSpecimen, matchesControlSearch, nearestFormNode, neverShown, nodeAncestorPath, nodeAncestorPathInEither, nodeDescriptor, nodeStyleMap, overlayGlobals, pathToNode, phoneMenuOf, phoneMenuShowsAt, refreshSubtree, regenerateNodeIds, removalRefusal, reorderProps, repeaterSourceAlias, repeaterSubLabel, resolveInsertTarget, resolveTraitControllerType, resolveTraitOptions, retypeNode, rootEscapeBand, rootZone, selectionRevealOf, setChannelAddress, setOverlayPreview, setStyleTrait, setTrait, shortDescriptor, showCanvasToast, shownBeforeControl, sourceContentType, sourceTypeLabel, stackChildrenProps, summarise, syncEmptyImagePlaceholder, syncNodeDesign, syncNodeInputs, tabPairLabel, tabsRootForPart, textNode, upsertNodeStyles, visibilityProps, walkNodes, wrapNode };
|
|
16320
16446
|
//# sourceMappingURL=vectoriox-iox-builder.mjs.map
|