@ikas/storefront 0.0.141 → 0.0.143
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 +29 -1
- package/build/index.js +29 -1
- package/build/models/ui/blog-list/index.d.ts +1 -0
- package/build/models/ui/brand-list/index.d.ts +1 -0
- package/build/models/ui/category-list/index.d.ts +1 -0
- package/build/models/ui/product-list/index.d.ts +1 -0
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -19167,6 +19167,13 @@ var IkasBrandList = /** @class */ (function () {
|
|
|
19167
19167
|
enumerable: false,
|
|
19168
19168
|
configurable: true
|
|
19169
19169
|
});
|
|
19170
|
+
Object.defineProperty(IkasBrandList.prototype, "pageCount", {
|
|
19171
|
+
get: function () {
|
|
19172
|
+
return Math.ceil(this._count / this._limit);
|
|
19173
|
+
},
|
|
19174
|
+
enumerable: false,
|
|
19175
|
+
configurable: true
|
|
19176
|
+
});
|
|
19170
19177
|
Object.defineProperty(IkasBrandList.prototype, "isInitialized", {
|
|
19171
19178
|
get: function () {
|
|
19172
19179
|
return this._initialized;
|
|
@@ -19440,6 +19447,13 @@ var IkasBlogList = /** @class */ (function () {
|
|
|
19440
19447
|
enumerable: false,
|
|
19441
19448
|
configurable: true
|
|
19442
19449
|
});
|
|
19450
|
+
Object.defineProperty(IkasBlogList.prototype, "pageCount", {
|
|
19451
|
+
get: function () {
|
|
19452
|
+
return Math.ceil(this._count / this._limit);
|
|
19453
|
+
},
|
|
19454
|
+
enumerable: false,
|
|
19455
|
+
configurable: true
|
|
19456
|
+
});
|
|
19443
19457
|
Object.defineProperty(IkasBlogList.prototype, "isInitialized", {
|
|
19444
19458
|
get: function () {
|
|
19445
19459
|
return this._initialized;
|
|
@@ -19734,6 +19748,13 @@ var IkasCategoryList = /** @class */ (function () {
|
|
|
19734
19748
|
enumerable: false,
|
|
19735
19749
|
configurable: true
|
|
19736
19750
|
});
|
|
19751
|
+
Object.defineProperty(IkasCategoryList.prototype, "pageCount", {
|
|
19752
|
+
get: function () {
|
|
19753
|
+
return Math.ceil(this._count / this._limit);
|
|
19754
|
+
},
|
|
19755
|
+
enumerable: false,
|
|
19756
|
+
configurable: true
|
|
19757
|
+
});
|
|
19737
19758
|
Object.defineProperty(IkasCategoryList.prototype, "isInitialized", {
|
|
19738
19759
|
get: function () {
|
|
19739
19760
|
return this._initialized;
|
|
@@ -21195,7 +21216,6 @@ var IkasProductList = /** @class */ (function () {
|
|
|
21195
21216
|
this.data = this.data.concat(data);
|
|
21196
21217
|
this._count = response.count;
|
|
21197
21218
|
this._page = this.page + 1;
|
|
21198
|
-
this._minPage = this._page;
|
|
21199
21219
|
return [3 /*break*/, 5];
|
|
21200
21220
|
case 3:
|
|
21201
21221
|
err_3 = _a.sent();
|
|
@@ -21270,6 +21290,7 @@ var IkasProductList = /** @class */ (function () {
|
|
|
21270
21290
|
this._sort = IkasProductListSortType.LAST_ADDED;
|
|
21271
21291
|
this._limit = data.limit || data.productListPropValue.initialLimit || 20;
|
|
21272
21292
|
this._page = data.page || 1;
|
|
21293
|
+
this._minPage = data.minPage || null;
|
|
21273
21294
|
this._count = data.count || 0;
|
|
21274
21295
|
this._searchKeyword = data.searchKeyword || "";
|
|
21275
21296
|
this._productListPropValue = data.productListPropValue;
|
|
@@ -21319,6 +21340,13 @@ var IkasProductList = /** @class */ (function () {
|
|
|
21319
21340
|
enumerable: false,
|
|
21320
21341
|
configurable: true
|
|
21321
21342
|
});
|
|
21343
|
+
Object.defineProperty(IkasProductList.prototype, "pageCount", {
|
|
21344
|
+
get: function () {
|
|
21345
|
+
return Math.ceil(this._count / this._limit);
|
|
21346
|
+
},
|
|
21347
|
+
enumerable: false,
|
|
21348
|
+
configurable: true
|
|
21349
|
+
});
|
|
21322
21350
|
Object.defineProperty(IkasProductList.prototype, "searchKeyword", {
|
|
21323
21351
|
get: function () {
|
|
21324
21352
|
return this._searchKeyword;
|
package/build/index.js
CHANGED
|
@@ -19155,6 +19155,13 @@ var IkasBrandList = /** @class */ (function () {
|
|
|
19155
19155
|
enumerable: false,
|
|
19156
19156
|
configurable: true
|
|
19157
19157
|
});
|
|
19158
|
+
Object.defineProperty(IkasBrandList.prototype, "pageCount", {
|
|
19159
|
+
get: function () {
|
|
19160
|
+
return Math.ceil(this._count / this._limit);
|
|
19161
|
+
},
|
|
19162
|
+
enumerable: false,
|
|
19163
|
+
configurable: true
|
|
19164
|
+
});
|
|
19158
19165
|
Object.defineProperty(IkasBrandList.prototype, "isInitialized", {
|
|
19159
19166
|
get: function () {
|
|
19160
19167
|
return this._initialized;
|
|
@@ -19426,6 +19433,13 @@ var IkasBlogList = /** @class */ (function () {
|
|
|
19426
19433
|
enumerable: false,
|
|
19427
19434
|
configurable: true
|
|
19428
19435
|
});
|
|
19436
|
+
Object.defineProperty(IkasBlogList.prototype, "pageCount", {
|
|
19437
|
+
get: function () {
|
|
19438
|
+
return Math.ceil(this._count / this._limit);
|
|
19439
|
+
},
|
|
19440
|
+
enumerable: false,
|
|
19441
|
+
configurable: true
|
|
19442
|
+
});
|
|
19429
19443
|
Object.defineProperty(IkasBlogList.prototype, "isInitialized", {
|
|
19430
19444
|
get: function () {
|
|
19431
19445
|
return this._initialized;
|
|
@@ -19719,6 +19733,13 @@ var IkasCategoryList = /** @class */ (function () {
|
|
|
19719
19733
|
enumerable: false,
|
|
19720
19734
|
configurable: true
|
|
19721
19735
|
});
|
|
19736
|
+
Object.defineProperty(IkasCategoryList.prototype, "pageCount", {
|
|
19737
|
+
get: function () {
|
|
19738
|
+
return Math.ceil(this._count / this._limit);
|
|
19739
|
+
},
|
|
19740
|
+
enumerable: false,
|
|
19741
|
+
configurable: true
|
|
19742
|
+
});
|
|
19722
19743
|
Object.defineProperty(IkasCategoryList.prototype, "isInitialized", {
|
|
19723
19744
|
get: function () {
|
|
19724
19745
|
return this._initialized;
|
|
@@ -21178,7 +21199,6 @@ var IkasProductList = /** @class */ (function () {
|
|
|
21178
21199
|
this.data = this.data.concat(data);
|
|
21179
21200
|
this._count = response.count;
|
|
21180
21201
|
this._page = this.page + 1;
|
|
21181
|
-
this._minPage = this._page;
|
|
21182
21202
|
return [3 /*break*/, 5];
|
|
21183
21203
|
case 3:
|
|
21184
21204
|
err_3 = _a.sent();
|
|
@@ -21253,6 +21273,7 @@ var IkasProductList = /** @class */ (function () {
|
|
|
21253
21273
|
this._sort = exports.IkasProductListSortType.LAST_ADDED;
|
|
21254
21274
|
this._limit = data.limit || data.productListPropValue.initialLimit || 20;
|
|
21255
21275
|
this._page = data.page || 1;
|
|
21276
|
+
this._minPage = data.minPage || null;
|
|
21256
21277
|
this._count = data.count || 0;
|
|
21257
21278
|
this._searchKeyword = data.searchKeyword || "";
|
|
21258
21279
|
this._productListPropValue = data.productListPropValue;
|
|
@@ -21302,6 +21323,13 @@ var IkasProductList = /** @class */ (function () {
|
|
|
21302
21323
|
enumerable: false,
|
|
21303
21324
|
configurable: true
|
|
21304
21325
|
});
|
|
21326
|
+
Object.defineProperty(IkasProductList.prototype, "pageCount", {
|
|
21327
|
+
get: function () {
|
|
21328
|
+
return Math.ceil(this._count / this._limit);
|
|
21329
|
+
},
|
|
21330
|
+
enumerable: false,
|
|
21331
|
+
configurable: true
|
|
21332
|
+
});
|
|
21305
21333
|
Object.defineProperty(IkasProductList.prototype, "searchKeyword", {
|
|
21306
21334
|
get: function () {
|
|
21307
21335
|
return this._searchKeyword;
|