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.modern.js
CHANGED
|
@@ -1274,18 +1274,6 @@ function OdsDataGrid(props) {
|
|
|
1274
1274
|
return grid(props, dataGridRef);
|
|
1275
1275
|
}
|
|
1276
1276
|
function grid(props, dataGridRef) {
|
|
1277
|
-
var headerCellRender = function headerCellRender(colProperties) {
|
|
1278
|
-
return React.createElement("th", {
|
|
1279
|
-
className: "dx-datagrid-headers",
|
|
1280
|
-
style: {
|
|
1281
|
-
fontFamily: "Manrope",
|
|
1282
|
-
fontSize: "14px",
|
|
1283
|
-
fontStyle: "normal",
|
|
1284
|
-
fontWeight: "600",
|
|
1285
|
-
lineHeight: "22px"
|
|
1286
|
-
}
|
|
1287
|
-
}, colProperties.column.caption);
|
|
1288
|
-
};
|
|
1289
1277
|
var fileName = props.exportFileName ? props.exportFileName + moment().format("YYYYMMDD") : "DatagridExportFile" + moment().format("YYYYMMDD");
|
|
1290
1278
|
var onExporting = function onExporting(e) {
|
|
1291
1279
|
if (e.format === 'xlsx') {
|
|
@@ -1352,11 +1340,13 @@ function grid(props, dataGridRef) {
|
|
|
1352
1340
|
dataSource: props.dataSource,
|
|
1353
1341
|
keyExpr: props.keyExpr,
|
|
1354
1342
|
allowColumnResizing: true,
|
|
1343
|
+
columnResizingMode: "widget",
|
|
1355
1344
|
onContentReady: props.onContentReady,
|
|
1356
1345
|
onRowInserted: props.onRowInserted,
|
|
1357
1346
|
onRowUpdated: props.onRowUpdated,
|
|
1358
1347
|
onRowRemoved: props.onRowRemoved,
|
|
1359
1348
|
onSaving: props.onSaving,
|
|
1349
|
+
allowColumnReordering: true,
|
|
1360
1350
|
showRowLines: true,
|
|
1361
1351
|
showBorders: true,
|
|
1362
1352
|
columnAutoWidth: props.columnAutoWidth == undefined ? false : props.columnAutoWidth,
|
|
@@ -1441,9 +1431,7 @@ function grid(props, dataGridRef) {
|
|
|
1441
1431
|
}), props.columns.map(function (col) {
|
|
1442
1432
|
return React.createElement(Column, Object.assign({
|
|
1443
1433
|
key: col.dataField
|
|
1444
|
-
}, col, {
|
|
1445
|
-
headerCellRender: headerCellRender
|
|
1446
|
-
}), col.required && React.createElement(RequiredRule, {
|
|
1434
|
+
}, col), col.required && React.createElement(RequiredRule, {
|
|
1447
1435
|
message: col.requiredMessage
|
|
1448
1436
|
}), col.dataField === 'IsActive' && React.createElement(HeaderFilter, {
|
|
1449
1437
|
dataSource: [{
|