@mailstep/design-system 0.7.47-beta.11 → 0.7.47-beta.12
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/components/Filters/ActionsFilter/ActionsFilter.js +2 -2
- package/ui/Blocks/CommonGrid/components/gridCells/RowActionsCell.js +1 -1
- package/ui/Blocks/CommonGrid/storybook/stories/complexWithPaginationAndRedux.stories.js +5 -5
- package/ui/index.es.js +6989 -6982
- package/ui/index.umd.js +396 -396
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx,
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import Checkbox from '../../../../../Forms/Checkbox';
|
|
3
3
|
import { useToggleAllCheckbox } from '../../../hooks/useToggleAllCheckbox';
|
|
4
4
|
import { x } from '@xstyled/styled-components';
|
|
@@ -9,6 +9,6 @@ var ActionFilter = function (_a) {
|
|
|
9
9
|
var displayRowNumberLabel = actionColumn === null || actionColumn === void 0 ? void 0 : actionColumn.addRowNumbers;
|
|
10
10
|
var rowsNumberLabel = (_b = actionColumn === null || actionColumn === void 0 ? void 0 : actionColumn.addRowNumbersLabel) !== null && _b !== void 0 ? _b : '#';
|
|
11
11
|
var displayCheckbox = ((_c = actionColumn === null || actionColumn === void 0 ? void 0 : actionColumn.actionOptions) === null || _c === void 0 ? void 0 : _c.length) || (actionColumn === null || actionColumn === void 0 ? void 0 : actionColumn.forceCheckboxes);
|
|
12
|
-
return (_jsxs(
|
|
12
|
+
return (_jsxs(x.div, { display: "flex", alignItems: "center", justifyContent: "space-between", gap: "16px", children: [displayCheckbox && (_jsx(x.div, { pl: "8px", children: _jsx(Checkbox, { checked: allChecked, onChange: toggleCheckbox, label: "" }, "check-all") })), displayRowNumberLabel && _jsx(x.div, { pr: "8px", children: rowsNumberLabel })] }));
|
|
13
13
|
};
|
|
14
14
|
export default ActionFilter;
|
|
@@ -53,5 +53,5 @@ export var RowActionsCell = function (_a) {
|
|
|
53
53
|
onClick();
|
|
54
54
|
}
|
|
55
55
|
}, [onClick]);
|
|
56
|
-
return (_jsxs(x.div, { w: "100%", display: "flex", gap: "16px", pl: "8px", pr: "8px", children: [withCheckboxes && (_jsx(x.div, { w: "100%", children: _jsx(Checkbox, { checked: isChecked, onChange: onCheckboxChange, label: "" }) })), addRowNumbers && _jsx(x.div, { children: rowIndex }), canEdit && _jsx(IconButtonInCell, { icon: "pen", onClick: handleOnClick, linkTo: linkTo }, "edit"), !canEdit && canRead && _jsx(IconButtonInCell, { icon: "chevronRight", onClick: handleOnClick, linkTo: linkTo }, "read")] }));
|
|
56
|
+
return (_jsxs(x.div, { w: "100%", display: "flex", gap: "16px", pl: "8px", pr: "8px", children: [withCheckboxes && (_jsx(x.div, { w: "100%", children: _jsx(Checkbox, { checked: isChecked, onChange: onCheckboxChange, label: "" }) })), addRowNumbers && (_jsx(x.div, { display: "flex", alignItems: "center", children: rowIndex })), canEdit && _jsx(IconButtonInCell, { icon: "pen", onClick: handleOnClick, linkTo: linkTo }, "edit"), !canEdit && canRead && _jsx(IconButtonInCell, { icon: "chevronRight", onClick: handleOnClick, linkTo: linkTo }, "read")] }));
|
|
57
57
|
};
|
|
@@ -9,11 +9,11 @@ import { columnDefinitions, enumColumn } from '../utils/columnDefinition';
|
|
|
9
9
|
import { ReduxGrid, createRandomData, enumValues, gridDummyActions } from '../utils/utils';
|
|
10
10
|
import withRedux from '../utils/withRedux';
|
|
11
11
|
var ActionColumnButtons = {
|
|
12
|
-
flexBasis:
|
|
13
|
-
forceCheckboxes:
|
|
14
|
-
addRowNumbers:
|
|
15
|
-
canRowEdit:
|
|
16
|
-
canRowRead:
|
|
12
|
+
flexBasis: 80,
|
|
13
|
+
forceCheckboxes: true,
|
|
14
|
+
addRowNumbers: true,
|
|
15
|
+
canRowEdit: false,
|
|
16
|
+
canRowRead: false
|
|
17
17
|
};
|
|
18
18
|
var FilterSetter = function (_a) {
|
|
19
19
|
var gridActions = _a.gridActions;
|