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.modern.js
CHANGED
|
@@ -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: {
|
|
@@ -1451,9 +1452,9 @@ function grid(props, dataGridRef) {
|
|
|
1451
1452
|
}), React.createElement(Item$1, {
|
|
1452
1453
|
menuItemRender: renderMenuItem
|
|
1453
1454
|
})), React.createElement(Summary, null, React.createElement(TotalItem, {
|
|
1454
|
-
column: "Id",
|
|
1455
|
+
column: props.totalColumunName == undefined ? "Id" : props.totalColumunName,
|
|
1455
1456
|
summaryType: "count",
|
|
1456
|
-
displayFormat: "{0} "
|
|
1457
|
+
displayFormat: props.TotaDatalLanguage + " : {0} "
|
|
1457
1458
|
}), props.sumaryRowItems && props.sumaryRowItems.map(function (item) {
|
|
1458
1459
|
return React.createElement(TotalItem, {
|
|
1459
1460
|
column: item.columnName,
|