ng-miam 4.6.5 → 4.6.7
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 -11
- package/bundles/ng-miam.umd.js.map +1 -1
- package/bundles/ng-miam.umd.min.js +2 -2
- package/bundles/ng-miam.umd.min.js.map +1 -1
- package/esm2015/lib/_components/abstracts/abstract-recipe-card.component.js +2 -1
- package/esm2015/lib/_services/recipe-likes.service.js +4 -4
- package/esm2015/lib/_web-components/loader/loader.component.js +3 -3
- package/esm2015/lib/_web-components/recipe-catalog/recipe-catalog.component.js +2 -2
- package/esm2015/lib/_web-components/recipe-tags/recipe-tags.component.js +2 -5
- package/fesm2015/ng-miam.js +8 -10
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_web-components/recipe-catalog/recipe-catalog.component.d.ts +15 -1
- package/lib/_web-components/recipe-tags/recipe-tags.component.d.ts +2 -3
- 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) {
|
|
@@ -9422,11 +9422,11 @@
|
|
|
9422
9422
|
return LoaderComponent;
|
|
9423
9423
|
}());
|
|
9424
9424
|
LoaderComponent.ɵfac = function LoaderComponent_Factory(t) { return new (t || LoaderComponent)(); };
|
|
9425
|
-
LoaderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LoaderComponent, selectors: [["ng-miam-loader"]], decls: 1, vars: 0, consts: [[1, "loader"]], template: function LoaderComponent_Template(rf, ctx) {
|
|
9425
|
+
LoaderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LoaderComponent, selectors: [["ng-miam-loader"]], decls: 1, vars: 0, consts: [[1, "miam-loader"]], template: function LoaderComponent_Template(rf, ctx) {
|
|
9426
9426
|
if (rf & 1) {
|
|
9427
9427
|
i0.ɵɵelement(0, "div", 0);
|
|
9428
9428
|
}
|
|
9429
|
-
}, styles: [".loader{-webkit-animation:spin .5s linear infinite;animation:spin .5s linear infinite;border:var(--m-loader-thickness) solid var(--m-color-grey);border-radius:var(--m-border-radius-circle);border-top:var(--m-loader-thickness) solid var(--m-color-ternary);height:var(--m-loader-size);width:var(--m-loader-size)}@-webkit-keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}"], encapsulation: 2 });
|
|
9429
|
+
}, styles: [".miam-loader{-webkit-animation:miam-loader-spin .5s linear infinite;animation:miam-loader-spin .5s linear infinite;border:var(--m-loader-thickness) solid var(--m-color-grey);border-radius:var(--m-border-radius-circle);border-top:var(--m-loader-thickness) solid var(--m-color-ternary);height:var(--m-loader-size);width:var(--m-loader-size)}@-webkit-keyframes miam-loader-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes miam-loader-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}"], encapsulation: 2 });
|
|
9430
9430
|
/*@__PURE__*/ (function () {
|
|
9431
9431
|
i0.ɵsetClassMetadata(LoaderComponent, [{
|
|
9432
9432
|
type: i0.Component,
|
|
@@ -10921,8 +10921,10 @@
|
|
|
10921
10921
|
return { recipe_id: (_a = this.recipe) === null || _a === void 0 ? void 0 : _a.id };
|
|
10922
10922
|
};
|
|
10923
10923
|
AbstractRecipeCardComponent.prototype.ngAfterViewInit = function () {
|
|
10924
|
+
var _this = this;
|
|
10924
10925
|
this.sendShowEvent();
|
|
10925
10926
|
this.displayPrice();
|
|
10927
|
+
this.subscriptions.push(this.groceriesListsService.list$.subscribe(function () { return _this.cdr.detectChanges(); }));
|
|
10926
10928
|
};
|
|
10927
10929
|
AbstractRecipeCardComponent.prototype.ngOnDestroy = function () {
|
|
10928
10930
|
this.subscriptions.forEach(function (sub) { return sub.unsubscribe(); });
|
|
@@ -16055,7 +16057,7 @@
|
|
|
16055
16057
|
}
|
|
16056
16058
|
var selectedCategory = this.categories.find(function (cat) { return cat.key === paramsArray.get('catalogCategory'); });
|
|
16057
16059
|
if (selectedCategory) {
|
|
16058
|
-
return this.categoryTitleClicked(selectedCategory);
|
|
16060
|
+
return this.categoryTitleClicked({ title: selectedCategory.title, filters: selectedCategory.filters.additionalFilters.filters });
|
|
16059
16061
|
}
|
|
16060
16062
|
};
|
|
16061
16063
|
// Show feedback block only if user is logged and the children preference is unknown
|
|
@@ -18832,16 +18834,12 @@
|
|
|
18832
18834
|
return bpl.entries.found.find(function (entry) { return entry.selectedItem.attributes['ext-id'] === _this.extId; });
|
|
18833
18835
|
});
|
|
18834
18836
|
_this.cdr.detectChanges();
|
|
18837
|
+
_this.detectWrappedTags(_this.tags);
|
|
18835
18838
|
}
|
|
18836
18839
|
}));
|
|
18837
18840
|
}
|
|
18838
18841
|
this.cdr.detectChanges();
|
|
18839
18842
|
};
|
|
18840
|
-
RecipeTagsComponent.prototype.ngAfterViewInit = function () {
|
|
18841
|
-
var _this = this;
|
|
18842
|
-
// Call each time list of recipe-tags change
|
|
18843
|
-
this.subscriptions.push(this.tags.changes.subscribe(function (queryList) { return _this.detectWrappedTags(queryList); }));
|
|
18844
|
-
};
|
|
18845
18843
|
RecipeTagsComponent.prototype.ngOnDestroy = function () {
|
|
18846
18844
|
this.subscriptions.forEach(function (sub) { return sub.unsubscribe(); });
|
|
18847
18845
|
};
|