inviton-powerduck 0.0.133 → 0.0.134
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.
|
@@ -155,9 +155,9 @@ export enum RowIndexMode {
|
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
export interface DataTableLoadedRowset {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
totalCount: number;
|
|
159
|
+
totalFilteredCount: number;
|
|
160
|
+
rows: any[];
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
interface StoredState {
|
|
@@ -1413,13 +1413,13 @@ class DataTableComponent extends TsxComponent<DataTableArgs> implements DataTabl
|
|
|
1413
1413
|
|
|
1414
1414
|
if (mySelf.parseLoadedRowset != null) {
|
|
1415
1415
|
const rowset = mySelf.parseLoadedRowset(data);
|
|
1416
|
-
mySelf.totalCount = rowset.
|
|
1417
|
-
mySelf.totalFilteredCount = rowset.
|
|
1418
|
-
mySelf.rows = rowset.
|
|
1416
|
+
mySelf.totalCount = rowset.totalCount;
|
|
1417
|
+
mySelf.totalFilteredCount = rowset.totalFilteredCount;
|
|
1418
|
+
mySelf.rows = rowset.rows;
|
|
1419
1419
|
} else {
|
|
1420
|
-
mySelf.totalCount = data.TotalCount;
|
|
1421
|
-
mySelf.totalFilteredCount = data.TotalFilteredCount;
|
|
1422
|
-
mySelf.rows = data.Rows;
|
|
1420
|
+
mySelf.totalCount = data.totalCount ?? data.TotalCount;
|
|
1421
|
+
mySelf.totalFilteredCount = data.totalFilteredCount ?? data.TotalFilteredCount;
|
|
1422
|
+
mySelf.rows = data.rows ?? data.Rows;
|
|
1423
1423
|
}
|
|
1424
1424
|
|
|
1425
1425
|
mySelf.loadedRows = mySelf.rows;
|