tent-lib 1.14.7 → 1.14.9

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.
Files changed (27) hide show
  1. package/esm2022/lib/components/atomic/dropdown/dropdown.component.mjs +12 -6
  2. package/esm2022/lib/components/core/guests-popup/guests-popup.component.mjs +13 -7
  3. package/esm2022/lib/components/core/hotel-about/hotel-about.component.mjs +7 -1
  4. package/esm2022/lib/components/core/location-map/location-map.component.mjs +12 -6
  5. package/esm2022/lib/components/core/modals/hotel-list-modal/hotel-list-modal.component.mjs +12 -6
  6. package/esm2022/lib/components/core/modals/menu-modal/menu-modal.component.mjs +18 -10
  7. package/esm2022/lib/components/core/motor/motor.component.mjs +3 -1
  8. package/esm2022/lib/components/core/offer-banner/offer-banner.component.mjs +13 -7
  9. package/esm2022/lib/components/core/smartvel/smartvel.component.mjs +3 -1
  10. package/esm2022/lib/components/core/tent-faq/tent-faq.component.mjs +31 -13
  11. package/esm2022/lib/components/core/tent-faq/tent-faq.interface.mjs +1 -1
  12. package/esm2022/lib/components/core/top-module/top-module.component.mjs +3 -1
  13. package/esm2022/lib/directives/lazy-background.directive.mjs +12 -5
  14. package/esm2022/services/dynamic-scripts/dynamic-scripts.service.mjs +14 -5
  15. package/fesm2022/tent-lib.mjs +120 -38
  16. package/fesm2022/tent-lib.mjs.map +1 -1
  17. package/lib/components/atomic/dropdown/dropdown.component.d.ts +2 -1
  18. package/lib/components/core/guests-popup/guests-popup.component.d.ts +4 -2
  19. package/lib/components/core/location-map/location-map.component.d.ts +3 -2
  20. package/lib/components/core/modals/hotel-list-modal/hotel-list-modal.component.d.ts +2 -1
  21. package/lib/components/core/modals/menu-modal/menu-modal.component.d.ts +2 -0
  22. package/lib/components/core/offer-banner/offer-banner.component.d.ts +3 -2
  23. package/lib/components/core/tent-faq/tent-faq.component.d.ts +4 -2
  24. package/lib/components/core/tent-faq/tent-faq.interface.d.ts +2 -0
  25. package/lib/directives/lazy-background.directive.d.ts +2 -1
  26. package/package.json +1 -1
  27. package/services/dynamic-scripts/dynamic-scripts.service.d.ts +2 -0
