@guiexpert/demo-table-models 1.0.45 → 1.0.46
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/index.cjs +3 -3
- package/index.js +16 -6
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -935,9 +935,14 @@ class de extends ae {
|
|
|
935
935
|
return !1;
|
|
936
936
|
}
|
|
937
937
|
genericTreeTableSortComparator(e, r) {
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
938
|
+
const a = this.columnDefs.find((t) => t.property === e);
|
|
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
|
+
const m = this.getValueByT(t.data, e), d = this.getValueByT(n.data, e);
|
|
945
|
+
return this.sorterService.genericSortComparator(m, d, r);
|
|
941
946
|
};
|
|
942
947
|
}
|
|
943
948
|
expandAllRecursive(e, r) {
|
|
@@ -1508,9 +1513,14 @@ class Ee extends ae {
|
|
|
1508
1513
|
this.arrayMove(this.properties, e, r), super.changeColumnOrder(e, r);
|
|
1509
1514
|
}
|
|
1510
1515
|
genericFlatTableSortComparator(e, r) {
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1516
|
+
const a = this.columnDefs.find((t) => t.property === e);
|
|
1517
|
+
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
|
+
const m = this.getValueByT(t, e), d = this.getValueByT(n, e);
|
|
1523
|
+
return this.sorterService.genericSortComparator(m, d, r);
|
|
1514
1524
|
};
|
|
1515
1525
|
}
|
|
1516
1526
|
getPropertyValue(e, r) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guiexpert/demo-table-models",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.46",
|
|
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.
|
|
21
|
+
"@guiexpert/table": "^1.1.51"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "^20.11.17",
|