ods-component-lib 1.16.4 → 1.16.5

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.
@@ -7,7 +7,7 @@ import 'react-phone-input-2/lib/style.css';
7
7
  import PhoneInput from 'react-phone-input-2';
8
8
  import message from 'antd/es/message';
9
9
  import Parser from 'html-react-parser';
10
- import { DataGrid, Paging, Pager, SearchPanel, FilterRow, HeaderFilter, ColumnChooser, Position, ColumnChooserSearch, ColumnChooserSelection, Selection, Editing, Popup, Form as Form$1, Scrolling, Export, Column, RequiredRule, Button as Button$1, Toolbar, Item as Item$1, Summary, TotalItem, LoadPanel } from 'devextreme-react/data-grid';
10
+ import { DataGrid, Paging, Pager, SearchPanel, FilterRow, HeaderFilter, ColumnChooser, Position, ColumnChooserSearch, ColumnChooserSelection, Selection, Editing, Popup, Form as Form$1, Scrolling, Export, Column, RequiredRule, Button as Button$1, Toolbar, Item as Item$1, Summary, TotalItem, StateStoring, LoadPanel } from 'devextreme-react/data-grid';
11
11
  import { Item } from 'devextreme-react/form';
12
12
  import jsPDF from 'jspdf';
13
13
  import { exportDataGrid as exportDataGrid$1 } from 'devextreme/pdf_exporter';
@@ -1212,6 +1212,7 @@ function OdsDataGrid(props) {
1212
1212
  }
1213
1213
  function grid(props) {
1214
1214
  var _ref;
1215
+ var dataGridRef = useRef(null);
1215
1216
  var headerCellRender = function headerCellRender(colProperties) {
1216
1217
  return React.createElement("th", {
1217
1218
  className: "dx-datagrid-headers"
@@ -1252,6 +1253,7 @@ function grid(props) {
1252
1253
  }, React.createElement(DataGrid, {
1253
1254
  dataSource: props.dataSource,
1254
1255
  keyExpr: props.keyExpr,
1256
+ ref: dataGridRef,
1255
1257
  allowColumnResizing: true,
1256
1258
  columnResizingMode: "widget",
1257
1259
  onRowInserted: props.onRowInserted,
@@ -1402,7 +1404,11 @@ function grid(props) {
1402
1404
  valueFormat: item.valueFormat ? item.valueFormat : "",
1403
1405
  displayFormat: "Total: {0}"
1404
1406
  });
1405
- })))));
1407
+ })), React.createElement(StateStoring, {
1408
+ enabled: true,
1409
+ type: "localStorage",
1410
+ storageKey: props.exportFileName + "Storage"
1411
+ }))));
1406
1412
  }
1407
1413
 
1408
1414
  var exportFormats$1 = ['xlsx', 'pdf'];