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.
Files changed (208) hide show
  1. package/bundles/ng-miam.umd.js +8539 -10855
  2. package/bundles/ng-miam.umd.js.map +1 -1
  3. package/bundles/ng-miam.umd.min.js +2 -2
  4. package/bundles/ng-miam.umd.min.js.map +1 -1
  5. package/esm2015/lib/_components/abstracts/event-tracer.component.js +3 -2
  6. package/esm2015/lib/_components/accordion/accordion.component.js +75 -0
  7. package/esm2015/lib/_components/components.module.js +27 -21
  8. package/esm2015/lib/_components/counter-input/counter-input.component.js +86 -76
  9. package/esm2015/lib/_components/icon/icon.component.js +1 -1
  10. package/esm2015/lib/_components/index.js +5 -5
  11. package/esm2015/lib/_components/like-button/like-button.component.js +1 -1
  12. package/esm2015/lib/_components/list-input/list-input.component.js +5 -5
  13. package/esm2015/lib/_components/loader/loader.component.js +1 -1
  14. package/esm2015/lib/_components/meals-planner-link/meals-planner-link.component.js +3 -3
  15. package/esm2015/lib/_components/modal/modal.component.js +155 -137
  16. package/esm2015/lib/_components/product-card/product-card.component.js +333 -0
  17. package/esm2015/lib/_components/products-picker/products-picker.component.js +155 -0
  18. package/esm2015/lib/_components/progress-tracker/progress-tracker.component.js +1 -1
  19. package/esm2015/lib/_components/recipe-filters/recipe-filters.component.js +166 -217
  20. package/esm2015/lib/_components/recipe-pricing/recipe-pricing.component.js +55 -35
  21. package/esm2015/lib/_components/slider-tabs/slider-tabs.component.js +84 -0
  22. package/esm2015/lib/_components/sponsor-blocks/sponsor-image-and-text-block/sponsor-image-and-text-block.component.js +1 -1
  23. package/esm2015/lib/_components/sponsor-blocks/sponsor-text-and-image-block/sponsor-text-and-image-block.component.js +1 -1
  24. package/esm2015/lib/_components/tabs/tabs.component.js +48 -88
  25. package/esm2015/lib/_components/toaster/toaster.component.js +48 -84
  26. package/esm2015/lib/_components/tooltipable-content/tooltipable-content.component.js +1 -1
  27. package/esm2015/lib/_models/basket-entry.js +33 -49
  28. package/esm2015/lib/_models/basket-preview-line.js +5 -5
  29. package/esm2015/lib/_models/basket.js +15 -12
  30. package/esm2015/lib/_models/item.js +2 -2
  31. package/esm2015/lib/_models/recipe.js +2 -15
  32. package/esm2015/lib/_models/user.js +1 -1
  33. package/esm2015/lib/_services/analytics.service.js +24 -5
  34. package/esm2015/lib/_services/baskets-synchronizing/baskets-comparator.service.js +1 -10
  35. package/esm2015/lib/_services/baskets-synchronizing/baskets-synchronizer.service.js +15 -15
  36. package/esm2015/lib/_services/baskets.service.js +478 -60
  37. package/esm2015/lib/_services/context.service.js +22 -35
  38. package/esm2015/lib/_services/index.js +3 -5
  39. package/esm2015/lib/_services/interceptor.service.js +2 -2
  40. package/esm2015/lib/_services/items.service.js +27 -4
  41. package/esm2015/lib/_services/recipe-details.service.js +198 -0
  42. package/esm2015/lib/_services/recipe-likes.service.js +1 -1
  43. package/esm2015/lib/_services/recipes.service.js +24 -53
  44. package/esm2015/lib/_services/scrolling.service.js +17 -0
  45. package/esm2015/lib/_services/toaster.service.js +4 -5
  46. package/esm2015/lib/_services/user.service.js +2 -2
  47. package/esm2015/lib/_types/basket-action-type.enum.js +11 -0
  48. package/esm2015/lib/_types/basket-action.js +2 -0
  49. package/esm2015/lib/_types/basket-stats.js +2 -0
  50. package/esm2015/lib/_types/builded/miam-interface.js +1 -1
  51. package/esm2015/lib/_types/event-trace.js +5 -0
  52. package/esm2015/lib/_types/items-comparator.js +1 -10
  53. package/esm2015/lib/_types/recipe-filters.js +1 -1
  54. package/esm2015/lib/_types/toaster.js +1 -1
  55. package/esm2015/lib/_utils/directives/index.js +2 -1
  56. package/esm2015/lib/_utils/directives/reach-top.directive.js +33 -0
  57. package/esm2015/lib/_utils/pipes/readable-float-number/readable-float-number.pipe.js +8 -2
  58. package/esm2015/lib/_utils/utils.module.js +12 -8
  59. package/esm2015/lib/_web-components/basket-preview/basket-preview-block/basket-preview-block.component.js +140 -118
  60. package/esm2015/lib/_web-components/basket-preview/basket-preview-disabled/basket-preview-disabled.component.js +2 -2
  61. package/esm2015/lib/_web-components/basket-preview/basket-preview-line/basket-preview-line.component.js +125 -444
  62. package/esm2015/lib/_web-components/basket-preview/replace-item/replace-item.component.js +211 -108
  63. package/esm2015/lib/_web-components/index.js +1 -4
  64. package/esm2015/lib/_web-components/list-scan/basket-preview/basket-preview.component.js +11 -14
  65. package/esm2015/lib/_web-components/list-scan/files-inputs/files-inputs.component.js +13 -13
  66. package/esm2015/lib/_web-components/list-scan/ingredients-list/ingredients-list.component.js +6 -6
  67. package/esm2015/lib/_web-components/list-scan/list-scan.component.js +10 -10
  68. package/esm2015/lib/_web-components/list-scan/overlay-button/overlay-button.component.js +23 -11
  69. package/esm2015/lib/_web-components/meals-planner/meals-planner-basket-confirmation/meals-planner-basket-confirmation.component.js +1 -1
  70. package/esm2015/lib/_web-components/meals-planner/meals-planner-catalog/meals-planner-catalog.component.js +1 -1
  71. package/esm2015/lib/_web-components/meals-planner/meals-planner-form/meals-planner-form.component.js +7 -7
  72. package/esm2015/lib/_web-components/meals-planner/meals-planner-result/meals-planner-result.component.js +5 -5
  73. package/esm2015/lib/_web-components/meals-planner/meals-planner.component.js +16 -20
  74. package/esm2015/lib/_web-components/planner-side-menu/planner-side-menu.component.js +4 -53
  75. package/esm2015/lib/_web-components/recipe-cards/add-recipe-card/add-recipe-card.component.js +1 -1
  76. package/esm2015/lib/_web-components/recipe-cards/index.js +1 -3
  77. package/esm2015/lib/_web-components/recipe-cards/recipe-card/recipe-card.component.js +326 -404
  78. package/esm2015/lib/_web-components/recipe-cards/recipe-card-cta/recipe-card-cta.component.js +50 -146
  79. package/esm2015/lib/_web-components/recipe-cards/recipe-cards.module.js +3 -15
  80. package/esm2015/lib/_web-components/recipe-catalog/catalog-article-card/catalog-article-card.component.js +1 -1
  81. package/esm2015/lib/_web-components/recipe-catalog/catalog-category/catalog-category.component.js +35 -29
  82. package/esm2015/lib/_web-components/recipe-catalog/catalog-header/catalog-header.component.js +1 -1
  83. package/esm2015/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.js +27 -31
  84. package/esm2015/lib/_web-components/recipe-catalog/recipe-catalog.component.js +98 -100
  85. package/esm2015/lib/_web-components/recipe-creation/recipe-form/recipe-form.component.js +2 -2
  86. package/esm2015/lib/_web-components/recipe-creation/recipe-stepper/recipe-stepper.component.js +7 -7
  87. package/esm2015/lib/_web-components/recipe-creation/tags-creator/tags-creator.component.js +4 -4
  88. package/esm2015/lib/_web-components/recipe-creation/tags-selector/tags-selector.component.js +8 -8
  89. package/esm2015/lib/_web-components/recipe-details/recipe-addon/recipe-addon.component.js +7 -3
  90. package/esm2015/lib/_web-components/recipe-details/recipe-details-infos/recipe-details-infos.component.js +57 -358
  91. package/esm2015/lib/_web-components/recipe-details/recipe-details-ingredients/recipe-details-ingredients.component.js +59 -122
  92. package/esm2015/lib/_web-components/recipe-details/recipe-details-steps/recipe-details-steps.component.js +51 -72
  93. package/esm2015/lib/_web-components/recipe-details/recipe-details.component.js +313 -363
  94. package/esm2015/lib/_web-components/recipe-details/recipe-details.module.js +8 -4
  95. package/esm2015/lib/_web-components/recipe-details/sponsor-storytelling/sponsor-storytelling.component.js +1 -1
  96. package/esm2015/lib/_web-components/recipe-helper/recipe-helper.component.js +89 -113
  97. package/esm2015/lib/_web-components/recipe-modal/recipe-modal.component.js +78 -69
  98. package/esm2015/lib/_web-components/recipe-tags/recipe-tags.component.js +5 -5
  99. package/esm2015/lib/_web-components/toaster-stack/toaster-stack.component.js +8 -4
  100. package/esm2015/lib/_web-components/web-components.module.js +3 -19
  101. package/esm2015/lib/ng-miam.module.js +5 -7
  102. package/fesm2015/ng-miam.js +5165 -6973
  103. package/fesm2015/ng-miam.js.map +1 -1
  104. package/lib/_components/abstracts/event-tracer.component.d.ts +2 -1
  105. package/lib/_components/accordion/accordion.component.d.ts +23 -0
  106. package/lib/_components/components.module.d.ts +38 -36
  107. package/lib/_components/counter-input/counter-input.component.d.ts +12 -14
  108. package/lib/_components/index.d.ts +4 -4
  109. package/lib/_components/modal/modal.component.d.ts +18 -18
  110. package/lib/_components/product-card/product-card.component.d.ts +40 -0
  111. package/lib/_components/products-picker/products-picker.component.d.ts +17 -0
  112. package/lib/_components/recipe-pricing/recipe-pricing.component.d.ts +12 -8
  113. package/lib/_components/slider-tabs/slider-tabs.component.d.ts +16 -0
  114. package/lib/_components/tabs/tabs.component.d.ts +11 -11
  115. package/lib/_components/toaster/toaster.component.d.ts +4 -2
  116. package/lib/_models/basket-entry.d.ts +16 -20
  117. package/lib/_models/basket-preview-line.d.ts +1 -0
  118. package/lib/_models/basket.d.ts +12 -5
  119. package/lib/_models/item.d.ts +1 -1
  120. package/lib/_models/recipe.d.ts +0 -5
  121. package/lib/_models/user.d.ts +0 -1
  122. package/lib/_services/analytics.service.d.ts +8 -22
  123. package/lib/_services/baskets-synchronizing/baskets-comparator.service.d.ts +0 -5
  124. package/lib/_services/baskets-synchronizing/baskets-synchronizer.service.d.ts +3 -6
  125. package/lib/_services/baskets.service.d.ts +137 -18
  126. package/lib/_services/context.service.d.ts +2 -4
  127. package/lib/_services/index.d.ts +2 -4
  128. package/lib/_services/items.service.d.ts +9 -2
  129. package/lib/_services/recipe-details.service.d.ts +84 -0
  130. package/lib/_services/recipe-likes.service.d.ts +2 -1
  131. package/lib/_services/recipes.service.d.ts +10 -14
  132. package/lib/_services/scrolling.service.d.ts +8 -0
  133. package/lib/_services/toaster.service.d.ts +1 -1
  134. package/lib/_types/basket-action-type.enum.d.ts +9 -0
  135. package/lib/_types/basket-action.d.ts +14 -0
  136. package/lib/_types/basket-stats.d.ts +5 -0
  137. package/lib/_types/builded/miam-interface.d.ts +16 -25
  138. package/lib/_types/event-trace.d.ts +22 -0
  139. package/lib/_types/items-comparator.d.ts +0 -5
  140. package/lib/_types/recipe-filters.d.ts +0 -2
  141. package/lib/_types/toaster.d.ts +1 -1
  142. package/lib/_utils/directives/index.d.ts +1 -0
  143. package/lib/_utils/directives/reach-top.directive.d.ts +13 -0
  144. package/lib/_utils/pipes/readable-float-number/readable-float-number.pipe.d.ts +1 -1
  145. package/lib/_utils/utils.module.d.ts +2 -2
  146. package/lib/_web-components/basket-preview/basket-preview-block/basket-preview-block.component.d.ts +9 -8
  147. package/lib/_web-components/basket-preview/basket-preview-line/basket-preview-line.component.d.ts +11 -9
  148. package/lib/_web-components/basket-preview/replace-item/replace-item.component.d.ts +27 -20
  149. package/lib/_web-components/index.d.ts +0 -3
  150. package/lib/_web-components/list-scan/basket-preview/basket-preview.component.d.ts +1 -2
  151. package/lib/_web-components/list-scan/files-inputs/files-inputs.component.d.ts +6 -5
  152. package/lib/_web-components/list-scan/ingredients-list/ingredients-list.component.d.ts +3 -3
  153. package/lib/_web-components/list-scan/list-scan.component.d.ts +3 -3
  154. package/lib/_web-components/list-scan/overlay-button/overlay-button.component.d.ts +8 -6
  155. package/lib/_web-components/meals-planner/meals-planner.component.d.ts +2 -3
  156. package/lib/_web-components/recipe-cards/index.d.ts +0 -2
  157. package/lib/_web-components/recipe-cards/recipe-card/recipe-card.component.d.ts +58 -17
  158. package/lib/_web-components/recipe-cards/recipe-card-cta/recipe-card-cta.component.d.ts +5 -12
  159. package/lib/_web-components/recipe-cards/recipe-cards.module.d.ts +7 -9
  160. package/lib/_web-components/recipe-catalog/catalog-category/catalog-category.component.d.ts +8 -6
  161. package/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.d.ts +7 -4
  162. package/lib/_web-components/recipe-catalog/recipe-catalog.component.d.ts +2 -3
  163. package/lib/_web-components/recipe-details/recipe-addon/recipe-addon.component.d.ts +5 -2
  164. package/lib/_web-components/recipe-details/recipe-details-infos/recipe-details-infos.component.d.ts +6 -18
  165. package/lib/_web-components/recipe-details/recipe-details-ingredients/recipe-details-ingredients.component.d.ts +6 -13
  166. package/lib/_web-components/recipe-details/recipe-details-steps/recipe-details-steps.component.d.ts +2 -10
  167. package/lib/_web-components/recipe-details/recipe-details.component.d.ts +29 -36
  168. package/lib/_web-components/recipe-details/recipe-details.module.d.ts +2 -1
  169. package/lib/_web-components/recipe-helper/recipe-helper.component.d.ts +2 -6
  170. package/lib/_web-components/recipe-modal/recipe-modal.component.d.ts +11 -9
  171. package/lib/_web-components/toaster-stack/toaster-stack.component.d.ts +5 -2
  172. package/lib/_web-components/web-components.module.d.ts +23 -29
  173. package/miam-style.css +1 -1
  174. package/package.json +1 -1
  175. package/esm2015/lib/_components/abstracts/abstract-recipe-card.component.js +0 -130
  176. package/esm2015/lib/_components/skeleton/skeleton.component.js +0 -70
  177. package/esm2015/lib/_components/tabs/tab-body.component.js +0 -30
  178. package/esm2015/lib/_components/tabs/tab-item.component.js +0 -36
  179. package/esm2015/lib/_components/tabs/tab-label.component.js +0 -30
  180. package/esm2015/lib/_models/groceries-entry.js +0 -42
  181. package/esm2015/lib/_models/groceries-list.js +0 -36
  182. package/esm2015/lib/_services/counter.service.js +0 -20
  183. package/esm2015/lib/_services/groceries-entries.service.js +0 -21
  184. package/esm2015/lib/_services/groceries-lists.service.js +0 -240
  185. package/esm2015/lib/_services/recipe-events.service.js +0 -63
  186. package/esm2015/lib/_types/skeleton.enum.js +0 -7
  187. package/esm2015/lib/_web-components/drawer/drawer.component.js +0 -273
  188. package/esm2015/lib/_web-components/pos-card/pos-card.component.js +0 -207
  189. package/esm2015/lib/_web-components/pos-selection/pos-selection.component.js +0 -283
  190. package/esm2015/lib/_web-components/recipe-cards/catalog-recipe-card/catalog-recipe-card.component.js +0 -632
  191. package/esm2015/lib/_web-components/recipe-cards/suggestion-card/suggestion-card.component.js +0 -144
  192. package/lib/_components/abstracts/abstract-recipe-card.component.d.ts +0 -49
  193. package/lib/_components/skeleton/skeleton.component.d.ts +0 -11
  194. package/lib/_components/tabs/tab-body.component.d.ts +0 -8
  195. package/lib/_components/tabs/tab-item.component.d.ts +0 -11
  196. package/lib/_components/tabs/tab-label.component.d.ts +0 -8
  197. package/lib/_models/groceries-entry.d.ts +0 -20
  198. package/lib/_models/groceries-list.d.ts +0 -30
  199. package/lib/_services/counter.service.d.ts +0 -10
  200. package/lib/_services/groceries-entries.service.d.ts +0 -10
  201. package/lib/_services/groceries-lists.service.d.ts +0 -68
  202. package/lib/_services/recipe-events.service.d.ts +0 -23
  203. package/lib/_types/skeleton.enum.d.ts +0 -5
  204. package/lib/_web-components/drawer/drawer.component.d.ts +0 -37
  205. package/lib/_web-components/pos-card/pos-card.component.d.ts +0 -24
  206. package/lib/_web-components/pos-selection/pos-selection.component.d.ts +0 -38
  207. package/lib/_web-components/recipe-cards/catalog-recipe-card/catalog-recipe-card.component.d.ts +0 -49
  208. package/lib/_web-components/recipe-cards/suggestion-card/suggestion-card.component.d.ts +0 -42
