ctt-babylon 0.13.34 → 0.13.36

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.
Files changed (29) hide show
  1. package/esm2022/lib/components/core/babylon-he-me-svg-text-cta-mot/babylon-he-me-svg-text-cta-mot.component.mjs +104 -0
  2. package/esm2022/lib/components/core/babylon-he-me-svg-text-cta-mot/index.mjs +2 -0
  3. package/esm2022/lib/components/core/babylon-sli-c3-svg-vid-cta/babylon-sli-c3-svg-vid-cta.component.mjs +98 -0
  4. package/esm2022/lib/components/core/babylon-sli-c3-svg-vid-cta/index.mjs +2 -0
  5. package/esm2022/lib/components/core/index.mjs +3 -1
  6. package/esm2022/lib/components/external/core/c2-txt-cta-des/c2-txt-cta-des.component.mjs +3 -3
  7. package/esm2022/lib/components/external/core/c2-txt-img-v2/c2-txt-img-v2.component.mjs +86 -0
  8. package/esm2022/lib/components/external/core/c2-txt-img-v2/c2-txt-img-v2.content.json +29 -0
  9. package/esm2022/lib/components/external/core/c2-txt-img-v2/c2-txt-img-v2.interfaces.mjs +2 -0
  10. package/esm2022/lib/components/external/core/c2-txt-img-v2/index.mjs +2 -0
  11. package/esm2022/lib/components/external/core/index.mjs +2 -1
  12. package/esm2022/lib/components/external/core/lis-c2-txt-img/lis-c2-txt-img.component.mjs +51 -93
  13. package/esm2022/lib/components/external/core/lis-c2-txt-img-svg-c/lis-c2-txt-img-svg-c.component.mjs +3 -3
  14. package/esm2022/lib/components/external/core/sli-c2-txt-img-svg-c/sli-c2-txt-img-svg-c.component.mjs +3 -3
  15. package/esm2022/lib/directives/sliders/swiper-init.directive.mjs +215 -0
  16. package/fesm2022/ctt-babylon.mjs +628 -151
  17. package/fesm2022/ctt-babylon.mjs.map +1 -1
  18. package/lib/components/core/babylon-he-me-svg-text-cta-mot/babylon-he-me-svg-text-cta-mot.component.d.ts +22 -0
  19. package/lib/components/core/babylon-he-me-svg-text-cta-mot/index.d.ts +1 -0
  20. package/lib/components/core/babylon-sli-c3-svg-vid-cta/babylon-sli-c3-svg-vid-cta.component.d.ts +14 -0
  21. package/lib/components/core/babylon-sli-c3-svg-vid-cta/index.d.ts +1 -0
  22. package/lib/components/core/index.d.ts +2 -0
  23. package/lib/components/external/core/c2-txt-img-v2/c2-txt-img-v2.component.d.ts +19 -0
  24. package/lib/components/external/core/c2-txt-img-v2/c2-txt-img-v2.interfaces.d.ts +14 -0
  25. package/lib/components/external/core/c2-txt-img-v2/index.d.ts +1 -0
  26. package/lib/components/external/core/index.d.ts +1 -0
  27. package/lib/components/external/core/lis-c2-txt-img/lis-c2-txt-img.component.d.ts +19 -17
  28. package/lib/directives/sliders/swiper-init.directive.d.ts +14 -0
  29. package/package.json +1 -1
