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.
- package/dist/index.js +12 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +12 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1199,11 +1199,11 @@ 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")));
|
|
1202
1204
|
return grid(props, dataGridRef);
|
|
1203
1205
|
}
|
|
1204
1206
|
function grid(props, dataGridRef) {
|
|
1205
|
-
localization.locale(sessionStorage.getItem("locale"));
|
|
1206
|
-
localization.loadMessages(JSON.parse(sessionStorage.getItem("localTranslation")));
|
|
1207
1207
|
var headerCellRender = function headerCellRender(colProperties) {
|
|
1208
1208
|
return React__default.createElement("th", {
|
|
1209
1209
|
className: "dx-datagrid-headers",
|
|
@@ -1455,8 +1455,16 @@ function grid(props, dataGridRef) {
|
|
|
1455
1455
|
}), React__default.createElement(dataGrid.Item, {
|
|
1456
1456
|
menuItemRender: renderMenuItem
|
|
1457
1457
|
})), React__default.createElement(dataGrid.Summary, null, React__default.createElement(dataGrid.TotalItem, {
|
|
1458
|
-
column: "
|
|
1459
|
-
summaryType: "count"
|
|
1458
|
+
column: "Id",
|
|
1459
|
+
summaryType: "count",
|
|
1460
|
+
displayFormat: "{0} " + props.TotaDatalLanguage
|
|
1461
|
+
}), props.sumaryRowItems && props.sumaryRowItems.map(function (item) {
|
|
1462
|
+
return React__default.createElement(dataGrid.TotalItem, {
|
|
1463
|
+
column: item.columnName,
|
|
1464
|
+
summaryType: item.aggregateFn,
|
|
1465
|
+
valueFormat: item.valueFormat ? item.valueFormat : "",
|
|
1466
|
+
displayFormat: props.TotalLanguage + " : {0}"
|
|
1467
|
+
});
|
|
1460
1468
|
})), React__default.createElement(dataGrid.StateStoring, {
|
|
1461
1469
|
enabled: true,
|
|
1462
1470
|
type: "custom",
|