sccoreui 6.1.23 → 6.1.24

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.
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.fillOperation = exports.updateCells = exports.getCheckedStatus = exports.sortColumns = exports.parseIfNeeded = exports.applyDefaultFilters = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const constants_1 = require("./constants");
6
5
  const applyDefaultFilters = (defaultFilters) => {
7
6
  const filters = defaultFilters === null || defaultFilters === void 0 ? void 0 : defaultFilters.map((item) => {
8
7
  const obj = {
@@ -97,9 +96,9 @@ const fillOperation = (params, api, parentRowData, editedRecords, setEditedRecor
97
96
  const rowData = rowNode === null || rowNode === void 0 ? void 0 : rowNode.data;
98
97
  // Check if rowData exists and update the field
99
98
  if (rowData && (rowNode.id != parentRowData.id)) {
100
- if ((rowData === null || rowData === void 0 ? void 0 : rowData[columnDetails === null || columnDetails === void 0 ? void 0 : columnDetails.field]) == constants_1.EMPTY_RECORD || (rowData === null || rowData === void 0 ? void 0 : rowData.type) !== (parentRowData === null || parentRowData === void 0 ? void 0 : parentRowData.type) || !(rowData === null || rowData === void 0 ? void 0 : rowData[columnDetails === null || columnDetails === void 0 ? void 0 : columnDetails.field])) {
101
- continue;
102
- }
99
+ // if( rowData?.[columnDetails?.field] == EMPTY_RECORD || rowData?.type !== parentRowData?.type || !rowData?.[columnDetails?.field] ){
100
+ // continue
101
+ // }
103
102
  rowData[columnDetails === null || columnDetails === void 0 ? void 0 : columnDetails.field] = parentRowData[columnDetails === null || columnDetails === void 0 ? void 0 : columnDetails.field];
104
103
  const schemaForEdit = {
105
104
  row: rowData,
@@ -189,7 +189,7 @@ function ParentForGrid(props) {
189
189
  else if (props.rowModelType === constants_1.ROWMODELTYPE.SERVER_SIDE) {
190
190
  const dataSource = {
191
191
  getRows: (params) => tslib_1.__awaiter(this, void 0, void 0, function* () {
192
- var _j;
192
+ var _j, _k;
193
193
  const startRow = params.request.startRow;
194
194
  const endRow = params.request.endRow;
195
195
  // Scroll should not exit MAX_RECORDS_TO_LOAD
@@ -215,7 +215,8 @@ function ParentForGrid(props) {
215
215
  else {
216
216
  // params.fail();
217
217
  const gridRows = startRow >= constants_1.BLOCK_SIZE ? gridData.rowData : [];
218
- gridRef.current.api.showNoRowsOverlay();
218
+ if (!((_k = params === null || params === void 0 ? void 0 : params.parentNode) === null || _k === void 0 ? void 0 : _k.id))
219
+ gridRef.current.api.showNoRowsOverlay();
219
220
  params.success({ rowData: gridRows });
220
221
  return;
221
222
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "6.1.23",
3
+ "version": "6.1.24",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",