@@ -1,155 +1,98 @@
1
- import { Component, ViewEncapsulation, ChangeDetectionStrategy, Input, ChangeDetectorRef, Output, EventEmitter } from '@angular/core';
2
- import { Recipe } from '../../../_models/recipe';
3
- import { ContextService } from '../../../_services';
1
+ import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';
2
+ import { ContextService, RecipeDetailsService } from '../../../_services';
4
3
  import * as i0 from "@angular/core";
5
4
  import * as i1 from "../../../_services";
6
5
  import * as i2 from "@angular/common";
7
- import * as i3 from "../../../_components/counter-input/counter-input.component";
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_span_6_Template(rf, ctx) { if (rf & 1) {
6
+ import * as i3 from "../../../_utils/pipes/capitalize-first-letter/capitalize-first-letter.pipe";
7
+ import * as i4 from "../../../_utils/pipes/readable-float-number/readable-float-number.pipe";
8
+ function RecipeDetailsIngredientsComponent_div_0_span_5_Template(rf, ctx) { if (rf & 1) {
11
9
  i0.ɵɵelementStart(0, "span");
12
- i0.ɵɵi18n(1, 7);
10
+ i0.ɵɵi18n(1, 6);
13
11
  i0.ɵɵelementEnd();
14
12
  } }
15
- function RecipeDetailsIngredientsComponent_span_7_Template(rf, ctx) { if (rf & 1) {
13
+ function RecipeDetailsIngredientsComponent_div_0_span_6_Template(rf, ctx) { if (rf & 1) {
16
14
  i0.ɵɵelementStart(0, "span");
17
- i0.ɵɵi18n(1, 8);
15
+ i0.ɵɵi18n(1, 7);
18
16
  i0.ɵɵelementEnd();
19
17
  } }
20
- function RecipeDetailsIngredientsComponent_div_8_Template(rf, ctx) { if (rf & 1) {
21
- const _r5 = i0.ɵɵgetCurrentView();
22
- i0.ɵɵelementStart(0, "div", 9);
23
- i0.ɵɵelementStart(1, "ng-miam-counter-input", 10);
24
- i0.ɵɵlistener("counterChange", function RecipeDetailsIngredientsComponent_div_8_Template_ng_miam_counter_input_counterChange_1_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.updateGuests($event); });
25
- i0.ɵɵelementEnd();
26
- i0.ɵɵelementStart(2, "span", 11);
27
- i0.ɵɵelementStart(3, "span");
28
- i0.ɵɵi18n(4, 12);
18
+ function RecipeDetailsIngredientsComponent_div_0_div_8_Template(rf, ctx) { if (rf & 1) {
19
+ i0.ɵɵelementStart(0, "div", 8);
20
+ i0.ɵɵelementStart(1, "div", 9);
21
+ i0.ɵɵelement(2, "img", 10);
29
22
  i0.ɵɵelementEnd();
30
- i0.ɵɵelementStart(5, "span");
31
- i0.ɵɵtext(6);
23
+ i0.ɵɵelementStart(3, "span", 11);
24
+ i0.ɵɵtext(4);
25
+ i0.ɵɵpipe(5, "capitalizeFirstLetter");
32
26
  i0.ɵɵelementEnd();
33
- i0.ɵɵelementStart(7, "span");
34
- i0.ɵɵi18n(8, 13);
27
+ i0.ɵɵelementStart(6, "div", 12);
28
+ i0.ɵɵtext(7);
29
+ i0.ɵɵpipe(8, "readableFloatNumber");
35
30
  i0.ɵɵelementEnd();
36
31
  i0.ɵɵelementEnd();
37
- i0.ɵɵelementEnd();
38
- } if (rf & 2) {
39
- const ctx_r2 = i0.ɵɵnextContext();
40
- i0.ɵɵadvance(1);
41
- i0.ɵɵproperty("counter", (ctx_r2.recipe == null ? null : ctx_r2.recipe.modifiedGuests) || ctx_r2.recipe.guests);
42
- i0.ɵɵadvance(5);
43
- i0.ɵɵtextInterpolate(ctx_r2.recipe == null ? null : ctx_r2.recipe.modifiedGuests);
44
- } }
45
- function RecipeDetailsIngredientsComponent_div_10_div_1_Template(rf, ctx) { if (rf & 1) {
46
- i0.ɵɵelementStart(0, "div");
47
- i0.ɵɵelement(1, "img", 16);
48
- i0.ɵɵelementEnd();
49
32
  } if (rf & 2) {
50
- const ingredient_r6 = i0.ɵɵnextContext().$implicit;
51
- const ctx_r8 = i0.ɵɵnextContext();
52
- i0.ɵɵadvance(1);
53
- i0.ɵɵproperty("src", ctx_r8.ingredientPicture(ingredient_r6), i0.ɵɵsanitizeUrl);
33
+ const ingredient_r4 = ctx.$implicit;
34
+ const ctx_r3 = i0.ɵɵnextContext(2);
35
+ i0.ɵɵadvance(2);
36
+ i0.ɵɵproperty("src", ctx_r3.ingredientPicture(ingredient_r4), i0.ɵɵsanitizeUrl)("alt", ingredient_r4.name + " picture");
37
+ i0.ɵɵadvance(2);
38
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 4, ingredient_r4.name));
39
+ i0.ɵɵadvance(3);
40
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(8, 6, ingredient_r4.qty, ingredient_r4.unit), " ");
54
41
  } }
55
- const _c8 = function (a0) { return { "checked": a0 }; };
56
- function RecipeDetailsIngredientsComponent_div_10_Template(rf, ctx) { if (rf & 1) {
57
- i0.ɵɵelementStart(0, "div", 14);
58
- i0.ɵɵtemplate(1, RecipeDetailsIngredientsComponent_div_10_div_1_Template, 2, 1, "div", 3);
59
- i0.ɵɵelementStart(2, "div");
42
+ function RecipeDetailsIngredientsComponent_div_0_Template(rf, ctx) { if (rf & 1) {
43
+ i0.ɵɵelementStart(0, "div", 1);
44
+ i0.ɵɵelementStart(1, "div", 2);
45
+ i0.ɵɵelementStart(2, "span");
60
46
  i0.ɵɵtext(3);
61
- i0.ɵɵpipe(4, "capitalizeFirstLetter");
62
47
  i0.ɵɵelementEnd();
63
- i0.ɵɵelementStart(5, "div", 15);
64
- i0.ɵɵtext(6);
65
- i0.ɵɵpipe(7, "readableFloatNumber");
48
+ i0.ɵɵelementStart(4, "span");
49
+ i0.ɵɵtemplate(5, RecipeDetailsIngredientsComponent_div_0_span_5_Template, 2, 0, "span", 3);
50
+ i0.ɵɵtemplate(6, RecipeDetailsIngredientsComponent_div_0_span_6_Template, 2, 0, "span", 3);
51
+ i0.ɵɵelementEnd();
52
+ i0.ɵɵelementEnd();
53
+ i0.ɵɵelementStart(7, "div", 4);
54
+ i0.ɵɵtemplate(8, RecipeDetailsIngredientsComponent_div_0_div_8_Template, 9, 9, "div", 5);
66
55
  i0.ɵɵelementEnd();
67
56
  i0.ɵɵelementEnd();
68
57
  } if (rf & 2) {
69
- const ingredient_r6 = ctx.$implicit;
70
- const i_r7 = ctx.index;
71
- const ctx_r3 = i0.ɵɵnextContext();
72
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c8, ctx_r3.ingredientsChecked[i_r7]));
58
+ const ctx_r0 = i0.ɵɵnextContext();
59
+ i0.ɵɵadvance(3);
60
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.ingredients == null ? null : ctx_r0.ingredients.length, " ");
61
+ i0.ɵɵadvance(2);
62
+ i0.ɵɵproperty("ngIf", (ctx_r0.ingredients == null ? null : ctx_r0.ingredients.length) > 1);
73
63
  i0.ɵɵadvance(1);
74
- i0.ɵɵproperty("ngIf", ctx_r3.ingredientsPictures);
64
+ i0.ɵɵproperty("ngIf", (ctx_r0.ingredients == null ? null : ctx_r0.ingredients.length) === 1);
75
65
  i0.ɵɵadvance(2);
76
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 4, ingredient_r6.name), "");
77
- i0.ɵɵadvance(3);
78
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(7, 6, ingredient_r6.qty, ingredient_r6.unit), " ");
66
+ i0.ɵɵproperty("ngForOf", ctx_r0.ingredients);
79
67
  } }
