ctt-babylon 0.12.32 → 0.12.33
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-modal-v3/babylon-engine-modal-v3.component.mjs +206 -0
- package/esm2022/lib/components/core/babylon-engine-modal-v3/index.mjs +2 -0
- package/esm2022/lib/components/core/index.mjs +2 -1
- package/esm2022/lib/components/external/core/c4-me-txt-svg-cta/c4-me-txt-svg-cta.component.mjs +91 -13
- package/esm2022/lib/components/external/core/c4-sli-c2-txt-img/c4-sli-c2-txt-img.component.mjs +3 -3
- package/fesm2022/ctt-babylon.mjs +312 -44
- package/fesm2022/ctt-babylon.mjs.map +1 -1
- package/lib/components/core/babylon-engine-modal-v3/babylon-engine-modal-v3.component.d.ts +52 -0
- package/lib/components/core/babylon-engine-modal-v3/index.d.ts +1 -0
- package/lib/components/core/index.d.ts +1 -0
- package/lib/components/external/core/c4-me-txt-svg-cta/c4-me-txt-svg-cta.component.d.ts +17 -4
- package/package.json +1 -1
- package/esm2022/lib/components/external/core/c4-me-txt-svg-cta/c4-me-txt-svg-cta-interfaces.mjs +0 -2
- package/esm2022/lib/components/external/core/c4-me-txt-svg-cta/content.json +0 -36
- package/lib/components/external/core/c4-me-txt-svg-cta/c4-me-txt-svg-cta-interfaces.d.ts +0 -33
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { Calendar } from 'primeng/calendar';
|
|
4
|
+
import { Dropdown } from 'primeng/dropdown';
|
|
5
|
+
import { BabylonEngineModalI } from '../babylon-engine-modal/babylon-engine-modal.interface';
|
|
6
|
+
import { DropdownOption } from '../babylon-rooms-cols';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class BabylonEngineModalV3Component implements OnInit, OnDestroy {
|
|
9
|
+
engine?: BabylonEngineModalI;
|
|
10
|
+
arrivalCal: Calendar;
|
|
11
|
+
departureCal: Calendar;
|
|
12
|
+
adultsDropdown: Dropdown;
|
|
13
|
+
openInNewWindow: boolean;
|
|
14
|
+
lang?: string;
|
|
15
|
+
codigo?: string;
|
|
16
|
+
glValue?: string;
|
|
17
|
+
/** Opciones adultos */
|
|
18
|
+
adultsOptions: DropdownOption[];
|
|
19
|
+
submitEngine: EventEmitter<{
|
|
20
|
+
arrival: Date;
|
|
21
|
+
departure: Date;
|
|
22
|
+
adults: number;
|
|
23
|
+
url: string;
|
|
24
|
+
}>;
|
|
25
|
+
form: FormGroup<{
|
|
26
|
+
arrival: FormControl<Date | null>;
|
|
27
|
+
departure: FormControl<Date | null>;
|
|
28
|
+
adults: FormControl<DropdownOption | null>;
|
|
29
|
+
}>;
|
|
30
|
+
generatedUrl: string;
|
|
31
|
+
minArrival: Date;
|
|
32
|
+
minDeparture: Date;
|
|
33
|
+
isOpen: boolean;
|
|
34
|
+
closed: EventEmitter<void>;
|
|
35
|
+
private readonly router;
|
|
36
|
+
private readonly platformId;
|
|
37
|
+
private readonly cdr;
|
|
38
|
+
private readonly destroy$;
|
|
39
|
+
ngOnInit(): void;
|
|
40
|
+
ngOnDestroy(): void;
|
|
41
|
+
openArrival(): void;
|
|
42
|
+
openDeparture(): void;
|
|
43
|
+
openAdults(): void;
|
|
44
|
+
onClickReserve(e: Event): void;
|
|
45
|
+
private syncMinDeparture;
|
|
46
|
+
private updateGeneratedUrl;
|
|
47
|
+
private formatDate;
|
|
48
|
+
private saveEngineData;
|
|
49
|
+
private loadEngineData;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BabylonEngineModalV3Component, never>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BabylonEngineModalV3Component, "lib-babylon-engine-modal-v3", never, { "engine": { "alias": "engine"; "required": false; }; "openInNewWindow": { "alias": "openInNewWindow"; "required": false; }; "lang": { "alias": "lang"; "required": false; }; "codigo": { "alias": "codigo"; "required": false; }; "glValue": { "alias": "glValue"; "required": false; }; "adultsOptions": { "alias": "adultsOptions"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; }, { "submitEngine": "submitEngine"; "closed": "closed"; }, never, never, true, never>;
|
|
52
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './babylon-engine-modal-v3.component';
|
|
@@ -25,6 +25,7 @@ export * from './babylon-contact-map';
|
|
|
25
25
|
export * from './babylon-container-text-l2';
|
|
26
26
|
export * from './babylon-engine';
|
|
27
27
|
export * from './babylon-engine-modal';
|
|
28
|
+
export * from './babylon-engine-modal-v3';
|
|
28
29
|
export * from './babylon-engine-widget-modal';
|
|
29
30
|
export * from './babylon-external-script';
|
|
30
31
|
export * from './babylon-faq';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementRef, EventEmitter, Renderer2 } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
2
3
|
import { LogoType } from '../../../../Enum';
|
|
3
4
|
import { BabylonButtonI, BabylonImageI, BabylonMenuButtonI, BabylonMenuInfoI, BabylonTextInfoI } from '../../../../interfaces';
|
|
4
|
-
import { BabylonLanguageModalI } from '../../../core';
|
|
5
|
+
import { BabylonEngineModalI, BabylonLanguageModalI } from '../../../core';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class C4MeTxtSvgCtaComponent {
|
|
7
8
|
private renderer;
|
|
9
|
+
private router;
|
|
8
10
|
multipleMotorsModal?: boolean;
|
|
9
11
|
logos?: Record<LogoType, BabylonImageI | undefined>;
|
|
10
12
|
linkLogo?: BabylonButtonI;
|
|
@@ -13,19 +15,30 @@ export declare class C4MeTxtSvgCtaComponent {
|
|
|
13
15
|
btnBook?: BabylonButtonI;
|
|
14
16
|
texts?: BabylonTextInfoI;
|
|
15
17
|
languages?: BabylonLanguageModalI;
|
|
18
|
+
engine?: BabylonEngineModalI;
|
|
19
|
+
ownBookModal?: boolean;
|
|
16
20
|
stickyHeader: boolean;
|
|
17
21
|
menuOpen: boolean;
|
|
22
|
+
bookModalOpen: boolean;
|
|
18
23
|
modalClick: EventEmitter<string>;
|
|
19
24
|
openModalMultMotors: EventEmitter<void>;
|
|
20
25
|
openEngine: EventEmitter<any>;
|
|
21
26
|
burgerMenu: ElementRef;
|
|
27
|
+
bookModal: ElementRef;
|
|
22
28
|
mCont: ElementRef;
|
|
23
|
-
|
|
29
|
+
private navSub?;
|
|
30
|
+
private isBrowser;
|
|
31
|
+
constructor(renderer: Renderer2, router: Router, platformId: object);
|
|
24
32
|
onWindowScroll(): void;
|
|
25
33
|
toggleMenu(): void;
|
|
34
|
+
private closeMenuOnNav;
|
|
35
|
+
private applyMenuClasses;
|
|
26
36
|
ngAfterViewInit(): void;
|
|
27
37
|
openModalMultipleMotors(): void;
|
|
28
38
|
openEngineModal(): void;
|
|
39
|
+
toggleBookModal(): void;
|
|
40
|
+
private closeBookModalOnNav;
|
|
41
|
+
private applyBookModalClasses;
|
|
29
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<C4MeTxtSvgCtaComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<C4MeTxtSvgCtaComponent, "ces-c4-me-txt-svg-cta", never, { "multipleMotorsModal": { "alias": "multipleMotorsModal"; "required": false; }; "logos": { "alias": "logos"; "required": false; }; "linkLogo": { "alias": "linkLogo"; "required": false; }; "menu": { "alias": "menu"; "required": false; }; "menuInfo": { "alias": "menuInfo"; "required": false; }; "btnBook": { "alias": "btnBook"; "required": false; }; "texts": { "alias": "texts"; "required": false; }; "languages": { "alias": "languages"; "required": false; }; }, { "modalClick": "modalClick"; "openModalMultMotors": "openModalMultMotors"; "openEngine": "openEngine"; }, never, never, true, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<C4MeTxtSvgCtaComponent, "ces-c4-me-txt-svg-cta", never, { "multipleMotorsModal": { "alias": "multipleMotorsModal"; "required": false; }; "logos": { "alias": "logos"; "required": false; }; "linkLogo": { "alias": "linkLogo"; "required": false; }; "menu": { "alias": "menu"; "required": false; }; "menuInfo": { "alias": "menuInfo"; "required": false; }; "btnBook": { "alias": "btnBook"; "required": false; }; "texts": { "alias": "texts"; "required": false; }; "languages": { "alias": "languages"; "required": false; }; "engine": { "alias": "engine"; "required": false; }; "ownBookModal": { "alias": "ownBookModal"; "required": false; }; }, { "modalClick": "modalClick"; "openModalMultMotors": "openModalMultMotors"; "openEngine": "openEngine"; }, never, never, true, never>;
|
|
31
44
|
}
|
package/package.json
CHANGED
package/esm2022/lib/components/external/core/c4-me-txt-svg-cta/c4-me-txt-svg-cta-interfaces.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYzQtbWUtdHh0LXN2Zy1jdGEtaW50ZXJmYWNlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2JhYnlsb24vc3JjL2xpYi9jb21wb25lbnRzL2V4dGVybmFsL2NvcmUvYzQtbWUtdHh0LXN2Zy1jdGEvYzQtbWUtdHh0LXN2Zy1jdGEtaW50ZXJmYWNlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBDNE1lVHh0U3ZnQ3RhTWVudUl0ZW0ge1xuICAgIHRleHQ6IHN0cmluZztcbiAgICB1cmw6IHN0cmluZztcbn1cblxuZXhwb3J0IGludGVyZmFjZSBDNE1lVHh0U3ZnQ3RhTGFuZ3VhZ2VJdGVtIHtcbiAgICB0ZXh0OiBzdHJpbmc7XG4gICAgdXJsOiBzdHJpbmc7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgQzRNZVR4dFN2Z0N0YUxvZ28ge1xuICAgIHNyYzogc3RyaW5nO1xuICAgIGFsdDogc3RyaW5nO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEM0TWVUeHRTdmdDdGFJY29uIHtcbiAgICBzcmM6IHN0cmluZztcbiAgICBhbHQ6IHN0cmluZztcbn1cblxuZXhwb3J0IGludGVyZmFjZSBDNE1lVHh0U3ZnQ3RhSWNvbkNsb3NlIHtcbiAgICBzcmM6IHN0cmluZztcbiAgICBhbHQ6IHN0cmluZztcbn1cblxuZXhwb3J0IGludGVyZmFjZSBDNE1lVHh0U3ZnQ3RhQ3RhIHtcbiAgICB0ZXh0OiBzdHJpbmc7XG4gICAgdXJsOiBzdHJpbmc7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgQzRNZVR4dFN2Z0N0YSB7XG4gICAgdGl0bGU6IHN0cmluZztcbiAgICBsb2dvOiBDNE1lVHh0U3ZnQ3RhTG9nbztcbiAgICBpY29uOiBDNE1lVHh0U3ZnQ3RhSWNvbjtcbiAgICBpY29uY2xvc2U6IEM0TWVUeHRTdmdDdGFJY29uQ2xvc2U7XG4gICAgY3RhOiBDNE1lVHh0U3ZnQ3RhQ3RhO1xuICAgIG1lbnVJdGVtczogQzRNZVR4dFN2Z0N0YU1lbnVJdGVtW107XG4gICAgbGFuZ3VhZ2VJdGVtczogQzRNZVR4dFN2Z0N0YUxhbmd1YWdlSXRlbVtdO1xufVxuIl19
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "LUXURY RESIDENCES & SUITES",
|
|
3
|
-
"logo": {
|
|
4
|
-
"src": "/assets/babylon/images/branding/logomenu.svg",
|
|
5
|
-
"alt": "Logo"
|
|
6
|
-
},
|
|
7
|
-
"icon": {
|
|
8
|
-
"src": "/assets/babylon/images/branding/icono.svg",
|
|
9
|
-
"alt": "Icon"
|
|
10
|
-
},
|
|
11
|
-
"iconclose": {
|
|
12
|
-
"src": "/assets/babylon/images/icons/close.svg",
|
|
13
|
-
"alt": "Icon Close"
|
|
14
|
-
},
|
|
15
|
-
"cta": {
|
|
16
|
-
"text": "RESERVAR",
|
|
17
|
-
"url": "#"
|
|
18
|
-
},
|
|
19
|
-
"menuItems": [
|
|
20
|
-
{ "text": "HOTEL", "url": "#" },
|
|
21
|
-
{ "text": "RESIDENCES & SUITES", "url": "#" },
|
|
22
|
-
{ "text": "WELLNESS", "url": "#" },
|
|
23
|
-
{ "text": "HISTORIA", "url": "#" },
|
|
24
|
-
{ "text": "ENTORNO", "url": "#" },
|
|
25
|
-
{ "text": "GALERÍA", "url": "#" },
|
|
26
|
-
{ "text": "CONCIERGE SERVICE", "url": "#" },
|
|
27
|
-
{ "text": "CÓMO LLEGAR", "url": "#" },
|
|
28
|
-
{ "text": "CÓNTACTO", "url": "#" }
|
|
29
|
-
],
|
|
30
|
-
"languageItems": [
|
|
31
|
-
{ "text": "ES", "url": "#" },
|
|
32
|
-
{ "text": "EN", "url": "#" },
|
|
33
|
-
{ "text": "DE", "url": "#" },
|
|
34
|
-
{ "text": "FR", "url": "#" }
|
|
35
|
-
]
|
|
36
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export interface C4MeTxtSvgCtaMenuItem {
|
|
2
|
-
text: string;
|
|
3
|
-
url: string;
|
|
4
|
-
}
|
|
5
|
-
export interface C4MeTxtSvgCtaLanguageItem {
|
|
6
|
-
text: string;
|
|
7
|
-
url: string;
|
|
8
|
-
}
|
|
9
|
-
export interface C4MeTxtSvgCtaLogo {
|
|
10
|
-
src: string;
|
|
11
|
-
alt: string;
|
|
12
|
-
}
|
|
13
|
-
export interface C4MeTxtSvgCtaIcon {
|
|
14
|
-
src: string;
|
|
15
|
-
alt: string;
|
|
16
|
-
}
|
|
17
|
-
export interface C4MeTxtSvgCtaIconClose {
|
|
18
|
-
src: string;
|
|
19
|
-
alt: string;
|
|
20
|
-
}
|
|
21
|
-
export interface C4MeTxtSvgCtaCta {
|
|
22
|
-
text: string;
|
|
23
|
-
url: string;
|
|
24
|
-
}
|
|
25
|
-
export interface C4MeTxtSvgCta {
|
|
26
|
-
title: string;
|
|
27
|
-
logo: C4MeTxtSvgCtaLogo;
|
|
28
|
-
icon: C4MeTxtSvgCtaIcon;
|
|
29
|
-
iconclose: C4MeTxtSvgCtaIconClose;
|
|
30
|
-
cta: C4MeTxtSvgCtaCta;
|
|
31
|
-
menuItems: C4MeTxtSvgCtaMenuItem[];
|
|
32
|
-
languageItems: C4MeTxtSvgCtaLanguageItem[];
|
|
33
|
-
}
|