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 +4 -11
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -11
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
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(
|
|
1343
|
-
localization.loadMessages(JSON.parse(
|
|
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}
|
|
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
|
|