ctt-babylon 0.12.22 → 0.12.23
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-ba-sli-img-txt/babylon-ba-sli-img-txt.component.mjs +89 -3
- package/esm2022/lib/components/core/babylon-breadcrumb-v2/babylon-breadcrumb-v2.component.mjs +5 -3
- package/esm2022/lib/components/core/babylon-fo-addr-cont-img/babylon-fo-addr-cont-img.component.mjs +27 -3
- package/esm2022/lib/components/core/babylon-fo-c3-img-txt/babylon-fo-c3-img-txt.component.mjs +11 -3
- package/esm2022/lib/components/core/babylon-fo-lis-c4-txt/babylon-fo-lis-c4-txt.component.mjs +3 -3
- package/esm2022/lib/components/core/babylon-he-svg-list/babylon-he-svg-list.component.mjs +1 -8
- package/esm2022/lib/components/core/babylon-language-modal-v3/babylon-language-modal-v3.component.mjs +4 -3
- package/esm2022/lib/components/core/babylon-list-c3-img-txt/babylon-list-c3-img-txt.component.mjs +11 -3
- 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-rrss/c2-txt-rrss.component.mjs +11 -3
- package/esm2022/lib/components/external/core/c4-txt-svg/c4-txt-svg.component.mjs +3 -3
- package/esm2022/lib/components/external/core/car-c2-txt-cta/car-c2-txt-cta.component.mjs +3 -3
- package/esm2022/lib/components/external/core/lis-c2-img-txt-cv4/lis-c2-img-txt-cv4.component.mjs +3 -3
- package/esm2022/lib/components/external/core/lis-c4-txt-des-cta/lis-c4-txt-des-cta.component.mjs +79 -14
- package/esm2022/lib/components/external/core/sli-c1-img-svg/sli-c1-img-svg.component.mjs +3 -3
- package/esm2022/lib/components/external/core/sli-c2-img-txt-cv5/sli-c2-img-txt-cv5.component.mjs +3 -3
- package/esm2022/lib/components/external/core/sli-c2-txt-car-img-c/sli-c2-txt-car-img-c.component.mjs +3 -3
- package/esm2022/lib/interfaces/babylon-button.interface.mjs +1 -1
- package/esm2022/lib/interfaces/babylon-hotel.interface.mjs +1 -1
- package/esm2022/lib/interfaces/babylon-text-info.interface.mjs +1 -1
- package/esm2022/lib/services/mapper/mapper.service.mjs +3 -1
- package/esm2022/lib/utils/utils.mjs +15 -3
- package/fesm2022/ctt-babylon.mjs +255 -50
- package/fesm2022/ctt-babylon.mjs.map +1 -1
- package/lib/components/core/babylon-ba-sli-img-txt/babylon-ba-sli-img-txt.component.d.ts +19 -0
- package/lib/components/core/babylon-fo-addr-cont-img/babylon-fo-addr-cont-img.component.d.ts +3 -0
- package/lib/components/core/babylon-fo-c3-img-txt/babylon-fo-c3-img-txt.component.d.ts +2 -1
- package/lib/components/core/babylon-he-svg-list/babylon-he-svg-list.component.d.ts +0 -3
- package/lib/components/core/babylon-list-c3-img-txt/babylon-list-c3-img-txt.component.d.ts +2 -1
- package/lib/components/external/core/c2-txt-rrss/c2-txt-rrss.component.d.ts +1 -0
- package/lib/components/external/core/lis-c4-txt-des-cta/lis-c4-txt-des-cta.component.d.ts +12 -2
- package/lib/interfaces/babylon-button.interface.d.ts +1 -0
- package/lib/interfaces/babylon-hotel.interface.d.ts +1 -0
- package/lib/interfaces/babylon-text-info.interface.d.ts +1 -0
- package/lib/utils/utils.d.ts +5 -0
- package/package.json +1 -1
|
@@ -2,6 +2,14 @@ import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
|
|
|
2
2
|
import { BabylonButtonI, BabylonItemI, BabylonMultimediaI, BabylonTextInfoI } from '../../../interfaces';
|
|
3
3
|
import { BabylonAdvantageItemI } from '../../../interfaces/babylon-advantages-item.interface';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
type ContactMeta = {
|
|
6
|
+
cssClass: 'phone' | 'whatsapp' | 'mail' | 'web' | 'unknown';
|
|
7
|
+
href?: string;
|
|
8
|
+
target?: '_blank';
|
|
9
|
+
rel?: string;
|
|
10
|
+
iconSrc?: string;
|
|
11
|
+
onClick?: (ev: MouseEvent) => void;
|
|
12
|
+
};
|
|
5
13
|
export declare class BabylonBaSliImgTxtComponent implements AfterViewInit {
|
|
6
14
|
private el;
|
|
7
15
|
texts?: BabylonTextInfoI;
|
|
@@ -22,6 +30,17 @@ export declare class BabylonBaSliImgTxtComponent implements AfterViewInit {
|
|
|
22
30
|
private updateScrollButtonsVisibility;
|
|
23
31
|
onWindowScroll(): void;
|
|
24
32
|
openNewletterModal(): void;
|
|
33
|
+
getContactMeta(item: {
|
|
34
|
+
url?: string;
|
|
35
|
+
linkType?: string;
|
|
36
|
+
icon?: string;
|
|
37
|
+
label?: string;
|
|
38
|
+
}): ContactMeta;
|
|
39
|
+
looksLikePhone(value: string): boolean;
|
|
40
|
+
getWhatsappLink(raw?: string): string;
|
|
41
|
+
private toWaMe;
|
|
42
|
+
onContactClick(ev: MouseEvent, item: any): void;
|
|
25
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<BabylonBaSliImgTxtComponent, never>;
|
|
26
44
|
static ɵcmp: i0.ɵɵComponentDeclaration<BabylonBaSliImgTxtComponent, "lib-babylon-ba-sli-img-txt", never, { "texts": { "alias": "texts"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; "links": { "alias": "links"; "required": false; }; "items": { "alias": "items"; "required": false; }; "multimedia": { "alias": "multimedia"; "required": false; }; "advantages": { "alias": "advantages"; "required": false; }; }, { "openNewsletter": "openNewsletter"; }, never, never, true, never>;
|
|
27
45
|
}
|
|
46
|
+
export {};
|
package/lib/components/core/babylon-fo-addr-cont-img/babylon-fo-addr-cont-img.component.d.ts
CHANGED
|
@@ -7,6 +7,9 @@ export declare class BabylonFoAddrContImgComponent {
|
|
|
7
7
|
buttons?: BabylonButtonI[];
|
|
8
8
|
links?: BabylonButtonI[];
|
|
9
9
|
address?: BabylonAddressItemI[];
|
|
10
|
+
buildContactHref(value?: string | null): string;
|
|
11
|
+
private isEmail;
|
|
12
|
+
private looksLikePhone;
|
|
10
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<BabylonFoAddrContImgComponent, never>;
|
|
11
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<BabylonFoAddrContImgComponent, "lib-babylon-fo-addr-cont-img", never, { "texts": { "alias": "texts"; "required": false; }; "multimedia": { "alias": "multimedia"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; "links": { "alias": "links"; "required": false; }; "address": { "alias": "address"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
15
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
2
|
-
import { BabylonMultimediaI, BabylonTextInfoI } from '../../../interfaces';
|
|
2
|
+
import { BabylonButtonI, BabylonMultimediaI, BabylonTextInfoI } from '../../../interfaces';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class BabylonFoC3ImgTxtComponent implements AfterViewInit {
|
|
5
5
|
private el;
|
|
@@ -15,6 +15,7 @@ export declare class BabylonFoC3ImgTxtComponent implements AfterViewInit {
|
|
|
15
15
|
private setHasFooterClassIfNeeded;
|
|
16
16
|
getImagesByTag(tagName: string): import("../../../interfaces").BabylonImageI[];
|
|
17
17
|
getFirstImageByTag(tagName: string): import("../../../interfaces").BabylonImageI | undefined;
|
|
18
|
+
buildMenuUrl(item: BabylonButtonI | undefined): string;
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<BabylonFoC3ImgTxtComponent, never>;
|
|
19
20
|
static ɵcmp: i0.ɵɵComponentDeclaration<BabylonFoC3ImgTxtComponent, "lib-babylon-fo-c3-img-txt", never, { "texts": { "alias": "texts"; "required": false; }; "multimedia": { "alias": "multimedia"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
21
|
}
|
|
@@ -28,12 +28,9 @@ export declare class BabylonHeSvgListComponent implements AfterViewInit, OnDestr
|
|
|
28
28
|
private navSub?;
|
|
29
29
|
constructor(el: ElementRef<HTMLElement>, dialog: MatDialog);
|
|
30
30
|
ngAfterViewInit(): void;
|
|
31
|
-
/** Equivalente a showMenuBurger() de jQuery */
|
|
32
31
|
showMenuBurger(): void;
|
|
33
32
|
closeMenuBurger(reload?: boolean): void;
|
|
34
|
-
/** Listener global de scroll */
|
|
35
33
|
onWindowScroll(): void;
|
|
36
|
-
/** Sticky del header según el “motor” esté fuera de viewport */
|
|
37
34
|
private updateHeaderSticky;
|
|
38
35
|
/** Añade .v-no-hotel al breadcrumb si el header NO es hotel-card */
|
|
39
36
|
private initBreadcrumbFlag;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { BabylonTextInfoI } from '../../../interfaces';
|
|
1
|
+
import { BabylonButtonI, BabylonTextInfoI } from '../../../interfaces';
|
|
2
2
|
import { BabylonItemI } from '../../../interfaces/babylon-item.interface';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class BabylonListC3ImgTxtComponent {
|
|
5
5
|
texts?: BabylonTextInfoI;
|
|
6
6
|
items?: BabylonItemI[];
|
|
7
|
+
buildMenuUrl(item: BabylonButtonI | undefined): string;
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<BabylonListC3ImgTxtComponent, never>;
|
|
8
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<BabylonListC3ImgTxtComponent, "lib-babylon-list-c3-img-txt", never, { "texts": { "alias": "texts"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, {}, never, never, true, never>;
|
|
9
10
|
}
|
|
@@ -16,6 +16,7 @@ export declare class C2TxtRrssComponent {
|
|
|
16
16
|
texts?: BabylonTextInfoI;
|
|
17
17
|
socials?: BabylonButtonI[];
|
|
18
18
|
trackByIcon(index: number, item: C2TxtRrssIcon): string;
|
|
19
|
+
normalizeText(value?: string | null): string;
|
|
19
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<C2TxtRrssComponent, never>;
|
|
20
21
|
static ɵcmp: i0.ɵɵComponentDeclaration<C2TxtRrssComponent, "c2-txt-rrss", never, { "texts": { "alias": "texts"; "required": false; }; "socials": { "alias": "socials"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
22
|
}
|
|
@@ -1,27 +1,36 @@
|
|
|
1
1
|
import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { BabylonImageI, BabylonTextInfoI } from '../../../../interfaces';
|
|
2
|
+
import { BabylonButtonI, BabylonImageI, BabylonTextInfoI } from '../../../../interfaces';
|
|
3
3
|
import { BabylonHotelGlobalItem } from '../../../../interfaces/babylon-hotel.interface';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class LisC4TxtDesCtaComponent implements OnInit, OnChanges, OnDestroy {
|
|
6
6
|
texts?: BabylonTextInfoI;
|
|
7
7
|
filters?: any;
|
|
8
8
|
items?: BabylonHotelGlobalItem[];
|
|
9
|
+
links?: BabylonButtonI[];
|
|
10
|
+
additional1LikeMarca?: boolean;
|
|
9
11
|
tagName: string;
|
|
10
12
|
selectedHotelType: string;
|
|
11
13
|
selectedDestination: string;
|
|
14
|
+
selectedBrand: string;
|
|
12
15
|
hotelTypeOptions: string[];
|
|
13
16
|
destinationOptions: string[];
|
|
17
|
+
brandOptions: string[];
|
|
14
18
|
private readonly route;
|
|
19
|
+
private readonly router;
|
|
15
20
|
private qpSub?;
|
|
21
|
+
private readonly cdr;
|
|
16
22
|
ngOnInit(): void;
|
|
17
23
|
ngOnChanges(changes: SimpleChanges): void;
|
|
18
24
|
ngOnDestroy(): void;
|
|
19
25
|
private buildFilterOptions;
|
|
26
|
+
private getItemBrand;
|
|
20
27
|
get filteredItems(): BabylonHotelGlobalItem[];
|
|
21
28
|
get hasActiveFilters(): boolean;
|
|
22
29
|
onHotelTypeChange(value: string | undefined): void;
|
|
23
30
|
onDestinationChange(value: string): void;
|
|
31
|
+
onBrandChange(value: string): void;
|
|
24
32
|
clearFilters(): void;
|
|
33
|
+
private syncQueryParams;
|
|
25
34
|
getKeysArray(count: number | undefined): number[];
|
|
26
35
|
trackByIndex(index: number): number;
|
|
27
36
|
getFirstImageByTag(tagName: string, imagenes: BabylonImageI[]): BabylonImageI | undefined;
|
|
@@ -29,6 +38,7 @@ export declare class LisC4TxtDesCtaComponent implements OnInit, OnChanges, OnDes
|
|
|
29
38
|
private singularize;
|
|
30
39
|
/** Devuelve la opción más parecida dentro de options, o '' */
|
|
31
40
|
private matchSimilar;
|
|
41
|
+
getNumber(text: string): number[];
|
|
32
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<LisC4TxtDesCtaComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LisC4TxtDesCtaComponent, "lis-c4-txt-des-cta", never, { "texts": { "alias": "texts"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, {}, never, never, true, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LisC4TxtDesCtaComponent, "lis-c4-txt-des-cta", never, { "texts": { "alias": "texts"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "items": { "alias": "items"; "required": false; }; "links": { "alias": "links"; "required": false; }; "additional1LikeMarca": { "alias": "additional1LikeMarca"; "required": false; }; }, {}, never, never, true, never>;
|
|
34
44
|
}
|
package/lib/utils/utils.d.ts
CHANGED
|
@@ -12,4 +12,9 @@ export declare class Utils {
|
|
|
12
12
|
static loadStyle$(href: string): Observable<boolean>;
|
|
13
13
|
static safeOpenExternal(url: string): void;
|
|
14
14
|
static extractNumberRange(value?: string | null, fallback?: number[]): number[];
|
|
15
|
+
static sortButtonsByOrder<T extends {
|
|
16
|
+
order?: any;
|
|
17
|
+
}>(buttons?: Array<T | undefined | null> | null, opts?: {
|
|
18
|
+
keepOriginal?: boolean;
|
|
19
|
+
}): T[];
|
|
15
20
|
}
|