d2coreui 23.0.29 → 23.0.31

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.
@@ -29,9 +29,9 @@ import NoRecordsOverlay from "d2coreui/components/grid/panel/noRecordsOverlay";
29
29
  import at from "lodash/at";
30
30
  import ColumnTransfer from "d2coreui/components/grid/config/columnTransfer";
31
31
  import cloneDeep from "lodash/cloneDeep";
32
- import escape from "lodash/escape";
33
32
  import { RangeSelector } from "d2coreui/components/grid/cell/rangeSelector";
34
- import { _defineModule, CellCtrl, ModuleRegistry } from "ag-grid-community";
33
+ import { CellControl } from "d2coreui/components/grid/cell/cellControl";
34
+ import { AllCommunityModule, ModuleRegistry, provideGlobalGridOptions } from "ag-grid-community";
35
35
  import { LocaleHolder } from "d2core/i18n/localeHolder";
36
36
  import tableDefaultRowStyleRules from "d2coreui/components/grid/cell/tableDefaultRowStyleRules";
37
37
  import { ModalDialog } from "d2coreui/components/modal/modalDialog";
@@ -75,22 +75,19 @@ const gridFrameworkComponents = {
75
75
  loadingOverlay: LoadingOverlay,
76
76
  noRecordsOverlay: NoRecordsOverlay
77
77
  };
