ng-miam 8.3.11 → 8.3.13

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.
@@ -5636,11 +5636,12 @@
5636
5636
  };
5637
5637
  ContextService.prototype.generateAuthlessIdIfNecessary = function () {
5638
5638
  var _this = this;
5639
- return this.userService.generatingAuthlessId$.pipe(operators.take(1), operators.switchMap(function (isGenerating) { return isGenerating
5640
- || _this.loggedOnSession
5641
- || !!localStorage.getItem('_miam/authlessId')
5642
- ? rxjs.of(null)
5643
- : _this.userService.generateAnonymousUserId(); }));
5639
+ return this.userService.generatingAuthlessId$.pipe(operators.debounceTime(800), operators.take(1), operators.switchMap(function (isGenerating) {
5640
+ if (isGenerating || _this.loggedOnSession || !!localStorage.getItem('_miam/authlessId')) {
5641
+ return rxjs.of(null);
5642
+ }
5643
+ return _this.userService.generateAnonymousUserId();
5644
+ }));
5644
5645
  };
5645
5646
  return ContextService;
5646
5647
  }());
@@ -8486,7 +8487,7 @@
8486
8487
  MiamInterceptor.prototype.setMiamHeaders = function (request) {
8487
8488
  var headersToAdd = {
8488
8489
  'miam-origin': this.context.origin.value,
8489
- 'miam-front-version': '8.3.11',
8490
+ 'miam-front-version': '8.3.13',
8490
8491
  'miam-front-type': 'web',
8491
8492
  'miam-api-version': '4.7.0'
8492
8493
  };
@@ -13775,7 +13776,7 @@
13775
13776
  i0__namespace.ɵɵtemplate(0, ProductCardComponent_div_0_Template, 15, 25, "div", 0);
13776
13777
  }
13777
13778
  if (rf & 2) {
13778
- i0__namespace.ɵɵproperty("ngIf", ctx.product.basketEntry && ctx.product.basketEntry.selectedItem);
13779
+ i0__namespace.ɵɵproperty("ngIf", ctx.product.basketEntry);
13779
13780
  }
13780
13781
  }, directives: [i2__namespace$1.NgIf, i2__namespace$1.NgClass, PriceComponent, CounterInputComponent], pipes: [CapitalizeFirstLetterPipe, i2__namespace$1.DecimalPipe, i2__namespace$1.CurrencyPipe, i2__namespace$1.AsyncPipe], styles: [".miam-product-card__container{display:flex;flex-direction:column;box-sizing:border-box;height:100%;border-radius:8px;overflow:hidden;border:1px solid var(--miam-ds-color-primary-100,#e4eaec);background:var(--miam-ds-color-primary-text,#fff);transition:all .3s}.miam-product-card__container.added{border:1px solid var(--miam-ds-color-primary,#24748f);background:var(--miam-ds-color-primary-text,#fff)}.miam-product-card__container .miam-product-card__header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;padding:8px;color:var(--miam-ds-color-neutral-black,#1f3543);background:var(--miam-ds-color-primary-100,#e4eaec);transition:all .3s}.miam-product-card__container .miam-product-card__header.added{background:var(--miam-ds-color-primary,#24748f);color:var(--core-background-background-primary,#fff)}.miam-product-card__container .miam-product-card__header.disabled{background:var(--miam-ds-color-neutral-200,#d9dde1)}.miam-product-card__container .miam-product-card__header .miam-product-card__header-quantity{text-align:right}.miam-product-card__container .miam-product-card__content{padding:8px 12px;height:100%;display:flex;flex-direction:column;gap:12px;background-color:var(--miam-ds-color-neutral-white,#fff);transition:background-color .3s}.miam-product-card__container .miam-product-card__content.disabled{justify-content:center;align-items:center;gap:12px;padding:12px;text-align:center;background-color:var(--miam-ds-color-neutral-200,#d9dde1)}@media (max-width:1023px){.miam-product-card__container .miam-product-card__content{padding:12px}}@media (min-width:1023px) and (max-height:800px){.miam-product-card__container .miam-product-card__content{padding:12px}}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product{display:flex;align-items:center;justify-content:center;flex-direction:column;height:100%}@media (max-width:1023px){.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product{flex-direction:row;justify-content:flex-start;align-items:flex-start;gap:16px}}@media (min-width:1023px) and (max-height:800px){.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product{flex-direction:row;justify-content:flex-start;align-items:flex-start;gap:16px}}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__picture{height:72px;width:72px}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column{display:flex;flex-direction:column;align-items:center;justify-content:center}@media (max-width:1023px){.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column{align-items:flex-start}}@media (min-width:1023px) and (max-height:800px){.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column{align-items:flex-start}}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details{font-size:12px!important;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--miam-ds-color-neutral-black,#1f3543)}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details.product-brand{text-transform:uppercase}@media screen{.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details.product-fullname{height:36px}}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__link{font-size:14px}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__badges{display:flex;gap:8px;margin:8px 0}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__badges .miam-product-card__badge-text{color:var(--miam-ds-color-neutral-black,#1f3543);font-size:12px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action{display:flex;align-items:center;justify-content:space-between;gap:8px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta{display:flex;align-items:center;gap:12px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta .miam-ds-button.square{padding:8px;height:40px;width:40px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta .miam-product-card__loading-button{padding:14px}@media (max-width:1024px){.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta .miam-ds-button.primary:hover{background-color:var(--miam-ds-color-primary)}}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__price{color:var(--miam-ds-color-primary,#24748f)}.miam-product-card__container .miam-product-card__disabled-text{color:var(--miam-ds-color-neutral-black,#1f3543);opacity:.65}.miam-product-card__container .miam-product-card__footer{display:flex;flex-direction:column;align-items:center;background:var(--miam-ds-color-primary-50,#f0f3f4);padding:8px}.miam-product-card__container .miam-product-card__footer .light-text{color:var(--miam-ds-color-neutral-black,#1f3543);opacity:.5}"], encapsulation: 2, changeDetection: 0 });
