ctt-babylon 0.26.9 → 0.26.11
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-booking-banner/babylon-booking-banner.component.mjs +7 -7
- package/esm2022/lib/components/core/babylon-engine-mews/babylon-engine-mews.component.mjs +86 -3
- package/fesm2022/ctt-babylon.mjs +2 -2
- package/fesm2022/ctt-babylon.mjs.map +1 -1
- package/lib/components/core/babylon-booking-banner/babylon-booking-banner.component.d.ts +1 -1
- package/lib/components/core/babylon-engine-mews/babylon-engine-mews.component.d.ts +12 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AfterViewInit, EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
-
import { BabylonButtonI, BabylonOfferItemI, BabylonTextInfoI } from '../../../interfaces';
|
|
3
2
|
import { Router } from '@angular/router';
|
|
3
|
+
import { BabylonButtonI, BabylonOfferItemI, BabylonTextInfoI } from '../../../interfaces';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class BabylonBookingBannerComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
6
6
|
private renderer;
|
|
@@ -27,6 +27,7 @@ export declare class BabylonEngineMewsComponent implements OnInit {
|
|
|
27
27
|
hotelsPlaceholder?: string;
|
|
28
28
|
defaultPromoCode?: string;
|
|
29
29
|
close: EventEmitter<any>;
|
|
30
|
+
showingEngineModal: boolean;
|
|
30
31
|
hotelsValue: MewsHotelOption | null;
|
|
31
32
|
datepickerValue: string;
|
|
32
33
|
minDate: Date;
|
|
@@ -50,11 +51,13 @@ export declare class BabylonEngineMewsComponent implements OnInit {
|
|
|
50
51
|
private cdr;
|
|
51
52
|
private getLanguageFromUrl;
|
|
52
53
|
ngOnInit(): void;
|
|
54
|
+
toggleEngineModal(): void;
|
|
53
55
|
toggleHotelsDropdown(): void;
|
|
54
56
|
handleDropdownChange(event: any): void;
|
|
55
57
|
handleDisabledClick(event: Event): void;
|
|
56
58
|
toggleShowingGuests(): void;
|
|
57
59
|
guestsChange(data: guestsValue): void;
|
|
60
|
+
groupHotels(apiHotels: any[]): MewsHotelOption[] | MewsHotelGroup[];
|
|
58
61
|
/**
|
|
59
62
|
* Invocación a la API de Mews Distributor al hacer clic en Buscar
|
|
60
63
|
*/
|
|
@@ -68,11 +71,19 @@ export interface MewsHotelOption {
|
|
|
68
71
|
name?: string;
|
|
69
72
|
configurationId?: string;
|
|
70
73
|
id?: number;
|
|
74
|
+
location?: string;
|
|
75
|
+
disabled?: boolean;
|
|
76
|
+
}
|
|
77
|
+
export interface MewsHotelGroup {
|
|
78
|
+
label: string;
|
|
79
|
+
value?: string;
|
|
80
|
+
items: MewsHotelOption[];
|
|
71
81
|
}
|
|
72
82
|
export interface MewsHotelsDropdownI {
|
|
73
83
|
placeholder?: string;
|
|
74
|
-
options?: MewsHotelOption[];
|
|
84
|
+
options?: MewsHotelOption[] | MewsHotelGroup[];
|
|
75
85
|
title?: string;
|
|
76
86
|
smallTitle?: string;
|
|
77
87
|
error?: string;
|
|
88
|
+
group?: boolean;
|
|
78
89
|
}
|