80
68
  export class RecipeDetailsIngredientsComponent {
81
- constructor(cdr, contextService) {
82
- this.cdr = cdr;
69
+ constructor(contextService, recipeDetailsService) {
83
70
  this.contextService = contextService;
84
- this.displayGuests = true;
85
- this.ingredientsPictures = false;
86
- this.guestsUpdated = new EventEmitter();
87
- this.ingredientsChecked = {};
88
- }
89
- updateGuests(guests) {
90
- this.recipe.modifiedGuests = guests;
91
- this.guestsUpdated.emit();
92
- this.cdr.detectChanges();
71
+ this.recipeDetailsService = recipeDetailsService;
93
72
  }
94
73
  ingredientPicture(ingredient) {
95
74
  return ingredient.picture || this.contextService.defaultIngredientPicture;
96
75
  }
97
76
  }
98
- RecipeDetailsIngredientsComponent.ɵfac = function RecipeDetailsIngredientsComponent_Factory(t) { return new (t || RecipeDetailsIngredientsComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1.ContextService)); };
99
- RecipeDetailsIngredientsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeDetailsIngredientsComponent, selectors: [["ng-miam-recipe-details-ingredients"]], inputs: { recipe: "recipe", displayGuests: "displayGuests", ingredientsPictures: "ingredientsPictures" }, outputs: { guestsUpdated: "guestsUpdated" }, decls: 11, vars: 5, consts: function () { var i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
100
- const MSG_EXTERNAL_7521397528410775601$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS__1 = goog.getMsg("ingr\u00E9dients");
101
- i18n_0 = MSG_EXTERNAL_7521397528410775601$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS__1;
77
+ RecipeDetailsIngredientsComponent.ɵfac = function RecipeDetailsIngredientsComponent_Factory(t) { return new (t || RecipeDetailsIngredientsComponent)(i0.ɵɵdirectiveInject(i1.ContextService), i0.ɵɵdirectiveInject(i1.RecipeDetailsService)); };
78
+ RecipeDetailsIngredientsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeDetailsIngredientsComponent, selectors: [["ng-miam-recipe-details-ingredients"]], inputs: { ingredients: "ingredients" }, decls: 2, vars: 3, consts: function () { var i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
79
+ const MSG_EXTERNAL_7521397528410775601$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS___1 = goog.getMsg("ingr\u00E9dients");
80
+ i18n_0 = MSG_EXTERNAL_7521397528410775601$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS___1;
102
81
  }
103
82
  else {
104
83
  i18n_0 = $localize `:␟e859ba2d36a6f30bb3acdc80852d4e82a5411aa0␟7521397528410775601:ingrédients`;
105
84
  } var i18n_2; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
106
- const MSG_EXTERNAL_6517018329453008605$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS__3 = goog.getMsg("ingr\u00E9dient");
107
- i18n_2 = MSG_EXTERNAL_6517018329453008605$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS__3;
85
+ const MSG_EXTERNAL_6517018329453008605$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS___3 = goog.getMsg("ingr\u00E9dient");
86
+ i18n_2 = MSG_EXTERNAL_6517018329453008605$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS___3;
108
87
  }
