@vectoriox/iox-builder 4.25.0 → 4.27.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
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { ComponentRef, Type, ChangeDetectorRef, OnInit, AfterViewInit, OnChanges, OnDestroy, EventEmitter, ElementRef, ApplicationRef, SimpleChanges, ViewContainerRef, Injector, EnvironmentInjector, InjectionToken, TemplateRef, AfterContentInit, QueryList } from '@angular/core';
|
|
3
|
-
import * as
|
|
4
|
-
import { ResponsiveOverrides, RelativeSourceSpec, Breakpoint, PageStyleSettings, FormRenderState, DataSourceEndpoints } from '@vectoriox/iox-ui';
|
|
3
|
+
import * as i30 from '@vectoriox/iox-ui';
|
|
4
|
+
import { ResponsiveOverrides, RelativeSourceSpec, Breakpoint, PageStyleSettings, FormRenderState, DataSourceEndpoints, ComponentInstanceRegistryService } from '@vectoriox/iox-ui';
|
|
5
5
|
export { ComponentInstanceRegistryService, IoxContextSlot, PageStyleSettings, SetContextParams, VIRTUAL_TRAIT_KEYS, composeVirtualTraits } from '@vectoriox/iox-ui';
|
|
6
6
|
import * as rxjs from 'rxjs';
|
|
7
7
|
import { Subject, Subscription, BehaviorSubject, Observable } from 'rxjs';
|
|
8
8
|
import * as _vectoriox_iox_builder from '@vectoriox/iox-builder';
|
|
9
|
-
import * as
|
|
9
|
+
import * as i25 from 'primeng/popover';
|
|
10
10
|
import { Popover } from 'primeng/popover';
|
|
11
11
|
import { HttpClient } from '@angular/common/http';
|
|
12
|
-
import * as
|
|
12
|
+
import * as i22 from '@angular/cdk/drag-drop';
|
|
13
13
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
16
|
-
import * as
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
19
|
-
import * as
|
|
20
|
-
import * as
|
|
21
|
-
import * as
|
|
14
|
+
import * as i20 from '@angular/common';
|
|
15
|
+
import * as i21 from '@angular/forms';
|
|
16
|
+
import * as i23 from 'primeng/accordion';
|
|
17
|
+
import * as i24 from 'primeng/button';
|
|
18
|
+
import * as i26 from 'primeng/inputtext';
|
|
19
|
+
import * as i27 from 'primeng/select';
|
|
20
|
+
import * as i28 from 'primeng/tooltip';
|
|
21
|
+
import * as i29 from 'primeng/dialog';
|
|
22
22
|
|
|
23
23
|
declare enum StyleCategory {
|
|
24
24
|
Layout = "Layout",
|
|
@@ -131,7 +131,7 @@ interface IoxDataSource {
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
type InteractionTrigger = 'pageLoad' | 'click' | 'hover' | 'viewportEnter' | 'scrollProgress' | 'pageLeave' | 'pageEnter' | 'swiperSlideChange' | 'swiperReachBeginning' | 'swiperReachEnd' | 'swiperAutoplayStart' | 'swiperAutoplayStop' | 'swiperSlideActive' | 'swiperSlideInactive';
|
|
134
|
-
type InteractionActionType = 'fadeIn' | 'fadeOut' | 'moveUp' | 'moveDown' | 'moveLeft' | 'moveRight' | 'scaleIn' | 'scaleOut' | 'rotate' | 'show' | 'hide' | 'toggleVisibility' | 'setContext' | 'clearContext' | 'swiperNext' | 'swiperPrev' | 'swiperGoToSlide' | 'swiperAutoplayStart' | 'swiperAutoplayStop' | 'swiperAutoplayPause';
|
|
134
|
+
type InteractionActionType = 'fadeIn' | 'fadeOut' | 'moveUp' | 'moveDown' | 'moveLeft' | 'moveRight' | 'scaleIn' | 'scaleOut' | 'rotate' | 'show' | 'hide' | 'toggleVisibility' | 'setContext' | 'clearContext' | 'openDialog' | 'closeDialog' | 'toggleDialog' | 'navigate' | 'scrollTo' | 'submitForm' | 'copyToClipboard' | 'swiperNext' | 'swiperPrev' | 'swiperGoToSlide' | 'swiperAutoplayStart' | 'swiperAutoplayStop' | 'swiperAutoplayPause';
|
|
135
135
|
interface InteractionAction {
|
|
136
136
|
type: InteractionActionType;
|
|
137
137
|
/** 'self' targets the node that owns the interaction; otherwise a node ID. */
|
|
@@ -1395,6 +1395,8 @@ declare class InteractionEngineService {
|
|
|
1395
1395
|
private rowItemFor;
|
|
1396
1396
|
/** Resolved data for the canvas, kept current by the repeater as it fetches. */
|
|
1397
1397
|
setContextData(data: Record<string, any>): void;
|
|
1398
|
+
private executeBehaviourAction;
|
|
1399
|
+
private executeDialogAction;
|
|
1398
1400
|
private executeSwiperAction;
|
|
1399
1401
|
private resolveTarget;
|
|
1400
1402
|
private executeAction;
|
|
@@ -1880,6 +1882,12 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
|
|
|
1880
1882
|
private updatePreviewVh;
|
|
1881
1883
|
private initLenis;
|
|
1882
1884
|
private destroyLenis;
|
|
1885
|
+
/**
|
|
1886
|
+
* K5 (actions plan): actions need NAMED targets — the panel lists only labeled nodes, so an
|
|
1887
|
+
* unlabeled Dialog is unpickable. Every insert path labels the node "<Type>" or "<Type> N",
|
|
1888
|
+
* counting existing labels of that family across the whole tree.
|
|
1889
|
+
*/
|
|
1890
|
+
private autoLabel;
|
|
1883
1891
|
addComponent(name: string): void;
|
|
1884
1892
|
onDrop(event: IoxDropEvent): void;
|
|
1885
1893
|
onModeChange(mode: BuilderMode): void;
|
|
@@ -2593,6 +2601,40 @@ declare class BuilderButtonBlockComponent implements OnInit, OnDestroy {
|
|
|
2593
2601
|
static ɵcmp: i0.ɵɵComponentDeclaration<BuilderButtonBlockComponent, "button[iox-button-block],a[iox-button-block]", never, { "children": { "alias": "children"; "required": false; }; "style": { "alias": "style"; "required": false; }; "tag": { "alias": "tag"; "required": false; }; "href": { "alias": "href"; "required": false; }; "target": { "alias": "target"; "required": false; }; "type": { "alias": "type"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; "dropListId": { "alias": "dropListId"; "required": false; }; }, { "childClick": "childClick"; "childMouseEnter": "childMouseEnter"; "childMouseLeave": "childMouseLeave"; }, never, never, false, never>;
|
|
2594
2602
|
}
|
|
2595
2603
|
|
|
2604
|
+
/**
|
|
2605
|
+
* The Dialog's CANVAS twin (actions plan A1b / boards A4–A5). Two render strategies, one model:
|
|
2606
|
+
* the live site uses a real `<dialog>` (top layer); here the overlay is `position: fixed`, which
|
|
2607
|
+
* a transformed ancestor CONTAINS — so it fills the page frame, not the admin viewport, at every
|
|
2608
|
+
* zoom. Closed it renders as a compact chip in flow (A4's "closed later? reopen from the chip"),
|
|
2609
|
+
* and a freshly dropped EMPTY dialog opens itself — you land designing it, not hunting it.
|
|
2610
|
+
* Open/close/toggle actions reach it through the instance registry, same as Swiper's methods.
|
|
2611
|
+
*/
|
|
2612
|
+
declare class BuilderDialogComponent implements OnInit, OnDestroy {
|
|
2613
|
+
private dragEngine;
|
|
2614
|
+
private instanceRegistry;
|
|
2615
|
+
private cdr;
|
|
2616
|
+
children: ComponentNode[];
|
|
2617
|
+
style: {
|
|
2618
|
+
[key: string]: any;
|
|
2619
|
+
};
|
|
2620
|
+
nodeId: string;
|
|
2621
|
+
dropListId: string;
|
|
2622
|
+
closeOnBackdrop: boolean | string;
|
|
2623
|
+
showCloseButton: boolean | string;
|
|
2624
|
+
childClick: EventEmitter<any>;
|
|
2625
|
+
childMouseEnter: EventEmitter<any>;
|
|
2626
|
+
childMouseLeave: EventEmitter<void>;
|
|
2627
|
+
/** Canvas-only visibility. Never serialised; the live site always starts closed. */
|
|
2628
|
+
designOpen: boolean;
|
|
2629
|
+
constructor(dragEngine: DragEngineService, instanceRegistry: ComponentInstanceRegistryService, cdr: ChangeDetectorRef);
|
|
2630
|
+
ngOnInit(): void;
|
|
2631
|
+
ngOnDestroy(): void;
|
|
2632
|
+
onBackdrop(): void;
|
|
2633
|
+
onDrop(event: IoxDropEvent): void;
|
|
2634
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BuilderDialogComponent, never>;
|
|
2635
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BuilderDialogComponent, "app-builder-dialog", never, { "children": { "alias": "children"; "required": false; }; "style": { "alias": "style"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; "dropListId": { "alias": "dropListId"; "required": false; }; "closeOnBackdrop": { "alias": "closeOnBackdrop"; "required": false; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; }; }, { "childClick": "childClick"; "childMouseEnter": "childMouseEnter"; "childMouseLeave": "childMouseLeave"; }, never, never, false, never>;
|
|
2636
|
+
}
|
|
2637
|
+
|
|
2596
2638
|
declare class SliderContainerComponent implements OnInit, AfterViewInit, OnChanges, OnDestroy {
|
|
2597
2639
|
private dragEngine;
|
|
2598
2640
|
private cdr;
|
|
@@ -2881,7 +2923,7 @@ declare class AuditPanelComponent {
|
|
|
2881
2923
|
|
|
2882
2924
|
declare class IoxBuilderModule {
|
|
2883
2925
|
static ɵfac: i0.ɵɵFactoryDeclaration<IoxBuilderModule, never>;
|
|
2884
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IoxBuilderModule, [typeof BuilderComponent, typeof RenderDirective, typeof IoxDraggableDirective, typeof IoxDropzoneDirective, typeof OverlayComponent, typeof ToolbarComponent, typeof SectionComponent, typeof BuilderContainerComponent, typeof BuilderLinkedContainerComponent, typeof BuilderRepeaterComponent, typeof BuilderButtonBlockComponent, typeof SliderContainerComponent, typeof SliderSlideComponent, typeof PanelComponent, typeof PanelChildComponent, typeof LayerTreeComponent, typeof BreadcrumbBarComponent, typeof AuditPanelComponent], [typeof
|
|
2926
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IoxBuilderModule, [typeof BuilderComponent, typeof RenderDirective, typeof IoxDraggableDirective, typeof IoxDropzoneDirective, typeof OverlayComponent, typeof ToolbarComponent, typeof SectionComponent, typeof BuilderContainerComponent, typeof BuilderLinkedContainerComponent, typeof BuilderRepeaterComponent, typeof BuilderButtonBlockComponent, typeof BuilderDialogComponent, typeof SliderContainerComponent, typeof SliderSlideComponent, typeof PanelComponent, typeof PanelChildComponent, typeof LayerTreeComponent, typeof BreadcrumbBarComponent, typeof AuditPanelComponent], [typeof i20.CommonModule, typeof i21.FormsModule, typeof i22.DragDropModule, typeof i23.AccordionModule, typeof i24.ButtonModule, typeof i25.PopoverModule, typeof i26.InputTextModule, typeof i27.SelectModule, typeof i28.TooltipModule, typeof i29.DialogModule, typeof i30.IoxPageModule], [typeof i20.CommonModule, typeof i21.FormsModule, typeof i22.DragDropModule, typeof i23.AccordionModule, typeof i24.ButtonModule, typeof i25.PopoverModule, typeof i26.InputTextModule, typeof i27.SelectModule, typeof i28.TooltipModule, typeof i29.DialogModule, typeof i30.IoxPageModule, typeof BuilderComponent, typeof RenderDirective, typeof IoxDraggableDirective, typeof IoxDropzoneDirective, typeof OverlayComponent, typeof ToolbarComponent, typeof SectionComponent, typeof BuilderContainerComponent, typeof BuilderLinkedContainerComponent, typeof BuilderRepeaterComponent, typeof BuilderButtonBlockComponent, typeof BuilderDialogComponent, typeof SliderContainerComponent, typeof SliderSlideComponent, typeof PanelComponent, typeof PanelChildComponent, typeof LayerTreeComponent, typeof BreadcrumbBarComponent, typeof AuditPanelComponent]>;
|
|
2885
2927
|
static ɵinj: i0.ɵɵInjectorDeclaration<IoxBuilderModule>;
|
|
2886
2928
|
}
|
|
2887
2929
|
|
|
@@ -3100,6 +3142,17 @@ declare function nearestFormNode(path: readonly ComponentNode[] | null | undefin
|
|
|
3100
3142
|
*/
|
|
3101
3143
|
declare function dropTargetLabel(containerName: string | null | undefined, index: number, childCount: number): string;
|
|
3102
3144
|
|
|
3145
|
+
/**
|
|
3146
|
+
* Dialog (actions plan A1b) — an ordinary container whose children are normal nodes, rendered
|
|
3147
|
+
* on the live site as a real `<dialog>` (top layer, free focus trap/Esc) and in the CANVAS as a
|
|
3148
|
+
* fixed-position overlay contained by the transformed frame (a transform is a containing block
|
|
3149
|
+
* for fixed descendants — the deliberate two-strategy split, see actions plan §6a).
|
|
3150
|
+
* Ships CLOSED on the live site always; opened only by the dialog actions.
|
|
3151
|
+
*/
|
|
3152
|
+
declare class DialogComponentConfig extends ComponentConfig {
|
|
3153
|
+
constructor();
|
|
3154
|
+
}
|
|
3155
|
+
|
|
3103
3156
|
declare class BuilderButtonComponentConfig extends ComponentConfig {
|
|
3104
3157
|
constructor();
|
|
3105
3158
|
}
|
|
@@ -3238,5 +3291,5 @@ declare class TextBlockComponentConfig extends ComponentConfig {
|
|
|
3238
3291
|
constructor();
|
|
3239
3292
|
}
|
|
3240
3293
|
|
|
3241
|
-
export { ACTION_TYPE_OPTIONS, AuditCode, AuditPanelComponent, AuditSeverity, BODY_CRUMB_LABEL, BREAKPOINT_PRESENTATION, BUILDER_CANVAS_CONTAINER, BUILDER_CHROME_EN, BackgroundGroupStyleConfig, BorderGroupStyleConfig, BreadcrumbBarComponent, BuilderButtonBlockComponent, BuilderButtonComponentConfig, BuilderClipboardService, BuilderComponent, BuilderContainerComponent, BuilderContainerComponentConfig, BuilderDataSourceService, BuilderDividerComponentConfig, BuilderHeadingComponentConfig, BuilderHistoryService, BuilderIconComponentConfig, BuilderImageComponentConfig, BuilderLinkComponentConfig, BuilderLinkedContainerComponent, BuilderLinkedContainerConfig, BuilderListComponentConfig, BuilderListItemComponentConfig, BuilderMode, BuilderRepeaterComponent, BuilderSpacerComponentConfig, ButtonBlockComponentConfig, CardComponentConfig, ChildLayoutGroupStyleConfig, ComponentConfig, ComponentRegistryService, DEFAULT_ESSENTIAL_TRAITS, DRAG_HANDLE_ATTR, DataSourceRegistryService, DataSourceType, DimensionsGroupStyleConfig, DragEngineService, EASING_OPTIONS, ESSENTIAL_TRAITS_BY_TYPE, EffectsGroupStyleConfig, FIELD_PARTS, FORM_PRESETS, FORM_TYPE, FieldComponentConfig, FieldGroupComponentConfig, FormComponentConfig, FormErrorComponentConfig, FormStateService, FormSuccessComponentConfig, GalleryConfig, GroupStyleConfig, INTERACTION_STATES, INVERSE_ACTION, IOX_BUILDER_LABELS, IOX_DATA_SOURCE_ENDPOINTS, IOX_FONT_MANAGER, InteractionEngineService, InteractionPresetRegistryService, IoxBuilderModule, IoxDraggableDirective, IoxDropzoneDirective, LAYOUT_PRESETS, LayerTreeComponent, LayoutGroupStyleConfig, ListGroupStyleConfig, NodeAction, OverlayComponent, OverlayService, PanelChildComponent, PanelComponent, PanelEventService, PanelEventTypes, PanelTypes, PositionGroupStyleConfig, PresetRegistryService, RELATIONAL_STATES, RELATIONAL_STATE_BASE, ROUTE_ANIMATION_OPTIONS, RenderDirective, RepeaterComponentConfig, SCREEN_WIDTH_OPTIONS, STRUCTURAL_STATES, SUPPORTED_STATES, SectionComponent, SectionComponentConfig, SizeGroupStyleConfig, SliderContainerComponent, SliderContainerConfig, SliderSlideComponent, SliderSlideConfig, SpacingGroupStyleConfig, 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, buildFormPreset, buildFullStyleTraits, buildLayoutPreset, buildPresetStyleTraits, canFluidise, collapseColumnsProps, columnCountOf, defaultBuilderLabels, defaultPageSettings, dropTargetLabel, essentialTraitsFor, findNodeLocation, findParentOf, flattenSchemaFields, fluidiseProps, generateNodeId, isHiddenAt, matchesControlSearch, nearestFormNode, nodeAncestorPath, nodeAncestorPathInEither, reorderProps, resolveInsertTarget, resolveTraitControllerType, resolveTraitOptions, setStyleTrait, stackChildrenProps, summarise, visibilityProps, wrapNode };
|
|
3294
|
+
export { ACTION_TYPE_OPTIONS, AuditCode, AuditPanelComponent, AuditSeverity, BODY_CRUMB_LABEL, BREAKPOINT_PRESENTATION, BUILDER_CANVAS_CONTAINER, BUILDER_CHROME_EN, 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, CardComponentConfig, ChildLayoutGroupStyleConfig, ComponentConfig, ComponentRegistryService, DEFAULT_ESSENTIAL_TRAITS, DRAG_HANDLE_ATTR, DataSourceRegistryService, DataSourceType, DialogComponentConfig, DimensionsGroupStyleConfig, DragEngineService, EASING_OPTIONS, ESSENTIAL_TRAITS_BY_TYPE, EffectsGroupStyleConfig, FIELD_PARTS, FORM_PRESETS, FORM_TYPE, FieldComponentConfig, FieldGroupComponentConfig, FormComponentConfig, FormErrorComponentConfig, FormStateService, FormSuccessComponentConfig, GalleryConfig, GroupStyleConfig, INTERACTION_STATES, INVERSE_ACTION, IOX_BUILDER_LABELS, IOX_DATA_SOURCE_ENDPOINTS, IOX_FONT_MANAGER, InteractionEngineService, InteractionPresetRegistryService, IoxBuilderModule, IoxDraggableDirective, IoxDropzoneDirective, LAYOUT_PRESETS, LayerTreeComponent, LayoutGroupStyleConfig, ListGroupStyleConfig, NodeAction, OverlayComponent, OverlayService, PanelChildComponent, PanelComponent, PanelEventService, PanelEventTypes, PanelTypes, PositionGroupStyleConfig, PresetRegistryService, RELATIONAL_STATES, RELATIONAL_STATE_BASE, ROUTE_ANIMATION_OPTIONS, RenderDirective, RepeaterComponentConfig, SCREEN_WIDTH_OPTIONS, STRUCTURAL_STATES, SUPPORTED_STATES, SectionComponent, SectionComponentConfig, SizeGroupStyleConfig, SliderContainerComponent, SliderContainerConfig, SliderSlideComponent, SliderSlideConfig, SpacingGroupStyleConfig, 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, buildFormPreset, buildFullStyleTraits, buildLayoutPreset, buildPresetStyleTraits, canFluidise, collapseColumnsProps, columnCountOf, defaultBuilderLabels, defaultPageSettings, dropTargetLabel, essentialTraitsFor, findNodeLocation, findParentOf, flattenSchemaFields, fluidiseProps, generateNodeId, isHiddenAt, matchesControlSearch, nearestFormNode, nodeAncestorPath, nodeAncestorPathInEither, reorderProps, resolveInsertTarget, resolveTraitControllerType, resolveTraitOptions, setStyleTrait, stackChildrenProps, summarise, visibilityProps, wrapNode };
|
|
3242
3295
|
export type { AuditFinding, AuditNode, BreakpointPresentation, BuilderClipboard, BuilderLabelResolver, ComponentEventDef, ComponentMethodDef, ComponentNode, ComponentTrait, CreateConfig, Crumb, DragPayload, DsFilterByQueryParam, DsFilterByRouteParam, ElementState, FormPresetDef, FormPresetField, FormStateSnapshot, HistoryEntry, InsertTarget, InteractionAction, InteractionActionType, InteractionPreset, InteractionTrigger, IoxBinding, IoxDataSource, IoxDropEvent, IoxFontManager, IoxInteraction, IoxSymbol, LayoutPresetChildStyles, LayoutPresetDef, NodeRef, OverlayBoxModel, OverlayBoxSpacing, OverlayEntry, PageRouteAnimationSettings, PageScrollSettings, PageSettings, PanelEvent, QuadSizeSegment, RouteAnimationPreset, ScreenWidthOption, SelectionBadge, StyleMap, StylePart, StylePreset, StyleTrait, StyleTraitGroup, TraitOptionMap, TraitSelectOption, TraitShowCondition, TreePathNode, ViewportState, ZoomOption };
|