ng-miam 6.3.8 → 6.3.10
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 +3 -10
- 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/interceptor.service.js +2 -2
- package/esm2015/lib/_services/recipes.service.js +2 -2
- package/esm2015/lib/_web-components/meals-planner/meals-planner-catalog/meals-planner-catalog.component.js +2 -5
- package/fesm2015/ng-miam.js +3 -6
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_web-components/meals-planner/meals-planner-catalog/meals-planner-catalog.component.d.ts +0 -1
- package/package.json +1 -1
package/bundles/ng-miam.umd.js
CHANGED
|
@@ -3436,7 +3436,7 @@
|
|
|
3436
3436
|
return this.all({ remotefilter: f, page: { number: 1, size: 30 }, fields: { recipes: ['title'] } }).pipe(operators.skipWhile(function (result) { return result.is_loading; }), operators.map(function (result) {
|
|
3437
3437
|
var _a;
|
|
3438
3438
|
// Apparently total_resource = 1 even if no result was found so we have to check
|
|
3439
|
-
var recipesNumber = result.data.length
|
|
3439
|
+
var recipesNumber = result.data.length === 30 ? (_a = result === null || result === void 0 ? void 0 : result.meta) === null || _a === void 0 ? void 0 : _a.total_resources : result.data.length;
|
|
3440
3440
|
recipesNumber -= result.data.filter(function (r) { return excludedRecipesIds.includes(r.id); }).length;
|
|
3441
3441
|
return recipesNumber;
|
|
3442
3442
|
}));
|
|
@@ -26498,7 +26498,7 @@
|
|
|
26498
26498
|
this.filters.additionalFilters = {
|
|
26499
26499
|
filters: {
|
|
26500
26500
|
recipe_type_id: 'main-dish',
|
|
26501
|
-
price: "0," + this.
|
|
26501
|
+
price: "0," + this.remainingBudget,
|
|
26502
26502
|
in_basket: false
|
|
26503
26503
|
},
|
|
26504
26504
|
title: ''
|
|
@@ -26521,13 +26521,6 @@
|
|
|
26521
26521
|
this.isFilterCollapsed = !this.isFilterCollapsed;
|
|
26522
26522
|
this.cdr.detectChanges();
|
|
26523
26523
|
};
|
|
26524
|
-
Object.defineProperty(MealsPlannerCatalogComponent.prototype, "maxCost", {
|
|
26525
|
-
get: function () {
|
|
26526
|
-
return this.remainingBudget / (this.modifiedGuests * this.remainingRecipesNumber);
|
|
26527
|
-
},
|
|
26528
|
-
enumerable: false,
|
|
26529
|
-
configurable: true
|
|
26530
|
-
});
|
|
26531
26524
|
return MealsPlannerCatalogComponent;
|
|
26532
26525
|
}(EventTracerComponent));
|
|
26533
26526
|
MealsPlannerCatalogComponent.ɵfac = function MealsPlannerCatalogComponent_Factory(t) { return new (t || MealsPlannerCatalogComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(RecipesService), i0.ɵɵdirectiveInject(AnalyticsService)); };
|
|
@@ -27469,7 +27462,7 @@
|
|
|
27469
27462
|
request = request.clone({
|
|
27470
27463
|
setHeaders: {
|
|
27471
27464
|
'miam-origin': context.origin,
|
|
27472
|
-
'miam-front-version': '6.3.
|
|
27465
|
+
'miam-front-version': '6.3.10',
|
|
27473
27466
|
'miam-front-type': 'web',
|
|
27474
27467
|
'miam-api-version': '4.7.0'
|
|
27475
27468
|
}
|