ods-component-lib 1.17.46 → 1.17.50

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