@vectoriox/iox-builder 11.44.0 → 11.46.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.
@@ -17,18 +17,18 @@ import { TooltipModule } from 'primeng/tooltip';
17
17
  import * as i20 from 'primeng/dialog';
18
18
  import { DialogModule } from 'primeng/dialog';
19
19
  import * as i2$1 from '@vectoriox/iox-ui';
20
- import { Breakpoint, setOverride, nodeCssId, needsGroupName, resolveBoundValue, isBoundStyleProp, applyBoundStyle, safeSetInput, STRUCTURAL_STATES as STRUCTURAL_STATES$1, VALIDATION_STATES as VALIDATION_STATES$1, VALIDATION_STATE_CLASS as VALIDATION_STATE_CLASS$1, DEFAULT_WIDTH_BY_TYPE, TEXT_DIRECTION_KEY, TEXT_ALIGN_KEY, TextAlign, COLOR_SCHEME_TRAIT, COLOR_SCHEMES, ColorScheme, LinkType, MAX_LINES_KEY, A11yTrait, BREAKPOINTS, withSchemeInk, stripSuppressedProps, DeclarationContext, planPartRule, gateHoverRule, planResponsiveRules, resolveStyleProps, planStateRule, splitOuterProps, OUTER_STYLE_PROPS, siteColumnOf, compileTokenCssBlocks, catalogFontId, fontsForTokens, GOOGLE_FONTS_FILE_ORIGIN, googleFontHref, compileDeclarations, isLastEmittedStateKey, wrapInBreakpointQuery, BreakpointQueryKind, NEW_NODE_STYLE_DEFAULTS, defaultElementStyleFor, applyElementStyle, planDataSource, dataSourcePlanToRequest, normalizeCollectionResult, resolveRepeaterItems, getByPath, computeRelative, PROGRESS_ATTRIBUTE, interactionMarkerAttributes, cascadeChain, attachScrollProgress, ContextStore, ENTRANCE_ACTION_TYPES, EXIT_ACTION_TYPES, ComponentInstanceRegistryService, syncInteractionMarkers, entranceStartsHidden, isActionEnabled, restoreCountUp, SCROLL_PROGRESS_TRIGGER, armInteractionCounts, splitPressFeedback, isHoverPointer, isContextAction, contextActionEffect, resolveContextValue, effectiveActionType, INTERACTION_HIDDEN_ATTRIBUTE, COUNT_UP_ACTION, motionAllowed, reducedEntranceRun, settleInteraction, settleModeFor, SettleMode, playInteraction, entranceDelay, repeatedRowIndex, resolveInteractionEasing, entrancePreStateStyle, buildInteractionKeyframes, showToast, IS_PREVIEW, declaredInputNames, emptyImagePlaceholder, syncNodeDesignClasses, nodeTraitValue, syncNodeA11yAttributes, nodeA11yAttributes, colorSchemeOf, withStateTransitions, composeVirtualTraits, stateNamesIn, partClassName, applyBoundStyles, switchElementStyle, releaseElementStyle, countOverrides, breakpointDef, breakpointForWidth, FormRenderState, collectContextSlotKeys, withContextSlots, needsAccessibleName, resolveInputs, setInputOverride, barReserveClass, groundHeadersIn, watchHeaderHeight, compilePageStyle, nodeUsesContext, attachTooltips, showToastDesign, TOOLTIP_ATTRIBUTE, hidingHeadersIn, HeaderRuntime, inkFollowingHeadersIn, HeaderInkRuntime, isScrolled, SCROLLED_ATTRIBUTE, syncSubmitButtons, buttonBlockHref, pageLanguageOf, layerFrame, rectInLayer, placeFloating, FloatingAlign, popoverSide, bootSlider, IoxPageModule, PALETTE_PRESETS, elementStyleById, PART_CLASS_NAMES } from '@vectoriox/iox-ui';
20
+ import { Breakpoint, setOverride, nodeCssId, needsGroupName, resolveBoundValue, isBoundStyleProp, applyBoundStyle, safeSetInput, STRUCTURAL_STATES as STRUCTURAL_STATES$1, VALIDATION_STATES as VALIDATION_STATES$1, VALIDATION_STATE_CLASS as VALIDATION_STATE_CLASS$1, DEFAULT_WIDTH_BY_TYPE, TEXT_DIRECTION_KEY, TEXT_ALIGN_KEY, TextAlign, COLOR_SCHEME_TRAIT, COLOR_SCHEMES, ColorScheme, LinkType, MAX_LINES_KEY, A11yTrait, BREAKPOINTS, withSchemeInk, stripSuppressedProps, DeclarationContext, planPartRule, gateHoverRule, planResponsiveRules, resolveStyleProps, planStateRule, splitOuterProps, OUTER_STYLE_PROPS, siteColumnOf, compileTokenCssBlocks, catalogFontId, fontsForTokens, GOOGLE_FONTS_FILE_ORIGIN, googleFontHref, compileDeclarations, isLastEmittedStateKey, wrapInBreakpointQuery, BreakpointQueryKind, NEW_NODE_STYLE_DEFAULTS, defaultElementStyleFor, applyElementStyle, planDataSource, dataSourcePlanToRequest, normalizeCollectionResult, resolveRepeaterItems, getByPath, computeRelative, PROGRESS_ATTRIBUTE, interactionMarkerAttributes, cascadeChain, attachScrollProgress, ContextStore, ENTRANCE_ACTION_TYPES, EXIT_ACTION_TYPES, ComponentInstanceRegistryService, syncInteractionMarkers, entranceStartsHidden, isActionEnabled, restoreCountUp, SCROLL_PROGRESS_TRIGGER, armInteractionCounts, splitPressFeedback, isHoverPointer, isContextAction, contextActionEffect, resolveContextValue, motionAllowed, effectiveActionType, INTERACTION_HIDDEN_ATTRIBUTE, COUNT_UP_ACTION, reducedEntranceRun, settleInteraction, settleModeFor, SettleMode, playInteraction, entranceDelay, repeatedRowIndex, resolveInteractionEasing, entrancePreStateStyle, buildInteractionKeyframes, showToast, IS_PREVIEW, declaredInputNames, emptyImagePlaceholder, syncNodeDesignClasses, nodeTraitValue, syncNodeA11yAttributes, nodeA11yAttributes, colorSchemeOf, withStateTransitions, composeVirtualTraits, stateNamesIn, partClassName, applyBoundStyles, switchElementStyle, releaseElementStyle, countOverrides, breakpointDef, breakpointForWidth, FormRenderState, collectContextSlotKeys, withContextSlots, needsAccessibleName, resolveInputs, setInputOverride, barReserveClass, groundHeadersIn, watchHeaderHeight, compilePageStyle, nodeUsesContext, attachTooltips, showToastDesign, TOOLTIP_ATTRIBUTE, hidingHeadersIn, HeaderRuntime, inkFollowingHeadersIn, HeaderInkRuntime, isScrolled, SCROLLED_ATTRIBUTE, syncSubmitButtons, buttonBlockHref, pageLanguageOf, layerFrame, rectInLayer, placeFloating, FloatingAlign, popoverSide, bootSlider, IoxPageModule, PALETTE_PRESETS, elementStyleById, PART_CLASS_NAMES } from '@vectoriox/iox-ui';
21
21
  export { ComponentInstanceRegistryService, VIRTUAL_TRAIT_KEYS, composeVirtualTraits } from '@vectoriox/iox-ui';
