sccoreui 6.1.51 → 6.1.52

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.
package/dist/App.scss CHANGED
@@ -2235,15 +2235,6 @@ width: 51rem !important;
2235
2235
 
2236
2236
  }
2237
2237
 
2238
- .show_overlay {
2239
- display: block;
2240
- }
2241
-
2242
- .hide_overlay {
2243
- display: none;
2244
-
2245
- }
2246
-
2247
2238
  .loader-main {
2248
2239
  width: 48px;
2249
2240
  height: 48px;
@@ -159,7 +159,7 @@ const mergeArrays = (currentUpdatedRows, updatedRecords) => {
159
159
  // Convert map back to array
160
160
  return Array.from(mergedMap.values());
161
161
  };
162
- const autoGroupColumnDef = (isTreeEnable, headerName) => {
162
+ const autoGroupColumnDef = (isTreeEnable, headerName, groupField) => {
163
163
  if (isTreeEnable) {
164
164
  return {
165
165
  headerName: headerName ? headerName : "Group",
@@ -173,7 +173,7 @@ const autoGroupColumnDef = (isTreeEnable, headerName) => {
173
173
  else {
174
174
  return {
175
175
  headerName: headerName ? headerName : "Group",
176
- field: "group",
176
+ field: groupField || "group",
177
177
  cellRenderer: "agGroupCellRenderer",
178
178
  cellRendererParams: {
179
179
  suppressCount: true,
@@ -240,7 +240,7 @@ function ParentForGrid(props) {
240
240
  return Object.assign(Object.assign({}, column), { headerName: (_b = column === null || column === void 0 ? void 0 : column.headerName) === null || _b === void 0 ? void 0 : _b.toUpperCase() });
241
241
  }
242
242
  }),
243
- autoGroupColumnDef: (0, helper_1.autoGroupColumnDef)((props === null || props === void 0 ? void 0 : props.enableTree) ? true : false, props === null || props === void 0 ? void 0 : props.treeHeaderName),
243
+ autoGroupColumnDef: (0, helper_1.autoGroupColumnDef)((props === null || props === void 0 ? void 0 : props.enableTree) ? true : false, props === null || props === void 0 ? void 0 : props.treeHeaderName, props === null || props === void 0 ? void 0 : props.groupField),
244
244
  treeData: (props === null || props === void 0 ? void 0 : props.enableTree) ? props === null || props === void 0 ? void 0 : props.enableTree : false,
245
245
  getDataPath: (props === null || props === void 0 ? void 0 : props.enableTree) ? getDataPath : null,
246
246
  defaultColDef: defaultColDef,
@@ -85,7 +85,6 @@ onChange, footeTemplate, headerTemplate, labelIcon, labelIconPos, label, labelIc
85
85
  const newPosition = (_a = buttonRef === null || buttonRef === void 0 ? void 0 : buttonRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().top;
86
86
  // Hide overlay if the button position changes from the top
87
87
  if (buttonPosition !== null && newPosition !== buttonPosition) {
88
- console.log("new position: " + newPosition, "button position", buttonPosition);
89
88
  if (optionsMenuRef === null || optionsMenuRef === void 0 ? void 0 : optionsMenuRef.current)
90
89
  optionsMenuRef.current.hide(e);
91
90
  }
@@ -126,6 +126,7 @@ export interface PropsFromProduct {
126
126
  treeHeaderName?: string;
127
127
  discardBulkEdit?: () => void;
128
128
  saveBulkEdit?: () => void;
129
+ groupField?: string;
129
130
  }
130
131
  export interface ResoponseFromCallback {
131
132
  totalRecords: number;
@@ -4,7 +4,7 @@ export declare const sortColumns: (columns: any) => any;
4
4
  export declare const getCheckedStatus: (row: any, featureDetails: any, GRID_CHECKBOX_STATUS: any, setFeatureDetails: any) => any;
5
5
  export declare const updateCells: (updatedRowData: any, setUpdateRowData: any, api: any) => void;
6
6
  export declare const fillOperation: (params: any, api: any, parentNode: any, editedRecords: any, setEditedRecords: any) => Promise<void>;
7
- export declare const autoGroupColumnDef: (isTreeEnable: any, headerName: any) => {
7
+ export declare const autoGroupColumnDef: (isTreeEnable: any, headerName: any, groupField: any) => {
8
8
  headerName: any;
9
9
  minWidth: number;
10
10
  cellRendererParams: {
@@ -14,7 +14,7 @@ export declare const autoGroupColumnDef: (isTreeEnable: any, headerName: any) =>
14
14
  cellRenderer?: undefined;
15
15
  } | {
16
16
  headerName: any;
17
- field: string;
17
+ field: any;
18
18
  cellRenderer: string;
19
19
  cellRendererParams: {
20
20
  suppressCount: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "6.1.51",
3
+ "version": "6.1.52",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",