@@ -4,6 +4,7 @@ import * as i0 from "@angular/core";
4
4
  export declare class DropdownComponent implements ControlValueAccessor, OnInit {
5
5
  private readonly renderer;
6
6
  private readonly cdr;
7
+ private platformId;
7
8
  value?: DropdownOption;
8
9
  placeholder?: string;
9
10
  title?: string;
@@ -25,7 +26,7 @@ export declare class DropdownComponent implements ControlValueAccessor, OnInit {
25
26
  isThereSubcategories?: boolean;
26
27
  onChange: (_: DropdownOption | undefined) => void;
27
28
  onTouch: () => void;
28
- constructor(renderer: Renderer2, cdr: ChangeDetectorRef);
29
+ constructor(renderer: Renderer2, cdr: ChangeDetectorRef, platformId: Object);
29
30
  ngOnInit(): void;
30
31
  onShowDropdown(): void;
31
32
  valueChange(value: DropdownOption | undefined): void;
@@ -1,9 +1,10 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
- import { DropdownOption } from '../../atomic/dropdown/dropdown.component';
3
- import { DropdownI } from '../../../interfaces/atomic/dropdown.interface';
4
2
  import { ButtonI } from '../../../interfaces/atomic/button.interface';
3
+ import { DropdownI } from '../../../interfaces/atomic/dropdown.interface';
4
+ import { DropdownOption } from '../../atomic/dropdown/dropdown.component';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class GuestsPopupComponent implements OnInit {
7
+ private platformId;
7
8
  adultsDropdown: DropdownI;
8
9
  kidsDropdown: DropdownI;
9
10
  ageDropdown: DropdownI;
@@ -19,6 +20,7 @@ export declare class GuestsPopupComponent implements OnInit {
19
20
  adultsOption: DropdownOption;
20
21
  babysOption: DropdownOption;
21
22
  ages: number[];
23
+ constructor(platformId: Object);
22
24
  ngOnInit(): void;
23
25
  kidsChange(option: DropdownOption): void;
24
26
  agesChange(kidIndex: number, option: DropdownOption): void;
@@ -1,9 +1,10 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import { ButtonI } from '../../../../public-api';
3
2
  import { DomSanitizer, SafeStyle } from '@angular/platform-browser';
3
+ import { ButtonI } from '../../../../public-api';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class LocationMapComponent {
6
6
  private readonly sanitizer;
7
+ private platformId;
7
8
  image?: string;
8
9
  linkImage?: string;
9
10
  title?: string;
@@ -13,7 +14,7 @@ export declare class LocationMapComponent {
13
14
  button?: ButtonI;
14
15
  btnClick: EventEmitter<void>;
15
16
  get getMainImage(): SafeStyle;
16
- constructor(sanitizer: DomSanitizer);
17
+ constructor(sanitizer: DomSanitizer, platformId: Object);
17
18
  btnMapClicked(): void;
18
19
  static ɵfac: i0.ɵɵFactoryDeclaration<LocationMapComponent, never>;
19
20
  static ɵcmp: i0.ɵɵComponentDeclaration<LocationMapComponent, "tent-location-map", never, { "image": { "alias": "image"; "required": false; }; "linkImage": { "alias": "linkImage"; "required": false; }; "title": { "alias": "title"; "required": false; }; "ndTitle": { "alias": "ndTitle"; "required": false; }; "links": { "alias": "links"; "required": false; }; "copyRight": { "alias": "copyRight"; "required": false; }; "button": { "alias": "button"; "required": false; }; }, { "btnClick": "btnClick"; }, never, never, true, never>;
@@ -4,13 +4,14 @@ import { ButtonI } from '../../../../interfaces/atomic/button.interface';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class HotelListModalComponent implements OnInit {
6
6
  private readonly location;
7
+ private platformId;
7
8
  hotels?: HotelListModalCity[];
8
9
  button?: ButtonI;
9
10
  destinyButton?: ButtonI;
10
11
  title?: string;
11
12
  elementClick: EventEmitter<ElementObject>;
12
13
  collapsed: boolean[];
13
- constructor(location: Location);
14
+ constructor(location: Location, platformId: Object);
14
15
  ngOnInit(): void;
15
16
  elementClicked(event: Event | undefined, element: ButtonI, type: ElementType): void;
16
17
  toggleCollapsed(index: number): void;
@@ -3,6 +3,7 @@ import { SafeStyle } from '@angular/platform-browser';
3
3
  import { ButtonI } from '../../../../interfaces/atomic/button.interface';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class MenuModalComponent implements OnInit, OnDestroy {
6
+ private platformId;
6
7
  closeBtn: ButtonI;
7
8
  logo?: string;
8
9
  checkinLabel?: string;
@@ -20,6 +21,7 @@ export declare class MenuModalComponent implements OnInit, OnDestroy {
20
21
  isInternalLink(item: MenuItem): boolean;
21
22
  private readonly dialogRef;
22
23
  private readonly sanitizer;
24
+ constructor(platformId: Object);
23
25
  ngOnInit(): void;
24
26
  ngOnDestroy(): void;
25
27
  getImage(image?: string): SafeStyle | undefined;
@@ -1,9 +1,10 @@
1
1
  import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
2
2
  import { BadgeI } from '../../../interfaces/atomic/badge.interface';
3
- import { ImageI } from '../../../interfaces/atomic/image.interface';
4
3
  import { ButtonI } from '../../../interfaces/atomic/button.interface';
4
+ import { ImageI } from '../../../interfaces/atomic/image.interface';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class OfferBannerComponent implements AfterViewInit {
7
+ private platformId;
7
8
  closeBtn: ElementRef;
8
9
  closeBanner: ElementRef;
9
10
  badge?: BadgeI;
@@ -18,7 +19,7 @@ export declare class OfferBannerComponent implements AfterViewInit {
18
19
  desktop?: boolean;
19
20
  left?: boolean;
20
21
  closeClick: EventEmitter<void>;
21
- constructor();
22
+ constructor(platformId: Object);
22
23
  ngAfterViewInit(): void;
23
24
  closeModal(): void;
24
25
  bannerClicked(event: Event): void;
@@ -3,6 +3,7 @@ import { LangCodeService } from '../../../../public-api';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class TentFaqComponent implements OnDestroy {
5
5
  private langSvc;
6
+ private platformId;
6
7
  title?: string;
7
8
  pretitle?: string;
8
9
  licence?: string;
@@ -12,6 +13,7 @@ export declare class TentFaqComponent implements OnDestroy {
12
13
  faqless?: string;
13
14
  description?: string;
14
15
  maxItems: number;
16
+ itemsArray?: TentFaqItem[];
15
17
  items?: TentFaqItem[];
16
18
  selectedIndex: import("@angular/core").WritableSignal<number>;
17
19
  private scriptService;
@@ -19,7 +21,7 @@ export declare class TentFaqComponent implements OnDestroy {
19
21
  showAll: import("@angular/core").Signal<boolean>;
20
22
  private cdr;
21
23
  private faqScript?;
22
- constructor(langSvc: LangCodeService);
24
+ constructor(langSvc: LangCodeService, platformId: Object);
23
25
  ngOnInit(): Promise<void>;
24
26
  selectItem(index: number): void;
25
27
  private readonly QTXT_API;
@@ -29,7 +31,7 @@ export declare class TentFaqComponent implements OnDestroy {
29
31
  private injectFaqStructuredData;
30
32
  ngOnDestroy(): void;
31
33
  static ɵfac: i0.ɵɵFactoryDeclaration<TentFaqComponent, never>;
32
- static ɵcmp: i0.ɵɵComponentDeclaration<TentFaqComponent, "lib-tent-faq", never, { "title": { "alias": "title"; "required": false; }; "pretitle": { "alias": "pretitle"; "required": false; }; "licence": { "alias": "licence"; "required": false; }; "lang": { "alias": "lang"; "required": false; }; "top": { "alias": "top"; "required": false; }; "faqmore": { "alias": "faqmore"; "required": false; }; "faqless": { "alias": "faqless"; "required": false; }; "description": { "alias": "description"; "required": false; }; "maxItems": { "alias": "maxItems"; "required": false; }; }, {}, never, never, true, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<TentFaqComponent, "lib-tent-faq", never, { "title": { "alias": "title"; "required": false; }; "pretitle": { "alias": "pretitle"; "required": false; }; "licence": { "alias": "licence"; "required": false; }; "lang": { "alias": "lang"; "required": false; }; "top": { "alias": "top"; "required": false; }; "faqmore": { "alias": "faqmore"; "required": false; }; "faqless": { "alias": "faqless"; "required": false; }; "description": { "alias": "description"; "required": false; }; "maxItems": { "alias": "maxItems"; "required": false; }; "itemsArray": { "alias": "itemsArray"; "required": false; }; }, {}, never, never, true, never>;
33
35
  }
34
36
  export interface TentFaqItem {
35
37
  label?: string;
@@ -1,3 +1,4 @@
1
+ import { TentFaqItem } from './tent-faq.component';
1
2
  export interface TentFaqI {
2
3
  pretitle?: string;
3
4
  title?: string;
@@ -8,4 +9,5 @@ export interface TentFaqI {
8
9
  lang?: string;
9
10
  licence?: string;
10
11
  maxItems?: number;
12
+ itemsArray?: TentFaqItem[];
11
13
  }
@@ -2,8 +2,9 @@ import { ElementRef, OnInit } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class LazyBackgroundDirective implements OnInit {
4
4
  private el;
5
+ private platformId;
5
6
  lazyBackground?: string;
6
- constructor(el: ElementRef);
7
+ constructor(el: ElementRef, platformId: Object);
7
8
  ngOnInit(): void;
8
9
  static ɵfac: i0.ɵɵFactoryDeclaration<LazyBackgroundDirective, never>;
9
10
  static ɵdir: i0.ɵɵDirectiveDeclaration<LazyBackgroundDirective, "[lazyBackground]", never, { "lazyBackground": { "alias": "lazyBackground"; "required": false; }; }, {}, never, never, true, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tent-lib",
3
- "version": "1.14.7",
3
+ "version": "1.14.9",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.8",
6
6
  "@angular/core": "^17.3.8",
@@ -1,6 +1,8 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class DynamicScriptService {
3
+ private platformId;
3
4
  private loadedScripts;
5
+ constructor(platformId: Object);
4
6
  /**
5
7
  * Carga un script desde una URL con atributos extra. Solo se carga una vez por `name`.
6
8
  */