@vectoriox/iox-builder 2.1.0 → 2.1.2
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/package.json
CHANGED
|
@@ -610,7 +610,11 @@ declare enum PanelEventTypes {
|
|
|
610
610
|
/** Open the Interactions panel in preset-edit mode for the given preset ID. */
|
|
611
611
|
INTERACTION_PRESET_EDIT = "interactionpresetedit",
|
|
612
612
|
/** Fired after an interaction preset is created, updated, or deleted so panels refresh. */
|
|
613
|
-
INTERACTION_PRESETS_CHANGED = "interactionpresetschanged"
|
|
613
|
+
INTERACTION_PRESETS_CHANGED = "interactionpresetschanged",
|
|
614
|
+
/** Open the Interactions panel and EXPAND a specific interaction for editing (data = interaction
|
|
615
|
+
* id). Emitted when the overlay interaction badge is clicked so that badge → "edit THIS
|
|
616
|
+
* interaction", without firing the element's (live) animation. */
|
|
617
|
+
INTERACTION_EDIT = "interactionedit"
|
|
614
618
|
}
|
|
615
619
|
interface PanelEvent {
|
|
616
620
|
type: PanelEventTypes;
|
|
@@ -1316,6 +1320,7 @@ declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDe
|
|
|
1316
1320
|
action: ToolbarAction;
|
|
1317
1321
|
entry: OverlayEntry;
|
|
1318
1322
|
position?: 'before' | 'after';
|
|
1323
|
+
interaction?: IoxInteraction;
|
|
1319
1324
|
}): void;
|
|
1320
1325
|
confirmSaveBlock(): void;
|
|
1321
1326
|
cancelSaveBlock(): void;
|
|
@@ -1482,6 +1487,7 @@ declare class OverlayComponent implements OnInit, OnDestroy {
|
|
|
1482
1487
|
action: ToolbarAction;
|
|
1483
1488
|
entry: OverlayEntry;
|
|
1484
1489
|
position?: "before" | "after";
|
|
1490
|
+
interaction?: IoxInteraction;
|
|
1485
1491
|
}>;
|
|
1486
1492
|
hoverEntry: OverlayEntry | null;
|
|
1487
1493
|
selectEntry: OverlayEntry | null;
|
|
@@ -1534,7 +1540,15 @@ declare class OverlayComponent implements OnInit, OnDestroy {
|
|
|
1534
1540
|
get hasPresetInClipboard(): boolean;
|
|
1535
1541
|
get hasInteractionPresetInClipboard(): boolean;
|
|
1536
1542
|
onEditPreset(event: MouseEvent): void;
|
|
1537
|
-
|
|
1543
|
+
/**
|
|
1544
|
+
* Interaction badge clicked. It must ONLY open the Interactions panel with THIS interaction
|
|
1545
|
+
* active — it must NOT fire the element's (live) animation. `preventDefault` + `stopPropagation`
|
|
1546
|
+
* fully swallow the pointer event so it can never reach the node's live `click` interaction
|
|
1547
|
+
* listener. The specific `ix` is forwarded so the builder can expand it in the panel.
|
|
1548
|
+
*/
|
|
1549
|
+
onEditInteractionPreset(event: MouseEvent, ix?: IoxInteraction): void;
|
|
1550
|
+
/** Swallow the follow-up click on the badge so it can't reach the canvas / a live interaction. */
|
|
1551
|
+
onBadgeClickSwallow(event: MouseEvent): void;
|
|
1538
1552
|
onBadgeContextMenu(event: MouseEvent, type: 'style' | 'interaction', ix?: IoxInteraction): void;
|
|
1539
1553
|
onBadgeCopy(): void;
|
|
1540
1554
|
onBadgeEdit(): void;
|
|
@@ -1782,7 +1796,22 @@ declare class BuilderRepeaterComponent implements OnInit, OnDestroy {
|
|
|
1782
1796
|
static ɵcmp: i0.ɵɵComponentDeclaration<BuilderRepeaterComponent, "app-builder-repeater", never, { "children": { "alias": "children"; "required": false; }; "style": { "alias": "style"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; "dropListId": { "alias": "dropListId"; "required": false; }; "source": { "alias": "source"; "required": false; }; "limit": { "alias": "limit"; "required": false; }; }, { "childClick": "childClick"; "childMouseEnter": "childMouseEnter"; "childMouseLeave": "childMouseLeave"; }, never, never, false, never>;
|
|
1783
1797
|
}
|
|
1784
1798
|
|
|
1799
|
+
/**
|
|
1800
|
+
* Directive-host ButtonBlock (wrapper collapse, task 9c). The real `<button>`/`<a>` IS the host —
|
|
1801
|
+
* chosen by RenderDirective via `hostElement` from the `tag` trait (`variableTag`), NOT an internal
|
|
1802
|
+
* `<button>` in the template. This matches the SSR engine's `button[iox-button-block]` component and
|
|
1803
|
+
* every other collapsed builder component (Container/Section/List/…): ONE element per node carrying
|
|
1804
|
+
* BOTH `iox-outer-{id}` (margin/width) + `iox-node-{id}` (visual props). Previously this component
|
|
1805
|
+
* kept the OLD pattern — a custom-element selector plus a template that rendered its own
|
|
1806
|
+
* `<button class="button-block-root">` — so RenderDirective's host `<button>` (iox-outer) wrapped a
|
|
1807
|
+
* second `<button>` (iox-node): button-in-button, and width (outer) + aspect-ratio (inner) split
|
|
1808
|
+
* across two elements so aspect-ratio never resolved. Collapsing to the single host fixes both.
|
|
1809
|
+
*
|
|
1810
|
+
* The `button`/`a` UA resets (border, background, text-decoration) live in the builder app's global
|
|
1811
|
+
* styles.scss, kept OFF `:host` so styleProps (`.iox-node-{id}`) can override them.
|
|
1812
|
+
*/
|
|
1785
1813
|
declare class BuilderButtonBlockComponent implements OnInit, OnDestroy {
|
|
1814
|
+
private elRef;
|
|
1786
1815
|
private dragEngine;
|
|
1787
1816
|
private cdr;
|
|
1788
1817
|
children: ComponentNode[];
|
|
@@ -1798,12 +1827,12 @@ declare class BuilderButtonBlockComponent implements OnInit, OnDestroy {
|
|
|
1798
1827
|
childClick: EventEmitter<any>;
|
|
1799
1828
|
childMouseEnter: EventEmitter<any>;
|
|
1800
1829
|
childMouseLeave: EventEmitter<void>;
|
|
1801
|
-
constructor(dragEngine: DragEngineService, cdr: ChangeDetectorRef);
|
|
1830
|
+
constructor(elRef: ElementRef<HTMLElement>, dragEngine: DragEngineService, cdr: ChangeDetectorRef);
|
|
1802
1831
|
ngOnInit(): void;
|
|
1803
1832
|
ngOnDestroy(): void;
|
|
1804
1833
|
onDrop(event: IoxDropEvent): void;
|
|
1805
1834
|
static ɵfac: i0.ɵɵFactoryDeclaration<BuilderButtonBlockComponent, never>;
|
|
1806
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BuilderButtonBlockComponent, "
|
|
1835
|
+
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>;
|
|
1807
1836
|
}
|
|
1808
1837
|
|
|
1809
1838
|
declare class SliderContainerComponent implements OnInit, AfterViewInit, OnChanges, OnDestroy {
|