ods-component-lib 1.17.97 → 1.17.98

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
@@ -1199,8 +1199,6 @@ var renderMenuItem = function renderMenuItem() {
1199
1199
  };
1200
1200
  function OdsDataGrid(props) {
1201
1201
  var dataGridRef = React.useRef(null);
1202
- localization.locale(sessionStorage.getItem("locale"));
1203
- localization.loadMessages(JSON.parse(sessionStorage.getItem("localTranslation")));
1204
1202
  return grid(props, dataGridRef);
1205
1203
  }
1206
1204
  function grid(props, dataGridRef) {
@@ -1266,7 +1264,10 @@ function grid(props, dataGridRef) {
1266
1264
  };
1267
1265
  localStorage.setItem(props.exportFileName + "Storage", JSON.stringify(state));
1268
1266
  };
1269
- React.useEffect(function () {}, []);
1267
+ React.useEffect(function () {
1268
+ localization.locale(sessionStorage.getItem("locale"));
1269
+ localization.loadMessages(JSON.parse(sessionStorage.getItem("localTranslation")));
1270
+ }, []);
1270
1271
  return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
1271
1272
  className: "odsDatagrid",
1272
1273
  style: {
@@ -1456,7 +1457,8 @@ function grid(props, dataGridRef) {
1456
1457
  menuItemRender: renderMenuItem
1457
1458
  })), React__default.createElement(dataGrid.Summary, null, React__default.createElement(dataGrid.TotalItem, {
1458
1459
  column: props.totalColumunName == undefined ? "Id" : props.totalColumunName,
1459
- summaryType: "count"
1460
+ summaryType: "count",
1461
+ displayFormat: props.TotaDatalLanguage + " : {0} "
1460
1462
  }), props.sumaryRowItems && props.sumaryRowItems.map(function (item) {
1461
1463
  return React__default.createElement(dataGrid.TotalItem, {
1462
1464
  column: item.columnName,