@ikas/storefront 0.0.72 → 0.0.73
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/build/index.es.js
CHANGED
|
@@ -20028,7 +20028,7 @@ var IkasProductList = /** @class */ (function () {
|
|
|
20028
20028
|
Object.defineProperty(IkasProductList.prototype, "isFiltered", {
|
|
20029
20029
|
get: function () {
|
|
20030
20030
|
var _a;
|
|
20031
|
-
return (_a = this.filters) === null || _a === void 0 ? void 0 : _a.some(function (f) { return !!f.valueList.length; });
|
|
20031
|
+
return (((_a = this.filters) === null || _a === void 0 ? void 0 : _a.some(function (f) { return !!f.valueList.length; })) || !!this._searchKeyword);
|
|
20032
20032
|
},
|
|
20033
20033
|
enumerable: false,
|
|
20034
20034
|
configurable: true
|
|
@@ -20089,6 +20089,8 @@ var IkasProductList = /** @class */ (function () {
|
|
|
20089
20089
|
(_a = this.filters) === null || _a === void 0 ? void 0 : _a.forEach(function (f) {
|
|
20090
20090
|
queryParams[f.key] = f.keyList;
|
|
20091
20091
|
});
|
|
20092
|
+
if (this._searchKeyword)
|
|
20093
|
+
queryParams.s = this._searchKeyword;
|
|
20092
20094
|
return queryString.stringify(queryParams, { arrayFormat: "comma" });
|
|
20093
20095
|
},
|
|
20094
20096
|
enumerable: false,
|
package/build/index.js
CHANGED
|
@@ -20011,7 +20011,7 @@ var IkasProductList = /** @class */ (function () {
|
|
|
20011
20011
|
Object.defineProperty(IkasProductList.prototype, "isFiltered", {
|
|
20012
20012
|
get: function () {
|
|
20013
20013
|
var _a;
|
|
20014
|
-
return (_a = this.filters) === null || _a === void 0 ? void 0 : _a.some(function (f) { return !!f.valueList.length; });
|
|
20014
|
+
return (((_a = this.filters) === null || _a === void 0 ? void 0 : _a.some(function (f) { return !!f.valueList.length; })) || !!this._searchKeyword);
|
|
20015
20015
|
},
|
|
20016
20016
|
enumerable: false,
|
|
20017
20017
|
configurable: true
|
|
@@ -20072,6 +20072,8 @@ var IkasProductList = /** @class */ (function () {
|
|
|
20072
20072
|
(_a = this.filters) === null || _a === void 0 ? void 0 : _a.forEach(function (f) {
|
|
20073
20073
|
queryParams[f.key] = f.keyList;
|
|
20074
20074
|
});
|
|
20075
|
+
if (this._searchKeyword)
|
|
20076
|
+
queryParams.s = this._searchKeyword;
|
|
20075
20077
|
return queryString.stringify(queryParams, { arrayFormat: "comma" });
|
|
20076
20078
|
},
|
|
20077
20079
|
enumerable: false,
|
|
@@ -31,7 +31,7 @@ export declare class IkasProductList {
|
|
|
31
31
|
set searchKeyword(value: string);
|
|
32
32
|
get isInitialized(): boolean;
|
|
33
33
|
get isFilterable(): boolean;
|
|
34
|
-
get isFiltered(): boolean
|
|
34
|
+
get isFiltered(): boolean;
|
|
35
35
|
get isStatic(): boolean;
|
|
36
36
|
get isDiscounted(): boolean;
|
|
37
37
|
get isRecommended(): boolean;
|