@guiexpert/demo-table-models 1.1.56 → 1.1.57

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.
Files changed (3) hide show
  1. package/index.cjs +3 -3
  2. package/index.js +2 -10
  3. package/package.json +2 -2
package/index.js CHANGED
@@ -937,12 +937,8 @@ class de extends ae {
937
937
  genericTreeTableSortComparator(e, r) {
938
938
  const a = this.columnDefs.find((t) => t.property === e);
939
939
  return (t, n) => {
940
- if (a != null && a.sortComparator) {
941
- const i = this.getValueByT(t.data, e), u = this.getValueByT(n.data, e);
942
- return r * a.sortComparator(i, u, t.data, n.data);
943
- }
944
940
  const m = this.getValueByT(t.data, e), d = this.getValueByT(n.data, e);
945
- return this.sorterService.genericSortComparator(m, d, r);
941
+ return a != null && a.sortComparator ? r * a.sortComparator(m, d, t.data, n.data, r) : this.sorterService.genericSortComparator(m, d, r);
946
942
  };
947
943
  }
948
944
  expandAllRecursive(e, r) {
@@ -1515,12 +1511,8 @@ class Ee extends ae {
1515
1511
  genericFlatTableSortComparator(e, r) {
1516
1512
  const a = this.columnDefs.find((t) => t.property === e);
1517
1513
  return (t, n) => {
1518
- if (a != null && a.sortComparator) {
1519
- const i = this.getValueByT(t, e), u = this.getValueByT(n, e);
1520
- return r * a.sortComparator(i, u, t, n);
1521
- }
1522
1514
  const m = this.getValueByT(t, e), d = this.getValueByT(n, e);
1523
- return this.sorterService.genericSortComparator(m, d, r);
1515
+ return a != null && a.sortComparator ? r * a.sortComparator(m, d, t, n, r) : this.sorterService.genericSortComparator(m, d, r);
1524
1516
  };
1525
1517
  }
1526
1518
  getPropertyValue(e, r) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guiexpert/demo-table-models",
3
- "version": "1.1.56",
3
+ "version": "1.1.57",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "tslib": "^2.3.0",
21
- "@guiexpert/table": "^1.1.56"
21
+ "@guiexpert/table": "^1.1.57"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/node": "^20.11.17",