ods-component-lib 1.17.93 → 1.17.96

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,11 +1195,11 @@ 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")));
1198
1200
  return grid(props, dataGridRef);
1199
1201
  }
1200
1202
  function grid(props, dataGridRef) {
1201
- locale(sessionStorage.getItem("locale"));
1202
- loadMessages(JSON.parse(sessionStorage.getItem("localTranslation")));
1203
1203
  var headerCellRender = function headerCellRender(colProperties) {
1204
1204
  return React.createElement("th", {
1205
1205
  className: "dx-datagrid-headers",
@@ -1451,8 +1451,16 @@ function grid(props, dataGridRef) {
1451
1451
  }), React.createElement(Item$1, {
1452
1452
  menuItemRender: renderMenuItem
1453
1453
  })), React.createElement(Summary, null, React.createElement(TotalItem, {
1454
- column: "id",
1455
- summaryType: "count"
1454
+ column: "Id",
1455
+ summaryType: "count",
1456
+ displayFormat: "{0} " + props.TotaDatalLanguage
1457
+ }), props.sumaryRowItems && props.sumaryRowItems.map(function (item) {
1458
+ return React.createElement(TotalItem, {
1459
+ column: item.columnName,
1460
+ summaryType: item.aggregateFn,
1461
+ valueFormat: item.valueFormat ? item.valueFormat : "",
1462
+ displayFormat: props.TotalLanguage + " : {0}"
1463
+ });
1456
1464
  })), React.createElement(StateStoring, {
1457
1465
  enabled: true,
1458
1466
  type: "custom",