tent-lib 1.14.6 → 1.14.8

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 (41) hide show
  1. package/esm2022/lib/components/atomic/dropdown/dropdown.component.mjs +12 -6
  2. package/esm2022/lib/components/core/footer-static/footer-static.component.mjs +14 -6
  3. package/esm2022/lib/components/core/guests-popup/guests-popup.component.mjs +13 -7
  4. package/esm2022/lib/components/core/hotel-about/hotel-about.component.mjs +18 -8
  5. package/esm2022/lib/components/core/hotel-equipment/hotel-equipment.component.mjs +14 -6
  6. package/esm2022/lib/components/core/location-map/location-map.component.mjs +12 -6
  7. package/esm2022/lib/components/core/modals/hotel-list-modal/hotel-list-modal.component.mjs +12 -6
  8. package/esm2022/lib/components/core/module-google-maps/module-google-maps.component.mjs +16 -6
  9. package/esm2022/lib/components/core/motor/motor.component.mjs +12 -6
  10. package/esm2022/lib/components/core/offer-banner/offer-banner.component.mjs +13 -7
  11. package/esm2022/lib/components/core/room-slider/room-slider.component.mjs +14 -6
  12. package/esm2022/lib/components/core/smartvel/smartvel.component.mjs +14 -6
  13. package/esm2022/lib/components/core/tent-faq/tent-faq.component.mjs +29 -13
  14. package/esm2022/lib/components/core/tent-faq/tent-faq.interface.mjs +1 -1
  15. package/esm2022/lib/components/core/top-module/top-module.component.mjs +14 -6
  16. package/esm2022/lib/directives/lazy-background.directive.mjs +12 -5
  17. package/esm2022/lib/directives/scroll.directive.mjs +12 -5
  18. package/esm2022/services/dynamic-scripts/dynamic-scripts.service.mjs +14 -5
  19. package/esm2022/services/screen-sizer/screen-sizer.service.mjs +14 -5
  20. package/fesm2022/tent-lib.mjs +202 -62
  21. package/fesm2022/tent-lib.mjs.map +1 -1
  22. package/lib/components/atomic/dropdown/dropdown.component.d.ts +2 -1
  23. package/lib/components/core/footer-static/footer-static.component.d.ts +2 -0
  24. package/lib/components/core/guests-popup/guests-popup.component.d.ts +4 -2
  25. package/lib/components/core/hotel-about/hotel-about.component.d.ts +4 -3
  26. package/lib/components/core/hotel-equipment/hotel-equipment.component.d.ts +2 -0
  27. package/lib/components/core/location-map/location-map.component.d.ts +3 -2
  28. package/lib/components/core/modals/hotel-list-modal/hotel-list-modal.component.d.ts +2 -1
  29. package/lib/components/core/module-google-maps/module-google-maps.component.d.ts +2 -1
  30. package/lib/components/core/motor/motor.component.d.ts +2 -1
  31. package/lib/components/core/offer-banner/offer-banner.component.d.ts +3 -2
  32. package/lib/components/core/room-slider/room-slider.component.d.ts +2 -1
  33. package/lib/components/core/smartvel/smartvel.component.d.ts +2 -1
  34. package/lib/components/core/tent-faq/tent-faq.component.d.ts +4 -2
  35. package/lib/components/core/tent-faq/tent-faq.interface.d.ts +2 -0
  36. package/lib/components/core/top-module/top-module.component.d.ts +2 -1
  37. package/lib/directives/lazy-background.directive.d.ts +2 -1
  38. package/lib/directives/scroll.directive.d.ts +4 -2
  39. package/package.json +1 -1
  40. package/services/dynamic-scripts/dynamic-scripts.service.d.ts +2 -0
  41. package/services/screen-sizer/screen-sizer.service.d.ts +2 -1
@@ -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,11 @@
1
1
  import { ButtonI } from '../../../interfaces/atomic/button.interface';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class FooterStaticComponent {
4
+ private platformId;
4
5
  footerLinks?: ButtonI[];
5
6
  title?: string;
6
7
  scrollBtn?: ButtonI;
8
+ constructor(platformId: Object);
7
9
  isInternalLink(link: ButtonI): boolean;
8
10
  linkClicked(event: Event, link: ButtonI): void;
9
11
  scrollClicked(): 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,9 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, ElementRef, OnChanges } from '@angular/core';
2
- import { OwlOptions } from 'ngx-owl-carousel-o';
3
2
  import { DomSanitizer, SafeResourceUrl, SafeStyle } from '@angular/platform-browser';
3
+ import { OwlOptions } from 'ngx-owl-carousel-o';
4
+ import { Subject } from 'rxjs';
4
5
  import { ButtonI } from '../../../interfaces/atomic/button.interface';
5
6
  import { ImageI } from '../../../interfaces/atomic/image.interface';
6
- import { Subject } from 'rxjs';
7
7
  import * as i0 from "@angular/core";
8
8
  declare global {
9
9
  interface Window {
@@ -14,6 +14,7 @@ declare global {
14
14
  export declare class HotelAboutComponent implements OnChanges, AfterViewInit {
15
15
  private readonly sanitizer;
16
16
  private readonly cdr;
17
+ private platformId;
17
18
  title?: string;
18
19
  titleDark?: string;
19
20
  description?: string;
@@ -32,7 +33,7 @@ export declare class HotelAboutComponent implements OnChanges, AfterViewInit {
32
33
  carouselVisible: boolean;
33
34
  isVideoVisible: boolean;
34
35
  refresh$: Subject<void>;
35
- constructor(sanitizer: DomSanitizer, cdr: ChangeDetectorRef);
36
+ constructor(sanitizer: DomSanitizer, cdr: ChangeDetectorRef, platformId: Object);
36
37
  ngAfterViewInit(): void;
37
38
  ngOnChanges(): void;
38
39
  toggleCollapse1(): void;
@@ -2,6 +2,7 @@ import { AfterViewInit, OnInit } from '@angular/core';
2
2
  import { ButtonI } from '../../../interfaces/atomic/button.interface';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class HotelEquipmentComponent implements OnInit, AfterViewInit {
5
+ private platformId;
5
6
  items?: HotelEquipmentItem[];
6
7
  itemsBelow?: HotelEquipmentItem[];
7
8
  title?: string;
@@ -9,6 +10,7 @@ export declare class HotelEquipmentComponent implements OnInit, AfterViewInit {
9
10
  btnLess?: ButtonI;
10
11
  collapsed1: boolean;
11
12
  itemsToShow: number;
13
+ constructor(platformId: Object);
12
14
  ngOnInit(): void;
13
15
  ngAfterViewInit(): void;
14
16
  toggleCollapse1(): 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;
@@ -4,6 +4,7 @@ import { GoogleMap } from '@angular/google-maps';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class ModuleGoogleMapsComponent implements OnInit, AfterViewInit, OnChanges {
6
6
  private cdr;
7
+ private platformId;
7
8
  googleMaps: GoogleMap;
8
9
  googleMapsElement: ElementRef;
9
10
  markers?: GoogleMarker[];
@@ -17,7 +18,7 @@ export declare class ModuleGoogleMapsComponent implements OnInit, AfterViewInit,
17
18
  map: google.maps.Map;
18
19
  options: google.maps.MapOptions;
19
20
  get centerMark(): GoogleMarker['position'];
20
- constructor(cdr: ChangeDetectorRef);
21
+ constructor(cdr: ChangeDetectorRef, platformId: Object);
21
22
  ngOnInit(): void;
22
23
  ngOnChanges(changes: SimpleChanges): void;
23
24
  ngAfterViewInit(): void;
@@ -9,6 +9,7 @@ import { GuestsValue } from '../guests-popup/guests-popup.component';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class MotorComponent implements OnDestroy, AfterViewInit, OnInit {
11
11
  private readonly formBuilder;
12
+ private platformId;
12
13
  wrapper: ElementRef;
13
14
  modal: boolean;
14
15
  square: boolean;
@@ -33,7 +34,7 @@ export declare class MotorComponent implements OnDestroy, AfterViewInit, OnInit
33
34
  dialogReady: boolean;
34
35
  guestsValue?: GuestsValue;
35
36
  isComponent?: boolean;
36
- constructor(formBuilder: FormBuilder);
37
+ constructor(formBuilder: FormBuilder, platformId: Object);
37
38
  ngOnInit(): void;
38
39
  ngAfterViewInit(): void;
39
40
  private initMiraiMotor;
@@ -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;
@@ -7,6 +7,7 @@ import * as i0 from "@angular/core";
7
7
  export declare class RoomSliderComponent implements OnInit, OnChanges, AfterViewInit {
8
8
  private readonly dialog;
9
9
  private readonly sanitizer;
10
+ private platformId;
10
11
  items: RoomsSliderRoom[];
11
12
  linkDescriptionMore?: ButtonI;
12
13
  linkDescriptionLess?: ButtonI;
@@ -16,7 +17,7 @@ export declare class RoomSliderComponent implements OnInit, OnChanges, AfterView
16
17
  collapsed: boolean[];
17
18
  viewmore: boolean[];
18
19
  itemsToShow: number;
19
- constructor(dialog: MatDialog, sanitizer: DomSanitizer);
20
+ constructor(dialog: MatDialog, sanitizer: DomSanitizer, platformId: Object);
20
21
  ngOnInit(): void;
21
22
  ngOnChanges(changes: SimpleChanges): void;
22
23
  ngAfterViewInit(): void;
@@ -3,11 +3,12 @@ import { ActivatedRoute } from '@angular/router';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SmartvelComponent implements AfterViewInit {
5
5
  private route;
6
+ private platformId;
6
7
  apiKey?: string;
7
8
  destinyCode?: string;
8
9
  updatedApiKey: Boolean;
9
10
  smartvelScript: HTMLScriptElement;
10
- constructor(route: ActivatedRoute);
11
+ constructor(route: ActivatedRoute, platformId: Object);
11
12
  ngAfterViewInit(): void;
12
13
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartvelComponent, never>;
13
14
  static ɵcmp: i0.ɵɵComponentDeclaration<SmartvelComponent, "tent-smartvel", never, { "apiKey": { "alias": "apiKey"; "required": false; }; "destinyCode": { "alias": "destinyCode"; "required": false; }; }, {}, never, never, true, never>;
@@ -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
  }
@@ -8,6 +8,7 @@ import * as i0 from "@angular/core";
8
8
  export declare class TopModuleComponent implements AfterViewInit, OnInit {
9
9
  private readonly renderer;
10
10
  private readonly sanitizer;
11
+ private platformId;
11
12
  carousel: CarouselComponent;
12
13
  nav: ElementRef;
13
14
  module: ElementRef;
@@ -25,7 +26,7 @@ export declare class TopModuleComponent implements AfterViewInit, OnInit {
25
26
  showScrollLabel: boolean;
26
27
  sliderOptions: OwlOptions;
27
28
  get videoUrl(): string;
28
- constructor(renderer: Renderer2, sanitizer: DomSanitizer);
29
+ constructor(renderer: Renderer2, sanitizer: DomSanitizer, platformId: Object);
29
30
  ngOnInit(): void;
30
31
  getImage(image: string): SafeStyle;
31
32
  ngAfterViewInit(): void;
@@ -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>;
@@ -2,11 +2,13 @@ import { MatDialogRef } from '@angular/material/dialog';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class ScrollToDirective {
4
4
  private dialogRef;
5
+ private platformId;
5
6
  targetSelector: string;
6
7
  scrollOffset: number;
7
- constructor(dialogRef: MatDialogRef<any>);
8
+ constructor(dialogRef: MatDialogRef<any>, // Opcional por si no hay modal
9
+ platformId: Object);
8
10
  onClick(event: Event): void;
9
11
  private executeScroll;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<ScrollToDirective, [{ optional: true; }]>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScrollToDirective, [{ optional: true; }, null]>;
11
13
  static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollToDirective, "[tentScrollTo]", never, { "targetSelector": { "alias": "tentScrollTo"; "required": false; }; "scrollOffset": { "alias": "scrollOffset"; "required": false; }; }, {}, never, never, true, never>;
12
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tent-lib",
3
- "version": "1.14.6",
3
+ "version": "1.14.8",
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
  */
@@ -1,5 +1,6 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class ScreenSizerService {
3
+ private platformId;
3
4
  readonly mobile: import("@angular/core").WritableSignal<boolean>;
4
5
  readonly smallTablet: import("@angular/core").WritableSignal<boolean>;
5
6
  readonly mediumTablet: import("@angular/core").WritableSignal<boolean>;
@@ -18,7 +19,7 @@ export declare class ScreenSizerService {
18
19
  readonly minFullBigDesktop: import("@angular/core").WritableSignal<boolean>;
19
20
  get width(): number;
20
21
  private readonly screenSizerParams;
21
- constructor();
22
+ constructor(platformId: Object);
22
23
  isMobileInstant(): boolean;
23
24
  isSmallTabletInstant(): boolean;
24
25
  isMediumTabletInstant(): boolean;