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.
- package/esm2022/lib/components/core/babylon-he-me-svg-text-cta-mot/babylon-he-me-svg-text-cta-mot.component.mjs +104 -0
- package/esm2022/lib/components/core/babylon-he-me-svg-text-cta-mot/index.mjs +2 -0
- package/esm2022/lib/components/core/babylon-sli-c3-svg-vid-cta/babylon-sli-c3-svg-vid-cta.component.mjs +98 -0
- package/esm2022/lib/components/core/babylon-sli-c3-svg-vid-cta/index.mjs +2 -0
- package/esm2022/lib/components/core/index.mjs +3 -1
- package/esm2022/lib/components/external/core/c2-txt-cta-des/c2-txt-cta-des.component.mjs +3 -3
- package/esm2022/lib/components/external/core/c2-txt-img-v2/c2-txt-img-v2.component.mjs +86 -0
- package/esm2022/lib/components/external/core/c2-txt-img-v2/c2-txt-img-v2.content.json +29 -0
- package/esm2022/lib/components/external/core/c2-txt-img-v2/c2-txt-img-v2.interfaces.mjs +2 -0
- package/esm2022/lib/components/external/core/c2-txt-img-v2/index.mjs +2 -0
- package/esm2022/lib/components/external/core/index.mjs +2 -1
- package/esm2022/lib/components/external/core/lis-c2-txt-img/lis-c2-txt-img.component.mjs +51 -93
- package/esm2022/lib/components/external/core/lis-c2-txt-img-svg-c/lis-c2-txt-img-svg-c.component.mjs +3 -3
- package/esm2022/lib/components/external/core/sli-c2-txt-img-svg-c/sli-c2-txt-img-svg-c.component.mjs +3 -3
- package/esm2022/lib/directives/sliders/swiper-init.directive.mjs +215 -0
- package/fesm2022/ctt-babylon.mjs +628 -151
- package/fesm2022/ctt-babylon.mjs.map +1 -1
- package/lib/components/core/babylon-he-me-svg-text-cta-mot/babylon-he-me-svg-text-cta-mot.component.d.ts +22 -0
- package/lib/components/core/babylon-he-me-svg-text-cta-mot/index.d.ts +1 -0
- package/lib/components/core/babylon-sli-c3-svg-vid-cta/babylon-sli-c3-svg-vid-cta.component.d.ts +14 -0
- package/lib/components/core/babylon-sli-c3-svg-vid-cta/index.d.ts +1 -0
- package/lib/components/core/index.d.ts +2 -0
- package/lib/components/external/core/c2-txt-img-v2/c2-txt-img-v2.component.d.ts +19 -0
- package/lib/components/external/core/c2-txt-img-v2/c2-txt-img-v2.interfaces.d.ts +14 -0
- package/lib/components/external/core/c2-txt-img-v2/index.d.ts +1 -0
- package/lib/components/external/core/index.d.ts +1 -0
- package/lib/components/external/core/lis-c2-txt-img/lis-c2-txt-img.component.d.ts +19 -17
- package/lib/directives/sliders/swiper-init.directive.d.ts +14 -0
- 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';
|
package/lib/components/core/babylon-sli-c3-svg-vid-cta/babylon-sli-c3-svg-vid-cta.component.d.ts
ADDED
|
@@ -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';
|
|
@@ -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
|
|
43
|
+
/** ✅ ID del filtro padre "Habitaciones" */
|
|
46
44
|
get roomsFilterId(): number | null;
|
|
47
|
-
/** ✅
|
|
45
|
+
/** ✅ Existe filtro padre habitaciones */
|
|
48
46
|
get hasRoomsFilter(): boolean;
|
|
49
|
-
/** ✅
|
|
47
|
+
/** ✅ ID del filtro "Todas" */
|
|
50
48
|
private get allFilterId();
|
|
51
49
|
private setDefaultSelection;
|
|
52
|
-
/** ✅
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
/** ✅
|
|
56
|
+
/** ✅ Click filtro (desktop/general) */
|
|
61
57
|
filterBy(filter: GalleryFilterItem): void;
|
|
62
|
-
/** ✅
|
|
58
|
+
/** ✅ Click desde el modal de categorías (mobile) */
|
|
63
59
|
filterFromModal(filter: GalleryFilterItem): void;
|
|
64
|
-
/** ✅
|
|
65
|
-
|
|
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
|
+
}
|