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,4 +1,5 @@
1
- import { AnalyticsService, CustomProperties, EventTrace } from '../../_services/analytics.service';
1
+ import { AnalyticsService } from '../../_services/analytics.service';
2
+ import { CustomProperties, EventTrace } from '../../_types/event-trace';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare abstract class EventTracerComponent {
4
5
  protected analyticsService: AnalyticsService;
@@ -0,0 +1,23 @@
1
+ import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
2
+ import { Icon } from '../../_types/icon.enum';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AccordionTitleDirective {
5
+ static ɵfac: i0.ɵɵFactoryDef<AccordionTitleDirective, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDefWithMeta<AccordionTitleDirective, "ng-miam-accordion-title, [ng-miam-accordion-title]", never, {}, {}, never>;
7
+ }
8
+ export declare class AccordionContentDirective {
9
+ static ɵfac: i0.ɵɵFactoryDef<AccordionContentDirective, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDefWithMeta<AccordionContentDirective, "ng-miam-accordion-content, [ng-miam-accordion-content]", never, {}, {}, never>;
11
+ }
12
+ export declare class AccordionComponent implements OnInit {
13
+ private cdr;
14
+ isCollapsed: boolean;
15
+ isCollapsedChange: EventEmitter<boolean>;
16
+ get opened(): boolean;
17
+ icon: typeof Icon;
18
+ constructor(cdr: ChangeDetectorRef);
19
+ ngOnInit(): void;
20
+ swapState(): void;
21
+ static ɵfac: i0.ɵɵFactoryDef<AccordionComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDefWithMeta<AccordionComponent, "ng-miam-accordion", never, { "isCollapsed": "isCollapsed"; }, { "isCollapsedChange": "isCollapsedChange"; }, never, ["ng-miam-accordion-title", "ng-miam-accordion-content"]>;
23
+ }
@@ -1,3 +1,4 @@
1
+ import { AccordionComponent, AccordionTitleDirective } from './accordion/accordion.component';
1
2
  import { ActionsPopinComponent } from './actions-popin/actions-popin.component';
2
3
  import { AddonLinkComponent } from './addon-link/addon-link.component';
3
4
  import { CounterInputComponent } from './counter-input/counter-input.component';
@@ -7,13 +8,14 @@ import { ExplainBannerComponent } from './explain-banner/explain-banner.componen
7
8
  import { IconComponent } from './icon/icon.component';
8
9
  import { LikeButtonComponent } from './like-button/like-button.component';
9
10
  import { ListInputComponent } from './list-input/list-input.component';
10
- import { LoaderComponent } from './loader/loader.component';
11
11
  import { MealsPlannerLinkComponent } from './meals-planner-link/meals-planner-link.component';
12
- import { ModalComponent } from './modal/modal.component';
12
+ import { ProductCardComponent } from './product-card/product-card.component';
13
+ import { ProductsPickerComponent } from './products-picker/products-picker.component';
13
14
  import { RecipeFiltersComponent } from './recipe-filters/recipe-filters.component';
14
15
  import { RecipePricingComponent } from './recipe-pricing/recipe-pricing.component';
15
16
  import { RecipeTypeChooserComponent } from './recipe-type-chooser/recipe-type-chooser.component';
16
17
  import { SliderComponent } from './slider/slider.component';
18
+ import { SliderTabsComponent } from './slider-tabs/slider-tabs.component';
17
19
  import { SponsorBlockContainerComponent } from './sponsor-block-container/sponsor-block-container.component';
18
20
  import { TabsComponent } from './tabs/tabs.component';
19
21
  import { TimePickerComponent } from './time-picker/time-picker.component';
@@ -21,49 +23,49 @@ import * as i0 from "@angular/core";
21
23
  import * as i1 from "./icon/icon.component";
22
24
  import * as i2 from "./cors-overlay/cors-overlay.component";
23
25
  import * as i3 from "./list-input/list-input.component";
24
- import * as i4 from "./skeleton/skeleton.component";
25
- import * as i5 from "./slider/slider.component";
26
+ import * as i4 from "./slider/slider.component";
27
+ import * as i5 from "./slider-tabs/slider-tabs.component";
26
28
  import * as i6 from "./time-picker/time-picker.component";
27
29
  import * as i7 from "./counter-input/counter-input.component";
28
30
  import * as i8 from "./like-button/like-button.component";
29
31
  import * as i9 from "./tabs/tabs.component";
30
- import * as i10 from "./tabs/tab-body.component";
31
- import * as i11 from "./tabs/tab-item.component";
32
- import * as i12 from "./tabs/tab-label.component";
33
- import * as i13 from "./recipe-pricing/recipe-pricing.component";
34
- import * as i14 from "./addon-link/addon-link.component";
35
- import * as i15 from "./recipe-filters/recipe-filters.component";
36
- import * as i16 from "./text-input/text-input.component";
37
- import * as i17 from "./actions-popin/actions-popin.component";
38
- import * as i18 from "./card-create-recipe/card-create-recipe.component";
39
- import * as i19 from "./recipe-type-chooser/recipe-type-chooser.component";
40
- import * as i20 from "./explain-banner/explain-banner.component";
41
- import * as i21 from "./explain-banner/explain-banner-step/explain-banner-step.component";
42
- import * as i22 from "./loader/loader.component";
43
- import * as i23 from "./meals-planner-link/meals-planner-link.component";
44
- import * as i24 from "./modal/modal.component";
45
- import * as i25 from "./progress-tracker/progress-tracker.component";
46
- import * as i26 from "./toaster/toaster.component";
47
- import * as i27 from "./tooltipable-content/tooltipable-content.component";
48
- import * as i28 from "./drag-drop-input/drag-drop-input.component";
49
- import * as i29 from "./sponsor-block-container/sponsor-block-container.component";
50
- import * as i30 from "./sponsor-blocks/sponsor-small-title-block/sponsor-small-title-block.component";
51
- import * as i31 from "./sponsor-blocks/sponsor-title-block/sponsor-title-block.component";
52
- import * as i32 from "./sponsor-blocks/sponsor-small-text-block/sponsor-small-text-block.component";
53
- import * as i33 from "./sponsor-blocks/sponsor-text-block/sponsor-text-block.component";
54
- import * as i34 from "./sponsor-blocks/sponsor-picture-block/sponsor-picture-block.component";
55
- import * as i35 from "./sponsor-blocks/sponsor-small-picture-block/sponsor-small-picture-block.component";
56
- import * as i36 from "./sponsor-blocks/sponsor-image-with-text-block/sponsor-image-with-text-block.component";
57
- import * as i37 from "./sponsor-blocks/sponsor-image-and-text-block/sponsor-image-and-text-block.component";
58
- import * as i38 from "./sponsor-blocks/sponsor-text-and-image-block/sponsor-text-and-image-block.component";
59
- import * as i39 from "./sponsor-blocks/sponsor-logo-block/sponsor-logo-block.component";
32
+ import * as i10 from "./recipe-pricing/recipe-pricing.component";
33
+ import * as i11 from "./addon-link/addon-link.component";
34
+ import * as i12 from "./recipe-filters/recipe-filters.component";
35
+ import * as i13 from "./text-input/text-input.component";
36
+ import * as i14 from "./actions-popin/actions-popin.component";
37
+ import * as i15 from "./card-create-recipe/card-create-recipe.component";
38
+ import * as i16 from "./recipe-type-chooser/recipe-type-chooser.component";
39
+ import * as i17 from "./explain-banner/explain-banner.component";
40
+ import * as i18 from "./explain-banner/explain-banner-step/explain-banner-step.component";
41
+ import * as i19 from "./loader/loader.component";
42
+ import * as i20 from "./meals-planner-link/meals-planner-link.component";
43
+ import * as i21 from "./modal/modal.component";
44
+ import * as i22 from "./progress-tracker/progress-tracker.component";
45
+ import * as i23 from "./toaster/toaster.component";
46
+ import * as i24 from "./tooltipable-content/tooltipable-content.component";
47
+ import * as i25 from "./drag-drop-input/drag-drop-input.component";
48
+ import * as i26 from "./sponsor-block-container/sponsor-block-container.component";
49
+ import * as i27 from "./sponsor-blocks/sponsor-small-title-block/sponsor-small-title-block.component";
50
+ import * as i28 from "./sponsor-blocks/sponsor-title-block/sponsor-title-block.component";
51
+ import * as i29 from "./sponsor-blocks/sponsor-small-text-block/sponsor-small-text-block.component";
52
+ import * as i30 from "./sponsor-blocks/sponsor-text-block/sponsor-text-block.component";
53
+ import * as i31 from "./sponsor-blocks/sponsor-picture-block/sponsor-picture-block.component";
54
+ import * as i32 from "./sponsor-blocks/sponsor-small-picture-block/sponsor-small-picture-block.component";
55
+ import * as i33 from "./sponsor-blocks/sponsor-image-with-text-block/sponsor-image-with-text-block.component";
56
+ import * as i34 from "./sponsor-blocks/sponsor-image-and-text-block/sponsor-image-and-text-block.component";
57
+ import * as i35 from "./sponsor-blocks/sponsor-text-and-image-block/sponsor-text-and-image-block.component";
58
+ import * as i36 from "./sponsor-blocks/sponsor-logo-block/sponsor-logo-block.component";
59
+ import * as i37 from "./products-picker/products-picker.component";
60
+ import * as i38 from "./accordion/accordion.component";
61
+ import * as i39 from "./product-card/product-card.component";
60
62
  import * as i40 from "../_utils/utils.module";
61
63
  import * as i41 from "@angular/common";
62
64
  import * as i42 from "@angular/forms";
63
65
  import * as i43 from "@angular/cdk/drag-drop";
64
66
  import * as i44 from "@angular/cdk/text-field";
65
- export declare const COMPONENTS: (typeof ActionsPopinComponent | typeof AddonLinkComponent | typeof CounterInputComponent | typeof DragDropInputComponent | typeof ExplainBannerStepComponent | typeof ExplainBannerComponent | typeof IconComponent | typeof LikeButtonComponent | typeof ListInputComponent | typeof LoaderComponent | typeof MealsPlannerLinkComponent | typeof ModalComponent | typeof RecipeFiltersComponent | typeof RecipePricingComponent | typeof RecipeTypeChooserComponent | typeof SliderComponent | typeof SponsorBlockContainerComponent | typeof TabsComponent | typeof TimePickerComponent)[];
67
+ export declare const COMPONENTS: (typeof AccordionTitleDirective | typeof AccordionComponent | typeof ActionsPopinComponent | typeof AddonLinkComponent | typeof CounterInputComponent | typeof DragDropInputComponent | typeof ExplainBannerStepComponent | typeof ExplainBannerComponent | typeof IconComponent | typeof LikeButtonComponent | typeof ListInputComponent | typeof MealsPlannerLinkComponent | typeof ProductCardComponent | typeof ProductsPickerComponent | typeof RecipeFiltersComponent | typeof RecipePricingComponent | typeof RecipeTypeChooserComponent | typeof SliderComponent | typeof SliderTabsComponent | typeof SponsorBlockContainerComponent | typeof TabsComponent | typeof TimePickerComponent)[];
66
68
  export declare class ComponentsModule {
67
- static ɵmod: i0.ɵɵNgModuleDefWithMeta<ComponentsModule, [typeof i1.IconComponent, typeof i2.CORSOverlayComponent, typeof i3.ListInputComponent, typeof i4.SkeletonComponent, typeof i5.SliderComponent, typeof i6.TimePickerComponent, typeof i7.CounterInputComponent, typeof i8.LikeButtonComponent, typeof i9.TabsComponent, typeof i10.TabBodyComponent, typeof i11.TabItemComponent, typeof i12.TabLabelComponent, typeof i13.RecipePricingComponent, typeof i14.AddonLinkComponent, typeof i15.RecipeFiltersComponent, typeof i16.TextInputComponent, typeof i17.ActionsPopinComponent, typeof i18.CardCreateRecipeComponent, typeof i19.RecipeTypeChooserComponent, typeof i17.ActionsPopinComponent, typeof i20.ExplainBannerComponent, typeof i21.ExplainBannerStepComponent, typeof i22.LoaderComponent, typeof i23.MealsPlannerLinkComponent, typeof i24.ModalComponent, typeof i25.ProgressTrackerComponent, typeof i26.ToasterComponent, typeof i27.TooltipableContentComponent, typeof i28.DragDropInputComponent, typeof i29.SponsorBlockContainerComponent, typeof i30.SponsorSmallTitleBlockComponent, typeof i31.SponsorTitleBlockComponent, typeof i32.SponsorSmallTextBlockComponent, typeof i33.SponsorTextBlockComponent, typeof i34.SponsorPictureBlockComponent, typeof i35.SponsorSmallPictureBlockComponent, typeof i36.SponsorImageWithTextBlockComponent, typeof i37.SponsorImageAndTextBlockComponent, typeof i38.SponsorTextAndImageBlockComponent, typeof i39.SponsorLogoBlockComponent], [typeof i40.UtilsModule, typeof i41.CommonModule, typeof i42.FormsModule, typeof i42.ReactiveFormsModule, typeof i43.DragDropModule, typeof i44.TextFieldModule], [typeof i1.IconComponent, typeof i2.CORSOverlayComponent, typeof i3.ListInputComponent, typeof i4.SkeletonComponent, typeof i5.SliderComponent, typeof i6.TimePickerComponent, typeof i7.CounterInputComponent, typeof i8.LikeButtonComponent, typeof i9.TabsComponent, typeof i10.TabBodyComponent, typeof i11.TabItemComponent, typeof i12.TabLabelComponent, typeof i13.RecipePricingComponent, typeof i14.AddonLinkComponent, typeof i15.RecipeFiltersComponent, typeof i16.TextInputComponent, typeof i17.ActionsPopinComponent, typeof i18.CardCreateRecipeComponent, typeof i19.RecipeTypeChooserComponent, typeof i17.ActionsPopinComponent, typeof i20.ExplainBannerComponent, typeof i21.ExplainBannerStepComponent, typeof i22.LoaderComponent, typeof i23.MealsPlannerLinkComponent, typeof i24.ModalComponent, typeof i25.ProgressTrackerComponent, typeof i26.ToasterComponent, typeof i27.TooltipableContentComponent, typeof i28.DragDropInputComponent, typeof i29.SponsorBlockContainerComponent, typeof i30.SponsorSmallTitleBlockComponent, typeof i31.SponsorTitleBlockComponent, typeof i32.SponsorSmallTextBlockComponent, typeof i33.SponsorTextBlockComponent, typeof i34.SponsorPictureBlockComponent, typeof i35.SponsorSmallPictureBlockComponent, typeof i36.SponsorImageWithTextBlockComponent, typeof i37.SponsorImageAndTextBlockComponent, typeof i38.SponsorTextAndImageBlockComponent, typeof i39.SponsorLogoBlockComponent]>;
69
+ static ɵmod: i0.ɵɵNgModuleDefWithMeta<ComponentsModule, [typeof i1.IconComponent, typeof i2.CORSOverlayComponent, typeof i3.ListInputComponent, typeof i4.SliderComponent, typeof i5.SliderTabsComponent, typeof i6.TimePickerComponent, typeof i7.CounterInputComponent, typeof i8.LikeButtonComponent, typeof i9.TabsComponent, typeof i10.RecipePricingComponent, typeof i11.AddonLinkComponent, typeof i12.RecipeFiltersComponent, typeof i13.TextInputComponent, typeof i14.ActionsPopinComponent, typeof i15.CardCreateRecipeComponent, typeof i16.RecipeTypeChooserComponent, typeof i14.ActionsPopinComponent, typeof i17.ExplainBannerComponent, typeof i18.ExplainBannerStepComponent, typeof i19.LoaderComponent, typeof i20.MealsPlannerLinkComponent, typeof i21.ModalComponent, typeof i22.ProgressTrackerComponent, typeof i23.ToasterComponent, typeof i24.TooltipableContentComponent, typeof i25.DragDropInputComponent, typeof i26.SponsorBlockContainerComponent, typeof i27.SponsorSmallTitleBlockComponent, typeof i28.SponsorTitleBlockComponent, typeof i29.SponsorSmallTextBlockComponent, typeof i30.SponsorTextBlockComponent, typeof i31.SponsorPictureBlockComponent, typeof i32.SponsorSmallPictureBlockComponent, typeof i33.SponsorImageWithTextBlockComponent, typeof i34.SponsorImageAndTextBlockComponent, typeof i35.SponsorTextAndImageBlockComponent, typeof i36.SponsorLogoBlockComponent, typeof i37.ProductsPickerComponent, typeof i38.AccordionComponent, typeof i38.AccordionContentDirective, typeof i38.AccordionTitleDirective, typeof i39.ProductCardComponent], [typeof i40.UtilsModule, typeof i41.CommonModule, typeof i42.FormsModule, typeof i42.ReactiveFormsModule, typeof i43.DragDropModule, typeof i44.TextFieldModule], [typeof i1.IconComponent, typeof i2.CORSOverlayComponent, typeof i3.ListInputComponent, typeof i4.SliderComponent, typeof i5.SliderTabsComponent, typeof i6.TimePickerComponent, typeof i7.CounterInputComponent, typeof i8.LikeButtonComponent, typeof i9.TabsComponent, typeof i10.RecipePricingComponent, typeof i11.AddonLinkComponent, typeof i12.RecipeFiltersComponent, typeof i13.TextInputComponent, typeof i14.ActionsPopinComponent, typeof i15.CardCreateRecipeComponent, typeof i16.RecipeTypeChooserComponent, typeof i14.ActionsPopinComponent, typeof i17.ExplainBannerComponent, typeof i18.ExplainBannerStepComponent, typeof i19.LoaderComponent, typeof i20.MealsPlannerLinkComponent, typeof i21.ModalComponent, typeof i22.ProgressTrackerComponent, typeof i23.ToasterComponent, typeof i24.TooltipableContentComponent, typeof i25.DragDropInputComponent, typeof i26.SponsorBlockContainerComponent, typeof i27.SponsorSmallTitleBlockComponent, typeof i28.SponsorTitleBlockComponent, typeof i29.SponsorSmallTextBlockComponent, typeof i30.SponsorTextBlockComponent, typeof i31.SponsorPictureBlockComponent, typeof i32.SponsorSmallPictureBlockComponent, typeof i33.SponsorImageWithTextBlockComponent, typeof i34.SponsorImageAndTextBlockComponent, typeof i35.SponsorTextAndImageBlockComponent, typeof i36.SponsorLogoBlockComponent, typeof i37.ProductsPickerComponent, typeof i38.AccordionComponent, typeof i38.AccordionContentDirective, typeof i38.AccordionTitleDirective, typeof i39.ProductCardComponent]>;
68
70
  static ɵinj: i0.ɵɵInjectorDef<ComponentsModule>;
69
71
  }
@@ -1,30 +1,28 @@
1
- import { MediaMatcher } from '@angular/cdk/layout';
2
- import { ChangeDetectorRef, OnChanges } from '@angular/core';
3
- import { ElementRef, OnDestroy, EventEmitter } from '@angular/core';
1
+ import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnChanges, OnInit } from '@angular/core';
4
2
  import { BehaviorSubject } from 'rxjs';
