tent-lib 0.0.443 → 0.0.445

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,12 +1,10 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { DropdownOption } from '../../atomic/dropdown/dropdown.component';
3
- import { MatDialog } from '@angular/material/dialog';
4
3
  import { BreadcrumpI } from '../../../interfaces/atomic/breadcrump.interface';
5
4
  import { ButtonI } from '../../../interfaces/atomic/button.interface';
6
5
  import { DropdownI } from '../../../interfaces/atomic/dropdown.interface';
7
6
  import * as i0 from "@angular/core";
8
7
  export declare class GenericHeadComponent implements OnInit {
9
- private readonly dialog;
10
8
  theme?: string;
11
9
  galleryFilterOptions?: GalleryFilterOption[];
12
10
  title?: string;
@@ -19,20 +17,24 @@ export declare class GenericHeadComponent implements OnInit {
19
17
  linkBack?: ButtonI;
20
18
  bigger: boolean;
21
19
  filterChange: EventEmitter<DropdownOption>;
20
+ filterGalleryChange: EventEmitter<GalleryFilterOption>;
21
+ openCategoryModal: EventEmitter<void>;
22
+ openRoomModal: EventEmitter<void>;
22
23
  galleryFilterSelected: GalleryFilterOption;
23
- constructor(dialog: MatDialog);
24
+ constructor();
24
25
  ngOnInit(): void;
25
26
  filterChanged(option: DropdownOption): void;
26
27
  filterGalleryClicked(option: GalleryFilterOption): void;
27
28
  openGalleryCategoryModal(): void;
28
29
  openCategoryRoomModal(): void;
29
30
  static ɵfac: i0.ɵɵFactoryDeclaration<GenericHeadComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<GenericHeadComponent, "tent-generic-head", never, { "theme": { "alias": "theme"; "required": false; }; "galleryFilterOptions": { "alias": "galleryFilterOptions"; "required": false; }; "title": { "alias": "title"; "required": false; }; "titleDark": { "alias": "titleDark"; "required": false; }; "breadcrumps": { "alias": "breadcrumps"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "button": { "alias": "button"; "required": false; }; "galleryBtns": { "alias": "galleryBtns"; "required": false; }; "linkMaps": { "alias": "linkMaps"; "required": false; }; "linkBack": { "alias": "linkBack"; "required": false; }; "bigger": { "alias": "bigger"; "required": false; }; }, { "filterChange": "filterChange"; }, never, never, true, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<GenericHeadComponent, "tent-generic-head", never, { "theme": { "alias": "theme"; "required": false; }; "galleryFilterOptions": { "alias": "galleryFilterOptions"; "required": false; }; "title": { "alias": "title"; "required": false; }; "titleDark": { "alias": "titleDark"; "required": false; }; "breadcrumps": { "alias": "breadcrumps"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "button": { "alias": "button"; "required": false; }; "galleryBtns": { "alias": "galleryBtns"; "required": false; }; "linkMaps": { "alias": "linkMaps"; "required": false; }; "linkBack": { "alias": "linkBack"; "required": false; }; "bigger": { "alias": "bigger"; "required": false; }; }, { "filterChange": "filterChange"; "filterGalleryChange": "filterGalleryChange"; "openCategoryModal": "openCategoryModal"; "openRoomModal": "openRoomModal"; }, never, never, true, never>;
31
32
  }
32
33
  export interface GalleryFilterOption {
33
- id: string;
34
- label: string;
34
+ id?: string | number;
35
+ label?: string;
35
36
  rooms?: boolean;
37
+ room?: boolean;
36
38
  allCategories?: boolean;
37
39
  videoSrc?: string;
38
40
  }
@@ -1,13 +1,15 @@
1
- import { MatDialog, MatDialogRef } from '@angular/material/dialog';
1
+ import { EventEmitter } from '@angular/core';
2
+ import { MatDialogRef } from '@angular/material/dialog';
3
+ import { GalleryFilterOption } from '../../generic-head/generic-head.component';
2
4
  import * as i0 from "@angular/core";
3
5
  export declare class GalleryCategoryComponent {
4
6
  private readonly dialogRef;
5
- private readonly dialog;
6
- rooms: boolean;
7
- constructor(dialogRef: MatDialogRef<GalleryCategoryComponent>, dialog: MatDialog);
8
- itemClicked(rooms?: boolean): void;
7
+ title?: string;
8
+ items?: GalleryFilterOption[];
9
+ itemClick: EventEmitter<GalleryFilterOption>;
10
+ constructor(dialogRef: MatDialogRef<GalleryCategoryComponent>);
11
+ itemClicked(item: GalleryFilterOption): void;
9
12
  closeModal(): void;
10
- openRoomModal(): void;
11
13
  static ɵfac: i0.ɵɵFactoryDeclaration<GalleryCategoryComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<GalleryCategoryComponent, "tent-gallery-category", never, { "rooms": { "alias": "rooms"; "required": false; }; }, {}, never, never, true, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<GalleryCategoryComponent, "tent-gallery-category", never, { "title": { "alias": "title"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "itemClick": "itemClick"; }, never, never, true, never>;
13
15
  }
@@ -25,5 +25,4 @@ export interface GoogleMarker {
25
25
  lng: number;
26
26
  };
27
27
  label: string;
28
- contentString: string;
29
28
  }
@@ -0,0 +1,5 @@
1
+ import { GalleryFilterOption } from '../../components/core/generic-head/generic-head.component';
2
+ export interface GalleryCategoryI {
3
+ title?: string;
4
+ items?: GalleryFilterOption[];
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tent-lib",
3
- "version": "0.0.443",
3
+ "version": "0.0.445",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.0.0",
6
6
  "@angular/core": "^17.0.0",
package/public-api.d.ts CHANGED
@@ -115,5 +115,6 @@ export * from './lib/interfaces/core/hotel-list-modal.interface';
115
115
  export * from './lib/interfaces/core/info-slider.interface';
116
116
  export * from './lib/interfaces/core/destination-hotels.interface';
117
117
  export * from './lib/interfaces/core/hotels-list.interface';
118
+ export * from './lib/interfaces/core/gallery-category.interface';
118
119
  export * from './services';
119
120
  export * from './lib/pipes/currency.pipe';