ods-component-lib 1.17.20 → 1.17.21

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, StateStoring, LoadPanel } from 'devextreme-react/data-grid';
10
+ import { DataGrid, Paging, Pager, SearchPanel, FilterRow, FilterPanel, RemoteOperations, 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';
@@ -1192,7 +1192,6 @@ function OdsDataGrid(props) {
1192
1192
  return grid(props, dataGridRef);
1193
1193
  }
1194
1194
  function grid(props, dataGridRef) {
1195
- var _ref;
1196
1195
  var headerCellRender = function headerCellRender(colProperties) {
1197
1196
  return React.createElement("th", {
1198
1197
  className: "dx-datagrid-headers",
@@ -1258,7 +1257,9 @@ function grid(props, dataGridRef) {
1258
1257
  columnAutoWidth: false,
1259
1258
  onEditCanceling: props.onEditCanceling,
1260
1259
  onExporting: onExporting,
1261
- height: (_ref = props.height !== undefined) != null ? _ref : props.height,
1260
+ height: window.innerHeight - 164,
1261
+ repaintChangesOnly: true,
1262
+ remoteOperations: props.remoteOperations !== undefined ? props.remoteOperations : false,
1262
1263
  ref: dataGridRef
1263
1264
  }, React.createElement(Paging, {
1264
1265
  enabled: true,
@@ -1273,6 +1274,15 @@ function grid(props, dataGridRef) {
1273
1274
  visible: true
1274
1275
  }), props.filterEnable && React.createElement(FilterRow, {
1275
1276
  visible: true
1277
+ }), React.createElement(FilterPanel, {
1278
+ visible: true
1279
+ }), props.remoteOperations !== undefined && props.remoteOperations === true && React.createElement(RemoteOperations, {
1280
+ filtering: true,
1281
+ paging: false,
1282
+ sorting: true,
1283
+ summary: false,
1284
+ grouping: false,
1285
+ groupPaging: false
1276
1286
  }), props.headerFilterEnable && React.createElement(HeaderFilter, {
1277
1287
  visible: true
1278
1288
  }), React.createElement(ColumnChooser, {
@@ -1316,7 +1326,10 @@ function grid(props, dataGridRef) {
1316
1326
  });
1317
1327
  }));
1318
1328
  }))), React.createElement(Scrolling, {
1319
- mode: props.scrollingMode
1329
+ mode: props.scroll.scrollingMode,
1330
+ showScrollbar: props.scroll.showScrollbar,
1331
+ scrollByContent: props.scroll.scrollByContent,
1332
+ scrollByThumb: props.scroll.scrollByThumb
1320
1333
  }), props.exportEnable === true && React.createElement(Export, {
1321
1334
  enabled: true,
1322
1335
  allowExportSelectedData: true,