ng-miam 4.7.10 → 4.7.11
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 +159 -113
- 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 +6 -1
- package/esm2015/lib/_services/context.service.js +3 -4
- package/esm2015/lib/_services/recipes.service.js +14 -1
- package/esm2015/lib/_web-components/catalog-recipe-card/catalog-recipe-card.component.js +128 -109
- package/esm2015/lib/_web-components/recipe-card/recipe-card.component.js +2 -2
- package/fesm2015/ng-miam.js +149 -113
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_services/recipes.service.d.ts +4 -0
- package/package.json +1 -1
package/bundles/ng-miam.umd.js
CHANGED
|
@@ -3850,6 +3850,7 @@
|
|
|
3850
3850
|
_this.hidden = new i0.EventEmitter();
|
|
3851
3851
|
_this.suggestionsPrimaryButtonActions = { display: true, addToBasket: true };
|
|
3852
3852
|
_this.recipesPrimaryButtonActions = { display: true, addToBasket: true };
|
|
3853
|
+
_this.reloadRecipes$ = new rxjs.BehaviorSubject(false);
|
|
3853
3854
|
_this.difficultyLevels = [
|
|
3854
3855
|
{ value: 1, label: 'Chef débutant' },
|
|
3855
3856
|
{ value: 2, label: 'Chef intermédiaire' },
|
|
@@ -4044,6 +4045,19 @@
|
|
|
4044
4045
|
RecipesService.prototype.addTagToRecipe = function (recipe, tag) {
|
|
4045
4046
|
return this.http.post(MIAM_API_HOST$4 + ("recipes/" + recipe.id + "/tags/" + tag.id), {});
|
|
4046
4047
|
};
|
|
4048
|
+
RecipesService.prototype.setRecipesPrimaryButtonActions = function (display, addToBasket) {
|
|
4049
|
+
if (display === void 0) { display = true; }
|
|
4050
|
+
if (addToBasket === void 0) { addToBasket = true; }
|
|
4051
|
+
this.recipesPrimaryButtonActions = { display: display, addToBasket: addToBasket };
|
|
4052
|
+
this.suggestionsPrimaryButtonActions = { display: display, addToBasket: addToBasket };
|
|
4053
|
+
this.reloadAllRecipes();
|
|
4054
|
+
};
|
|
4055
|
+
RecipesService.prototype.setSuggestionsPrimaryButtonActions = function (display, addToBasket) {
|
|
4056
|
+
if (display === void 0) { display = true; }
|
|
4057
|
+
if (addToBasket === void 0) { addToBasket = true; }
|
|
4058
|
+
this.suggestionsPrimaryButtonActions = { display: display, addToBasket: addToBasket };
|
|
4059
|
+
this.reloadAllRecipes();
|
|
4060
|
+
};
|
|
4047
4061
|
// DEPRECATED / use TTL instead
|
|
4048
4062
|
RecipesService.prototype.getOrFetch = function (recipeId) {
|
|
4049
4063
|
var recipe = this.recipes.find(function (r) { return r.id === recipeId; });
|
|
@@ -4089,6 +4103,9 @@
|
|
|
4089
4103
|
RecipesService.prototype.intRandomSeed = function () {
|
|
4090
4104
|
this.randomSeed = Date.now();
|
|
4091
4105
|
};
|
|
4106
|
+
RecipesService.prototype.reloadAllRecipes = function () {
|
|
4107
|
+
this.reloadRecipes$.next(true);
|
|
4108
|
+
};
|
|
4092
4109
|
return RecipesService;
|
|
4093
4110
|
}(i1.Service));
|
|
4094
4111
|
RecipesService.ɵfac = function RecipesService_Factory(t) { return new (t || RecipesService)(i0.ɵɵinject(i1$1.HttpClient), i0.ɵɵinject(RecipeProviderService), i0.ɵɵinject(RecipeStatusService), i0.ɵɵinject(RecipeTypeService), i0.ɵɵinject(SuppliersService), i0.ɵɵinject(PointOfSalesService), i0.ɵɵinject(GroceriesListsService), i0.ɵɵinject(IngredientsService), i0.ɵɵinject(RecipeStepsService), i0.ɵɵinject(RecipeEventsService), i0.ɵɵinject(SponsorService), i0.ɵɵinject(PackageService), i0.ɵɵinject(TagsService), i0.ɵɵinject(RecipeLikesService)); };
|
|
@@ -4496,13 +4513,12 @@
|
|
|
4496
4513
|
setRecipesPrimaryButtonActions: function (display, addToBasket) {
|
|
4497
4514
|
if (display === void 0) { display = true; }
|
|
4498
4515
|
if (addToBasket === void 0) { addToBasket = true; }
|
|
4499
|
-
_this.recipesService.
|
|
4500
|
-
_this.recipesService.suggestionsPrimaryButtonActions = { display: display, addToBasket: addToBasket };
|
|
4516
|
+
_this.recipesService.setRecipesPrimaryButtonActions(display, addToBasket);
|
|
4501
4517
|
},
|
|
4502
4518
|
setSuggestionsPrimaryButtonActions: function (display, addToBasket) {
|
|
4503
4519
|
if (display === void 0) { display = true; }
|
|
4504
4520
|
if (addToBasket === void 0) { addToBasket = true; }
|
|
4505
|
-
_this.recipesService.
|
|
4521
|
+
_this.recipesService.setSuggestionsPrimaryButtonActions(display, addToBasket);
|
|
4506
4522
|
},
|
|
4507
4523
|
setDifficultyLevels: function (levels) {
|
|
4508
4524
|
_this.recipesService.difficultyLevels = levels;
|
|
@@ -11068,6 +11084,11 @@
|
|
|
11068
11084
|
this.sendShowEvent();
|
|
11069
11085
|
this.displayPrice();
|
|
11070
11086
|
this.subscriptions.push(this.groceriesListsService.list$.subscribe(function () { return _this.cdr.detectChanges(); }));
|
|
11087
|
+
this.subscriptions.push(this.recipeService.reloadRecipes$.subscribe(function (shouldReload) {
|
|
11088
|
+
if (shouldReload) {
|
|
11089
|
+
_this.cdr.detectChanges();
|
|
11090
|
+
}
|
|
11091
|
+
}));
|
|
11071
11092
|
};
|
|
11072
11093
|
AbstractRecipeCardComponent.prototype.ngOnDestroy = function () {
|
|
11073
11094
|
this.subscriptions.forEach(function (sub) { return sub.unsubscribe(); });
|
|
@@ -11585,7 +11606,7 @@
|
|
|
11585
11606
|
i0.ɵɵadvance(2);
|
|
11586
11607
|
i0.ɵɵproperty("disabled", !ctx_r0.recipe)("ngClass", i0.ɵɵpureFunction2(25, _c1$5, i0.ɵɵpipeBind1(29, 23, ctx_r0.groceriesListsService.recipeIsInList(ctx_r0.recipe == null ? null : ctx_r0.recipe.id)), ctx_r0.addButtonLoading));
|
|
11587
11608
|
i0.ɵɵadvance(2);
|
|
11588
|
-
i0.ɵɵproperty("ngIf", ctx_r0.recipeService.recipesPrimaryButtonActions.display && !ctx_r0.recipeService.recipesPrimaryButtonActions.addToBasket)("ngIfElse", _r20);
|
|
11609
|
+
i0.ɵɵproperty("ngIf", ctx_r0.recipeService.suggestionsPrimaryButtonActions.display && !ctx_r0.recipeService.suggestionsPrimaryButtonActions.addToBasket || ctx_r0.recipeService.recipesPrimaryButtonActions.display && !ctx_r0.recipeService.recipesPrimaryButtonActions.addToBasket)("ngIfElse", _r20);
|
|
11589
11610
|
i0.ɵɵadvance(3);
|
|
11590
11611
|
i0.ɵɵproperty("ngIf", !ctx_r0.addButtonLoading)("ngIfElse", _r23);
|
|
11591
11612
|
}
|
|
@@ -11771,30 +11792,30 @@
|
|
|
11771
11792
|
function CatalogRecipeCardComponent_div_4_div_3_Template(rf, ctx) {
|
|
11772
11793
|
if (rf & 1) {
|
|
11773
11794
|
i0.ɵɵelementStart(0, "div");
|
|
11774
|
-
i0.ɵɵelement(1, "img",
|
|
11795
|
+
i0.ɵɵelement(1, "img", 30);
|
|
11775
11796
|
i0.ɵɵelementEnd();
|
|
11776
11797
|
}
|
|
11777
11798
|
if (rf & 2) {
|
|
11778
|
-
var
|
|
11799
|
+
var ctx_r18 = i0.ɵɵnextContext(2);
|
|
11779
11800
|
i0.ɵɵadvance(1);
|
|
11780
|
-
i0.ɵɵproperty("src",
|
|
11801
|
+
i0.ɵɵproperty("src", ctx_r18.recipe.filigraneLogoUrl, i0.ɵɵsanitizeUrl);
|
|
11781
11802
|
}
|
|
11782
11803
|
}
|
|
11783
11804
|
function CatalogRecipeCardComponent_div_4_div_4_Template(rf, ctx) {
|
|
11784
11805
|
if (rf & 1) {
|
|
11785
|
-
i0.ɵɵelementStart(0, "div",
|
|
11786
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
11806
|
+
i0.ɵɵelementStart(0, "div", 31);
|
|
11807
|
+
i0.ɵɵelement(1, "ng-miam-icon", 32);
|
|
11787
11808
|
i0.ɵɵelementEnd();
|
|
11788
11809
|
}
|
|
11789
11810
|
if (rf & 2) {
|
|
11790
|
-
var
|
|
11811
|
+
var ctx_r19 = i0.ɵɵnextContext(2);
|
|
11791
11812
|
i0.ɵɵadvance(1);
|
|
11792
|
-
i0.ɵɵproperty("iconName",
|
|
11813
|
+
i0.ɵɵproperty("iconName", ctx_r19.icon.Video)("width", 80)("height", 80);
|
|
11793
11814
|
}
|
|
11794
11815
|
}
|
|
11795
11816
|
function CatalogRecipeCardComponent_div_4_ng_container_5_div_1_Template(rf, ctx) {
|
|
11796
11817
|
if (rf & 1) {
|
|
11797
|
-
i0.ɵɵelementStart(0, "div",
|
|
11818
|
+
i0.ɵɵelementStart(0, "div", 34);
|
|
11798
11819
|
i0.ɵɵtext(1, " D\u00E9j\u00E0 ajout\u00E9e ");
|
|
11799
11820
|
i0.ɵɵelementEnd();
|
|
11800
11821
|
}
|
|
@@ -11802,75 +11823,75 @@
|
|
|
11802
11823
|
function CatalogRecipeCardComponent_div_4_ng_container_5_Template(rf, ctx) {
|
|
11803
11824
|
if (rf & 1) {
|
|
11804
11825
|
i0.ɵɵelementContainerStart(0);
|
|
11805
|
-
i0.ɵɵtemplate(1, CatalogRecipeCardComponent_div_4_ng_container_5_div_1_Template, 2, 0, "div",
|
|
11826
|
+
i0.ɵɵtemplate(1, CatalogRecipeCardComponent_div_4_ng_container_5_div_1_Template, 2, 0, "div", 33);
|
|
11806
11827
|
i0.ɵɵpipe(2, "async");
|
|
11807
11828
|
i0.ɵɵelementContainerEnd();
|
|
11808
11829
|
}
|
|
11809
11830
|
if (rf & 2) {
|
|
11810
|
-
var
|
|
11831
|
+
var ctx_r20 = i0.ɵɵnextContext(2);
|
|
11811
11832
|
i0.ɵɵadvance(1);
|
|
11812
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 1,
|
|
11833
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 1, ctx_r20.groceriesListsService.recipeIsInList(ctx_r20.recipe == null ? null : ctx_r20.recipe.id)));
|
|
11813
11834
|
}
|
|
11814
11835
|
}
|
|
11815
11836
|
function CatalogRecipeCardComponent_div_4_ng_container_6_Template(rf, ctx) {
|
|
11816
11837
|
if (rf & 1) {
|
|
11817
|
-
var
|
|
11838
|
+
var _r28_1 = i0.ɵɵgetCurrentView();
|
|
11818
11839
|
i0.ɵɵelementContainerStart(0);
|
|
11819
|
-
i0.ɵɵelementStart(1, "div",
|
|
11820
|
-
i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_4_ng_container_6_Template_div_click_1_listener() { i0.ɵɵrestoreView(
|
|
11840
|
+
i0.ɵɵelementStart(1, "div", 35);
|
|
11841
|
+
i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_4_ng_container_6_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r28_1); var ctx_r27 = i0.ɵɵnextContext(2); return ctx_r27.openRecipe(); });
|
|
11821
11842
|
i0.ɵɵtext(2);
|
|
11822
11843
|
i0.ɵɵelementEnd();
|
|
11823
11844
|
i0.ɵɵelementContainerEnd();
|
|
11824
11845
|
}
|
|
11825
11846
|
if (rf & 2) {
|
|
11826
|
-
var
|
|
11847
|
+
var ctx_r21 = i0.ɵɵnextContext(2);
|
|
11827
11848
|
i0.ɵɵadvance(2);
|
|
11828
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
11849
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r21.recipe == null ? null : ctx_r21.recipe.attributes["title"], " ");
|
|
11829
11850
|
}
|
|
11830
11851
|
}
|
|
11831
11852
|
function CatalogRecipeCardComponent_div_4_ng_template_7_Template(rf, ctx) {
|
|
11832
11853
|
if (rf & 1) {
|
|
11833
|
-
i0.ɵɵelement(0, "ng-miam-skeleton",
|
|
11854
|
+
i0.ɵɵelement(0, "ng-miam-skeleton", 36);
|
|
11834
11855
|
}
|
|
11835
11856
|
if (rf & 2) {
|
|
11836
|
-
var
|
|
11837
|
-
i0.ɵɵproperty("type",
|
|
11857
|
+
var ctx_r23 = i0.ɵɵnextContext(2);
|
|
11858
|
+
i0.ɵɵproperty("type", ctx_r23.skeleton.Text);
|
|
11838
11859
|
}
|
|
11839
11860
|
}
|
|
11840
11861
|
function CatalogRecipeCardComponent_div_4_ng_miam_like_button_10_Template(rf, ctx) {
|
|
11841
11862
|
if (rf & 1) {
|
|
11842
|
-
i0.ɵɵelement(0, "ng-miam-like-button",
|
|
11863
|
+
i0.ɵɵelement(0, "ng-miam-like-button", 37);
|
|
11843
11864
|
}
|
|
11844
11865
|
if (rf & 2) {
|
|
11845
|
-
var
|
|
11846
|
-
i0.ɵɵproperty("recipe",
|
|
11866
|
+
var ctx_r24 = i0.ɵɵnextContext(2);
|
|
11867
|
+
i0.ɵɵproperty("recipe", ctx_r24.recipe)("originTrace", ctx_r24.eventTrace());
|
|
11847
11868
|
}
|
|
11848
11869
|
}
|
|
11849
11870
|
function CatalogRecipeCardComponent_div_4_Template(rf, ctx) {
|
|
11850
11871
|
if (rf & 1) {
|
|
11851
|
-
var
|
|
11852
|
-
i0.ɵɵelementStart(0, "div",
|
|
11853
|
-
i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_4_Template_div_click_0_listener() { i0.ɵɵrestoreView(
|
|
11854
|
-
i0.ɵɵelementStart(1, "div",
|
|
11855
|
-
i0.ɵɵelement(2, "img",
|
|
11856
|
-
i0.ɵɵtemplate(3, CatalogRecipeCardComponent_div_4_div_3_Template, 2, 1, "div",
|
|
11857
|
-
i0.ɵɵelementEnd();
|
|
11858
|
-
i0.ɵɵtemplate(4, CatalogRecipeCardComponent_div_4_div_4_Template, 2, 3, "div",
|
|
11859
|
-
i0.ɵɵtemplate(5, CatalogRecipeCardComponent_div_4_ng_container_5_Template, 3, 3, "ng-container",
|
|
11860
|
-
i0.ɵɵtemplate(6, CatalogRecipeCardComponent_div_4_ng_container_6_Template, 3, 1, "ng-container",
|
|
11861
|
-
i0.ɵɵtemplate(7, CatalogRecipeCardComponent_div_4_ng_template_7_Template, 1, 1, "ng-template", null,
|
|
11862
|
-
i0.ɵɵelementStart(9, "div",
|
|
11863
|
-
i0.ɵɵtemplate(10, CatalogRecipeCardComponent_div_4_ng_miam_like_button_10_Template, 1, 2, "ng-miam-like-button",
|
|
11872
|
+
var _r30_1 = i0.ɵɵgetCurrentView();
|
|
11873
|
+
i0.ɵɵelementStart(0, "div", 19);
|
|
11874
|
+
i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_4_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r30_1); var ctx_r29 = i0.ɵɵnextContext(); return ctx_r29.openRecipe(); });
|
|
11875
|
+
i0.ɵɵelementStart(1, "div", 20);
|
|
11876
|
+
i0.ɵɵelement(2, "img", 21);
|
|
11877
|
+
i0.ɵɵtemplate(3, CatalogRecipeCardComponent_div_4_div_3_Template, 2, 1, "div", 22);
|
|
11878
|
+
i0.ɵɵelementEnd();
|
|
11879
|
+
i0.ɵɵtemplate(4, CatalogRecipeCardComponent_div_4_div_4_Template, 2, 3, "div", 23);
|
|
11880
|
+
i0.ɵɵtemplate(5, CatalogRecipeCardComponent_div_4_ng_container_5_Template, 3, 3, "ng-container", 22);
|
|
11881
|
+
i0.ɵɵtemplate(6, CatalogRecipeCardComponent_div_4_ng_container_6_Template, 3, 1, "ng-container", 9);
|
|
11882
|
+
i0.ɵɵtemplate(7, CatalogRecipeCardComponent_div_4_ng_template_7_Template, 1, 1, "ng-template", null, 24, i0.ɵɵtemplateRefExtractor);
|
|
11883
|
+
i0.ɵɵelementStart(9, "div", 25);
|
|
11884
|
+
i0.ɵɵtemplate(10, CatalogRecipeCardComponent_div_4_ng_miam_like_button_10_Template, 1, 2, "ng-miam-like-button", 26);
|
|
11864
11885
|
i0.ɵɵpipe(11, "async");
|
|
11865
|
-
i0.ɵɵelementStart(12, "div",
|
|
11866
|
-
i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_4_Template_div_click_12_listener($event) { i0.ɵɵrestoreView(
|
|
11867
|
-
i0.ɵɵelement(14, "ng-miam-icon",
|
|
11886
|
+
i0.ɵɵelementStart(12, "div", 27, 28);
|
|
11887
|
+
i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_4_Template_div_click_12_listener($event) { i0.ɵɵrestoreView(_r30_1); var ctx_r31 = i0.ɵɵnextContext(); return ctx_r31.toggleMoreActions($event); });
|
|
11888
|
+
i0.ɵɵelement(14, "ng-miam-icon", 29);
|
|
11868
11889
|
i0.ɵɵelementEnd();
|
|
11869
11890
|
i0.ɵɵelementEnd();
|
|
11870
11891
|
i0.ɵɵelementEnd();
|
|
11871
11892
|
}
|
|
11872
11893
|
if (rf & 2) {
|
|
11873
|
-
var
|
|
11894
|
+
var _r22 = i0.ɵɵreference(8);
|
|
11874
11895
|
var ctx_r0 = i0.ɵɵnextContext();
|
|
11875
11896
|
i0.ɵɵadvance(2);
|
|
11876
11897
|
i0.ɵɵproperty("src", ctx_r0.recipe.attributes["media-url"], i0.ɵɵsanitizeUrl);
|
|
@@ -11881,7 +11902,7 @@
|
|
|
11881
11902
|
i0.ɵɵadvance(1);
|
|
11882
11903
|
i0.ɵɵproperty("ngIf", ctx_r0.recipe && ctx_r0.displayAddedOnPicture);
|
|
11883
11904
|
i0.ɵɵadvance(1);
|
|
11884
|
-
i0.ɵɵproperty("ngIf", ctx_r0.recipe)("ngIfElse",
|
|
11905
|
+
i0.ɵɵproperty("ngIf", ctx_r0.recipe)("ngIfElse", _r22);
|
|
11885
11906
|
i0.ɵɵadvance(4);
|
|
11886
11907
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(11, 8, ctx_r0.userService.isLogged$));
|
|
11887
11908
|
i0.ɵɵadvance(4);
|
|
@@ -11890,7 +11911,7 @@
|
|
|
11890
11911
|
}
|
|
11891
11912
|
function CatalogRecipeCardComponent_ng_template_5_Template(rf, ctx) {
|
|
11892
11913
|
if (rf & 1) {
|
|
11893
|
-
i0.ɵɵelement(0, "ng-miam-skeleton",
|
|
11914
|
+
i0.ɵɵelement(0, "ng-miam-skeleton", 36);
|
|
11894
11915
|
}
|
|
11895
11916
|
if (rf & 2) {
|
|
11896
11917
|
var ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -11899,26 +11920,26 @@
|
|
|
11899
11920
|
}
|
|
11900
11921
|
function CatalogRecipeCardComponent_div_9_div_5_Template(rf, ctx) {
|
|
11901
11922
|
if (rf & 1) {
|
|
11902
|
-
i0.ɵɵelementStart(0, "div",
|
|
11923
|
+
i0.ɵɵelementStart(0, "div", 42);
|
|
11903
11924
|
i0.ɵɵtext(1);
|
|
11904
11925
|
i0.ɵɵelementEnd();
|
|
11905
11926
|
}
|
|
11906
11927
|
if (rf & 2) {
|
|
11907
|
-
var
|
|
11928
|
+
var ctx_r32 = i0.ɵɵnextContext(2);
|
|
11908
11929
|
i0.ɵɵadvance(1);
|
|
11909
|
-
i0.ɵɵtextInterpolate1(" + ",
|
|
11930
|
+
i0.ɵɵtextInterpolate1(" + ", ctx_r32.recipe.modifiedIngredients.length - 2, " ");
|
|
11910
11931
|
}
|
|
11911
11932
|
}
|
|
11912
11933
|
function CatalogRecipeCardComponent_div_9_Template(rf, ctx) {
|
|
11913
11934
|
if (rf & 1) {
|
|
11914
|
-
i0.ɵɵelementStart(0, "div",
|
|
11915
|
-
i0.ɵɵelementStart(1, "div",
|
|
11916
|
-
i0.ɵɵelement(2, "img",
|
|
11935
|
+
i0.ɵɵelementStart(0, "div", 38);
|
|
11936
|
+
i0.ɵɵelementStart(1, "div", 39);
|
|
11937
|
+
i0.ɵɵelement(2, "img", 40);
|
|
11917
11938
|
i0.ɵɵelementEnd();
|
|
11918
|
-
i0.ɵɵelementStart(3, "div",
|
|
11919
|
-
i0.ɵɵelement(4, "img",
|
|
11939
|
+
i0.ɵɵelementStart(3, "div", 39);
|
|
11940
|
+
i0.ɵɵelement(4, "img", 40);
|
|
11920
11941
|
i0.ɵɵelementEnd();
|
|
11921
|
-
i0.ɵɵtemplate(5, CatalogRecipeCardComponent_div_9_div_5_Template, 2, 1, "div",
|
|
11942
|
+
i0.ɵɵtemplate(5, CatalogRecipeCardComponent_div_9_div_5_Template, 2, 1, "div", 41);
|
|
11922
11943
|
i0.ɵɵelementEnd();
|
|
11923
11944
|
}
|
|
11924
11945
|
if (rf & 2) {
|
|
@@ -11933,17 +11954,17 @@
|
|
|
11933
11954
|
}
|
|
11934
11955
|
function CatalogRecipeCardComponent_div_10_ng_miam_recipe_pricing_1_Template(rf, ctx) {
|
|
11935
11956
|
if (rf & 1) {
|
|
11936
|
-
i0.ɵɵelement(0, "ng-miam-recipe-pricing",
|
|
11957
|
+
i0.ɵɵelement(0, "ng-miam-recipe-pricing", 45);
|
|
11937
11958
|
}
|
|
11938
11959
|
if (rf & 2) {
|
|
11939
|
-
var
|
|
11940
|
-
i0.ɵɵproperty("recipe",
|
|
11960
|
+
var ctx_r33 = i0.ɵɵnextContext(2);
|
|
11961
|
+
i0.ɵɵproperty("recipe", ctx_r33.recipe)("serves", ctx_r33.recipe == null ? null : ctx_r33.recipe.modifiedGuests);
|
|
11941
11962
|
}
|
|
11942
11963
|
}
|
|
11943
11964
|
function CatalogRecipeCardComponent_div_10_Template(rf, ctx) {
|
|
11944
11965
|
if (rf & 1) {
|
|
11945
|
-
i0.ɵɵelementStart(0, "div",
|
|
11946
|
-
i0.ɵɵtemplate(1, CatalogRecipeCardComponent_div_10_ng_miam_recipe_pricing_1_Template, 1, 2, "ng-miam-recipe-pricing",
|
|
11966
|
+
i0.ɵɵelementStart(0, "div", 43);
|
|
11967
|
+
i0.ɵɵtemplate(1, CatalogRecipeCardComponent_div_10_ng_miam_recipe_pricing_1_Template, 1, 2, "ng-miam-recipe-pricing", 44);
|
|
11947
11968
|
i0.ɵɵelementEnd();
|
|
11948
11969
|
}
|
|
11949
11970
|
if (rf & 2) {
|
|
@@ -11952,14 +11973,40 @@
|
|
|
11952
11973
|
i0.ɵɵproperty("ngIf", ctx_r4.isPriceDisplayed);
|
|
11953
11974
|
}
|
|
11954
11975
|
}
|
|
11976
|
+
function CatalogRecipeCardComponent_span_13_Template(rf, ctx) {
|
|
11977
|
+
if (rf & 1) {
|
|
11978
|
+
i0.ɵɵelementStart(0, "span");
|
|
11979
|
+
i0.ɵɵtext(1);
|
|
11980
|
+
i0.ɵɵpipe(2, "async");
|
|
11981
|
+
i0.ɵɵelementEnd();
|
|
11982
|
+
}
|
|
11983
|
+
if (rf & 2) {
|
|
11984
|
+
var ctx_r5 = i0.ɵɵnextContext();
|
|
11985
|
+
i0.ɵɵadvance(1);
|
|
11986
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r5.groceriesListsService.recipeIsInList(ctx_r5.recipe == null ? null : ctx_r5.recipe.id)) ? "Voir le d\u00E9tail" : "D\u00E9couvrir l'id\u00E9e repas", " ");
|
|
11987
|
+
}
|
|
11988
|
+
}
|
|
11989
|
+
function CatalogRecipeCardComponent_ng_template_14_Template(rf, ctx) {
|
|
11990
|
+
if (rf & 1) {
|
|
11991
|
+
i0.ɵɵelementStart(0, "span");
|
|
11992
|
+
i0.ɵɵtext(1);
|
|
11993
|
+
i0.ɵɵpipe(2, "async");
|
|
11994
|
+
i0.ɵɵelementEnd();
|
|
11995
|
+
}
|
|
11996
|
+
if (rf & 2) {
|
|
11997
|
+
var ctx_r7 = i0.ɵɵnextContext();
|
|
11998
|
+
i0.ɵɵadvance(1);
|
|
11999
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r7.groceriesListsService.recipeIsInList(ctx_r7.recipe == null ? null : ctx_r7.recipe.id)) ? "Voir le d\u00E9tail" : "Ajouter les ingr\u00E9dients", " ");
|
|
12000
|
+
}
|
|
12001
|
+
}
|
|
11955
12002
|
function CatalogRecipeCardComponent_ng_miam_icon_16_Template(rf, ctx) {
|
|
11956
12003
|
if (rf & 1) {
|
|
11957
|
-
i0.ɵɵelement(0, "ng-miam-icon",
|
|
12004
|
+
i0.ɵɵelement(0, "ng-miam-icon", 46);
|
|
11958
12005
|
i0.ɵɵpipe(1, "async");
|
|
11959
12006
|
}
|
|
11960
12007
|
if (rf & 2) {
|
|
11961
|
-
var
|
|
11962
|
-
i0.ɵɵproperty("width", 16)("height", 16)("iconName", i0.ɵɵpipeBind1(1, 3,
|
|
12008
|
+
var ctx_r8 = i0.ɵɵnextContext();
|
|
12009
|
+
i0.ɵɵproperty("width", 16)("height", 16)("iconName", i0.ɵɵpipeBind1(1, 3, ctx_r8.groceriesListsService.recipeIsInList(ctx_r8.recipe == null ? null : ctx_r8.recipe.id)) ? ctx_r8.icon.CheckList : ctx_r8.icon.Cart);
|
|
11963
12010
|
}
|
|
11964
12011
|
}
|
|
11965
12012
|
function CatalogRecipeCardComponent_ng_template_17_Template(rf, ctx) {
|
|
@@ -11969,98 +12016,98 @@
|
|
|
11969
12016
|
}
|
|
11970
12017
|
function CatalogRecipeCardComponent_div_20_Template(rf, ctx) {
|
|
11971
12018
|
if (rf & 1) {
|
|
11972
|
-
i0.ɵɵelementStart(0, "div",
|
|
11973
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
11974
|
-
i0.ɵɵelementStart(2, "span",
|
|
12019
|
+
i0.ɵɵelementStart(0, "div", 47);
|
|
12020
|
+
i0.ɵɵelement(1, "ng-miam-icon", 48);
|
|
12021
|
+
i0.ɵɵelementStart(2, "span", 49);
|
|
11975
12022
|
i0.ɵɵtext(3);
|
|
11976
12023
|
i0.ɵɵelementEnd();
|
|
11977
12024
|
i0.ɵɵelementEnd();
|
|
11978
12025
|
}
|
|
11979
12026
|
if (rf & 2) {
|
|
11980
|
-
var
|
|
12027
|
+
var ctx_r11 = i0.ɵɵnextContext();
|
|
11981
12028
|
i0.ɵɵadvance(1);
|
|
11982
|
-
i0.ɵɵproperty("iconName",
|
|
12029
|
+
i0.ɵɵproperty("iconName", ctx_r11.icon.Time);
|
|
11983
12030
|
i0.ɵɵadvance(2);
|
|
11984
|
-
i0.ɵɵtextInterpolate(
|
|
12031
|
+
i0.ɵɵtextInterpolate(ctx_r11.recipe == null ? null : ctx_r11.recipe.totalTime);
|
|
11985
12032
|
}
|
|
11986
12033
|
}
|
|
11987
12034
|
function CatalogRecipeCardComponent_div_21_ng_container_2_Template(rf, ctx) {
|
|
11988
12035
|
if (rf & 1) {
|
|
11989
12036
|
i0.ɵɵelementContainerStart(0);
|
|
11990
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
12037
|
+
i0.ɵɵelement(1, "ng-miam-icon", 54);
|
|
11991
12038
|
i0.ɵɵelementContainerEnd();
|
|
11992
12039
|
}
|
|
11993
12040
|
if (rf & 2) {
|
|
11994
|
-
var
|
|
12041
|
+
var ctx_r34 = i0.ɵɵnextContext(2);
|
|
11995
12042
|
i0.ɵɵadvance(1);
|
|
11996
|
-
i0.ɵɵproperty("width", 39)("height", 18)("iconName",
|
|
12043
|
+
i0.ɵɵproperty("width", 39)("height", 18)("iconName", ctx_r34.icon.DifficultyMedium);
|
|
11997
12044
|
}
|
|
11998
12045
|
}
|
|
11999
12046
|
function CatalogRecipeCardComponent_div_21_ng_container_3_Template(rf, ctx) {
|
|
12000
12047
|
if (rf & 1) {
|
|
12001
12048
|
i0.ɵɵelementContainerStart(0);
|
|
12002
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
12049
|
+
i0.ɵɵelement(1, "ng-miam-icon", 54);
|
|
12003
12050
|
i0.ɵɵelementContainerEnd();
|
|
12004
12051
|
}
|
|
12005
12052
|
if (rf & 2) {
|
|
12006
|
-
var
|
|
12053
|
+
var ctx_r35 = i0.ɵɵnextContext(2);
|
|
12007
12054
|
i0.ɵɵadvance(1);
|
|
12008
|
-
i0.ɵɵproperty("width", 60)("height", 18)("iconName",
|
|
12055
|
+
i0.ɵɵproperty("width", 60)("height", 18)("iconName", ctx_r35.icon.DifficultyHigh);
|
|
12009
12056
|
}
|
|
12010
12057
|
}
|
|
12011
12058
|
function CatalogRecipeCardComponent_div_21_ng_container_4_Template(rf, ctx) {
|
|
12012
12059
|
if (rf & 1) {
|
|
12013
12060
|
i0.ɵɵelementContainerStart(0);
|
|
12014
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
12061
|
+
i0.ɵɵelement(1, "ng-miam-icon", 54);
|
|
12015
12062
|
i0.ɵɵelementContainerEnd();
|
|
12016
12063
|
}
|
|
12017
12064
|
if (rf & 2) {
|
|
12018
|
-
var
|
|
12065
|
+
var ctx_r36 = i0.ɵɵnextContext(2);
|
|
12019
12066
|
i0.ɵɵadvance(1);
|
|
12020
|
-
i0.ɵɵproperty("width", 18)("height", 18)("iconName",
|
|
12067
|
+
i0.ɵɵproperty("width", 18)("height", 18)("iconName", ctx_r36.icon.DifficultyLow);
|
|
12021
12068
|
}
|
|
12022
12069
|
}
|
|
12023
12070
|
var _c1$6 = function (a0, a1, a2) { return { "easy": a0, "medium": a1, "hard": a2 }; };
|
|
12024
12071
|
function CatalogRecipeCardComponent_div_21_Template(rf, ctx) {
|
|
12025
12072
|
if (rf & 1) {
|
|
12026
|
-
i0.ɵɵelementStart(0, "div",
|
|
12027
|
-
i0.ɵɵelementContainerStart(1,
|
|
12028
|
-
i0.ɵɵtemplate(2, CatalogRecipeCardComponent_div_21_ng_container_2_Template, 2, 3, "ng-container",
|
|
12029
|
-
i0.ɵɵtemplate(3, CatalogRecipeCardComponent_div_21_ng_container_3_Template, 2, 3, "ng-container",
|
|
12030
|
-
i0.ɵɵtemplate(4, CatalogRecipeCardComponent_div_21_ng_container_4_Template, 2, 3, "ng-container",
|
|
12073
|
+
i0.ɵɵelementStart(0, "div", 50);
|
|
12074
|
+
i0.ɵɵelementContainerStart(1, 51);
|
|
12075
|
+
i0.ɵɵtemplate(2, CatalogRecipeCardComponent_div_21_ng_container_2_Template, 2, 3, "ng-container", 52);
|
|
12076
|
+
i0.ɵɵtemplate(3, CatalogRecipeCardComponent_div_21_ng_container_3_Template, 2, 3, "ng-container", 52);
|
|
12077
|
+
i0.ɵɵtemplate(4, CatalogRecipeCardComponent_div_21_ng_container_4_Template, 2, 3, "ng-container", 53);
|
|
12031
12078
|
i0.ɵɵelementContainerEnd();
|
|
12032
|
-
i0.ɵɵelementStart(5, "span",
|
|
12079
|
+
i0.ɵɵelementStart(5, "span", 49);
|
|
12033
12080
|
i0.ɵɵtext(6);
|
|
12034
12081
|
i0.ɵɵelementEnd();
|
|
12035
12082
|
i0.ɵɵelementEnd();
|
|
12036
12083
|
}
|
|
12037
12084
|
if (rf & 2) {
|
|
12038
|
-
var
|
|
12039
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(5, _c1$6, (
|
|
12085
|
+
var ctx_r12 = i0.ɵɵnextContext();
|
|
12086
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(5, _c1$6, (ctx_r12.recipe == null ? null : ctx_r12.recipe.difficulty) === 1, (ctx_r12.recipe == null ? null : ctx_r12.recipe.difficulty) === 2, (ctx_r12.recipe == null ? null : ctx_r12.recipe.difficulty) === 3));
|
|
12040
12087
|
i0.ɵɵadvance(1);
|
|
12041
|
-
i0.ɵɵproperty("ngSwitch",
|
|
12088
|
+
i0.ɵɵproperty("ngSwitch", ctx_r12.recipe == null ? null : ctx_r12.recipe.difficulty);
|
|
12042
12089
|
i0.ɵɵadvance(1);
|
|
12043
12090
|
i0.ɵɵproperty("ngSwitchCase", 2);
|
|
12044
12091
|
i0.ɵɵadvance(1);
|
|
12045
12092
|
i0.ɵɵproperty("ngSwitchCase", 3);
|
|
12046
12093
|
i0.ɵɵadvance(3);
|
|
12047
|
-
i0.ɵɵtextInterpolate(
|
|
12094
|
+
i0.ɵɵtextInterpolate(ctx_r12.recipeService.difficultyLabel(ctx_r12.recipe == null ? null : ctx_r12.recipe.difficulty));
|
|
12048
12095
|
}
|
|
12049
12096
|
}
|
|
12050
12097
|
function CatalogRecipeCardComponent_ng_template_22_Template(rf, ctx) {
|
|
12051
12098
|
if (rf & 1) {
|
|
12052
|
-
i0.ɵɵelement(0, "ng-miam-skeleton",
|
|
12099
|
+
i0.ɵɵelement(0, "ng-miam-skeleton", 36);
|
|
12053
12100
|
}
|
|
12054
12101
|
if (rf & 2) {
|
|
12055
|
-
var
|
|
12056
|
-
i0.ɵɵproperty("type",
|
|
12102
|
+
var ctx_r14 = i0.ɵɵnextContext();
|
|
12103
|
+
i0.ɵɵproperty("type", ctx_r14.skeleton == null ? null : ctx_r14.skeleton.IconWithInfo);
|
|
12057
12104
|
}
|
|
12058
12105
|
}
|
|
12059
12106
|
function CatalogRecipeCardComponent_ng_miam_actions_popin_24_Template(rf, ctx) {
|
|
12060
12107
|
if (rf & 1) {
|
|
12061
|
-
var
|
|
12062
|
-
i0.ɵɵelementStart(0, "ng-miam-actions-popin",
|
|
12063
|
-
i0.ɵɵlistener("close", function CatalogRecipeCardComponent_ng_miam_actions_popin_24_Template_ng_miam_actions_popin_close_0_listener() { i0.ɵɵrestoreView(
|
|
12108
|
+
var _r38_1 = i0.ɵɵgetCurrentView();
|
|
12109
|
+
i0.ɵɵelementStart(0, "ng-miam-actions-popin", 55);
|
|
12110
|
+
i0.ɵɵlistener("close", function CatalogRecipeCardComponent_ng_miam_actions_popin_24_Template_ng_miam_actions_popin_close_0_listener() { i0.ɵɵrestoreView(_r38_1); var ctx_r37 = i0.ɵɵnextContext(); return ctx_r37.closeMoreActions(); })("actionTriggered", function CatalogRecipeCardComponent_ng_miam_actions_popin_24_Template_ng_miam_actions_popin_actionTriggered_0_listener($event) { i0.ɵɵrestoreView(_r38_1); var ctx_r39 = i0.ɵɵnextContext(); return ctx_r39.actionTriggered.emit($event); });
|
|
12064
12111
|
i0.ɵɵelementEnd();
|
|
12065
12112
|
}
|
|
12066
12113
|
}
|
|
@@ -12171,7 +12218,7 @@
|
|
|
12171
12218
|
var _t;
|
|
12172
12219
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.moreActions = _t.first);
|
|
12173
12220
|
}
|
|
12174
|
-
}, inputs: { displayPricing: "displayPricing", displayAddedOnPicture: "displayAddedOnPicture" }, outputs: { actionTriggered: "actionTriggered" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 27, vars:
|
|
12221
|
+
}, inputs: { displayPricing: "displayPricing", displayAddedOnPicture: "displayAddedOnPicture" }, outputs: { actionTriggered: "actionTriggered" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 27, vars: 20, consts: [[1, "miam-catalog-recipe-card"], [1, "miam-catalog-recipe-card__header"], ["class", "miam-catalog-card__picture", 3, "click", 4, "ngIf", "ngIfElse"], ["pictSkeleton", ""], [1, "miam-catalog-card__attributes"], [1, "miam-catalog-recipe-card__attributes__control"], ["class", "miam-catalog-recipe-card__ingredients__pictures", 4, "ngIf"], ["class", "miam-catalog-recipe-card__right__col__price", 4, "ngIf"], [1, "m-button-primary", 3, "disabled", "ngClass", "click"], [4, "ngIf", "ngIfElse"], ["originalCTA", ""], [3, "width", "height", "iconName", 4, "ngIf", "ngIfElse"], ["addLoader", ""], [1, "miam-catalog-card__attributes__infos"], ["class", "miam-catalog-card__attributes__info recipe__total__time", 4, "ngIf", "ngIfElse"], ["class", "miam-catalog-card__attributes__info recipe__difficulty", 3, "ngClass", 4, "ngIf"], ["skeletonInfo", ""], [3, "close", "actionTriggered", 4, "ngIf"], ["cors", ""], [1, "miam-catalog-card__picture", 3, "click"], [1, "miam-catalog-card__picture__gradient"], ["loading", "lazy", 1, "miam-catalog-card__picture__img", 3, "src"], [4, "ngIf"], ["class", "miam-catalog-recipe-card__picture__video", 4, "ngIf"], ["textSkeleton", ""], [1, "miam-catalog-recipe-card__picture__actions"], ["width", "17", "height", "17", "class", "miam-catalog-recipe-card__actions__icon", 3, "recipe", "originTrace", 4, "ngIf"], [1, "miam-catalog-recipe-card__actions__icon", 3, "click"], ["miamMoreActions", ""], ["primaryColor", "var(--m-color-primary)", 3, "iconName"], [1, "miam-catalog-card__picture__sponsor", 3, "src"], [1, "miam-catalog-recipe-card__picture__video"], ["primaryColor", "black", 3, "iconName", "width", "height"], ["class", "miam-catalog-recipe-card__picture__tag", 4, "ngIf"], [1, "miam-catalog-recipe-card__picture__tag"], [1, "miam-catalog-recipe-card__attributes__title", 3, "click"], [3, "type"], ["width", "17", "height", "17", 1, "miam-catalog-recipe-card__actions__icon", 3, "recipe", "originTrace"], [1, "miam-catalog-recipe-card__ingredients__pictures"], [1, "miam-catalog-recipe-card__ingredients__picture"], [3, "src"], ["class", "miam-catalog-recipe-card__ingredients__more", 4, "ngIf"], [1, "miam-catalog-recipe-card__ingredients__more"], [1, "miam-catalog-recipe-card__right__col__price"], [3, "recipe", "serves", 4, "ngIf"], [3, "recipe", "serves"], [3, "width", "height", "iconName"], [1, "miam-catalog-card__attributes__info", "recipe__total__time"], ["width", "18", "height", "18", "primaryColor", "var(--m-catalog-card-details-color)", 3, "iconName"], [1, "miam-catalog-card__info__label"], [1, "miam-catalog-card__attributes__info", "recipe__difficulty", 3, "ngClass"], [3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], ["primaryColor", "var(--m-catalog-card-details-color)", 3, "width", "height", "iconName"], [3, "close", "actionTriggered"]], template: function CatalogRecipeCardComponent_Template(rf, ctx) {
|
|
12175
12222
|
if (rf & 1) {
|
|
12176
12223
|
i0.ɵɵelementStart(0, "div", 0);
|
|
12177
12224
|
i0.ɵɵelementStart(1, "div", 1);
|
|
@@ -12188,28 +12235,27 @@
|
|
|
12188
12235
|
i0.ɵɵelementStart(11, "button", 8);
|
|
12189
12236
|
i0.ɵɵlistener("click", function CatalogRecipeCardComponent_Template_button_click_11_listener() { return ctx.clickPrimary(); });
|
|
12190
12237
|
i0.ɵɵpipe(12, "async");
|
|
12191
|
-
i0.ɵɵ
|
|
12192
|
-
i0.ɵɵ
|
|
12193
|
-
i0.ɵɵ
|
|
12194
|
-
i0.ɵɵ
|
|
12195
|
-
i0.ɵɵtemplate(16, CatalogRecipeCardComponent_ng_miam_icon_16_Template, 2, 5, "ng-miam-icon", 9);
|
|
12196
|
-
i0.ɵɵtemplate(17, CatalogRecipeCardComponent_ng_template_17_Template, 1, 0, "ng-template", null, 10, i0.ɵɵtemplateRefExtractor);
|
|
12238
|
+
i0.ɵɵtemplate(13, CatalogRecipeCardComponent_span_13_Template, 3, 3, "span", 9);
|
|
12239
|
+
i0.ɵɵtemplate(14, CatalogRecipeCardComponent_ng_template_14_Template, 3, 3, "ng-template", null, 10, i0.ɵɵtemplateRefExtractor);
|
|
12240
|
+
i0.ɵɵtemplate(16, CatalogRecipeCardComponent_ng_miam_icon_16_Template, 2, 5, "ng-miam-icon", 11);
|
|
12241
|
+
i0.ɵɵtemplate(17, CatalogRecipeCardComponent_ng_template_17_Template, 1, 0, "ng-template", null, 12, i0.ɵɵtemplateRefExtractor);
|
|
12197
12242
|
i0.ɵɵelementEnd();
|
|
12198
12243
|
i0.ɵɵelementEnd();
|
|
12199
|
-
i0.ɵɵelementStart(19, "div",
|
|
12200
|
-
i0.ɵɵtemplate(20, CatalogRecipeCardComponent_div_20_Template, 4, 2, "div",
|
|
12201
|
-
i0.ɵɵtemplate(21, CatalogRecipeCardComponent_div_21_Template, 7, 9, "div",
|
|
12202
|
-
i0.ɵɵtemplate(22, CatalogRecipeCardComponent_ng_template_22_Template, 1, 1, "ng-template", null,
|
|
12244
|
+
i0.ɵɵelementStart(19, "div", 13);
|
|
12245
|
+
i0.ɵɵtemplate(20, CatalogRecipeCardComponent_div_20_Template, 4, 2, "div", 14);
|
|
12246
|
+
i0.ɵɵtemplate(21, CatalogRecipeCardComponent_div_21_Template, 7, 9, "div", 15);
|
|
12247
|
+
i0.ɵɵtemplate(22, CatalogRecipeCardComponent_ng_template_22_Template, 1, 1, "ng-template", null, 16, i0.ɵɵtemplateRefExtractor);
|
|
12203
12248
|
i0.ɵɵelementEnd();
|
|
12204
12249
|
i0.ɵɵelementEnd();
|
|
12205
|
-
i0.ɵɵtemplate(24, CatalogRecipeCardComponent_ng_miam_actions_popin_24_Template, 1, 0, "ng-miam-actions-popin",
|
|
12250
|
+
i0.ɵɵtemplate(24, CatalogRecipeCardComponent_ng_miam_actions_popin_24_Template, 1, 0, "ng-miam-actions-popin", 17);
|
|
12206
12251
|
i0.ɵɵelementEnd();
|
|
12207
|
-
i0.ɵɵtemplate(25, CatalogRecipeCardComponent_ng_template_25_Template, 1, 0, "ng-template", null,
|
|
12252
|
+
i0.ɵɵtemplate(25, CatalogRecipeCardComponent_ng_template_25_Template, 1, 0, "ng-template", null, 18, i0.ɵɵtemplateRefExtractor);
|
|
12208
12253
|
}
|
|
12209
12254
|
if (rf & 2) {
|
|
12210
12255
|
var _r1 = i0.ɵɵreference(6);
|
|
12211
|
-
var _r6 = i0.ɵɵreference(
|
|
12212
|
-
var
|
|
12256
|
+
var _r6 = i0.ɵɵreference(15);
|
|
12257
|
+
var _r9 = i0.ɵɵreference(18);
|
|
12258
|
+
var _r13 = i0.ɵɵreference(23);
|
|
12213
12259
|
i0.ɵɵadvance(3);
|
|
12214
12260
|
i0.ɵɵtextInterpolate1(" ", ctx.headerText, "");
|
|
12215
12261
|
i0.ɵɵadvance(1);
|
|
@@ -12219,13 +12265,13 @@
|
|
|
12219
12265
|
i0.ɵɵadvance(1);
|
|
12220
12266
|
i0.ɵɵproperty("ngIf", ctx.recipe && ctx.displayPricing);
|
|
12221
12267
|
i0.ɵɵadvance(1);
|
|
12222
|
-
i0.ɵɵproperty("disabled", !ctx.recipe)("ngClass", i0.ɵɵpureFunction2(
|
|
12223
|
-
i0.ɵɵadvance(3);
|
|
12224
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(15, 16, ctx.groceriesListsService.recipeIsInList(ctx.recipe == null ? null : ctx.recipe.id)) ? "Voir le d\u00E9tail" : "Ajouter les ingr\u00E9dients", " ");
|
|
12268
|
+
i0.ɵɵproperty("disabled", !ctx.recipe)("ngClass", i0.ɵɵpureFunction2(17, _c2$1, ctx.addButtonLoading, i0.ɵɵpipeBind1(12, 15, ctx.groceriesListsService.recipeIsInList(ctx.recipe == null ? null : ctx.recipe.id))));
|
|
12225
12269
|
i0.ɵɵadvance(2);
|
|
12226
|
-
i0.ɵɵproperty("ngIf", !ctx.
|
|
12270
|
+
i0.ɵɵproperty("ngIf", ctx.recipeService.recipesPrimaryButtonActions.display && !ctx.recipeService.recipesPrimaryButtonActions.addToBasket)("ngIfElse", _r6);
|
|
12271
|
+
i0.ɵɵadvance(3);
|
|
12272
|
+
i0.ɵɵproperty("ngIf", !ctx.addButtonLoading)("ngIfElse", _r9);
|
|
12227
12273
|
i0.ɵɵadvance(4);
|
|
12228
|
-
i0.ɵɵproperty("ngIf", ctx.recipe)("ngIfElse",
|
|
12274
|
+
i0.ɵɵproperty("ngIf", ctx.recipe)("ngIfElse", _r13);
|
|
12229
12275
|
i0.ɵɵadvance(1);
|
|
12230
12276
|
i0.ɵɵproperty("ngIf", ctx.recipe);
|
|
12231
12277
|
i0.ɵɵadvance(3);
|