ods-component-lib 1.18.180 → 1.18.181

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.
@@ -84,5 +84,6 @@ export interface IVirtualDataGridProps extends IDataGridOptions {
84
84
  applyCellRenderToHeaderFilter?: boolean;
85
85
  actionButtonsTooltipType?: IActionButtonsTooltipType;
86
86
  isColumnWidthFixed?: boolean;
87
+ isClientSideOperation?: boolean;
87
88
  }
88
89
  export {};
package/dist/index.js CHANGED
@@ -34532,7 +34532,7 @@ var OdsServerSideDatagrid = function OdsServerSideDatagrid(props) {
34532
34532
  gridStyle = _useStyles.styles;
34533
34533
  React.useEffect(function () {}, [updateTrigger, totalUnfilteredCount, totalFilteredCount, filterApplied]);
34534
34534
  var renderTotal = React.useCallback(function () {
34535
- var _props$customSummary, _props$customSummary2, _props$customSummary3, _props$customSummary4;
34535
+ var _props$customSummary, _props$customSummary2;
34536
34536
  var totalLoaded = filterApplied ? totalFilteredCount.current : totalUnfilteredCount.current;
34537
34537
  var loadedPage = currentPage;
34538
34538
  var totalRecords = props.totalRecordCount;
@@ -34542,8 +34542,15 @@ var OdsServerSideDatagrid = function OdsServerSideDatagrid(props) {
34542
34542
  }
34543
34543
  var filteredDisplayText = filterApplied ? totalLoaded + " " + ((_props$customSummary = props.customSummary) === null || _props$customSummary === void 0 ? void 0 : _props$customSummary.summaryFilteredDataLabel) + " - " : "";
34544
34544
  var loadedDisplayText = totalUnfilteredCount.current + " " + ((_props$customSummary2 = props.customSummary) === null || _props$customSummary2 === void 0 ? void 0 : _props$customSummary2.summaryLoadedDataLabel) + " - ";
34545
- var result = "" + filteredDisplayText + loadedDisplayText + totalRecords + " " + ((_props$customSummary3 = props.customSummary) === null || _props$customSummary3 === void 0 ? void 0 : _props$customSummary3.summaryTotalDataLabel);
34546
- result += " - " + ((_props$customSummary4 = props.customSummary) === null || _props$customSummary4 === void 0 ? void 0 : _props$customSummary4.summaryTotalPageCountLabel) + " " + loadedPage + " / " + totalPageCount;
34545
+ var result;
34546
+ if (props.isClientSideOperation) {
34547
+ var _props$customSummary3;
34548
+ result = "" + filteredDisplayText + totalRecords + " " + ((_props$customSummary3 = props.customSummary) === null || _props$customSummary3 === void 0 ? void 0 : _props$customSummary3.summaryTotalDataLabel);
34549
+ } else {
34550
+ var _props$customSummary4, _props$customSummary5;
34551
+ result = "" + filteredDisplayText + loadedDisplayText + totalRecords + " " + ((_props$customSummary4 = props.customSummary) === null || _props$customSummary4 === void 0 ? void 0 : _props$customSummary4.summaryTotalDataLabel);
34552
+ result += " - " + ((_props$customSummary5 = props.customSummary) === null || _props$customSummary5 === void 0 ? void 0 : _props$customSummary5.summaryTotalPageCountLabel) + " " + loadedPage + " / " + totalPageCount;
34553
+ }
34547
34554
  return result;
34548
34555
  }, [currentPage, currentPageSize, filterApplied, props.customSummary, props.totalRecordCount, totalUnfilteredCount, props.dataSource, (_props$dataGridRef = props.dataGridRef) === null || _props$dataGridRef === void 0 ? void 0 : (_props$dataGridRef$da = _props$dataGridRef.dataGridInstance) === null || _props$dataGridRef$da === void 0 ? void 0 : (_props$dataGridRef$da2 = _props$dataGridRef$da.getDataSource()) === null || _props$dataGridRef$da2 === void 0 ? void 0 : (_props$dataGridRef$da3 = _props$dataGridRef$da2.items()) === null || _props$dataGridRef$da3 === void 0 ? void 0 : _props$dataGridRef$da3.length]);
34549
34556
  var handleContentReady = React.useCallback(function (e) {
@@ -34730,7 +34737,7 @@ var OdsServerSideDatagrid = function OdsServerSideDatagrid(props) {
34730
34737
  showBorders: true,
34731
34738
  repaintChangesOnly: true,
34732
34739
  allowColumnReordering: true,
34733
- remoteOperations: true,
34740
+ remoteOperations: !props.isClientSideOperation,
34734
34741
  columnAutoWidth: false,
34735
34742
  wordWrapEnabled: props.wordWrapEnabled ? props.wordWrapEnabled : false,
34736
34743
  columnFixing: {
@@ -34778,9 +34785,9 @@ var OdsServerSideDatagrid = function OdsServerSideDatagrid(props) {
34778
34785
  onToolbarPreparing: props.onToolbarPreparing,
34779
34786
  ref: props.dataGridRef
34780
34787
  }), React__default.createElement(DataGrid.Scrolling, {
34781
- mode: "infinite",
34788
+ mode: props.isClientSideOperation ? "virtual" : "infinite",
34782
34789
  preloadEnabled: true
34783
- }), React__default.createElement(DataGrid.Paging, {
34790
+ }), !props.isClientSideOperation && React__default.createElement(DataGrid.Paging, {
34784
34791
  enabled: true,
34785
34792
  defaultPageSize: props.pageSize
34786
34793
  }), React__default.createElement(DataGrid.HeaderFilter, {