5
3
  import { Icon } from '../../_types/icon.enum';
6
4
  import * as i0 from "@angular/core";
7
- export declare class CounterInputComponent implements OnDestroy, OnChanges {
5
+ export declare class CounterInputComponent implements OnInit, OnChanges, OnDestroy {
8
6
  private cdr;
9
- mediaMatcher: MediaMatcher;
10
- counter: number;
7
+ floating: boolean;
8
+ value: number;
11
9
  minRange: number;
12
10
  maxRange: number;
13
11
  disable: boolean;
14
- counterChange: EventEmitter<number>;
15
- selected: EventEmitter<boolean>;
12
+ minusLoading: boolean;
13
+ plusLoading: boolean;
14
+ valueChange: EventEmitter<number>;
16
15
  counterInput: ElementRef<HTMLElement>;
17
16
  icon: typeof Icon;
18
- counterChanged: BehaviorSubject<number>;
17
+ valueSubject: BehaviorSubject<number>;
19
18
  private subscriptions;
20
- private lastCount;
21
- constructor(cdr: ChangeDetectorRef, mediaMatcher: MediaMatcher);
19
+ private lastValue;
20
+ constructor(cdr: ChangeDetectorRef);
21
+ ngOnInit(): void;
22
22
  ngOnChanges(): void;
23
23
  ngOnDestroy(): void;
24
24
  increment(event: Event): void;
25
25
  decrement(event: Event): void;
26
- prevent(event: Event): void;
27
- updateValue(): void;
28
26
  static ɵfac: i0.ɵɵFactoryDef<CounterInputComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDefWithMeta<CounterInputComponent, "ng-miam-counter-input", never, { "counter": "counter"; "minRange": "minRange"; "maxRange": "maxRange"; "disable": "disable"; }, { "counterChange": "counterChange"; "selected": "selected"; }, never, never>;
27
+ static ɵcmp: i0.ɵɵComponentDefWithMeta<CounterInputComponent, "ng-miam-counter-input", never, { "floating": "floating"; "value": "value"; "minRange": "minRange"; "maxRange": "maxRange"; "disable": "disable"; "minusLoading": "minusLoading"; "plusLoading": "plusLoading"; }, { "valueChange": "valueChange"; }, never, never>;
30
28
  }
@@ -16,12 +16,9 @@ export * from './progress-tracker/progress-tracker.component';
16
16
  export * from './recipe-filters/recipe-filters.component';
17
17
  export * from './recipe-pricing/recipe-pricing.component';
18
18
  export * from './recipe-type-chooser/recipe-type-chooser.component';
19
- export * from './skeleton/skeleton.component';
20
19
  export * from './slider/slider.component';
20
+ export * from './slider-tabs/slider-tabs.component';
21
21
  export * from './text-input/text-input.component';
22
- export * from './tabs/tab-body.component';
23
- export * from './tabs/tab-item.component';
24
- export * from './tabs/tab-label.component';
25
22
  export * from './tabs/tabs.component';
26
23
  export * from './time-picker/time-picker.component';
27
24
  export * from './toaster/toaster.component';
@@ -30,4 +27,7 @@ export * from './modal/modal.component';
30
27
  export * from './sponsor-block-container/sponsor-block-container.component';
31
28
  export * from './sponsor-blocks';
32
29
  export * from './tooltipable-content/tooltipable-content.component';
30
+ export * from './products-picker/products-picker.component';
31
+ export * from './accordion/accordion.component';
32
+ export * from './product-card/product-card.component';
33
33
  export * from './components.module';
@@ -1,15 +1,9 @@
1
- import { MediaMatcher } from '@angular/cdk/layout';
2
- import { OnChanges, EventEmitter, ChangeDetectorRef } from '@angular/core';
3
- import { ContextService } from '../../_services';
1
+ import { EventEmitter } from '@angular/core';
4
2
  import { Icon } from '../../_types/icon.enum';
5
3
  import * as i0 from "@angular/core";
6
- export declare class ModalComponent implements OnChanges {
7
- private cdr;
8
- private mediaMatcher;
9
- private context;
4
+ export declare class ModalComponent {
10
5
  recipesCount: number;
11
- expanded: boolean;
12
- isAngularComponent: boolean;
6
+ display: boolean;
13
7
  confirmButtonIsLoading: boolean;
14
8
  cancelButtonIsLoading: boolean;
15
9
  confirmButtonDisabled: boolean;
@@ -19,21 +13,27 @@ export declare class ModalComponent implements OnChanges {
19
13
  title: string;
20
14
  confirmButtonText: string;
21
15
  cancelButtonText: string;
22
- expandedChange: EventEmitter<boolean>;
16
+ modalStyle: string;
23
17
  close: EventEmitter<any>;
24
18
  cancel: EventEmitter<any>;
25
19
  confirm: EventEmitter<any>;
26
20
  icon: typeof Icon;
27
- scrollPosition: number;
28
- isMobile: boolean;
29
- constructor(cdr: ChangeDetectorRef, mediaMatcher: MediaMatcher, context: ContextService);
30
- ngOnChanges(): void;
21
+ /** Some keys are set to 0 to prevent `preventDefaultForScrollKeys` method from blocking input fields interactions */
22
+ private scrollKeys;
23
+ private pagePosition;
24
+ onScroll(event: WheelEvent): void;
25
+ onTouchStart(event: TouchEvent): void;
26
+ onTouchMove(event: TouchEvent): void;
27
+ onKeyDown(event: KeyboardEvent): void;
28
+ onEscapeDown(): void;
29
+ private isScrollableElement;
30
+ private isPositionFixedOrAbsolute;
31
+ private scrollFirstScrollableElement;
32
+ private setPagePosition;
33
+ private preventDefaultForScrollKeys;
31
34
  onClose(): void;
32
35
  onCancel(): void;
33
36
  onConfirm(): void;
34
- private hide;
35
- private handlePageScroll;
36
- private handleContainerScroll;
37
37
  static ɵfac: i0.ɵɵFactoryDef<ModalComponent, never>;
38
- static ɵcmp: i0.ɵɵComponentDefWithMeta<ModalComponent, "ng-miam-modal", never, { "recipesCount": "recipesCount"; "expanded": "expanded"; "isAngularComponent": "isAngularComponent"; "confirmButtonIsLoading": "confirmButtonIsLoading"; "cancelButtonIsLoading": "cancelButtonIsLoading"; "confirmButtonDisabled": "confirmButtonDisabled"; "cancelButtonDisabled": "cancelButtonDisabled"; "noHeaderMode": "noHeaderMode"; "containerElement": "containerElement"; "title": "title"; "confirmButtonText": "confirmButtonText"; "cancelButtonText": "cancelButtonText"; }, { "expandedChange": "expandedChange"; "close": "close"; "cancel": "cancel"; "confirm": "confirm"; }, never, ["*"]>;
38
+ static ɵcmp: i0.ɵɵComponentDefWithMeta<ModalComponent, "ng-miam-modal", never, { "recipesCount": "recipesCount"; "display": "display"; "confirmButtonIsLoading": "confirmButtonIsLoading"; "cancelButtonIsLoading": "cancelButtonIsLoading"; "confirmButtonDisabled": "confirmButtonDisabled"; "cancelButtonDisabled": "cancelButtonDisabled"; "noHeaderMode": "noHeaderMode"; "containerElement": "containerElement"; "title": "title"; "confirmButtonText": "confirmButtonText"; "cancelButtonText": "cancelButtonText"; "modalStyle": "modalStyle"; }, { "close": "close"; "cancel": "cancel"; "confirm": "confirm"; }, never, ["*"]>;
39
39
  }
@@ -0,0 +1,40 @@
1
+ import { ChangeDetectorRef, OnInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
+ import { BasketEntry, Ingredient } from '../../_models';
3
+ import { AnalyticsService, BasketsService, ItemsService, RecipesService } from '../../_services';
4
+ import { RecipeDetailsService } from '../../_services/recipe-details.service';
5
+ import { EventTracerComponent } from '../abstracts/event-tracer.component';
6
+ import * as i0 from "@angular/core";
7
+ export declare class ProductCardComponent extends EventTracerComponent implements OnInit, OnChanges, OnDestroy {
8
+ private cdr;
9
+ private basketsService;
10
+ recipeDetailsService: RecipeDetailsService;
11
+ private recipesService;
12
+ protected analyticsService: AnalyticsService;
13
+ private itemsService;
14
+ basketEntry: BasketEntry;
15
+ ingredient: Ingredient;
16
+ private subscriptions;
17
+ recipesIncludingIngredient: number;
18
+ modifiedIngQty: number;
19
+ loading: boolean;
20
+ loadingAddToBasket: boolean;
21
+ counterMinusLoading: boolean;
22
+ disabled: boolean;
23
+ updatedPrice: string;
24
+ constructor(cdr: ChangeDetectorRef, basketsService: BasketsService, recipeDetailsService: RecipeDetailsService, recipesService: RecipesService, analyticsService: AnalyticsService, itemsService: ItemsService);
25
+ ngOnInit(): void;
26
+ ngOnChanges(changes: SimpleChanges): void;
27
+ ngOnDestroy(): void;
28
+ updatePriceForItem(): void;
29
+ getProductCardState(): void;
30
+ counterChanged(newCount: number): void;
31
+ addToBasket(): void;
32
+ ignoreProduct(): void;
33
+ replaceProduct(ignoreSelected: boolean): void;
34
+ isInXRecipes(): number;
35
+ currentPath(): string;
36
+ private loadOnRecipesActions;
37
+ private loadOnIngredientsRemoval;
38
+ static ɵfac: i0.ɵɵFactoryDef<ProductCardComponent, never>;
39
+ static ɵcmp: i0.ɵɵComponentDefWithMeta<ProductCardComponent, "ng-miam-product-card", never, { "basketEntry": "basketEntry"; "ingredient": "ingredient"; }, {}, never, never>;
40
+ }
@@ -0,0 +1,17 @@
1
+ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
+ import { ContextService } from '../../_services';
3
+ import { Product, RecipeDetailsService } from '../../_services/recipe-details.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ProductsPickerComponent implements OnInit, OnDestroy {
6
+ contextService: ContextService;
7
+ recipeDetailsService: RecipeDetailsService;
8
+ private cdr;
9
+ private subscriptions;
10
+ constructor(contextService: ContextService, recipeDetailsService: RecipeDetailsService, cdr: ChangeDetectorRef);
11
+ ngOnInit(): void;
12
+ ngOnDestroy(): void;
13
+ listenToProducts(): void;
14
+ trackByFn(index: number, item: Product): string;
15
+ static ɵfac: i0.ɵɵFactoryDef<ProductsPickerComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDefWithMeta<ProductsPickerComponent, "ng-miam-products-picker", never, {}, {}, never, never>;
17
+ }
@@ -1,17 +1,17 @@
1
- import { ChangeDetectorRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
1
+ import { ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
- import { Recipe } from '../../_models';
4
3
  import { RecipePricing } from '../../_models/recipe-pricing';
5
- import { BasketsService, GroceriesListsService, PointOfSalesService, RecipesService, SuppliersService } from '../../_services';
4
+ import { BasketsService, PointOfSalesService, RecipesService, ScrollingService, SuppliersService } from '../../_services';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class RecipePricingComponent implements OnChanges, OnInit, OnDestroy {
8
7
  private recipesService;
9
8
  private supplierService;
10
9
  private posService;
11
- private list;
12
10
  private cdr;
13
11
  private basketsService;
14
- recipe: Recipe;
12
+ element: ElementRef<HTMLElement>;
13
+ private scrollService;
14
+ recipeId: string;
15
15
  serves: number;
16
16
  guestsText: any;
17
17
  pricing: RecipePricing;
@@ -24,14 +24,18 @@ export declare class RecipePricingComponent implements OnChanges, OnInit, OnDest
24
24
  private pricebookKey;
25
25
  private subscriptions;
26
26
  private onChangesSubscription;
27
- constructor(recipesService: RecipesService, supplierService: SuppliersService, posService: PointOfSalesService, list: GroceriesListsService, cdr: ChangeDetectorRef, basketsService: BasketsService);
27
+ private guests$;
28
+ private isInView$;
29
+ constructor(recipesService: RecipesService, supplierService: SuppliersService, posService: PointOfSalesService, cdr: ChangeDetectorRef, basketsService: BasketsService, element: ElementRef<HTMLElement>, scrollService: ScrollingService);
28
30
  ngOnInit(): void;
29
31
  ngOnChanges(changes: SimpleChanges): void;
30
32
  ngOnDestroy(): void;
31
- private initPricing;
33
+ private initPricingFromGuestsAndViewPort;
34
+ private initPricingFromBasketChanges;
32
35
  private fetchPricing;
33
36
  private extractPricing;
34
37
  private format;
38
+ private isInViewport;
35
39
  static ɵfac: i0.ɵɵFactoryDef<RecipePricingComponent, never>;
36
- static ɵcmp: i0.ɵɵComponentDefWithMeta<RecipePricingComponent, "ng-miam-recipe-pricing", never, { "recipe": "recipe"; "serves": "serves"; "guestsText": "guestsText"; }, {}, never, never>;
40
+ static ɵcmp: i0.ɵɵComponentDefWithMeta<RecipePricingComponent, "ng-miam-recipe-pricing", never, { "recipeId": "recipeId"; "serves": "serves"; "guestsText": "guestsText"; }, {}, never, never>;
37
41
  }
@@ -0,0 +1,16 @@
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SliderTabsComponent implements AfterViewInit, OnChanges {
4
+ private cdr;
5
+ tabs: string[];
6
+ selectedTabIndex: number;
7
+ selectedTabIndexChange: EventEmitter<number>;
8
+ background: ElementRef<HTMLElement>;
9
+ constructor(cdr: ChangeDetectorRef);
10
+ ngOnChanges(): void;
11
+ ngAfterViewInit(): void;
12
+ selectTab(tabIndex: number): void;
13
+ repositionBackground(): void;
14
+ static ɵfac: i0.ɵɵFactoryDef<SliderTabsComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDefWithMeta<SliderTabsComponent, "ng-miam-slider-tabs", never, { "tabs": "tabs"; "selectedTabIndex": "selectedTabIndex"; }, { "selectedTabIndexChange": "selectedTabIndexChange"; }, never, never>;
16
+ }
@@ -1,16 +1,16 @@
1
- import { AfterContentChecked, AfterContentInit, ChangeDetectorRef, QueryList } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import { TabItemComponent } from './tab-item.component';
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges } from '@angular/core';
4
2
  import * as i0 from "@angular/core";
5
- export declare class TabsComponent implements AfterContentInit, AfterContentChecked {
3
+ export declare class TabsComponent implements OnChanges, AfterViewInit {
6
4
  private cdr;
7
- tabs: QueryList<TabItemComponent>;
8
- tabItems$: Observable<TabItemComponent[]>;
9
- activeTabItem: TabItemComponent;
5
+ tabs: string[];
6
+ selectedTabIndex: number;
7
+ selectedTabIndexChange: EventEmitter<number>;
8
+ underline: ElementRef;
10
9
  constructor(cdr: ChangeDetectorRef);
11
- ngAfterContentInit(): void;
12
- ngAfterContentChecked(): void;
13
- selectTab(tabItem: TabItemComponent): void;
10
+ ngOnChanges(): void;
11
+ ngAfterViewInit(): void;
12
+ selectTab(tabIndex: number): void;
13
+ calculateUnderline(): void;
14
14
  static ɵfac: i0.ɵɵFactoryDef<TabsComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDefWithMeta<TabsComponent, "ng-miam-tabs", never, {}, {}, ["tabs"], never>;
15
+ static ɵcmp: i0.ɵɵComponentDefWithMeta<TabsComponent, "ng-miam-tabs", never, { "tabs": "tabs"; "selectedTabIndex": "selectedTabIndex"; }, { "selectedTabIndexChange": "selectedTabIndexChange"; }, never, never>;
16
16
  }
@@ -1,13 +1,15 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { Icon } from '../../_types/icon.enum';
3
3
  import { MessageType } from '../../_types/message-type.enum';
4
4
  import { Toaster } from '../../_types/toaster';
5
5
  import * as i0 from "@angular/core";
6
- export declare class ToasterComponent {
6
+ export declare class ToasterComponent implements OnInit {
7
7
  toaster: Toaster;
8
8
  close: EventEmitter<void>;
9
+ toasterTypeString: string;
9
10
  toasterType: typeof MessageType;
10
11
  icon: typeof Icon;
12
+ ngOnInit(): void;
11
13
  onClose(): void;
12
14
  static ɵfac: i0.ɵɵFactoryDef<ToasterComponent, never>;
13
15
  static ɵcmp: i0.ɵɵComponentDefWithMeta<ToasterComponent, "ng-miam-toaster", never, { "toaster": "toaster"; }, { "close": "close"; }, never, never>;
@@ -1,36 +1,32 @@
1
1
  import { Resource, DocumentCollection, DocumentResource } from 'ngx-jsonapi';
2
2
  import { BasketEntriesItem } from './basket-entries-item';
3
- import { GroceriesEntry } from './groceries-entry';
4
3
  import { Item } from './item';
5
4
  export declare class BasketEntry extends Resource {
6
- replacing: boolean;
7
- selectedItem: Item;
8
- candidateItems: Item[];
9
- candidateIndex: number;
10
- totalPrice: string;
11
- showCandidates: boolean;
12
5
  attributes: {
13
6
  'selected-item-id': string;
14
7
  'learning-factor': number;
15
8
  'basket-entries-items': BasketEntriesItem[];
16
9
  quantity: number;
17
- 'recipe-ids': any[];
18
- 'groceries-entry-status': string;
10
+ 'recipe-ids': (string | number)[];
11
+ name: string;
12
+ 'capacity-volume': number;
13
+ 'capacity-unit': string;
14
+ status: string;
19
15
  };
20
16
  relationships: {
21
17
  items: DocumentCollection<Item>;
22
- 'groceries-entry': DocumentResource<GroceriesEntry>;
18
+ 'selected-item': DocumentResource<Item>;
23
19
  };
24
- get entryName(): string;
25
- get groceriesEntry(): GroceriesEntry;
26
- get groceriesEntryStatus(): string;
27
20
  get quantity(): number;
28
21
  set quantity(qty: number);
29
- getItems(): Item[];
30
- getGroceriesEntry(): GroceriesEntry;
31
- setItemsSelection(): void;
32
- updateTotalPrice(): void;
33
- selectItem(id: string): void;
34
- swipeCandidate(indexIncrement: number): void;
35
- toggleShowCandidates(): void;
22
+ get status(): string;
23
+ set status(st: string);
24
+ get name(): string;
25
+ get recipesIds(): (string | number)[];
26
+ get ingredientsQuantity(): number;
27
+ get ingredientsUnit(): string;
28
+ get items(): Item[];
29
+ get selectedItem(): Item;
30
+ get candidateItems(): Item[];
31
+ get totalprice(): string;
36
32
  }
@@ -5,6 +5,7 @@ export interface LineEntries {
5
5
  notFound: BasketEntry[];
6
6
  oftenDeleted: BasketEntry[];
7
7
  removed: BasketEntry[];
8
+ all: BasketEntry[];
8
9
  }
9
10
  export declare class BasketPreviewLine {
10
11
  id?: string;
@@ -1,30 +1,37 @@
1
- import { Resource, DocumentCollection, DocumentResource } from 'ngx-jsonapi';
2
- import { BasketEntry, PointOfSale } from '.';
1
+ import { Resource, DocumentCollection } from 'ngx-jsonapi';
2
+ import { BasketEntry } from '.';
3
3
  export interface BasketCompletion {
4
4
  total: number;
5
5
  found: number;
6
6
  }
7
7
  export declare class Basket extends Resource {
8
8
  attributes: {
9
- name: string;
10
9
  confirmed: boolean;
11
10
  completion: {
12
11
  total: number;
13
12
  found: number;
14
13
  };
14
+ 'recipes-infos': {
15
+ id: string;
16
+ guests?: string;
17
+ }[];
15
18
  'total-price': number;
16
19
  token: string;
17
20
  'pricebook-key': string;
18
21
  };
19
22
  relationships: {
20
23
  'basket-entries': DocumentCollection<BasketEntry>;
21
- 'point-of-sale': DocumentResource<PointOfSale>;
22
24
  };
23
- get redirectUrl(): string;
24
25
  get completion(): BasketCompletion;
26
+ get recipeInfos(): {
27
+ id: string;
28
+ guests?: string;
29
+ }[];
25
30
  get entries(): BasketEntry[];
26
31
  get totalPrice(): number;
27
32
  get token(): string;
28
33
  get pricebookKey(): string;
29
34
  set pricebookKey(key: string);
35
+ hasRecipe(recipeId: string): boolean;
36
+ guestsForRecipe(recipeId: string): number;
30
37
  }
@@ -33,5 +33,5 @@ export declare class Item extends Resource {
33
33
  get capacityFactor(): number;
34
34
  get capacityUnit(): string;
35
35
  get pftPlages(): number[];
36
- getPrice(): number;
36
+ get price(): number;
37
37
  }
@@ -53,11 +53,7 @@ export declare class Recipe extends Resource {
53
53
  selected: boolean;
54
54
  finalTimer: string;
55
55
  modifiedGuests: number;
56
- private _eventsGroupId;
57
- private _eventOrigin;
58
56
  private _normalizedIngredients;
59
- get eventsGroupId(): string;
60
- get eventOrigin(): string;
61
57
  get title(): string;
62
58
  get promoted(): boolean;
63
59
  get guests(): string;
@@ -83,6 +79,5 @@ export declare class Recipe extends Resource {
83
79
  get videoId(): string;
84
80
  get position(): number;
85
81
  set position(p: number);
86
- shallowCopyWithEvents(origin: string, groupId: string): Recipe;
87
82
  private formatDuration;
88
83
  }
@@ -6,7 +6,6 @@ export declare class User {
6
6
  picture: string;
7
7
  from_user_id: string;
8
8
  app_metadata: {
9
- current_groceries_list_id: string;
10
9
  recipe_provider: string;
11
10
  permissions: string[];
12
11
  roles: string[];