ng-miam 4.7.2 → 4.7.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 -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/_components/components.module.js +1 -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-details/recipe-details.component.js +1 -1
- 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) {
|
|
@@ -9452,11 +9452,11 @@
|
|
|
9452
9452
|
return LoaderComponent;
|
|
9453
9453
|
}());
|
|
9454
9454
|
LoaderComponent.ɵfac = function LoaderComponent_Factory(t) { return new (t || LoaderComponent)(); };
|
|
9455
|
-
LoaderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LoaderComponent, selectors: [["ng-miam-loader"]], decls: 1, vars: 0, consts: [[1, "loader"]], template: function LoaderComponent_Template(rf, ctx) {
|
|
9455
|
+
LoaderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LoaderComponent, selectors: [["ng-miam-loader"]], decls: 1, vars: 0, consts: [[1, "miam-loader"]], template: function LoaderComponent_Template(rf, ctx) {
|
|
9456
9456
|
if (rf & 1) {
|
|
9457
9457
|
i0.ɵɵelement(0, "div", 0);
|
|
9458
9458
|
}
|
|
9459
|
-
}, 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 });
|
|
9459
|
+
}, 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 });
|
|
9460
9460
|
/*@__PURE__*/ (function () {
|
|
9461
9461
|
i0.ɵsetClassMetadata(LoaderComponent, [{
|
|
9462
9462
|
type: i0.Component,
|
|
@@ -10956,8 +10956,10 @@
|
|
|
10956
10956
|
return { recipe_id: (_a = this.recipe) === null || _a === void 0 ? void 0 : _a.id };
|
|
10957
10957
|
};
|
|
10958
10958
|
AbstractRecipeCardComponent.prototype.ngAfterViewInit = function () {
|
|
10959
|
+
var _this = this;
|
|
10959
10960
|
this.sendShowEvent();
|
|
10960
10961
|
this.displayPrice();
|
|
10962
|
+
this.subscriptions.push(this.groceriesListsService.list$.subscribe(function () { return _this.cdr.detectChanges(); }));
|
|
10961
10963
|
};
|
|
10962
10964
|
AbstractRecipeCardComponent.prototype.ngOnDestroy = function () {
|
|
10963
10965
|
this.subscriptions.forEach(function (sub) { return sub.unsubscribe(); });
|
|
@@ -16137,7 +16139,7 @@
|
|
|
16137
16139
|
}
|
|
16138
16140
|
var selectedCategory = this.categories.find(function (cat) { return cat.key === paramsArray.get('catalogCategory'); });
|
|
16139
16141
|
if (selectedCategory) {
|
|
16140
|
-
return this.categoryTitleClicked(selectedCategory);
|
|
16142
|
+
return this.categoryTitleClicked({ title: selectedCategory.title, filters: selectedCategory.filters.additionalFilters.filters });
|
|
16141
16143
|
}
|
|
16142
16144
|
};
|
|
16143
16145
|
// Show feedback block only if user is logged and the children preference is unknown
|
|
@@ -18937,16 +18939,12 @@
|
|
|
18937
18939
|
return bpl.entries.found.find(function (entry) { return entry.selectedItem.attributes['ext-id'] === _this.extId; });
|
|
18938
18940
|
});
|
|
18939
18941
|
_this.cdr.detectChanges();
|
|
18942
|
+
_this.detectWrappedTags(_this.tags);
|
|
18940
18943
|
}
|
|
18941
18944
|
}));
|
|
18942
18945
|
}
|
|
18943
18946
|
this.cdr.detectChanges();
|
|
18944
18947
|
};
|
|
18945
|
-
RecipeTagsComponent.prototype.ngAfterViewInit = function () {
|
|
18946
|
-
var _this = this;
|
|
18947
|
-
// Call each time list of recipe-tags change
|
|
18948
|
-
this.subscriptions.push(this.tags.changes.subscribe(function (queryList) { return _this.detectWrappedTags(queryList); }));
|
|
18949
|
-
};
|
|
18950
18948
|
RecipeTagsComponent.prototype.ngOnDestroy = function () {
|
|
18951
18949
|
this.subscriptions.forEach(function (sub) { return sub.unsubscribe(); });
|
|
18952
18950
|
};
|