22
22
  import { StructureEdit, isAccordionPart, isDisclosurePart, isSliderPart, isTabsPart, isSegmentedPart, structureRefusal, StructureRefusal, SegmentedRole, SEGMENTED_MAX_OPTIONS, AccordionRole, SEGMENTED_MIN_OPTIONS, isExclusiveItemPart, TabsRole, ITEM_OPEN_STATE, readStyle, isSegmentedRoot, segmentedDefaultOn, segmentedOptions, isTabsRoot, isTabsFromContent, tabsTriggers, isAccordionRoot, isAccordionFromContent, accordionItems, initialAccordionOpen, accordionBehaviour, exclusiveItemLabel, exclusiveRootOf, tabTriggerOf, tabLabel, removeTabPair, tabPanelOf, tabsListOf, tabsPanelsOf, nextTabKey, CompositeBehaviourTrait, ACCORDION_DEFAULT_ONS, TabsBehaviourTrait, TABS_ACTIVATE_ONS, TABS_ORIENTATIONS, MarqueeTrait, MarqueeSpeed, MarqueeDirection, PopupTrait, PopupKind, PopupForm, PopupArrive, PopupAgain, DIALOG_MODAL_TRAIT, DisclosureRole, isExclusiveTrigger, onCompositeItemState, isCompositeItemOn, runAccountAction, ShopActionType, runShopAction, runCompositeItemAction, shouldScrollToItem, rowIndexOf as rowIndexOf$1, slideIndexForRow, isMarqueeRoot, compositeScopeId, compositeRowKeys, isExclusiveRoot, ExclusiveRuntime, exclusiveDefaultOf, exclusiveLabelOf, exclusiveBehaviourOf, exclusiveKindOf, compositeKindOfRole, AccordionRuntime, isToggleKind, MarqueeRuntime, closestAccordionItem, isAnyCompositeRoot, SceneRole, isExclusiveList, buildCardRecipe, buildBadge, buildChip, buildAccordionRecipe, buildDisclosureRecipe, buildTabsRecipe, buildSegmentedRecipe, buildLightboxRecipe, buildMarqueeRecipe, buildCounterRecipe, buildReadingBarRecipe, SHOP_RECIPES, ShopRecipe, ACCOUNT_RECIPES, AccountRecipe, NO_ELEMENT_STYLE, CompositeKind, PopupRole, SliderRole, accordionItemLabel, segmentedOptionLabel, isExclusivePanels, isLockedPart, attachShop, ShopRole, attachAccount, AccountRole, accordionRootOf, accordionItemOf, addAccordionItem, addTabPair, segmentedAddRefusal, addSegmentedOption, isCompositeItem, accordionHeadingLevel, isCompositePanel, isCompositeTrigger, popupFormOf, splitSliderChildren, hasSliderParts, buildConsentRecipe, SLIDE_CAPTION_TRAIT, SLIDER_SCROLL_PLAYS_TRAIT, SLIDER_PLACEMENT_TRAIT, SliderPlacement, SliderFlag } from '@vectoriox/iox-ui/composite-core';
23
23
  import { formContentInHost, isInteractiveHost, findFormContentInHosts, formPresetById, presetFormActions, busyWord, fieldKindWords, channelWords, FORM_CHANNEL_ROLE, channelHref, channelOpensNewTab, FORM_ACTIONS_ROLE, SUBMIT_BUTTON_NODE_TYPE, FORM_NODE_TYPE, FIELD_NODE_TYPE, formWordIn, DEFAULT_BUSY_WORDS, FORM_AFTER_SEND_TRAIT, FormAfterSend, baselineFormWords } from '@vectoriox/iox-ui/forms-core';
24
24
  import { Subject, BehaviorSubject, of, forkJoin, combineLatest } from 'rxjs';
25
- import { isPlaceholderRow, variableAliases, listTitleField } from '@vectoriox/iox-ui/data-core';
25
+ import { isPlaceholderRow, variableAliases, listPlaceholderFields } from '@vectoriox/iox-ui/data-core';
26
26
  import interact from 'interactjs';
27
- import { HeaderTrait, HeaderBehaviour, HeaderEdge, HeaderInk, HeaderGround, SECTION_EDGE_TRAIT, SECTION_EDGES, SECTION_SHAPE_TRAIT, SectionShape, MenuTrait, MenuForm, MenuReveal, MenuHover, MenuPhoneForm, MenuButtonKind, openingMediaOf, localeDirection, pageColumn, HeaderAttribute, pageOpeningScheme, menuDialogAttributes, MenuAttribute, closeWord } from '@vectoriox/iox-ui/design-core';
27
+ import { HeaderTrait, HeaderBehaviour, HeaderEdge, HeaderInk, HeaderGround, SECTION_EDGE_TRAIT, SECTION_EDGES, SECTION_SHAPE_TRAIT, SectionShape, MenuTrait, MenuForm, MenuReveal, MenuHover, MenuPhoneForm, MenuShows, MenuButtonKind, openingMediaOf, localeDirection, pageColumn, HeaderAttribute, pageOpeningScheme, menuDialogAttributes, MenuAttribute, closeWord } from '@vectoriox/iox-ui/design-core';
28
28
  import { map, catchError, skip } from 'rxjs/operators';
