ctt-babylon 0.12.10 → 0.12.12
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-engine-widget-modal/babylon-engine-widget-modal.component.mjs +5 -3
- package/esm2022/lib/components/core/babylon-he-svg-list/babylon-he-svg-list.component.mjs +4 -3
- package/esm2022/lib/components/external/core/lis-c4-txt-des-cta/lis-c4-txt-des-cta.component.mjs +57 -6
- package/esm2022/lib/interfaces/babylon-text-info.interface.mjs +1 -1
- package/esm2022/lib/services/mapper/mapper.service.mjs +4 -1
- package/fesm2022/ctt-babylon.mjs +105 -176
- package/fesm2022/ctt-babylon.mjs.map +1 -1
- package/lib/components/core/babylon-engine-widget-modal/babylon-engine-widget-modal.component.d.ts +3 -1
- package/lib/components/external/core/lis-c4-txt-des-cta/lis-c4-txt-des-cta.component.d.ts +13 -30
- package/lib/interfaces/babylon-text-info.interface.d.ts +3 -0
- package/package.json +1 -1
- package/esm2022/lib/components/external/core/lis-c4-txt-des-cta/content.json +0 -64
package/lib/components/core/babylon-engine-widget-modal/babylon-engine-widget-modal.component.d.ts
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
3
|
import { BabylonTextInfoI } from '../../../interfaces';
|
|
4
|
+
import { BabylonHotelStylesItem } from '../../../interfaces/babylon-hotel-styles.interface';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class BabylonEngineWidgetModalComponent {
|
|
6
7
|
private readonly dialogRef;
|
|
7
8
|
texts?: BabylonTextInfoI;
|
|
8
9
|
locale?: string;
|
|
9
10
|
widgetConfig?: any;
|
|
11
|
+
styles?: BabylonHotelStylesItem;
|
|
10
12
|
close: EventEmitter<any>;
|
|
11
13
|
private platformId;
|
|
12
14
|
constructor(dialogRef: MatDialogRef<BabylonEngineWidgetModalComponent>);
|
|
13
15
|
closeModal(): void;
|
|
14
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<BabylonEngineWidgetModalComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BabylonEngineWidgetModalComponent, "lib-babylon-engine-widget-modal", never, { "texts": { "alias": "texts"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "widgetConfig": { "alias": "widgetConfig"; "required": false; }; }, { "close": "close"; }, never, never, true, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BabylonEngineWidgetModalComponent, "lib-babylon-engine-widget-modal", never, { "texts": { "alias": "texts"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "widgetConfig": { "alias": "widgetConfig"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; }, { "close": "close"; }, never, never, true, never>;
|
|
16
18
|
}
|
|
@@ -1,40 +1,23 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
1
2
|
import { BabylonImageI, BabylonTextInfoI } from '../../../../interfaces';
|
|
2
3
|
import { BabylonHotelGlobalItem } from '../../../../interfaces/babylon-hotel.interface';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export
|
|
5
|
-
label: string;
|
|
6
|
-
options: string[];
|
|
7
|
-
}
|
|
8
|
-
export interface LisC4TxtDesCtaButton {
|
|
9
|
-
label: string;
|
|
10
|
-
url?: string;
|
|
11
|
-
target?: string;
|
|
12
|
-
ariaLabel?: string;
|
|
13
|
-
variant?: 'red' | 'default';
|
|
14
|
-
}
|
|
15
|
-
export interface LisC4TxtDesCtaCard {
|
|
16
|
-
image?: string;
|
|
17
|
-
tagLeft?: string;
|
|
18
|
-
tagLeftKeys?: number;
|
|
19
|
-
tagRight?: string;
|
|
20
|
-
title?: string;
|
|
21
|
-
subtitle?: string;
|
|
22
|
-
primaryButton?: LisC4TxtDesCtaButton;
|
|
23
|
-
secondaryButton?: LisC4TxtDesCtaButton;
|
|
24
|
-
empty?: boolean;
|
|
25
|
-
emptyIcon?: string;
|
|
26
|
-
emptyText?: string;
|
|
27
|
-
}
|
|
28
|
-
export interface LisC4TxtDesCtaContent {
|
|
29
|
-
title: string;
|
|
30
|
-
selects: LisC4TxtDesCtaSelect[];
|
|
31
|
-
cards: LisC4TxtDesCtaCard[];
|
|
32
|
-
}
|
|
33
|
-
export declare class LisC4TxtDesCtaComponent {
|
|
5
|
+
export declare class LisC4TxtDesCtaComponent implements OnChanges {
|
|
34
6
|
texts?: BabylonTextInfoI;
|
|
35
7
|
filters?: any;
|
|
36
8
|
items?: BabylonHotelGlobalItem[];
|
|
37
9
|
tagName: string;
|
|
10
|
+
selectedHotelType: string;
|
|
11
|
+
selectedDestination: string;
|
|
12
|
+
hotelTypeOptions: string[];
|
|
13
|
+
destinationOptions: string[];
|
|
14
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
15
|
+
private buildFilterOptions;
|
|
16
|
+
get filteredItems(): BabylonHotelGlobalItem[];
|
|
17
|
+
get hasActiveFilters(): boolean;
|
|
18
|
+
onHotelTypeChange(value: string | undefined): void;
|
|
19
|
+
onDestinationChange(value: string): void;
|
|
20
|
+
clearFilters(): void;
|
|
38
21
|
getKeysArray(count: number | undefined): number[];
|
|
39
22
|
trackByIndex(index: number): number;
|
|
40
23
|
getFirstImageByTag(tagName: string, imagenes: BabylonImageI[]): BabylonImageI | undefined;
|
package/package.json
CHANGED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "Conoce nuestros hoteles y Apartamentos",
|
|
3
|
-
"selects": [
|
|
4
|
-
{ "label": "Ver marcas", "options": ["Ver marcas", "Opción 2", "Opción 3"] },
|
|
5
|
-
{ "label": "Ver experiencias", "options": ["Ver experiencias", "Opción 2", "Opción 3"] },
|
|
6
|
-
{ "label": "Reservars", "options": ["Reservars", "Opción 2", "Opción 3"] }
|
|
7
|
-
],
|
|
8
|
-
"cards": [
|
|
9
|
-
{
|
|
10
|
-
"image": "https://picsum.photos/801/802",
|
|
11
|
-
"tagLeft": "Hotel ★★",
|
|
12
|
-
"title": "ALEGRIA Barranco",
|
|
13
|
-
"subtitle": "Arona - Tenerife",
|
|
14
|
-
"primaryButton": { "label": "Reservar", "url": "#", "variant": "red" },
|
|
15
|
-
"secondaryButton": { "label": "Ver hotel", "url": "es/hotel" }
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"image": "https://picsum.photos/801/810",
|
|
19
|
-
"tagLeft": "Apartamentos",
|
|
20
|
-
"tagLeftKeys": 3,
|
|
21
|
-
"title": "ALEGRIA Palacio Mojacar",
|
|
22
|
-
"subtitle": "Mojácar - Costa Almería ",
|
|
23
|
-
"primaryButton": { "label": "Reservar", "url": "#", "variant": "red" },
|
|
24
|
-
"secondaryButton": { "label": "Ver hotel", "url": "es/hotel" }
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"image": "https://picsum.photos/801/800",
|
|
28
|
-
"tagLeft": "Hotel ★★★★",
|
|
29
|
-
"tagRight": "Solo Adultos",
|
|
30
|
-
"title": "ALEGRIA Costa Ballena Aquafun",
|
|
31
|
-
"subtitle": "Rota - Cádiz",
|
|
32
|
-
"primaryButton": { "label": "Reservar", "url": "#", "variant": "red" },
|
|
33
|
-
"secondaryButton": { "label": "Ver hotel", "url": "es/hotel" }
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"image": "https://picsum.photos/801/802",
|
|
37
|
-
"title": "ALEGRIA Colonial Mar Aquafun ",
|
|
38
|
-
"subtitle": "Roquetas de Mar - Costa Almería ",
|
|
39
|
-
"primaryButton": { "label": "Reservar", "url": "#" },
|
|
40
|
-
"secondaryButton": { "label": "Ver hotel", "url": "es/hotel" }
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"image": "https://picsum.photos/801/800",
|
|
44
|
-
"tagRight": "1 apartamento",
|
|
45
|
-
"title": "Costa Dorada",
|
|
46
|
-
"primaryButton": { "label": "Reservar", "url": "#", "variant": "red" },
|
|
47
|
-
"secondaryButton": { "label": "Ver hotel", "url": "es/hotel" }
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"image": "https://picsum.photos/801/802",
|
|
51
|
-
"title": "Familias",
|
|
52
|
-
"primaryButton": { "label": "Reservar", "url": "#" },
|
|
53
|
-
"secondaryButton": { "label": "Ver hotel", "url": "es/hotel" }
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"empty": true,
|
|
57
|
-
"emptyIcon": "/assets/babylon/svg/icons/logoblock.svg"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"empty": true,
|
|
61
|
-
"emptyText": "Tus próximas vacaciones te esperan en unos de nuestros destinos."
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
}
|