ctt-babylon 0.12.7 → 0.12.9
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-lis-svg-txt-cta/babylon-lis-svg-txt-cta.component.mjs +3 -3
- package/esm2022/lib/components/core/babylon-list-c3-img-txt/babylon-list-c3-img-txt.component.mjs +3 -3
- package/esm2022/lib/components/core/babylon-rooms-cols/babylon-rooms-cols.component.mjs +1 -1
- package/esm2022/lib/components/external/core/c2-txt-cta/c2-txt-cta.component.mjs +11 -22
- package/esm2022/lib/components/external/core/c2-txt-rrss/c2-txt-rrss.component.mjs +7 -8
- package/esm2022/lib/components/external/core/c2-txt-svg-v2/c2-txt-mdh005.component.mjs +5 -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-c3-txt-img-ct/lis-c3-txt-img-ct.component.mjs +44 -8
- package/esm2022/lib/components/external/core/lis-c4-txt-des-cta/lis-c4-txt-des-cta.component.mjs +3 -3
- package/esm2022/lib/components/external/core/sli-c2-img/sli-c2-img.component.mjs +20 -3
- package/esm2022/lib/interfaces/babylon-consult-type.interface.mjs +1 -1
- package/esm2022/lib/interfaces/babylon-consult.interface.mjs +2 -0
- package/esm2022/lib/interfaces/babylon-contact-info.interface.mjs +1 -1
- package/esm2022/lib/interfaces/babylon-hotel.interface.mjs +1 -1
- package/esm2022/lib/services/mapper/mapper.service.mjs +37 -23
- package/fesm2022/ctt-babylon.mjs +125 -68
- package/fesm2022/ctt-babylon.mjs.map +1 -1
- package/lib/components/core/babylon-rooms-cols/babylon-rooms-cols.component.d.ts +1 -0
- package/lib/components/external/core/c2-txt-cta/c2-txt-cta.component.d.ts +6 -2
- package/lib/components/external/core/c2-txt-rrss/c2-txt-rrss.component.d.ts +4 -2
- package/lib/components/external/core/c2-txt-svg-v2/c2-txt-mdh005.component.d.ts +3 -2
- package/lib/components/external/core/lis-c3-txt-img-ct/lis-c3-txt-img-ct.component.d.ts +9 -2
- package/lib/components/external/core/sli-c2-img/sli-c2-img.component.d.ts +11 -4
- package/lib/interfaces/babylon-consult-type.interface.d.ts +2 -6
- package/lib/interfaces/babylon-consult.interface.d.ts +6 -0
- package/lib/interfaces/babylon-contact-info.interface.d.ts +3 -0
- package/lib/interfaces/babylon-hotel.interface.d.ts +1 -0
- package/lib/services/mapper/mapper.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BabylonButtonI, BabylonItemI, BabylonRoomDetailI, BabylonTextInfoI } from '../../../../interfaces';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export type C2TxtCtaStat = string;
|
|
3
4
|
export interface C2TxtCtaButton {
|
|
@@ -18,7 +19,10 @@ export interface C2TxtCtaContent {
|
|
|
18
19
|
};
|
|
19
20
|
}
|
|
20
21
|
export declare class C2TxtCtaComponent {
|
|
21
|
-
|
|
22
|
+
texts?: BabylonTextInfoI;
|
|
23
|
+
items?: BabylonItemI[];
|
|
24
|
+
rooms?: BabylonRoomDetailI[];
|
|
25
|
+
buttons?: BabylonButtonI[];
|
|
22
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<C2TxtCtaComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<C2TxtCtaComponent, "c2-txt-cta", never, { "
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<C2TxtCtaComponent, "c2-txt-cta", never, { "texts": { "alias": "texts"; "required": false; }; "items": { "alias": "items"; "required": false; }; "rooms": { "alias": "rooms"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; }, {}, never, never, true, never>;
|
|
24
28
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BabylonButtonI, BabylonTextInfoI } from '../../../../interfaces';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export interface C2TxtRrssIcon {
|
|
3
4
|
label: string;
|
|
@@ -12,8 +13,9 @@ export interface C2TxtRrssContent {
|
|
|
12
13
|
icons: C2TxtRrssIcon[];
|
|
13
14
|
}
|
|
14
15
|
export declare class C2TxtRrssComponent {
|
|
15
|
-
|
|
16
|
+
texts?: BabylonTextInfoI;
|
|
17
|
+
socials?: BabylonButtonI[];
|
|
16
18
|
trackByIcon(index: number, item: C2TxtRrssIcon): string;
|
|
17
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<C2TxtRrssComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<C2TxtRrssComponent, "c2-txt-rrss", never, { "
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<C2TxtRrssComponent, "c2-txt-rrss", never, { "texts": { "alias": "texts"; "required": false; }; "socials": { "alias": "socials"; "required": false; }; }, {}, never, never, true, never>;
|
|
19
21
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { BabylonTextInfoI } from '../../../../interfaces';
|
|
1
|
+
import { BabylonRoomDetailI, BabylonTextInfoI } from '../../../../interfaces';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class C2TxtMdh005Component {
|
|
4
4
|
private readonly fallbackContent;
|
|
5
5
|
texts?: BabylonTextInfoI;
|
|
6
|
+
rooms?: BabylonRoomDetailI[];
|
|
6
7
|
trackByIndex(index: number): number;
|
|
7
8
|
getNumber(text: string): number[];
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<C2TxtMdh005Component, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<C2TxtMdh005Component, "c2-txt-mdh005", never, { "texts": { "alias": "texts"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<C2TxtMdh005Component, "c2-txt-mdh005", never, { "texts": { "alias": "texts"; "required": false; }; "rooms": { "alias": "rooms"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
11
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { BabylonButtonI, BabylonContactInfoI,
|
|
2
|
+
import { BabylonButtonI, BabylonContactInfoI, BabylonMultimediaI, BabylonTextInfoI } from '../../../../interfaces';
|
|
3
|
+
import { ConsultI } from '../../../../interfaces/babylon-consult.interface';
|
|
3
4
|
import { BabylonHotelGlobalItem } from '../../../../interfaces/babylon-hotel.interface';
|
|
4
5
|
import { LisC3TxtImgCtContent, LisC3TxtImgCtFormPayload } from './lis-c3-txt-img-ct.interfaces';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
@@ -9,12 +10,18 @@ export declare class LisC3TxtImgCtComponent {
|
|
|
9
10
|
texts?: BabylonTextInfoI;
|
|
10
11
|
multimedia?: BabylonMultimediaI;
|
|
11
12
|
contactInfo?: BabylonContactInfoI;
|
|
12
|
-
consultTypes?:
|
|
13
|
+
consultTypes?: ConsultI[];
|
|
13
14
|
hotels?: BabylonHotelGlobalItem[];
|
|
14
15
|
buttons?: BabylonButtonI[];
|
|
15
16
|
formSubmit: EventEmitter<LisC3TxtImgCtFormPayload>;
|
|
17
|
+
submitAttempted: boolean;
|
|
18
|
+
isSubmitting: boolean;
|
|
19
|
+
submitError: string | null;
|
|
20
|
+
isFormValid: boolean;
|
|
16
21
|
trackByIndex(index: number): number;
|
|
17
22
|
handleSubmit(event: Event): void;
|
|
23
|
+
private buildPayload;
|
|
24
|
+
get sortedHotels(): BabylonHotelGlobalItem[];
|
|
18
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<LisC3TxtImgCtComponent, never>;
|
|
19
26
|
static ɵcmp: i0.ɵɵComponentDeclaration<LisC3TxtImgCtComponent, "lis-c3-txt-img-ct", never, { "content": { "alias": "content"; "required": false; }; "texts": { "alias": "texts"; "required": false; }; "multimedia": { "alias": "multimedia"; "required": false; }; "contactInfo": { "alias": "contactInfo"; "required": false; }; "consultTypes": { "alias": "consultTypes"; "required": false; }; "hotels": { "alias": "hotels"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; }, { "formSubmit": "formSubmit"; }, never, never, true, never>;
|
|
20
27
|
}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import { AfterViewInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { BabylonMultimediaI } from '../../../../interfaces';
|
|
1
|
+
import { AfterViewInit, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { BabylonImageI, BabylonMultimediaI, BabylonRoomDetailI } from '../../../../interfaces';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class SliC2ImgComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
4
|
+
export declare class SliC2ImgComponent implements OnInit, AfterViewInit, OnChanges, OnDestroy {
|
|
5
5
|
multimedia?: BabylonMultimediaI;
|
|
6
6
|
reverse?: boolean;
|
|
7
|
+
rooms?: BabylonRoomDetailI[];
|
|
8
|
+
tagName: string;
|
|
9
|
+
tagNameVertical: string;
|
|
10
|
+
imagesSlider: BabylonImageI[];
|
|
7
11
|
private readonly fallbackContent;
|
|
8
12
|
private readonly platformId;
|
|
9
13
|
private swiperContainer?;
|
|
10
14
|
private nextButton?;
|
|
11
15
|
private prevButton?;
|
|
12
16
|
private swiperInstance?;
|
|
17
|
+
ngOnInit(): void;
|
|
13
18
|
ngAfterViewInit(): void;
|
|
14
19
|
ngOnChanges(changes: SimpleChanges): void;
|
|
15
20
|
ngOnDestroy(): void;
|
|
@@ -17,6 +22,8 @@ export declare class SliC2ImgComponent implements AfterViewInit, OnChanges, OnDe
|
|
|
17
22
|
private setupSwiper;
|
|
18
23
|
private resolveAutoplayDelay;
|
|
19
24
|
private destroySwiper;
|
|
25
|
+
getImagesByTag(tagName: string, multimedia: any): BabylonImageI[];
|
|
26
|
+
getFirstImageByTag(tagName: string, multimedia: any): BabylonImageI | undefined;
|
|
20
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<SliC2ImgComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SliC2ImgComponent, "sli-c2-img", never, { "multimedia": { "alias": "multimedia"; "required": false; }; "reverse": { "alias": "reverse"; "required": false; }; }, {}, never, never, true, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SliC2ImgComponent, "sli-c2-img", never, { "multimedia": { "alias": "multimedia"; "required": false; }; "reverse": { "alias": "reverse"; "required": false; }; "rooms": { "alias": "rooms"; "required": false; }; }, {}, never, never, true, never>;
|
|
22
29
|
}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
+
import { ConsultI } from './babylon-consult.interface';
|
|
1
2
|
export interface ConsultTypeI {
|
|
2
3
|
name: string;
|
|
3
4
|
order: number;
|
|
4
5
|
id?: number;
|
|
5
|
-
props:
|
|
6
|
-
consultTypeId?: number;
|
|
7
|
-
Id?: number;
|
|
8
|
-
languageId?: number;
|
|
9
|
-
name?: string;
|
|
10
|
-
}[];
|
|
6
|
+
props: ConsultI[];
|
|
11
7
|
}
|
|
@@ -9,6 +9,9 @@ export interface BabylonContactInfoI {
|
|
|
9
9
|
conditions2?: string;
|
|
10
10
|
dropdownPlaceholder?: string;
|
|
11
11
|
dropdownTitle?: string;
|
|
12
|
+
hotelDropTitle?: string;
|
|
13
|
+
hotelDropPlaceholder?: string;
|
|
14
|
+
hotelDropError?: string;
|
|
12
15
|
errorEmail?: string;
|
|
13
16
|
errorMessage?: string;
|
|
14
17
|
errorName?: string;
|
|
@@ -55,6 +55,7 @@ export interface BabylonHotelGlobalItem {
|
|
|
55
55
|
servicesLocation?: BabylonGlobalIconI[];
|
|
56
56
|
servicesService?: BabylonGlobalIconI[];
|
|
57
57
|
style?: BabylonStyleGlobalItem;
|
|
58
|
+
styles?: BabylonStyleGlobalItem;
|
|
58
59
|
onlyAdults?: boolean;
|
|
59
60
|
hotelcategory?: string;
|
|
60
61
|
hoteltype?: string;
|
|
@@ -24,7 +24,7 @@ export declare class MapperService {
|
|
|
24
24
|
mapBodyExtra(body: any[] | undefined): BodyComponent<COMPONENTS_EXTRA>[] | undefined;
|
|
25
25
|
mapSubmenu(props: any | undefined): BabylonSubmenuI;
|
|
26
26
|
mapComponents<T>(body: any[], addons?: ComponentsAddons): BodyComponent<T>[];
|
|
27
|
-
mapGlobals(component: any): any;
|
|
27
|
+
mapGlobals(component: any, ndProps: any | undefined, ndPropsConsult: any | undefined): any;
|
|
28
28
|
mapGlobalDestinations(destinations: any | undefined): BabylonDestinationI[] | undefined;
|
|
29
29
|
mapGlobalTexts(texts: any | undefined): BabylonTextInfoI;
|
|
30
30
|
private getTextValue;
|