29
29
  import * as i1 from '@angular/common/http';
30
30
  import { SAMPLE_PRODUCT, productInScope, simulatedCartTransport, storefrontCatalog, SAMPLE_STUDIO, SAMPLE_CART_LINE, SAMPLE_SWATCHES } from '@vectoriox/iox-ui/commerce-core';
31
- import { POPOVER_ACTION_TYPE_SET, TOAST_ACTION_TYPES, itemActionOf, BEHAVIOUR_ACTION_TYPES, SHOP_ACTION_TYPES, ACCOUNT_ACTION_TYPES, SERVER_ELEMENT_ACTION_TYPES, CONSENT_ACTION_TYPES, opensAtClickedItem, openedDialogId, DIALOG_CLOSING_ATTRIBUTE, cancelExit, runExitMotion, dialogOpenersSelector, dialogDomId, revealOrigin, holdClosedWhile, revealOriginStyle, popoverOpenersSelector, popoverDomId } from '@vectoriox/iox-ui/actions-core';
31
+ import { POPOVER_ACTION_TYPE_SET, TOAST_ACTION_TYPES, itemActionOf, BEHAVIOUR_ACTION_TYPES, SHOP_ACTION_TYPES, ACCOUNT_ACTION_TYPES, SERVER_ELEMENT_ACTION_TYPES, CONSENT_ACTION_TYPES, scrollsToPageTop, opensAtClickedItem, openedDialogId, DIALOG_CLOSING_ATTRIBUTE, cancelExit, runExitMotion, dialogOpenersSelector, dialogDomId, revealOrigin, holdClosedWhile, revealOriginStyle, popoverOpenersSelector, popoverDomId } from '@vectoriox/iox-ui/actions-core';
32
32
  import { NavRole, navShapeBreakpoint, isScrubbedEntrance, ENTRANCE_TRIGGER, entranceInteraction, entranceAction, sectionEntrances, EntrancePart } from '@vectoriox/iox-ui/generation-core';
33
33
  import { ScrollDriver, syncSceneAttributes, SCENE_LAND_TRIGGER, onSceneLand, watchArrival, arrivedWithin, buildSceneRecipe } from '@vectoriox/iox-ui/scene-core';
34
34
  import Lenis from 'lenis';
