tent-lib 0.0.409 → 0.0.411

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.
@@ -1,5 +1,5 @@
1
1
  import { Location } from '@angular/common';
2
- import { OnInit } from '@angular/core';
2
+ import { EventEmitter, OnInit } from '@angular/core';
3
3
  import { ButtonI } from '../../../../interfaces/atomic/button.interface';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class HotelListModalComponent implements OnInit {
@@ -8,23 +8,29 @@ export declare class HotelListModalComponent implements OnInit {
8
8
  button?: ButtonI;
9
9
  destinyButton?: ButtonI;
10
10
  title?: string;
11
+ elementClick: EventEmitter<ElementObject>;
11
12
  collapsed: boolean[];
12
13
  constructor(location: Location);
13
14
  ngOnInit(): void;
14
- elementClicked(event: Event): void;
15
+ elementClicked(event: Event, element: ButtonI, type: ElementType): void;
15
16
  toggleCollapsed(index: number): void;
16
17
  back(): void;
17
18
  static ɵfac: i0.ɵɵFactoryDeclaration<HotelListModalComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<HotelListModalComponent, "tent-hotel-list-modal", never, { "hotels": { "alias": "hotels"; "required": false; }; "button": { "alias": "button"; "required": false; }; "destinyButton": { "alias": "destinyButton"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, {}, never, never, true, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<HotelListModalComponent, "tent-hotel-list-modal", never, { "hotels": { "alias": "hotels"; "required": false; }; "button": { "alias": "button"; "required": false; }; "destinyButton": { "alias": "destinyButton"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, { "elementClick": "elementClick"; }, never, never, true, never>;
19
20
  }
20
21
  export interface HotelListModalCity {
21
22
  city: ButtonI;
22
23
  items: HotelListModalItem[];
23
24
  }
24
25
  export interface HotelListModalItem {
25
- title: string;
26
+ title: ButtonI;
26
27
  hotels: {
27
28
  img: string;
28
29
  btn: ButtonI;
29
30
  }[];
30
31
  }
32
+ export type ElementType = 'destinyParent' | 'destiny' | 'hotel';
33
+ export interface ElementObject {
34
+ element: ButtonI;
35
+ type: ElementType;
36
+ }
@@ -3,6 +3,7 @@ export interface ButtonI {
3
3
  type?: ButtonType;
4
4
  label?: string;
5
5
  url?: string;
6
+ id?: string;
6
7
  linkType?: string;
7
8
  icon?: string;
8
9
  socialMedia?: 'instagram' | 'tiktok' | 'youtube' | 'facebook' | 'linkedin';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tent-lib",
3
- "version": "0.0.409",
3
+ "version": "0.0.411",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.0.0",
6
6
  "@angular/core": "^17.0.0",