ods-component-lib 1.17.46 → 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.
package/dist/index.js CHANGED
@@ -1242,6 +1242,18 @@ function grid(props, dataGridRef) {
1242
1242
  });
1243
1243
  }
1244
1244
  };
1245
+ var customLoad = function customLoad() {
1246
+ debugger;
1247
+ var state = JSON.parse(localStorage.getItem(props.exportFileName + "Storage"));
1248
+ state.selectedRowKeys = [];
1249
+ return state;
1250
+ };
1251
+ var customSave = function customSave(state) {
1252
+ debugger;
1253
+ state.selectedRowKeys = [];
1254
+ state.filterValue = [];
1255
+ localStorage.setItem(props.exportFileName + "Storage", JSON.stringify(state));
1256
+ };
1245
1257
  return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
1246
1258
  className: "odsDatagrid",
1247
1259
  style: {
@@ -1263,7 +1275,6 @@ function grid(props, dataGridRef) {
1263
1275
  showRowLines: true,
1264
1276
  showBorders: true,
1265
1277
  columnAutoWidth: false,
1266
- filterValue: [],
1267
1278
  focusedRowEnabled: false,
1268
1279
  wordWrapEnabled: false,
1269
1280
  noDataText: "No Data",
@@ -1442,8 +1453,9 @@ function grid(props, dataGridRef) {
1442
1453
  });
1443
1454
  })), React__default.createElement(dataGrid.StateStoring, {
1444
1455
  enabled: true,
1445
- type: "localStorage",
1446
- storageKey: props.exportFileName + "Storage"
1456
+ type: "custom",
1457
+ customLoad: customLoad,
1458
+ customSave: customSave
1447
1459
  }))));
1448
1460
  }
1449
1461