@mailstep/design-system 0.7.48-beta.1 → 0.7.48-beta.3
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/package.json +1 -1
- package/ui/Blocks/CommonGrid/hooks/useEditReadAsColumn.js +2 -2
- package/ui/Blocks/CommonGrid/utils/index.js +4 -2
- package/ui/index.es.js +6915 -6922
- package/ui/index.umd.js +396 -396
package/package.json
CHANGED
|
@@ -25,13 +25,13 @@ var useEditReadAsColumn = function (props) {
|
|
|
25
25
|
return onRowAction(id, field, value, rowData);
|
|
26
26
|
}
|
|
27
27
|
}, [onRowAction, onRowEditClick, onRowReadClick]);
|
|
28
|
-
var _b = actionColumnDefinition || {}, canRowEdit = _b.canRowEdit, canRowRead = _b.canRowRead, addRowNumbers = _b.addRowNumbers, _c = _b.stickTo, stickTo = _c === void 0 ? 'left' : _c, _d = _b.flexBasis, flexBasis = _d === void 0 ?
|
|
28
|
+
var _b = actionColumnDefinition || {}, canRowEdit = _b.canRowEdit, canRowRead = _b.canRowRead, addRowNumbers = _b.addRowNumbers, _c = _b.stickTo, stickTo = _c === void 0 ? 'left' : _c, _d = _b.flexBasis, flexBasis = _d === void 0 ? 20 : _d;
|
|
29
29
|
var withCheckboxes = !!((_a = actionColumnDefinition === null || actionColumnDefinition === void 0 ? void 0 : actionColumnDefinition.actionOptions) === null || _a === void 0 ? void 0 : _a.length) || (actionColumnDefinition === null || actionColumnDefinition === void 0 ? void 0 : actionColumnDefinition.forceCheckboxes);
|
|
30
30
|
var hasActions = canRowEdit || canRowRead || withCheckboxes || addRowNumbers;
|
|
31
31
|
var modifiedColumnsDefinitions = useMemo(function () {
|
|
32
32
|
var _a;
|
|
33
33
|
var editReadColumnDefinition = {
|
|
34
|
-
name: 'actions',
|
|
34
|
+
name: 'actions-cell-cg',
|
|
35
35
|
flexBasis: flexBasis,
|
|
36
36
|
filtering: withCheckboxes || addRowNumbers,
|
|
37
37
|
filteringType: 'actions',
|
|
@@ -80,12 +80,14 @@ export var checksColumnsOrder = function (colsOrder, columnsDefinitions) {
|
|
|
80
80
|
if (stickyLeftColls.length > 1 || stickyRightColls.length > 1) {
|
|
81
81
|
console.error('Grid can have only sticky column on each side.');
|
|
82
82
|
}
|
|
83
|
-
if (stickyLeftColls.length &&
|
|
83
|
+
if (stickyLeftColls.length &&
|
|
84
|
+
colsOrder.indexOf(stickyLeftColls[0].name) !== 0 &&
|
|
85
|
+
stickyLeftColls[0].name !== 'actions-cell-cg') {
|
|
84
86
|
console.error('The left sticky column should be the first one in a row');
|
|
85
87
|
}
|
|
86
88
|
if (stickyRightColls.length &&
|
|
87
89
|
colsOrder.indexOf(stickyRightColls[0].name) !== colsOrder.length - 1 &&
|
|
88
|
-
stickyRightColls[0].name !== 'actions') {
|
|
90
|
+
stickyRightColls[0].name !== 'actions-cell-cg') {
|
|
89
91
|
console.error('The Right sticky column should be the last one in a row');
|
|
90
92
|
}
|
|
91
93
|
};
|