ods-component-lib 1.17.119 → 1.17.121

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
@@ -1339,8 +1339,8 @@ function grid(props, dataGridRef) {
1339
1339
  localStorage.setItem(props.exportFileName + "Storage", JSON.stringify(state));
1340
1340
  };
1341
1341
  React.useEffect(function () {
1342
- localization.locale(sessionStorage.getItem("locale"));
1343
- localization.loadMessages(JSON.parse(sessionStorage.getItem("localTranslation")));
1342
+ localization.locale(localStorage.getItem("locale"));
1343
+ localization.loadMessages(JSON.parse(localStorage.getItem("localTranslation")));
1344
1344
  }, []);
1345
1345
  return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
1346
1346
  className: "odsDatagrid",
@@ -1649,16 +1649,9 @@ function grid$1(props) {
1649
1649
  headerCellRender: headerCellRender
1650
1650
  }), " ");
1651
1651
  }), React__default.createElement(dataGrid.Summary, null, React__default.createElement(dataGrid.TotalItem, {
1652
- column: "Id",
1652
+ column: props.totalColumunName == undefined ? "Id" : props.totalColumunName,
1653
1653
  summaryType: "count",
1654
- displayFormat: "{0} Total Data"
1655
- }), props.sumaryRowItems && props.sumaryRowItems.map(function (item) {
1656
- return React__default.createElement(dataGrid.TotalItem, {
1657
- column: item.columnName,
1658
- summaryType: item.aggregateFn,
1659
- valueFormat: item.valueFormat ? item.valueFormat : "",
1660
- displayFormat: "Total: {0}"
1661
- });
1654
+ displayFormat: props.TotaDatalLanguage + " : {0} "
1662
1655
  }))));
1663
1656
  }
1664
1657