ods-component-lib 1.17.133 → 1.17.134
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 +15 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +15 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1278,6 +1278,18 @@ function OdsDataGrid(props) {
|
|
|
1278
1278
|
return grid(props, dataGridRef);
|
|
1279
1279
|
}
|
|
1280
1280
|
function grid(props, dataGridRef) {
|
|
1281
|
+
var headerCellRender = function headerCellRender(colProperties) {
|
|
1282
|
+
return React__default.createElement("th", {
|
|
1283
|
+
className: "dx-datagrid-headers",
|
|
1284
|
+
style: {
|
|
1285
|
+
fontFamily: "Manrope",
|
|
1286
|
+
fontSize: "14px",
|
|
1287
|
+
fontStyle: "normal",
|
|
1288
|
+
fontWeight: "600",
|
|
1289
|
+
lineHeight: "22px"
|
|
1290
|
+
}
|
|
1291
|
+
}, colProperties.column.caption);
|
|
1292
|
+
};
|
|
1281
1293
|
var fileName = props.exportFileName ? props.exportFileName + moment().format("YYYYMMDD") : "DatagridExportFile" + moment().format("YYYYMMDD");
|
|
1282
1294
|
var onExporting = function onExporting(e) {
|
|
1283
1295
|
if (e.format === 'xlsx') {
|
|
@@ -1344,19 +1356,16 @@ function grid(props, dataGridRef) {
|
|
|
1344
1356
|
dataSource: props.dataSource,
|
|
1345
1357
|
keyExpr: props.keyExpr,
|
|
1346
1358
|
allowColumnResizing: true,
|
|
1347
|
-
columnResizingMode: "widget",
|
|
1348
1359
|
onContentReady: props.onContentReady,
|
|
1349
1360
|
onRowInserted: props.onRowInserted,
|
|
1350
1361
|
onRowUpdated: props.onRowUpdated,
|
|
1351
1362
|
onRowRemoved: props.onRowRemoved,
|
|
1352
1363
|
onSaving: props.onSaving,
|
|
1353
|
-
allowColumnReordering: true,
|
|
1354
1364
|
showRowLines: true,
|
|
1355
1365
|
showBorders: true,
|
|
1356
1366
|
columnAutoWidth: props.columnAutoWidth == undefined ? false : props.columnAutoWidth,
|
|
1357
1367
|
focusedRowEnabled: false,
|
|
1358
1368
|
wordWrapEnabled: props.wordWrapEnabled == undefined ? false : props.wordWrapEnabled,
|
|
1359
|
-
noDataText: props.noDataLanguage == undefined ? "No Data" : props.noDataLanguage,
|
|
1360
1369
|
onEditCanceling: props.onEditCanceling,
|
|
1361
1370
|
onExporting: onExporting,
|
|
1362
1371
|
filterSyncEnabled: true,
|
|
@@ -1436,7 +1445,9 @@ function grid(props, dataGridRef) {
|
|
|
1436
1445
|
}), props.columns.map(function (col) {
|
|
1437
1446
|
return React__default.createElement(dataGrid.Column, Object.assign({
|
|
1438
1447
|
key: col.dataField
|
|
1439
|
-
}, col
|
|
1448
|
+
}, col, {
|
|
1449
|
+
headerCellRender: headerCellRender
|
|
1450
|
+
}), col.required && React__default.createElement(dataGrid.RequiredRule, {
|
|
1440
1451
|
message: col.requiredMessage
|
|
1441
1452
|
}), col.dataField === 'IsActive' && React__default.createElement(dataGrid.HeaderFilter, {
|
|
1442
1453
|
dataSource: [{
|