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