sccoreui 5.9.97 → 5.9.98

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.
@@ -195,22 +195,21 @@ function ParentForGrid(props) {
195
195
  else if (props.rowModelType === constants_1.ROWMODELTYPE.SERVER_SIDE) {
196
196
  const dataSource = {
197
197
  getRows: (params) => tslib_1.__awaiter(this, void 0, void 0, function* () {
198
+ var _g;
198
199
  const startRow = params.request.startRow;
199
200
  const endRow = params.request.endRow;
200
- console.log("[Datasource] - rows requested by grid: ", params.request);
201
201
  // get data for request from our fake server
202
202
  const response = yield getData(startRow, endRow, currentFeatures);
203
203
  // simulating real server call with a 500ms delay
204
- setTimeout(() => {
205
- var _a;
206
- if (((_a = response.rowData) === null || _a === void 0 ? void 0 : _a.length) > 0) {
207
- // supply rows for requested block to grid
208
- params.success({ rowData: response.rowData, rowCount: response === null || response === void 0 ? void 0 : response.actualEndRow });
209
- }
210
- else {
211
- params.fail();
212
- }
213
- }, 500);
204
+ if (((_g = response.rowData) === null || _g === void 0 ? void 0 : _g.length) > 0) {
205
+ // supply rows for requested block to grid
206
+ params.success({ rowData: response.rowData, rowCount: response === null || response === void 0 ? void 0 : response.actualEndRow });
207
+ }
208
+ else {
209
+ // params.fail();
210
+ gridRef.current.api.showNoRowsOverlay();
211
+ params.success({ rowData: [], rowCount: 0 });
212
+ }
214
213
  }),
215
214
  };
216
215
  params.api.setGridOption("serverSideDatasource", dataSource);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "5.9.97",
3
+ "version": "5.9.98",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",