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 +16 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +16 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1238,6 +1238,19 @@ function grid(props, dataGridRef) {
|
|
|
1238
1238
|
});
|
|
1239
1239
|
}
|
|
1240
1240
|
};
|
|
1241
|
+
var customLoad = function customLoad() {
|
|
1242
|
+
var state = JSON.parse(localStorage.getItem(props.exportFileName + "Storage"));
|
|
1243
|
+
state.selectedRowKeys = [];
|
|
1244
|
+
state.filterValue = [];
|
|
1245
|
+
state.selectionFilter = [];
|
|
1246
|
+
return state;
|
|
1247
|
+
};
|
|
1248
|
+
var customSave = function customSave(state) {
|
|
1249
|
+
state.selectedRowKeys = [];
|
|
1250
|
+
state.filterValue = [];
|
|
1251
|
+
state.selectionFilter = [];
|
|
1252
|
+
localStorage.setItem(props.exportFileName + "Storage", JSON.stringify(state));
|
|
1253
|
+
};
|
|
1241
1254
|
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
1242
1255
|
className: "odsDatagrid",
|
|
1243
1256
|
style: {
|
|
@@ -1259,7 +1272,6 @@ function grid(props, dataGridRef) {
|
|
|
1259
1272
|
showRowLines: true,
|
|
1260
1273
|
showBorders: true,
|
|
1261
1274
|
columnAutoWidth: false,
|
|
1262
|
-
filterValue: [],
|
|
1263
1275
|
focusedRowEnabled: false,
|
|
1264
1276
|
wordWrapEnabled: false,
|
|
1265
1277
|
noDataText: "No Data",
|
|
@@ -1438,8 +1450,9 @@ function grid(props, dataGridRef) {
|
|
|
1438
1450
|
});
|
|
1439
1451
|
})), React.createElement(StateStoring, {
|
|
1440
1452
|
enabled: true,
|
|
1441
|
-
type: "
|
|
1442
|
-
|
|
1453
|
+
type: "custom",
|
|
1454
|
+
customLoad: customLoad,
|
|
1455
|
+
customSave: customSave
|
|
1443
1456
|
}))));
|
|
1444
1457
|
}
|
|
1445
1458
|
|