ods-component-lib 1.18.15 → 1.18.16
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.
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IDataGridOptions, IButtonProps, ISelectionProps, IEditingProps, ISummaryProps } from 'devextreme-react/data-grid';
|
|
3
3
|
interface IOdsDataGridProps extends IDataGridOptions {
|
|
4
|
-
isApplyButtonClicked?: boolean;
|
|
5
4
|
language: string;
|
|
6
5
|
exportFileName: string;
|
|
7
6
|
filterEnabledShow: boolean;
|
package/dist/index.js
CHANGED
|
@@ -17233,9 +17233,14 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
|
|
|
17233
17233
|
return _catch(function () {
|
|
17234
17234
|
return Promise.resolve(fetch(apiUrl, requestOptions)).then(function (response) {
|
|
17235
17235
|
return Promise.resolve(response.json()).then(function (newData) {
|
|
17236
|
-
|
|
17237
|
-
|
|
17238
|
-
|
|
17236
|
+
if (loadedPageCount == 1) {
|
|
17237
|
+
setData(newData.Data);
|
|
17238
|
+
loadedPageCount = 1;
|
|
17239
|
+
} else if (totalPageCount >= loadedPageCount) {
|
|
17240
|
+
setData(function (prevData) {
|
|
17241
|
+
return [].concat(prevData, newData.Data);
|
|
17242
|
+
});
|
|
17243
|
+
}
|
|
17239
17244
|
totalPageCount = newData.PageCount;
|
|
17240
17245
|
totalRecordCount = newData.RowCount;
|
|
17241
17246
|
});
|