ng-miam 4.6.4 → 4.6.6
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 +8 -20
- 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/_services/recipe-likes.service.js +4 -4
- package/esm2015/lib/_web-components/recipe-modal/recipe-modal.component.js +6 -15
- package/fesm2015/ng-miam.js +8 -17
- package/fesm2015/ng-miam.js.map +1 -1
- package/package.json +1 -1
package/bundles/ng-miam.umd.js
CHANGED
|
@@ -3142,15 +3142,15 @@
|
|
|
3142
3142
|
};
|
|
3143
3143
|
RecipeLikesService.prototype.afterCLeanAddLikesToRecipes = function (recipes) {
|
|
3144
3144
|
var _this = this;
|
|
3145
|
-
|
|
3146
|
-
if (
|
|
3145
|
+
recipes = recipes.filter(function (recipe) { return !_this.activeRecipeLikes.has(recipe.id); });
|
|
3146
|
+
if (recipes.length == 0) {
|
|
3147
3147
|
return rxjs.of(null);
|
|
3148
3148
|
}
|
|
3149
3149
|
;
|
|
3150
3150
|
return this.all({
|
|
3151
3151
|
page: { size: 20, number: 1 },
|
|
3152
3152
|
remotefilter: {
|
|
3153
|
-
recipe_id:
|
|
3153
|
+
recipe_id: recipes.map(function (r) { return r.id; }).join(),
|
|
3154
3154
|
is_past: 'true,false'
|
|
3155
3155
|
}
|
|
3156
3156
|
}).pipe(operators.skipWhile(function (resp) { return resp.is_loading; }), operators.tap(function (result) {
|
|
@@ -19263,31 +19263,19 @@
|
|
|
19263
19263
|
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);
|
|
19264
19264
|
}
|
|
19265
19265
|
}
|
|
19266
|
-
function
|
|
19266
|
+
function RecipeModalComponent_div_2_Template(rf, ctx) {
|
|
19267
19267
|
if (rf & 1) {
|
|
19268
|
-
var
|
|
19268
|
+
var _r7_1 = i0.ɵɵgetCurrentView();
|
|
19269
19269
|
i0.ɵɵelementStart(0, "div", 5);
|
|
19270
19270
|
i0.ɵɵelementStart(1, "ng-miam-basket-preview-block", 6);
|
|
19271
|
-
i0.ɵɵlistener("loading", function
|
|
19272
|
-
i0.ɵɵelementEnd();
|
|
19271
|
+
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); });
|
|
19273
19272
|
i0.ɵɵelementEnd();
|
|
19274
|
-
}
|
|
19275
|
-
if (rf & 2) {
|
|
19276
|
-
var ctx_r6 = i0.ɵɵnextContext(2);
|
|
19277
|
-
i0.ɵɵadvance(1);
|
|
19278
|
-
i0.ɵɵproperty("recipeId", ctx_r6.recipe == null ? null : ctx_r6.recipe.id)("displayItemsUnitaryPrice", true)("originTrace", ctx_r6.eventTrace);
|
|
19279
|
-
}
|
|
19280
|
-
}
|
|
19281
|
-
function RecipeModalComponent_div_2_Template(rf, ctx) {
|
|
19282
|
-
if (rf & 1) {
|
|
19283
|
-
i0.ɵɵelementStart(0, "div", 5);
|
|
19284
|
-
i0.ɵɵtemplate(1, RecipeModalComponent_div_2_div_1_Template, 2, 3, "div", 2);
|
|
19285
19273
|
i0.ɵɵelementEnd();
|
|
19286
19274
|
}
|
|
19287
19275
|
if (rf & 2) {
|
|
19288
19276
|
var ctx_r1 = i0.ɵɵnextContext();
|
|
19289
19277
|
i0.ɵɵadvance(1);
|
|
19290
|
-
i0.ɵɵproperty("
|
|
19278
|
+
i0.ɵɵproperty("recipeId", ctx_r1.recipe == null ? null : ctx_r1.recipe.id)("displayItemsUnitaryPrice", true)("originTrace", ctx_r1.eventTrace);
|
|
19291
19279
|
}
|
|
19292
19280
|
}
|
|
19293
19281
|
var RecipeModalComponent = /** @class */ (function () {
|
|
@@ -19397,7 +19385,7 @@
|
|
|
19397
19385
|
i0.ɵɵelementStart(0, "ng-miam-modal", 0);
|
|
19398
19386
|
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(); });
|
|
19399
19387
|
i0.ɵɵtemplate(1, RecipeModalComponent_ng_miam_recipe_details_1_Template, 2, 7, "ng-miam-recipe-details", 1);
|
|
19400
|
-
i0.ɵɵtemplate(2, RecipeModalComponent_div_2_Template, 2,
|
|
19388
|
+
i0.ɵɵtemplate(2, RecipeModalComponent_div_2_Template, 2, 3, "div", 2);
|
|
19401
19389
|
i0.ɵɵelementEnd();
|
|
19402
19390
|
}
|
|
19403
19391
|
if (rf & 2) {
|