ng-miam 3.7.2 → 3.9.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 +2183 -1668
- 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/addon-link/addon-link.component.js +14 -11
- package/esm2015/lib/_components/counter-input/counter-input.component.js +1 -8
- package/esm2015/lib/_components/icon/icon.component.js +605 -406
- package/esm2015/lib/_components/like-button/like-button.component.js +1 -1
- package/esm2015/lib/_components/recipe-filters/recipe-filters.component.js +7 -6
- package/esm2015/lib/_components/recipe-pricing/recipe-pricing.component.js +9 -4
- package/esm2015/lib/_services/baskets.service.js +7 -3
- package/esm2015/lib/_services/context.service.js +14 -1
- package/esm2015/lib/_services/groceries-lists.service.js +6 -3
- package/esm2015/lib/_services/recipes.service.js +7 -3
- package/esm2015/lib/_types/icon.enum.js +5 -2
- package/esm2015/lib/_web-components/basket-preview/basket-preview-line/basket-preview-line.component.js +3 -3
- package/esm2015/lib/_web-components/catalog-recipe-card/catalog-recipe-card.component.js +3 -3
- package/esm2015/lib/_web-components/drawer/drawer.component.js +9 -8
- package/esm2015/lib/_web-components/index.js +3 -4
- package/esm2015/lib/_web-components/list-scan/basket-preview/basket-preview.component.js +57 -52
- package/esm2015/lib/_web-components/list-scan/files-inputs/files-inputs.component.js +142 -0
- package/esm2015/lib/_web-components/list-scan/ingredients-list/ingredients-list.component.js +47 -53
- package/esm2015/lib/_web-components/list-scan/list-scan.component.js +56 -27
- package/esm2015/lib/_web-components/list-scan/list-scan.module.js +13 -6
- package/esm2015/lib/_web-components/modal/index.js +3 -0
- package/esm2015/lib/_web-components/modal/modal.component.js +18 -15
- package/esm2015/lib/_web-components/modal/modal.module.js +43 -0
- package/esm2015/lib/_web-components/order-button/order-button.component.js +1 -1
- package/esm2015/lib/_web-components/recipe-card/recipe-card.component.js +5 -5
- package/esm2015/lib/_web-components/recipe-details/index.js +7 -0
- package/esm2015/lib/_web-components/{recipe-addon → recipe-details/recipe-addon}/recipe-addon.component.js +5 -5
- package/esm2015/lib/_web-components/recipe-details/recipe-details-infos/recipe-details-infos.component.js +248 -0
- package/esm2015/lib/_web-components/recipe-details/recipe-details-ingredients/recipe-details-ingredients.component.js +108 -0
- package/esm2015/lib/_web-components/recipe-details/recipe-details-steps/recipe-details-steps.component.js +101 -0
- package/esm2015/lib/_web-components/recipe-details/recipe-details.component.js +179 -619
- package/esm2015/lib/_web-components/recipe-details/recipe-details.module.js +86 -0
- package/esm2015/lib/_web-components/recipe-form/recipe-form.component.js +2 -2
- package/esm2015/lib/_web-components/recipe-helper/recipe-helper.component.js +7 -6
- package/esm2015/lib/_web-components/recipe-modal/recipe-modal.component.js +22 -38
- package/esm2015/lib/_web-components/web-components.module.js +60 -65
- package/fesm2015/ng-miam.js +1892 -1420
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_components/counter-input/counter-input.component.d.ts +0 -1
- package/lib/_components/recipe-filters/recipe-filters.component.d.ts +3 -2
- package/lib/_components/recipe-pricing/recipe-pricing.component.d.ts +2 -1
- package/lib/_services/baskets.service.d.ts +1 -0
- package/lib/_services/context.service.d.ts +6 -0
- package/lib/_services/groceries-lists.service.d.ts +1 -1
- package/lib/_types/icon.enum.d.ts +5 -2
- package/lib/_web-components/drawer/drawer.component.d.ts +3 -2
- package/lib/_web-components/index.d.ts +2 -3
- package/lib/_web-components/list-scan/basket-preview/basket-preview.component.d.ts +2 -2
- package/lib/_web-components/list-scan/files-inputs/files-inputs.component.d.ts +21 -0
- package/lib/_web-components/list-scan/ingredients-list/ingredients-list.component.d.ts +1 -2
- package/lib/_web-components/list-scan/list-scan.component.d.ts +5 -2
- package/lib/_web-components/list-scan/list-scan.module.d.ts +8 -6
- package/lib/_web-components/modal/index.d.ts +2 -0
- package/lib/_web-components/modal/modal.component.d.ts +3 -1
- package/lib/_web-components/modal/modal.module.d.ts +11 -0
- package/lib/_web-components/recipe-details/index.d.ts +6 -0
- package/lib/_web-components/{recipe-addon → recipe-details/recipe-addon}/recipe-addon.component.d.ts +2 -2
- package/lib/_web-components/recipe-details/recipe-details-infos/recipe-details-infos.component.d.ts +24 -0
- package/lib/_web-components/recipe-details/recipe-details-ingredients/recipe-details-ingredients.component.d.ts +18 -0
- package/lib/_web-components/recipe-details/recipe-details-steps/recipe-details-steps.component.d.ts +16 -0
- package/lib/_web-components/recipe-details/recipe-details.component.d.ts +16 -23
- package/lib/_web-components/recipe-details/recipe-details.module.d.ts +18 -0
- package/lib/_web-components/recipe-helper/recipe-helper.component.d.ts +3 -2
- package/lib/_web-components/recipe-modal/recipe-modal.component.d.ts +0 -3
- package/lib/_web-components/web-components.module.d.ts +38 -39
- package/package.json +1 -1
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { Component, ViewEncapsulation, ChangeDetectionStrategy, Input, ChangeDetectorRef, Output, EventEmitter } from '@angular/core';
|
|
2
|
+
import { Recipe } from '../../../_models/recipe';
|
|
3
|
+
import { ContextService } from '../../../_services';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../../../_services";
|
|
6
|
+
import * as i2 from "../../../_components/counter-input/counter-input.component";
|
|
7
|
+
import * as i3 from "@angular/common";
|
|
8
|
+
import * as i4 from "../../../_utils/pipes/capitalize-first-letter/capitalize-first-letter.pipe";
|
|
9
|
+
import * as i5 from "../../../_utils/pipes/readable-float-number/readable-float-number.pipe";
|
|
10
|
+
function RecipeDetailsIngredientsComponent_div_9_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
11
|
+
i0.ɵɵelementStart(0, "div");
|
|
12
|
+
i0.ɵɵelement(1, "img", 10);
|
|
13
|
+
i0.ɵɵelementEnd();
|
|
14
|
+
} if (rf & 2) {
|
|
15
|
+
const ingredient_r1 = i0.ɵɵnextContext().$implicit;
|
|
16
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
17
|
+
i0.ɵɵadvance(1);
|
|
18
|
+
i0.ɵɵproperty("src", ctx_r3.ingredientPicture(ingredient_r1), i0.ɵɵsanitizeUrl);
|
|
19
|
+
} }
|
|
20
|
+
const _c0 = function (a0) { return { "checked": a0 }; };
|
|
21
|
+
function RecipeDetailsIngredientsComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
22
|
+
i0.ɵɵelementStart(0, "div", 7);
|
|
23
|
+
i0.ɵɵtemplate(1, RecipeDetailsIngredientsComponent_div_9_div_1_Template, 2, 1, "div", 8);
|
|
24
|
+
i0.ɵɵelementStart(2, "div");
|
|
25
|
+
i0.ɵɵtext(3);
|
|
26
|
+
i0.ɵɵpipe(4, "capitalizeFirstLetter");
|
|
27
|
+
i0.ɵɵelementEnd();
|
|
28
|
+
i0.ɵɵelementStart(5, "div", 9);
|
|
29
|
+
i0.ɵɵtext(6);
|
|
30
|
+
i0.ɵɵpipe(7, "readableFloatNumber");
|
|
31
|
+
i0.ɵɵelementEnd();
|
|
32
|
+
i0.ɵɵelementEnd();
|
|
33
|
+
} if (rf & 2) {
|
|
34
|
+
const ingredient_r1 = ctx.$implicit;
|
|
35
|
+
const i_r2 = ctx.index;
|
|
36
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
37
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0, ctx_r0.ingredientsChecked[i_r2]));
|
|
38
|
+
i0.ɵɵadvance(1);
|
|
39
|
+
i0.ɵɵproperty("ngIf", ctx_r0.ingredientsPictures);
|
|
40
|
+
i0.ɵɵadvance(2);
|
|
41
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 4, ingredient_r1.name), "");
|
|
42
|
+
i0.ɵɵadvance(3);
|
|
43
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(7, 6, ingredient_r1.qty, ingredient_r1.unit), " ");
|
|
44
|
+
} }
|
|
45
|
+
export class RecipeDetailsIngredientsComponent {
|
|
46
|
+
constructor(cdr, contextService) {
|
|
47
|
+
this.cdr = cdr;
|
|
48
|
+
this.contextService = contextService;
|
|
49
|
+
this.ingredientsPictures = false;
|
|
50
|
+
this.recipeChanged = new EventEmitter();
|
|
51
|
+
this.ingredientsChecked = {};
|
|
52
|
+
}
|
|
53
|
+
updateGuests(guests) {
|
|
54
|
+
this.recipe.modifiedGuests = guests;
|
|
55
|
+
this.recipeChanged.emit();
|
|
56
|
+
this.cdr.detectChanges();
|
|
57
|
+
}
|
|
58
|
+
ingredientPicture(ingredient) {
|
|
59
|
+
return ingredient.picture || this.contextService.defaultIngredientPicture;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
RecipeDetailsIngredientsComponent.ɵfac = function RecipeDetailsIngredientsComponent_Factory(t) { return new (t || RecipeDetailsIngredientsComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1.ContextService)); };
|
|
63
|
+
RecipeDetailsIngredientsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeDetailsIngredientsComponent, selectors: [["ng-miam-recipe-details-ingredients"]], inputs: { recipe: "recipe", ingredientsPictures: "ingredientsPictures" }, outputs: { recipeChanged: "recipeChanged" }, decls: 10, vars: 5, consts: [[1, "miam-recipe-details-ingredients"], [1, "miam-recipe-details-ingredients__header"], [1, "miam-recipe-details-ingredients__counter"], [3, "counter", "counterChange"], [1, "miam-recipe-details-ingredients__counter__print"], [1, "miam-recipe-details-ingredients__list"], ["class", "miam-recipe-details-ingredients__row", 3, "ngClass", 4, "ngFor", "ngForOf"], [1, "miam-recipe-details-ingredients__row", 3, "ngClass"], [4, "ngIf"], [1, "miam-recipe-details-ingredients__row__qty"], [1, "miam-recipe-details-ingredients__row__picture", 3, "src"]], template: function RecipeDetailsIngredientsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
64
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
65
|
+
i0.ɵɵelementStart(1, "div", 1);
|
|
66
|
+
i0.ɵɵelementStart(2, "span");
|
|
67
|
+
i0.ɵɵtext(3);
|
|
68
|
+
i0.ɵɵelementEnd();
|
|
69
|
+
i0.ɵɵelementStart(4, "div", 2);
|
|
70
|
+
i0.ɵɵelementStart(5, "ng-miam-counter-input", 3);
|
|
71
|
+
i0.ɵɵlistener("counterChange", function RecipeDetailsIngredientsComponent_Template_ng_miam_counter_input_counterChange_5_listener($event) { return ctx.updateGuests($event); });
|
|
72
|
+
i0.ɵɵelementEnd();
|
|
73
|
+
i0.ɵɵelementStart(6, "span", 4);
|
|
74
|
+
i0.ɵɵtext(7);
|
|
75
|
+
i0.ɵɵelementEnd();
|
|
76
|
+
i0.ɵɵelementEnd();
|
|
77
|
+
i0.ɵɵelementEnd();
|
|
78
|
+
i0.ɵɵelementStart(8, "div", 5);
|
|
79
|
+
i0.ɵɵtemplate(9, RecipeDetailsIngredientsComponent_div_9_Template, 8, 11, "div", 6);
|
|
80
|
+
i0.ɵɵelementEnd();
|
|
81
|
+
i0.ɵɵelementEnd();
|
|
82
|
+
} if (rf & 2) {
|
|
83
|
+
i0.ɵɵadvance(3);
|
|
84
|
+
i0.ɵɵtextInterpolate2(" ", ctx.recipe == null ? null : ctx.recipe.modifiedIngredients.length, " ingr\u00E9dient", (ctx.recipe == null ? null : ctx.recipe.modifiedIngredients.length) > 1 ? "s" : "", " ");
|
|
85
|
+
i0.ɵɵadvance(2);
|
|
86
|
+
i0.ɵɵproperty("counter", (ctx.recipe == null ? null : ctx.recipe.modifiedGuests) || ctx.recipe.guests);
|
|
87
|
+
i0.ɵɵadvance(2);
|
|
88
|
+
i0.ɵɵtextInterpolate1(" Pour ", ctx.recipe == null ? null : ctx.recipe.modifiedGuests, " personnes ");
|
|
89
|
+
i0.ɵɵadvance(2);
|
|
90
|
+
i0.ɵɵproperty("ngForOf", ctx.recipe == null ? null : ctx.recipe.modifiedIngredients);
|
|
91
|
+
} }, directives: [i2.CounterInputComponent, i3.NgForOf, i3.NgClass, i3.NgIf], pipes: [i4.CapitalizeFirstLetterPipe, i5.ReadableFloatNumberPipe], styles: [".miam-recipe-details-ingredients{display:flex;flex-direction:column}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header{border-bottom:1px solid var(--m-color-grey07);display:flex;flex-direction:row;justify-content:space-between;margin-bottom:16px;padding-bottom:12px}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header span{color:var(--m-color-primary);font-size:21px;font-weight:700;line-height:24px}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header .miam-recipe-details-ingredients__counter{align-items:center;display:flex}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header .miam-recipe-details-ingredients__counter ng-miam-counter-input .miam-counter-input__icon{margin-right:16px}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header .miam-recipe-details-ingredients__counter .miam-recipe-details-ingredients__counter__print{display:none}@media print{.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header .miam-recipe-details-ingredients__counter ng-miam-counter-input{display:none}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header .miam-recipe-details-ingredients__counter .miam-recipe-details-ingredients__counter__print{display:block}}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__list{background-color:var(--m-color-primary-light);border-radius:8px;display:flex;flex-direction:column;padding:4px 16px}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__row{color:var(--m-color-black);display:flex;font-size:16px;justify-content:space-between;line-height:20px;padding:12px 0}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__row .miam-recipe-details-ingredients__row__qty{font-weight:700}"], encapsulation: 2, changeDetection: 0 });
|
|
92
|
+
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(RecipeDetailsIngredientsComponent, [{
|
|
93
|
+
type: Component,
|
|
94
|
+
args: [{
|
|
95
|
+
selector: 'ng-miam-recipe-details-ingredients',
|
|
96
|
+
templateUrl: './recipe-details-ingredients.component.html',
|
|
97
|
+
styleUrls: ['./recipe-details-ingredients.component.scss'],
|
|
98
|
+
encapsulation: ViewEncapsulation.None,
|
|
99
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
100
|
+
}]
|
|
101
|
+
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.ContextService }]; }, { recipe: [{
|
|
102
|
+
type: Input
|
|
103
|
+
}], ingredientsPictures: [{
|
|
104
|
+
type: Input
|
|
105
|
+
}], recipeChanged: [{
|
|
106
|
+
type: Output
|
|
107
|
+
}] }); })();
|
|
108
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjaXBlLWRldGFpbHMtaW5ncmVkaWVudHMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Ii9idWlsZHMvbWlhbS9uZy1taWFtLXNkay9wcm9qZWN0cy9uZy1taWFtL3NyYy8iLCJzb3VyY2VzIjpbImxpYi9fd2ViLWNvbXBvbmVudHMvcmVjaXBlLWRldGFpbHMvcmVjaXBlLWRldGFpbHMtaW5ncmVkaWVudHMvcmVjaXBlLWRldGFpbHMtaW5ncmVkaWVudHMuY29tcG9uZW50LnRzIiwibGliL193ZWItY29tcG9uZW50cy9yZWNpcGUtZGV0YWlscy9yZWNpcGUtZGV0YWlscy1pbmdyZWRpZW50cy9yZWNpcGUtZGV0YWlscy1pbmdyZWRpZW50cy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLGlCQUFpQixFQUFFLHVCQUF1QixFQUFFLEtBQUssRUFBRSxpQkFBaUIsRUFBRSxNQUFNLEVBQUUsWUFBWSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3RJLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUNqRCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sb0JBQW9CLENBQUM7Ozs7Ozs7O0lDbUI5QywyQkFDRTtJQUFBLDBCQUNGO0lBQUEsaU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A8L2Rpdj5cbiAgPCEtLSBMSVNUIC0tPlxuICA8ZGl2IGNsYXNzPVwibWlhbS1yZWNpcGUtZGV0YWlscy1pbmdyZWRpZW50c19fbGlzdFwiPlxuICAgIDxkaXYgY2xhc3M9XCJtaWFtLXJlY2lwZS1kZXRhaWxzLWluZ3JlZGllbnRzX19yb3dcIiBbbmdDbGFzc109XCJ7J2NoZWNrZWQnOiBpbmdyZWRpZW50c0NoZWNrZWRbaV19XCJcbiAgICAgICpuZ0Zvcj1cImxldCBpbmdyZWRpZW50IG9mIHJlY2lwZT8ubW9kaWZpZWRJbmdyZWRpZW50cywgbGV0IGkgPSBpbmRleCBcIj5cbiAgICAgIDwhLS0gUElDVFVSRSAtLT5cbiAgICAgIDxkaXYgKm5nSWY9XCJpbmdyZWRpZW50c1BpY3R1cmVzXCI+XG4gICAgICAgIDxpbWcgY2xhc3M9XCJtaWFtLXJlY2lwZS1kZXRhaWxzLWluZ3JlZGllbnRzX19yb3dfX3BpY3R1cmVcIiBbc3JjXT1cImluZ3JlZGllbnRQaWN0dXJlKGluZ3JlZGllbnQpXCI+XG4gICAgICA8L2Rpdj5cbiAgICAgIDwhLS0gTkFNRSAtLT5cbiAgICAgIDxkaXY+IHt7IGluZ3JlZGllbnQubmFtZSB8IGNhcGl0YWxpemVGaXJzdExldHRlcn19PC9kaXY+XG4gICAgICA8IS0tIFFVQU5USVRZIC0tPlxuICAgICAgPGRpdiBjbGFzcz1cIm1pYW0tcmVjaXBlLWRldGFpbHMtaW5ncmVkaWVudHNfX3Jvd19fcXR5XCI+XG4gICAgICAgIHt7IGluZ3JlZGllbnQucXR5IHwgcmVhZGFibGVGbG9hdE51bWJlciA6IGluZ3JlZGllbnQudW5pdCB9fVxuICAgICAgPC9kaXY+XG4gICAgPC9kaXY+XG4gIDwvZGl2PlxuPC9kaXY+Il19
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { Component, ViewEncapsulation, ChangeDetectionStrategy, Input, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { Recipe } from '../../../_models/recipe';
|
|
3
|
+
import { Icon } from '../../../_types/icon.enum';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/common";
|
|
6
|
+
import * as i2 from "../../../_components/icon/icon.component";
|
|
7
|
+
function RecipeDetailsStepsComponent_div_5_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
8
|
+
i0.ɵɵelementStart(0, "div", 9);
|
|
9
|
+
i0.ɵɵelementStart(1, "span");
|
|
10
|
+
i0.ɵɵtext(2);
|
|
11
|
+
i0.ɵɵelementEnd();
|
|
12
|
+
i0.ɵɵelementEnd();
|
|
13
|
+
} if (rf & 2) {
|
|
14
|
+
const i_r2 = i0.ɵɵnextContext().index;
|
|
15
|
+
i0.ɵɵadvance(2);
|
|
16
|
+
i0.ɵɵtextInterpolate1(" ", i_r2 + 1, " ");
|
|
17
|
+
} }
|
|
18
|
+
function RecipeDetailsStepsComponent_div_5_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
19
|
+
i0.ɵɵelement(0, "ng-miam-icon", 10);
|
|
20
|
+
} if (rf & 2) {
|
|
21
|
+
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
22
|
+
i0.ɵɵproperty("height", 32)("width", 32)("iconName", ctx_r5.icon.CheckCircleFill);
|
|
23
|
+
} }
|
|
24
|
+
const _c0 = function (a0, a1) { return { "active": a0, "miam-recipe-details-steps__step__done": a1 }; };
|
|
25
|
+
function RecipeDetailsStepsComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
26
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
27
|
+
i0.ɵɵelementStart(0, "div", 4);
|
|
28
|
+
i0.ɵɵlistener("click", function RecipeDetailsStepsComponent_div_5_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r8); const i_r2 = ctx.index; const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.changeActiveStep(i_r2 + 1); });
|
|
29
|
+
i0.ɵɵtemplate(1, RecipeDetailsStepsComponent_div_5_div_1_Template, 3, 1, "div", 5);
|
|
30
|
+
i0.ɵɵtemplate(2, RecipeDetailsStepsComponent_div_5_ng_template_2_Template, 1, 3, "ng-template", null, 6, i0.ɵɵtemplateRefExtractor);
|
|
31
|
+
i0.ɵɵelementStart(4, "div", 7);
|
|
32
|
+
i0.ɵɵtext(5);
|
|
33
|
+
i0.ɵɵelementEnd();
|
|
34
|
+
i0.ɵɵelement(6, "ng-miam-icon", 8);
|
|
35
|
+
i0.ɵɵelementEnd();
|
|
36
|
+
} if (rf & 2) {
|
|
37
|
+
const step_r1 = ctx.$implicit;
|
|
38
|
+
const i_r2 = ctx.index;
|
|
39
|
+
const _r4 = i0.ɵɵreference(3);
|
|
40
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
41
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(7, _c0, i_r2 + 1 === ctx_r0.activeStep, i_r2 < ctx_r0.activeStep));
|
|
42
|
+
i0.ɵɵadvance(1);
|
|
43
|
+
i0.ɵɵproperty("ngIf", i_r2 >= ctx_r0.activeStep)("ngIfElse", _r4);
|
|
44
|
+
i0.ɵɵadvance(4);
|
|
45
|
+
i0.ɵɵtextInterpolate(step_r1 == null ? null : step_r1.attributes == null ? null : step_r1.attributes.description);
|
|
46
|
+
i0.ɵɵadvance(1);
|
|
47
|
+
i0.ɵɵproperty("height", 20)("width", 20)("iconName", i_r2 < ctx_r0.activeStep ? ctx_r0.icon.CheckboxChecked : ctx_r0.icon.CheckboxUnchecked);
|
|
48
|
+
} }
|
|
49
|
+
export class RecipeDetailsStepsComponent {
|
|
50
|
+
constructor(cdr) {
|
|
51
|
+
this.cdr = cdr;
|
|
52
|
+
this.steps = [];
|
|
53
|
+
this.activeStep = 0;
|
|
54
|
+
this.icon = Icon;
|
|
55
|
+
}
|
|
56
|
+
ngOnChanges() {
|
|
57
|
+
if (this.recipe) {
|
|
58
|
+
this.steps = this.recipe.steps;
|
|
59
|
+
this.activeStep = 0;
|
|
60
|
+
}
|
|
61
|
+
this.cdr.detectChanges();
|
|
62
|
+
}
|
|
63
|
+
changeActiveStep(index) {
|
|
64
|
+
if (this.activeStep >= index) {
|
|
65
|
+
this.activeStep = index - 1;
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
this.activeStep = index;
|
|
69
|
+
}
|
|
70
|
+
this.cdr.detectChanges();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
RecipeDetailsStepsComponent.ɵfac = function RecipeDetailsStepsComponent_Factory(t) { return new (t || RecipeDetailsStepsComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
74
|
+
RecipeDetailsStepsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeDetailsStepsComponent, selectors: [["ng-miam-recipe-details-steps"]], inputs: { recipe: "recipe" }, features: [i0.ɵɵNgOnChangesFeature], decls: 6, vars: 1, consts: [[1, "miam-recipe-details-steps"], [1, "miam-recipe-details-steps__header"], [1, "miam-recipe-details-steps__list"], ["class", "miam-recipe-details-steps__step", 3, "ngClass", "click", 4, "ngFor", "ngForOf"], [1, "miam-recipe-details-steps__step", 3, "ngClass", "click"], ["class", "miam-recipe-details-steps__step__idx", 4, "ngIf", "ngIfElse"], ["stepChecked", ""], [1, "miam-recipe-details-steps__step__text"], ["primaryColor", "var(--m-color-grey-text-dark)", "secondaryColor", "var(--m-color-white)", 1, "miam-recipe-details-steps__step__checkIcon", 3, "height", "width", "iconName"], [1, "miam-recipe-details-steps__step__idx"], ["primaryColor", "var(--m-color-success)", 1, "miam-recipe-details-steps__step__checkIcon", 3, "height", "width", "iconName"]], template: function RecipeDetailsStepsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
75
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
76
|
+
i0.ɵɵelementStart(1, "div", 1);
|
|
77
|
+
i0.ɵɵelementStart(2, "span");
|
|
78
|
+
i0.ɵɵtext(3, "\u00C9tapes");
|
|
79
|
+
i0.ɵɵelementEnd();
|
|
80
|
+
i0.ɵɵelementEnd();
|
|
81
|
+
i0.ɵɵelementStart(4, "div", 2);
|
|
82
|
+
i0.ɵɵtemplate(5, RecipeDetailsStepsComponent_div_5_Template, 7, 10, "div", 3);
|
|
83
|
+
i0.ɵɵelementEnd();
|
|
84
|
+
i0.ɵɵelementEnd();
|
|
85
|
+
} if (rf & 2) {
|
|
86
|
+
i0.ɵɵadvance(5);
|
|
87
|
+
i0.ɵɵproperty("ngForOf", ctx.steps);
|
|
88
|
+
} }, directives: [i1.NgForOf, i1.NgClass, i1.NgIf, i2.IconComponent], styles: [".miam-recipe-details-steps{display:flex;flex:1;flex-direction:column}.miam-recipe-details-steps .miam-recipe-details-steps__header{border-bottom:1px solid var(--m-color-grey07);display:flex;flex-direction:row;justify-content:space-between;margin-bottom:16px;padding-bottom:12px}.miam-recipe-details-steps .miam-recipe-details-steps__header span{color:var(--m-color-primary);display:block;font-size:21px;font-weight:700;line-height:24px}.miam-recipe-details-steps .miam-recipe-details-steps__list{flex:1 1;overflow-y:auto;padding-bottom:40px}.miam-recipe-details-steps .miam-recipe-details-steps__list::-webkit-scrollbar-track{background:var(--m-color-grey)}.miam-recipe-details-steps .miam-recipe-details-steps__list::-webkit-scrollbar{cursor:-webkit-grab;height:7px;width:5px}.miam-recipe-details-steps .miam-recipe-details-steps__list::-webkit-scrollbar-thumb{background:var(--m-color-primary);border-radius:5px}.miam-recipe-details-steps .miam-recipe-details-steps__list .miam-recipe-details-steps__step{-webkit-tap-highlight-color:transparent;align-items:center;border-radius:var(--m-border-radius);cursor:pointer;display:flex;flex-direction:row;margin:0 2px 24px 0;padding:8px;text-align:left;transition:var(--m-default-transition)}.miam-recipe-details-steps .miam-recipe-details-steps__list .miam-recipe-details-steps__step .miam-recipe-details-steps__step__idx{align-items:center;background-color:var(--m-color-primary);border-radius:var(--m-border-radius-circle);color:var(--m-color-white);display:flex;font-size:16px;font-weight:700;height:32px;justify-content:center;line-height:20px;width:32px}.miam-recipe-details-steps .miam-recipe-details-steps__list .miam-recipe-details-steps__step .miam-recipe-details-steps__step__text{flex:1;font-size:14px;margin:0 12px;word-break:break-word}.miam-recipe-details-steps .miam-recipe-details-steps__list .miam-recipe-details-steps__step .miam-recipe-details-steps__step__checkIcon{flex:0 0 auto}.miam-recipe-details-steps .miam-recipe-details-steps__list .miam-recipe-details-steps__step.miam-recipe-details-steps__step__done{background-color:var(--m-color-primary-light)}"], encapsulation: 2, changeDetection: 0 });
|
|
89
|
+
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(RecipeDetailsStepsComponent, [{
|
|
90
|
+
type: Component,
|
|
91
|
+
args: [{
|
|
92
|
+
selector: 'ng-miam-recipe-details-steps',
|
|
93
|
+
templateUrl: './recipe-details-steps.component.html',
|
|
94
|
+
styleUrls: ['./recipe-details-steps.component.scss'],
|
|
95
|
+
encapsulation: ViewEncapsulation.None,
|
|
96
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
97
|
+
}]
|
|
98
|
+
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { recipe: [{
|
|
99
|
+
type: Input
|
|
100
|
+
}] }); })();
|
|
101
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjaXBlLWRldGFpbHMtc3RlcHMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Ii9idWlsZHMvbWlhbS9uZy1taWFtLXNkay9wcm9qZWN0cy9uZy1taWFtL3NyYy8iLCJzb3VyY2VzIjpbImxpYi9fd2ViLWNvbXBvbmVudHMvcmVjaXBlLWRldGFpbHMvcmVjaXBlLWRldGFpbHMtc3RlcHMvcmVjaXBlLWRldGFpbHMtc3RlcHMuY29tcG9uZW50LnRzIiwibGliL193ZWItY29tcG9uZW50cy9yZWNpcGUtZGV0YWlscy9yZWNpcGUtZGV0YWlscy1zdGVwcy9yZWNpcGUtZGV0YWlscy1zdGVwcy5jb21wb25lbnQuaHRtbCJd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