ods-component-lib 1.17.166 → 1.17.169

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.
package/dist/index.js CHANGED
@@ -1318,27 +1318,6 @@ function grid(props, dataGridRef) {
1318
1318
  });
1319
1319
  }
1320
1320
  };
1321
- var customLoad = function customLoad() {
1322
- var state = JSON.parse(localStorage.getItem(props.exportFileName + "Storage"));
1323
- if (localStorage.getItem(props.exportFileName + "Storage")) {
1324
- state.selectedRowKeys = [];
1325
- if (props.filterEnabledShow) state.filterPanel = {
1326
- filterEnabled: false
1327
- };else state.filterPanel = {
1328
- filterEnabled: true
1329
- };
1330
- }
1331
- return state;
1332
- };
1333
- var customSave = function customSave(state) {
1334
- state.selectedRowKeys = [];
1335
- if (props.filterEnabledShow) state.filterPanel = {
1336
- filterEnabled: false
1337
- };else state.filterPanel = {
1338
- filterEnabled: true
1339
- };
1340
- localStorage.setItem(props.exportFileName + "Storage", JSON.stringify(state));
1341
- };
1342
1321
  React.useEffect(function () {
1343
1322
  localization.locale(localStorage.getItem("locale"));
1344
1323
  localization.loadMessages(JSON.parse(localStorage.getItem("localTranslation")));
@@ -1371,10 +1350,8 @@ function grid(props, dataGridRef) {
1371
1350
  onEditCanceling: props.onEditCanceling,
1372
1351
  onExporting: onExporting,
1373
1352
  filterSyncEnabled: true,
1374
- scrolling: {
1375
- useNative: props.scrolUseNative == undefined ? false : props.scrolUseNative
1376
- },
1377
- height: window.innerHeight - 164,
1353
+ scrolling: {},
1354
+ height: props.height == undefined ? window.innerHeight - 164 : props.height,
1378
1355
  repaintChangesOnly: true,
1379
1356
  remoteOperations: false,
1380
1357
  ref: dataGridRef
@@ -1383,11 +1360,11 @@ function grid(props, dataGridRef) {
1383
1360
  }), React__default.createElement(dataGrid.Paging, {
1384
1361
  defaultPageSize: props.pageSize
1385
1362
  }), props.pagingEnable && React__default.createElement(dataGrid.Pager, {
1386
- visible: true,
1363
+ visible: false,
1387
1364
  displayMode: "full",
1388
- showPageSizeSelector: true,
1389
- showNavigationButtons: true,
1390
- showInfo: true
1365
+ showPageSizeSelector: false,
1366
+ showNavigationButtons: false,
1367
+ showInfo: false
1391
1368
  }), props.searchEnable && React__default.createElement(dataGrid.SearchPanel, {
1392
1369
  visible: true
1393
1370
  }), props.filterEnable && React__default.createElement(dataGrid.FilterRow, {
@@ -1439,7 +1416,8 @@ function grid(props, dataGridRef) {
1439
1416
  mode: props.scroll.mode,
1440
1417
  showScrollbar: props.scroll.showScrollbar,
1441
1418
  scrollByContent: props.scroll.scrollByContent,
1442
- scrollByThumb: props.scroll.scrollByThumb
1419
+ scrollByThumb: props.scroll.scrollByThumb,
1420
+ useNative: props.scrolUseNative == undefined ? false : props.scrolUseNative
1443
1421
  }), props.exportEnable === true && React__default.createElement(dataGrid.Export, {
1444
1422
  enabled: true,
1445
1423
  allowExportSelectedData: true,
@@ -1531,12 +1509,7 @@ function grid(props, dataGridRef) {
1531
1509
  column: props.totalColumunName == undefined ? "Id" : props.totalColumunName,
1532
1510
  summaryType: "count",
1533
1511
  displayFormat: props.TotaDatalLanguage + " : " + (props.TotalDataCount == undefined ? "{0}" : props.TotalDataCount)
1534
- })), React__default.createElement(dataGrid.StateStoring, {
1535
- enabled: true,
1536
- type: "custom",
1537
- customLoad: customLoad,
1538
- customSave: customSave
1539
- }))));
1512
+ })))));
1540
1513
  }
1541
1514
 
1542
1515
  var exportFormats$1 = ['xlsx'];