109
88
  else {
110
89
  i18n_2 = $localize `:␟50bd24ece9d857e744e5647b7bfb3a637b6f2a44␟6517018329453008605:ingrédient`;
111
- } var i18n_4; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
112
- const MSG_EXTERNAL_6355784539835027667$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS__5 = goog.getMsg("Pour");
113
- i18n_4 = MSG_EXTERNAL_6355784539835027667$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS__5;
114
- }
115
- else {
116
- i18n_4 = $localize `:␟767ac7d695ee51771c92c1ce24a2920511544f6a␟6355784539835027667:Pour`;
117
- } var i18n_6; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
118
- const MSG_EXTERNAL_3397501349112812891$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS__7 = goog.getMsg("personnes");
119
- i18n_6 = MSG_EXTERNAL_3397501349112812891$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS__7;
120
- }
121
- else {
122
- i18n_6 = $localize `:␟63e53fe349a9d568182157b18cf3140aca246d62␟3397501349112812891:personnes`;
123
- } return [[1, "miam-recipe-details-ingredients"], [1, "miam-recipe-details-ingredients__header"], [1, "miam-recipe-details-ingredients__header__title"], [4, "ngIf"], ["class", "miam-recipe-details-ingredients__counter", 4, "ngIf"], [1, "miam-recipe-details-ingredients__list"], ["class", "miam-recipe-details-ingredients__row", 3, "ngClass", 4, "ngFor", "ngForOf"], i18n_0, i18n_2, [1, "miam-recipe-details-ingredients__counter"], [3, "counter", "counterChange"], [1, "miam-recipe-details-ingredients__counter__print"], i18n_4, i18n_6, [1, "miam-recipe-details-ingredients__row", 3, "ngClass"], [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) {
124
- i0.ɵɵelementStart(0, "div", 0);
125
- i0.ɵɵelementStart(1, "div", 1);
126
- i0.ɵɵelementStart(2, "span", 2);
127
- i0.ɵɵelementStart(3, "span");
128
- i0.ɵɵtext(4);
129
- i0.ɵɵelementEnd();
130
- i0.ɵɵelementStart(5, "span");
131
- i0.ɵɵtemplate(6, RecipeDetailsIngredientsComponent_span_6_Template, 2, 0, "span", 3);
132
- i0.ɵɵtemplate(7, RecipeDetailsIngredientsComponent_span_7_Template, 2, 0, "span", 3);
133
- i0.ɵɵelementEnd();
134
- i0.ɵɵelementEnd();
135
- i0.ɵɵtemplate(8, RecipeDetailsIngredientsComponent_div_8_Template, 9, 2, "div", 4);
136
- i0.ɵɵelementEnd();
137
- i0.ɵɵelementStart(9, "div", 5);
138
- i0.ɵɵtemplate(10, RecipeDetailsIngredientsComponent_div_10_Template, 8, 11, "div", 6);
139
- i0.ɵɵelementEnd();
140
- i0.ɵɵelementEnd();
90
+ } return [["class", "miam-recipe-details-ingredients", 4, "ngIf"], [1, "miam-recipe-details-ingredients"], [1, "miam-ds-text", "weight-xxl", "miam-recipe-details-ingredients__header"], [4, "ngIf"], [1, "miam-recipe-details-ingredients__list"], ["class", "miam-recipe-details-ingredients__item", 4, "ngFor", "ngForOf"], i18n_0, i18n_2, [1, "miam-recipe-details-ingredients__item"], [1, "miam-recipe-details-ingredients__picture_container"], [1, "miam-recipe-details-ingredients__picture", 3, "src", "alt"], [1, "miam-ds-text", "size-s", "weight-xxl", "miam-recipe-details-ingredients__name"], [1, "miam-ds-text", "size-s", "weight-l", "miam-recipe-details-ingredients__row__qty"]]; }, template: function RecipeDetailsIngredientsComponent_Template(rf, ctx) { if (rf & 1) {
91
+ i0.ɵɵtemplate(0, RecipeDetailsIngredientsComponent_div_0_Template, 9, 4, "div", 0);
92
+ i0.ɵɵpipe(1, "async");
141
93
  } if (rf & 2) {
142
- i0.ɵɵadvance(4);
143
- i0.ɵɵtextInterpolate1(" ", ctx.recipe == null ? null : ctx.recipe.modifiedIngredients.length, " ");
144
- i0.ɵɵadvance(2);
145
- i0.ɵɵproperty("ngIf", (ctx.recipe == null ? null : ctx.recipe.modifiedIngredients.length) > 1);
146
- i0.ɵɵadvance(1);
147
- i0.ɵɵproperty("ngIf", !((ctx.recipe == null ? null : ctx.recipe.modifiedIngredients.length) > 1));
148
- i0.ɵɵadvance(1);
149
- i0.ɵɵproperty("ngIf", ctx.displayGuests);
150
- i0.ɵɵadvance(2);
151
- i0.ɵɵproperty("ngForOf", ctx.recipe == null ? null : ctx.recipe.modifiedIngredients);
152
- } }, directives: [i2.NgIf, i2.NgForOf, i3.CounterInputComponent, i2.NgClass], 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 .miam-recipe-details-ingredients__header__title{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 });
94
+ i0.ɵɵproperty("ngIf", !i0.ɵɵpipeBind1(1, 1, ctx.recipeDetailsService.recipeLoading$) && ctx.ingredients);
95
+ } }, directives: [i2.NgIf, i2.NgForOf], pipes: [i2.AsyncPipe, i3.CapitalizeFirstLetterPipe, i4.ReadableFloatNumberPipe], styles: [".miam-recipe-details-ingredients{display:flex;flex-direction:column;gap:16px}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header{color:var(--miam-color-neutral-black,#1f3543)}@media (min-width:1022px){.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header{font-size:20px;line-height:120%}}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__list{display:flex;flex-direction:row;flex-wrap:wrap;gap:16px;justify-content:center}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__item{align-items:center;display:flex;flex:1;flex-direction:column;gap:8px;text-align:center}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__item .miam-recipe-details-ingredients__picture_container{border:1px solid var(--miam-ds-color-neutral-200,#d9dde1);border-radius:100%;height:64px;overflow:hidden;width:64px}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__item .miam-recipe-details-ingredients__picture_container .miam-recipe-details-ingredients__picture{height:100%;width:100%}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__item .miam-recipe-details-ingredients__name,.miam-recipe-details-ingredients .miam-recipe-details-ingredients__item .miam-recipe-details-ingredients__row__qty{color:var(--miam-ds-color-neutral-black,#1f3543)}"], encapsulation: 2, changeDetection: 0 });
153
96
  /*@__PURE__*/ (function () { i0.ɵsetClassMetadata(RecipeDetailsIngredientsComponent, [{
154
97
  type: Component,
155
98
  args: [{
@@ -159,13 +102,7 @@ RecipeDetailsIngredientsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeD
159
102
  encapsulation: ViewEncapsulation.None,
160
103
  changeDetection: ChangeDetectionStrategy.OnPush
161
104
  }]
162
- }], function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.ContextService }]; }, { recipe: [{
163
- type: Input
164
- }], displayGuests: [{
165
- type: Input
166
- }], ingredientsPictures: [{
105
+ }], function () { return [{ type: i1.ContextService }, { type: i1.RecipeDetailsService }]; }, { ingredients: [{
167
106
  type: Input
168
- }], guestsUpdated: [{
169
- type: Output
170
107
  }] }); })();
