ctt-babylon 0.26.43 → 0.26.45

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.
@@ -1,19 +1,32 @@
1
- import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { BabylonMultimediaI, BabylonTextInfoI } from '../../../interfaces';
3
3
  import * as i0 from "@angular/core";
4
- export declare class BabylonSliSlectImgTxtCtaComponent implements AfterViewInit, OnDestroy {
4
+ export declare class BabylonSliSlectImgTxtCtaComponent implements OnInit, AfterViewInit, OnDestroy {
5
5
  private platformId;
6
+ private cdr;
6
7
  texts?: BabylonTextInfoI;
7
8
  multimedia?: BabylonMultimediaI;
8
- lists?: any;
9
- slider: ElementRef<HTMLDivElement>;
9
+ lists?: any[];
10
+ slider?: ElementRef<HTMLDivElement>;
10
11
  private autoplayInterval;
11
- tagName: string;
12
+ readonly baseTag = "slislectimgtxtcta";
13
+ selectedIndex: number;
12
14
  activeSlideIndex: number;
13
15
  get currentSlide(): any;
14
- constructor(platformId: Object);
16
+ canPrev: boolean;
17
+ canNext: boolean;
18
+ constructor(platformId: Object, cdr: ChangeDetectorRef);
19
+ ngOnInit(): void;
15
20
  ngAfterViewInit(): void;
16
- getImagesByTag(tagName: string): import("../../../interfaces").BabylonImageI[];
21
+ onResize(): void;
22
+ updateArrows(): void;
23
+ /**
24
+ * Devuelve las imágenes del item seleccionado (tag + índice).
25
+ * Si no hay lists o no existen imágenes con ese índice,
26
+ * devuelve las del tag base (sin cambiar al usar el select).
27
+ */
28
+ getImages(): any[];
29
+ onSelectChange(event: Event): void;
17
30
  onScroll(event: Event): void;
18
31
  scroll(direction: number): void;
19
32
  private startAutoplay;
@@ -1,9 +1,22 @@
1
+ import { OnChanges } from '@angular/core';
2
+ import { BabylonButtonI, BabylonMultimediaI, BabylonTextInfoI } from '../../../../interfaces';
1
3
  import { SliC2ImgTxtCtaV3Content } from './sli-c2-img-txt-cta-v3.interfaces';
2
4
  import * as i0 from "@angular/core";
3
- export declare class SliC2ImgTxtCtaV3Component {
5
+ export declare class SliC2ImgTxtCtaV3Component implements OnChanges {
4
6
  private readonly fallbackContent;
7
+ /** Contenido manual (uso directo / demo). Si llegan texts/multimedia/buttons se ignora. */
5
8
  content: SliC2ImgTxtCtaV3Content;
9
+ /** Datos mapeados que llegan del CMS */
10
+ texts?: BabylonTextInfoI;
11
+ multimedia?: BabylonMultimediaI;
12
+ buttons?: BabylonButtonI[];
6
13
  reverse?: boolean;
14
+ /** Oculta los SVG grandes decorativos (rewards + corazones) */
15
+ hideSvgs?: boolean;
16
+ view: SliC2ImgTxtCtaV3Content;
17
+ ngOnChanges(): void;
18
+ private buildView;
19
+ private mapButton;
7
20
  static ɵfac: i0.ɵɵFactoryDeclaration<SliC2ImgTxtCtaV3Component, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<SliC2ImgTxtCtaV3Component, "sli-c2-img-txt-cta-v3", never, { "content": { "alias": "content"; "required": false; }; "reverse": { "alias": "reverse"; "required": false; }; }, {}, never, never, true, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<SliC2ImgTxtCtaV3Component, "sli-c2-img-txt-cta-v3", never, { "content": { "alias": "content"; "required": false; }; "texts": { "alias": "texts"; "required": false; }; "multimedia": { "alias": "multimedia"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; "reverse": { "alias": "reverse"; "required": false; }; "hideSvgs": { "alias": "hideSvgs"; "required": false; }; }, {}, never, never, true, never>;
9
22
  }
@@ -1,6 +1,7 @@
1
1
  export interface CtaButtonConfig {
2
2
  label: string;
3
3
  url?: string;
4
+ linkType?: string;
4
5
  target?: '_self' | '_blank';
5
6
  ariaLabel?: string;
6
7
  variant?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ctt-babylon",
3
- "version": "0.26.43",
3
+ "version": "0.26.45",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.8",
6
6
  "@angular/core": "^17.3.8",