@@ -1349,7 +1349,8 @@ function sourceTypeLabel(alias, ds, resolve) {
1349
1349
 
1350
1350
  /**
1351
1351
  * The rows a list draws, the owner's first (board A2: real cards first, then one quiet ghost per remaining sample) and
1352
- * at most `limit` of them — as the engine lists the live rows first and then applies the limit.
1352
+ * at most `limit` of them — as the engine lists the live rows first and then applies the limit. `titleField` is the list's
1353
+ * `listPlaceholderFields` (data-core, engine#41): its title field, else the fields it shows — the live rule's own reading.
1353
1354
  */
1354
1355
  function planGhostRows(items, titleField, limit) {
1355
1356
  const own = [];
@@ -2391,6 +2392,13 @@ function buildMenuTraits() {
2391
2392
  { label: 'Drawer', value: MenuPhoneForm.Drawer },
2392
2393
  { label: 'Full screen', value: MenuPhoneForm.Full },
2393
2394
  ]),
2395
+ // HI2: what the menu shows — its parts are the drawer's children (generation-core planNavShape); this sizes them.
2396
+ new TraitConfig(MenuTrait.Shows, 'Menu shows', TraitInputType.Select, [
2397
+ { label: 'Page names', value: MenuShows.Links },
2398
+ { label: 'Large page names', value: MenuShows.Big },
2399
+ { label: 'Large names and a card', value: MenuShows.WordsCard },
2400
+ { label: 'Pictures', value: MenuShows.Pictures },
2401
+ ]),
2394
2402
  ];
2395
2403
  }
2396
2404
  /**
@@ -4979,7 +4987,7 @@ function setOverlayPreview(state, twins, id, open) {
4979
4987
  state.dismiss(id);
4980
4988
  }
4981
4989
 
4982
- const CANVAS_SCROLLER = '.preview-scroll';
4990
+ const CANVAS_SCROLLER$1 = '.preview-scroll';
4983
4991
  const PREVIEW_SCROLLER = '.iox-page-wrapper';
4984
4992
  /** What a page-long reading bar measures: the canvas's page frame, or Preview's page inside its scroller. */
4985
4993
  const CANVAS_PAGE = '#canvas-preview';