171
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjaXBlLWRldGFpbHMtaW5ncmVkaWVudHMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Ii9idWlsZHMvbWlhbS9uZy1taWFtLXNkay9wcm9qZWN0cy9uZy1taWFtL3NyYy8iLCJzb3VyY2VzIjpbImxpYi9fd2ViLWNvbXBvbmVudHMvcmVjaXBlLWRldGFpbHMvcmVjaXBlLWRldGFpbHMtaW5ncmVkaWVudHMvcmVjaXBlLWRldGFpbHMtaW5ncmVkaWVudHMuY29tcG9uZW50LnRzIiwibGliL193ZWItY29tcG9uZW50cy9yZWNpcGUtZGV0YWlscy9yZWNpcGUtZGV0YWlscy1pbmdyZWRpZW50cy9yZWNpcGUtZGV0YWlscy1pbmdyZWRpZW50cy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI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dj5cbiAgICA8L2Rpdj5cbiAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
@@ -1,95 +1,74 @@
1
- import { Component, ViewEncapsulation, ChangeDetectionStrategy, Input, ChangeDetectorRef } from '@angular/core';
2
- import { Recipe } from '../../../_models/recipe';
3
- import { Icon } from '../../../_types/icon.enum';
1
+ import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';
2
+ import { Recipe } from '../../../_models';
4
3
  import * as i0 from "@angular/core";
