@comet/brevo-admin 3.0.0-canary-20241029075059 → 3.0.0-canary-20241105083652
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/lib/brevoContacts/BrevoContactsGrid.d.ts +1 -1
- package/lib/brevoContacts/BrevoContactsGrid.d.ts.map +1 -1
- package/lib/brevoContacts/BrevoContactsGrid.js +118 -97
- package/lib/brevoContacts/BrevoContactsPage.d.ts +1 -1
- package/lib/brevoContacts/BrevoContactsPage.d.ts.map +1 -1
- package/lib/brevoContacts/BrevoContactsPage.js +44 -33
- package/lib/brevoContacts/form/BrevoContactForm.d.ts.map +1 -1
- package/lib/brevoContacts/form/BrevoContactForm.js +73 -51
- package/lib/common/BrevoConfigProvider.js +5 -3
- package/lib/common/contactImport/useContactImportFromCsv.js +86 -64
- package/lib/emailCampaigns/EmailCampaignsGrid.d.ts.map +1 -1
- package/lib/emailCampaigns/EmailCampaignsGrid.js +106 -91
- package/lib/emailCampaigns/EmailCampaignsPage.d.ts.map +1 -1
- package/lib/emailCampaigns/EmailCampaignsPage.js +54 -41
- package/lib/emailCampaigns/SendingStateColumn.js +43 -31
- package/lib/emailCampaigns/form/ConfigFields.js +22 -19
- package/lib/emailCampaigns/form/EmailCampaignForm.d.ts +1 -1
- package/lib/emailCampaigns/form/EmailCampaignForm.d.ts.map +1 -1
- package/lib/emailCampaigns/form/EmailCampaignForm.js +102 -74
- package/lib/emailCampaigns/form/SendEmailCampaignNowDialog.js +25 -16
- package/lib/emailCampaigns/form/SendManagerFields.js +103 -92
- package/lib/emailCampaigns/form/TestEmailCampaignForm.js +70 -59
- package/lib/emailCampaigns/statistics/EmailCampaignStatistics.js +106 -88
- package/lib/emailCampaigns/statistics/PercentageCard.js +50 -28
- package/lib/emailCampaigns/view/EmailCampaignView.d.ts +1 -1
- package/lib/emailCampaigns/view/EmailCampaignView.d.ts.map +1 -1
- package/lib/emailCampaigns/view/EmailCampaignView.js +28 -16
- package/lib/graphql.generated.d.ts +6 -7
- package/lib/graphql.generated.d.ts.map +1 -1
- package/lib/targetGroups/TargetGroupDialog.js +15 -13
- package/lib/targetGroups/TargetGroupForm.d.ts.map +1 -1
- package/lib/targetGroups/TargetGroupForm.js +78 -55
- package/lib/targetGroups/TargetGroupsGrid.d.ts.map +1 -1
- package/lib/targetGroups/TargetGroupsGrid.js +105 -90
- package/lib/targetGroups/TargetGroupsPage.d.ts.map +1 -1
- package/lib/targetGroups/TargetGroupsPage.js +31 -21
- package/lib/targetGroups/addContacts/AddContactsGridSelect.d.ts.map +1 -1
- package/lib/targetGroups/addContacts/AddContactsGridSelect.js +152 -120
- package/lib/targetGroups/allAssignedContacts/AllAssignedContactsGrid.d.ts.map +1 -1
- package/lib/targetGroups/allAssignedContacts/AllAssignedContactsGrid.js +17 -11
- package/lib/temp/CrudMoreActionsMenu.js +133 -111
- package/package.json +14 -17
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.CrudMoreActionsMenu = CrudMoreActionsMenu;
|
|
8
7
|
var _adminIcons = require("@comet/admin-icons");
|
|
9
8
|
var _material = require("@mui/material");
|
|
10
|
-
var
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var React = _react;
|
|
11
11
|
var _reactIntl = require("react-intl");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
var _excluded = ["label"],
|
|
13
14
|
_excluded2 = ["label", "startAdornment", "onClick"],
|
|
14
15
|
_excluded3 = ["label", "startAdornment", "onClick"];
|
|
15
16
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
18
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
17
19
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
18
20
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
19
21
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -22,10 +24,14 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
22
24
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
23
25
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
24
26
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
25
|
-
function
|
|
27
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
28
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
30
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
31
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } // temporary copy from https://github.com/vivid-planet/comet/pull/2115/files
|
|
26
32
|
// remove as soon as it's available in COMET
|
|
27
33
|
function CrudMoreActionsDivider(props) {
|
|
28
|
-
return /*#__PURE__*/
|
|
34
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Divider, _objectSpread({
|
|
29
35
|
sx: {
|
|
30
36
|
margin: "8px 10px",
|
|
31
37
|
borderColor: function borderColor(theme) {
|
|
@@ -39,20 +45,26 @@ function CrudMoreActionsGroup(_ref) {
|
|
|
39
45
|
children = _ref.children,
|
|
40
46
|
menuListProps = _ref.menuListProps,
|
|
41
47
|
typographyProps = _ref.typographyProps;
|
|
42
|
-
return /*#__PURE__*/
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
49
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, _objectSpread(_objectSpread({
|
|
50
|
+
variant: "subtitle2",
|
|
51
|
+
color: function color(theme) {
|
|
52
|
+
return theme.palette.grey[500];
|
|
53
|
+
},
|
|
54
|
+
fontWeight: "bold",
|
|
55
|
+
pt: "20px",
|
|
56
|
+
px: "15px"
|
|
57
|
+
}, typographyProps), {}, {
|
|
58
|
+
children: groupTitle
|
|
59
|
+
})), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.MenuList, _objectSpread(_objectSpread({}, menuListProps), {}, {
|
|
60
|
+
children: children
|
|
61
|
+
}))]
|
|
62
|
+
});
|
|
51
63
|
}
|
|
52
64
|
function SelectedItemsChip(_ref2) {
|
|
53
65
|
var label = _ref2.label,
|
|
54
66
|
restProps = _objectWithoutProperties(_ref2, _excluded);
|
|
55
|
-
return /*#__PURE__*/
|
|
67
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Chip, _objectSpread(_objectSpread({
|
|
56
68
|
size: "small",
|
|
57
69
|
color: "primary",
|
|
58
70
|
sx: {
|
|
@@ -62,7 +74,7 @@ function SelectedItemsChip(_ref2) {
|
|
|
62
74
|
borderRadius: 20,
|
|
63
75
|
marginLeft: 1
|
|
64
76
|
}
|
|
65
|
-
}, restProps, {
|
|
77
|
+
}, restProps), {}, {
|
|
66
78
|
label: label
|
|
67
79
|
}));
|
|
68
80
|
}
|
|
@@ -84,103 +96,113 @@ function CrudMoreActionsMenu(_ref3) {
|
|
|
84
96
|
var handleClose = function handleClose() {
|
|
85
97
|
return setAnchorEl(null);
|
|
86
98
|
};
|
|
87
|
-
return /*#__PURE__*/
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
mx: 2
|
|
93
|
-
}
|
|
94
|
-
}, buttonProps, {
|
|
95
|
-
onClick: function onClick(event) {
|
|
96
|
-
var _buttonProps$onClick;
|
|
97
|
-
handleClick(event);
|
|
98
|
-
buttonProps === null || buttonProps === void 0 || (_buttonProps$onClick = buttonProps.onClick) === null || _buttonProps$onClick === void 0 || _buttonProps$onClick.call(buttonProps, event);
|
|
99
|
-
}
|
|
100
|
-
}), /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, {
|
|
101
|
-
id: "comet.pages.dam.moreActions",
|
|
102
|
-
defaultMessage: "More actions"
|
|
103
|
-
}), !!selectionSize && /*#__PURE__*/React.createElement(SelectedItemsChip, _extends({}, chipProps, {
|
|
104
|
-
label: selectionSize
|
|
105
|
-
}))), /*#__PURE__*/React.createElement(_material.Menu, _extends({
|
|
106
|
-
keepMounted: false,
|
|
107
|
-
PaperProps: {
|
|
99
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
100
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Button, _objectSpread(_objectSpread({
|
|
101
|
+
variant: "text",
|
|
102
|
+
color: "inherit",
|
|
103
|
+
endIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_adminIcons.MoreVertical, {}),
|
|
108
104
|
sx: {
|
|
109
|
-
|
|
110
|
-
borderRadius: "4px"
|
|
105
|
+
mx: 2
|
|
111
106
|
}
|
|
112
|
-
},
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
groupTitle: /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, {
|
|
123
|
-
id: "comet.dam.moreActions.overallActions",
|
|
124
|
-
defaultMessage: "Overall actions"
|
|
125
|
-
}),
|
|
126
|
-
typographyProps: groupTypographyProps,
|
|
127
|
-
menuListProps: menuProps === null || menuProps === void 0 ? void 0 : menuProps.MenuListProps
|
|
128
|
-
}, overallItems.map(function (item, index) {
|
|
129
|
-
if (!item) return null;
|
|
130
|
-
var type = item.type;
|
|
131
|
-
if (type === "action") {
|
|
132
|
-
var label = item.label,
|
|
133
|
-
startAdornment = item.startAdornment,
|
|
134
|
-
_onClick = item.onClick,
|
|
135
|
-
rest = _objectWithoutProperties(item, _excluded2);
|
|
136
|
-
return /*#__PURE__*/React.createElement(_material.MenuItem, _extends({
|
|
137
|
-
key: index,
|
|
138
|
-
disabled: !!selectionSize
|
|
139
|
-
}, rest, {
|
|
140
|
-
onClick: function onClick(e) {
|
|
141
|
-
_onClick === null || _onClick === void 0 || _onClick(e);
|
|
142
|
-
handleClose();
|
|
143
|
-
}
|
|
144
|
-
}), !!startAdornment && /*#__PURE__*/React.createElement(_material.ListItemIcon, null, startAdornment), /*#__PURE__*/React.createElement(_material.ListItemText, {
|
|
145
|
-
primary: label
|
|
146
|
-
}));
|
|
147
|
-
} else if (type === "divider") {
|
|
148
|
-
return /*#__PURE__*/React.createElement(CrudMoreActionsDivider, _extends({}, item, {
|
|
149
|
-
key: index
|
|
150
|
-
}));
|
|
151
|
-
}
|
|
152
|
-
})), !!(overallItems !== null && overallItems !== void 0 && overallItems.length) && !!(selectiveItems !== null && selectiveItems !== void 0 && selectiveItems.length) && /*#__PURE__*/React.createElement(CrudMoreActionsDivider, null), !!(selectiveItems !== null && selectiveItems !== void 0 && selectiveItems.length) && /*#__PURE__*/React.createElement(CrudMoreActionsGroup, {
|
|
153
|
-
groupTitle: /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, {
|
|
154
|
-
id: "comet.dam.moreActions.selectiveActions",
|
|
155
|
-
defaultMessage: "Selective actions"
|
|
156
|
-
}),
|
|
157
|
-
typographyProps: groupTypographyProps,
|
|
158
|
-
menuListProps: menuProps === null || menuProps === void 0 ? void 0 : menuProps.MenuListProps
|
|
159
|
-
}, selectiveItems.map(function (item, index) {
|
|
160
|
-
if (!item) return;
|
|
161
|
-
var type = item.type;
|
|
162
|
-
if (type === "action") {
|
|
163
|
-
var label = item.label,
|
|
164
|
-
startAdornment = item.startAdornment,
|
|
165
|
-
_onClick2 = item.onClick,
|
|
166
|
-
rest = _objectWithoutProperties(item, _excluded3);
|
|
167
|
-
return /*#__PURE__*/React.createElement(_material.MenuItem, _extends({
|
|
168
|
-
key: index,
|
|
169
|
-
disabled: !selectionSize
|
|
170
|
-
}, rest, {
|
|
171
|
-
onClick: function onClick(e) {
|
|
172
|
-
_onClick2 === null || _onClick2 === void 0 || _onClick2(e);
|
|
173
|
-
handleClose();
|
|
174
|
-
}
|
|
175
|
-
}), !!startAdornment && /*#__PURE__*/React.createElement(_material.ListItemIcon, null, startAdornment), /*#__PURE__*/React.createElement(_material.ListItemText, {
|
|
176
|
-
primary: label
|
|
177
|
-
}), !!selectionSize && /*#__PURE__*/React.createElement(SelectedItemsChip, _extends({}, chipProps, {
|
|
107
|
+
}, buttonProps), {}, {
|
|
108
|
+
onClick: function onClick(event) {
|
|
109
|
+
var _buttonProps$onClick;
|
|
110
|
+
handleClick(event);
|
|
111
|
+
buttonProps === null || buttonProps === void 0 || (_buttonProps$onClick = buttonProps.onClick) === null || _buttonProps$onClick === void 0 || _buttonProps$onClick.call(buttonProps, event);
|
|
112
|
+
},
|
|
113
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
114
|
+
id: "comet.pages.dam.moreActions",
|
|
115
|
+
defaultMessage: "More actions"
|
|
116
|
+
}), !!selectionSize && /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectedItemsChip, _objectSpread(_objectSpread({}, chipProps), {}, {
|
|
178
117
|
label: selectionSize
|
|
179
|
-
}))
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
118
|
+
}))]
|
|
119
|
+
})), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Menu, _objectSpread(_objectSpread({
|
|
120
|
+
keepMounted: false,
|
|
121
|
+
PaperProps: {
|
|
122
|
+
sx: {
|
|
123
|
+
minWidth: 220,
|
|
124
|
+
borderRadius: "4px"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
open: Boolean(anchorEl),
|
|
128
|
+
anchorEl: anchorEl
|
|
129
|
+
}, menuProps), {}, {
|
|
130
|
+
onClose: function onClose(event, reason) {
|
|
131
|
+
var _menuProps$onClose;
|
|
132
|
+
handleClose();
|
|
133
|
+
menuProps === null || menuProps === void 0 || (_menuProps$onClose = menuProps.onClose) === null || _menuProps$onClose === void 0 || _menuProps$onClose.call(menuProps, event, reason);
|
|
134
|
+
},
|
|
135
|
+
children: [!!(overallItems !== null && overallItems !== void 0 && overallItems.length) && /*#__PURE__*/(0, _jsxRuntime.jsx)(CrudMoreActionsGroup, {
|
|
136
|
+
groupTitle: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
137
|
+
id: "comet.dam.moreActions.overallActions",
|
|
138
|
+
defaultMessage: "Overall actions"
|
|
139
|
+
}),
|
|
140
|
+
typographyProps: groupTypographyProps,
|
|
141
|
+
menuListProps: menuProps === null || menuProps === void 0 ? void 0 : menuProps.MenuListProps,
|
|
142
|
+
children: overallItems.map(function (item, index) {
|
|
143
|
+
if (!item) return null;
|
|
144
|
+
var type = item.type;
|
|
145
|
+
if (type === "action") {
|
|
146
|
+
var label = item.label,
|
|
147
|
+
startAdornment = item.startAdornment,
|
|
148
|
+
_onClick = item.onClick,
|
|
149
|
+
rest = _objectWithoutProperties(item, _excluded2);
|
|
150
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.MenuItem, _objectSpread(_objectSpread({
|
|
151
|
+
disabled: !!selectionSize
|
|
152
|
+
}, rest), {}, {
|
|
153
|
+
onClick: function onClick(e) {
|
|
154
|
+
_onClick === null || _onClick === void 0 || _onClick(e);
|
|
155
|
+
handleClose();
|
|
156
|
+
},
|
|
157
|
+
children: [!!startAdornment && /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.ListItemIcon, {
|
|
158
|
+
children: startAdornment
|
|
159
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.ListItemText, {
|
|
160
|
+
primary: label
|
|
161
|
+
})]
|
|
162
|
+
}), index);
|
|
163
|
+
} else if (type === "divider") {
|
|
164
|
+
return /*#__PURE__*/(0, _react.createElement)(CrudMoreActionsDivider, _objectSpread(_objectSpread({}, item), {}, {
|
|
165
|
+
key: index
|
|
166
|
+
}));
|
|
167
|
+
}
|
|
168
|
+
})
|
|
169
|
+
}), !!(overallItems !== null && overallItems !== void 0 && overallItems.length) && !!(selectiveItems !== null && selectiveItems !== void 0 && selectiveItems.length) && /*#__PURE__*/(0, _jsxRuntime.jsx)(CrudMoreActionsDivider, {}), !!(selectiveItems !== null && selectiveItems !== void 0 && selectiveItems.length) && /*#__PURE__*/(0, _jsxRuntime.jsx)(CrudMoreActionsGroup, {
|
|
170
|
+
groupTitle: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, {
|
|
171
|
+
id: "comet.dam.moreActions.selectiveActions",
|
|
172
|
+
defaultMessage: "Selective actions"
|
|
173
|
+
}),
|
|
174
|
+
typographyProps: groupTypographyProps,
|
|
175
|
+
menuListProps: menuProps === null || menuProps === void 0 ? void 0 : menuProps.MenuListProps,
|
|
176
|
+
children: selectiveItems.map(function (item, index) {
|
|
177
|
+
if (!item) return;
|
|
178
|
+
var type = item.type;
|
|
179
|
+
if (type === "action") {
|
|
180
|
+
var label = item.label,
|
|
181
|
+
startAdornment = item.startAdornment,
|
|
182
|
+
_onClick2 = item.onClick,
|
|
183
|
+
rest = _objectWithoutProperties(item, _excluded3);
|
|
184
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.MenuItem, _objectSpread(_objectSpread({
|
|
185
|
+
disabled: !selectionSize
|
|
186
|
+
}, rest), {}, {
|
|
187
|
+
onClick: function onClick(e) {
|
|
188
|
+
_onClick2 === null || _onClick2 === void 0 || _onClick2(e);
|
|
189
|
+
handleClose();
|
|
190
|
+
},
|
|
191
|
+
children: [!!startAdornment && /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.ListItemIcon, {
|
|
192
|
+
children: startAdornment
|
|
193
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.ListItemText, {
|
|
194
|
+
primary: label
|
|
195
|
+
}), !!selectionSize && /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectedItemsChip, _objectSpread(_objectSpread({}, chipProps), {}, {
|
|
196
|
+
label: selectionSize
|
|
197
|
+
}))]
|
|
198
|
+
}), index);
|
|
199
|
+
} else if (item.type === "divider") {
|
|
200
|
+
return /*#__PURE__*/(0, _react.createElement)(CrudMoreActionsDivider, _objectSpread(_objectSpread({}, item), {}, {
|
|
201
|
+
key: index
|
|
202
|
+
}));
|
|
203
|
+
}
|
|
204
|
+
})
|
|
205
|
+
})]
|
|
206
|
+
}))]
|
|
207
|
+
});
|
|
186
208
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comet/brevo-admin",
|
|
3
|
-
"version": "3.0.0-canary-
|
|
3
|
+
"version": "3.0.0-canary-20241105083652",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/vivid-planet/comet-brevo-module/",
|
|
@@ -19,22 +19,21 @@
|
|
|
19
19
|
"react-dropzone": "^14.2.3"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@apollo/client": "^3.
|
|
22
|
+
"@apollo/client": "^3.11.8",
|
|
23
23
|
"@babel/cli": "^7.17.6",
|
|
24
24
|
"@babel/core": "^7.20.12",
|
|
25
|
-
"@comet/admin": "^
|
|
26
|
-
"@comet/admin-babel-preset": "^
|
|
27
|
-
"@comet/admin-date-time": "^
|
|
28
|
-
"@comet/admin-icons": "^
|
|
29
|
-
"@comet/blocks-admin": "^
|
|
30
|
-
"@comet/cms-admin": "^
|
|
31
|
-
"@comet/eslint-config": "^
|
|
25
|
+
"@comet/admin": "^7.5.0",
|
|
26
|
+
"@comet/admin-babel-preset": "^7.5.0",
|
|
27
|
+
"@comet/admin-date-time": "^7.5.0",
|
|
28
|
+
"@comet/admin-icons": "^7.5.0",
|
|
29
|
+
"@comet/blocks-admin": "^7.5.0",
|
|
30
|
+
"@comet/cms-admin": "^7.5.0",
|
|
31
|
+
"@comet/eslint-config": "^7.5.0",
|
|
32
32
|
"@emotion/react": "^11.9.3",
|
|
33
33
|
"@emotion/styled": "^11.9.3",
|
|
34
34
|
"@graphql-codegen/cli": "^2.0.0",
|
|
35
35
|
"@mui/icons-material": "^5.8.4",
|
|
36
36
|
"@mui/material": "^5.8.6",
|
|
37
|
-
"@mui/styles": "^5.8.6",
|
|
38
37
|
"@mui/system": "^5.8.6",
|
|
39
38
|
"@mui/x-data-grid": "^5.17.26",
|
|
40
39
|
"@types/file-saver": "^2.0.7",
|
|
@@ -42,7 +41,6 @@
|
|
|
42
41
|
"@types/react": "^17.0",
|
|
43
42
|
"@types/react-dom": "^17.0.0",
|
|
44
43
|
"@types/react-router": "^5.0.3",
|
|
45
|
-
"axios": "^0.21.0",
|
|
46
44
|
"draft-js": "^0.11.0",
|
|
47
45
|
"eslint": "^8.0.0",
|
|
48
46
|
"final-form": "^4.16.1",
|
|
@@ -62,16 +60,15 @@
|
|
|
62
60
|
},
|
|
63
61
|
"peerDependencies": {
|
|
64
62
|
"@apollo/client": "^3.2.5",
|
|
65
|
-
"@comet/admin": "^
|
|
66
|
-
"@comet/admin-date-time": "^
|
|
67
|
-
"@comet/admin-icons": "^
|
|
68
|
-
"@comet/blocks-admin": "^
|
|
69
|
-
"@comet/cms-admin": "^
|
|
63
|
+
"@comet/admin": "^7.5.0",
|
|
64
|
+
"@comet/admin-date-time": "^7.5.0",
|
|
65
|
+
"@comet/admin-icons": "^7.5.0",
|
|
66
|
+
"@comet/blocks-admin": "^7.5.0",
|
|
67
|
+
"@comet/cms-admin": "^7.5.0",
|
|
70
68
|
"@emotion/react": "^11.9.3",
|
|
71
69
|
"@emotion/styled": "^11.9.3",
|
|
72
70
|
"@mui/icons-material": "^5.8.4",
|
|
73
71
|
"@mui/material": "^5.8.6",
|
|
74
|
-
"@mui/styles": "^5.8.6",
|
|
75
72
|
"@mui/system": "^5.8.6",
|
|
76
73
|
"@mui/x-data-grid": "^5.17.26",
|
|
77
74
|
"axios": "^0.21.0",
|