@vectoriox/iox-ui 4.2.10 → 4.2.12

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,14 +1,13 @@
1
1
  {
2
2
  "name": "@vectoriox/iox-ui",
3
- "version": "4.2.10",
3
+ "version": "4.2.12",
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
  },
9
9
  "dependencies": {
10
- "tslib": "^2.3.0",
11
- "@fristys/masonry": "^1.1.7"
10
+ "tslib": "^2.3.0"
12
11
  },
13
12
  "module": "fesm2022/vectoriox-iox-ui.mjs",
14
13
  "typings": "types/vectoriox-iox-ui.d.ts",
@@ -3,7 +3,6 @@ import { AfterViewInit, EventEmitter, ElementRef, SimpleChanges, OnDestroy, OnIn
3
3
  import { AnimationPlayer, AnimationBuilder } from '@angular/animations';
4
4
  import { Observable, Subject } from 'rxjs';
5
5
  import * as i3 from '@angular/platform-browser/animations';
6
- import * as i3$1 from '@angular/platform-browser';
7
6
  import Lenis from 'lenis';
8
7
  import * as i2 from '@angular/common';
9
8
  import { HttpClient } from '@angular/common/http';
@@ -97,60 +96,6 @@ declare class IoxAosModule {
97
96
  static ɵinj: i0.ɵɵInjectorDeclaration<IoxAosModule>;
98
97
  }
99
98
 
100
- declare class IoxMasonryService {
101
- constructor();
102
- static ɵfac: i0.ɵɵFactoryDeclaration<IoxMasonryService, never>;
103
- static ɵprov: i0.ɵɵInjectableDeclaration<IoxMasonryService>;
104
- }
105
-
106
- declare class IoxMasonryComponent implements OnInit, AfterViewInit {
107
- private _element;
108
- options: any;
109
- useImagesLoaded: Boolean;
110
- updateLayout: Boolean;
111
- layoutComplete: EventEmitter<any[]>;
112
- _msnry: any;
113
- private isAppendAllowed;
114
- constructor(_element: ElementRef);
115
- ngAfterViewInit(): void;
116
- ngOnInit(): void;
117
- ngOnChanges(changes: any): void;
118
- add: (element: HTMLElement) => void;
119
- remove(element: HTMLElement): void;
120
- layout(): void;
121
- static ɵfac: i0.ɵɵFactoryDeclaration<IoxMasonryComponent, never>;
122
- static ɵcmp: i0.ɵɵComponentDeclaration<IoxMasonryComponent, "[iox-masonry], iox-masonry", never, { "options": { "alias": "options"; "required": false; }; "useImagesLoaded": { "alias": "useImagesLoaded"; "required": false; }; "updateLayout": { "alias": "updateLayout"; "required": false; }; }, { "layoutComplete": "layoutComplete"; }, never, ["*"], false, never>;
123
- }
124
- interface IoxMasonryOptions {
125
- columns?: number;
126
- columnBreakpoints?: number;
127
- gutter?: number | string;
128
- initOnImageLoad?: boolean;
129
- loadingClass?: string;
130
- loadedClass?: string;
131
- onInit?: any;
132
- bindOnScroll?: boolean;
133
- useContainerWidth?: boolean;
134
- trackItemSizeChanges?: boolean;
135
- }
136
-
137
- declare class IoxMasonryItemDirective implements OnDestroy, AfterViewInit {
138
- private _element;
139
- private _parent;
140
- private _renderer;
141
- constructor(_element: ElementRef, _parent: IoxMasonryComponent, _renderer: Renderer2);
142
- ngAfterViewInit(): void;
143
- ngOnDestroy(): void;
144
- static ɵfac: i0.ɵɵFactoryDeclaration<IoxMasonryItemDirective, never>;
145
- static ɵdir: i0.ɵɵDirectiveDeclaration<IoxMasonryItemDirective, "[ioxMasonryItem], ioxMasonryItem", never, {}, {}, never, never, false, never>;
146
- }
147
-
148
- declare class IoxMasonryModule {
149
- static ɵfac: i0.ɵɵFactoryDeclaration<IoxMasonryModule, never>;
150
- static ɵmod: i0.ɵɵNgModuleDeclaration<IoxMasonryModule, [typeof IoxMasonryComponent, typeof IoxMasonryItemDirective], [typeof i3$1.BrowserModule], [typeof IoxMasonryComponent, typeof IoxMasonryItemDirective]>;
151
- static ɵinj: i0.ɵɵInjectorDeclaration<IoxMasonryModule>;
152
- }
153
-
154
99
  declare class PageScrollProvider {
155
100
  private zone;
156
101
  private lenis?;
@@ -419,6 +364,13 @@ interface EditableNode$1 {
419
364
  default: any;
420
365
  }>;
421
366
  }
367
+ /**
368
+ * Directive-host Heading: the real `<h1>`…`<h6>` IS the host — no `app-builder-heading`
369
+ * wrapper, no inner/outer split. The tag is chosen by whoever CREATES the component
370
+ * (engine: `createComponent({ hostElement: document.createElement(level) })`; builder:
371
+ * RenderDirective does the same), NOT by an internal ngSwitch. `level` is kept as an input
372
+ * for that creation logic + serialization. Editing (contenteditable) runs in the builder only.
373
+ */
422
374
  declare class BuilderHeadingComponent implements OnInit {
423
375
  private events;
424
376
  private cdr;
@@ -429,14 +381,14 @@ declare class BuilderHeadingComponent implements OnInit {
429
381
  editing: boolean;
430
382
  constructor(events: IBuilderEventEmitter | null, cdr: ChangeDetectorRef);
431
383
  ngOnInit(): void;
432
- onMouseDown(event: MouseEvent): void;
433
- startEdit(event: MouseEvent): void;
384
+ onMouseDown(event: Event): void;
385
+ startEdit(event: Event): void;
434
386
  commitEdit(event: FocusEvent): void;
435
- onKeyDown(event: KeyboardEvent): void;
387
+ onKeyDown(event: Event): void;
436
388
  private isBound;
437
389
  private syncTraitToPanel;
438
390
  static ɵfac: i0.ɵɵFactoryDeclaration<BuilderHeadingComponent, [{ optional: true; }, null]>;
439
- static ɵcmp: i0.ɵɵComponentDeclaration<BuilderHeadingComponent, "app-builder-heading", never, { "content": { "alias": "content"; "required": false; }; "level": { "alias": "level"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; "node": { "alias": "node"; "required": false; }; }, {}, never, never, false, never>;
391
+ static ɵcmp: i0.ɵɵComponentDeclaration<BuilderHeadingComponent, "h1[iox-heading],h2[iox-heading],h3[iox-heading],h4[iox-heading],h5[iox-heading],h6[iox-heading]", never, { "content": { "alias": "content"; "required": false; }; "level": { "alias": "level"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; "node": { "alias": "node"; "required": false; }; }, {}, never, never, false, never>;
440
392
  }
441
393
 
442
394
  interface EditableNode {
@@ -448,6 +400,12 @@ interface EditableNode {
448
400
  default: any;
449
401
  }>;
450
402
  }
403
+ /**
404
+ * Directive-host Text: the real `<p>`/`<span>` IS the host — no `app-text-block` wrapper,
405
+ * no inner/outer split. The tag is chosen by whoever CREATES the component (engine/builder
406
+ * pass `hostElement`), NOT an internal ngSwitch. Content is rich HTML (Quill) → bound via
407
+ * `[innerHTML]` on the host. Editing (contenteditable) runs in the builder only.
408
+ */
451
409
  declare class TextBlockComponent implements OnInit {
452
410
  private events;
453
411
  private cdr;
@@ -461,16 +419,16 @@ declare class TextBlockComponent implements OnInit {
461
419
  editing: boolean;
462
420
  constructor(events: IBuilderEventEmitter | null, cdr: ChangeDetectorRef);
463
421
  ngOnInit(): void;
464
- onPointerDown(event: PointerEvent): void;
465
- onMouseDown(event: MouseEvent): void;
466
- startEdit(event: MouseEvent): void;
467
- onPaste(event: ClipboardEvent): void;
468
- commitEdit(event: FocusEvent): void;
469
- onKeyDown(event: KeyboardEvent): void;
422
+ onPointerDown(event: Event): void;
423
+ onMouseDown(event: Event): void;
424
+ startEdit(event: Event): void;
425
+ onPaste(event: Event): void;
426
+ commitEdit(event: Event): void;
427
+ onKeyDown(event: Event): void;
470
428
  private isBound;
471
429
  private syncTraitToPanel;
472
430
  static ɵfac: i0.ɵɵFactoryDeclaration<TextBlockComponent, [{ optional: true; }, null]>;
473
- static ɵcmp: i0.ɵɵComponentDeclaration<TextBlockComponent, "app-text-block", never, { "content": { "alias": "content"; "required": false; }; "tag": { "alias": "tag"; "required": false; }; "style": { "alias": "style"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; "node": { "alias": "node"; "required": false; }; }, {}, never, never, false, never>;
431
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextBlockComponent, "p[iox-text],span[iox-text]", never, { "content": { "alias": "content"; "required": false; }; "tag": { "alias": "tag"; "required": false; }; "style": { "alias": "style"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; "node": { "alias": "node"; "required": false; }; }, {}, never, never, false, never>;
474
432
  }
475
433
 
476
434
  /** Directive-host section: the `<section>` IS the host — no wrapper, no inner/outer split. */
@@ -521,17 +479,23 @@ declare class ClientRepeaterComponent {
521
479
  static ɵcmp: i0.ɵɵComponentDeclaration<ClientRepeaterComponent, "iox-repeater", never, { "nodeId": { "alias": "nodeId"; "required": false; }; }, {}, never, never, false, never>;
522
480
  }
523
481
 
482
+ /**
483
+ * Directive-host ButtonBlock: the real `<a>`/`<button>` IS the host — no `app-button-block`
484
+ * wrapper, no inner/outer split. The tag is chosen by whoever CREATES the component (engine
485
+ * passes `hostElement`: `<a>` when `tag==='a'`, else `<button>`), NOT an internal `*ngIf`.
486
+ * The `iox-btn-block` class (UA resets: inline-flex, color/font inherit, no border) matches the
487
+ * string renderer and lives in the engine's global styles.scss — kept OFF `:host` so styleProps
488
+ * (`.iox-node-{id}`) can override it. Children render into the host via `childrenHost`.
489
+ */
524
490
  declare class ButtonBlockComponent {
525
491
  tag: 'button' | 'a';
526
492
  href: string;
527
493
  target: '_self' | '_blank';
528
494
  type: 'button' | 'submit' | 'reset';
529
495
  nodeId: string;
530
- buttonHost?: ViewContainerRef;
531
- linkHost?: ViewContainerRef;
532
- get childrenHost(): ViewContainerRef | undefined;
496
+ childrenHost: ViewContainerRef;
533
497
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonBlockComponent, never>;
534
- static ɵcmp: i0.ɵɵComponentDeclaration<ButtonBlockComponent, "app-button-block", never, { "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; }; }, {}, never, never, false, never>;
498
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonBlockComponent, "a[iox-button-block],button[iox-button-block]", never, { "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; }; }, {}, never, never, false, never>;
535
499
  }
536
500
 
537
501
  declare class ClientSliderContainerComponent implements OnInit, AfterViewInit, OnDestroy {
@@ -595,35 +559,31 @@ declare class ClientSliderSlideComponent {
595
559
  }
596
560
 
597
561
  /**
598
- * Client-engine List. Renders a real `<ul>`/`<ol>` (chosen by the `htmlTag` trait) with the
599
- * shared `iox-node-{id}` class, and inserts children into it via `childrenHost`. `:host` uses
600
- * `display: contents` so the `<ul>`/`<ol>` is the effective layout child of its parent.
601
- *
602
- * The host is chosen from a `*ngIf` branch, so its ViewContainerRef only resolves after change
603
- * detection — ClientTreeRendererService detects changes before reading `childrenHost`.
562
+ * Directive-host List: the real `<ul>`/`<ol>` IS the host — no `iox-list` wrapper, no
563
+ * inner/outer split. The tag is chosen by whoever CREATES the component (engine passes
564
+ * `hostElement: document.createElement(htmlTag)`), NOT an internal `*ngIf`. Children render
565
+ * into the host via `childrenHost`. `start`/`reversed` are host attrs (only meaningful on `<ol>`).
604
566
  */
605
567
  declare class ClientListComponent {
606
568
  htmlTag: 'ul' | 'ol';
607
569
  start: string | number;
608
570
  reversed: boolean;
609
571
  nodeId: string;
610
- private olHost?;
611
- private ulHost?;
612
- get childrenHost(): ViewContainerRef | undefined;
572
+ childrenHost: ViewContainerRef;
613
573
  static ɵfac: i0.ɵɵFactoryDeclaration<ClientListComponent, never>;
614
- static ɵcmp: i0.ɵɵComponentDeclaration<ClientListComponent, "iox-list", never, { "htmlTag": { "alias": "htmlTag"; "required": false; }; "start": { "alias": "start"; "required": false; }; "reversed": { "alias": "reversed"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; }, {}, never, never, false, never>;
574
+ static ɵcmp: i0.ɵɵComponentDeclaration<ClientListComponent, "ul[iox-list],ol[iox-list]", never, { "htmlTag": { "alias": "htmlTag"; "required": false; }; "start": { "alias": "start"; "required": false; }; "reversed": { "alias": "reversed"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; }, {}, never, never, false, never>;
615
575
  }
616
576
 
617
577
  /**
618
- * Client-engine List item. Renders a real `<li>` with the shared `iox-node-{id}` class.
619
- * `:host { display: contents }` removes the `iox-list-item` wrapper from the box tree so the
620
- * `<li>` is a proper (marker-bearing) child of the parent `<ul>`/`<ol>`.
578
+ * Directive-host List item: the real `<li>` IS the host — no `iox-list-item` wrapper, no
579
+ * inner/outer split. Children render into the `<li>` via `childrenHost`. Fixed tag (`<li>`),
580
+ * so the engine creates it with `vcr.createComponent` (no `hostElement` needed).
621
581
  */
622
582
  declare class ClientListItemComponent {
623
583
  nodeId: string;
624
584
  childrenHost: ViewContainerRef;
625
585
  static ɵfac: i0.ɵɵFactoryDeclaration<ClientListItemComponent, never>;
626
- static ɵcmp: i0.ɵɵComponentDeclaration<ClientListItemComponent, "iox-list-item", never, { "nodeId": { "alias": "nodeId"; "required": false; }; }, {}, never, never, false, never>;
586
+ static ɵcmp: i0.ɵɵComponentDeclaration<ClientListItemComponent, "li[iox-list-item]", never, { "nodeId": { "alias": "nodeId"; "required": false; }; }, {}, never, never, false, never>;
627
587
  }
628
588
 
629
589
  declare class IoxBuilderComponentsModule {
@@ -710,5 +670,5 @@ declare const DEFAULT_WIDTH_BY_TYPE: Readonly<Record<string, string>>;
710
670
  */
711
671
  declare function renderDefaultDeclarations(type: string, styleProps: Record<string, any>, hasHoverState: boolean): string[];
712
672
 
713
- export { AOSService, AnalyticsService, BuilderButtonComponent, BuilderDividerComponent, BuilderHeadingComponent, BuilderIconComponent, BuilderImageComponent, BuilderLinkComponent, BuilderSpacerComponent, ButtonBlockComponent, CMSClientInfraModule, CardComponent, ClientListComponent, ClientListItemComponent, ClientRepeaterComponent, ClientSliderContainerComponent, ClientSliderSlideComponent, ComponentInstanceRegistryService, ConsentService, ContainerComponent, ContentService, DEFAULT_WIDTH_BY_TYPE, ENVIRONMENT, IOX_BUILDER_EVENTS, IS_PREVIEW, IoxAnimateContainer, IoxAosDirective, IoxAosModule, IoxBuilderComponentsModule, IoxComponentRegistryService, IoxMasonryComponent, IoxMasonryItemDirective, IoxMasonryModule, IoxMasonryService, IoxPageComponent, IoxPageModule, IoxUiModule, LinkedContainerComponent, PageScrollProvider, PrivacyModalComponent, PrivacyModalService, PrivacyModelEvent, SectionComponent, TextBlockComponent, ViewPositionDirective, ViewPositionModule, WebSettingsService, compileDeclarations, renderDefaultDeclarations, rewriteViewportUnits, styleKeyToKebab };
714
- export type { IBuilderEventEmitter, IoxMasonryOptions };
673
+ export { AOSService, AnalyticsService, BuilderButtonComponent, BuilderDividerComponent, BuilderHeadingComponent, BuilderIconComponent, BuilderImageComponent, BuilderLinkComponent, BuilderSpacerComponent, ButtonBlockComponent, CMSClientInfraModule, CardComponent, ClientListComponent, ClientListItemComponent, ClientRepeaterComponent, ClientSliderContainerComponent, ClientSliderSlideComponent, ComponentInstanceRegistryService, ConsentService, ContainerComponent, ContentService, DEFAULT_WIDTH_BY_TYPE, ENVIRONMENT, IOX_BUILDER_EVENTS, IS_PREVIEW, IoxAnimateContainer, IoxAosDirective, IoxAosModule, IoxBuilderComponentsModule, IoxComponentRegistryService, IoxPageComponent, IoxPageModule, IoxUiModule, LinkedContainerComponent, PageScrollProvider, PrivacyModalComponent, PrivacyModalService, PrivacyModelEvent, SectionComponent, TextBlockComponent, ViewPositionDirective, ViewPositionModule, WebSettingsService, compileDeclarations, renderDefaultDeclarations, rewriteViewportUnits, styleKeyToKebab };
674
+ export type { IBuilderEventEmitter };