sccoreui 6.2.80 → 6.2.82

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.
@@ -17,6 +17,8 @@ const advanced_filter_1 = require("@ag-grid-enterprise/advanced-filter");
17
17
  const LicenceKey_1 = require("./LicenceKey");
18
18
  const menu_1 = require("@ag-grid-enterprise/menu");
19
19
  const column_tool_panel_1 = require("@ag-grid-enterprise/column-tool-panel");
20
+ const csv_export_1 = require("@ag-grid-community/csv-export");
21
+ const excel_export_1 = require("@ag-grid-enterprise/excel-export");
20
22
  core_1.ModuleRegistry.registerModules([
21
23
  client_side_row_model_1.ClientSideRowModelModule,
22
24
  range_selection_1.RangeSelectionModule,
@@ -27,6 +29,8 @@ core_1.ModuleRegistry.registerModules([
27
29
  advanced_filter_1.AdvancedFilterModule,
28
30
  menu_1.MenuModule,
29
31
  column_tool_panel_1.ColumnsToolPanelModule,
32
+ csv_export_1.CsvExportModule,
33
+ excel_export_1.ExcelExportModule
30
34
  ]);
31
35
  core_2.LicenseManager.setLicenseKey(LicenceKey_1.LICENSEKEY);
32
36
  const AgGrid = ({ gridOptions, onGridReady, gridRef }) => {
@@ -145,8 +145,7 @@ function ParentForGrid(props) {
145
145
  });
146
146
  // Gets call onLoad,scroll and whenever any featureDetails changed
147
147
  const onGridReady = (params, updatedFeatures) => tslib_1.__awaiter(this, void 0, void 0, function* () {
148
- var _t, _u;
149
- params.api.setGridOption("rowSelection", "multiple");
148
+ var _t, _u, _v;
150
149
  params && setApi(params === null || params === void 0 ? void 0 : params.api);
151
150
  setGridReadyEvent(params);
152
151
  let currentFeatures = updatedFeatures;
@@ -154,26 +153,26 @@ function ParentForGrid(props) {
154
153
  currentFeatures = featureDetails;
155
154
  }
156
155
  if ((props === null || props === void 0 ? void 0 : props.rowModelType) === (constants_1.ROWMODELTYPE === null || constants_1.ROWMODELTYPE === void 0 ? void 0 : constants_1.ROWMODELTYPE.CLIENT_SIDE)) {
157
- params === null || params === void 0 ? void 0 : params.api.setGridOption("rowData", []);
156
+ (_t = params === null || params === void 0 ? void 0 : params.api) === null || _t === void 0 ? void 0 : _t.setGridOption("rowData", []);
158
157
  const result = yield getData(0, 0, currentFeatures);
159
158
  if (result.rowData) {
160
159
  setGridData(Object.assign(Object.assign({}, gridData), { rowData: result.rowData }));
161
160
  gridRef.current.api.hideOverlay();
162
- (_t = params === null || params === void 0 ? void 0 : params.api) === null || _t === void 0 ? void 0 : _t.applyTransaction({ add: result.rowData });
161
+ (_u = params === null || params === void 0 ? void 0 : params.api) === null || _u === void 0 ? void 0 : _u.applyTransaction({ add: result.rowData });
163
162
  }
164
163
  else {
165
- (_u = params === null || params === void 0 ? void 0 : params.api) === null || _u === void 0 ? void 0 : _u.applyTransaction({ add: [] });
164
+ (_v = params === null || params === void 0 ? void 0 : params.api) === null || _v === void 0 ? void 0 : _v.applyTransaction({ add: [] });
166
165
  }
167
166
  }
168
167
  else if (props.rowModelType === constants_1.ROWMODELTYPE.SERVER_SIDE) {
169
168
  const dataSource = {
170
169
  getRows: (params) => tslib_1.__awaiter(this, void 0, void 0, function* () {
171
- var _v, _w, _x;
170
+ var _w, _x, _y;
172
171
  const startRow = params.request.startRow;
173
172
  const endRow = params.request.endRow;
174
173
  // Scroll should not exit MAX_RECORDS_TO_LOAD
175
174
  if (endRow > maxLength && maxLength > 0) {
176
- (_v = gridRef === null || gridRef === void 0 ? void 0 : gridRef.current.api) === null || _v === void 0 ? void 0 : _v.hideOverlay();
175
+ (_w = gridRef === null || gridRef === void 0 ? void 0 : gridRef.current.api) === null || _w === void 0 ? void 0 : _w.hideOverlay();
177
176
  // supply rows for requested block to grid
178
177
  params.success({
179
178
  rowData: gridData.rowData,
@@ -185,7 +184,7 @@ function ParentForGrid(props) {
185
184
  const response = yield getData(startRow, endRow, currentFeatures, params);
186
185
  console.log(response, "response");
187
186
  // simulating real server call with a 500ms delay
188
- if (((_w = response.rowData) === null || _w === void 0 ? void 0 : _w.length) > 0) {
187
+ if (((_x = response.rowData) === null || _x === void 0 ? void 0 : _x.length) > 0) {
189
188
  setGridData(Object.assign(Object.assign({}, gridData), { rowData: response.rowData }));
190
189
  gridRef.current.api.hideOverlay();
191
190
  // supply rows for requested block to grid
@@ -195,7 +194,7 @@ function ParentForGrid(props) {
195
194
  else {
196
195
  // params.fail();
197
196
  const gridRows = startRow >= constants_1.BLOCK_SIZE ? gridData.rowData : [];
198
- if (!((_x = params === null || params === void 0 ? void 0 : params.parentNode) === null || _x === void 0 ? void 0 : _x.id))
197
+ if (!((_y = params === null || params === void 0 ? void 0 : params.parentNode) === null || _y === void 0 ? void 0 : _y.id))
199
198
  gridRef.current.api.showNoRowsOverlay();
200
199
  params.success({ rowData: gridRows });
201
200
  return;
@@ -325,7 +324,7 @@ function ParentForGrid(props) {
325
324
  const hasPinnedRows = (api === null || api === void 0 ? void 0 : api.getPinnedTopRowCount()) > 0 || (api === null || api === void 0 ? void 0 : api.getPinnedBottomRowCount()) > 0;
326
325
  const hasRowData = (api === null || api === void 0 ? void 0 : api.getDisplayedRowCount()) > 0;
327
326
  if (hasPinnedRows || hasRowData) {
328
- api.hideOverlay(); // Hide the noRowsOverlayComponent if pinned rows or row data exists
327
+ api === null || api === void 0 ? void 0 : api.hideOverlay(); // Hide the noRowsOverlayComponent if pinned rows or row data exists
329
328
  }
330
329
  else {
331
330
  api === null || api === void 0 ? void 0 : api.showNoRowsOverlay(); // Show the noRowsOverlayComponent only if no rows or pinned rows are present
@@ -390,7 +389,7 @@ function ParentForGrid(props) {
390
389
  }
391
390
  }, [props.updateRowData]);
392
391
  (0, react_1.useEffect)(() => {
393
- var _a;
392
+ var _a, _b;
394
393
  const existingColumns = (_a = gridRef === null || gridRef === void 0 ? void 0 : gridRef.current.api) === null || _a === void 0 ? void 0 : _a.getColumnDefs();
395
394
  if (!(props === null || props === void 0 ? void 0 : props.columnData) || !existingColumns)
396
395
  return;
@@ -405,7 +404,7 @@ function ParentForGrid(props) {
405
404
  return colDef;
406
405
  });
407
406
  const reOrderedColumns = updatedColumnDefs.sort((a, b) => a.seq - b.seq);
408
- gridRef.current.api.setGridOption("columnDefs", reOrderedColumns);
407
+ (_b = gridRef.current.api) === null || _b === void 0 ? void 0 : _b.setGridOption("columnDefs", reOrderedColumns);
409
408
  }, [props === null || props === void 0 ? void 0 : props.columnData]);
410
409
  (0, react_1.useEffect)(() => {
411
410
  if (props === null || props === void 0 ? void 0 : props.emptyCheckboxStatus) {
@@ -9080,6 +9080,12 @@ exports.iconList = [
9080
9080
  svg: `<svg xmlns="http://www.w3.org/2000/svg" width="14" height="13" viewBox="0 0 14 13" fill="none">
9081
9081
  <path d="M11.1654 3.375L5.4362 9.10417L2.83203 6.5" stroke="white" stroke-width="2.08333" stroke-linecap="round" stroke-linejoin="round"/>
9082
9082
  </svg>`,
9083
+ },
9084
+ {
9085
+ name: "check-circle-outline",
9086
+ svg: `<svg width="15" height="16" viewBox="0 0 15 16" fill="none" xmlns="http://www.w3.org/2000/svg">
9087
+ <path d="M4.33268 7.9987L6.33268 9.9987L10.3327 5.9987M13.9993 7.9987C13.9993 11.6806 11.0146 14.6654 7.33268 14.6654C3.65078 14.6654 0.666016 11.6806 0.666016 7.9987C0.666016 4.3168 3.65078 1.33203 7.33268 1.33203C11.0146 1.33203 13.9993 4.3168 13.9993 7.9987Z" stroke="#667085" stroke-width="1.33" stroke-linecap="round" stroke-linejoin="round"/>
9088
+ </svg>`,
9083
9089
  },
9084
9090
  {
9085
9091
  name: "verified-check-circle",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "6.2.80",
3
+ "version": "6.2.82",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",