@guiexpert/demo-table-models 1.0.46 → 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.
- package/index.cjs +3 -3
- package/index.js +9 -20
- package/package.json +3 -3
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) {
|
|
@@ -1626,12 +1618,11 @@ class f {
|
|
|
1626
1618
|
e.columnDefs,
|
|
1627
1619
|
e.defaultRowHeights.body
|
|
1628
1620
|
);
|
|
1629
|
-
else
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
) : e.bodyAreaModel = new Z("body");
|
|
1621
|
+
else e.bodyData ? e.bodyAreaModel = new S(
|
|
1622
|
+
"body",
|
|
1623
|
+
e.bodyData,
|
|
1624
|
+
e.defaultRowHeights.body
|
|
1625
|
+
) : e.bodyAreaModel = new Z("body");
|
|
1635
1626
|
return e.fixedLeftColumnCount === void 0 && (e.fixedLeftColumnCount = 0), e.fixedRightColumnCount === void 0 && (e.fixedRightColumnCount = 0), e.rowCheckboxVisible === void 0 && (e.rowCheckboxVisible = !1), e.overridingColumnWidth === void 0 && (e.overridingColumnWidth = -1), !e.getSelectionModel && ((v = e.tableOptions) != null && v.getSelectionModel) && (e.getSelectionModel = (k = e.tableOptions) == null ? void 0 : k.getSelectionModel), new W(
|
|
1636
1627
|
e.headerAreaModel,
|
|
1637
1628
|
e.bodyAreaModel,
|
|
@@ -220104,8 +220095,7 @@ class fr extends te {
|
|
|
220104
220095
|
return;
|
|
220105
220096
|
r--;
|
|
220106
220097
|
const a = Q[r], t = H[e];
|
|
220107
|
-
if (!P[a] || !P[a][t])
|
|
220108
|
-
return;
|
|
220098
|
+
if (!P[a] || !P[a][t]) return;
|
|
220109
220099
|
const n = P[a][t].temperature, m = new K(67, 1, 84), d = new K(31, 144, 141), i = new K(250, 230, 37), u = (Ne + be) / 2, p = new er(be, m, u, d, Ne, i);
|
|
220110
220100
|
return {
|
|
220111
220101
|
background: U.getThreeColorGradientRGB(n, p),
|
|
@@ -222880,8 +222870,7 @@ class Ar extends te {
|
|
|
222880
222870
|
return r === 0 ? "id" + e : r === 1 ? this.nf.format(e) : e;
|
|
222881
222871
|
}
|
|
222882
222872
|
getCellRenderer(e, r) {
|
|
222883
|
-
if (r == 2)
|
|
222884
|
-
return this.barRenderer;
|
|
222873
|
+
if (r == 2) return this.barRenderer;
|
|
222885
222874
|
}
|
|
222886
222875
|
getYPosByRowIndex(e) {
|
|
222887
222876
|
return e * this.getRowHeight(0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guiexpert/demo-table-models",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.57",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"tslib": "^2.3.0",
|
|
21
|
-
"@guiexpert/table": "^1.1.
|
|
21
|
+
"@guiexpert/table": "^1.1.57"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "^20.11.17",
|
|
25
|
-
"vite": "
|
|
25
|
+
"vite": "6.3.4",
|
|
26
26
|
"vite-plugin-dts": "^3.7.2",
|
|
27
27
|
"vite-plugin-eslint": "^1.8.1",
|
|
28
28
|
"vite-plugin-static-copy": "^0.17.0",
|