@@ -0,0 +1,22 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { MatDialog } from '@angular/material/dialog';
3
+ import { BabylonButtonI } from '../../../interfaces';
4
+ import * as i0 from "@angular/core";
5
+ export declare class BabylonHeMeSvgTextCtaMotComponent {
6
+ private readonly dialog;
7
+ private document;
8
+ private platformId;
9
+ mainHeader: ElementRef<HTMLElement>;
10
+ modalMenu: ElementRef<HTMLElement>;
11
+ menu?: BabylonButtonI[];
12
+ constructor(dialog: MatDialog, document: Document, platformId: Object);
13
+ private get isBrowser();
14
+ onWindowScroll(): void;
15
+ openModal(modalName: string): void;
16
+ closeModal(modalName: string): void;
17
+ handleOpenFromEvent(event: Event): void;
18
+ handleCloseFromEvent(event: Event): void;
19
+ openDiscoverModal(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<BabylonHeMeSvgTextCtaMotComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<BabylonHeMeSvgTextCtaMotComponent, "lib-babylon-he-me-svg-text-cta-mot", never, { "menu": { "alias": "menu"; "required": false; }; }, {}, never, never, true, never>;
22
+ }
@@ -0,0 +1 @@
1
+ export * from './babylon-he-me-svg-text-cta-mot.component';
@@ -0,0 +1,14 @@
1
+ import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BabylonSliC3SvgVidCtaComponent implements AfterViewInit, OnDestroy {
4
+ private host;
5
+ private platformId;
6
+ private cleanupFns;
7
+ constructor(host: ElementRef<HTMLElement>, platformId: object);
8
+ ngAfterViewInit(): void;
9
+ ngOnDestroy(): void;
10
+ private initHoverEmbeds;
11
+ private setupHoverIframe;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<BabylonSliC3SvgVidCtaComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<BabylonSliC3SvgVidCtaComponent, "lib-babylon-sli-c3-svg-vid-cta", never, {}, {}, never, never, true, never>;
14
+ }
@@ -0,0 +1 @@
1
+ export * from './babylon-sli-c3-svg-vid-cta.component';
@@ -49,6 +49,7 @@ export * from './babylon-global-modal';
49
49
  export * from './babylon-gr-c2-img';
50
50
  export * from './babylon-grid-gallery';
51
51
  export * from './babylon-guests-popup';
52
+ export * from './babylon-he-me-svg-text-cta-mot';
52
53
  export * from './babylon-he-svg-list';
53
54
  export * from './babylon-head-intro';
54
55
  export * from './babylon-header-book-show';
@@ -122,6 +123,7 @@ export * from './babylon-rooms-slider';
122
123
  export * from './babylon-services-slider';
123
124
  export * from './babylon-simple-img-info';
124
125
  export * from './babylon-sli-c1-img-text';
126
+ export * from './babylon-sli-c3-svg-vid-cta';
125
127
  export * from './babylon-sli-c5-img-txt';
126
128
  export * from './babylon-slider-box';
127
129
  export * from './babylon-slider-img-static';
@@ -0,0 +1,19 @@
1
+ import { AfterViewInit, OnDestroy } from '@angular/core';
2
+ import { C2TxtImgV2Content } from './c2-txt-img-v2.interfaces';
3
+ import * as i0 from "@angular/core";
4
+ export declare class C2TxtImgV2Component implements AfterViewInit, OnDestroy {
5
+ private readonly fallbackContent;
6
+ content: C2TxtImgV2Content;
7
+ private faqSection?;
8
+ private resizeTimeoutId?;
9
+ private mutationObserver?;
10
+ private readonly handleResize;
11
+ ngAfterViewInit(): void;
12
+ ngOnDestroy(): void;
13
+ trackByIndex(index: number): number;
14
+ private moveTopPanel;
15
+ private initializeResizeListener;
16
+ private initializeMutationObserver;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<C2TxtImgV2Component, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<C2TxtImgV2Component, "c2-txt-img-v2", never, { "content": { "alias": "content"; "required": false; }; }, {}, never, never, true, never>;
19
+ }
@@ -0,0 +1,14 @@
1
+ export interface C2TxtImgV2MediaAsset {
2
+ url: string;
3
+ alt: string;
4
+ }
5
+ export interface FactItem {
6
+ title?: string;
7
+ description: string;
8
+ }
9
+ export interface C2TxtImgV2Content {
10
+ titleHtml: string;
11
+ image: C2TxtImgV2MediaAsset;
12
+ bottomText: string;
13
+ facts: FactItem[];
14
+ }
@@ -0,0 +1 @@
1
+ export * from './c2-txt-img-v2.component';
@@ -1,6 +1,7 @@
1
1
  export * from './c2-img-txt-svg';
2
2
  export * from './c2-txt-cta';
3
3
  export * from './c2-txt-cta-des';
4
+ export * from './c2-txt-img-v2';
4
5
  export * from './c2-txt-rrss';
5
6
  export * from './c2-txt-svg-v2';
6
7
  export * from './c3-txt-img-cta';
@@ -35,44 +35,46 @@ export declare class LisC2TxtImgComponent implements AfterViewInit, OnChanges, O
35
35
  roomsModal?: ElementRef<HTMLElement>;
36
36
  /** null => Todas */
37
37
  selectedFilterId: number | null;
38
- /** Dentro de habitaciones: '__all__' o una clave concreta */
39
- selectedRoomKey: string | null;
40
38
  private galleryBound;
41
39
  constructor(host: ElementRef<HTMLElement>);
42
40
  ngAfterViewInit(): void;
43
41
  ngOnChanges(changes: SimpleChanges): void;
44
42
  ngOnDestroy(): void;
45
- /** ✅ filtro Habitaciones */
43
+ /** ✅ ID del filtro padre "Habitaciones" */
46
44
  get roomsFilterId(): number | null;
47
- /** ✅ existe filtro habitaciones */
45
+ /** ✅ Existe filtro padre habitaciones */
48
46
  get hasRoomsFilter(): boolean;
49
- /** ✅ para marcar Todas (si existe) */
47
+ /** ✅ ID del filtro "Todas" */
50
48
  private get allFilterId();
51
49
  private setDefaultSelection;
52
- /** ✅ util: sacar label humano para habitaciones */
53
- private getRoomLabelFromImage;
54
- get roomOptions(): {
55
- id: string;
56
- label: string;
57
- }[];
58
- /** ✅ lista filtrada real */
50
+ /** * MODIFICADO: Obtiene los filtros reales de habitaciones
51
+ * Filtra aquellos items que tengan la propiedad `room: true`
52
+ */
53
+ get roomOptions(): GalleryFilterItem[];
54
+ /** ✅ Lógica de filtrado actualizada */
59
55
  get filteredImages(): GalleryImageItem[];
60
- /** ✅ click filtro (desktop) */
56
+ /** ✅ Click filtro (desktop/general) */
61
57
  filterBy(filter: GalleryFilterItem): void;
62
- /** ✅ click filtro (modal categorías) */
58
+ /** ✅ Click desde el modal de categorías (mobile) */
63
59
  filterFromModal(filter: GalleryFilterItem): void;
64
- /** ✅ seleccionar habitación (modal rooms) */
65
- selectRoom(roomKey: string): void;
60
+ /** * MODIFICADO: Selección de habitación desde el modal
61
+ * Ahora recibe el ID del filtro real, no un string
62
+ */
63
+ selectRoom(filterId: number): void;
66
64
  openCategoriesModal(): void;
67
65
  openRoomsModal(): void;
68
66
  closeModals(): void;
67
+ /** * Checkea si el filtro está activo.
68
+ * Si es habitaciones, está activo si el seleccionado es el padre O cualquiera de sus hijos.
69
+ */
69
70
  isFilterActive(filter: GalleryFilterItem): boolean;
70
71
  getFancyboxGroup(): string;
71
72
  trackByIndex(index: number): number;
72
- /** Fancybox */
73
73
  private bindGallery;
74
74
  private unbindGallery;
75
75
  private openInlineModal;
76
+ get categoryOptions(): GalleryFilterItem[];
77
+ get desktopFilterOptions(): GalleryFilterItem[];
76
78
  static ɵfac: i0.ɵɵFactoryDeclaration<LisC2TxtImgComponent, never>;
77
79
  static ɵcmp: i0.ɵɵComponentDeclaration<LisC2TxtImgComponent, "lis-c2-txt-img", never, { "content": { "alias": "content"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "texts": { "alias": "texts"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; }, {}, never, never, true, never>;
78
80
  }
@@ -0,0 +1,14 @@
1
+ import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SwiperInitDirective implements AfterViewInit, OnDestroy {
4
+ private host;
5
+ private platformId;
6
+ private swiperInstance?;
7
+ private arrowCleanupFns;
8
+ constructor(host: ElementRef<HTMLElement>, platformId: object);
9
+ ngAfterViewInit(): Promise<void>;
10
+ ngOnDestroy(): void;
11
+ private initArrowPositioning;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwiperInitDirective, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SwiperInitDirective, ".js-active-slider,[appSwiperInit]", never, {}, {}, never, never, true, never>;
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ctt-babylon",
3
- "version": "0.13.34",
3
+ "version": "0.13.36",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.8",
6
6
  "@angular/core": "^17.3.8",