ods-component-lib 1.17.89 → 1.17.91

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
@@ -1247,16 +1247,20 @@ function grid(props, dataGridRef) {
1247
1247
  var state = JSON.parse(localStorage.getItem(props.exportFileName + "Storage"));
1248
1248
  if (localStorage.getItem(props.exportFileName + "Storage")) {
1249
1249
  state.selectedRowKeys = [];
1250
- state.filterPanel = {
1250
+ if (props.filterEnabledShow) state.filterPanel = {
1251
1251
  filterEnabled: false
1252
+ };else state.filterPanel = {
1253
+ filterEnabled: true
1252
1254
  };
1253
1255
  }
1254
1256
  return state;
1255
1257
  };
1256
1258
  var customSave = function customSave(state) {
1257
1259
  state.selectedRowKeys = [];
1258
- state.filterPanel = {
1260
+ if (props.filterEnabledShow) state.filterPanel = {
1259
1261
  filterEnabled: false
1262
+ };else state.filterPanel = {
1263
+ filterEnabled: true
1260
1264
  };
1261
1265
  localStorage.setItem(props.exportFileName + "Storage", JSON.stringify(state));
1262
1266
  };
@@ -1455,13 +1459,6 @@ function grid(props, dataGridRef) {
1455
1459
  column: "Id",
1456
1460
  summaryType: "count",
1457
1461
  displayFormat: "{0} " + props.TotaDatalLanguage
1458
- }), props.sumaryRowItems && props.sumaryRowItems.map(function (item) {
1459
- return React__default.createElement(dataGrid.TotalItem, {
1460
- column: item.columnName,
1461
- summaryType: item.aggregateFn,
1462
- valueFormat: item.valueFormat ? item.valueFormat : "",
1463
- displayFormat: props.TotalLanguage + " : {0}"
1464
- });
1465
1462
  })), React__default.createElement(dataGrid.StateStoring, {
1466
1463
  enabled: true,
1467
1464
  type: "custom",