ng-miam 6.0.3 → 6.0.4
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 +9 -0
- 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/context.service.js +10 -1
- package/esm2015/lib/_types/builded/miam-interface.js +1 -1
- package/fesm2015/ng-miam.js +9 -0
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_types/builded/miam-interface.d.ts +3 -0
- package/package.json +1 -1
package/bundles/ng-miam.umd.js
CHANGED
|
@@ -4235,6 +4235,13 @@
|
|
|
4235
4235
|
updatePricebook: function (pricebookName) { return _this.basketsService.updatePricebook(pricebookName); },
|
|
4236
4236
|
},
|
|
4237
4237
|
basketSync: {
|
|
4238
|
+
// Modify the comparion-map to make it as is all products were added by the retailer.
|
|
4239
|
+
// Useful to reset the list without emptying the retailer's basket
|
|
4240
|
+
setAllProductsAsRetailers: function () {
|
|
4241
|
+
if (_this.basketHandler) {
|
|
4242
|
+
_this.basketHandler.setAllProductsAsRetailers();
|
|
4243
|
+
}
|
|
4244
|
+
},
|
|
4238
4245
|
definePushProductsToBasket: function (pushProductsToBasket) {
|
|
4239
4246
|
_this.basketHandler.pushProductsToBasket = pushProductsToBasket;
|
|
4240
4247
|
},
|
|
@@ -4282,6 +4289,8 @@
|
|
|
4282
4289
|
return _this.listsService.appendRecipeToList(recipeId, guests, { originPath: 'client', props: { recipe_id: recipeId } });
|
|
4283
4290
|
},
|
|
4284
4291
|
hasRecipe: function (recipeId) { return _this.listsService.recipeIsInList(recipeId); },
|
|
4292
|
+
createTemporaryList: function () { return _this.listsService.createTemporaryList(); },
|
|
4293
|
+
refresh: function () { return _this.listsService.refreshCurrentList(); },
|
|
4285
4294
|
recipeCount: this.listsService.list$.pipe(operators.skipWhile(function (l) { return !l; }), operators.map(function (l) { return l.attributes['recipes-ids'].length; }))
|
|
4286
4295
|
},
|
|
4287
4296
|
pos: {
|