ng-miam 8.3.4 → 8.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/ng-miam.umd.js +19 -3
- package/bundles/ng-miam.umd.js.map +1 -1
- package/bundles/ng-miam.umd.min.js +1 -1
- package/bundles/ng-miam.umd.min.js.map +1 -1
- package/esm2015/lib/_components/store-locator/store-locator.component.js +6 -4
- package/esm2015/lib/_services/interceptor.service.js +2 -2
- package/esm2015/lib/_web-components/recipe-cards/recipe-card-cta/recipe-card-cta.component.js +8 -1
- package/esm2015/lib/_web-components/recipe-pricing/recipe-pricing.component.js +8 -1
- package/fesm2015/ng-miam.js +19 -3
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_components/store-locator/store-locator.component.d.ts.map +1 -1
- package/lib/_web-components/recipe-cards/recipe-card-cta/recipe-card-cta.component.d.ts +1 -0
- package/lib/_web-components/recipe-cards/recipe-card-cta/recipe-card-cta.component.d.ts.map +1 -1
- package/lib/_web-components/recipe-pricing/recipe-pricing.component.d.ts +1 -0
- package/lib/_web-components/recipe-pricing/recipe-pricing.component.d.ts.map +1 -1
- package/package.json +1 -1
package/bundles/ng-miam.umd.js
CHANGED
|
@@ -8438,7 +8438,7 @@
|
|
|
8438
8438
|
request = request.clone({
|
|
8439
8439
|
setHeaders: {
|
|
8440
8440
|
'miam-origin': this.context.origin.value,
|
|
8441
|
-
'miam-front-version': '8.3.
|
|
8441
|
+
'miam-front-version': '8.3.5',
|
|
8442
8442
|
'miam-front-type': 'web',
|
|
8443
8443
|
'miam-api-version': '4.7.0',
|
|
8444
8444
|
'language-id': environment$1.lang
|
|
@@ -11737,7 +11737,11 @@
|
|
|
11737
11737
|
};
|
|
11738
11738
|
RecipePricingComponent.prototype.ngOnChanges = function (changes) {
|
|
11739
11739
|
if (changes.serves) {
|
|
11740
|
+
var previousGuests = this.guests$.value;
|
|
11740
11741
|
this.guests$.next(this.serves);
|
|
11742
|
+
if (this.recipeId && previousGuests > 0 && previousGuests !== this.serves) {
|
|
11743
|
+
this.updateRecipeGuests();
|
|
11744
|
+
}
|
|
11741
11745
|
}
|
|
11742
11746
|
if (changes.recipeId || changes.recipeExtId) {
|
|
11743
11747
|
this.initPricing();
|
|
@@ -11778,6 +11782,9 @@
|
|
|
11778
11782
|
e.stopPropagation();
|
|
11779
11783
|
this.recipesService.openStoreLocator();
|
|
11780
11784
|
};
|
|
11785
|
+
RecipePricingComponent.prototype.updateRecipeGuests = function () {
|
|
11786
|
+
this.basketsService.updateRecipesInBasket([this.recipeId], this.guests$.value, { originPath: '', props: { recipe_id: this.recipeId } });
|
|
11787
|
+
};
|
|
11781
11788
|
RecipePricingComponent.prototype.initPricingFromGuestsAndViewPort = function () {
|
|
11782
11789
|
var _this = this;
|
|
11783
11790
|
// If the recipe is in basket, we ignore the change => pricing will be updated when the new basket preview is ready
|
|
@@ -14160,14 +14167,16 @@
|
|
|
14160
14167
|
if (rf & 2) {
|
|
14161
14168
|
i0__namespace.ɵɵproperty("show", i0__namespace.ɵɵpipeBind1(1, 1, ctx.storeLocatorService.storeLocatorOpened$));
|
|
14162
14169
|
}
|
|
14163
|
-
}, pipes: [i2__namespace$1.AsyncPipe], styles: [""] });
|
|
14170
|
+
}, pipes: [i2__namespace$1.AsyncPipe], styles: [""], encapsulation: 2, changeDetection: 0 });
|
|
14164
14171
|
(function () {
|
|
14165
14172
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(StoreLocatorComponent, [{
|
|
14166
14173
|
type: i0.Component,
|
|
14167
14174
|
args: [{
|
|
14168
14175
|
selector: 'ng-miam-store-locator',
|
|
14169
14176
|
templateUrl: './store-locator.component.html',
|
|
14170
|
-
styleUrls: ['./store-locator.component.scss']
|
|
14177
|
+
styleUrls: ['./store-locator.component.scss'],
|
|
14178
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
14179
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
14171
14180
|
}]
|
|
14172
14181
|
}], function () { return [{ type: AnalyticsService }, { type: ContextService }, { type: StoreLocatorService }]; }, null);
|
|
14173
14182
|
})();
|
|
@@ -19058,7 +19067,11 @@
|
|
|
19058
19067
|
var _this = this;
|
|
19059
19068
|
var _a;
|
|
19060
19069
|
if (this.recipe && changes.serves) {
|
|
19070
|
+
var previousGuests = +this.recipe.modifiedGuests;
|
|
19061
19071
|
this.recipe.modifiedGuests = this.serves;
|
|
19072
|
+
if (previousGuests !== this.serves) {
|
|
19073
|
+
this.updateRecipeGuests();
|
|
19074
|
+
}
|
|
19062
19075
|
}
|
|
19063
19076
|
if (!this.recipe && ((_a = this.recipeName) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
19064
19077
|
this.subscriptions.push(this.searchRecipeByName().subscribe(function (result) {
|
|
@@ -19119,6 +19132,9 @@
|
|
|
19119
19132
|
}, this.eventTrace());
|
|
19120
19133
|
this.displayed.emit();
|
|
19121
19134
|
};
|
|
19135
|
+
RecipeCardCtaComponent.prototype.updateRecipeGuests = function () {
|
|
19136
|
+
this.basketsService.updateRecipesInBasket([this.recipe.id], this.recipe.modifiedGuests, { originPath: '', props: { recipe_id: this.recipe.id } });
|
|
19137
|
+
};
|
|
19122
19138
|
return RecipeCardCtaComponent;
|
|
19123
19139
|
}(EventTracerComponent));
|
|
19124
19140
|
RecipeCardCtaComponent.ɵfac = function RecipeCardCtaComponent_Factory(t) { return new (t || RecipeCardCtaComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(UserService), i0__namespace.ɵɵdirectiveInject(PointOfSalesService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(ToasterService)); };
|