ctt-babylon 0.26.31 → 0.26.32
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/external/core/c2-txt-cta/c2-txt-cta.component.mjs +5 -3
- package/esm2022/lib/components/external/core/c2-txt-svg-v2/c2-txt-mdh005.component.mjs +5 -3
- package/esm2022/lib/components/external/core/sli-c1-img-svg/sli-c1-img-svg.component.mjs +44 -5
- package/esm2022/lib/components/external/core/sli-c2-img/sli-c2-img.component.mjs +19 -13
- package/esm2022/lib/components/external/core/sli-c2-txt-car-img-c/sli-c2-txt-car-img-c.component.mjs +55 -5
- package/esm2022/lib/interfaces/babylon-destination.interface.mjs +1 -1
- package/esm2022/lib/services/mapper/mapper.service.mjs +2 -2
- package/fesm2022/ctt-babylon.mjs +2 -2
- package/fesm2022/ctt-babylon.mjs.map +1 -1
- package/lib/components/external/core/c2-txt-cta/c2-txt-cta.component.d.ts +3 -1
- package/lib/components/external/core/c2-txt-svg-v2/c2-txt-mdh005.component.d.ts +3 -1
- package/lib/components/external/core/sli-c1-img-svg/sli-c1-img-svg.component.d.ts +17 -3
- package/lib/components/external/core/sli-c2-img/sli-c2-img.component.d.ts +4 -1
- package/lib/components/external/core/sli-c2-txt-car-img-c/sli-c2-txt-car-img-c.component.d.ts +20 -4
- package/lib/interfaces/babylon-destination.interface.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BabylonButtonI, BabylonItemI, BabylonMultimediaI, BabylonOfferItemI, BabylonRoomDetailI, BabylonTextInfoI } from '../../../../interfaces';
|
|
2
2
|
import { BabylonStyleGlobalItem } from '../../../../interfaces/babylon-style.interface';
|
|
3
|
+
import { BabylonDestinationI } from '../../../../interfaces/babylon-destination.interface';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export type C2TxtCtaStat = string;
|
|
5
6
|
export interface C2TxtCtaButton {
|
|
@@ -28,8 +29,9 @@ export declare class C2TxtCtaComponent {
|
|
|
28
29
|
multimedia?: BabylonMultimediaI;
|
|
29
30
|
offer?: BabylonOfferItemI;
|
|
30
31
|
identifier?: string;
|
|
32
|
+
destination?: BabylonDestinationI;
|
|
31
33
|
tagName: string;
|
|
32
34
|
getImagesByTag(tagName: string, multimedia: BabylonMultimediaI): import("../../../../interfaces").BabylonImageI[];
|
|
33
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<C2TxtCtaComponent, never>;
|
|
34
|
-
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; }; "styles": { "alias": "styles"; "required": false; }; "multimedia": { "alias": "multimedia"; "required": false; }; "offer": { "alias": "offer"; "required": false; }; "identifier": { "alias": "identifier"; "required": false; }; }, {}, never, never, true, never>;
|
|
36
|
+
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; }; "styles": { "alias": "styles"; "required": false; }; "multimedia": { "alias": "multimedia"; "required": false; }; "offer": { "alias": "offer"; "required": false; }; "identifier": { "alias": "identifier"; "required": false; }; "destination": { "alias": "destination"; "required": false; }; }, {}, never, never, true, never>;
|
|
35
37
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BabylonBodyExtra, BabylonRoomDetailI, BabylonTextInfoI } from '../../../../interfaces';
|
|
2
2
|
import { BabylonHotelStylesItem } from '../../../../interfaces/babylon-hotel-styles.interface';
|
|
3
|
+
import { BabylonDestinationI } from '../../../../interfaces/babylon-destination.interface';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class C2TxtMdh005Component {
|
|
5
6
|
texts?: BabylonTextInfoI;
|
|
@@ -8,9 +9,10 @@ export declare class C2TxtMdh005Component {
|
|
|
8
9
|
hotelType?: BabylonBodyExtra;
|
|
9
10
|
hotelCategory?: BabylonBodyExtra;
|
|
10
11
|
paddingTop?: string;
|
|
12
|
+
destination?: BabylonDestinationI;
|
|
11
13
|
trackByIndex(index: number): number;
|
|
12
14
|
getNumber(text: string): number[];
|
|
13
15
|
showIfSup(value?: string | null): string;
|
|
14
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<C2TxtMdh005Component, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<C2TxtMdh005Component, "c2-txt-mdh005", never, { "texts": { "alias": "texts"; "required": false; }; "rooms": { "alias": "rooms"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; "hotelType": { "alias": "hotelType"; "required": false; }; "hotelCategory": { "alias": "hotelCategory"; "required": false; }; "paddingTop": { "alias": "paddingTop"; "required": false; }; }, {}, never, never, true, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<C2TxtMdh005Component, "c2-txt-mdh005", never, { "texts": { "alias": "texts"; "required": false; }; "rooms": { "alias": "rooms"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; "hotelType": { "alias": "hotelType"; "required": false; }; "hotelCategory": { "alias": "hotelCategory"; "required": false; }; "paddingTop": { "alias": "paddingTop"; "required": false; }; "destination": { "alias": "destination"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
18
|
}
|
|
@@ -1,16 +1,30 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnChanges, OnInit } from '@angular/core';
|
|
2
|
+
import { BabylonItemI, BabylonMultimediaI, BabylonTextInfoI } from '../../../../interfaces';
|
|
3
|
+
import { BabylonDestinationI } from '../../../../interfaces/babylon-destination.interface';
|
|
2
4
|
import * as i0 from "@angular/core";
|
|
3
5
|
export interface SliC1ImgSvgContent {
|
|
4
6
|
image: string;
|
|
5
7
|
tagText: string;
|
|
6
8
|
icon: string;
|
|
7
9
|
}
|
|
8
|
-
export declare class SliC1ImgSvgComponent {
|
|
10
|
+
export declare class SliC1ImgSvgComponent implements OnInit, OnChanges {
|
|
9
11
|
texts?: BabylonTextInfoI;
|
|
10
12
|
items?: BabylonItemI[];
|
|
11
13
|
nohover?: boolean;
|
|
14
|
+
multimedia?: BabylonMultimediaI;
|
|
15
|
+
destination?: BabylonDestinationI;
|
|
16
|
+
destinations?: BabylonDestinationI[];
|
|
12
17
|
tagName: string;
|
|
18
|
+
viewItems: BabylonItemI[];
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
ngOnChanges(): void;
|
|
21
|
+
/**
|
|
22
|
+
* Con items se mantiene el comportamiento original. Sin items usa el
|
|
23
|
+
* destino: imagen con tag SliC1ImgSvg (o la primera de la multimedia del
|
|
24
|
+
* destino / del módulo) y el título de la imagen o el nombre del destino.
|
|
25
|
+
*/
|
|
26
|
+
private resolveItems;
|
|
13
27
|
getFirstImageByTag(tagName: string, imagenes: any[]): import("../../../../interfaces").BabylonImageI | undefined;
|
|
14
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<SliC1ImgSvgComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SliC1ImgSvgComponent, "sli-c1-img-svg", never, { "texts": { "alias": "texts"; "required": false; }; "items": { "alias": "items"; "required": false; }; "nohover": { "alias": "nohover"; "required": false; }; }, {}, never, never, true, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SliC1ImgSvgComponent, "sli-c1-img-svg", never, { "texts": { "alias": "texts"; "required": false; }; "items": { "alias": "items"; "required": false; }; "nohover": { "alias": "nohover"; "required": false; }; "multimedia": { "alias": "multimedia"; "required": false; }; "destination": { "alias": "destination"; "required": false; }; "destinations": { "alias": "destinations"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
30
|
}
|
|
@@ -4,6 +4,7 @@ import { BabylonStyleGlobalItem } from '../../../../interfaces/babylon-style.int
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class SliC2ImgComponent implements OnInit, AfterViewInit, OnChanges, OnDestroy {
|
|
6
6
|
multimedia?: BabylonMultimediaI;
|
|
7
|
+
identifier?: string;
|
|
7
8
|
reverse?: boolean;
|
|
8
9
|
rooms?: BabylonRoomDetailI[];
|
|
9
10
|
styles?: BabylonStyleGlobalItem;
|
|
@@ -15,7 +16,9 @@ export declare class SliC2ImgComponent implements OnInit, AfterViewInit, OnChang
|
|
|
15
16
|
private nextButton?;
|
|
16
17
|
private prevButton?;
|
|
17
18
|
private swiperInstance?;
|
|
19
|
+
verticalImage?: BabylonImageI;
|
|
18
20
|
ngOnInit(): void;
|
|
21
|
+
private resolveImages;
|
|
19
22
|
ngAfterViewInit(): void;
|
|
20
23
|
ngOnChanges(changes: SimpleChanges): void;
|
|
21
24
|
ngOnDestroy(): void;
|
|
@@ -26,5 +29,5 @@ export declare class SliC2ImgComponent implements OnInit, AfterViewInit, OnChang
|
|
|
26
29
|
getImagesByTag(tagName: string, multimedia: any): BabylonImageI[];
|
|
27
30
|
getFirstImageByTag(tagName: string, multimedia: any): BabylonImageI | undefined;
|
|
28
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<SliC2ImgComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SliC2ImgComponent, "sli-c2-img", never, { "multimedia": { "alias": "multimedia"; "required": false; }; "reverse": { "alias": "reverse"; "required": false; }; "rooms": { "alias": "rooms"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; }, {}, never, never, true, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SliC2ImgComponent, "sli-c2-img", never, { "multimedia": { "alias": "multimedia"; "required": false; }; "identifier": { "alias": "identifier"; "required": false; }; "reverse": { "alias": "reverse"; "required": false; }; "rooms": { "alias": "rooms"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; }, {}, never, never, true, never>;
|
|
30
33
|
}
|
package/lib/components/external/core/sli-c2-txt-car-img-c/sli-c2-txt-car-img-c.component.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { AfterViewInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { BabylonItemI, BabylonMultimediaI, BabylonTextInfoI } from '../../../../interfaces';
|
|
1
|
+
import { AfterViewInit, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { BabylonImageI, BabylonItemI, BabylonMultimediaI, BabylonTextInfoI } from '../../../../interfaces';
|
|
3
3
|
import { BabylonStyleGlobalItem } from '../../../../interfaces/babylon-style.interface';
|
|
4
|
+
import { BabylonDestinationI } from '../../../../interfaces/babylon-destination.interface';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export interface SliC2TxtCarImgCButton {
|
|
6
7
|
label: string;
|
|
@@ -20,23 +21,38 @@ export interface SliC2TxtCarImgCContent {
|
|
|
20
21
|
reverse?: boolean;
|
|
21
22
|
slides: SliC2TxtCarImgCSlide[];
|
|
22
23
|
}
|
|
23
|
-
export declare class SliC2TxtCarImgCComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
24
|
+
export declare class SliC2TxtCarImgCComponent implements OnInit, AfterViewInit, OnChanges, OnDestroy {
|
|
25
|
+
identifier?: string;
|
|
24
26
|
items?: BabylonItemI[];
|
|
25
27
|
rightSide?: boolean;
|
|
26
28
|
texts?: BabylonTextInfoI;
|
|
27
29
|
multimedia?: BabylonMultimediaI;
|
|
28
30
|
styles?: BabylonStyleGlobalItem;
|
|
31
|
+
destination?: BabylonDestinationI;
|
|
32
|
+
destinations?: BabylonDestinationI[];
|
|
33
|
+
readonly tagName = "SliC2TxtCarImgC";
|
|
34
|
+
readonly tagNameStatic = "SliC2TxtCarImgCStatic";
|
|
35
|
+
viewItems: BabylonItemI[];
|
|
36
|
+
viewStatic: BabylonImageI[];
|
|
29
37
|
private swiperContainer?;
|
|
30
38
|
private nextButton?;
|
|
31
39
|
private prevButton?;
|
|
32
40
|
private swiperInstance?;
|
|
33
41
|
private readonly platformId;
|
|
34
42
|
ngAfterViewInit(): void;
|
|
43
|
+
ngOnInit(): void;
|
|
44
|
+
/**
|
|
45
|
+
* Prioriza items + multimedia.staticImagenes (comportamiento original).
|
|
46
|
+
* Si no hay items, usa la multimedia del destino por tags:
|
|
47
|
+
* SliC2TxtCarImgC (slides) y SliC2TxtCarImgCStatic (imagen lateral);
|
|
48
|
+
* sin tags, usa todas las imágenes del destino.
|
|
49
|
+
*/
|
|
50
|
+
private resolveSlides;
|
|
35
51
|
ngOnChanges(changes: SimpleChanges): void;
|
|
36
52
|
ngOnDestroy(): void;
|
|
37
53
|
trackBySlide(index: number, slide: SliC2TxtCarImgCSlide): string;
|
|
38
54
|
private initializeSwiper;
|
|
39
55
|
private destroySwiper;
|
|
40
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<SliC2TxtCarImgCComponent, never>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SliC2TxtCarImgCComponent, "sli-c2-txt-car-img-c", never, { "items": { "alias": "items"; "required": false; }; "rightSide": { "alias": "rightSide"; "required": false; }; "texts": { "alias": "texts"; "required": false; }; "multimedia": { "alias": "multimedia"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; }, {}, never, never, true, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SliC2TxtCarImgCComponent, "sli-c2-txt-car-img-c", never, { "identifier": { "alias": "identifier"; "required": false; }; "items": { "alias": "items"; "required": false; }; "rightSide": { "alias": "rightSide"; "required": false; }; "texts": { "alias": "texts"; "required": false; }; "multimedia": { "alias": "multimedia"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; "destination": { "alias": "destination"; "required": false; }; "destinations": { "alias": "destinations"; "required": false; }; }, {}, never, never, true, never>;
|
|
42
58
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BabylonButtonI } from './babylon-button.interface';
|
|
2
2
|
import { BabylonHotelGlobalItem } from './babylon-hotel.interface';
|
|
3
|
+
import { BabylonMultimediaI } from './babylon-multimedia.interface';
|
|
3
4
|
import { BabylonTextInfoI } from './babylon-text-info.interface';
|
|
4
5
|
export interface BabylonDestinationI {
|
|
5
6
|
id?: number;
|
|
@@ -10,4 +11,5 @@ export interface BabylonDestinationI {
|
|
|
10
11
|
links?: BabylonButtonI[];
|
|
11
12
|
buttons?: BabylonButtonI[];
|
|
12
13
|
texts?: BabylonTextInfoI;
|
|
14
|
+
multimedia?: BabylonMultimediaI;
|
|
13
15
|
}
|