ods-component-lib 1.17.111 → 1.17.112
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 +7 -10
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -10
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1224,7 +1224,6 @@ function OdsDataGrid(props) {
|
|
|
1224
1224
|
return grid(props, dataGridRef);
|
|
1225
1225
|
}
|
|
1226
1226
|
function grid(props, dataGridRef) {
|
|
1227
|
-
var _props$actionPermissi5;
|
|
1228
1227
|
var headerCellRender = function headerCellRender(colProperties) {
|
|
1229
1228
|
return React__default.createElement("th", {
|
|
1230
1229
|
className: "dx-datagrid-headers",
|
|
@@ -1417,7 +1416,6 @@ function grid(props, dataGridRef) {
|
|
|
1417
1416
|
}));
|
|
1418
1417
|
}), function () {
|
|
1419
1418
|
if (props.customPopup !== undefined) {
|
|
1420
|
-
var _props$actionPermissi, _props$actionPermissi2;
|
|
1421
1419
|
return React__default.createElement(dataGrid.Column, {
|
|
1422
1420
|
dataField: "Actions",
|
|
1423
1421
|
fixed: true,
|
|
@@ -1429,18 +1427,17 @@ function grid(props, dataGridRef) {
|
|
|
1429
1427
|
}, props.edit.allowUpdating && React__default.createElement(dataGrid.Button, {
|
|
1430
1428
|
hint: props.HintEdit,
|
|
1431
1429
|
visible: true,
|
|
1432
|
-
disabled:
|
|
1430
|
+
disabled: props.actionPermission == undefined ? false : !props.actionPermission,
|
|
1433
1431
|
icon: "edit",
|
|
1434
1432
|
onClick: props.editButtonClick
|
|
1435
1433
|
}), props.edit.allowDeleting && React__default.createElement(dataGrid.Button, {
|
|
1436
1434
|
hint: props.HintDelete,
|
|
1437
1435
|
visible: true,
|
|
1438
|
-
disabled:
|
|
1436
|
+
disabled: props.actionPermission == undefined ? false : !props.actionPermission,
|
|
1439
1437
|
icon: "trash",
|
|
1440
1438
|
onClick: props.deleteButtonClick
|
|
1441
1439
|
}));
|
|
1442
1440
|
} else {
|
|
1443
|
-
var _props$actionPermissi3, _props$actionPermissi4;
|
|
1444
1441
|
return React__default.createElement(dataGrid.Column, {
|
|
1445
1442
|
dataField: "Actions",
|
|
1446
1443
|
caption: "Actions",
|
|
@@ -1448,11 +1445,11 @@ function grid(props, dataGridRef) {
|
|
|
1448
1445
|
width: 110,
|
|
1449
1446
|
showInColumnChooser: false
|
|
1450
1447
|
}, React__default.createElement(React__default.Fragment, null, props.edit.allowUpdating && React__default.createElement(dataGrid.Button, {
|
|
1451
|
-
|
|
1452
|
-
|
|
1448
|
+
disabled: props.actionPermission == undefined ? false : !props.actionPermission,
|
|
1449
|
+
name: "edit"
|
|
1453
1450
|
}), props.edit.allowDeleting && React__default.createElement(dataGrid.Button, {
|
|
1454
|
-
|
|
1455
|
-
|
|
1451
|
+
disabled: props.actionPermission == undefined ? false : !props.actionPermission,
|
|
1452
|
+
name: "delete"
|
|
1456
1453
|
})));
|
|
1457
1454
|
}
|
|
1458
1455
|
}(), React__default.createElement(dataGrid.Toolbar, null, props.pageTitle && React__default.createElement(dataGrid.Item, {
|
|
@@ -1470,7 +1467,7 @@ function grid(props, dataGridRef) {
|
|
|
1470
1467
|
location: "before"
|
|
1471
1468
|
}, React__default.createElement(OdsButton, {
|
|
1472
1469
|
type: "primary",
|
|
1473
|
-
disabled:
|
|
1470
|
+
disabled: props.actionPermission == undefined ? false : !props.actionPermission,
|
|
1474
1471
|
onClick: props.onAddButton,
|
|
1475
1472
|
style: {
|
|
1476
1473
|
marginBottom: "10px"
|