@infrab4a/connect-angular 4.3.12-beta.13 → 4.3.12-beta.15
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/esm2020/services/catalog/catalog.service.mjs +11 -6
- package/fesm2015/infrab4a-connect-angular.mjs +10 -5
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +10 -5
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1625,17 +1625,22 @@ class CatalogService {
|
|
|
1625
1625
|
if (!sort || sort === 'most-relevant')
|
|
1626
1626
|
return {};
|
|
1627
1627
|
if (sort === 'best-sellers')
|
|
1628
|
-
return {
|
|
1628
|
+
return {
|
|
1629
|
+
shoppingCount: 'desc',
|
|
1630
|
+
rate: 'desc',
|
|
1631
|
+
stock: 'desc',
|
|
1632
|
+
name: 'asc',
|
|
1633
|
+
};
|
|
1629
1634
|
if (sort === 'biggest-price')
|
|
1630
|
-
return { subscriberPrice: 'desc' };
|
|
1635
|
+
return { subscriberPrice: 'desc', rate: 'desc', shoppingCount: 'desc' };
|
|
1631
1636
|
if (sort === 'lowest-price')
|
|
1632
|
-
return { subscriberPrice: 'asc' };
|
|
1637
|
+
return { subscriberPrice: 'asc', rate: 'desc', shoppingCount: 'desc' };
|
|
1633
1638
|
if (sort === 'best-rating')
|
|
1634
|
-
return { rate: '
|
|
1639
|
+
return { rate: 'desc', shoppingCount: 'desc', stock: 'desc', name: 'asc' };
|
|
1635
1640
|
if (sort === 'news')
|
|
1636
1641
|
return { createdAt: 'desc' };
|
|
1637
1642
|
if (sort === 'biggest-discount')
|
|
1638
|
-
return { subscriberDiscountPercentage: 'desc' };
|
|
1643
|
+
return { subscriberDiscountPercentage: 'desc', rate: 'desc', shoppingCount: 'desc' };
|
|
1639
1644
|
};
|
|
1640
1645
|
this.buildLimitQuery = (options) => {
|
|
1641
1646
|
const limit = options?.perPage || 20;
|