ods-component-lib 1.17.166 → 1.17.170

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.
@@ -1314,27 +1314,6 @@ function grid(props, dataGridRef) {
1314
1314
  });
1315
1315
  }
1316
1316
  };
1317
- var customLoad = function customLoad() {
1318
- var state = JSON.parse(localStorage.getItem(props.exportFileName + "Storage"));
1319
- if (localStorage.getItem(props.exportFileName + "Storage")) {
1320
- state.selectedRowKeys = [];
1321
- if (props.filterEnabledShow) state.filterPanel = {
1322
- filterEnabled: false
1323
- };else state.filterPanel = {
1324
- filterEnabled: true
1325
- };
1326
- }
1327
- return state;
1328
- };
1329
- var customSave = function customSave(state) {
1330
- state.selectedRowKeys = [];
1331
- if (props.filterEnabledShow) state.filterPanel = {
1332
- filterEnabled: false
1333
- };else state.filterPanel = {
1334
- filterEnabled: true
1335
- };
1336
- localStorage.setItem(props.exportFileName + "Storage", JSON.stringify(state));
1337
- };
1338
1317
  useEffect(function () {
1339
1318
  locale(localStorage.getItem("locale"));
1340
1319
  loadMessages(JSON.parse(localStorage.getItem("localTranslation")));
@@ -1367,10 +1346,7 @@ function grid(props, dataGridRef) {
1367
1346
  onEditCanceling: props.onEditCanceling,
1368
1347
  onExporting: onExporting,
1369
1348
  filterSyncEnabled: true,
1370
- scrolling: {
1371
- useNative: props.scrolUseNative == undefined ? false : props.scrolUseNative
1372
- },
1373
- height: window.innerHeight - 164,
1349
+ height: props.height == undefined ? window.innerHeight - 164 : props.height,
1374
1350
  repaintChangesOnly: true,
1375
1351
  remoteOperations: false,
1376
1352
  ref: dataGridRef
@@ -1379,11 +1355,11 @@ function grid(props, dataGridRef) {
1379
1355
  }), React.createElement(Paging, {
1380
1356
  defaultPageSize: props.pageSize
1381
1357
  }), props.pagingEnable && React.createElement(Pager, {
1382
- visible: true,
1358
+ visible: false,
1383
1359
  displayMode: "full",
1384
- showPageSizeSelector: true,
1385
- showNavigationButtons: true,
1386
- showInfo: true
1360
+ showPageSizeSelector: false,
1361
+ showNavigationButtons: false,
1362
+ showInfo: false
1387
1363
  }), props.searchEnable && React.createElement(SearchPanel, {
1388
1364
  visible: true
1389
1365
  }), props.filterEnable && React.createElement(FilterRow, {
@@ -1435,7 +1411,8 @@ function grid(props, dataGridRef) {
1435
1411
  mode: props.scroll.mode,
1436
1412
  showScrollbar: props.scroll.showScrollbar,
1437
1413
  scrollByContent: props.scroll.scrollByContent,
1438
- scrollByThumb: props.scroll.scrollByThumb
1414
+ scrollByThumb: props.scroll.scrollByThumb,
1415
+ useNative: props.scrolUseNative == undefined ? false : props.scrolUseNative
1439
1416
  }), props.exportEnable === true && React.createElement(Export, {
1440
1417
  enabled: true,
1441
1418
  allowExportSelectedData: true,
@@ -1526,13 +1503,8 @@ function grid(props, dataGridRef) {
1526
1503
  })), React.createElement(Summary, null, React.createElement(TotalItem, {
1527
1504
  column: props.totalColumunName == undefined ? "Id" : props.totalColumunName,
1528
1505
  summaryType: "count",
1529
- displayFormat: props.TotaDatalLanguage + " : " + (props.TotalDataCount == undefined ? "{0}" : props.TotalDataCount)
1530
- })), React.createElement(StateStoring, {
1531
- enabled: true,
1532
- type: "custom",
1533
- customLoad: customLoad,
1534
- customSave: customSave
1535
- }))));
1506
+ displayFormat: props.TotaDatalLanguage + " : " + (props.TotalDataCount == undefined ? "{0}" : props.TotalDataCount + " / " + props.TotalPagesize)
1507
+ })))));
1536
1508
  }
1537
1509
 
1538
1510
  var exportFormats$1 = ['xlsx'];