@vectoriox/iox-builder 11.4.0 → 11.5.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
|
@@ -906,7 +906,8 @@ declare class CanvasDesignStateService {
|
|
|
906
906
|
* (R2); a free-standing overlay on the path is pinned open until it is closed (A4).
|
|
907
907
|
*/
|
|
908
908
|
setSelectionPath(path: ReadonlyArray<ComponentNode>): void;
|
|
909
|
-
/** Closed on the canvas (its X, its backdrop, the eye): no longer pinned
|
|
909
|
+
/** Closed on the canvas (its X, its backdrop, the eye): no longer pinned, switched open or revealed by the
|
|
910
|
+
* selection — selecting into it again reveals it again. */
|
|
910
911
|
dismiss(nodeId: string | null | undefined): void;
|
|
911
912
|
/** The switcher's choice for one part (null = back to the saved default). */
|
|
912
913
|
setShown(nodeId: string, state: CanvasShowState | null): void;
|
|
@@ -982,6 +983,9 @@ declare enum PanelEventTypes {
|
|
|
982
983
|
* through also runs. This event is that path for code outside `BuilderComponent` itself,
|
|
983
984
|
* mirroring what `onTreeNodeSelect`/`onCrumbSelect` already do internally. */
|
|
984
985
|
SELECT_NODE = "selectnode",
|
|
986
|
+
/** A canvas Dialog closed while the selection sat in it (data = { dialogId }): the builder moves the selection
|
|
987
|
+
* to the dialog's opener (the menu button), else clears it — never left on an element leaving the DOM. */
|
|
988
|
+
DIALOG_CLOSED_OVER_SELECTION = "dialogclosedoverselection",
|
|
985
989
|
/** A panel rewrote a node's SUBTREE in place — its children (a Card's Parts), its layout styles (Card ▸
|
|
986
990
|
* Layout), a part's element style or scheme. Carries `{ node }`. The builder re-renders the subtree,
|
|
987
991
|
* re-registers every node's rules and design classes, refreshes a Repeater holding it, and records ONE
|
|
@@ -2435,6 +2439,8 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
|
|
|
2435
2439
|
*/
|
|
2436
2440
|
private autoFitViewport;
|
|
2437
2441
|
selectPanel(panel: string): void;
|
|
2442
|
+
/** A new element was selected: keep the element panel that is open, else open Styles (`panelForSelection`). */
|
|
2443
|
+
private selectPanelForElement;
|
|
2438
2444
|
handleClick(event: any): void;
|
|
2439
2445
|
/**
|
|
2440
2446
|
* Make / Remove global moved `node` between the page and the globals: keep it selected in its new place,
|
|
@@ -2446,6 +2452,13 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
|
|
|
2446
2452
|
handleMouseEnter(event: any): void;
|
|
2447
2453
|
handleMouseLeave(): void;
|
|
2448
2454
|
handleCanvasClick(): void;
|
|
2455
|
+
/**
|
|
2456
|
+
* The canvas Dialog the selection sat in closed (its Close, the backdrop, the eye): the selection moves to its
|
|
2457
|
+
* opener — the menu button that opened the drawer — or, when nothing opens it, off the canvas. Never left on an
|
|
2458
|
+
* element that is leaving the DOM (its chrome drew at the viewport's corner), and never on the dialog itself,
|
|
2459
|
+
* which selecting would open again.
|
|
2460
|
+
*/
|
|
2461
|
+
private selectAfterDialogClosed;
|
|
2449
2462
|
/** Breadcrumb crumb clicked — select that ancestor. Mirrors a layer-tree click. */
|
|
2450
2463
|
onCrumbSelect(node: ComponentNode): void;
|
|
2451
2464
|
/**
|
|
@@ -3220,6 +3233,7 @@ declare class BuilderDialogComponent implements OnInit, OnDestroy {
|
|
|
3220
3233
|
private overlayService;
|
|
3221
3234
|
private cdr;
|
|
3222
3235
|
private designState;
|
|
3236
|
+
private panelEvents;
|
|
3223
3237
|
children: ComponentNode[];
|
|
3224
3238
|
nodeId: string;
|
|
3225
3239
|
dropListId: string;
|
|
@@ -3231,6 +3245,9 @@ declare class BuilderDialogComponent implements OnInit, OnDestroy {
|
|
|
3231
3245
|
childMouseLeave: EventEmitter<void>;
|
|
3232
3246
|
/** Canvas-only visibility. Never serialised; the live site always starts closed. */
|
|
3233
3247
|
designOpen: boolean;
|
|
3248
|
+
/** The exit is playing: still rendered, already closed for every action and the eye. */
|
|
3249
|
+
private closing;
|
|
3250
|
+
private stageRef?;
|
|
3234
3251
|
/** Opened by an action on the canvas (the canvas is a live runtime): stays until something closes it. */
|
|
3235
3252
|
private runtimeOpen;
|
|
3236
3253
|
/** Closed by its X / backdrop while the selection or the switcher still shows it: hidden until either changes. */
|
|
@@ -3238,11 +3255,18 @@ declare class BuilderDialogComponent implements OnInit, OnDestroy {
|
|
|
3238
3255
|
get placementValue(): string;
|
|
3239
3256
|
private selectSub?;
|
|
3240
3257
|
private stateSub?;
|
|
3241
|
-
constructor(dragEngine: DragEngineService, instanceRegistry: ComponentInstanceRegistryService, overlayService: OverlayService, cdr: ChangeDetectorRef, designState: CanvasDesignStateService | null);
|
|
3258
|
+
constructor(dragEngine: DragEngineService, instanceRegistry: ComponentInstanceRegistryService, overlayService: OverlayService, cdr: ChangeDetectorRef, designState: CanvasDesignStateService | null, panelEvents: PanelEventService | null);
|
|
3259
|
+
/** Open on the canvas right now (an exit that is playing counts as closed). */
|
|
3260
|
+
get isOpen(): boolean;
|
|
3242
3261
|
/** Shown when an action opened it, or the canvas design state shows it (selection inside / switched open). */
|
|
3243
3262
|
private recompute;
|
|
3263
|
+
/** Close with the look's exit motion; the stage leaves the DOM when it has played (now, under reduced motion). */
|
|
3264
|
+
private playExit;
|
|
3265
|
+
private finishExit;
|
|
3244
3266
|
private openRuntime;
|
|
3245
3267
|
private closeRuntime;
|
|
3268
|
+
/** True when the canvas selection is this dialog or a node inside it. */
|
|
3269
|
+
private selectionInside;
|
|
3246
3270
|
ngOnInit(): void;
|
|
3247
3271
|
ngOnDestroy(): void;
|
|
3248
3272
|
/** A click on the stage ITSELF is the backdrop click — children swallow everything else.
|
|
@@ -3253,7 +3277,7 @@ declare class BuilderDialogComponent implements OnInit, OnDestroy {
|
|
|
3253
3277
|
onCloseClick(event: MouseEvent): void;
|
|
3254
3278
|
onBackdrop(): void;
|
|
3255
3279
|
onDrop(event: IoxDropEvent): void;
|
|
3256
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BuilderDialogComponent, [null, null, null, null, { optional: true; }]>;
|
|
3280
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BuilderDialogComponent, [null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
3257
3281
|
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>;
|
|
3258
3282
|
}
|
|
3259
3283
|
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vectoriox/iox-builder",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.5.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.
|
|
9
|
+
"@vectoriox/iox-ui": ">=5.66.1",
|
|
10
10
|
"interactjs": "^1.10.27",
|
|
11
11
|
"primeng": ">=20.0.0",
|
|
12
12
|
"swiper": ">=12.0.0",
|