@vectoriox/iox-builder 2.1.0 → 2.1.1

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectoriox/iox-builder",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -1782,7 +1782,22 @@ declare class BuilderRepeaterComponent implements OnInit, OnDestroy {
1782
1782
  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
1783
  }
1784
1784
 
1785
+ /**
1786
+ * Directive-host ButtonBlock (wrapper collapse, task 9c). The real `<button>`/`<a>` IS the host —
1787
+ * chosen by RenderDirective via `hostElement` from the `tag` trait (`variableTag`), NOT an internal
1788
+ * `<button>` in the template. This matches the SSR engine's `button[iox-button-block]` component and
1789
+ * every other collapsed builder component (Container/Section/List/…): ONE element per node carrying
1790
+ * BOTH `iox-outer-{id}` (margin/width) + `iox-node-{id}` (visual props). Previously this component
1791
+ * kept the OLD pattern — a custom-element selector plus a template that rendered its own
1792
+ * `<button class="button-block-root">` — so RenderDirective's host `<button>` (iox-outer) wrapped a
1793
+ * second `<button>` (iox-node): button-in-button, and width (outer) + aspect-ratio (inner) split
1794
+ * across two elements so aspect-ratio never resolved. Collapsing to the single host fixes both.
1795
+ *
1796
+ * The `button`/`a` UA resets (border, background, text-decoration) live in the builder app's global
1797
+ * styles.scss, kept OFF `:host` so styleProps (`.iox-node-{id}`) can override them.
1798
+ */
1785
1799
  declare class BuilderButtonBlockComponent implements OnInit, OnDestroy {
1800
+ private elRef;
1786
1801
  private dragEngine;
1787
1802
  private cdr;
1788
1803
  children: ComponentNode[];
@@ -1798,12 +1813,12 @@ declare class BuilderButtonBlockComponent implements OnInit, OnDestroy {
1798
1813
  childClick: EventEmitter<any>;
1799
1814
  childMouseEnter: EventEmitter<any>;
1800
1815
  childMouseLeave: EventEmitter<void>;
1801
- constructor(dragEngine: DragEngineService, cdr: ChangeDetectorRef);
1816
+ constructor(elRef: ElementRef<HTMLElement>, dragEngine: DragEngineService, cdr: ChangeDetectorRef);
1802
1817
  ngOnInit(): void;
1803
1818
  ngOnDestroy(): void;
1804
1819
  onDrop(event: IoxDropEvent): void;
1805
1820
  static ɵfac: i0.ɵɵFactoryDeclaration<BuilderButtonBlockComponent, never>;
1806
- static ɵcmp: i0.ɵɵComponentDeclaration<BuilderButtonBlockComponent, "app-builder-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>;
1821
+ 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
1822
  }
1808
1823
 
1809
1824
  declare class SliderContainerComponent implements OnInit, AfterViewInit, OnChanges, OnDestroy {