ods-component-lib 1.18.136 → 1.18.138

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.
@@ -33523,7 +33523,7 @@ var OdsBasicDataGrid = function OdsBasicDataGrid(props) {
33523
33523
  var _useState11 = useState(0),
33524
33524
  scrollPosition = _useState11[0],
33525
33525
  setScrollPosition = _useState11[1];
33526
- var _useState12 = useState(false),
33526
+ var _useState12 = useState(true),
33527
33527
  filteredButtonCheck = _useState12[0],
33528
33528
  setFilteredButtonCheck = _useState12[1];
33529
33529
  var _useStyles = useStyles(),
@@ -33761,8 +33761,8 @@ var OdsBasicDataGrid = function OdsBasicDataGrid(props) {
33761
33761
  };
33762
33762
  var actionButtons = useMemo(function () {
33763
33763
  if (props.actionButtonGroup) {
33764
- if (props.actionButtonGroup.length >= 2 && !props.edit) {
33765
- return props.actionButtonGroup.slice(0, 2);
33764
+ if (props.actionButtonGroup.length >= 3 && !props.edit) {
33765
+ return props.actionButtonGroup.slice(0, 3);
33766
33766
  } else {
33767
33767
  return props.actionButtonGroup;
33768
33768
  }
@@ -33843,7 +33843,7 @@ var OdsBasicDataGrid = function OdsBasicDataGrid(props) {
33843
33843
  return result;
33844
33844
  }, [data, filteredRowCount, constants.loadedPageCount, props.pageSize, constants.totalRecordCount, filterApplied.current]);
33845
33845
  function actionCellRender(cellData, props) {
33846
- var kebabMenuButtons = props.actionButtonGroup && props.actionButtonGroup.length >= 2 && !props.edit ? props.actionButtonGroup.slice(2).map(function (button) {
33846
+ var kebabMenuButtons = props.actionButtonGroup && props.actionButtonGroup.length >= 3 && !props.edit ? props.actionButtonGroup.slice(3).map(function (button) {
33847
33847
  return {
33848
33848
  icon: button.icon,
33849
33849
  onClick: function onClick(event) {
@@ -33970,7 +33970,9 @@ var OdsBasicDataGrid = function OdsBasicDataGrid(props) {
33970
33970
  }
33971
33971
  };
33972
33972
  var onCustomCellClick = function onCustomCellClick(e) {
33973
- e.cellElement.style.backgroundColor = "transparent";
33973
+ if (e.rowType != 'header') {
33974
+ e.cellElement.style.backgroundColor = "transparent";
33975
+ }
33974
33976
  if (hasFastUpdate) {
33975
33977
  if (checkCellSelectionConstraints(e) && constants.allowedDataTypesForMultiCellEditing.some(function (item) {
33976
33978
  return item.toLocaleLowerCase() == e.column.dataType.toLocaleLowerCase();
@@ -34164,10 +34166,14 @@ var OdsBasicDataGrid = function OdsBasicDataGrid(props) {
34164
34166
  columnResizingMode: (_props$columnResizing = props.columnResizingMode) != null ? _props$columnResizing : "widget",
34165
34167
  showRowLines: true,
34166
34168
  allowColumnReordering: true,
34169
+ scrolling: {
34170
+ useNative: true
34171
+ },
34167
34172
  remoteOperations: false,
34168
34173
  paging: {
34169
34174
  enabled: false
34170
34175
  },
34176
+ width: "100%",
34171
34177
  repaintChangesOnly: true,
34172
34178
  focusedRowEnabled: false,
34173
34179
  filterSyncEnabled: true,
@@ -34272,7 +34278,11 @@ var OdsBasicDataGrid = function OdsBasicDataGrid(props) {
34272
34278
  showNavigationButtons: false,
34273
34279
  showInfo: false
34274
34280
  }), React.createElement(Scrolling, {
34275
- mode: "infinite"
34281
+ showScrollbar: "always",
34282
+ scrollByContent: true,
34283
+ scrollByThumb: true,
34284
+ mode: "virtual",
34285
+ rowRenderingMode: "virtual"
34276
34286
  }), React.createElement(SearchPanel, {
34277
34287
  visible: true
34278
34288
  }), React.createElement(FilterRow, {