@vectoriox/iox-builder 9.5.4 → 9.6.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
@@ -1128,6 +1128,10 @@ interface InsertRefusedEvent {
1128
1128
  }
1129
1129
  /** The node a drop target names: canvas-root ancestors outermost first, the dropzone's own node last. */
1130
1130
  type AncestorNode = Pick<ComponentNode, 'type' | 'children' | 'role'>;
1131
+ /** The canvas wrapper holding in-flow AFTER globals (a footer) inside the page (iox-ui#12): it is not a
1132
+ * layout child, so a drop never counts it and the insert indicator never lands after it. */
1133
+ declare const GLOBALS_AFTER_CLASS = "iox-canvas-globals-after";
1134
+ declare function dropChildren(container: Element): Element[];
1131
1135
  /** On the drop-target overlay while the target refuses the dragged payload (styled by the host). */
1132
1136
  declare const DROP_REFUSED_CLASS = "iox-drop-target-overlay--refused";
1133
1137
  declare class DragEngineService {
@@ -2195,8 +2199,16 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
2195
2199
  handleToolbarBreakpointChange(bp: Breakpoint): void;
2196
2200
  handleToolbarZoomChange(value: number | 'fit'): void;
2197
2201
  handleToolbarScreenWidthChange(width: number): void;
2198
- get globalElementsBefore(): ComponentNode[];
2199
- get globalElementsAfter(): ComponentNode[];
2202
+ /** The globals the frame-pinned overlay draws: every BEFORE global, then the pinned AFTER ones (a
2203
+ * fixed bottom bar, a Dialog) — same order as before iox-ui#12. */
2204
+ get globalElementsInOverlay(): ComponentNode[];
2205
+ readonly globalsAfterClass = "iox-canvas-globals-after";
2206
+ /** In-flow AFTER globals (a footer): drawn after the page's content, as the live site draws them. */
2207
+ get globalElementsInPage(): ComponentNode[];
2208
+ /** The overlay is the frame a pinned global sits in: the canvas slot, or the PAGE when the page is
2209
+ * shorter than the slot — a bottom bar pins to the page's bottom edge, not to the empty ground
2210
+ * under it. */
2211
+ get globalOverlayHeight(): number;
2200
2212
  /** Canvas width in CSS pixels (driven by ViewportService). */
2201
2213
  get viewportWidth(): number;
2202
2214
  /** Canvas viewport height in CSS pixels (driven by ViewportService). */
@@ -3203,8 +3215,11 @@ interface LayerTreeRow {
3203
3215
  locked: boolean;
3204
3216
  /** An item of a sourced Repeater's template — the one every row wears. */
3205
3217
  template: boolean;
3206
- /** After the name: a Repeater's `alias × N`, a bound part's `← alias.field`. */
3218
+ /** After the name: a Repeater's `alias × N`, otherwise the node's descriptor — its bound field
3219
+ * (`← alias.field`) or its own text (board 3's "Link · Work"). */
3207
3220
  sub: string | null;
3221
+ /** The descriptor in full, for the row's title (`sub` is cut short). */
3222
+ descriptor: string | null;
3208
3223
  /** A part inside a Repeater's template that reads the row (or any source): the plug glyph. */
3209
3224
  bound: boolean;
3210
3225
  /** Set on the LAST visible row of a Repeater's template: the "N more rows" line follows it. */
@@ -3222,6 +3237,13 @@ declare function repeaterSourceAlias(node: ComponentNode): string;
3222
3237
  declare function bindingLabel(binding: IoxBinding | null | undefined): string | null;
3223
3238
  /** Every binding of a node, as the tree's title lists them. */
3224
3239
  declare function bindingLabels(node: ComponentNode): string[];
3240
+ /** Short: the row also holds the name and its chips, and the full text is in the row's title. */
3241
+ declare const DESCRIPTOR_MAX_LENGTH = 24;
3242
+ /** The descriptor cut to {@link DESCRIPTOR_MAX_LENGTH} — what the row shows. */
3243
+ declare function shortDescriptor(text: string | null): string | null;
3244
+ /** What a node shows, in full: its bound field (`← projects.title`) when it reads a source, otherwise its
3245
+ * own text. Nothing for a node that shows no text, or whose text IS its name. */
3246
+ declare function nodeDescriptor(node: ComponentNode, name?: string): string | null;
3225
3247
  /** `projects × 6` — the Repeater's sub-label; the count once its rows arrived. */
3226
3248
  declare function repeaterSubLabel(rows: LayerRepeaterRows): string | null;
3227
3249
  /** Flatten `nodes` into rows, depth-first, honouring each node's expanded state. */
@@ -3495,6 +3517,37 @@ declare function pathToNode<T extends {
3495
3517
  children?: T[];
3496
3518
  }>(roots: ReadonlyArray<T>, target: T): T[];
3497
3519
 
3520
+ /**
3521
+ * Where the builder canvas draws a global element (vectoriox/iox-ui#12).
3522
+ *
3523
+ * - `Overlay`: the `.global-elements-overlay` layer, outside Lenis and pinned to the frame — a transform
3524
+ * contains fixed children, so this is the only place a `position: fixed` global (the phone's bottom
3525
+ * bar) or a top-layer Dialog stays on screen while the page scrolls. BEFORE globals stay here too.
3526
+ * - `Page`: in the page's own flow, after its content — where the live site renders an AFTER global
3527
+ * (a footer). In the overlay it stacked under the header, over the top of the page.
3528
+ */
3529
+ declare enum GlobalCanvasLayer {
3530
+ Overlay = "overlay",
3531
+ Page = "page"
3532
+ }
3533
+ interface GlobalLayerSource {
3534
+ type?: string;
3535
+ globalPosition?: string;
3536
+ styleProps?: Readonly<Record<string, unknown>> | null;
3537
+ styleTraits?: ReadonlyArray<{
3538
+ traits?: ReadonlyArray<{
3539
+ name?: string;
3540
+ default?: unknown;
3541
+ }>;
3542
+ }> | null;
3543
+ responsive?: Readonly<Record<string, {
3544
+ styleProps?: Readonly<Record<string, unknown>>;
3545
+ } | undefined>> | null;
3546
+ }
3547
+ /** Fixed at its base or at any breakpoint: it pins to the viewport, so on the canvas it pins to the frame. */
3548
+ declare function isPinnedGlobal(node: GlobalLayerSource): boolean;
3549
+ declare function globalCanvasLayer(node: GlobalLayerSource): GlobalCanvasLayer;
3550
+
3498
3551
  /**
3499
3552
  * node-path — pure ancestor-chain helpers for the builder's node tree.
3500
3553
  *
@@ -3966,5 +4019,5 @@ declare class TextBlockComponentConfig extends ComponentConfig {
3966
4019
  constructor();
3967
4020
  }
3968
4021
 
3969
- 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, BuilderRepeaterComponent, BuilderSpacerComponentConfig, ButtonBlockComponentConfig, CANVAS_EMPTY_IMAGE_LABEL_EN, CANVAS_EMPTY_IMAGE_LABEL_KEY, CANVAS_ROOT_RESET_CSS, COMPOSITE_PRESETS, CanvasDesignStateService, CanvasShowState, CardComponentConfig, ChildLayoutGroupStyleConfig, ComponentConfig, ComponentRegistryService, CompositePresetId, DEFAULT_ESSENTIAL_TRAITS, 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, FormComponentConfig, FormErrorComponentConfig, FormStateService, FormSuccessComponentConfig, GalleryConfig, GroupStyleConfig, HIDDEN_AT_REST_LABEL_KEY, HIDDEN_AT_REST_TYPES, INSERT_REFUSAL_LABEL_KEYS, INTERACTION_STATES, INVERSE_ACTION, IOX_BUILDER_CANVAS, IOX_BUILDER_LABELS, IOX_DATA_SOURCE_ENDPOINTS, InsertRefusal, InteractionEngineService, InteractionPresetRegistryService, IoxBuilderModule, IoxDraggableDirective, IoxDropzoneDirective, LAYOUT_PRESETS, LayerTreeComponent, LayoutGroupStyleConfig, ListGroupStyleConfig, NodeAction, OverlayComponent, OverlayService, PALETTE_PRESET_DEFS, PanelChildComponent, PanelComponent, PanelEventService, PanelEventTypes, PanelTypes, PositionGroupStyleConfig, PresetRegistryService, RELATIONAL_STATES, RELATIONAL_STATE_BASE, REPEATER_SOURCE_PROP, REPEATER_TYPE, ROOT_ESCAPE_PX, ROUTE_ANIMATION_OPTIONS, RenderDirective, RepeaterComponentConfig, RootZone, SCREEN_WIDTH_OPTIONS, STRUCTURAL_STATES, SUPPORTED_STATES, SectionComponent, SectionComponentConfig, SelectionReveal, SizeGroupStyleConfig, SliderContainerComponent, SliderContainerConfig, SliderSlideComponent, SliderSlideConfig, SpacingGroupStyleConfig, StructureFix, StyleCategory, StyleRegistryService, TraitConfig as StyleTraitConfig, SubmitButtonComponentConfig, SymbolRegistryService, TARGETED_STATES, TARGETED_STATE_BASE, TRIGGER_OPTIONS, TextBlockComponentConfig, ToolbarAction, ToolbarComponent, TraitConfig, TraitInputType, TypographyGroupStyleConfig, UNITS_ALL, UNITS_DEG, UNITS_FIXED, UNITS_NO_VW, VALIDATION_STATES, VALIDATION_STATE_CLASS, ViewportService, ZOOM_OPTIONS, arrayItemSchemaFields, arraySchemaFields, auditNodes, bindingLabel, bindingLabels, buildCompositePreset, buildConsentPreset, buildElementStyleSpecimen, buildFieldKindPreset, buildFlavorSpecimen, buildFormPreset, buildFullStyleTraits, buildLayoutPreset, buildPalettePreset, buildPresetStyleTraits, builderCompositeFactory, canFluidise, canvasEmptyImageLabel, collapseColumnsProps, columnCountOf, defaultBuilderLabels, defaultPageSettings, dropTargetLabel, escapesRoot, essentialTraitsFor, findNodeLocation, findParentOf, flattenLayerTree, flattenSchemaFields, fluidiseProps, generateNodeId, insertRefusal, insertRefusalLabel, isHiddenAt, isHiddenAtRest, isSpecimen, markSpecimen, matchesControlSearch, nearestFormNode, nodeAncestorPath, nodeAncestorPathInEither, nodeStyleMap, pathToNode, refreshSubtree, removalRefusal, reorderProps, repeaterSourceAlias, repeaterSubLabel, resolveInsertTarget, resolveTraitControllerType, resolveTraitOptions, rootEscapeBand, rootZone, selectionRevealOf, setStyleTrait, setTrait, stackChildrenProps, summarise, syncEmptyImagePlaceholder, syncNodeDesign, syncNodeInputs, textNode, upsertNodeStyles, visibilityProps, walkNodes, wrapNode };
3970
- export type { AuditFinding, AuditNode, BreakpointPresentation, BuilderClipboard, BuilderLabelResolver, CanvasDesignSnapshot, ComponentEventDef, ComponentMethodDef, ComponentNode, ComponentTrait, CompositePresetDef, ConsentPreset, CreateConfig, Crumb, DesignSpecimenCopy, DragPayload, DsFilterByQueryParam, DsFilterByRouteParam, ElementState, FieldKindDef, FormStateSnapshot, HistoryChange, HistoryEntry, HistoryStep, InsertRefusedEvent, InsertTarget, InteractionAction, InteractionActionType, InteractionPreset, InteractionTrigger, IoxBinding, IoxDataSource, IoxDropEvent, IoxInteraction, IoxSymbol, LayerMoreRows, LayerRepeaterRows, LayerTreeContext, LayerTreeRow, LayoutPresetChildStyles, LayoutPresetDef, NodeRef, OverlayBoxModel, OverlayBoxSpacing, OverlayEntry, PageRouteAnimationSettings, PageScrollSettings, PageSettings, PalettePresetDef, PanelEvent, QuadSizeSegment, RootEscapeMemory, RouteAnimationPreset, ScreenWidthOption, SelectionBadge, StyleMap, StylePart, StylePreset, StyleTrait, StyleTraitGroup, TraitOptionMap, TraitSelectOption, TraitShowCondition, TreePathNode, UpsertTokensOptions, ViewportState, ZoomOption };
4022
+ 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, BuilderRepeaterComponent, BuilderSpacerComponentConfig, ButtonBlockComponentConfig, CANVAS_EMPTY_IMAGE_LABEL_EN, CANVAS_EMPTY_IMAGE_LABEL_KEY, CANVAS_ROOT_RESET_CSS, COMPOSITE_PRESETS, CanvasDesignStateService, CanvasShowState, CardComponentConfig, ChildLayoutGroupStyleConfig, ComponentConfig, ComponentRegistryService, 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, FormComponentConfig, FormErrorComponentConfig, FormStateService, FormSuccessComponentConfig, GLOBALS_AFTER_CLASS, GalleryConfig, GlobalCanvasLayer, GroupStyleConfig, HIDDEN_AT_REST_LABEL_KEY, HIDDEN_AT_REST_TYPES, INSERT_REFUSAL_LABEL_KEYS, INTERACTION_STATES, INVERSE_ACTION, IOX_BUILDER_CANVAS, IOX_BUILDER_LABELS, IOX_DATA_SOURCE_ENDPOINTS, InsertRefusal, InteractionEngineService, InteractionPresetRegistryService, IoxBuilderModule, IoxDraggableDirective, IoxDropzoneDirective, LAYOUT_PRESETS, LayerTreeComponent, LayoutGroupStyleConfig, ListGroupStyleConfig, NodeAction, OverlayComponent, OverlayService, PALETTE_PRESET_DEFS, PanelChildComponent, PanelComponent, PanelEventService, PanelEventTypes, PanelTypes, PositionGroupStyleConfig, PresetRegistryService, RELATIONAL_STATES, RELATIONAL_STATE_BASE, REPEATER_SOURCE_PROP, REPEATER_TYPE, ROOT_ESCAPE_PX, ROUTE_ANIMATION_OPTIONS, RenderDirective, RepeaterComponentConfig, RootZone, SCREEN_WIDTH_OPTIONS, STRUCTURAL_STATES, SUPPORTED_STATES, SectionComponent, SectionComponentConfig, SelectionReveal, SizeGroupStyleConfig, SliderContainerComponent, SliderContainerConfig, SliderSlideComponent, SliderSlideConfig, SpacingGroupStyleConfig, StructureFix, StyleCategory, StyleRegistryService, TraitConfig as StyleTraitConfig, SubmitButtonComponentConfig, SymbolRegistryService, TARGETED_STATES, TARGETED_STATE_BASE, TRIGGER_OPTIONS, TextBlockComponentConfig, ToolbarAction, ToolbarComponent, TraitConfig, TraitInputType, TypographyGroupStyleConfig, UNITS_ALL, UNITS_DEG, UNITS_FIXED, UNITS_NO_VW, VALIDATION_STATES, VALIDATION_STATE_CLASS, ViewportService, ZOOM_OPTIONS, arrayItemSchemaFields, arraySchemaFields, auditNodes, bindingLabel, bindingLabels, buildCompositePreset, buildConsentPreset, buildElementStyleSpecimen, buildFieldKindPreset, buildFlavorSpecimen, buildFormPreset, buildFullStyleTraits, buildLayoutPreset, buildPalettePreset, buildPresetStyleTraits, builderCompositeFactory, canFluidise, canvasEmptyImageLabel, collapseColumnsProps, columnCountOf, defaultBuilderLabels, defaultPageSettings, dropChildren, dropTargetLabel, escapesRoot, essentialTraitsFor, findNodeLocation, findParentOf, flattenLayerTree, flattenSchemaFields, fluidiseProps, generateNodeId, globalCanvasLayer, insertRefusal, insertRefusalLabel, isHiddenAt, isHiddenAtRest, isPinnedGlobal, isSpecimen, markSpecimen, matchesControlSearch, nearestFormNode, nodeAncestorPath, nodeAncestorPathInEither, nodeDescriptor, nodeStyleMap, pathToNode, refreshSubtree, removalRefusal, reorderProps, repeaterSourceAlias, repeaterSubLabel, resolveInsertTarget, resolveTraitControllerType, resolveTraitOptions, rootEscapeBand, rootZone, selectionRevealOf, setStyleTrait, setTrait, shortDescriptor, stackChildrenProps, summarise, syncEmptyImagePlaceholder, syncNodeDesign, syncNodeInputs, textNode, upsertNodeStyles, visibilityProps, walkNodes, wrapNode };
4023
+ export type { AuditFinding, AuditNode, BreakpointPresentation, BuilderClipboard, BuilderLabelResolver, CanvasDesignSnapshot, ComponentEventDef, ComponentMethodDef, ComponentNode, ComponentTrait, CompositePresetDef, ConsentPreset, CreateConfig, Crumb, DesignSpecimenCopy, DragPayload, DsFilterByQueryParam, DsFilterByRouteParam, ElementState, FieldKindDef, FormStateSnapshot, GlobalLayerSource, HistoryChange, HistoryEntry, HistoryStep, InsertRefusedEvent, InsertTarget, InteractionAction, InteractionActionType, InteractionPreset, InteractionTrigger, IoxBinding, IoxDataSource, IoxDropEvent, IoxInteraction, IoxSymbol, LayerMoreRows, LayerRepeaterRows, LayerTreeContext, LayerTreeRow, LayoutPresetChildStyles, LayoutPresetDef, NodeRef, OverlayBoxModel, OverlayBoxSpacing, OverlayEntry, PageRouteAnimationSettings, PageScrollSettings, PageSettings, PalettePresetDef, PanelEvent, QuadSizeSegment, RootEscapeMemory, RouteAnimationPreset, ScreenWidthOption, SelectionBadge, 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": "9.5.4",
3
+ "version": "9.6.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.34.0",
9
+ "@vectoriox/iox-ui": ">=5.35.0",
10
10
  "interactjs": "^1.10.27",
11
11
  "primeng": ">=20.0.0",
12
12
  "swiper": ">=12.0.0",