ods-component-lib 1.17.45 → 1.17.48

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.
@@ -1238,6 +1238,18 @@ function grid(props, dataGridRef) {
1238
1238
  });
1239
1239
  }
1240
1240
  };
1241
+ var customLoad = function customLoad() {
1242
+ debugger;
1243
+ var state = JSON.parse(localStorage.getItem(props.exportFileName + "Storage"));
1244
+ state.selectedRowKeys = [];
1245
+ return state;
1246
+ };
1247
+ var customSave = function customSave(state) {
1248
+ debugger;
1249
+ state.selectedRowKeys = [];
1250
+ state.filterValue = [];
1251
+ localStorage.setItem(props.exportFileName + "Storage", JSON.stringify(state));
1252
+ };
1241
1253
  return React.createElement(React.Fragment, null, React.createElement("div", {
1242
1254
  className: "odsDatagrid",
1243
1255
  style: {
@@ -1437,8 +1449,9 @@ function grid(props, dataGridRef) {
1437
1449
  });
1438
1450
  })), React.createElement(StateStoring, {
1439
1451
  enabled: true,
1440
- type: "localStorage",
1441
- storageKey: props.exportFileName + "Storage"
1452
+ type: "custom",
1453
+ customLoad: customLoad,
1454
+ customSave: customSave
1442
1455
  }))));
1443
1456
  }
1444
1457