sccoreui 5.7.17 → 5.7.18

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.
@@ -36,7 +36,6 @@ function ParentForGrid(props) {
36
36
  }, []);
37
37
  // Callback to products for getting data
38
38
  const getData = (startRow, endRow) => tslib_1.__awaiter(this, void 0, void 0, function* () {
39
- setIsLoading(true);
40
39
  if (!(props === null || props === void 0 ? void 0 : props.getRowData)) {
41
40
  return;
42
41
  }
@@ -48,6 +47,7 @@ function ParentForGrid(props) {
48
47
  });
49
48
  // Gets call onLoad,scroll and whenever any featureDetails changed
50
49
  const onGridReady = (params) => {
50
+ setIsLoading(true);
51
51
  console.log('calling on grid ready');
52
52
  setApi(params.api);
53
53
  setGridReadyEvent(params);
@@ -60,7 +60,6 @@ function ParentForGrid(props) {
60
60
  console.log(result, 'result from callback');
61
61
  if ((result === null || result === void 0 ? void 0 : result.length) > 0) {
62
62
  params.successCallback(result, -1);
63
- setIsLoading(false);
64
63
  }
65
64
  else {
66
65
  params.failCallback();
@@ -68,6 +67,7 @@ function ParentForGrid(props) {
68
67
  }),
69
68
  };
70
69
  params.api.setGridOption("datasource", dataSource);
70
+ setIsLoading(false);
71
71
  };
72
72
  // Get selected checkBox data
73
73
  const onSelectionChanged = () => {
@@ -103,6 +103,6 @@ function ParentForGrid(props) {
103
103
  }, [featureDetails.searchedText]);
104
104
  console.log(gridData, 'grid data');
105
105
  console.log(featureDetails, 'feature details');
106
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: !isLoading ? ((0, jsx_runtime_1.jsxs)("div", Object.assign({ style: { height: style.height, width: style.width } }, { children: [(0, jsx_runtime_1.jsx)(advanced_feature_1.default, { featureDetails: featureDetails, setFeatureDetails: setFeatureDetails, columnData: gridData.columnData, props: props, callGrid: callGrid }), (0, jsx_runtime_1.jsx)(AgGrid_1.default, { style: style, gridOptions: gridOptions, onGridReady: onGridReady })] }))) : (0, jsx_runtime_1.jsx)("p", { children: "Loading..." }) }));
106
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ style: { height: style.height, width: style.width } }, { children: !isLoading ? ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(advanced_feature_1.default, { featureDetails: featureDetails, setFeatureDetails: setFeatureDetails, columnData: gridData.columnData, props: props, callGrid: callGrid }), (0, jsx_runtime_1.jsx)(AgGrid_1.default, { style: style, gridOptions: gridOptions, onGridReady: onGridReady })] })) : ((0, jsx_runtime_1.jsx)("p", { children: "Loading..." })) })) }));
107
107
  }
108
108
  exports.default = ParentForGrid;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "5.7.17",
3
+ "version": "5.7.18",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",