ng-miam 4.7.2 → 4.7.4
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/bundles/ng-miam.umd.js +9 -11
- package/bundles/ng-miam.umd.js.map +1 -1
- package/bundles/ng-miam.umd.min.js +2 -2
- package/bundles/ng-miam.umd.min.js.map +1 -1
- package/esm2015/lib/_components/abstracts/abstract-recipe-card.component.js +2 -1
- package/esm2015/lib/_components/components.module.js +1 -1
- package/esm2015/lib/_services/recipe-likes.service.js +4 -4
- package/esm2015/lib/_web-components/loader/loader.component.js +3 -3
- package/esm2015/lib/_web-components/recipe-catalog/recipe-catalog.component.js +2 -2
- package/esm2015/lib/_web-components/recipe-details/recipe-details.component.js +1 -1
- package/esm2015/lib/_web-components/recipe-tags/recipe-tags.component.js +2 -5
- package/fesm2015/ng-miam.js +8 -10
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_web-components/recipe-catalog/recipe-catalog.component.d.ts +15 -1
- package/lib/_web-components/recipe-tags/recipe-tags.component.d.ts +2 -3
- package/package.json +1 -1
|
@@ -10,6 +10,19 @@ import { MediaMatcher } from '@angular/cdk/layout';
|
|
|
10
10
|
import { AnalyticsService } from '../../_services/analytics.service';
|
|
11
11
|
import { EventTracerComponent } from '../../_components/abstracts/event-tracer.component';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
|
+
interface Category {
|
|
14
|
+
key: string;
|
|
15
|
+
title: string;
|
|
16
|
+
subtitle: string;
|
|
17
|
+
filters: {
|
|
18
|
+
additionalFilters: {
|
|
19
|
+
filters: {
|
|
20
|
+
packages: string;
|
|
21
|
+
};
|
|
22
|
+
title: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}
|
|
13
26
|
export declare class RecipeCatalogComponent extends EventTracerComponent implements AfterViewInit, OnInit, OnDestroy {
|
|
14
27
|
cdr: ChangeDetectorRef;
|
|
15
28
|
recipeTypesService: RecipeTypeService;
|
|
@@ -41,7 +54,7 @@ export declare class RecipeCatalogComponent extends EventTracerComponent impleme
|
|
|
41
54
|
filters: RecipeFilters;
|
|
42
55
|
isFilterCollapsed: boolean;
|
|
43
56
|
icon: typeof Icon;
|
|
44
|
-
categories:
|
|
57
|
+
categories: Category[];
|
|
45
58
|
creatingRecipe: boolean;
|
|
46
59
|
recipeToUpdate: Recipe;
|
|
47
60
|
filterToRemove: string;
|
|
@@ -91,3 +104,4 @@ export declare class RecipeCatalogComponent extends EventTracerComponent impleme
|
|
|
91
104
|
static ɵfac: i0.ɵɵFactoryDef<RecipeCatalogComponent, never>;
|
|
92
105
|
static ɵcmp: i0.ɵɵComponentDefWithMeta<RecipeCatalogComponent, "ng-miam-recipe-catalog", never, { "headerPictureUrl": "headerPictureUrl"; "homeTitlePictureUrl": "homeTitlePictureUrl"; "initialRoute": "initialRoute"; "filtersPosition": "filtersPosition"; "homeLabel": "homeLabel"; "displayPricing": "displayPricing"; "recipeAddedToastText": "recipeAddedToastText"; "customFilters": "customFilters"; }, {}, never, never>;
|
|
93
106
|
}
|
|
107
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnDestroy, ElementRef, QueryList,
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, ElementRef, QueryList, SimpleChanges, OnChanges } from '@angular/core';
|
|
2
2
|
import { BasketsService } from '../../_services/baskets.service';
|
|
3
3
|
import { Subscription } from 'rxjs';
|
|
4
4
|
import { Icon } from '../../_types/icon.enum';
|
|
@@ -7,7 +7,7 @@ import { ContextService } from '../../_services';
|
|
|
7
7
|
import { EventTracerComponent } from '../../_components/abstracts/event-tracer.component';
|
|
8
8
|
import { AnalyticsService } from '../../_services/analytics.service';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class RecipeTagsComponent extends EventTracerComponent implements OnChanges,
|
|
10
|
+
export declare class RecipeTagsComponent extends EventTracerComponent implements OnChanges, OnDestroy {
|
|
11
11
|
private cdr;
|
|
12
12
|
private basketService;
|
|
13
13
|
private contexteservice;
|
|
@@ -28,7 +28,6 @@ export declare class RecipeTagsComponent extends EventTracerComponent implements
|
|
|
28
28
|
constructor(cdr: ChangeDetectorRef, basketService: BasketsService, contexteservice: ContextService, analyticsService: AnalyticsService);
|
|
29
29
|
currentPath(): string;
|
|
30
30
|
ngOnChanges(simpleChanges: SimpleChanges): void;
|
|
31
|
-
ngAfterViewInit(): void;
|
|
32
31
|
ngOnDestroy(): void;
|
|
33
32
|
/**
|
|
34
33
|
* This function detect and count wrapped item below the fist row
|