ods-component-lib 1.17.96 → 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 +6 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
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: {
|
|
@@ -1455,9 +1456,9 @@ function grid(props, dataGridRef) {
|
|
|
1455
1456
|
}), React__default.createElement(dataGrid.Item, {
|
|
1456
1457
|
menuItemRender: renderMenuItem
|
|
1457
1458
|
})), React__default.createElement(dataGrid.Summary, null, React__default.createElement(dataGrid.TotalItem, {
|
|
1458
|
-
column: "Id",
|
|
1459
|
+
column: props.totalColumunName == undefined ? "Id" : props.totalColumunName,
|
|
1459
1460
|
summaryType: "count",
|
|
1460
|
-
displayFormat: "{0} "
|
|
1461
|
+
displayFormat: props.TotaDatalLanguage + " : {0} "
|
|
1461
1462
|
}), props.sumaryRowItems && props.sumaryRowItems.map(function (item) {
|
|
1462
1463
|
return React__default.createElement(dataGrid.TotalItem, {
|
|
1463
1464
|
column: item.columnName,
|