78
- const DataGridModule = _defineModule({
79
- version: "32.2.0",
78
+ const DataGridModule = {
79
+ version: "34.3.1",
80
80
  moduleName: `dataGridModule`,
81
- beans: [RangeSelector, BeanAccessor],
81
+ beans: [RangeSelector, CellControl, BeanAccessor],
82
82
  dependantModules: [],
83
- });
84
- ModuleRegistry.__register(DataGridModule, false, undefined);
85
- CellCtrl.prototype.onPopupEditorClosed = function () {
86
- if (!this.isEditing()) {
87
- return;
88
- }
89
- this.stopEditingAndFocus(true);
90
83
  };
84
+ ModuleRegistry.registerModules([AllCommunityModule, DataGridModule]);
91
85
  function getRowId(item) {
92
86
  return item.data.id + "";
93
87
  }
88
+ provideGlobalGridOptions({
89
+ theme: "legacy"
90
+ });
94
91
  const rowStyleRuleCompiledExpressions = {};
95
92
  export const EXPORT_SEPARATOR = "\n";
96
93
  var NavigationEventEnum;
@@ -101,6 +98,7 @@ var NavigationEventEnum;
101
98
  class DataGrid extends React.Component {
102
99
  constructor(props) {
103
100
  super(props);
101
+ this.firstLoadDone = false;
104
102
  this.lastPaginationEvent = null;
105
103
  this.wrappingDiv = null;
106
104
  this.state = {
@@ -115,7 +113,6 @@ class DataGrid extends React.Component {
115
113
  rowHeight: calculateRowHeight(GRID_DEFAULT_FONT_SIZE, GRID_DEFAULT_ROW_HEIGHT_DELTA),
116
114
  viewport: [0, 0],
117
115
  contextMenuVisible: false,
118
- firstLoadDone: false,
119
116
  loading: false,
120
117
  columnTransferHeight: 500,
121
118
  pageOrientation: "PORTRAIT",
@@ -243,7 +240,7 @@ class DataGrid extends React.Component {
243
240
  return "---";
244
241
  }
245
242
  let tooltipValue;
246
- tooltipValue = unixTimeToMoment(value).format(LocaleHolder.getDateTimeFormat(true, true, true));
243
+ tooltipValue = unixTimeToMoment(value).format(LocaleHolder.getDateTimeFormat(true, true, true, true));
247
244
  return React.createElement("span", { title: tooltipValue }, unixTimeToMoment(value).format(LocaleHolder.getDateFormat(!this.props.hideYear)));
248
245
  }
249
246
  else {
@@ -283,8 +280,8 @@ class DataGrid extends React.Component {
283
280
  return "Null Time";
284
281
  }
285
282
  let tooltipValue;
286
- tooltipValue = unixTimeToMoment(value).format(LocaleHolder.getDateTimeFormat(true, true, true));
287
- return React.createElement("span", { title: tooltipValue }, unixTimeToMoment(value).format(LocaleHolder.getDateTimeFormat(!this.props.hideYear, true, this.props.showMilliseconds)));
283
+ tooltipValue = unixTimeToMoment(value).format(LocaleHolder.getDateTimeFormat(true, true, true, true));
284
+ return React.createElement("span", { title: tooltipValue }, unixTimeToMoment(value).format(LocaleHolder.getDateTimeFormat(!this.props.hideYear, true, this.props.showMilliseconds, true)));
288
285
  }
289
286
  else {
290
287
  return "---";
@@ -293,7 +290,7 @@ class DataGrid extends React.Component {
293
290
  valueFormatter: (params) => {
294
291
  const value = DataGrid.getCellValue(params);
295
292
  if (value !== undefined) {
296
- return unixTimeToMoment(value).format(LocaleHolder.getDateTimeFormat(!this.props.hideYear, true, this.props.showMilliseconds));
293
+ return unixTimeToMoment(value).format(LocaleHolder.getDateTimeFormat(!this.props.hideYear, true, this.props.showMilliseconds, true));
297
294
  }
298
295
  return "---";
299
296
  },
@@ -303,14 +300,14 @@ class DataGrid extends React.Component {
303
300
  filterValueGetter: (params) => {
304
301
  const value = DataGrid.getCellValue(params);
305
302
  if (value !== undefined) {
306
- return unixTimeToMoment(value).format(LocaleHolder.getDateTimeFormat(!this.props.hideYear, true, this.props.showMilliseconds));
303
+ return unixTimeToMoment(value).format(LocaleHolder.getDateTimeFormat(!this.props.hideYear, true, this.props.showMilliseconds, true));
307
304
  }
308
305
  return null;
309
306
  },
310
307
  getQuickFilterText: (params) => {
311
308
  const value = DataGrid.getCellValue(params);
312
309
  if (value !== undefined) {
313
- return unixTimeToMoment(value).format(LocaleHolder.getDateTimeFormat(!this.props.hideYear, true, this.props.showMilliseconds));
310
+ return unixTimeToMoment(value).format(LocaleHolder.getDateTimeFormat(!this.props.hideYear, true, this.props.showMilliseconds, true));
314
311
  }
315
312
  return "";
316
313
  }
@@ -320,7 +317,7 @@ class DataGrid extends React.Component {
320
317
  const value = DataGrid.getCellValue(params);
321
318
  if (value !== undefined) {
322
319
  let tooltipValue;
323
- tooltipValue = unixTimeToMoment(value).format(LocaleHolder.getDateTimeFormat(true, true, true));
320
+ tooltipValue = unixTimeToMoment(value).format(LocaleHolder.getDateTimeFormat(true, true, true, true));
324
321
  return React.createElement("span", { title: tooltipValue }, unixTimeToMoment(value).fromNow());
325
322
  }
326
323
  else {
@@ -330,7 +327,7 @@ class DataGrid extends React.Component {
330
327
  valueFormatter: (params) => {
331
328
  const value = DataGrid.getCellValue(params);
332
329
  if (value !== undefined) {
333
- return unixTimeToMoment(value).format(LocaleHolder.getDateTimeFormat(!this.props.hideYear, true, this.props.showMilliseconds));
330
+ return unixTimeToMoment(value).format(LocaleHolder.getDateTimeFormat(!this.props.hideYear, true, this.props.showMilliseconds, true));
334
331
  }
335
332
  return "---";
336
333
  },
@@ -340,14 +337,14 @@ class DataGrid extends React.Component {
340
337
  filterValueGetter: (params) => {
341
338
  const value = DataGrid.getCellValue(params);
342
339
  if (value !== undefined) {
343
- return unixTimeToMoment(value).format(LocaleHolder.getDateTimeFormat(!this.props.hideYear, true, this.props.showMilliseconds));
340
+ return unixTimeToMoment(value).format(LocaleHolder.getDateTimeFormat(!this.props.hideYear, true, this.props.showMilliseconds, true));
344
341
  }
345
342
  return null;
346
343
  },
347
344
  getQuickFilterText: (params) => {
348
345
  const value = DataGrid.getCellValue(params);
349
346
  if (value !== undefined) {
350
- return unixTimeToMoment(value).format(LocaleHolder.getDateTimeFormat(!this.props.hideYear, true, this.props.showMilliseconds));
347
+ return unixTimeToMoment(value).format(LocaleHolder.getDateTimeFormat(!this.props.hideYear, true, this.props.showMilliseconds, true));
351
348
  }
352
349
  return "";
353
350
  }
@@ -356,7 +353,9 @@ class DataGrid extends React.Component {
356
353
  cellRenderer: (params) => {
357
354
  const value = DataGrid.getCellValue(params);
358
355
  if (value !== undefined) {
359
- return React.createElement("span", { style: { whiteSpace: "pre" }, title: escape(value) }, typeof value === "string" ? escape(value.replace(/[\r\n]+/g, ' ')) : value);
356
+ return React.createElement("span", { style: { whiteSpace: "pre" }, title: value },
357
+ " ",
358
+ typeof value === "string" ? value.replace(/[\r\n]+/g, ' ') : value);
360
359
  }
361
360
  else {
362
361
  return "";
@@ -603,9 +602,9 @@ class DataGrid extends React.Component {
603
602
  if (this.props.paging.onPaginationChanged) {
604
603
  this.props.paging.onPaginationChanged(currentPageSize, this.props.paging.pageSize);
605
604
  }
606
- if (!this.state.firstLoadDone) {
605
+ if (!this.firstLoadDone) {
607
606
  this.loadData();
608
- this.setState({ firstLoadDone: true });
607
+ this.firstLoadDone = true;
609
608
  }
610
609
  }
611
610
  this.setState({ pageSize: currentPageSize, recordsCount: recordsCount, pageIndex: currentPage });
@@ -650,7 +649,7 @@ class DataGrid extends React.Component {
650
649
  else if (pageSize === 0) {
651
650
  this.gridApi.updateGridOptions({ pagination: true, paginationAutoPageSize: true });
652
651
  const rowHeight = (_c = (_b = (_a = gridApiWithPrivateAccess.beans.gos).getRowHeightAsNumber) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : 1;
653
- const bodyHeight = gridApiWithPrivateAccess.beans.ctrlsService.params.center.viewportSizeFeature.getBodyHeight();
652
+ const bodyHeight = gridApiWithPrivateAccess.beans.ctrlsSvc.params.center.viewportSizeFeature.getBodyHeight();
654
653
  let availablePageSize = 1000;
655
654
  if (bodyHeight > 0) {
656
655
  availablePageSize = Math.floor(bodyHeight / rowHeight);
@@ -710,7 +709,7 @@ class DataGrid extends React.Component {
710
709
  this.gridApi.refreshHeader();
711
710
  this.gridApi.redrawRows();
712
711
  if (this.props.rowModelType === "infinite" && this.props.datasource) {
713
- this.gridApi.getModel().rowHeight = rowHeight;
712
+ this.gridApi.setGridOption('rowHeight', rowHeight);
714
713
  this.gridApi.updateGridOptions({ datasource: this.props.datasource });
715
714
  }
716
715
  }
@@ -846,7 +845,7 @@ class DataGrid extends React.Component {
846
845
  var previousCell = params.previousCellPosition;
847
846
  switch ((_a = params.event) === null || _a === void 0 ? void 0 : _a.code) {
848
847
  case Key.ArrowDown:
849
- if ((previousCell.rowIndex + 1) >= this.gridApi.getModel().getRowCount()) {
848
+ if ((previousCell.rowIndex + 1) >= this.gridApi.getDisplayedRowCount()) {
850
849
  if (pageIndex < (totalPages - 1)) {
851
850
  this.onGoToPage(pageIndex + 1);
852
851
  return {
@@ -869,7 +868,7 @@ class DataGrid extends React.Component {
869
868
  if (pageIndex > 0) {
870
869
  this.onGoToPage(pageIndex - 1);
871
870
  return {
872
- rowIndex: this.gridApi.getModel().getRowCount() - 1,
871
+ rowIndex: this.gridApi.getDisplayedRowCount() - 1,
873
872
  column: previousCell.column,
874
873
  rowPinned: previousCell.rowPinned
875
874
  };
@@ -906,7 +905,7 @@ class DataGrid extends React.Component {
906
905
  if (params.event.code === Key.ArrowDown) {
907
906
  indexToJump = focusedCell.rowIndex + 1;
908
907
  columnToJump = focusedCell.column;
909
- if (indexToJump >= this.gridApi.getModel().getRowCount()) {
908
+ if (indexToJump >= this.gridApi.getDisplayedRowCount()) {
910
909
  if (pageIndex < (totalPages - 1)) {
911
910
  this.onGoToPage(pageIndex + 1);
912
911
  indexToJump = 0;
@@ -934,7 +933,7 @@ class DataGrid extends React.Component {
934
933
  if (indexToJump < 0) {
935
934
  if (pageIndex > 0) {
936
935
  this.onGoToPage(pageIndex - 1);
937
- indexToJump = this.gridApi.getModel().getRowCount() - 1;
936
+ indexToJump = this.gridApi.getDisplayedRowCount() - 1;
938
937
  }
939
938
  else {
940
939
  indexToJump = focusedCell.rowIndex;
@@ -1107,7 +1106,7 @@ class DataGrid extends React.Component {
1107
1106
  (_j = (_h = this.props).onEnter) === null || _j === void 0 ? void 0 : _j.call(_h);
1108
1107
  break;
1109
1108
  }
1110
- (_l = (_k = this.props).onKeyPressed) === null || _l === void 0 ? void 0 : _l.call(_k, params.event);
1109
+ (_l = (_k = this.props).onKeyPressed) === null || _l === void 0 ? void 0 : _l.call(_k, params.event, params.editing);
1111
1110
  return false;
1112
1111
  }
1113
1112
  getValue(column, row, doNotReplaceNewline) {
@@ -1140,7 +1139,6 @@ class DataGrid extends React.Component {
1140
1139
  if (!this.gridApi) {
1141
1140
  return [];
1142
1141
  }
1143
- const model = this.gridApi.getModel();
1144
1142
  const tableContent = [];
1145
1143
  const columns = this.gridApi.getAllDisplayedColumns().map((column) => {
1146
1144
  const columnTypes = column.getColDef().type;
@@ -1157,7 +1155,7 @@ class DataGrid extends React.Component {
1157
1155
  tableContent.push(columns.map((column) => { var _a; return (_a = column.displayName) !== null && _a !== void 0 ? _a : ""; }));
1158
1156
  let rowCount;
1159
1157
  let tableNodes = [];
1160
- if (model.getType() === "clientSide") {
1158
+ if (this.gridApi.getGridOption('rowModelType') === "clientSide") {
1161
1159
  if (props.onlySelectedNodes) {
1162
1160
  rowCount = 0;
1163
1161
  this.gridApi.forEachNodeAfterFilterAndSort((node) => {
@@ -1168,7 +1166,7 @@ class DataGrid extends React.Component {
1168
1166
  });
1169
1167
  }
1170
1168
  else {
1171
- rowCount = model.getRowCount();
1169
+ rowCount = this.gridApi.getDisplayedRowCount();
1172
1170
  this.gridApi.forEachNodeAfterFilterAndSort((node) => {
1173
1171
  tableNodes.push(node);
1174
1172
  });
@@ -1184,7 +1182,7 @@ class DataGrid extends React.Component {
1184
1182
  tableNodes.sort((a, b) => { var _a, _b; return ((_a = a.rowIndex) !== null && _a !== void 0 ? _a : 0) > ((_b = b.rowIndex) !== null && _b !== void 0 ? _b : 0) ? 1 : (a.rowIndex === b.rowIndex) ? 0 : -1; });
1185
1183
  }
1186
1184
  else {
1187
- const virtualRowCount = model.getRowCount();
1185
+ const virtualRowCount = this.gridApi.getDisplayedRowCount();
1188
1186
  rowCount = virtualRowCount ? virtualRowCount : 0;
1189
1187
  }
1190
1188
  }
@@ -1193,7 +1191,7 @@ class DataGrid extends React.Component {
1193
1191
  if (percentStep < 100) {
1194
1192
  percentStep = 100;
1195
1193
  }
1196
- if (model.getType() === "clientSide" || props.onlySelectedNodes) {
1194
+ if (this.gridApi.getGridOption('rowModelType') === "clientSide" || props.onlySelectedNodes) {
1197
1195
  for (let index = 0; index < tableNodes.length; index++) {
1198
1196
  const record = [];
1199
1197
  columns.forEach((column) => {
@@ -1214,7 +1212,7 @@ class DataGrid extends React.Component {
1214
1212
  do {
1215
1213
  record = [];
1216
1214
  do {
1217
- row = model.getRow(index);
1215
+ row = this.gridApi.getDisplayedRowAtIndex(index);
1218
1216
  if (!row || !row.data) {
1219
1217
  await TimeUtils.sleep(100);
1220
1218
  }
@@ -1572,8 +1570,8 @@ class DataGrid extends React.Component {
1572
1570
  return adaptedColumnDefs;
1573
1571
  }
1574
1572
  render() {
1575
- var _a, _b, _c, _d, _e, _f;
1576
- const _g = this.props, { onGridReady, columnDefs, disableColumnDefsPreprocessing, onColumnsChanged, paging, onPaginationChanged, onViewportChanged, selectedIds, search, toolbar, filter, onFilterChanged, onFilterModified, onCellFocused, onSortChanged, components, tableConfigVisible, onTableConfigVisible, noRecordsOverlayRenderer, loadingOverlayRenderer, onRowDataUpdated, rowStyleRules, onChangeRowStyleRules, defaultShowMilliseconds, onShowMilliseconds, defaultHideYear, onShowYear, suppressLoadingOverlay, defaultColDef, headerHeight, rowData, rowDataManualMode, gridRef, quickFilterParser, quickFilterMatcher } = _g, passedProperties = __rest(_g, ["onGridReady", "columnDefs", "disableColumnDefsPreprocessing", "onColumnsChanged", "paging", "onPaginationChanged", "onViewportChanged", "selectedIds", "search", "toolbar", "filter", "onFilterChanged", "onFilterModified", "onCellFocused", "onSortChanged", "components", "tableConfigVisible", "onTableConfigVisible", "noRecordsOverlayRenderer", "loadingOverlayRenderer", "onRowDataUpdated", "rowStyleRules", "onChangeRowStyleRules", "defaultShowMilliseconds", "onShowMilliseconds", "defaultHideYear", "onShowYear", "suppressLoadingOverlay", "defaultColDef", "headerHeight", "rowData", "rowDataManualMode", "gridRef", "quickFilterParser", "quickFilterMatcher"]);
1573
+ var _a, _b, _c, _d;
1574
+ const _e = this.props, { onGridReady, columnDefs, disableColumnDefsPreprocessing, onColumnsChanged, paging, onPaginationChanged, onViewportChanged, selectedIds, search, toolbar, filter, onFilterChanged, onFilterModified, onCellFocused, onSortChanged, components, tableConfigVisible, onTableConfigVisible, noRecordsOverlayRenderer, loadingOverlayRenderer, onRowDataUpdated, rowStyleRules, onChangeRowStyleRules, defaultShowMilliseconds, onShowMilliseconds, defaultHideYear, onShowYear, suppressLoadingOverlay, defaultColDef, headerHeight, rowData, rowDataManualMode, gridRef, quickFilterParser, quickFilterMatcher, rowSelection, contextMenu, settingsMenu, exportMenu, panelStyle, tablePanelStyle, onColumnDefsAdapted, tableOverlayRenderer, onKeyPressed } = _e, passedProperties = __rest(_e, ["onGridReady", "columnDefs", "disableColumnDefsPreprocessing", "onColumnsChanged", "paging", "onPaginationChanged", "onViewportChanged", "selectedIds", "search", "toolbar", "filter", "onFilterChanged", "onFilterModified", "onCellFocused", "onSortChanged", "components", "tableConfigVisible", "onTableConfigVisible", "noRecordsOverlayRenderer", "loadingOverlayRenderer", "onRowDataUpdated", "rowStyleRules", "onChangeRowStyleRules", "defaultShowMilliseconds", "onShowMilliseconds", "defaultHideYear", "onShowYear", "suppressLoadingOverlay", "defaultColDef", "headerHeight", "rowData", "rowDataManualMode", "gridRef", "quickFilterParser", "quickFilterMatcher", "rowSelection", "contextMenu", "settingsMenu", "exportMenu", "panelStyle", "tablePanelStyle", "onColumnDefsAdapted", "tableOverlayRenderer", "onKeyPressed"]);
1577
1575
  let key;
1578
1576
  let paginationPageSize = undefined;
1579
1577
  if (paging.pageSize > 0) {
@@ -1594,25 +1592,25 @@ class DataGrid extends React.Component {
1594
1592
  const adaptedColumnDefs = this.getAdaptedColumnDefs(columnDefs, floatingFilterEnabled, !!disableColumnDefsPreprocessing);
1595
1593
  const customComponents = this.getCustomComponents(components);
1596
1594
  const debugMode = process.env.NODE_ENV === 'development';
1597
- const panelStyle = {
1595
+ const bodyStyle = {
1598
1596
  display: "flex",
1599
1597
  flexFlow: "column",
1600
1598
  height: "100%",
1601
1599
  width: "100%",
1602
1600
  paddingBottom: 8,
1603
1601
  };
1604
- if (this.props.panelStyle) {
1605
- Object.assign(panelStyle, this.props.panelStyle);
1602
+ if (panelStyle) {
1603
+ Object.assign(bodyStyle, panelStyle);
1606
1604
  }
1607
- const tablePanelStyle = { flex: "1 1 auto", marginTop: 16, overflow: "auto" };
1608
- if (this.props.tablePanelStyle) {
1609
- Object.assign(tablePanelStyle, this.props.tablePanelStyle);
1605
+ const tPanelStyle = { flex: "1 1 auto", marginTop: 16, overflow: "auto" };
1606
+ if (tablePanelStyle) {
1607
+ Object.assign(tPanelStyle, tablePanelStyle);
1610
1608
  }
1611
1609
  const headerFilterRowHeight = calculateRowHeight(this.state.fontSize, GRID_DEFAULT_ROW_HEIGHT_DELTA + 2);
1612
1610
  return (React.createElement(React.Fragment, null,
1613
- React.createElement(Card, { size: "small", bordered: false, style: { height: "100%" }, styles: { body: panelStyle } },
1611
+ React.createElement(Card, { size: "small", bordered: false, style: { height: "100%" }, styles: { body: bodyStyle } },
1614
1612
  React.createElement("div", { style: { display: "flex" } }, this.renderNavigationPanel()),
1615
- React.createElement("div", { style: tablePanelStyle },
1613
+ React.createElement("div", { style: tPanelStyle },
1616
1614
  React.createElement(Dropdown, { trigger: ["contextMenu"], getPopupContainer: () => {
1617
1615
  var _a, _b;
1618
1616
  const parentNode = ((_b = (_a = ReactDOM.findDOMNode(this)) === null || _a === void 0 ? void 0 : _a.parentNode) !== null && _b !== void 0 ? _b : document.body);
@@ -1637,13 +1635,13 @@ class DataGrid extends React.Component {
1637
1635
  React.createElement("div", { className: "ag-theme-balham", style: { width: "100%", height: "100%" }, ref: (wrapingDiv) => {
1638
1636
  this.wrappingDiv = wrapingDiv;
1639
1637
  } },
1640
- React.createElement(AgGridReact, Object.assign({ key: key, debug: debugMode, ref: gridRef, paginationPageSize: paginationPageSize, maxConcurrentDatasourceRequests: this.props.rowModelType === "infinite" ? 1 : undefined, onGridReady: this.onGridReady, onPaginationChanged: this.onPaginationChanged, onFilterModified: this.onFilterModified, onFilterChanged: this.onFilterChanged, onSortChanged: this.onSortChanged, defaultColDef: this.getDefaultColDefinition(defaultColDef), columnDefs: adaptedColumnDefs, rowData: !rowDataManualMode ? rowData : undefined }, passedProperties, { onCellFocused: this.onCellFocused, suppressPaginationPanel: true, getRowId: getRowId, maintainColumnOrder: true, components: customComponents, columnTypes: this.columnTypes, onColumnVisible: this.onColumnsChanged, onColumnPinned: this.onColumnsChanged, onColumnResized: this.onColumnsChanged, onColumnMoved: this.onColumnsChanged, onCellMouseDown: this.onCellMouseDown, navigateToNextCell: this.navigateToNextCell, onViewportChanged: this.onViewportChanged, onCellContextMenu: this.onCellContextMenu, loadingOverlayComponent: 'loadingOverlay', noRowsOverlayComponent: 'noRecordsOverlay', onRowDataUpdated: this.onRowDataUpdated, context: this.table_context, rowHeight: this.state.rowHeight, getRowStyle: this._getRowStyle, getRowHeight: this._getRowHeight, headerHeight: headerHeight !== undefined ? headerHeight : headerFilterRowHeight, floatingFiltersHeight: headerFilterRowHeight, suppressLoadingOverlay: this.props.loadingOverlayRenderer ? true : this.props.suppressLoadingOverlay, quickFilterParser: this.wildcardQuickFilter.quickFilterParser, quickFilterMatcher: this.wildcardQuickFilter.quickFilterMatcher })),
1638
+ React.createElement(AgGridReact, Object.assign({ key: key, debug: debugMode, ref: gridRef, paginationPageSize: paginationPageSize, maxConcurrentDatasourceRequests: this.props.rowModelType === "infinite" ? 1 : undefined, onGridReady: this.onGridReady, onPaginationChanged: this.onPaginationChanged, onFilterModified: this.onFilterModified, onFilterChanged: this.onFilterChanged, onSortChanged: this.onSortChanged, defaultColDef: this.getDefaultColDefinition(defaultColDef), columnDefs: adaptedColumnDefs, rowData: !rowDataManualMode ? rowData : undefined }, passedProperties, { onCellFocused: this.onCellFocused, cellSelection: rowSelection === "multiple" || (rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.mode) === "multiRow", rowSelection: rowSelection, suppressPaginationPanel: true, getRowId: getRowId, maintainColumnOrder: true, components: customComponents, columnTypes: this.columnTypes, onColumnVisible: this.onColumnsChanged, onColumnPinned: this.onColumnsChanged, onColumnResized: this.onColumnsChanged, onColumnMoved: this.onColumnsChanged, onCellMouseDown: this.onCellMouseDown, navigateToNextCell: this.navigateToNextCell, onViewportChanged: this.onViewportChanged, onCellContextMenu: this.onCellContextMenu, loadingOverlayComponent: 'loadingOverlay', noRowsOverlayComponent: 'noRecordsOverlay', onRowDataUpdated: this.onRowDataUpdated, context: this.table_context, rowHeight: this.state.rowHeight, getRowStyle: this._getRowStyle, getRowHeight: this._getRowHeight, headerHeight: headerHeight !== undefined ? headerHeight : headerFilterRowHeight, floatingFiltersHeight: headerFilterRowHeight, suppressLoadingOverlay: this.props.loadingOverlayRenderer ? true : this.props.suppressLoadingOverlay, quickFilterParser: this.wildcardQuickFilter.quickFilterParser, quickFilterMatcher: this.wildcardQuickFilter.quickFilterMatcher })),
1641
1639
  this.state.loading && this.props.loadingOverlayRenderer &&
1642
1640
  React.createElement("div", { className: "ag-overlay", "aria-hidden": "true", ref: "overlayWrapper" },
1643
1641
  React.createElement("div", { className: "ag-overlay-panel" },
1644
1642
  React.createElement("div", { className: "ag-overlay-wrapper ag-layout-normal ag-overlay-loading-wrapper" },
1645
- React.createElement("div", { className: "ag-react-container" }, (_d = (_c = this.props).loadingOverlayRenderer) === null || _d === void 0 ? void 0 : _d.call(_c))))))), (_f = (_e = this.props).tableOverlayRenderer) === null || _f === void 0 ? void 0 :
1646
- _f.call(_e))),
1643
+ React.createElement("div", { className: "ag-react-container" }, (_d = (_c = this.props).loadingOverlayRenderer) === null || _d === void 0 ? void 0 : _d.call(_c))))))), tableOverlayRenderer === null || tableOverlayRenderer === void 0 ? void 0 :
1644
+ tableOverlayRenderer())),
1647
1645
  !!this.gridApi && !!this.gridApi && this.state.pageSize !== null &&
1648
1646
  React.createElement(DataGridEditor, { dataGrid: this, gridApi: this.gridApi, columnDefinitions: columnDefs, columnModel: this.state.columnModel, visible: !!this.props.tableConfigVisible, onTableConfigVisible: this.showTableConfiguration, paginationPageSize: paging.pageSize, paginationDefaultPageSize: paging.defaultPageSize, currentPageSize: this.state.pageSize, showMilliseconds: !!this.props.showMilliseconds, defaultShowMilliseconds: !!this.props.defaultShowMilliseconds, showYear: !this.props.hideYear, defaultShowYear: !this.props.defaultHideYear, rowStyleRules: this.props.rowStyleRules, defaultRowStyleRules: this.props.defaultRowStyleRules, onChangeRowStyleRules: onChangeRowStyleRules }),
1649
1647
  !!this.gridApi && React.createElement(ModalDialog, { mode: "OK_CANCEL", open: this.state.columnsConfigVisible, initialWidth: 700, initialHeight: this.state.columnTransferHeight, title: React.createElement("span", null,