ods-component-lib 1.18.67 → 1.18.68

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.
@@ -22,7 +22,7 @@ export interface IOdsDataGridProps extends IDataGridOptions {
22
22
  customSummary?: ISummaryRowOptions;
23
23
  handleEditorPreparing?: any;
24
24
  isFilterRow?: boolean;
25
- inputFilterData?: any[];
25
+ filterData?: any[];
26
26
  }
27
27
  interface ISummaryRowOptions {
28
28
  summaryLoadedDataLabel?: string;
package/dist/index.js CHANGED
@@ -16859,16 +16859,16 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
16859
16859
  var onExporting = React.useCallback(function (e) {
16860
16860
  if (e.format === 'xlsx') {
16861
16861
  var workbook = new exceljs.Workbook();
16862
- if (props.inputFilterData != null) {
16863
- var yeniSutunlarFiltreVerisinden = props.inputFilterData.map(function (filtreItem) {
16862
+ if (props.filterData != null) {
16863
+ var newColumnFromFilterData = props.filterData.map(function (filterItem) {
16864
16864
  return {
16865
- dataField: filtreItem.key,
16866
- caption: filtreItem.key
16865
+ dataField: filterItem.key,
16866
+ caption: filterItem.key
16867
16867
  };
16868
16868
  });
16869
- var yeniSutunlar = [].concat(columns.current, yeniSutunlarFiltreVerisinden);
16869
+ var newColumns = [].concat(columns.current, newColumnFromFilterData);
16870
16870
  e.component.beginUpdate();
16871
- e.component.option("columns", yeniSutunlar);
16871
+ e.component.option("columns", newColumns);
16872
16872
  e.component.endUpdate();
16873
16873
  }
16874
16874
  excel_exporter.exportDataGrid({
@@ -16891,8 +16891,8 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
16891
16891
  excelCell.value = formattedDate;
16892
16892
  }
16893
16893
  }
16894
- if (gridCell.rowType !== 'header' && props.inputFilterData != null) {
16895
- var matchingItem = props.inputFilterData.find(function (item) {
16894
+ if (gridCell.rowType !== 'header' && props.filterData != null) {
16895
+ var matchingItem = props.filterData.find(function (item) {
16896
16896
  return item.key === gridCell.column.dataField;
16897
16897
  });
16898
16898
  if (matchingItem) {
@@ -16917,7 +16917,7 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
16917
16917
  doc.save(fileName + '.pdf');
16918
16918
  });
16919
16919
  }
16920
- }, [fileName]);
16920
+ }, [fileName, props.filterData]);
16921
16921
  var customLoad = React.useCallback(function () {
16922
16922
  var state = JSON.parse(localStorage.getItem(props.exportFileName + "Storage"));
16923
16923
  if (localStorage.getItem(props.exportFileName + "Storage")) {