ng-miam 4.7.0 → 4.7.2
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 +12 -18
- 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/_web-components/recipe-details/recipe-details.component.js +7 -2
- package/esm2015/lib/_web-components/recipe-modal/recipe-modal.component.js +6 -15
- package/fesm2015/ng-miam.js +11 -15
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_web-components/recipe-details/recipe-details.component.d.ts +3 -2
- package/package.json +1 -1
package/bundles/ng-miam.umd.js
CHANGED
|
@@ -17151,9 +17151,15 @@
|
|
|
17151
17151
|
_this.addButtonLoading = false;
|
|
17152
17152
|
_this.titleInHeader = false;
|
|
17153
17153
|
_this.subscriptions = [];
|
|
17154
|
-
_this.isMobile = _this.mediaMatcher.matchMedia('(max-width: 1023px)').matches;
|
|
17155
17154
|
return _this;
|
|
17156
17155
|
}
|
|
17156
|
+
RecipeDetailsComponent.prototype.ngOnInit = function () {
|
|
17157
|
+
var _this = this;
|
|
17158
|
+
this.subscriptions.push(this.contextService.miam.user.isSmallScreen$.subscribe(function (isSmall) {
|
|
17159
|
+
_this.isMobile = isSmall;
|
|
17160
|
+
_this.cdr.detectChanges();
|
|
17161
|
+
}));
|
|
17162
|
+
};
|
|
17157
17163
|
RecipeDetailsComponent.prototype.ngOnChanges = function (changes) {
|
|
17158
17164
|
var _this = this;
|
|
17159
17165
|
var _a;
|
|
@@ -19362,31 +19368,19 @@
|
|
|
19362
19368
|
i0.ɵɵproperty("recipe", ctx_r0.recipe)("previewAllowed", ctx_r0.previewAllowed)("originTrace", ctx_r0.eventTrace)("stepsOnLeftSide", ctx_r0.detailsStepsOnLeftSide)("moreRecipesImageURL", ctx_r0.detailsMoreRecipesImageURL)("pricingGuestsText", ctx_r0.detailsPricingGuestsText)("recipeAddedToastText", ctx_r0.recipeAddedToastText);
|
|
19363
19369
|
}
|
|
19364
19370
|
}
|
|
19365
|
-
function
|
|
19371
|
+
function RecipeModalComponent_div_2_Template(rf, ctx) {
|
|
19366
19372
|
if (rf & 1) {
|
|
19367
|
-
var
|
|
19373
|
+
var _r7_1 = i0.ɵɵgetCurrentView();
|
|
19368
19374
|
i0.ɵɵelementStart(0, "div", 5);
|
|
19369
19375
|
i0.ɵɵelementStart(1, "ng-miam-basket-preview-block", 6);
|
|
19370
|
-
i0.ɵɵlistener("loading", function
|
|
19371
|
-
i0.ɵɵelementEnd();
|
|
19376
|
+
i0.ɵɵlistener("loading", function RecipeModalComponent_div_2_Template_ng_miam_basket_preview_block_loading_1_listener($event) { i0.ɵɵrestoreView(_r7_1); var ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.setModalClosable($event); });
|
|
19372
19377
|
i0.ɵɵelementEnd();
|
|
19373
|
-
}
|
|
19374
|
-
if (rf & 2) {
|
|
19375
|
-
var ctx_r6 = i0.ɵɵnextContext(2);
|
|
19376
|
-
i0.ɵɵadvance(1);
|
|
19377
|
-
i0.ɵɵproperty("recipeId", ctx_r6.recipe == null ? null : ctx_r6.recipe.id)("displayItemsUnitaryPrice", true)("originTrace", ctx_r6.eventTrace);
|
|
19378
|
-
}
|
|
19379
|
-
}
|
|
19380
|
-
function RecipeModalComponent_div_2_Template(rf, ctx) {
|
|
19381
|
-
if (rf & 1) {
|
|
19382
|
-
i0.ɵɵelementStart(0, "div", 5);
|
|
19383
|
-
i0.ɵɵtemplate(1, RecipeModalComponent_div_2_div_1_Template, 2, 3, "div", 2);
|
|
19384
19378
|
i0.ɵɵelementEnd();
|
|
19385
19379
|
}
|
|
19386
19380
|
if (rf & 2) {
|
|
19387
19381
|
var ctx_r1 = i0.ɵɵnextContext();
|
|
19388
19382
|
i0.ɵɵadvance(1);
|
|
19389
|
-
i0.ɵɵproperty("
|
|
19383
|
+
i0.ɵɵproperty("recipeId", ctx_r1.recipe == null ? null : ctx_r1.recipe.id)("displayItemsUnitaryPrice", true)("originTrace", ctx_r1.eventTrace);
|
|
19390
19384
|
}
|
|
19391
19385
|
}
|
|
19392
19386
|
var RecipeModalComponent = /** @class */ (function () {
|
|
@@ -19496,7 +19490,7 @@
|
|
|
19496
19490
|
i0.ɵɵelementStart(0, "ng-miam-modal", 0);
|
|
19497
19491
|
i0.ɵɵlistener("expandedChange", function RecipeModalComponent_Template_ng_miam_modal_expandedChange_0_listener($event) { return ctx.show = $event; })("close", function RecipeModalComponent_Template_ng_miam_modal_close_0_listener() { return ctx.hide(); })("cancel", function RecipeModalComponent_Template_ng_miam_modal_cancel_0_listener() { return ctx.removeRecipe(); })("confirm", function RecipeModalComponent_Template_ng_miam_modal_confirm_0_listener() { return ctx.hide(); });
|
|
19498
19492
|
i0.ɵɵtemplate(1, RecipeModalComponent_ng_miam_recipe_details_1_Template, 2, 7, "ng-miam-recipe-details", 1);
|
|
19499
|
-
i0.ɵɵtemplate(2, RecipeModalComponent_div_2_Template, 2,
|
|
19493
|
+
i0.ɵɵtemplate(2, RecipeModalComponent_div_2_Template, 2, 3, "div", 2);
|
|
19500
19494
|
i0.ɵɵelementEnd();
|
|
19501
19495
|
}
|
|
19502
19496
|
if (rf & 2) {
|