13781
13782
  (function () {
@@ -13845,20 +13846,32 @@
13845
13846
  i0__namespace.ɵɵelement(0, "div", 14);
13846
13847
  }
13847
13848
  }
13848
- function ProductsPickerComponent_div_7_ng_miam_product_card_1_Template(rf, ctx) {
13849
+ function ProductsPickerComponent_div_7_ng_container_1_ng_miam_product_card_1_Template(rf, ctx) {
13850
+ if (rf & 1) {
13851
+ i0__namespace.ɵɵelement(0, "ng-miam-product-card", 18);
13852
+ }
13853
+ if (rf & 2) {
13854
+ var product_r14 = i0__namespace.ɵɵnextContext().$implicit;
13855
+ var ctx_r15 = i0__namespace.ɵɵnextContext(2);
13856
+ i0__namespace.ɵɵproperty("id", "miam_" + product_r14.basketEntry.nameId + "_product_card")("product", product_r14)("originTrace", ctx_r15.eventTrace());
13857
+ }
13858
+ }
13859
+ function ProductsPickerComponent_div_7_ng_container_1_Template(rf, ctx) {
13849
13860
  if (rf & 1) {
13850
- i0__namespace.ɵɵelement(0, "ng-miam-product-card", 17);
13861
+ i0__namespace.ɵɵelementContainerStart(0);
13862
+ i0__namespace.ɵɵtemplate(1, ProductsPickerComponent_div_7_ng_container_1_ng_miam_product_card_1_Template, 1, 3, "ng-miam-product-card", 17);
13863
+ i0__namespace.ɵɵelementContainerEnd();
13851
13864
  }
13852
13865
  if (rf & 2) {
13853
13866
  var product_r14 = ctx.$implicit;
13854
- var ctx_r13 = i0__namespace.ɵɵnextContext(2);
13855
- i0__namespace.ɵɵproperty("id", "miam_" + product_r14.basketEntry.nameId + "_product_card")("product", product_r14)("originTrace", ctx_r13.eventTrace());
13867
+ i0__namespace.ɵɵadvance(1);
13868
+ i0__namespace.ɵɵproperty("ngIf", product_r14.basketEntry == null ? null : product_r14.basketEntry.selectedItem);
13856
13869
  }
13857
13870
  }
13858
13871
  function ProductsPickerComponent_div_7_Template(rf, ctx) {
13859
13872
  if (rf & 1) {
13860
13873
  i0__namespace.ɵɵelementStart(0, "div", 15);
13861
- i0__namespace.ɵɵtemplate(1, ProductsPickerComponent_div_7_ng_miam_product_card_1_Template, 1, 3, "ng-miam-product-card", 16);
13874
+ i0__namespace.ɵɵtemplate(1, ProductsPickerComponent_div_7_ng_container_1_Template, 2, 1, "ng-container", 16);
13862
13875
  i0__namespace.ɵɵelementEnd();
13863
13876
  }
13864
13877
  if (rf & 2) {
@@ -13869,28 +13882,28 @@
13869
13882
  }
13870
13883
  function ProductsPickerComponent_ng_container_10_ng_miam_product_card_7_Template(rf, ctx) {
13871
13884
  if (rf & 1) {
13872
- i0__namespace.ɵɵelement(0, "ng-miam-product-card", 17);
13885
+ i0__namespace.ɵɵelement(0, "ng-miam-product-card", 18);
13873
13886
  }
13874
13887
  if (rf & 2) {
13875
- var product_r16 = ctx.$implicit;
13876
- var ctx_r15 = i0__namespace.ɵɵnextContext(2);
13877
- i0__namespace.ɵɵproperty("id", "miam_" + product_r16.basketEntry.nameId + "_product_card")("product", product_r16)("originTrace", ctx_r15.eventTrace());
13888
+ var product_r18 = ctx.$implicit;
13889
+ var ctx_r17 = i0__namespace.ɵɵnextContext(2);
13890
+ i0__namespace.ɵɵproperty("id", "miam_" + product_r18.basketEntry.nameId + "_product_card")("product", product_r18)("originTrace", ctx_r17.eventTrace());
13878
13891
  }
13879
13892
  }
13880
13893
  function ProductsPickerComponent_ng_container_10_Template(rf, ctx) {
13881
13894
  if (rf & 1) {
13882
- var _r18_1 = i0__namespace.ɵɵgetCurrentView();
13895
+ var _r20_1 = i0__namespace.ɵɵgetCurrentView();
13883
13896
  i0__namespace.ɵɵelementContainerStart(0);
13884
- i0__namespace.ɵɵelementStart(1, "ng-miam-accordion", 18);
13885
- i0__namespace.ɵɵlistener("isCollapsedChange", function ProductsPickerComponent_ng_container_10_Template_ng_miam_accordion_isCollapsedChange_1_listener() { i0__namespace.ɵɵrestoreView(_r18_1); var ctx_r17 = i0__namespace.ɵɵnextContext(); return ctx_r17.cdr.detectChanges(); });
13897
+ i0__namespace.ɵɵelementStart(1, "ng-miam-accordion", 19);
13898
+ i0__namespace.ɵɵlistener("isCollapsedChange", function ProductsPickerComponent_ng_container_10_Template_ng_miam_accordion_isCollapsedChange_1_listener() { i0__namespace.ɵɵrestoreView(_r20_1); var ctx_r19 = i0__namespace.ɵɵnextContext(); return ctx_r19.cdr.detectChanges(); });
13886
13899
  i0__namespace.ɵɵelementStart(2, "ng-miam-accordion-title");
13887
- i0__namespace.ɵɵelementStart(3, "span", 19);
13888
- i0__namespace.ɵɵi18n(4, 20);
13900
+ i0__namespace.ɵɵelementStart(3, "span", 20);
13901
+ i0__namespace.ɵɵi18n(4, 21);
13889
13902
  i0__namespace.ɵɵelementEnd();
13890
13903
  i0__namespace.ɵɵelementEnd();
13891
13904
  i0__namespace.ɵɵelementStart(5, "ng-miam-accordion-content");
13892
13905
  i0__namespace.ɵɵelementStart(6, "div", 15);
13893
- i0__namespace.ɵɵtemplate(7, ProductsPickerComponent_ng_container_10_ng_miam_product_card_7_Template, 1, 3, "ng-miam-product-card", 16);
13906
+ i0__namespace.ɵɵtemplate(7, ProductsPickerComponent_ng_container_10_ng_miam_product_card_7_Template, 1, 3, "ng-miam-product-card", 22);
13894
13907
  i0__namespace.ɵɵelementEnd();
13895
13908
  i0__namespace.ɵɵelementEnd();
13896
13909
  i0__namespace.ɵɵelementEnd();
@@ -13906,28 +13919,28 @@
13906
13919
  }
13907
13920
  function ProductsPickerComponent_ng_container_11_ng_miam_product_card_7_Template(rf, ctx) {
13908
13921
  if (rf & 1) {
13909
- i0__namespace.ɵɵelement(0, "ng-miam-product-card", 17);
13922
+ i0__namespace.ɵɵelement(0, "ng-miam-product-card", 18);
13910
13923
  }
13911
13924
  if (rf & 2) {
13912
- var product_r20 = ctx.$implicit;
13913
- var ctx_r19 = i0__namespace.ɵɵnextContext(2);
13914
- i0__namespace.ɵɵproperty("id", "miam_" + product_r20.basketEntry.nameId + "_product_card")("product", product_r20)("originTrace", ctx_r19.eventTrace());
13925
+ var product_r22 = ctx.$implicit;
13926
+ var ctx_r21 = i0__namespace.ɵɵnextContext(2);
13927
+ i0__namespace.ɵɵproperty("id", "miam_" + product_r22.basketEntry.nameId + "_product_card")("product", product_r22)("originTrace", ctx_r21.eventTrace());
13915
13928
  }
13916
13929
  }
13917
13930
  function ProductsPickerComponent_ng_container_11_Template(rf, ctx) {
13918
13931
  if (rf & 1) {
13919
- var _r22_1 = i0__namespace.ɵɵgetCurrentView();
13932
+ var _r24_1 = i0__namespace.ɵɵgetCurrentView();
13920
13933
  i0__namespace.ɵɵelementContainerStart(0);
13921
- i0__namespace.ɵɵelementStart(1, "ng-miam-accordion", 21);
13922
- i0__namespace.ɵɵlistener("isCollapsedChange", function ProductsPickerComponent_ng_container_11_Template_ng_miam_accordion_isCollapsedChange_1_listener() { i0__namespace.ɵɵrestoreView(_r22_1); var ctx_r21 = i0__namespace.ɵɵnextContext(); return ctx_r21.cdr.detectChanges(); });
13934
+ i0__namespace.ɵɵelementStart(1, "ng-miam-accordion", 23);
13935
+ i0__namespace.ɵɵlistener("isCollapsedChange", function ProductsPickerComponent_ng_container_11_Template_ng_miam_accordion_isCollapsedChange_1_listener() { i0__namespace.ɵɵrestoreView(_r24_1); var ctx_r23 = i0__namespace.ɵɵnextContext(); return ctx_r23.cdr.detectChanges(); });
13923
13936
  i0__namespace.ɵɵelementStart(2, "ng-miam-accordion-title");
13924
- i0__namespace.ɵɵelementStart(3, "span", 19);
13925
- i0__namespace.ɵɵi18n(4, 22);
13937
+ i0__namespace.ɵɵelementStart(3, "span", 20);
13938
+ i0__namespace.ɵɵi18n(4, 24);
13926
13939
  i0__namespace.ɵɵelementEnd();
13927
13940
  i0__namespace.ɵɵelementEnd();
13928
13941
  i0__namespace.ɵɵelementStart(5, "ng-miam-accordion-content");
13929
13942
  i0__namespace.ɵɵelementStart(6, "div", 15);
13930
- i0__namespace.ɵɵtemplate(7, ProductsPickerComponent_ng_container_11_ng_miam_product_card_7_Template, 1, 3, "ng-miam-product-card", 16);
13943
+ i0__namespace.ɵɵtemplate(7, ProductsPickerComponent_ng_container_11_ng_miam_product_card_7_Template, 1, 3, "ng-miam-product-card", 22);
13931
13944
  i0__namespace.ɵɵelementEnd();
13932
13945
  i0__namespace.ɵɵelementEnd();
13933
13946
  i0__namespace.ɵɵelementEnd();
@@ -13943,10 +13956,10 @@
13943
13956
  }
13944
13957
  function ProductsPickerComponent_a_13_Template(rf, ctx) {
13945
13958
  if (rf & 1) {
13946
- i0__namespace.ɵɵelementStart(0, "a", 23);
13947
- i0__namespace.ɵɵelementStart(1, "button", 24);
13959
+ i0__namespace.ɵɵelementStart(0, "a", 25);
13960
+ i0__namespace.ɵɵelementStart(1, "button", 26);
13948
13961
  i0__namespace.ɵɵelementStart(2, "span");
13949
- i0__namespace.ɵɵi18n(3, 25);
13962
+ i0__namespace.ɵɵi18n(3, 27);
13950
13963
  i0__namespace.ɵɵelementEnd();
13951
13964
  i0__namespace.ɵɵelementEnd();
13952
13965
  i0__namespace.ɵɵelementEnd();
@@ -13958,11 +13971,11 @@
13958
13971
  }
13959
13972
  function ProductsPickerComponent_ng_template_14_Template(rf, ctx) {
13960
13973
  if (rf & 1) {
13961
- var _r24_1 = i0__namespace.ɵɵgetCurrentView();
13962
- i0__namespace.ɵɵelementStart(0, "button", 26);
13963
- i0__namespace.ɵɵlistener("click", function ProductsPickerComponent_ng_template_14_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r24_1); var ctx_r23 = i0__namespace.ɵɵnextContext(); return ctx_r23.closeRecipeModal(); });
13974
+ var _r26_1 = i0__namespace.ɵɵgetCurrentView();
13975
+ i0__namespace.ɵɵelementStart(0, "button", 28);
13976
+ i0__namespace.ɵɵlistener("click", function ProductsPickerComponent_ng_template_14_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r26_1); var ctx_r25 = i0__namespace.ɵɵnextContext(); return ctx_r25.closeRecipeModal(); });
13964
13977
  i0__namespace.ɵɵelementStart(1, "span");
13965
- i0__namespace.ɵɵi18n(2, 27);
13978
+ i0__namespace.ɵɵi18n(2, 29);
13966
13979
  i0__namespace.ɵɵelementEnd();
13967
13980
  i0__namespace.ɵɵelementEnd();
13968
13981
  }
@@ -14064,7 +14077,7 @@
14064
14077
  else {
14065
14078
  i18n_10 = $localize(templateObject_6$e || (templateObject_6$e = __makeTemplateObject([":\u241Fe98c28a19e26d5768391fd181582d011334dac18\u241F7935172570546041466:Voir plus d'id\u00E9es repas"], [":\u241Fe98c28a19e26d5768391fd181582d011334dac18\u241F7935172570546041466:Voir plus d'id\u00E9es repas"])));
14066
14079
  }
14067
- return [[1, "miam-products-picker__container"], [1, "miam-products-picker__header"], [1, "miam-products-picker__header-text", "miam-ds-text", "weight-xxl"], [4, "ngIf"], ["class", "miam-recipe-details__guest-counter", 3, "floating", "value", "minRange", "valueChange", 4, "ngIf"], ["class", " miam-ds-loader miam-products-picker__loader", 4, "ngIf"], ["class", "miam-products-picker__list", 4, "ngIf"], [1, "miam-products-picker__secondary-list"], [1, "miam-products-picker__more"], ["class", "miam-products-picker__more-anchor", 3, "href", 4, "ngIf", "ngIfElse"], ["noAnchor", ""], i18n_0, i18n_2, [1, "miam-recipe-details__guest-counter", 3, "floating", "value", "minRange", "valueChange"], [1, "miam-ds-loader", "miam-products-picker__loader"], [1, "miam-products-picker__list"], ["class", "miam-products-picker__items", 3, "id", "product", "originTrace", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "miam-products-picker__items", 3, "id", "product", "originTrace"], [1, "miam-products-picker__often-ignored-list", 3, "isCollapsed", "isCollapsedChange"], [1, "miam-ds-text", "weight-xxl"], i18n_4, [1, "miam-products-picker__unavailable-list", 3, "isCollapsed", "isCollapsedChange"], i18n_6, [1, "miam-products-picker__more-anchor", 3, "href"], [1, "miam-products-picker__go-to-catalog-button", "miam-ds-button", "secondary"], i18n_8, [1, "miam-products-picker__close-modal-button", "miam-ds-button", "secondary", 3, "click"], i18n_10];
14080
+ return [[1, "miam-products-picker__container"], [1, "miam-products-picker__header"], [1, "miam-products-picker__header-text", "miam-ds-text", "weight-xxl"], [4, "ngIf"], ["class", "miam-recipe-details__guest-counter", 3, "floating", "value", "minRange", "valueChange", 4, "ngIf"], ["class", " miam-ds-loader miam-products-picker__loader", 4, "ngIf"], ["class", "miam-products-picker__list", 4, "ngIf"], [1, "miam-products-picker__secondary-list"], [1, "miam-products-picker__more"], ["class", "miam-products-picker__more-anchor", 3, "href", 4, "ngIf", "ngIfElse"], ["noAnchor", ""], i18n_0, i18n_2, [1, "miam-recipe-details__guest-counter", 3, "floating", "value", "minRange", "valueChange"], [1, "miam-ds-loader", "miam-products-picker__loader"], [1, "miam-products-picker__list"], [4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "miam-products-picker__items", 3, "id", "product", "originTrace", 4, "ngIf"], [1, "miam-products-picker__items", 3, "id", "product", "originTrace"], [1, "miam-products-picker__often-ignored-list", 3, "isCollapsed", "isCollapsedChange"], [1, "miam-ds-text", "weight-xxl"], i18n_4, ["class", "miam-products-picker__items", 3, "id", "product", "originTrace", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "miam-products-picker__unavailable-list", 3, "isCollapsed", "isCollapsedChange"], i18n_6, [1, "miam-products-picker__more-anchor", 3, "href"], [1, "miam-products-picker__go-to-catalog-button", "miam-ds-button", "secondary"], i18n_8, [1, "miam-products-picker__close-modal-button", "miam-ds-button", "secondary", 3, "click"], i18n_10];
14068
14081
  }, template: function ProductsPickerComponent_Template(rf, ctx) {
14069
14082
  if (rf & 1) {
14070
14083
  i0__namespace.ɵɵelementStart(0, "div", 0);