ng-miam 6.4.13 → 7.0.0
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 +8539 -10855
- 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/event-tracer.component.js +3 -2
- package/esm2015/lib/_components/accordion/accordion.component.js +75 -0
- package/esm2015/lib/_components/components.module.js +27 -21
- package/esm2015/lib/_components/counter-input/counter-input.component.js +86 -76
- package/esm2015/lib/_components/icon/icon.component.js +1 -1
- package/esm2015/lib/_components/index.js +5 -5
- package/esm2015/lib/_components/like-button/like-button.component.js +1 -1
- package/esm2015/lib/_components/list-input/list-input.component.js +5 -5
- package/esm2015/lib/_components/loader/loader.component.js +1 -1
- package/esm2015/lib/_components/meals-planner-link/meals-planner-link.component.js +3 -3
- package/esm2015/lib/_components/modal/modal.component.js +155 -137
- package/esm2015/lib/_components/product-card/product-card.component.js +333 -0
- package/esm2015/lib/_components/products-picker/products-picker.component.js +155 -0
- package/esm2015/lib/_components/progress-tracker/progress-tracker.component.js +1 -1
- package/esm2015/lib/_components/recipe-filters/recipe-filters.component.js +166 -217
- package/esm2015/lib/_components/recipe-pricing/recipe-pricing.component.js +55 -35
- package/esm2015/lib/_components/slider-tabs/slider-tabs.component.js +84 -0
- package/esm2015/lib/_components/sponsor-blocks/sponsor-image-and-text-block/sponsor-image-and-text-block.component.js +1 -1
- package/esm2015/lib/_components/sponsor-blocks/sponsor-text-and-image-block/sponsor-text-and-image-block.component.js +1 -1
- package/esm2015/lib/_components/tabs/tabs.component.js +48 -88
- package/esm2015/lib/_components/toaster/toaster.component.js +48 -84
- package/esm2015/lib/_components/tooltipable-content/tooltipable-content.component.js +1 -1
- package/esm2015/lib/_models/basket-entry.js +33 -49
- package/esm2015/lib/_models/basket-preview-line.js +5 -5
- package/esm2015/lib/_models/basket.js +15 -12
- package/esm2015/lib/_models/item.js +2 -2
- package/esm2015/lib/_models/recipe.js +2 -15
- package/esm2015/lib/_models/user.js +1 -1
- package/esm2015/lib/_services/analytics.service.js +24 -5
- package/esm2015/lib/_services/baskets-synchronizing/baskets-comparator.service.js +1 -10
- package/esm2015/lib/_services/baskets-synchronizing/baskets-synchronizer.service.js +15 -15
- package/esm2015/lib/_services/baskets.service.js +478 -60
- package/esm2015/lib/_services/context.service.js +22 -35
- package/esm2015/lib/_services/index.js +3 -5
- package/esm2015/lib/_services/interceptor.service.js +2 -2
- package/esm2015/lib/_services/items.service.js +27 -4
- package/esm2015/lib/_services/recipe-details.service.js +198 -0
- package/esm2015/lib/_services/recipe-likes.service.js +1 -1
- package/esm2015/lib/_services/recipes.service.js +24 -53
- package/esm2015/lib/_services/scrolling.service.js +17 -0
- package/esm2015/lib/_services/toaster.service.js +4 -5
- package/esm2015/lib/_services/user.service.js +2 -2
- package/esm2015/lib/_types/basket-action-type.enum.js +11 -0
- package/esm2015/lib/_types/basket-action.js +2 -0
- package/esm2015/lib/_types/basket-stats.js +2 -0
- package/esm2015/lib/_types/builded/miam-interface.js +1 -1
- package/esm2015/lib/_types/event-trace.js +5 -0
- package/esm2015/lib/_types/items-comparator.js +1 -10
- package/esm2015/lib/_types/recipe-filters.js +1 -1
- package/esm2015/lib/_types/toaster.js +1 -1
- package/esm2015/lib/_utils/directives/index.js +2 -1
- package/esm2015/lib/_utils/directives/reach-top.directive.js +33 -0
- package/esm2015/lib/_utils/pipes/readable-float-number/readable-float-number.pipe.js +8 -2
- package/esm2015/lib/_utils/utils.module.js +12 -8
- package/esm2015/lib/_web-components/basket-preview/basket-preview-block/basket-preview-block.component.js +140 -118
- package/esm2015/lib/_web-components/basket-preview/basket-preview-disabled/basket-preview-disabled.component.js +2 -2
- package/esm2015/lib/_web-components/basket-preview/basket-preview-line/basket-preview-line.component.js +125 -444
- package/esm2015/lib/_web-components/basket-preview/replace-item/replace-item.component.js +211 -108
- package/esm2015/lib/_web-components/index.js +1 -4
- package/esm2015/lib/_web-components/list-scan/basket-preview/basket-preview.component.js +11 -14
- package/esm2015/lib/_web-components/list-scan/files-inputs/files-inputs.component.js +13 -13
- package/esm2015/lib/_web-components/list-scan/ingredients-list/ingredients-list.component.js +6 -6
- package/esm2015/lib/_web-components/list-scan/list-scan.component.js +10 -10
- package/esm2015/lib/_web-components/list-scan/overlay-button/overlay-button.component.js +23 -11
- package/esm2015/lib/_web-components/meals-planner/meals-planner-basket-confirmation/meals-planner-basket-confirmation.component.js +1 -1
- package/esm2015/lib/_web-components/meals-planner/meals-planner-catalog/meals-planner-catalog.component.js +1 -1
- package/esm2015/lib/_web-components/meals-planner/meals-planner-form/meals-planner-form.component.js +7 -7
- package/esm2015/lib/_web-components/meals-planner/meals-planner-result/meals-planner-result.component.js +5 -5
- package/esm2015/lib/_web-components/meals-planner/meals-planner.component.js +16 -20
- package/esm2015/lib/_web-components/planner-side-menu/planner-side-menu.component.js +4 -53
- package/esm2015/lib/_web-components/recipe-cards/add-recipe-card/add-recipe-card.component.js +1 -1
- package/esm2015/lib/_web-components/recipe-cards/index.js +1 -3
- package/esm2015/lib/_web-components/recipe-cards/recipe-card/recipe-card.component.js +326 -404
- package/esm2015/lib/_web-components/recipe-cards/recipe-card-cta/recipe-card-cta.component.js +50 -146
- package/esm2015/lib/_web-components/recipe-cards/recipe-cards.module.js +3 -15
- package/esm2015/lib/_web-components/recipe-catalog/catalog-article-card/catalog-article-card.component.js +1 -1
- package/esm2015/lib/_web-components/recipe-catalog/catalog-category/catalog-category.component.js +35 -29
- package/esm2015/lib/_web-components/recipe-catalog/catalog-header/catalog-header.component.js +1 -1
- package/esm2015/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.js +27 -31
- package/esm2015/lib/_web-components/recipe-catalog/recipe-catalog.component.js +98 -100
- package/esm2015/lib/_web-components/recipe-creation/recipe-form/recipe-form.component.js +2 -2
- package/esm2015/lib/_web-components/recipe-creation/recipe-stepper/recipe-stepper.component.js +7 -7
- package/esm2015/lib/_web-components/recipe-creation/tags-creator/tags-creator.component.js +4 -4
- package/esm2015/lib/_web-components/recipe-creation/tags-selector/tags-selector.component.js +8 -8
- package/esm2015/lib/_web-components/recipe-details/recipe-addon/recipe-addon.component.js +7 -3
- package/esm2015/lib/_web-components/recipe-details/recipe-details-infos/recipe-details-infos.component.js +57 -358
- package/esm2015/lib/_web-components/recipe-details/recipe-details-ingredients/recipe-details-ingredients.component.js +59 -122
- package/esm2015/lib/_web-components/recipe-details/recipe-details-steps/recipe-details-steps.component.js +51 -72
- package/esm2015/lib/_web-components/recipe-details/recipe-details.component.js +313 -363
- package/esm2015/lib/_web-components/recipe-details/recipe-details.module.js +8 -4
- package/esm2015/lib/_web-components/recipe-details/sponsor-storytelling/sponsor-storytelling.component.js +1 -1
- package/esm2015/lib/_web-components/recipe-helper/recipe-helper.component.js +89 -113
- package/esm2015/lib/_web-components/recipe-modal/recipe-modal.component.js +78 -69
- package/esm2015/lib/_web-components/recipe-tags/recipe-tags.component.js +5 -5
- package/esm2015/lib/_web-components/toaster-stack/toaster-stack.component.js +8 -4
- package/esm2015/lib/_web-components/web-components.module.js +3 -19
- package/esm2015/lib/ng-miam.module.js +5 -7
- package/fesm2015/ng-miam.js +5165 -6973
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_components/abstracts/event-tracer.component.d.ts +2 -1
- package/lib/_components/accordion/accordion.component.d.ts +23 -0
- package/lib/_components/components.module.d.ts +38 -36
- package/lib/_components/counter-input/counter-input.component.d.ts +12 -14
- package/lib/_components/index.d.ts +4 -4
- package/lib/_components/modal/modal.component.d.ts +18 -18
- package/lib/_components/product-card/product-card.component.d.ts +40 -0
- package/lib/_components/products-picker/products-picker.component.d.ts +17 -0
- package/lib/_components/recipe-pricing/recipe-pricing.component.d.ts +12 -8
- package/lib/_components/slider-tabs/slider-tabs.component.d.ts +16 -0
- package/lib/_components/tabs/tabs.component.d.ts +11 -11
- package/lib/_components/toaster/toaster.component.d.ts +4 -2
- package/lib/_models/basket-entry.d.ts +16 -20
- package/lib/_models/basket-preview-line.d.ts +1 -0
- package/lib/_models/basket.d.ts +12 -5
- package/lib/_models/item.d.ts +1 -1
- package/lib/_models/recipe.d.ts +0 -5
- package/lib/_models/user.d.ts +0 -1
- package/lib/_services/analytics.service.d.ts +8 -22
- package/lib/_services/baskets-synchronizing/baskets-comparator.service.d.ts +0 -5
- package/lib/_services/baskets-synchronizing/baskets-synchronizer.service.d.ts +3 -6
- package/lib/_services/baskets.service.d.ts +137 -18
- package/lib/_services/context.service.d.ts +2 -4
- package/lib/_services/index.d.ts +2 -4
- package/lib/_services/items.service.d.ts +9 -2
- package/lib/_services/recipe-details.service.d.ts +84 -0
- package/lib/_services/recipe-likes.service.d.ts +2 -1
- package/lib/_services/recipes.service.d.ts +10 -14
- package/lib/_services/scrolling.service.d.ts +8 -0
- package/lib/_services/toaster.service.d.ts +1 -1
- package/lib/_types/basket-action-type.enum.d.ts +9 -0
- package/lib/_types/basket-action.d.ts +14 -0
- package/lib/_types/basket-stats.d.ts +5 -0
- package/lib/_types/builded/miam-interface.d.ts +16 -25
- package/lib/_types/event-trace.d.ts +22 -0
- package/lib/_types/items-comparator.d.ts +0 -5
- package/lib/_types/recipe-filters.d.ts +0 -2
- package/lib/_types/toaster.d.ts +1 -1
- package/lib/_utils/directives/index.d.ts +1 -0
- package/lib/_utils/directives/reach-top.directive.d.ts +13 -0
- package/lib/_utils/pipes/readable-float-number/readable-float-number.pipe.d.ts +1 -1
- package/lib/_utils/utils.module.d.ts +2 -2
- package/lib/_web-components/basket-preview/basket-preview-block/basket-preview-block.component.d.ts +9 -8
- package/lib/_web-components/basket-preview/basket-preview-line/basket-preview-line.component.d.ts +11 -9
- package/lib/_web-components/basket-preview/replace-item/replace-item.component.d.ts +27 -20
- package/lib/_web-components/index.d.ts +0 -3
- package/lib/_web-components/list-scan/basket-preview/basket-preview.component.d.ts +1 -2
- package/lib/_web-components/list-scan/files-inputs/files-inputs.component.d.ts +6 -5
- package/lib/_web-components/list-scan/ingredients-list/ingredients-list.component.d.ts +3 -3
- package/lib/_web-components/list-scan/list-scan.component.d.ts +3 -3
- package/lib/_web-components/list-scan/overlay-button/overlay-button.component.d.ts +8 -6
- package/lib/_web-components/meals-planner/meals-planner.component.d.ts +2 -3
- package/lib/_web-components/recipe-cards/index.d.ts +0 -2
- package/lib/_web-components/recipe-cards/recipe-card/recipe-card.component.d.ts +58 -17
- package/lib/_web-components/recipe-cards/recipe-card-cta/recipe-card-cta.component.d.ts +5 -12
- package/lib/_web-components/recipe-cards/recipe-cards.module.d.ts +7 -9
- package/lib/_web-components/recipe-catalog/catalog-category/catalog-category.component.d.ts +8 -6
- package/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.d.ts +7 -4
- package/lib/_web-components/recipe-catalog/recipe-catalog.component.d.ts +2 -3
- package/lib/_web-components/recipe-details/recipe-addon/recipe-addon.component.d.ts +5 -2
- package/lib/_web-components/recipe-details/recipe-details-infos/recipe-details-infos.component.d.ts +6 -18
- package/lib/_web-components/recipe-details/recipe-details-ingredients/recipe-details-ingredients.component.d.ts +6 -13
- package/lib/_web-components/recipe-details/recipe-details-steps/recipe-details-steps.component.d.ts +2 -10
- package/lib/_web-components/recipe-details/recipe-details.component.d.ts +29 -36
- package/lib/_web-components/recipe-details/recipe-details.module.d.ts +2 -1
- package/lib/_web-components/recipe-helper/recipe-helper.component.d.ts +2 -6
- package/lib/_web-components/recipe-modal/recipe-modal.component.d.ts +11 -9
- package/lib/_web-components/toaster-stack/toaster-stack.component.d.ts +5 -2
- package/lib/_web-components/web-components.module.d.ts +23 -29
- package/miam-style.css +1 -1
- package/package.json +1 -1
- package/esm2015/lib/_components/abstracts/abstract-recipe-card.component.js +0 -130
- package/esm2015/lib/_components/skeleton/skeleton.component.js +0 -70
- package/esm2015/lib/_components/tabs/tab-body.component.js +0 -30
- package/esm2015/lib/_components/tabs/tab-item.component.js +0 -36
- package/esm2015/lib/_components/tabs/tab-label.component.js +0 -30
- package/esm2015/lib/_models/groceries-entry.js +0 -42
- package/esm2015/lib/_models/groceries-list.js +0 -36
- package/esm2015/lib/_services/counter.service.js +0 -20
- package/esm2015/lib/_services/groceries-entries.service.js +0 -21
- package/esm2015/lib/_services/groceries-lists.service.js +0 -240
- package/esm2015/lib/_services/recipe-events.service.js +0 -63
- package/esm2015/lib/_types/skeleton.enum.js +0 -7
- package/esm2015/lib/_web-components/drawer/drawer.component.js +0 -273
- package/esm2015/lib/_web-components/pos-card/pos-card.component.js +0 -207
- package/esm2015/lib/_web-components/pos-selection/pos-selection.component.js +0 -283
- package/esm2015/lib/_web-components/recipe-cards/catalog-recipe-card/catalog-recipe-card.component.js +0 -632
- package/esm2015/lib/_web-components/recipe-cards/suggestion-card/suggestion-card.component.js +0 -144
- package/lib/_components/abstracts/abstract-recipe-card.component.d.ts +0 -49
- package/lib/_components/skeleton/skeleton.component.d.ts +0 -11
- package/lib/_components/tabs/tab-body.component.d.ts +0 -8
- package/lib/_components/tabs/tab-item.component.d.ts +0 -11
- package/lib/_components/tabs/tab-label.component.d.ts +0 -8
- package/lib/_models/groceries-entry.d.ts +0 -20
- package/lib/_models/groceries-list.d.ts +0 -30
- package/lib/_services/counter.service.d.ts +0 -10
- package/lib/_services/groceries-entries.service.d.ts +0 -10
- package/lib/_services/groceries-lists.service.d.ts +0 -68
- package/lib/_services/recipe-events.service.d.ts +0 -23
- package/lib/_types/skeleton.enum.d.ts +0 -5
- package/lib/_web-components/drawer/drawer.component.d.ts +0 -37
- package/lib/_web-components/pos-card/pos-card.component.d.ts +0 -24
- package/lib/_web-components/pos-selection/pos-selection.component.d.ts +0 -38
- package/lib/_web-components/recipe-cards/catalog-recipe-card/catalog-recipe-card.component.d.ts +0 -49
- package/lib/_web-components/recipe-cards/suggestion-card/suggestion-card.component.d.ts +0 -42
|
@@ -2,23 +2,20 @@ import { ChangeDetectorRef, EventEmitter, OnInit, OnChanges } from '@angular/cor
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { EventTracerComponent } from '../../../_components/abstracts/event-tracer.component';
|
|
4
4
|
import { Recipe } from '../../../_models';
|
|
5
|
-
import { RecipesService,
|
|
5
|
+
import { RecipesService, PointOfSalesService, ContextService, UserService, ToasterService, AnalyticsService, BasketsService } from '../../../_services';
|
|
6
6
|
import { Icon } from '../../../_types/icon.enum';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class RecipeCardCtaComponent extends EventTracerComponent implements OnInit, OnChanges {
|
|
9
9
|
cdr: ChangeDetectorRef;
|
|
10
10
|
recipeService: RecipesService;
|
|
11
|
-
|
|
12
|
-
groceriesListsService: GroceriesListsService;
|
|
11
|
+
basketsService: BasketsService;
|
|
13
12
|
userService: UserService;
|
|
14
13
|
protected pointOfSalesService: PointOfSalesService;
|
|
15
14
|
contextService: ContextService;
|
|
16
15
|
protected analyticsService: AnalyticsService;
|
|
17
16
|
protected toasterService: ToasterService;
|
|
18
|
-
private supplierService;
|
|
19
17
|
recipeName: string;
|
|
20
18
|
recipe: Recipe;
|
|
21
|
-
cardType: string;
|
|
22
19
|
previewAllowed: boolean;
|
|
23
20
|
helpButtonAllowed: boolean;
|
|
24
21
|
displayGuests: boolean;
|
|
@@ -27,7 +24,7 @@ export declare class RecipeCardCtaComponent extends EventTracerComponent impleme
|
|
|
27
24
|
loading: boolean;
|
|
28
25
|
icon: typeof Icon;
|
|
29
26
|
private subscriptions;
|
|
30
|
-
constructor(cdr: ChangeDetectorRef, recipeService: RecipesService,
|
|
27
|
+
constructor(cdr: ChangeDetectorRef, recipeService: RecipesService, basketsService: BasketsService, userService: UserService, pointOfSalesService: PointOfSalesService, contextService: ContextService, analyticsService: AnalyticsService, toasterService: ToasterService);
|
|
31
28
|
ngOnInit(): void;
|
|
32
29
|
ngOnChanges(): void;
|
|
33
30
|
searchRecipeByName(): Observable<Recipe>;
|
|
@@ -36,13 +33,9 @@ export declare class RecipeCardCtaComponent extends EventTracerComponent impleme
|
|
|
36
33
|
* Add recipe to list on primary button click and emit true if the recipe is added, false if recipe is not added
|
|
37
34
|
* so lib users can decide that clicked.emit(false) removes the recipe for example
|
|
38
35
|
*/
|
|
39
|
-
|
|
36
|
+
displayRecipe(): void;
|
|
40
37
|
openRecipe(): void;
|
|
41
|
-
addRecipe(display?: boolean): void;
|
|
42
|
-
addRecipeActionOK(display: boolean): void;
|
|
43
|
-
showRecipeToaster(): void;
|
|
44
|
-
addRecipeActionKO(): void;
|
|
45
38
|
toggleButtonLoader(value: boolean): void;
|
|
46
39
|
static ɵfac: i0.ɵɵFactoryDef<RecipeCardCtaComponent, never>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDefWithMeta<RecipeCardCtaComponent, "ng-miam-recipe-card-cta", never, { "recipeName": "recipeName"; "recipe": "recipe"; "
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDefWithMeta<RecipeCardCtaComponent, "ng-miam-recipe-card-cta", never, { "recipeName": "recipeName"; "recipe": "recipe"; "previewAllowed": "previewAllowed"; "helpButtonAllowed": "helpButtonAllowed"; "displayGuests": "displayGuests"; }, { "displayed": "displayed"; "clicked": "clicked"; }, never, never>;
|
|
48
41
|
}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import * as i1 from "./add-recipe-card/add-recipe-card.component";
|
|
4
|
-
import * as i2 from "./
|
|
5
|
-
import * as i3 from "./recipe-card/recipe-card.component";
|
|
6
|
-
import * as i4 from "
|
|
7
|
-
import * as i5 from "
|
|
8
|
-
import * as i6 from "
|
|
9
|
-
import * as i7 from "
|
|
10
|
-
import * as i8 from "../../_utils/utils.module";
|
|
11
|
-
import * as i9 from "../../_components/components.module";
|
|
4
|
+
import * as i2 from "./recipe-card/recipe-card.component";
|
|
5
|
+
import * as i3 from "./recipe-card-cta/recipe-card-cta.component";
|
|
6
|
+
import * as i4 from "@angular/common";
|
|
7
|
+
import * as i5 from "@angular/forms";
|
|
8
|
+
import * as i6 from "../../_utils/utils.module";
|
|
9
|
+
import * as i7 from "../../_components/components.module";
|
|
12
10
|
export declare class RecipeCardsModule {
|
|
13
11
|
constructor(injector: Injector);
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDefWithMeta<RecipeCardsModule, [typeof i1.AddRecipeCardComponent, typeof i2.
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDefWithMeta<RecipeCardsModule, [typeof i1.AddRecipeCardComponent, typeof i2.RecipeCardComponent, typeof i3.RecipeCardCtaComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.UtilsModule, typeof i7.ComponentsModule], [typeof i1.AddRecipeCardComponent, typeof i2.RecipeCardComponent]>;
|
|
15
13
|
static ɵinj: i0.ɵɵInjectorDef<RecipeCardsModule>;
|
|
16
14
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { Observable, Subscription } from 'rxjs';
|
|
3
3
|
import { EventTracerComponent } from '../../../_components/abstracts/event-tracer.component';
|
|
4
4
|
import { Article, Recipe } from '../../../_models';
|
|
5
|
-
import {
|
|
5
|
+
import { ArticlesService, ContextService, RecipesService } from '../../../_services';
|
|
6
|
+
import { AnalyticsService } from '../../../_services/analytics.service';
|
|
7
|
+
import { CustomProperties } from '../../../_types/event-trace';
|
|
6
8
|
import { Icon } from '../../../_types/icon.enum';
|
|
7
9
|
import { RecipeFilters } from '../../../_types/recipe-filters';
|
|
8
|
-
import {
|
|
10
|
+
import { RecipeCardComponent } from '../../recipe-cards';
|
|
9
11
|
import * as i0 from "@angular/core";
|
|
10
12
|
export declare class CatalogCategoryComponent extends EventTracerComponent implements OnDestroy, OnChanges, OnInit {
|
|
11
13
|
private recipesService;
|
|
@@ -18,12 +20,12 @@ export declare class CatalogCategoryComponent extends EventTracerComponent imple
|
|
|
18
20
|
subtitle: string;
|
|
19
21
|
maxRecipeNumber: number;
|
|
20
22
|
modifiedGuests: number;
|
|
21
|
-
displayPricing:
|
|
23
|
+
displayPricing: boolean;
|
|
22
24
|
displayList: EventEmitter<any>;
|
|
23
25
|
loading: EventEmitter<boolean>;
|
|
24
26
|
categoryContent: ElementRef<HTMLElement>;
|
|
25
27
|
categoryCards: ElementRef<HTMLElement>;
|
|
26
|
-
recipeCards: QueryList<
|
|
28
|
+
recipeCards: QueryList<RecipeCardComponent>;
|
|
27
29
|
subscriptions: Subscription[];
|
|
28
30
|
recipes: Recipe[];
|
|
29
31
|
articles: Article[];
|
|
@@ -31,7 +33,7 @@ export declare class CatalogCategoryComponent extends EventTracerComponent imple
|
|
|
31
33
|
icon: typeof Icon;
|
|
32
34
|
constructor(recipesService: RecipesService, articlesService: ArticlesService, context: ContextService, cdr: ChangeDetectorRef, analyticsService: AnalyticsService);
|
|
33
35
|
ngOnInit(): void;
|
|
34
|
-
ngOnChanges(): void;
|
|
36
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
35
37
|
currentPath(): string;
|
|
36
38
|
props(): CustomProperties;
|
|
37
39
|
loadRecipes(): Observable<Recipe[]>;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnDestroy, OnInit, EventEmitter, OnChanges, QueryList, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { BehaviorSubject, Observable, Subscription } from 'rxjs';
|
|
3
3
|
import { EventTracerComponent } from '../../../_components/abstracts/event-tracer.component';
|
|
4
|
-
import { Article
|
|
5
|
-
import {
|
|
4
|
+
import { Article } from '../../../_models';
|
|
5
|
+
import { Recipe } from '../../../_models/recipe';
|
|
6
|
+
import { ArticlesService, ContextService, RecipeLikesService, RecipesService, UserService } from '../../../_services';
|
|
7
|
+
import { AnalyticsService } from '../../../_services/analytics.service';
|
|
8
|
+
import { CustomProperties } from '../../../_types/event-trace';
|
|
6
9
|
import { Icon } from '../../../_types/icon.enum';
|
|
7
10
|
import { RecipeFilter, RecipeFilters } from '../../../_types/recipe-filters';
|
|
8
|
-
import {
|
|
11
|
+
import { RecipeCardComponent } from '../../recipe-cards';
|
|
9
12
|
import * as i0 from "@angular/core";
|
|
10
13
|
export declare class CatalogListComponent extends EventTracerComponent implements OnDestroy, OnInit, OnChanges {
|
|
11
14
|
private recipesService;
|
|
@@ -31,7 +34,7 @@ export declare class CatalogListComponent extends EventTracerComponent implement
|
|
|
31
34
|
recipe: Recipe;
|
|
32
35
|
}>;
|
|
33
36
|
loading: BehaviorSubject<boolean>;
|
|
34
|
-
recipeCards: QueryList<
|
|
37
|
+
recipeCards: QueryList<RecipeCardComponent>;
|
|
35
38
|
currentRecipes: Recipe[];
|
|
36
39
|
lastPage: number;
|
|
37
40
|
subscriptions: Subscription[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, OnInit, ElementRef, QueryList, OnDestroy } from '@angular/core';
|
|
2
2
|
import { CatalogCategoryComponent } from './catalog-category/catalog-category.component';
|
|
3
3
|
import { CatalogSetting, Recipe, Supplier } from '../../_models';
|
|
4
|
-
import { RecipeTypeService, SponsorService, PackageService, SuppliersService, RecipesService, UserService,
|
|
4
|
+
import { RecipeTypeService, SponsorService, PackageService, SuppliersService, RecipesService, UserService, BasketsService, ContextService, CatalogSettingsService } from '../../_services';
|
|
5
5
|
import { Icon } from '../../_types/icon.enum';
|
|
6
6
|
import { CatalogHeaderComponent } from './catalog-header/catalog-header.component';
|
|
7
7
|
import { IAdditionnalFilters, RecipeFilter, RecipeFilters } from '../../_types/recipe-filters';
|
|
@@ -34,7 +34,6 @@ export declare class RecipeCatalogComponent extends EventTracerComponent impleme
|
|
|
34
34
|
usersService: UserService;
|
|
35
35
|
catalogSettingService: CatalogSettingsService;
|
|
36
36
|
protected analyticsService: AnalyticsService;
|
|
37
|
-
groceriesListService: GroceriesListsService;
|
|
38
37
|
basketsService: BasketsService;
|
|
39
38
|
contextService: ContextService;
|
|
40
39
|
catalogHeader: CatalogHeaderComponent;
|
|
@@ -66,7 +65,7 @@ export declare class RecipeCatalogComponent extends EventTracerComponent impleme
|
|
|
66
65
|
catalogSettingHasLoaded: boolean;
|
|
67
66
|
private subscriptions;
|
|
68
67
|
private supplierId;
|
|
69
|
-
constructor(cdr: ChangeDetectorRef, recipeTypesService: RecipeTypeService, sponsorService: SponsorService, supplierService: SuppliersService, packageService: PackageService, recipesService: RecipesService, mediaMatcher: MediaMatcher, usersService: UserService, catalogSettingService: CatalogSettingsService, analyticsService: AnalyticsService,
|
|
68
|
+
constructor(cdr: ChangeDetectorRef, recipeTypesService: RecipeTypeService, sponsorService: SponsorService, supplierService: SuppliersService, packageService: PackageService, recipesService: RecipesService, mediaMatcher: MediaMatcher, usersService: UserService, catalogSettingService: CatalogSettingsService, analyticsService: AnalyticsService, basketsService: BasketsService, contextService: ContextService);
|
|
70
69
|
ngOnInit(): void;
|
|
71
70
|
ngAfterViewInit(): void;
|
|
72
71
|
ngOnDestroy(): void;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { EventEmitter, OnInit, ChangeDetectorRef } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { Subscription } from 'rxjs';
|
|
2
3
|
import { Recipe, SponsorBlock } from '../../../_models';
|
|
3
4
|
import { SponsorBlockService } from '../../../_services';
|
|
4
5
|
import { Icon } from '../../../_types/icon.enum';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class RecipeAddonComponent implements OnInit {
|
|
7
|
+
export declare class RecipeAddonComponent implements OnInit, OnDestroy {
|
|
7
8
|
private sponsorBlocksService;
|
|
8
9
|
private cdr;
|
|
9
10
|
recipe: Recipe;
|
|
@@ -11,8 +12,10 @@ export declare class RecipeAddonComponent implements OnInit {
|
|
|
11
12
|
icon: typeof Icon;
|
|
12
13
|
loading: boolean;
|
|
13
14
|
sponsorBlocks: SponsorBlock[];
|
|
15
|
+
subscriptions: Subscription[];
|
|
14
16
|
constructor(sponsorBlocksService: SponsorBlockService, cdr: ChangeDetectorRef);
|
|
15
17
|
ngOnInit(): void;
|
|
18
|
+
ngOnDestroy(): void;
|
|
16
19
|
getSponsorBlocks(): void;
|
|
17
20
|
static ɵfac: i0.ɵɵFactoryDef<RecipeAddonComponent, never>;
|
|
18
21
|
static ɵcmp: i0.ɵɵComponentDefWithMeta<RecipeAddonComponent, "ng-miam-recipe-addon", never, { "recipe": "recipe"; }, { "hideAddon": "hideAddon"; }, never, never>;
|
package/lib/_web-components/recipe-details/recipe-details-infos/recipe-details-infos.component.d.ts
CHANGED
|
@@ -1,26 +1,14 @@
|
|
|
1
|
-
import { ChangeDetectorRef
|
|
2
|
-
import {
|
|
3
|
-
import { Recipe } from '../../../_models/recipe';
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { Recipe } from '../../../_models';
|
|
4
3
|
import { RecipesService } from '../../../_services';
|
|
5
|
-
import { Icon } from '../../../_types/icon.enum';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class RecipeDetailsInfosComponent
|
|
5
|
+
export declare class RecipeDetailsInfosComponent {
|
|
8
6
|
cdr: ChangeDetectorRef;
|
|
9
7
|
recipesService: RecipesService;
|
|
10
8
|
recipe: Recipe;
|
|
11
|
-
|
|
12
|
-
displayTagsIcons: boolean;
|
|
13
|
-
reduced: boolean;
|
|
14
|
-
icon: typeof Icon;
|
|
15
|
-
tags: Tag[];
|
|
16
|
-
tagTypeOrder: string[];
|
|
17
|
-
showAdditionalInfos: boolean;
|
|
9
|
+
tagsDisplayed: boolean;
|
|
18
10
|
constructor(cdr: ChangeDetectorRef, recipesService: RecipesService);
|
|
19
|
-
|
|
20
|
-
orderTags(): void;
|
|
21
|
-
tagClass(tag: Tag): {
|
|
22
|
-
[x: string]: boolean;
|
|
23
|
-
};
|
|
11
|
+
displayTags(): void;
|
|
24
12
|
static ɵfac: i0.ɵɵFactoryDef<RecipeDetailsInfosComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDefWithMeta<RecipeDetailsInfosComponent, "ng-miam-recipe-details-infos", never, { "recipe": "recipe";
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDefWithMeta<RecipeDetailsInfosComponent, "ng-miam-recipe-details-infos", never, { "recipe": "recipe"; }, {}, never, never>;
|
|
26
14
|
}
|
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ContextService } from '../../../_services';
|
|
4
|
-
import { SimplifiedIngredient } from '../../../_models';
|
|
1
|
+
import { Ingredient, SimplifiedIngredient } from '../../../_models';
|
|
2
|
+
import { ContextService, RecipeDetailsService } from '../../../_services';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
export declare class RecipeDetailsIngredientsComponent {
|
|
7
|
-
cdr: ChangeDetectorRef;
|
|
8
5
|
contextService: ContextService;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
guestsUpdated: EventEmitter<void>;
|
|
13
|
-
ingredientsChecked: {};
|
|
14
|
-
constructor(cdr: ChangeDetectorRef, contextService: ContextService);
|
|
15
|
-
updateGuests(guests: any): void;
|
|
6
|
+
recipeDetailsService: RecipeDetailsService;
|
|
7
|
+
ingredients: Ingredient[];
|
|
8
|
+
constructor(contextService: ContextService, recipeDetailsService: RecipeDetailsService);
|
|
16
9
|
ingredientPicture(ingredient: SimplifiedIngredient): string;
|
|
17
10
|
static ɵfac: i0.ɵɵFactoryDef<RecipeDetailsIngredientsComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDefWithMeta<RecipeDetailsIngredientsComponent, "ng-miam-recipe-details-ingredients", never, { "
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDefWithMeta<RecipeDetailsIngredientsComponent, "ng-miam-recipe-details-ingredients", never, { "ingredients": "ingredients"; }, {}, never, never>;
|
|
19
12
|
}
|
package/lib/_web-components/recipe-details/recipe-details-steps/recipe-details-steps.component.d.ts
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Recipe } from '../../../_models/recipe';
|
|
3
|
-
import { Icon } from '../../../_types/icon.enum';
|
|
1
|
+
import { Recipe } from '../../../_models';
|
|
4
2
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class RecipeDetailsStepsComponent
|
|
6
|
-
cdr: ChangeDetectorRef;
|
|
3
|
+
export declare class RecipeDetailsStepsComponent {
|
|
7
4
|
recipe: Recipe;
|
|
8
|
-
activeStep: number;
|
|
9
|
-
icon: typeof Icon;
|
|
10
|
-
constructor(cdr: ChangeDetectorRef);
|
|
11
|
-
ngOnChanges(): void;
|
|
12
|
-
changeActiveStep(index: number): void;
|
|
13
5
|
static ɵfac: i0.ɵɵFactoryDef<RecipeDetailsStepsComponent, never>;
|
|
14
6
|
static ɵcmp: i0.ɵɵComponentDefWithMeta<RecipeDetailsStepsComponent, "ng-miam-recipe-details-steps", never, { "recipe": "recipe"; }, {}, never, never>;
|
|
15
7
|
}
|
|
@@ -1,33 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { Icon } from '../../_types/icon.enum';
|
|
4
|
-
import { ContextService, GroceriesListsService, PointOfSalesService, RecipeEventsService, RecipesService, SponsorBlockService, UserService } from '../../_services';
|
|
1
|
+
/// <reference types="youtube" />
|
|
2
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit } from '@angular/core';
|
|
5
3
|
import { Subscription } from 'rxjs';
|
|
6
|
-
import { MediaMatcher } from '@angular/cdk/layout';
|
|
7
|
-
import { AnalyticsService, CustomProperties } from '../../_services/analytics.service';
|
|
8
4
|
import { EventTracerComponent } from '../../_components/abstracts/event-tracer.component';
|
|
9
|
-
import {
|
|
5
|
+
import { Ingredient } from '../../_models';
|
|
6
|
+
import { AnalyticsService, BasketsService, ContextService, PointOfSalesService, RecipesService, SponsorBlockService, UserService } from '../../_services';
|
|
7
|
+
import { RecipeDetailsService } from '../../_services/recipe-details.service';
|
|
8
|
+
import { CustomProperties } from '../../_types/event-trace';
|
|
9
|
+
import { Icon } from '../../_types/icon.enum';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class RecipeDetailsComponent extends EventTracerComponent implements OnInit, OnChanges {
|
|
11
|
+
export declare class RecipeDetailsComponent extends EventTracerComponent implements OnInit, OnChanges, OnDestroy {
|
|
12
12
|
cdr: ChangeDetectorRef;
|
|
13
13
|
recipeService: RecipesService;
|
|
14
|
-
|
|
14
|
+
basketsService: BasketsService;
|
|
15
15
|
userService: UserService;
|
|
16
16
|
protected posService: PointOfSalesService;
|
|
17
|
-
private recipeEventsService;
|
|
18
|
-
private mediaMatcher;
|
|
19
17
|
contextService: ContextService;
|
|
20
|
-
|
|
21
|
-
private toasterService;
|
|
18
|
+
recipeDetailsService: RecipeDetailsService;
|
|
22
19
|
private sponsorBlocksService;
|
|
20
|
+
protected analyticsService: AnalyticsService;
|
|
23
21
|
recipeId: string;
|
|
24
|
-
forcedRecipe: Recipe;
|
|
25
22
|
previewAllowed: boolean;
|
|
26
23
|
ingredientsPictures: boolean;
|
|
27
|
-
forceDisplayTags:
|
|
24
|
+
forceDisplayTags: boolean;
|
|
28
25
|
displayTagsIcons: boolean;
|
|
29
26
|
displayPricing: boolean;
|
|
30
|
-
displayAddedOnPicture: boolean;
|
|
31
27
|
displayGuests: boolean;
|
|
32
28
|
helpButtonAllowed: boolean;
|
|
33
29
|
stepsOnLeftSide: boolean;
|
|
@@ -36,9 +32,8 @@ export declare class RecipeDetailsComponent extends EventTracerComponent impleme
|
|
|
36
32
|
pricingGuestsText: string;
|
|
37
33
|
recipeAdded: EventEmitter<void>;
|
|
38
34
|
recipeError: EventEmitter<void>;
|
|
39
|
-
primaryButtonClicked$: EventEmitter<boolean>;
|
|
40
35
|
topContainerImg: ElementRef<HTMLElement>;
|
|
41
|
-
|
|
36
|
+
removedIngredients: Ingredient[];
|
|
42
37
|
tab: number;
|
|
43
38
|
isMobile: boolean;
|
|
44
39
|
displayTags: boolean;
|
|
@@ -46,40 +41,38 @@ export declare class RecipeDetailsComponent extends EventTracerComponent impleme
|
|
|
46
41
|
icon: typeof Icon;
|
|
47
42
|
playerWidth: any;
|
|
48
43
|
playerHeight: any;
|
|
44
|
+
primaryButtonClicked$: EventEmitter<boolean>;
|
|
49
45
|
showVideo: any;
|
|
50
46
|
addButtonLoading: boolean;
|
|
51
47
|
titleInHeader: boolean;
|
|
52
48
|
sponsorHasStorytelling: boolean;
|
|
53
49
|
title: HTMLElement;
|
|
54
50
|
content: HTMLElement;
|
|
55
|
-
|
|
51
|
+
activeTabIndex: number;
|
|
52
|
+
playerVars: YT.PlayerVars;
|
|
56
53
|
protected subscriptions: Subscription[];
|
|
57
|
-
|
|
54
|
+
private intersectionObserver;
|
|
55
|
+
constructor(cdr: ChangeDetectorRef, recipeService: RecipesService, basketsService: BasketsService, userService: UserService, posService: PointOfSalesService, contextService: ContextService, recipeDetailsService: RecipeDetailsService, sponsorBlocksService: SponsorBlockService, analyticsService: AnalyticsService);
|
|
58
56
|
ngOnInit(): void;
|
|
59
|
-
ngOnChanges(
|
|
60
|
-
|
|
57
|
+
ngOnChanges(): void;
|
|
58
|
+
ngOnDestroy(): void;
|
|
59
|
+
getProducts(): void;
|
|
60
|
+
fetchRecipe(id: string): void;
|
|
61
61
|
setupYoutubePlayer(): void;
|
|
62
|
-
currentPath(): string;
|
|
63
|
-
protected currentProps(): CustomProperties;
|
|
64
62
|
/**
|
|
65
63
|
* Init the listener on scroll so the modal can hide the close icon
|
|
66
64
|
*/
|
|
67
65
|
initScrollListenerOnTitle(): void;
|
|
68
66
|
toggleTitleInHeader(): void;
|
|
69
|
-
|
|
70
|
-
* Add recipe to list on primary button click and emit true if the recipe is added, false if recipe is not added
|
|
71
|
-
* so lib users can decide that primaryButtonClicked$.emit(false) removes the recipe for example
|
|
72
|
-
*/
|
|
73
|
-
clickPrimary(): void;
|
|
74
|
-
addRecipe(): void;
|
|
75
|
-
addRecipeActionOK(): void;
|
|
76
|
-
showRecipeToaster(): void;
|
|
77
|
-
addRecipeActionKO(): void;
|
|
78
|
-
updateGuests(): void;
|
|
79
|
-
print(): void;
|
|
67
|
+
updateGuests(guests: number): void;
|
|
80
68
|
toggleAddon(): void;
|
|
81
69
|
toggleHelper(): void;
|
|
82
70
|
toggleButtonLoader(value: boolean): void;
|
|
71
|
+
onClose(): void;
|
|
72
|
+
print(): void;
|
|
73
|
+
sendDisplayRecipeEvent(): void;
|
|
74
|
+
protected currentProps(): CustomProperties;
|
|
75
|
+
currentPath(): string;
|
|
83
76
|
static ɵfac: i0.ɵɵFactoryDef<RecipeDetailsComponent, never>;
|
|
84
|
-
static ɵcmp: i0.ɵɵComponentDefWithMeta<RecipeDetailsComponent, "ng-miam-recipe-details", never, { "recipeId": "recipeId"; "
|
|
77
|
+
static ɵcmp: i0.ɵɵComponentDefWithMeta<RecipeDetailsComponent, "ng-miam-recipe-details", never, { "recipeId": "recipeId"; "previewAllowed": "previewAllowed"; "ingredientsPictures": "ingredientsPictures"; "forceDisplayTags": "forceDisplayTags"; "displayTagsIcons": "displayTagsIcons"; "displayPricing": "displayPricing"; "displayGuests": "displayGuests"; "helpButtonAllowed": "helpButtonAllowed"; "stepsOnLeftSide": "stepsOnLeftSide"; "cookingTimeAsPrimaryInfo": "cookingTimeAsPrimaryInfo"; "moreRecipesImageURL": "moreRecipesImageURL"; "pricingGuestsText": "pricingGuestsText"; }, { "recipeAdded": "recipeAdded"; "recipeError": "recipeError"; }, never, never>;
|
|
85
78
|
}
|
|
@@ -11,8 +11,9 @@ import * as i8 from "@angular/forms";
|
|
|
11
11
|
import * as i9 from "../../_utils/utils.module";
|
|
12
12
|
import * as i10 from "../../_components/components.module";
|
|
13
13
|
import * as i11 from "@angular/youtube-player";
|
|
14
|
+
import * as i12 from "../basket-preview/basket-preview.module";
|
|
14
15
|
export declare class RecipeDetailsModule {
|
|
15
16
|
constructor(injector: Injector);
|
|
16
|
-
static ɵmod: i0.ɵɵNgModuleDefWithMeta<RecipeDetailsModule, [typeof i1.RecipeDetailsIngredientsComponent, typeof i2.RecipeDetailsComponent, typeof i3.RecipeAddonComponent, typeof i4.RecipeDetailsStepsComponent, typeof i5.RecipeDetailsInfosComponent, typeof i6.SponsorStorytellingComponent], [typeof i7.CommonModule, typeof i8.FormsModule, typeof i9.UtilsModule, typeof i10.ComponentsModule, typeof i11.YouTubePlayerModule], [typeof i1.RecipeDetailsIngredientsComponent, typeof i2.RecipeDetailsComponent, typeof i3.RecipeAddonComponent, typeof i4.RecipeDetailsStepsComponent, typeof i5.RecipeDetailsInfosComponent, typeof i6.SponsorStorytellingComponent]>;
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDefWithMeta<RecipeDetailsModule, [typeof i1.RecipeDetailsIngredientsComponent, typeof i2.RecipeDetailsComponent, typeof i3.RecipeAddonComponent, typeof i4.RecipeDetailsStepsComponent, typeof i5.RecipeDetailsInfosComponent, typeof i6.SponsorStorytellingComponent], [typeof i7.CommonModule, typeof i8.FormsModule, typeof i9.UtilsModule, typeof i10.ComponentsModule, typeof i11.YouTubePlayerModule, typeof i12.BasketPreviewModule], [typeof i1.RecipeDetailsIngredientsComponent, typeof i2.RecipeDetailsComponent, typeof i3.RecipeAddonComponent, typeof i4.RecipeDetailsStepsComponent, typeof i5.RecipeDetailsInfosComponent, typeof i6.SponsorStorytellingComponent]>;
|
|
17
18
|
static ɵinj: i0.ɵɵInjectorDef<RecipeDetailsModule>;
|
|
18
19
|
}
|
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
import { MediaMatcher } from '@angular/cdk/layout';
|
|
2
1
|
import { EventEmitter, ChangeDetectorRef, OnInit, OnDestroy } from '@angular/core';
|
|
3
2
|
import { Subscription } from 'rxjs';
|
|
4
|
-
import {
|
|
3
|
+
import { RecipesService } from '../../_services';
|
|
5
4
|
import { Icon } from '../../_types/icon.enum';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class RecipeHelperComponent implements OnInit, OnDestroy {
|
|
8
7
|
private cdr;
|
|
9
8
|
private recipesService;
|
|
10
|
-
private mediaMatcher;
|
|
11
|
-
private context;
|
|
12
9
|
stringDetailLocation: string;
|
|
13
10
|
close: EventEmitter<any>;
|
|
14
11
|
icon: typeof Icon;
|
|
15
|
-
isMobile: boolean;
|
|
16
12
|
isDisplayed: boolean;
|
|
17
13
|
protected subscriptions: Subscription[];
|
|
18
|
-
constructor(cdr: ChangeDetectorRef, recipesService: RecipesService
|
|
14
|
+
constructor(cdr: ChangeDetectorRef, recipesService: RecipesService);
|
|
19
15
|
ngOnInit(): void;
|
|
20
16
|
onClose(): void;
|
|
21
17
|
ngOnDestroy(): void;
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject, Subscription } from 'rxjs';
|
|
2
3
|
import { Recipe } from '../../_models';
|
|
3
|
-
import { BasketsService,
|
|
4
|
-
import { EventTrace } from '../../_services/analytics.service';
|
|
4
|
+
import { BasketsService, RecipesService } from '../../_services';
|
|
5
5
|
import { PrintService } from '../../_services/print.service';
|
|
6
|
+
import { EventTrace } from '../../_types/event-trace';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class RecipeModalComponent implements OnInit {
|
|
8
|
+
export declare class RecipeModalComponent implements OnInit, OnDestroy {
|
|
8
9
|
private cdr;
|
|
9
10
|
recipesService: RecipesService;
|
|
10
11
|
private printService;
|
|
11
12
|
private elRef;
|
|
12
|
-
private groceriesListsService;
|
|
13
13
|
private basketsService;
|
|
14
|
-
private posService;
|
|
15
14
|
recipe: Recipe;
|
|
16
15
|
show: boolean;
|
|
17
|
-
previewMode: boolean
|
|
16
|
+
previewMode: BehaviorSubject<boolean>;
|
|
18
17
|
previewAllowed: boolean;
|
|
19
18
|
displayGuestsInDetails: boolean;
|
|
20
19
|
helpButtonAllowedInDetails: boolean;
|
|
@@ -23,13 +22,16 @@ export declare class RecipeModalComponent implements OnInit {
|
|
|
23
22
|
basketChangedSinceOpened: boolean;
|
|
24
23
|
recipeWasAdded: boolean;
|
|
25
24
|
eventTrace?: EventTrace;
|
|
25
|
+
subscriptions: Subscription[];
|
|
26
26
|
detailsStepsOnLeftSide: boolean;
|
|
27
27
|
detailsMoreRecipesImageURL: string;
|
|
28
28
|
detailsPricingGuestsText: string;
|
|
29
29
|
hasChangesOnClose: EventEmitter<boolean>;
|
|
30
30
|
private detailsComponent;
|
|
31
|
-
constructor(cdr: ChangeDetectorRef, recipesService: RecipesService, printService: PrintService, elRef: ElementRef<HTMLElement>,
|
|
31
|
+
constructor(cdr: ChangeDetectorRef, recipesService: RecipesService, printService: PrintService, elRef: ElementRef<HTMLElement>, basketsService: BasketsService);
|
|
32
32
|
ngOnInit(): void;
|
|
33
|
+
ngOnDestroy(): void;
|
|
34
|
+
listenToRecipeDisplayed(): void;
|
|
33
35
|
registerTrace(trace: EventTrace): void;
|
|
34
36
|
hide(): void;
|
|
35
37
|
togglePreviewMode(): void;
|
|
@@ -37,7 +39,7 @@ export declare class RecipeModalComponent implements OnInit {
|
|
|
37
39
|
/**
|
|
38
40
|
* If the preview is opened and loading, block the user from closing the modal
|
|
39
41
|
*/
|
|
40
|
-
|
|
42
|
+
initDisabledStates(): void;
|
|
41
43
|
static ɵfac: i0.ɵɵFactoryDef<RecipeModalComponent, never>;
|
|
42
44
|
static ɵcmp: i0.ɵɵComponentDefWithMeta<RecipeModalComponent, "ng-miam-recipe-modal", never, { "detailsStepsOnLeftSide": "detailsStepsOnLeftSide"; "detailsMoreRecipesImageURL": "detailsMoreRecipesImageURL"; "detailsPricingGuestsText": "detailsPricingGuestsText"; }, { "hasChangesOnClose": "hasChangesOnClose"; }, never, never>;
|
|
43
45
|
}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { Subscription } from 'rxjs';
|
|
2
3
|
import { ToasterService } from '../../_services/toaster.service';
|
|
3
4
|
import { Toaster } from '../../_types/toaster';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ToasterStackComponent implements OnInit {
|
|
6
|
+
export declare class ToasterStackComponent implements OnInit, OnDestroy {
|
|
6
7
|
private cdr;
|
|
7
8
|
private toasterService;
|
|
8
9
|
toasters: Toaster[];
|
|
10
|
+
subscriptions: Subscription[];
|
|
9
11
|
constructor(cdr: ChangeDetectorRef, toasterService: ToasterService);
|
|
10
12
|
ngOnInit(): void;
|
|
13
|
+
ngOnDestroy(): void;
|
|
11
14
|
close(index: number): void;
|
|
12
15
|
static ɵfac: i0.ɵɵFactoryDef<ToasterStackComponent, never>;
|
|
13
16
|
static ɵcmp: i0.ɵɵComponentDefWithMeta<ToasterStackComponent, "ng-miam-toaster-stack", never, {}, {}, never, never>;
|
|
@@ -1,42 +1,36 @@
|
|
|
1
|
-
import { DrawerComponent } from './drawer/drawer.component';
|
|
2
1
|
import { PlannerPageComponent } from './planner/planner.component';
|
|
3
2
|
import { PlannerCalendarComponent } from './planner-calendar/planner-calendar.component';
|
|
4
3
|
import { PlannerSideMenuComponent } from './planner-side-menu/planner-side-menu.component';
|
|
5
|
-
import { PosCardComponent } from './pos-card/pos-card.component';
|
|
6
|
-
import { PosSelectionComponent } from './pos-selection/pos-selection.component';
|
|
7
4
|
import { RecipeHelperComponent } from './recipe-helper/recipe-helper.component';
|
|
8
5
|
import { RecipeModalComponent } from './recipe-modal/recipe-modal.component';
|
|
9
6
|
import { RecipeTagsComponent } from './recipe-tags/recipe-tags.component';
|
|
10
7
|
import { RecipesHistoryComponent } from './recipes-history/recipes-history.component';
|
|
11
8
|
import { ToasterStackComponent } from './toaster-stack/toaster-stack.component';
|
|
12
9
|
import * as i0 from "@angular/core";
|
|
13
|
-
import * as i1 from "./
|
|
14
|
-
import * as i2 from "./
|
|
15
|
-
import * as i3 from "./
|
|
16
|
-
import * as i4 from "./
|
|
17
|
-
import * as i5 from "./
|
|
18
|
-
import * as i6 from "./
|
|
19
|
-
import * as i7 from "./recipe-
|
|
20
|
-
import * as i8 from "./
|
|
21
|
-
import * as i9 from "./
|
|
22
|
-
import * as i10 from "./
|
|
23
|
-
import * as i11 from "./
|
|
24
|
-
import * as i12 from "./
|
|
25
|
-
import * as i13 from "./
|
|
26
|
-
import * as i14 from "./recipe-
|
|
27
|
-
import * as i15 from "./
|
|
28
|
-
import * as i16 from "
|
|
29
|
-
import * as i17 from "
|
|
30
|
-
import * as i18 from "
|
|
31
|
-
import * as i19 from "
|
|
32
|
-
import * as i20 from "
|
|
33
|
-
import * as i21 from "
|
|
34
|
-
|
|
35
|
-
import * as i23 from "../_utils/utils.module";
|
|
36
|
-
import * as i24 from "@angular/youtube-player";
|
|
37
|
-
export declare const WEB_COMPONENTS: (typeof DrawerComponent | typeof PlannerPageComponent | typeof PlannerCalendarComponent | typeof PlannerSideMenuComponent | typeof PosCardComponent | typeof PosSelectionComponent | typeof RecipeHelperComponent | typeof RecipeTagsComponent | typeof RecipesHistoryComponent | typeof RecipeModalComponent | typeof ToasterStackComponent)[];
|
|
10
|
+
import * as i1 from "./planner/planner.component";
|
|
11
|
+
import * as i2 from "./planner-calendar/planner-calendar.component";
|
|
12
|
+
import * as i3 from "./planner-side-menu/planner-side-menu.component";
|
|
13
|
+
import * as i4 from "./recipe-modal/recipe-modal.component";
|
|
14
|
+
import * as i5 from "./recipes-history/recipes-history.component";
|
|
15
|
+
import * as i6 from "./recipe-helper/recipe-helper.component";
|
|
16
|
+
import * as i7 from "./recipe-tags/recipe-tags.component";
|
|
17
|
+
import * as i8 from "./toaster-stack/toaster-stack.component";
|
|
18
|
+
import * as i9 from "./basket-preview/basket-preview.module";
|
|
19
|
+
import * as i10 from "./list-scan/list-scan.module";
|
|
20
|
+
import * as i11 from "./recipe-details/recipe-details.module";
|
|
21
|
+
import * as i12 from "./meals-planner/meals-planner.module";
|
|
22
|
+
import * as i13 from "./recipe-cards/recipe-cards.module";
|
|
23
|
+
import * as i14 from "./recipe-catalog/recipe-catalog.module";
|
|
24
|
+
import * as i15 from "./recipe-creation/recipe-creation.module";
|
|
25
|
+
import * as i16 from "@angular/common";
|
|
26
|
+
import * as i17 from "@angular/forms";
|
|
27
|
+
import * as i18 from "../_components/components.module";
|
|
28
|
+
import * as i19 from "angular-calendar";
|
|
29
|
+
import * as i20 from "../_utils/utils.module";
|
|
30
|
+
import * as i21 from "@angular/youtube-player";
|
|
31
|
+
export declare const WEB_COMPONENTS: (typeof PlannerPageComponent | typeof PlannerCalendarComponent | typeof PlannerSideMenuComponent | typeof RecipeHelperComponent | typeof RecipeTagsComponent | typeof RecipesHistoryComponent | typeof RecipeModalComponent | typeof ToasterStackComponent)[];
|
|
38
32
|
export declare const WEB_COMPONENTS_NAMES: string[];
|
|
39
33
|
export declare class WebComponentsModule {
|
|
40
|
-
static ɵmod: i0.ɵɵNgModuleDefWithMeta<WebComponentsModule, [typeof i1.
|
|
34
|
+
static ɵmod: i0.ɵɵNgModuleDefWithMeta<WebComponentsModule, [typeof i1.PlannerPageComponent, typeof i2.PlannerCalendarComponent, typeof i3.PlannerSideMenuComponent, typeof i4.RecipeModalComponent, typeof i5.RecipesHistoryComponent, typeof i6.RecipeHelperComponent, typeof i7.RecipeTagsComponent, typeof i8.ToasterStackComponent], [typeof i9.BasketPreviewModule, typeof i10.ListScanModule, typeof i11.RecipeDetailsModule, typeof i12.MealsPlannerModule, typeof i13.RecipeCardsModule, typeof i14.RecipeCatalogModule, typeof i15.RecipeCreationModule, typeof i16.CommonModule, typeof i17.FormsModule, typeof i17.ReactiveFormsModule, typeof i18.ComponentsModule, typeof i19.CalendarModule, typeof i20.UtilsModule, typeof i21.YouTubePlayerModule], [typeof i9.BasketPreviewModule, typeof i10.ListScanModule, typeof i11.RecipeDetailsModule, typeof i12.MealsPlannerModule, typeof i13.RecipeCardsModule, typeof i14.RecipeCatalogModule, typeof i15.RecipeCreationModule, typeof i1.PlannerPageComponent, typeof i2.PlannerCalendarComponent, typeof i3.PlannerSideMenuComponent, typeof i4.RecipeModalComponent, typeof i5.RecipesHistoryComponent, typeof i6.RecipeHelperComponent, typeof i7.RecipeTagsComponent, typeof i8.ToasterStackComponent]>;
|
|
41
35
|
static ɵinj: i0.ɵɵInjectorDef<WebComponentsModule>;
|
|
42
36
|
}
|