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.
@@ -1195,8 +1195,6 @@ var renderMenuItem = function renderMenuItem() {
1195
1195
  };
1196
1196
  function OdsDataGrid(props) {
1197
1197
  var dataGridRef = useRef(null);
1198
- locale(sessionStorage.getItem("locale"));
1199
- loadMessages(JSON.parse(sessionStorage.getItem("localTranslation")));
1200
1198
  return grid(props, dataGridRef);
1201
1199
  }
1202
1200
  function grid(props, dataGridRef) {
@@ -1262,7 +1260,10 @@ function grid(props, dataGridRef) {
1262
1260
  };
1263
1261
  localStorage.setItem(props.exportFileName + "Storage", JSON.stringify(state));
1264
1262
  };
1265
- useEffect(function () {}, []);
1263
+ useEffect(function () {
1264
+ locale(sessionStorage.getItem("locale"));
1265
+ loadMessages(JSON.parse(sessionStorage.getItem("localTranslation")));
1266
+ }, []);
1266
1267
  return React.createElement(React.Fragment, null, React.createElement("div", {
1267
1268
  className: "odsDatagrid",
1268
1269
  style: {
@@ -1452,7 +1453,8 @@ function grid(props, dataGridRef) {
1452
1453
  menuItemRender: renderMenuItem
1453
1454
  })), React.createElement(Summary, null, React.createElement(TotalItem, {
1454
1455
  column: props.totalColumunName == undefined ? "Id" : props.totalColumunName,
1455
- summaryType: "count"
1456
+ summaryType: "count",
1457
+ displayFormat: props.TotaDatalLanguage + " : {0} "
1456
1458
  }), props.sumaryRowItems && props.sumaryRowItems.map(function (item) {
1457
1459
  return React.createElement(TotalItem, {
1458
1460
  column: item.columnName,