5
4
  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", 10);
9
- i0.ɵɵelementStart(1, "span");
10
- i0.ɵɵtext(2);
5
+ function RecipeDetailsStepsComponent_span_4_Template(rf, ctx) { if (rf & 1) {
6
+ i0.ɵɵelementStart(0, "span");
7
+ i0.ɵɵi18n(1, 5);
11
8
  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
9
  } }
18
- function RecipeDetailsStepsComponent_div_5_ng_template_2_Template(rf, ctx) { if (rf & 1) {
19
- i0.ɵɵelement(0, "ng-miam-icon", 11);
20
- } if (rf & 2) {
21
- const ctx_r5 = i0.ɵɵnextContext(2);
22
- i0.ɵɵproperty("height", 32)("width", 32)("iconName", ctx_r5.icon.CheckCircleFill);
10
+ function RecipeDetailsStepsComponent_span_5_Template(rf, ctx) { if (rf & 1) {
11
+ i0.ɵɵelementStart(0, "span");
12
+ i0.ɵɵi18n(1, 6);
13
+ i0.ɵɵelementEnd();
23
14
  } }
24
- const _c2 = 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", 5);
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", 6);
30
- i0.ɵɵtemplate(2, RecipeDetailsStepsComponent_div_5_ng_template_2_Template, 1, 3, "ng-template", null, 7, i0.ɵɵtemplateRefExtractor);
31
- i0.ɵɵelementStart(4, "div", 8);
15
+ function RecipeDetailsStepsComponent_div_7_Template(rf, ctx) { if (rf & 1) {
16
+ i0.ɵɵelementStart(0, "div", 7);
17
+ i0.ɵɵelementStart(1, "div", 8);
18
+ i0.ɵɵelementStart(2, "span", 9);
19
+ i0.ɵɵtext(3);
20
+ i0.ɵɵelementEnd();
21
+ i0.ɵɵelementEnd();
22
+ i0.ɵɵelementStart(4, "div", 10);
32
23
  i0.ɵɵtext(5);
33
24
  i0.ɵɵelementEnd();
34
- i0.ɵɵelement(6, "ng-miam-icon", 9);
35
25
  i0.ɵɵelementEnd();
36
26
  } 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, _c2, 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);
27
+ const step_r3 = ctx.$implicit;
28
+ const i_r4 = ctx.index;
29
+ i0.ɵɵadvance(3);
30
+ i0.ɵɵtextInterpolate1(" ", i_r4 + 1, " ");
31
+ i0.ɵɵadvance(2);
32
+ i0.ɵɵtextInterpolate(step_r3 == null ? null : step_r3.attributes == null ? null : step_r3.attributes.description);
48
33
  } }
