sccoreui 6.2.71 → 6.2.72
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.js
CHANGED
|
@@ -16,6 +16,7 @@ const set_filter_1 = require("@ag-grid-enterprise/set-filter");
|
|
|
16
16
|
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
|
+
const column_tool_panel_1 = require("@ag-grid-enterprise/column-tool-panel");
|
|
19
20
|
core_1.ModuleRegistry.registerModules([
|
|
20
21
|
client_side_row_model_1.ClientSideRowModelModule,
|
|
21
22
|
range_selection_1.RangeSelectionModule,
|
|
@@ -25,6 +26,7 @@ core_1.ModuleRegistry.registerModules([
|
|
|
25
26
|
set_filter_1.SetFilterModule,
|
|
26
27
|
advanced_filter_1.AdvancedFilterModule,
|
|
27
28
|
menu_1.MenuModule,
|
|
29
|
+
column_tool_panel_1.ColumnsToolPanelModule
|
|
28
30
|
]);
|
|
29
31
|
core_2.LicenseManager.setLicenseKey(LicenceKey_1.LICENSEKEY);
|
|
30
32
|
const AgGrid = ({ style, gridOptions, onGridReady, gridRef }) => {
|
|
@@ -15,6 +15,7 @@ const group_checkbox_1 = tslib_1.__importDefault(require("./group-checkbox"));
|
|
|
15
15
|
const utilComponents_1 = require("./utilComponents");
|
|
16
16
|
function ParentForGrid(props) {
|
|
17
17
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
+
const { gridProps = {} } = props;
|
|
18
19
|
const [gridData, setGridData] = (0, react_1.useState)({
|
|
19
20
|
rowData: [],
|
|
20
21
|
columnData: (0, helper_1.sortColumns)(props === null || props === void 0 ? void 0 : props.columnData),
|
|
@@ -145,6 +146,7 @@ function ParentForGrid(props) {
|
|
|
145
146
|
// Gets call onLoad,scroll and whenever any featureDetails changed
|
|
146
147
|
const onGridReady = (params, updatedFeatures) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
147
148
|
var _t, _u;
|
|
149
|
+
params.api.setGridOption('rowSelection', 'multiple');
|
|
148
150
|
params && setApi(params === null || params === void 0 ? void 0 : params.api);
|
|
149
151
|
setGridReadyEvent(params);
|
|
150
152
|
let currentFeatures = updatedFeatures;
|
|
@@ -181,6 +183,7 @@ function ParentForGrid(props) {
|
|
|
181
183
|
}
|
|
182
184
|
// get data for request from our fake server
|
|
183
185
|
const response = yield getData(startRow, endRow, currentFeatures, params);
|
|
186
|
+
console.log(response, "response");
|
|
184
187
|
// simulating real server call with a 500ms delay
|
|
185
188
|
if (((_w = response.rowData) === null || _w === void 0 ? void 0 : _w.length) > 0) {
|
|
186
189
|
setGridData(Object.assign(Object.assign({}, gridData), { rowData: response.rowData }));
|
|
@@ -332,7 +335,7 @@ function ParentForGrid(props) {
|
|
|
332
335
|
return document.getElementById("wrapper");
|
|
333
336
|
}, []);
|
|
334
337
|
// Options that grid should have
|
|
335
|
-
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) => {
|
|
338
|
+
const gridOptions = Object.assign(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) => {
|
|
336
339
|
var _a, _b;
|
|
337
340
|
if ((column === null || column === void 0 ? void 0 : column.enableChildCheckbox) && (column === null || column === void 0 ? void 0 : column.enableHeaderCheckbox)) {
|
|
338
341
|
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: {
|
|
@@ -345,13 +348,13 @@ function ParentForGrid(props) {
|
|
|
345
348
|
}
|
|
346
349
|
}), autoGroupColumnDef: (props === null || props === void 0 ? void 0 : props.autoGroupColumnDef)
|
|
347
350
|
? props === null || props === void 0 ? void 0 : props.autoGroupColumnDef
|
|
348
|
-
: manageColumnGrouping(), treeData: (props === null || props === void 0 ? void 0 : props.enableTree) ? props === null || props === void 0 ? void 0 : props.enableTree : false, getDataPath: (props === null || props === void 0 ? void 0 : props.enableTree) ? getDataPath : null, defaultColDef: defaultColDef, suppressMenuHide: false,
|
|
351
|
+
: manageColumnGrouping(), treeData: (props === null || props === void 0 ? void 0 : props.enableTree) ? props === null || props === void 0 ? void 0 : props.enableTree : false, getDataPath: (props === null || props === void 0 ? void 0 : props.enableTree) ? getDataPath : null, defaultColDef: defaultColDef, suppressMenuHide: false, suppressRowClickSelection: false, headerHeight: props === null || props === void 0 ? void 0 : props.columnHeaderHeight, rowHeight: constants_1.ROW_HEIGHT, rowModelType: props.rowModelType, pinnedTopRowData: props === null || props === void 0 ? void 0 : props.pinnedTopRowData, cacheBlockSize: constants_1.BLOCK_SIZE, maxBlocksInCache: constants_1.MAX_BLOCKS, blockLoadDebounceMillis: constants_1.DEBOUNCE_INTERVAL, noRowsOverlayComponent: props === null || props === void 0 ? void 0 : props.noRowsOverlayComponent, loadingOverlayComponent: loading_component_1.default, suppressCellFocus: true, suppressPropertyNamesCheck: true, suppressServerSideFullWidthLoadingRow: true, enableRangeSelection: (_g = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _g === void 0 ? void 0 : _g.enableFillHandle, enableFillHandle: (_h = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _h === void 0 ? void 0 : _h.enableFillHandle, onFillEnd: wrapperToFillOpertation, fillOperation: myOpertaion, serverSideInitialRowCount: (props === null || props === void 0 ? void 0 : props.serverSideInitialRowCount) || 10, getRowId: getRowId, enableAdvancedFilter: (props === null || props === void 0 ? void 0 : props.enableAdvancedFilter) || false, fillHandleDirection: "y" }, ((props === null || props === void 0 ? void 0 : props.rowData) && { rowData: props === null || props === void 0 ? void 0 : props.rowData })), (totalRecords <= 6 && ((_j = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _j === void 0 ? void 0 : _j.isGridAutoHeight)
|
|
349
352
|
? { domLayout: "autoHeight" }
|
|
350
353
|
: { domLayout: undefined })), ((props === null || props === void 0 ? void 0 : props.dataTypeDefinitions) && {
|
|
351
354
|
dataTypeDefinitions: props === null || props === void 0 ? void 0 : props.dataTypeDefinitions,
|
|
352
355
|
})), { 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) && {
|
|
353
356
|
groupDefaultExpanded: props === null || props === void 0 ? void 0 : props.groupDefaultExpanded, // to enable tree data
|
|
354
|
-
})), ((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 } : {}));
|
|
357
|
+
})), ((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 } : {})), gridProps);
|
|
355
358
|
// Fucntion to call the grid
|
|
356
359
|
const callGrid = (featureDetails) => {
|
|
357
360
|
onGridReady(gridReadyEvent, featureDetails);
|
|
@@ -9080,15 +9080,6 @@ 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: "verified-check-circle",
|
|
9086
|
-
svg: `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9087
|
-
<rect x="0.625" y="0.625" width="18.75" height="18.75" rx="9.375" fill="#132067"/>
|
|
9088
|
-
<rect x="0.625" y="0.625" width="18.75" height="18.75" rx="9.375" stroke="#132067" stroke-width="1.25"/>
|
|
9089
|
-
<path d="M14.1615 6.875L8.43229 12.6042L5.82812 10" stroke="white" stroke-width="2.08333" stroke-linecap="round" stroke-linejoin="round"/>
|
|
9090
|
-
</svg>
|
|
9091
|
-
`,
|
|
9092
9083
|
},
|
|
9093
9084
|
{
|
|
9094
9085
|
name: "drag-and-drop",
|