@vectoriox/iox-builder 11.22.0 → 11.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -11,6 +11,7 @@ import * as _vectoriox_iox_builder from '@vectoriox/iox-builder';
11
11
  import * as i26 from 'primeng/popover';
12
12
  import { Popover } from 'primeng/popover';
13
13
  import { HttpClient } from '@angular/common/http';
14
+ import { MenuAttribute } from '@vectoriox/iox-ui/design-core';
14
15
  import * as i23 from '@angular/cdk/drag-drop';
15
16
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
16
17
  import * as i21 from '@angular/common';
@@ -21,7 +22,7 @@ import * as i27 from 'primeng/inputtext';
21
22
  import * as i28 from 'primeng/select';
22
23
  import * as i29 from 'primeng/tooltip';
23
24
  import * as i30 from 'primeng/dialog';
24
- import { MarqueeRuntime, AccordionRuntime, ExclusiveRuntime, CompositeNodeFactory, CompositeNode } from '@vectoriox/iox-ui/composite-core';
25
+ import { MarqueeRuntime, AccordionRuntime, ExclusiveRuntime, CompositeNodeFactory, CompositeNode, ConsentRecipeOptions } from '@vectoriox/iox-ui/composite-core';
25
26
  import { FormPresetChannel, FormPresetDef, ChannelKind } from '@vectoriox/iox-ui/forms-core';
26
27
 