49
34
  export class RecipeDetailsStepsComponent {
50
- constructor(cdr) {
51
- this.cdr = cdr;
52
- this.activeStep = 0;
53
- this.icon = Icon;
54
- }
55
- ngOnChanges() {
56
- if (this.recipe) {
57
- this.activeStep = 0;
58
- }
59
- this.cdr.detectChanges();
60
- }
61
- changeActiveStep(index) {
62
- if (this.activeStep >= index) {
63
- this.activeStep = index - 1;
64
- }
65
- else {
66
- this.activeStep = index;
67
- }
68
- this.cdr.detectChanges();
69
- }
70
35
  }
71
- RecipeDetailsStepsComponent.ɵfac = function RecipeDetailsStepsComponent_Factory(t) { return new (t || RecipeDetailsStepsComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
72
- RecipeDetailsStepsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeDetailsStepsComponent, selectors: [["ng-miam-recipe-details-steps"]], inputs: { recipe: "recipe" }, features: [i0.ɵɵNgOnChangesFeature], decls: 6, vars: 1, consts: function () { var i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
73
- const MSG_EXTERNAL_1766110989620382170$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_STEPS_RECIPE_DETAILS_STEPS_COMPONENT_TS_1 = goog.getMsg("\u00C9tapes");
74
- i18n_0 = MSG_EXTERNAL_1766110989620382170$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_STEPS_RECIPE_DETAILS_STEPS_COMPONENT_TS_1;
36
+ RecipeDetailsStepsComponent.ɵfac = function RecipeDetailsStepsComponent_Factory(t) { return new (t || RecipeDetailsStepsComponent)(); };
37
+ RecipeDetailsStepsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeDetailsStepsComponent, selectors: [["ng-miam-recipe-details-steps"]], inputs: { recipe: "recipe" }, decls: 8, vars: 4, consts: function () { var i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
38
+ const MSG_EXTERNAL_8637234547790461302$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_STEPS_RECIPE_DETAILS_STEPS_COMPONENT_TS__1 = goog.getMsg("\u00E9tape");
39
+ i18n_0 = MSG_EXTERNAL_8637234547790461302$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_STEPS_RECIPE_DETAILS_STEPS_COMPONENT_TS__1;
40
+ }
41
+ else {
42
+ i18n_0 = $localize `:␟cc53912b673207fb8f211965ce70a6126839560c␟8637234547790461302:étape`;
43
+ } var i18n_2; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
44
+ const MSG_EXTERNAL_2078952905340877546$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_STEPS_RECIPE_DETAILS_STEPS_COMPONENT_TS__3 = goog.getMsg("\u00E9tapes");
45
+ i18n_2 = MSG_EXTERNAL_2078952905340877546$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_STEPS_RECIPE_DETAILS_STEPS_COMPONENT_TS__3;
75
46
  }
76
47
  else {
77
- i18n_0 = $localize `:␟b6d5d35bf18eb39d9f9e538b8f3c108262d1ebd61766110989620382170:Étapes`;
78
- } return [[1, "miam-recipe-details-steps"], [1, "miam-recipe-details-steps__header"], i18n_0, [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) {
48
+ i18n_2 = $localize `:␟72dadcda5c07bc70b1fdafebbc6eade69922cc412078952905340877546:étapes`;
49
+ } return [[1, "miam-recipe-details-steps"], [1, "miam-ds-text", "weight-xxl", "miam-recipe-details-steps__header"], [4, "ngIf"], [1, "miam-recipe-details-steps__list"], ["class", "miam-recipe-details-steps__step", 4, "ngFor", "ngForOf"], i18n_0, i18n_2, [1, "miam-recipe-details-steps__step"], [1, "miam-recipe-details-steps__step__idx"], [1, "miam-ds-text", "size-s", "weight-l"], [1, "miam-ds-text", "weight-l", "miam-recipe-details-steps__step__text"]]; }, template: function RecipeDetailsStepsComponent_Template(rf, ctx) { if (rf & 1) {
79
50
  i0.ɵɵelementStart(0, "div", 0);
80
51
  i0.ɵɵelementStart(1, "div", 1);
81
52
  i0.ɵɵelementStart(2, "span");
82
- i0.ɵɵi18n(3, 2);
53
+ i0.ɵɵtext(3);
54
+ i0.ɵɵtemplate(4, RecipeDetailsStepsComponent_span_4_Template, 2, 0, "span", 2);
55
+ i0.ɵɵtemplate(5, RecipeDetailsStepsComponent_span_5_Template, 2, 0, "span", 2);
83
56
  i0.ɵɵelementEnd();
84
57
  i0.ɵɵelementEnd();
85
- i0.ɵɵelementStart(4, "div", 3);
86
- i0.ɵɵtemplate(5, RecipeDetailsStepsComponent_div_5_Template, 7, 10, "div", 4);
58
+ i0.ɵɵelementStart(6, "div", 3);
59
+ i0.ɵɵtemplate(7, RecipeDetailsStepsComponent_div_7_Template, 6, 2, "div", 4);
87
60
  i0.ɵɵelementEnd();
88
61
  i0.ɵɵelementEnd();
89
62
  } if (rf & 2) {
90
- i0.ɵɵadvance(5);
91
- i0.ɵɵproperty("ngForOf", ctx.recipe.steps);
92
- } }, 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}@media (max-width:1023px){.miam-recipe-details-steps .miam-recipe-details-steps__list{padding-bottom:140px}}.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 });
63
+ i0.ɵɵadvance(3);
64
+ i0.ɵɵtextInterpolate1("", ctx.recipe == null ? null : ctx.recipe.steps.length, " ");
65
+ i0.ɵɵadvance(1);
66
+ i0.ɵɵproperty("ngIf", (ctx.recipe == null ? null : ctx.recipe.steps.length) <= 1);
67
+ i0.ɵɵadvance(1);
68
+ i0.ɵɵproperty("ngIf", (ctx.recipe == null ? null : ctx.recipe.steps.length) > 1);
69
+ i0.ɵɵadvance(2);
70
+ i0.ɵɵproperty("ngForOf", ctx.recipe == null ? null : ctx.recipe.steps);
71
+ } }, directives: [i1.NgIf, i1.NgForOf], styles: [".miam-recipe-details-steps{display:flex;flex:1;flex-direction:column;gap:16px}.miam-recipe-details-steps .miam-recipe-details-steps__header{color:var(--miam-color-neutral-black,#1f3543)}@media (min-width:1022px){.miam-recipe-details-steps .miam-recipe-details-steps__header{font-size:20px;line-height:120%}}.miam-recipe-details-steps .miam-recipe-details-steps__list{display:flex;flex-direction:column;gap:16px}@media (min-width:1022px){.miam-recipe-details-steps .miam-recipe-details-steps__list{gap:0}}.miam-recipe-details-steps .miam-recipe-details-steps__list .miam-recipe-details-steps__step{align-items:center;display:flex;gap:12px}@media (min-width:1022px){.miam-recipe-details-steps .miam-recipe-details-steps__list .miam-recipe-details-steps__step{padding:16px 0}}.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(--miam-ds-color-primary-100,#e4eaec);border-radius:var(--m-border-radius-circle);color:var(--miam-color-neutral-black,#1f3543);display:flex;height:32px;justify-content:center;width:32px}.miam-recipe-details-steps .miam-recipe-details-steps__list .miam-recipe-details-steps__step .miam-recipe-details-steps__step__text{color:var(--miam-color-neutral-black,#1f3543);flex:1;word-break:break-word}"], encapsulation: 2, changeDetection: 0 });
93
72
  /*@__PURE__*/ (function () { i0.ɵsetClassMetadata(RecipeDetailsStepsComponent, [{
94
73
  type: Component,
95
74
  args: [{
@@ -99,7 +78,7 @@ RecipeDetailsStepsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeDetails
99
78
  encapsulation: ViewEncapsulation.None,
100
79
  changeDetection: ChangeDetectionStrategy.OnPush
101
80
  }]
102
- }], function () { return [{ type: i0.ChangeDetectorRef }]; }, { recipe: [{
81
+ }], null, { recipe: [{
103
82
  type: Input
104
83
  }] }); })();
105
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjaXBlLWRldGFpbHMtc3RlcHMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Ii9idWlsZHMvbWlhbS9uZy1taWFtLXNkay9wcm9qZWN0cy9uZy1taWFtL3NyYy8iLCJzb3VyY2VzIjpbImxpYi9fd2ViLWNvbXBvbmVudHMvcmVjaXBlLWRldGFpbHMvcmVjaXBlLWRldGFpbHMtc3RlcHMvcmVjaXBlLWRldGFpbHMtc3RlcHMuY29tcG9uZW50LnRzIiwibGliL193ZWItY29tcG9uZW50cy9yZWNpcGUtZGV0YWlscy9yZWNpcGUtZGV0YWlscy1zdGVwcy9yZWNpcGUtZGV0YWlscy1zdGVwcy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLGlCQUFpQixFQUFFLHVCQUF1QixFQUFFLEtBQUssRUFBRSxpQkFBaUIsRUFBYSxNQUFNLGVBQWUsQ0FBQztBQUMzSCxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFDakQsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLDJCQUEyQixDQUFDOzs7OztJQ1EzQywrQkFDRTtJQUFBLDRCQUNFO0lBQUEsWUFDRjtJQUFB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