@@ -5036,8 +5044,8 @@ class SceneCanvasService {
5036
5044
  this.driver ??= new ScrollDriver({
5037
5045
  pin: onCanvas,
5038
5046
  observe: true,
5039
- originOf: el => el.closest(onCanvas ? CANVAS_SCROLLER : PREVIEW_SCROLLER),
5040
- view: () => viewOf(document.querySelector(onCanvas ? CANVAS_SCROLLER : PREVIEW_SCROLLER)),
5047
+ originOf: el => el.closest(onCanvas ? CANVAS_SCROLLER$1 : PREVIEW_SCROLLER),
5048
+ view: () => viewOf(document.querySelector(onCanvas ? CANVAS_SCROLLER$1 : PREVIEW_SCROLLER)),
5041
5049
  onFrame: (el, state) => this.frames$.next({ nodeId: this.idsByRoot.get(el) ?? null, ...state }),
5042
5050
  });
5043
5051
  return this.driver;
@@ -5070,7 +5078,7 @@ class SceneCanvasService {
5070
5078
  goTo(nodeId, p) {
5071
5079
  const root = nodeId ? this.rootsById.get(nodeId) : null;
5072
5080
  const offset = root ? this.driver?.offsetFor(root, p) : null;
5073
- const scroller = root?.closest(CANVAS_SCROLLER);
5081
+ const scroller = root?.closest(CANVAS_SCROLLER$1);
5074
5082
  if (!root || offset == null || !scroller)
5075
5083
  return;
5076
5084
  const rect = root.getBoundingClientRect();
@@ -5133,6 +5141,8 @@ const CANVAS_SKIPPED_PROPS = new Set(['transform']);
5133
5141
  * Call `attach(node)` after the node is rendered and registered.
5134
5142
  * Call `detach(node)` on destroy to tear down listeners/observers.
5135
5143
  */
5144
+ /** The canvas's page scroller (the builder's Lenis wrapper); outside it (Preview), the document scrolls. */
5145
+ const CANVAS_SCROLLER = '.preview-scroll';
5136
5146
  class InteractionEngineService {
5137
5147
  constructor(overlayService) {
5138
5148
  this.overlayService = overlayService;
@@ -5720,6 +5730,14 @@ class InteractionEngineService {
5720
5730
  return;
5721
5731
  }
5722
5732
  case 'scrollTo': {
5733
+ // FV1b: a scrollTo with no target (or `self`) is the PAGE's top — actions-core `scrollsToPageTop`, the ONE
5734
+ // rule the live engine asks too (the footer's back-to-top). On the canvas the page scrolls in `.preview-scroll`
5735
+ // (Lenis follows its scrollTop); in Preview, the document.
5736
+ if (scrollsToPageTop(action)) {
5737
+ const scroller = selfEl?.closest(CANVAS_SCROLLER) ?? document.scrollingElement;
5738
+ scroller?.scrollTo({ top: 0, behavior: motionAllowed() ? 'smooth' : 'auto' });
5739
+ return;
5740
+ }
5723
5741
  const target = this.resolveTarget(node, action, selfEl);
5724
5742
  target?.scrollIntoView({ behavior: 'smooth', block: 'start' });
5725
5743
  return;
@@ -7269,7 +7287,7 @@ class BuilderRepeaterComponent {
7269
7287
  // Rows of an array inside one item (`sourcePath`, a gallery's pictures) are that item's values, never samples.
7270
7288
  const plan = this._sourcePath
7271
7289
  ? { rows: this.fetchedItems.slice(0, this._limit), ghosts: [] }
7272
- : planGhostRows(this.fetchedItems, listTitleField({ type: 'Repeater', bindings: [{ prop: 'source', source: this._source, path: '' }], children: this.children }), this._limit);
7290
+ : planGhostRows(this.fetchedItems, listPlaceholderFields({ type: 'Repeater', bindings: [{ prop: 'source', source: this._source, path: '' }], children: this.children }), this._limit);
7273
7291
  this.items = plan.rows;
7274
7292
  this.ghosts = plan.ghosts;
7275
7293
  // Row markers store a REFERENCE (source + index); the engine needs the array to resolve
@@ -13037,6 +13055,8 @@ class BuilderContainerComponent {
13037
13055
  this._formState = 'idle';
13038
13056
  /** A form's After sending (premium M5): `toast` keeps its fields — the Form trait, read on a form host only. */
13039
13057
  this.afterSend = '';
13058
+ /** The Form's `formId` trait — written as `data-iox-form` (the shared sign-up row keys off its preset prefix). */
13059
+ this.formId = '';
13040
13060
  this.childClick = new EventEmitter();
13041
13061
  this.childMouseEnter = new EventEmitter();
13042
13062
  this.childMouseLeave = new EventEmitter();
@@ -13063,7 +13083,7 @@ class BuilderContainerComponent {
13063
13083
  this.dragEngine.handleDrop(this.children, event, this.dropListId, this.cdr);
13064
13084
  }
13065
13085
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: BuilderContainerComponent, deps: [{ token: i0.ElementRef }, { token: DragEngineService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
13066
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: BuilderContainerComponent, isStandalone: false, selector: "div[iox-container],section[iox-container],article[iox-container],header[iox-container],footer[iox-container],main[iox-container],nav[iox-container],ul[iox-container],ol[iox-container],li[iox-container],form[iox-container]", inputs: { children: "children", style: "style", nodeId: "nodeId", dropListId: "dropListId", htmlTag: "htmlTag", start: "start", reversed: "reversed", formClass: "formClass", formState: "formState", afterSend: "afterSend" }, outputs: { childClick: "childClick", childMouseEnter: "childMouseEnter", childMouseLeave: "childMouseLeave" }, host: { properties: { "class": "'container-root iox-node-' + nodeId + (listOrientation === 'horizontal' ? ' is-horizontal' : '') + (formClass ? ' ' + formClass : '')", "attr.data-iox-state": "formClass === \"iox-form\" ? formState : null", "attr.data-iox-after-send": "formClass === \"iox-form\" && afterSend === \"toast\" ? \"toast\" : null", "attr.start": "htmlTag === 'ol' && start !== 1 ? start : null", "attr.reversed": "htmlTag === 'ol' && reversed ? '' : null", "attr.data-iox-item-key": "node?.itemKey ?? null" } }, ngImport: i0, template: `
13086
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.31", type: BuilderContainerComponent, isStandalone: false, selector: "div[iox-container],section[iox-container],article[iox-container],header[iox-container],footer[iox-container],main[iox-container],nav[iox-container],ul[iox-container],ol[iox-container],li[iox-container],form[iox-container]", inputs: { children: "children", style: "style", nodeId: "nodeId", dropListId: "dropListId", htmlTag: "htmlTag", start: "start", reversed: "reversed", formClass: "formClass", formState: "formState", afterSend: "afterSend", formId: "formId" }, outputs: { childClick: "childClick", childMouseEnter: "childMouseEnter", childMouseLeave: "childMouseLeave" }, host: { properties: { "class": "'container-root iox-node-' + nodeId + (listOrientation === 'horizontal' ? ' is-horizontal' : '') + (formClass ? ' ' + formClass : '')", "attr.data-iox-state": "formClass === \"iox-form\" ? formState : null", "attr.data-iox-after-send": "formClass === \"iox-form\" && afterSend === \"toast\" ? \"toast\" : null", "attr.data-iox-form": "formClass === \"iox-form\" ? (formId || null) : null", "attr.start": "htmlTag === 'ol' && start !== 1 ? start : null", "attr.reversed": "htmlTag === 'ol' && reversed ? '' : null", "attr.data-iox-item-key": "node?.itemKey ?? null" } }, ngImport: i0, template: `
13067
13087
  <!-- Empty-container slot (B2). pointer-events:none, so a click falls through and SELECTS
13068
13088
  this container — and the components panel then inserts INSIDE it. -->
13069
13089
  <div *ngIf="!children.length" class="container-placeholder" data-iox-chrome>
@@ -13150,6 +13170,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
13150
13170
  '[attr.data-iox-state]': 'formClass === "iox-form" ? formState : null',
13151
13171
  // Premium M5: a form that keeps its fields after sending — the shared CSS keeps them on screen in every state.
13152
13172
  '[attr.data-iox-after-send]': 'formClass === "iox-form" && afterSend === "toast" ? "toast" : null',
13173
+ // The form's id, as the engine writes it: the shared CSS lays a newsletter's sign-up row by it (`newsletter-…`).
13174
+ '[attr.data-iox-form]': 'formClass === "iox-form" ? (formId || null) : null',
13153
13175
  '[attr.start]': "htmlTag === 'ol' && start !== 1 ? start : null",
13154
13176
  '[attr.reversed]': "htmlTag === 'ol' && reversed ? '' : null",
13155
13177
  // An item's identity (an accordion item, or a disclosure) — the runtime pairs its header and panel ids from it.
@@ -13175,6 +13197,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
13175
13197
  type: Input
13176
13198
  }], afterSend: [{
13177
13199
  type: Input
13200
+ }], formId: [{
13201
+ type: Input
13178
13202
  }], childClick: [{
13179
13203
  type: Output
13180
13204
  }], childMouseEnter: [{
@@ -13493,6 +13517,8 @@ class BuilderDialogComponent {
13493
13517
  set menuReveal(v) { this.setMenu(MenuTrait.Reveal, v); }
13494
13518
  set menuHover(v) { this.setMenu(MenuTrait.Hover, v); }
13495
13519
  set menuPhone(v) { this.setMenu(MenuTrait.Phone, v); }
13520
+ /** HI2: what the menu shows (its shelves are its children; the trait sizes their page names). */
13521
+ set menuShows(v) { this.setMenu(MenuTrait.Shows, v); }
13496
13522
  /** PU2: the popup's kind and form (composite-core PopupTrait) — a Dialog with no kind is not a popup and draws as before. */
13497
13523
  set popupKind(v) { this.popupLook = { ...this.popupLook, kind: v }; this.joinPopups(); this.cdr?.markForCheck(); }
13498
13524
  set popupForm(v) { this.popupLook = { ...this.popupLook, form: v }; this.cdr?.markForCheck(); }
@@ -13743,7 +13769,7 @@ class BuilderDialogComponent {
13743
13769
  this.dragEngine.handleDrop(this.children, event, this.dropListId, this.cdr);
13744
13770
  }
13745
13771
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: BuilderDialogComponent, deps: [{ token: DragEngineService }, { token: i2$1.ComponentInstanceRegistryService }, { token: OverlayService }, { token: i0.ChangeDetectorRef }, { token: CanvasDesignStateService, optional: true }, { token: PanelEventService, optional: true }, { token: i0.NgZone, optional: true }, { token: i0.ElementRef, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
13746
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.31", type: BuilderDialogComponent, isStandalone: false, selector: "app-builder-dialog", inputs: { children: "children", nodeId: "nodeId", dropListId: "dropListId", closeOnBackdrop: "closeOnBackdrop", showCloseButton: "showCloseButton", placement: "placement", menuForm: "menuForm", menuReveal: "menuReveal", menuHover: "menuHover", menuPhone: "menuPhone", popupKind: "popupKind", popupForm: "popupForm" }, outputs: { childClick: "childClick", childMouseEnter: "childMouseEnter", childMouseLeave: "childMouseLeave" }, viewQueries: [{ propertyName: "stageRef", first: true, predicate: ["stage"], descendants: true }, { propertyName: "surfaceRef", first: true, predicate: ["surface"], descendants: true }], ngImport: i0, template: `
13772
+ 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", menuShows: "menuShows", 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: `
13747
13773
  <!-- data-iox-menu-open: design-core HEADER_MENU_OPEN_ATTRIBUTE — the canvas twin of an open <dialog>, so the shared
13748
13774
  CSS firms an over header while its menu is open (iox-ui#181). Spelled here until the builder is on ^5.197.0
13749
13775
  (it compiles against the PUBLISHED iox-ui); design-core's header-ground.spec holds the two equal. -->
@@ -13756,6 +13782,7 @@ class BuilderDialogComponent {
13756
13782
  [attr.data-iox-reveal]="menuAttrs[menuAttr.Reveal]"
13757
13783
  [attr.data-iox-menu-hover]="menuAttrs[menuAttr.Hover]"
13758
13784
  [attr.data-iox-menu-phone]="menuAttrs[menuAttr.Phone]"
13785
+ [attr.data-iox-menu-shows]="menuAttrs[menuAttr.Shows]"
13759
13786
  ioxDropzone
13760
13787
  [ioxDropzoneId]="dropListId"
13761
13788
  [ioxDropzoneData]="children"
@@ -13800,6 +13827,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
13800
13827
  [attr.data-iox-reveal]="menuAttrs[menuAttr.Reveal]"
13801
13828
  [attr.data-iox-menu-hover]="menuAttrs[menuAttr.Hover]"
13802
13829
  [attr.data-iox-menu-phone]="menuAttrs[menuAttr.Phone]"
13830
+ [attr.data-iox-menu-shows]="menuAttrs[menuAttr.Shows]"
13803
13831
  ioxDropzone
13804
13832
  [ioxDropzoneId]="dropListId"
13805
13833
  [ioxDropzoneData]="children"
@@ -13856,6 +13884,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
13856
13884
  type: Input
13857
13885
  }], menuPhone: [{
13858
13886
  type: Input
13887
+ }], menuShows: [{
13888
+ type: Input
13859
13889
  }], popupKind: [{
13860
13890
  type: Input
13861
13891
  }], popupForm: [{