27
28
  declare enum StyleCategory {
@@ -3445,6 +3446,16 @@ declare class BuilderDialogComponent implements OnInit, OnDestroy {
3445
3446
  closeOnBackdrop: boolean | string;
3446
3447
  showCloseButton: boolean | string;
3447
3448
  placement: string;
3449
+ /** HI2a: the menu's look (design-core MenuTrait) — read through ONE `menuDialogAttributes`, the live page's reader. */
3450
+ set menuForm(v: unknown);
3451
+ set menuReveal(v: unknown);
3452
+ set menuHover(v: unknown);
3453
+ set menuPhone(v: unknown);
3454
+ readonly menuAttr: typeof MenuAttribute;
3455
+ /** The attributes the surface wears (a default writes none — R-H4). */
3456
+ menuAttrs: Record<string, string>;
3457
+ private menuLook;
3458
+ private setMenu;
3448
3459
  childClick: EventEmitter<any>;
3449
3460
  childMouseEnter: EventEmitter<any>;
3450
3461
  childMouseLeave: EventEmitter<void>;
@@ -3453,6 +3464,9 @@ declare class BuilderDialogComponent implements OnInit, OnDestroy {
3453
3464
  /** The exit is playing: still rendered, already closed for every action and the eye. */
3454
3465
  private closing;
3455
3466
  private stageRef?;
3467
+ /** HI2a: the surface, seen once it renders — a menu that reveals grows from its opener, measured right then. */
3468
+ set surfaceRef(ref: ElementRef<HTMLElement> | undefined);
3469
+ private surfaceEl?;
3456
3470
  /** Opened by an action on the canvas (the canvas is a live runtime): stays until something closes it. */
3457
3471
  private runtimeOpen;
3458
3472
  /** Closed by its X / backdrop while the selection or the switcher still shows it: hidden until either changes. */
@@ -3475,6 +3489,14 @@ declare class BuilderDialogComponent implements OnInit, OnDestroy {
3475
3489
  * say "open" whichever way it opened (CC1.3). */
3476
3490
  private openRuntime;
3477
3491
  private closeRuntime;
3492
+ /**
3493
+ * Where a menu's reveal grows from on the canvas (HI2a): the opener's centre in the surface's own box — actions-core
3494
+ * `revealOrigin`, the ONE rule the live page's `revealFrom` runs. The canvas is zoomed, so the box is measured in
3495
+ * screen px from the stage (fixed, the frame's size) plus the surface's untransformed offsets, and the zoom handed to
3496
+ * the rule; the opener is the first rendered element naming this dialog (`aria-controls`), else the menu's top corner.
3497
+ * The write runs through actions-core `holdClosedWhile`, as the live page's `revealFrom` does.
3498
+ */
3499
+ private placeReveal;
3478
3500
  /** True when the canvas selection is this dialog or a node inside it. */
3479
3501
  private selectionInside;
3480
3502
  ngOnInit(): void;
@@ -3488,7 +3510,7 @@ declare class BuilderDialogComponent implements OnInit, OnDestroy {
3488
3510
  onBackdrop(): void;
3489
3511
  onDrop(event: IoxDropEvent): void;
3490
3512
  static ɵfac: i0.ɵɵFactoryDeclaration<BuilderDialogComponent, [null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
3491
- static ɵcmp: i0.ɵɵComponentDeclaration<BuilderDialogComponent, "app-builder-dialog", never, { "children": { "alias": "children"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; "dropListId": { "alias": "dropListId"; "required": false; }; "closeOnBackdrop": { "alias": "closeOnBackdrop"; "required": false; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; }, { "childClick": "childClick"; "childMouseEnter": "childMouseEnter"; "childMouseLeave": "childMouseLeave"; }, never, never, false, never>;
3513
+ static ɵcmp: i0.ɵɵComponentDeclaration<BuilderDialogComponent, "app-builder-dialog", never, { "children": { "alias": "children"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; "dropListId": { "alias": "dropListId"; "required": false; }; "closeOnBackdrop": { "alias": "closeOnBackdrop"; "required": false; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "menuForm": { "alias": "menuForm"; "required": false; }; "menuReveal": { "alias": "menuReveal"; "required": false; }; "menuHover": { "alias": "menuHover"; "required": false; }; "menuPhone": { "alias": "menuPhone"; "required": false; }; }, { "childClick": "childClick"; "childMouseEnter": "childMouseEnter"; "childMouseLeave": "childMouseLeave"; }, never, never, false, never>;
3492
3514
  }
3493
3515
 
3494
3516
  /** A frame this narrow is a phone: the popover is a bottom sheet there (iox-ui FLOATING_SHEET_QUERY's width). */
@@ -4541,13 +4563,28 @@ declare function builderCompositeFactory(createConfig: (type: string) => Compone
4541
4563
  /** A fresh content block for the palette (click or drag). */
4542
4564
  declare function buildCompositePreset(def: CompositePresetDef, createConfig: (type: string) => ComponentNode | null, baselineStyles: (type: string) => Readonly<Record<string, unknown>>): ComponentNode;
4543
4565
 
4566
+ /**
4567
+ * THE CONSENT PRESET (consent plan C3; award-ingredients-plan AW1) — the palette's "Consent banner": three GLOBAL roots
4568
+ * (the banner Dialog, the preferences Dialog, the "Cookie settings" opener) stamped from composite-core's ONE consent
4569
+ * recipe (`buildConsentRecipe`) with the builder's own node factory — the same recipe generation-core's composer stamps,
4570
+ * so a hand-placed banner and a generated one are the same structure and wear the same element styles (never a colour).
4571
+ *
4572
+ * The law lives in the recipe (Accept and Reject the same type on one row, the backdrop decides nothing, ✕ = a no,
4573
+ * Preferences only with two or more categories); this file only adapts the builder's factory and keeps the palette's
4574
+ * shape (`withdrawal` is the recipe's `settings`).
4575
+ */
4544
4576
  interface ConsentPreset {
4545
4577
  banner: ComponentNode;
4546
4578
  preferences: ComponentNode;
4547
4579
  withdrawal: ComponentNode;
4548
4580
  }
4581
+ interface ConsentPresetOptions extends ConsentRecipeOptions {
4582
+ /** The type's default style props (`ComponentRegistryService.baselineStyleProps`) — so a node moved onto its
4583
+ * element style keeps nothing of its type's default style. Omitted: nothing is released. */
4584
+ baselineStyles?: (type: string) => Readonly<Record<string, unknown>>;
4585
+ }
4549
4586
  /** Build the three roots. Null when any type is missing — a half-built banner never ships. */
4550
- declare function buildConsentPreset(createConfig: CreateConfig): ConsentPreset | null;
4587
+ declare function buildConsentPreset(createConfig: (type: string) => ComponentNode | null, options?: ConsentPresetOptions): ConsentPreset | null;
4551
4588
 
4552
4589
  /** The words specimens show. The host translates them; nothing here is user-facing English. */
4553
4590
  interface DesignSpecimenCopy {
@@ -4971,4 +5008,4 @@ declare class TextBlockComponentConfig extends ComponentConfig {
4971
5008
  }
4972
5009
 
4973
5010
  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, InsertRefusal, InteractionEngineService, InteractionPresetRegistryService, IoxBuilderModule, IoxDraggableDirective, IoxDropzoneDirective, LAYOUT_PRESETS, LayerTreeComponent, LayoutGroupStyleConfig, ListGroupStyleConfig, NodeAction, 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, 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, displayTriggerOf, dropChildren, dropTargetLabel, duplicateTabPair, escapesRoot, essentialTraitsFor, findNodeByIdInEither, findNodeLocation, findParentOf, flattenLayerTree, flattenSchemaFields, fluidiseProps, formChannelOf, generateNodeId, globalCanvasLayer, hiddenAtBase, hiddenUntilItemOn, inPhoneMenuContext, insertRefusal, insertRefusalLabel, interactionTargets, 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 };
4974
- export type { AuditFinding, AuditNode, BreakpointPresentation, BuilderClipboard, BuilderLabelResolver, BusinessSpecimenCopy, BusinessSpecimenOptions, CanvasDesignSnapshot, CanvasScrollLinkOptions, ComponentEventDef, ComponentMethodDef, ComponentNode, ComponentTrait, CompositePresetDef, ConsentPreset, ContentTypeLabelResolver, CreateConfig, Crumb, DesignSpecimenCopy, DragPayload, DsFilterByQueryParam, DsFilterByRouteParam, ElementState, FieldKindDef, FormStateSnapshot, GlobalLayerSource, HiddenAtRestNode, HistoryChange, HistoryEntry, HistoryStep, InsertRefusedEvent, InsertTarget, InteractionAction, InteractionActionType, InteractionPreset, InteractionTrigger, IoxBinding, IoxDataSource, IoxDropEvent, IoxInteraction, IoxSymbol, LayerMoreRows, LayerRepeaterRows, LayerTreeContext, LayerTreeRow, LayoutPresetChildStyles, LayoutPresetDef, NodeRef, OverlayBoxModel, OverlayBoxSpacing, OverlayEntry, OverlayGlobals, OverlayTwins, PageRouteAnimationSettings, PageSettings, PalettePresetDef, PanelEvent, PhoneMenuTarget, QuadSizeSegment, RootEscapeMemory, RouteAnimationPreset, SceneCanvasFrame, ScreenWidthOption, SelectionBadge, ShownBeforeControl, StyleMap, StylePart, StylePreset, StyleTrait, StyleTraitGroup, TraitOptionMap, TraitSelectOption, TraitShowCondition, TreePathNode, UpsertTokensOptions, ViewportState, ZoomOption };
5011
+ export type { AuditFinding, AuditNode, BreakpointPresentation, BuilderClipboard, BuilderLabelResolver, BusinessSpecimenCopy, BusinessSpecimenOptions, CanvasDesignSnapshot, CanvasScrollLinkOptions, ComponentEventDef, ComponentMethodDef, ComponentNode, ComponentTrait, CompositePresetDef, ConsentPreset, ConsentPresetOptions, ContentTypeLabelResolver, CreateConfig, Crumb, DesignSpecimenCopy, DragPayload, DsFilterByQueryParam, DsFilterByRouteParam, ElementState, FieldKindDef, FormStateSnapshot, GlobalLayerSource, HiddenAtRestNode, HistoryChange, HistoryEntry, HistoryStep, InsertRefusedEvent, InsertTarget, InteractionAction, InteractionActionType, InteractionPreset, InteractionTrigger, IoxBinding, IoxDataSource, IoxDropEvent, IoxInteraction, IoxSymbol, LayerMoreRows, LayerRepeaterRows, LayerTreeContext, LayerTreeRow, LayoutPresetChildStyles, LayoutPresetDef, NodeRef, OverlayBoxModel, OverlayBoxSpacing, OverlayEntry, OverlayGlobals, OverlayTwins, PageRouteAnimationSettings, PageSettings, PalettePresetDef, PanelEvent, PhoneMenuTarget, QuadSizeSegment, RootEscapeMemory, RouteAnimationPreset, SceneCanvasFrame, ScreenWidthOption, SelectionBadge, ShownBeforeControl, StyleMap, StylePart, StylePreset, StyleTrait, StyleTraitGroup, TraitOptionMap, TraitSelectOption, TraitShowCondition, TreePathNode, UpsertTokensOptions, ViewportState, ZoomOption };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@vectoriox/iox-builder",
3
- "version": "11.22.0",
3
+ "version": "11.24.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
7
7
  "@angular/animations": ">=20.0.0",
8
8
  "@angular/cdk": ">=20.0.0",
9
- "@vectoriox/iox-ui": ">=5.100.0",
9
+ "@vectoriox/iox-ui": ">=5.130.1",
10
10
  "interactjs": "^1.10.27",
11
11
  "primeng": ">=20.0.0",
12
12
  "swiper": ">=12.0.0",