ods-component-lib 1.17.97 → 1.17.99
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 +10 -16
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +10 -16
- 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,16 +1264,11 @@ function grid(props, dataGridRef) {
|
|
|
1266
1264
|
};
|
|
1267
1265
|
localStorage.setItem(props.exportFileName + "Storage", JSON.stringify(state));
|
|
1268
1266
|
};
|
|
1269
|
-
React.useEffect(function () {
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
overflowX: 'hidden',
|
|
1275
|
-
overflowY: "hidden",
|
|
1276
|
-
marginTop: "10px"
|
|
1277
|
-
}
|
|
1278
|
-
}, React__default.createElement(dataGrid.DataGrid, {
|
|
1267
|
+
React.useEffect(function () {
|
|
1268
|
+
localization.locale(sessionStorage.getItem("locale"));
|
|
1269
|
+
localization.loadMessages(JSON.parse(sessionStorage.getItem("localTranslation")));
|
|
1270
|
+
}, []);
|
|
1271
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement(dataGrid.DataGrid, {
|
|
1279
1272
|
dataSource: props.dataSource,
|
|
1280
1273
|
keyExpr: props.keyExpr,
|
|
1281
1274
|
allowColumnResizing: true,
|
|
@@ -1287,9 +1280,9 @@ function grid(props, dataGridRef) {
|
|
|
1287
1280
|
allowColumnReordering: true,
|
|
1288
1281
|
showRowLines: true,
|
|
1289
1282
|
showBorders: true,
|
|
1290
|
-
columnAutoWidth: false,
|
|
1283
|
+
columnAutoWidth: props.columnAutoWidth == undefined ? false : props.columnAutoWidth,
|
|
1291
1284
|
focusedRowEnabled: false,
|
|
1292
|
-
wordWrapEnabled: false,
|
|
1285
|
+
wordWrapEnabled: props.wordWrapEnabled == undefined ? false : props.wordWrapEnabled,
|
|
1293
1286
|
noDataText: props.noDataLanguage == undefined ? "No Data" : props.noDataLanguage,
|
|
1294
1287
|
onEditCanceling: props.onEditCanceling,
|
|
1295
1288
|
onExporting: onExporting,
|
|
@@ -1456,7 +1449,8 @@ function grid(props, dataGridRef) {
|
|
|
1456
1449
|
menuItemRender: renderMenuItem
|
|
1457
1450
|
})), React__default.createElement(dataGrid.Summary, null, React__default.createElement(dataGrid.TotalItem, {
|
|
1458
1451
|
column: props.totalColumunName == undefined ? "Id" : props.totalColumunName,
|
|
1459
|
-
summaryType: "count"
|
|
1452
|
+
summaryType: "count",
|
|
1453
|
+
displayFormat: props.TotaDatalLanguage + " : {0} "
|
|
1460
1454
|
}), props.sumaryRowItems && props.sumaryRowItems.map(function (item) {
|
|
1461
1455
|
return React__default.createElement(dataGrid.TotalItem, {
|
|
1462
1456
|
column: item.columnName,
|
|
@@ -1469,7 +1463,7 @@ function grid(props, dataGridRef) {
|
|
|
1469
1463
|
type: "custom",
|
|
1470
1464
|
customLoad: customLoad,
|
|
1471
1465
|
customSave: customSave
|
|
1472
|
-
})))
|
|
1466
|
+
})));
|
|
1473
1467
|
}
|
|
1474
1468
|
|
|
1475
1469
|
var exportFormats$1 = ['xlsx', 'pdf'];
|