ods-component-lib 1.17.134 → 1.17.136
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 +3 -15
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -15
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1278,18 +1278,6 @@ 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
|
-
};
|
|
1293
1281
|
var fileName = props.exportFileName ? props.exportFileName + moment().format("YYYYMMDD") : "DatagridExportFile" + moment().format("YYYYMMDD");
|
|
1294
1282
|
var onExporting = function onExporting(e) {
|
|
1295
1283
|
if (e.format === 'xlsx') {
|
|
@@ -1356,11 +1344,13 @@ function grid(props, dataGridRef) {
|
|
|
1356
1344
|
dataSource: props.dataSource,
|
|
1357
1345
|
keyExpr: props.keyExpr,
|
|
1358
1346
|
allowColumnResizing: true,
|
|
1347
|
+
columnResizingMode: "widget",
|
|
1359
1348
|
onContentReady: props.onContentReady,
|
|
1360
1349
|
onRowInserted: props.onRowInserted,
|
|
1361
1350
|
onRowUpdated: props.onRowUpdated,
|
|
1362
1351
|
onRowRemoved: props.onRowRemoved,
|
|
1363
1352
|
onSaving: props.onSaving,
|
|
1353
|
+
allowColumnReordering: true,
|
|
1364
1354
|
showRowLines: true,
|
|
1365
1355
|
showBorders: true,
|
|
1366
1356
|
columnAutoWidth: props.columnAutoWidth == undefined ? false : props.columnAutoWidth,
|
|
@@ -1445,9 +1435,7 @@ function grid(props, dataGridRef) {
|
|
|
1445
1435
|
}), props.columns.map(function (col) {
|
|
1446
1436
|
return React__default.createElement(dataGrid.Column, Object.assign({
|
|
1447
1437
|
key: col.dataField
|
|
1448
|
-
}, col, {
|
|
1449
|
-
headerCellRender: headerCellRender
|
|
1450
|
-
}), col.required && React__default.createElement(dataGrid.RequiredRule, {
|
|
1438
|
+
}, col), col.required && React__default.createElement(dataGrid.RequiredRule, {
|
|
1451
1439
|
message: col.requiredMessage
|
|
1452
1440
|
}), col.dataField === 'IsActive' && React__default.createElement(dataGrid.HeaderFilter, {
|
|
1453
1441
|
dataSource: [{
|