ctt-babylon 0.12.2 → 0.12.3
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-svg-list/babylon-he-svg-list.component.mjs +21 -3
- package/esm2022/lib/components/core/babylon-lis-c2-txt/babylon-lis-c2-txt.component.mjs +20 -6
- package/esm2022/lib/components/core/babylon-lis-svg-txt-cta/babylon-lis-svg-txt-cta.component.mjs +16 -5
- package/esm2022/lib/components/core/babylon-sli-c5-img-txt/babylon-sli-c5-img-txt.component.mjs +3 -3
- package/esm2022/lib/components/external/core/c4-for-c2-txt/c4-for-c2-txt.component.mjs +1 -1
- package/esm2022/lib/components/external/core/lis-c3-txt-img-ct/lis-c3-txt-img-ct.component.mjs +1 -1
- package/esm2022/lib/components/external/core/lis-c4-txt-des-cta/lis-c4-txt-des-cta.component.mjs +14 -5
- package/esm2022/lib/components/external/core/sli-c1-img-svg/sli-c1-img-svg.component.mjs +11 -5
- package/esm2022/lib/interfaces/babylon-destination.interface.mjs +2 -0
- package/esm2022/lib/interfaces/babylon-global-icon.interface.mjs +1 -1
- package/esm2022/lib/interfaces/babylon-hotel.interface.mjs +1 -1
- package/esm2022/lib/interfaces/babylon-nav.interface.mjs +2 -0
- package/esm2022/lib/pipes/babylon-clean-props.pipe.mjs +64 -0
- package/esm2022/lib/services/mapper/mapper.service.mjs +72 -5
- package/esm2022/lib/utils/clean-props.mjs +37 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/ctt-babylon.mjs +239 -24
- package/fesm2022/ctt-babylon.mjs.map +1 -1
- package/lib/components/core/babylon-he-svg-list/babylon-he-svg-list.component.d.ts +6 -2
- package/lib/components/core/babylon-lis-c2-txt/babylon-lis-c2-txt.component.d.ts +8 -1
- package/lib/components/core/babylon-lis-svg-txt-cta/babylon-lis-svg-txt-cta.component.d.ts +7 -1
- package/lib/components/external/core/c4-for-c2-txt/c4-for-c2-txt.component.d.ts +2 -2
- package/lib/components/external/core/lis-c4-txt-des-cta/lis-c4-txt-des-cta.component.d.ts +8 -2
- package/lib/components/external/core/sli-c1-img-svg/sli-c1-img-svg.component.d.ts +6 -2
- package/lib/interfaces/babylon-destination.interface.d.ts +10 -0
- package/lib/interfaces/babylon-global-icon.interface.d.ts +3 -0
- package/lib/interfaces/babylon-hotel.interface.d.ts +37 -2
- package/lib/interfaces/babylon-nav.interface.d.ts +8 -0
- package/lib/pipes/babylon-clean-props.pipe.d.ts +16 -0
- package/lib/services/mapper/mapper.service.d.ts +6 -3
- package/lib/utils/clean-props.d.ts +7 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
2
|
import { LogoType } from '../../../Enum';
|
|
3
3
|
import { BabylonButtonI, BabylonImageI } from '../../../interfaces';
|
|
4
4
|
import { BabylonHotelStylesItem } from '../../../interfaces/babylon-hotel-styles.interface';
|
|
5
5
|
import { BabylonFloatingButtonsI } from '../babylon-floating-buttons';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class BabylonHeSvgListComponent implements AfterViewInit {
|
|
7
|
+
export declare class BabylonHeSvgListComponent implements AfterViewInit, OnDestroy {
|
|
8
8
|
private el;
|
|
9
9
|
dinamyHeader?: boolean;
|
|
10
10
|
hotelPage?: boolean;
|
|
@@ -18,10 +18,13 @@ export declare class BabylonHeSvgListComponent implements AfterViewInit {
|
|
|
18
18
|
private readonly platformId;
|
|
19
19
|
openLanguages: EventEmitter<any>;
|
|
20
20
|
openOfferPop: EventEmitter<string>;
|
|
21
|
+
private readonly router;
|
|
22
|
+
private navSub?;
|
|
21
23
|
constructor(el: ElementRef<HTMLElement>);
|
|
22
24
|
ngAfterViewInit(): void;
|
|
23
25
|
/** Equivalente a showMenuBurger() de jQuery */
|
|
24
26
|
showMenuBurger(): void;
|
|
27
|
+
private closeMenuBurger;
|
|
25
28
|
/** Listener global de scroll */
|
|
26
29
|
onWindowScroll(): void;
|
|
27
30
|
/** Sticky del header según el “motor” esté fuera de viewport */
|
|
@@ -30,6 +33,7 @@ export declare class BabylonHeSvgListComponent implements AfterViewInit {
|
|
|
30
33
|
private initBreadcrumbFlag;
|
|
31
34
|
openLanguagesModal(): void;
|
|
32
35
|
openOfferPopup(): void;
|
|
36
|
+
ngOnDestroy(): void;
|
|
33
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<BabylonHeSvgListComponent, never>;
|
|
34
38
|
static ɵcmp: i0.ɵɵComponentDeclaration<BabylonHeSvgListComponent, "lib-babylon-he-svg-list", never, { "dinamyHeader": { "alias": "dinamyHeader"; "required": false; }; "hotelPage": { "alias": "hotelPage"; "required": false; }; "menu": { "alias": "menu"; "required": false; }; "logos": { "alias": "logos"; "required": false; }; "floatingButtons": { "alias": "floatingButtons"; "required": false; }; "links": { "alias": "links"; "required": false; }; "items": { "alias": "items"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; }, { "openLanguages": "openLanguages"; "openOfferPop": "openOfferPop"; }, never, never, true, never>;
|
|
35
39
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, QueryList } from '@angular/core';
|
|
2
|
+
import { BabylonTextInfoI } from '../../../interfaces';
|
|
3
|
+
import { BabylonDestinationI } from '../../../interfaces/babylon-destination.interface';
|
|
4
|
+
import { BabylonHotelGlobalItem } from '../../../interfaces/babylon-hotel.interface';
|
|
2
5
|
import * as i0 from "@angular/core";
|
|
3
6
|
interface FaqHotelLink {
|
|
4
7
|
label: string;
|
|
@@ -14,12 +17,16 @@ interface FaqItem {
|
|
|
14
17
|
}
|
|
15
18
|
export declare class BabylonLisC2TxtComponent implements AfterViewInit {
|
|
16
19
|
activeIndex: number | null;
|
|
20
|
+
texts?: BabylonTextInfoI;
|
|
21
|
+
destinations?: BabylonDestinationI[];
|
|
22
|
+
hotels?: BabylonHotelGlobalItem[];
|
|
17
23
|
answers: QueryList<ElementRef<HTMLDivElement>>;
|
|
18
24
|
faqItems: FaqItem[];
|
|
19
25
|
ngAfterViewInit(): void;
|
|
20
26
|
onToggleFaq(index: number): void;
|
|
21
27
|
isActive(index: number): boolean;
|
|
28
|
+
getHotelById(id: number | undefined): BabylonHotelGlobalItem | undefined;
|
|
22
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<BabylonLisC2TxtComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BabylonLisC2TxtComponent, "lib-babylon-lis-c2-txt", never, {}, {}, never, never, true, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BabylonLisC2TxtComponent, "lib-babylon-lis-c2-txt", never, { "texts": { "alias": "texts"; "required": false; }; "destinations": { "alias": "destinations"; "required": false; }; "hotels": { "alias": "hotels"; "required": false; }; }, {}, never, never, true, never>;
|
|
24
31
|
}
|
|
25
32
|
export {};
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { BabylonButtonI, BabylonGlobalIconI, BabylonTextInfoI } from '../../../interfaces';
|
|
2
|
+
import { BabylonHotelStylesItem } from '../../../interfaces/babylon-hotel-styles.interface';
|
|
1
3
|
import * as i0 from "@angular/core";
|
|
2
4
|
export declare class BabylonLisSvgTxtCtaComponent {
|
|
5
|
+
texts?: BabylonTextInfoI;
|
|
6
|
+
services?: BabylonGlobalIconI[];
|
|
7
|
+
styles?: BabylonHotelStylesItem;
|
|
8
|
+
buttons?: BabylonButtonI[];
|
|
3
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<BabylonLisSvgTxtCtaComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BabylonLisSvgTxtCtaComponent, "lib-babylon-lis-svg-txt-cta", never, {}, {}, never, never, true, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BabylonLisSvgTxtCtaComponent, "lib-babylon-lis-svg-txt-cta", never, { "texts": { "alias": "texts"; "required": false; }; "services": { "alias": "services"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; }, {}, never, never, true, never>;
|
|
5
11
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BabylonButtonI, BabylonContactInfoI, ConsultTypeI } from '../../../../interfaces';
|
|
2
|
-
import {
|
|
2
|
+
import { BabylonHotelGlobalItem } from '../../../../interfaces/babylon-hotel.interface';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class C4ForC2TxtComponent {
|
|
5
5
|
texts?: BabylonContactInfoI;
|
|
6
|
-
hotels?:
|
|
6
|
+
hotels?: BabylonHotelGlobalItem[];
|
|
7
7
|
consultType?: ConsultTypeI[];
|
|
8
8
|
buttons?: BabylonButtonI[];
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<C4ForC2TxtComponent, never>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { BabylonImageI, BabylonTextInfoI } from '../../../../interfaces';
|
|
2
|
+
import { BabylonHotelGlobalItem } from '../../../../interfaces/babylon-hotel.interface';
|
|
1
3
|
import * as i0 from "@angular/core";
|
|
2
4
|
export interface LisC4TxtDesCtaSelect {
|
|
3
5
|
label: string;
|
|
@@ -29,9 +31,13 @@ export interface LisC4TxtDesCtaContent {
|
|
|
29
31
|
cards: LisC4TxtDesCtaCard[];
|
|
30
32
|
}
|
|
31
33
|
export declare class LisC4TxtDesCtaComponent {
|
|
32
|
-
|
|
34
|
+
texts?: BabylonTextInfoI;
|
|
35
|
+
filters?: any;
|
|
36
|
+
items?: BabylonHotelGlobalItem[];
|
|
37
|
+
tagName: string;
|
|
33
38
|
getKeysArray(count: number | undefined): number[];
|
|
34
39
|
trackByIndex(index: number): number;
|
|
40
|
+
getFirstImageByTag(tagName: string, imagenes: BabylonImageI[]): BabylonImageI | undefined;
|
|
35
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<LisC4TxtDesCtaComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LisC4TxtDesCtaComponent, "lis-c4-txt-des-cta", never, { "
|
|
42
|
+
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>;
|
|
37
43
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BabylonItemI, BabylonTextInfoI } from '../../../../interfaces';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export interface SliC1ImgSvgContent {
|
|
3
4
|
image: string;
|
|
@@ -5,7 +6,10 @@ export interface SliC1ImgSvgContent {
|
|
|
5
6
|
icon: string;
|
|
6
7
|
}
|
|
7
8
|
export declare class SliC1ImgSvgComponent {
|
|
8
|
-
|
|
9
|
+
texts?: BabylonTextInfoI;
|
|
10
|
+
items?: BabylonItemI[];
|
|
11
|
+
tagName: string;
|
|
12
|
+
getFirstImageByTag(tagName: string, imagenes: any[]): import("../../../../interfaces").BabylonImageI | undefined;
|
|
9
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<SliC1ImgSvgComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SliC1ImgSvgComponent, "sli-c1-img-svg", never, { "
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SliC1ImgSvgComponent, "sli-c1-img-svg", never, { "texts": { "alias": "texts"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
15
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BabylonButtonI } from './babylon-button.interface';
|
|
2
|
+
import { BabylonHotelGlobalItem } from './babylon-hotel.interface';
|
|
3
|
+
export interface BabylonDestinationI {
|
|
4
|
+
id?: number;
|
|
5
|
+
name?: string;
|
|
6
|
+
lat?: string;
|
|
7
|
+
lon?: string;
|
|
8
|
+
hotels?: BabylonHotelGlobalItem[];
|
|
9
|
+
links?: BabylonButtonI[];
|
|
10
|
+
}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
+
import { BabylonOfferI } from '../components/core';
|
|
1
2
|
import { BabylonButtonI } from './babylon-button.interface';
|
|
3
|
+
import { BabylonDestinationI } from './babylon-destination.interface';
|
|
2
4
|
import { BabylonGlobalIconI } from './babylon-global-icon.interface';
|
|
3
5
|
import { BabylonImageI } from './babylon-image.interface';
|
|
4
|
-
|
|
6
|
+
import { BabylonNav } from './babylon-nav.interface';
|
|
7
|
+
import { BabylonTextInfoI } from './babylon-text-info.interface';
|
|
8
|
+
export interface BabylonHotelGlobalItem {
|
|
5
9
|
pretitle?: string;
|
|
6
10
|
title?: string;
|
|
7
|
-
|
|
11
|
+
buttons?: BabylonButtonI[];
|
|
8
12
|
link?: BabylonButtonI[];
|
|
9
13
|
img?: BabylonImageI;
|
|
14
|
+
images?: BabylonImageI[];
|
|
10
15
|
text?: string;
|
|
16
|
+
texts?: BabylonTextInfoI;
|
|
11
17
|
textMore?: string;
|
|
12
18
|
price?: number;
|
|
13
19
|
fTitle?: string;
|
|
@@ -18,4 +24,33 @@ export interface BabylonHotelItem {
|
|
|
18
24
|
id?: number;
|
|
19
25
|
name?: string;
|
|
20
26
|
order?: number;
|
|
27
|
+
email?: string;
|
|
28
|
+
addess?: string;
|
|
29
|
+
allInclusive?: boolean;
|
|
30
|
+
beachClub?: boolean;
|
|
31
|
+
checkInTime?: string;
|
|
32
|
+
checkOutTime?: string;
|
|
33
|
+
city?: string;
|
|
34
|
+
closingFrom?: string;
|
|
35
|
+
closingTo?: string;
|
|
36
|
+
country?: string;
|
|
37
|
+
cp?: string;
|
|
38
|
+
destinations?: BabylonDestinationI[];
|
|
39
|
+
highlighted?: boolean;
|
|
40
|
+
lat?: string;
|
|
41
|
+
lon?: string;
|
|
42
|
+
laundry?: boolean;
|
|
43
|
+
locality?: string;
|
|
44
|
+
mapLink?: string;
|
|
45
|
+
offers?: BabylonOfferI[];
|
|
46
|
+
phone?: string;
|
|
47
|
+
province?: string;
|
|
48
|
+
ticker?: string;
|
|
49
|
+
siteHotels?: BabylonNav;
|
|
50
|
+
servicesAdvantages?: BabylonGlobalIconI[];
|
|
51
|
+
servicesCharacteristics?: BabylonGlobalIconI[];
|
|
52
|
+
servicesHotelApp?: BabylonGlobalIconI[];
|
|
53
|
+
servicesList?: BabylonGlobalIconI[];
|
|
54
|
+
servicesLocation?: BabylonGlobalIconI[];
|
|
55
|
+
servicesService?: BabylonGlobalIconI[];
|
|
21
56
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
type CleanOptions = {
|
|
4
|
+
/** Si true: elimina también null */
|
|
5
|
+
removeNull?: boolean;
|
|
6
|
+
/** Si true: elimina strings vacíos/whitespace */
|
|
7
|
+
removeEmptyString?: boolean;
|
|
8
|
+
/** Si true: si un objeto/array queda vacío => devuelve undefined */
|
|
9
|
+
pruneEmpty?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare class BabylonCleanPropsPipe implements PipeTransform {
|
|
12
|
+
transform<T>(value: T, options?: CleanOptions): T | undefined;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BabylonCleanPropsPipe, never>;
|
|
14
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<BabylonCleanPropsPipe, "babylonCleanProps", true>;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -4,9 +4,10 @@ import { BabylonGlobalModalI } from '../../components/core/babylon-global-modal'
|
|
|
4
4
|
import { BabylonListGridI } from '../../components/core/babylon-list-grid/babylon-list-grid.interface';
|
|
5
5
|
import { BabylonModalPopupI } from '../../components/core/babylon-modal-popup';
|
|
6
6
|
import { BabylonStaticFooterV2I } from '../../components/core/babylon-static-footer-v2/babylon-static-footer-v2.interface';
|
|
7
|
-
import { BabylonContactInfoI, BabylonImageI, BabylonMenuInfoI, BabylonOfferItemI, BabylonRoomDetailI, BabylonTextInfoI, BodyComponent, COMPONENTS_EXTRA, ConsultTypeI } from '../../interfaces';
|
|
7
|
+
import { BabylonContactInfoI, BabylonGlobalIconI, BabylonImageI, BabylonMenuInfoI, BabylonOfferItemI, BabylonRoomDetailI, BabylonTextInfoI, BodyComponent, COMPONENTS_EXTRA, ConsultTypeI } from '../../interfaces';
|
|
8
8
|
import { BabylonAdvantageItemI } from '../../interfaces/babylon-advantages-item.interface';
|
|
9
|
-
import {
|
|
9
|
+
import { BabylonDestinationI } from '../../interfaces/babylon-destination.interface';
|
|
10
|
+
import { BabylonHotelGlobalItem } from '../../interfaces/babylon-hotel.interface';
|
|
10
11
|
import { BabylonItemI } from '../../interfaces/babylon-item.interface';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
export declare class MapperService {
|
|
@@ -24,13 +25,15 @@ export declare class MapperService {
|
|
|
24
25
|
mapSubmenu(props: any | undefined): BabylonSubmenuI;
|
|
25
26
|
mapComponents<T>(body: any[], addons?: ComponentsAddons): BodyComponent<T>[];
|
|
26
27
|
mapGlobals(component: any): any;
|
|
28
|
+
mapGlobalDestinations(destinations: any | undefined): BabylonDestinationI;
|
|
27
29
|
mapGlobalTexts(texts: any | undefined): BabylonTextInfoI;
|
|
28
30
|
private getTextValue;
|
|
29
31
|
mapConsultTypesGlobal(consults: any | undefined): ConsultTypeI[];
|
|
30
|
-
mapHotelsGlobal(hotels: any | undefined):
|
|
32
|
+
mapHotelsGlobal(hotels: any | undefined): BabylonHotelGlobalItem[];
|
|
31
33
|
private mapGlobalItems;
|
|
32
34
|
mapAddress(address: any | undefined): BabylonAddressItem;
|
|
33
35
|
mapStaticFooterv3(props: any | undefined): BabylonStaticFooterI;
|
|
36
|
+
mapGlobalServices(services: BabylonGlobalIconI[] | undefined): BabylonGlobalIconI[] | undefined;
|
|
34
37
|
mapContactInfo(texts: any | undefined): BabylonContactInfoI;
|
|
35
38
|
mapEventsGlobal(events: any | undefined): BabylonItemI[];
|
|
36
39
|
mapOffersGlobal(offers: any | undefined): BabylonOfferItemI[];
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED