@zeedhi/common 1.84.1 → 1.85.0

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.
@@ -5540,13 +5540,7 @@ class Iterable extends ComponentRender {
5540
5540
  * Get pagination length
5541
5541
  */
5542
5542
  get paginationLength() {
5543
- let { limit, total } = this.datasource;
5544
- limit = Number(limit);
5545
- total = Number(total);
5546
- if (!limit || Number.isNaN(total) || Number.isNaN(limit)) {
5547
- return 0;
5548
- }
5549
- return Math.ceil(total / limit);
5543
+ return this.datasource.getPaginationLength();
5550
5544
  }
5551
5545
  /**
5552
5546
  * Return cells with conditions applied for each row
@@ -5547,13 +5547,7 @@
5547
5547
  * Get pagination length
5548
5548
  */
5549
5549
  get paginationLength() {
5550
- let { limit, total } = this.datasource;
5551
- limit = Number(limit);
5552
- total = Number(total);
5553
- if (!limit || Number.isNaN(total) || Number.isNaN(limit)) {
5554
- return 0;
5555
- }
5556
- return Math.ceil(total / limit);
5550
+ return this.datasource.getPaginationLength();
5557
5551
  }
5558
5552
  /**
5559
5553
  * Return cells with conditions applied for each row
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/common",
3
- "version": "1.84.1",
3
+ "version": "1.85.0",
4
4
  "description": "Zeedhi Common",
5
5
  "author": "Zeedhi <zeedhi@teknisa.com>",
6
6
  "license": "ISC",
@@ -43,5 +43,5 @@
43
43
  "lodash.times": "4.3.*",
44
44
  "mockdate": "3.0.*"
45
45
  },
46
- "gitHead": "0b18124932a37bd921c9938b86371a7222e90f59"
46
+ "gitHead": "8324a7087a2b3daa9349bb5551bc1c708ad1c38f"
47
47
  }