tent-lib 0.0.28 → 0.0.30
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/atomic/breadcrump/breadcrump.component.mjs +3 -3
- package/esm2022/lib/components/atomic/button/button.component.mjs +3 -1
- package/esm2022/lib/components/core/header/header.component.mjs +3 -3
- package/esm2022/lib/components/core/header-mobile/header-mobile.component.mjs +3 -3
- package/esm2022/lib/components/core/modals/books-modal/books-modal.component.mjs +38 -14
- package/esm2022/lib/components/core/modals/checkin-modal/checkin-modal.component.mjs +11 -6
- package/esm2022/lib/components/core/modals/languages-modal/languages-modal.component.mjs +9 -6
- package/esm2022/lib/components/core/modals/menu-modal/menu-modal.component.mjs +28 -33
- package/esm2022/lib/components/core/modals/newsletter-modal/newsletter-modal.component.mjs +19 -5
- package/esm2022/lib/components/core/offer-banner/offer-banner.component.mjs +3 -3
- package/esm2022/lib/components/core/top-module/top-module.component.mjs +3 -3
- package/esm2022/lib/interfaces/atomic/input.interface.mjs +1 -1
- package/esm2022/lib/interfaces/core/books-modal.interface.mjs +2 -0
- package/esm2022/lib/interfaces/core/checkin-modal.interface.mjs +2 -0
- package/esm2022/lib/interfaces/core/header-mobile.interface.mjs +1 -1
- package/esm2022/lib/interfaces/core/header.interface.mjs +1 -1
- package/esm2022/lib/interfaces/core/languages-modal.interface.mjs +2 -0
- package/esm2022/lib/interfaces/core/menu-modal.interface.mjs +2 -0
- package/esm2022/lib/interfaces/core/newsletter-modal.interface.mjs +2 -0
- package/esm2022/public-api.mjs +6 -1
- package/fesm2022/tent-lib.mjs +133 -93
- package/fesm2022/tent-lib.mjs.map +1 -1
- package/lib/components/atomic/button/button.component.d.ts +2 -0
- package/lib/components/core/modals/books-modal/books-modal.component.d.ts +29 -5
- package/lib/components/core/modals/checkin-modal/checkin-modal.component.d.ts +4 -1
- package/lib/components/core/modals/languages-modal/languages-modal.component.d.ts +4 -2
- package/lib/components/core/modals/menu-modal/menu-modal.component.d.ts +12 -5
- package/lib/components/core/modals/newsletter-modal/newsletter-modal.component.d.ts +10 -1
- package/lib/interfaces/atomic/input.interface.d.ts +3 -0
- package/lib/interfaces/core/books-modal.interface.d.ts +6 -0
- package/lib/interfaces/core/checkin-modal.interface.d.ts +6 -0
- package/lib/interfaces/core/header-mobile.interface.d.ts +5 -0
- package/lib/interfaces/core/header.interface.d.ts +8 -0
- package/lib/interfaces/core/languages-modal.interface.d.ts +5 -0
- package/lib/interfaces/core/menu-modal.interface.d.ts +13 -0
- package/lib/interfaces/core/newsletter-modal.interface.d.ts +11 -0
- package/package.json +1 -1
- package/public-api.d.ts +5 -0
|
@@ -2,6 +2,8 @@ import { EventEmitter } from '@angular/core';
|
|
|
2
2
|
import { SafeStyle } from '@angular/platform-browser';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ButtonComponent {
|
|
5
|
+
static LINK_EXTERNAL: string;
|
|
6
|
+
static LINK_INTERNAL: string;
|
|
5
7
|
type: ButtonType;
|
|
6
8
|
label?: string;
|
|
7
9
|
url?: string;
|
|
@@ -1,10 +1,34 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { ButtonI } from '../../../../interfaces/atomic/button.interface';
|
|
4
|
+
import { InputI } from '../../../../interfaces/atomic/input.interface';
|
|
5
|
+
import { FormGroup } from '@angular/forms';
|
|
1
6
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class BooksModalComponent {
|
|
3
|
-
tabs: string[];
|
|
4
|
-
selected: string;
|
|
7
|
+
export declare class BooksModalComponent implements OnInit {
|
|
5
8
|
private readonly dialogRef;
|
|
6
|
-
|
|
9
|
+
tabs: NewsletterTab[];
|
|
10
|
+
loginData: TabData;
|
|
11
|
+
closeBtn: ButtonI;
|
|
12
|
+
submitBtnclick: EventEmitter<any>;
|
|
13
|
+
selected: NewsletterTab;
|
|
14
|
+
form: FormGroup;
|
|
15
|
+
constructor(dialogRef: MatDialogRef<BooksModalComponent>);
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
selectTab(tab: NewsletterTab, event: Event): void;
|
|
18
|
+
initForm(): void;
|
|
7
19
|
close(): void;
|
|
20
|
+
submitBtnClicked(): void;
|
|
8
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<BooksModalComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BooksModalComponent, "tent-books-modal", never, {}, {}, never, never, true, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BooksModalComponent, "tent-books-modal", never, { "tabs": { "alias": "tabs"; "required": false; }; "loginData": { "alias": "loginData"; "required": false; }; "closeBtn": { "alias": "closeBtn"; "required": false; }; }, { "submitBtnclick": "submitBtnclick"; }, never, never, true, never>;
|
|
23
|
+
}
|
|
24
|
+
export interface NewsletterTab {
|
|
25
|
+
label: string;
|
|
26
|
+
link?: ButtonI;
|
|
27
|
+
order: number;
|
|
28
|
+
form: TabData;
|
|
29
|
+
}
|
|
30
|
+
export interface TabData {
|
|
31
|
+
title: string;
|
|
32
|
+
inputs: InputI[];
|
|
33
|
+
submitBtn: ButtonI;
|
|
10
34
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { SafeStyle } from '@angular/platform-browser';
|
|
2
|
+
import { ButtonI } from '../../../../interfaces/atomic/button.interface';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class CheckinModalComponent {
|
|
4
5
|
image: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
closeBtn: ButtonI;
|
|
5
8
|
get getImage(): SafeStyle;
|
|
6
9
|
private readonly sanitizer;
|
|
7
10
|
private readonly dialogRef;
|
|
8
11
|
close(): void;
|
|
9
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckinModalComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckinModalComponent, "tent-checkin-modal", never, {}, {}, never, never, true, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckinModalComponent, "tent-checkin-modal", never, { "image": { "alias": "image"; "required": false; }; "title": { "alias": "title"; "required": false; }; "closeBtn": { "alias": "closeBtn"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
14
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ButtonI } from '../../../../interfaces/atomic/button.interface';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class LanguagesModalComponent {
|
|
5
|
+
closeBtn: ButtonI;
|
|
6
|
+
buttons: ButtonI[];
|
|
4
7
|
languageSelect: EventEmitter<string>;
|
|
5
|
-
languages: string[];
|
|
6
8
|
selected: string;
|
|
7
9
|
private readonly dialogRef;
|
|
8
10
|
selectLanguage(language: string): void;
|
|
9
11
|
close(): void;
|
|
10
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<LanguagesModalComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LanguagesModalComponent, "tent-languages-modal", never, {}, { "languageSelect": "languageSelect"; }, never, never, true, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LanguagesModalComponent, "tent-languages-modal", never, { "closeBtn": { "alias": "closeBtn"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; }, { "languageSelect": "languageSelect"; }, never, never, true, never>;
|
|
12
14
|
}
|
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { SafeStyle } from '@angular/platform-browser';
|
|
3
|
+
import { ButtonI } from '../../../../interfaces/atomic/button.interface';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class MenuModalComponent {
|
|
6
|
+
closeBtn: ButtonI;
|
|
7
|
+
logo?: string;
|
|
8
|
+
checkinLabel?: string;
|
|
9
|
+
items: MenuItem[];
|
|
10
|
+
booksBtn: ButtonI;
|
|
11
|
+
buttonItem: ButtonI;
|
|
12
|
+
phoneBtn: ButtonI;
|
|
13
|
+
newsletterBtn: ButtonI;
|
|
14
|
+
socialButtons: ButtonI[];
|
|
5
15
|
checkinClick: EventEmitter<void>;
|
|
6
16
|
newsletterClick: EventEmitter<void>;
|
|
7
17
|
booksClick: EventEmitter<void>;
|
|
8
|
-
items: MenuItem[];
|
|
9
|
-
defaultImage: string;
|
|
10
18
|
elementClick: EventEmitter<MenuItem>;
|
|
19
|
+
isInternalLink(item: MenuItem): boolean;
|
|
11
20
|
private readonly dialogRef;
|
|
12
21
|
private readonly sanitizer;
|
|
13
|
-
itemHover?: MenuItem;
|
|
14
22
|
getImage(image?: string): SafeStyle | undefined;
|
|
15
|
-
selectLink(item?: MenuItem): void;
|
|
16
23
|
linkClicked(item: MenuItem, event: Event): void;
|
|
17
24
|
closeModal(): void;
|
|
18
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuModalComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MenuModalComponent, "tent-menu-modal", never, {}, { "checkinClick": "checkinClick"; "newsletterClick": "newsletterClick"; "booksClick": "booksClick"; "elementClick": "elementClick"; }, never, never, true, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MenuModalComponent, "tent-menu-modal", never, { "closeBtn": { "alias": "closeBtn"; "required": false; }; "logo": { "alias": "logo"; "required": false; }; "checkinLabel": { "alias": "checkinLabel"; "required": false; }; "items": { "alias": "items"; "required": false; }; "booksBtn": { "alias": "booksBtn"; "required": false; }; "buttonItem": { "alias": "buttonItem"; "required": false; }; "phoneBtn": { "alias": "phoneBtn"; "required": false; }; "newsletterBtn": { "alias": "newsletterBtn"; "required": false; }; "socialButtons": { "alias": "socialButtons"; "required": false; }; }, { "checkinClick": "checkinClick"; "newsletterClick": "newsletterClick"; "booksClick": "booksClick"; "elementClick": "elementClick"; }, never, never, true, never>;
|
|
20
27
|
}
|
|
21
28
|
export interface MenuItem {
|
|
22
29
|
id?: string | number;
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
+
import { ButtonI } from '../../../../interfaces/atomic/button.interface';
|
|
2
|
+
import { InputI } from '../../../../interfaces/atomic/input.interface';
|
|
1
3
|
import * as i0 from "@angular/core";
|
|
2
4
|
export declare class NewsletterModalComponent {
|
|
5
|
+
closeBtn: ButtonI;
|
|
6
|
+
image: string;
|
|
7
|
+
title: string;
|
|
8
|
+
titleDark: string;
|
|
9
|
+
description: string;
|
|
10
|
+
conditions: string;
|
|
11
|
+
input: InputI;
|
|
3
12
|
private readonly dialogRef;
|
|
4
13
|
close(): void;
|
|
5
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<NewsletterModalComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NewsletterModalComponent, "tent-newsletter-modal", never, {}, {}, never, never, true, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NewsletterModalComponent, "tent-newsletter-modal", never, { "closeBtn": { "alias": "closeBtn"; "required": false; }; "image": { "alias": "image"; "required": false; }; "title": { "alias": "title"; "required": false; }; "titleDark": { "alias": "titleDark"; "required": false; }; "description": { "alias": "description"; "required": false; }; "conditions": { "alias": "conditions"; "required": false; }; "input": { "alias": "input"; "required": false; }; }, {}, never, never, true, never>;
|
|
7
16
|
}
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
+
import { NavLink, RightButtons } from '../../components/core/header/header.component';
|
|
2
|
+
import { ButtonI } from '../atomic/button.interface';
|
|
1
3
|
export interface HeaderI {
|
|
4
|
+
scrolled?: boolean;
|
|
5
|
+
logo: string;
|
|
6
|
+
navLinks: NavLink[];
|
|
7
|
+
menuIcon: string;
|
|
8
|
+
rightButtons: RightButtons;
|
|
9
|
+
btnBook: ButtonI;
|
|
2
10
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MenuItem } from '../../components/core/modals/menu-modal/menu-modal.component';
|
|
2
|
+
import { ButtonI } from '../atomic/button.interface';
|
|
3
|
+
export interface MenuModalI {
|
|
4
|
+
closeBtn: ButtonI;
|
|
5
|
+
logo?: string;
|
|
6
|
+
checkinLabel?: string;
|
|
7
|
+
items: MenuItem[];
|
|
8
|
+
booksBtn: ButtonI;
|
|
9
|
+
buttonItem: ButtonI;
|
|
10
|
+
phoneBtn: ButtonI;
|
|
11
|
+
newsletterBtn: ButtonI;
|
|
12
|
+
socialButtons: ButtonI[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ButtonI } from '../atomic/button.interface';
|
|
2
|
+
import { InputI } from '../atomic/input.interface';
|
|
3
|
+
export interface NewsletterModalI {
|
|
4
|
+
closeBtn: ButtonI;
|
|
5
|
+
image: string;
|
|
6
|
+
title: string;
|
|
7
|
+
titleDark: string;
|
|
8
|
+
description: string;
|
|
9
|
+
conditions: string;
|
|
10
|
+
input: InputI;
|
|
11
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -52,4 +52,9 @@ export * from './lib/interfaces/core/rooms-slider.interface';
|
|
|
52
52
|
export * from './lib/interfaces/core/simple-card.interface';
|
|
53
53
|
export * from './lib/interfaces/core/top-module.interface';
|
|
54
54
|
export * from './lib/interfaces/core/guests-popup.interface';
|
|
55
|
+
export * from './lib/interfaces/core/newsletter-modal.interface';
|
|
56
|
+
export * from './lib/interfaces/core/books-modal.interface';
|
|
57
|
+
export * from './lib/interfaces/core/checkin-modal.interface';
|
|
58
|
+
export * from './lib/interfaces/core/languages-modal.interface';
|
|
59
|
+
export * from './lib/interfaces/core/menu-modal.interface';
|
|
55
60
|
export * from './services';
|