sccoreui 6.2.49 → 6.2.50

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.
@@ -162,7 +162,7 @@ const ColumnGroup = (props) => {
162
162
  gridApi.current.api.setColumnDefs(clonedInitialColumns);
163
163
  gridApi.current.columnApi.setRowGroupColumns([]);
164
164
  // Reflect the new column configuration in the state
165
- setGridData((prev) => (Object.assign(Object.assign({}, prev), { columnData: clonedInitialColumns })));
165
+ setGridData((prev) => (Object.assign(Object.assign({}, prev), { columnData: clonedInitialColumns.filter((d) => d.grouping === true || !("grouping" in d)) })));
166
166
  // Reset states accordingly
167
167
  setColumnsSelectedForGroup([]);
168
168
  setRenderColumns(clonedInitialColumns);
@@ -331,7 +331,7 @@ function ParentForGrid(props) {
331
331
  return document.getElementById("wrapper");
332
332
  }, []);
333
333
  // Options that grid should have
334
- const gridOptions = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ columnDefs: (_f = gridData === null || gridData === void 0 ? void 0 : gridData.columnData) === null || _f === void 0 ? void 0 : _f.map((column) => {
334
+ const gridOptions = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ columnDefs: (_f = gridData === null || gridData === void 0 ? void 0 : gridData.columnData) === null || _f === void 0 ? void 0 : _f.map((column) => {
335
335
  var _a, _b;
336
336
  if ((column === null || column === void 0 ? void 0 : column.enableChildCheckbox) && (column === null || column === void 0 ? void 0 : column.enableHeaderCheckbox)) {
337
337
  return Object.assign(Object.assign({}, column), { headerComponent: (params) => headerCheckBoxRenderer(params === null || params === void 0 ? void 0 : params.displayName, (column === null || column === void 0 ? void 0 : column.headerComponent) && ""), cellRenderer: (params) => (0, utilComponents_1.dataCellRenderer)(params, column, props), cellRendererParams: {
@@ -350,7 +350,7 @@ function ParentForGrid(props) {
350
350
  dataTypeDefinitions: props === null || props === void 0 ? void 0 : props.dataTypeDefinitions,
351
351
  })), { popupParent: popupParent }), ((props === null || props === void 0 ? void 0 : props.treeData) && { treeData: props === null || props === void 0 ? void 0 : props.treeData })), ((props === null || props === void 0 ? void 0 : props.groupDefaultExpanded) && {
352
352
  groupDefaultExpanded: props === null || props === void 0 ? void 0 : props.groupDefaultExpanded, // to enable tree data
353
- })), ((props === null || props === void 0 ? void 0 : props.onRowClicked) ? { onRowClicked: props === null || props === void 0 ? void 0 : props.onRowClicked } : {})), ((props === null || props === void 0 ? void 0 : props.quickSearch) ? { quickSearch: props.quickSearch } : {}));
353
+ })), ((props === null || props === void 0 ? void 0 : props.onRowClicked) ? { onRowClicked: props === null || props === void 0 ? void 0 : props.onRowClicked } : {})), ((props === null || props === void 0 ? void 0 : props.quickSearch) ? { quickSearch: props.quickSearch } : {})), ((props === null || props === void 0 ? void 0 : props.rowDragManaged) ? { rowDragManaged: props === null || props === void 0 ? void 0 : props.rowDragManaged } : {}));
354
354
  // Fucntion to call the grid
355
355
  const callGrid = (featureDetails) => {
356
356
  onGridReady(gridReadyEvent, featureDetails);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "6.2.49",
3
+ "version": "6.2.50",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",