ods-component-lib 1.18.68 → 1.18.70

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/index.js CHANGED
@@ -16679,6 +16679,7 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
16679
16679
  };
16680
16680
  colItem.headerCellRender = headerCellRenderr;
16681
16681
  }
16682
+ if (props.isServerSide) colItem.calculateSortValue = String("dummyFieldForPreventClientSideSorting");
16682
16683
  return colItem;
16683
16684
  });
16684
16685
  columns.current = newColumns;
@@ -16703,9 +16704,11 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
16703
16704
  var onOptionChanged = props.onOptionChanged;
16704
16705
  if (onOptionChanged) {
16705
16706
  var dataGridInstance = gridRef.current.instance;
16706
- var sortingState = dataGridInstance.getVisibleColumns().map(function (column, index) {
16707
+ var sortingState = dataGridInstance.getVisibleColumns().filter(function (p) {
16708
+ return !p.command;
16709
+ }).map(function (column, index) {
16707
16710
  return {
16708
- index: index - 1,
16711
+ index: index,
16709
16712
  dataField: column.dataField,
16710
16713
  sortOrder: column.sortOrder
16711
16714
  };