@selfcommunity/react-ui 0.7.0-alpha.79 → 0.7.0-alpha.80
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/cjs/components/FeedObject/FeedObject.d.ts.map +1 -1
- package/lib/cjs/components/FeedObject/FeedObject.js +0 -1
- package/lib/cjs/components/FeedObject/FeedObject.js.map +1 -1
- package/lib/cjs/components/FeedUpdates/FeedUpdates.d.ts.map +1 -1
- package/lib/cjs/components/FeedUpdates/FeedUpdates.js +0 -1
- package/lib/cjs/components/FeedUpdates/FeedUpdates.js.map +1 -1
- package/lib/cjs/components/NavigationToolbar/NotificationMenu.d.ts.map +1 -1
- package/lib/cjs/components/NavigationToolbar/NotificationMenu.js +5 -2
- package/lib/cjs/components/NavigationToolbar/NotificationMenu.js.map +1 -1
- package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.d.ts +2 -21
- package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.d.ts.map +1 -1
- package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +15 -16
- package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js.map +1 -1
- package/lib/cjs/components/Notification/Comment/Comment.d.ts +2 -21
- package/lib/cjs/components/Notification/Comment/Comment.d.ts.map +1 -1
- package/lib/cjs/components/Notification/Comment/Comment.js +23 -24
- package/lib/cjs/components/Notification/Comment/Comment.js.map +1 -1
- package/lib/cjs/components/Notification/Contribution/Contribution.d.ts +2 -21
- package/lib/cjs/components/Notification/Contribution/Contribution.d.ts.map +1 -1
- package/lib/cjs/components/Notification/Contribution/Contribution.js +25 -25
- package/lib/cjs/components/Notification/Contribution/Contribution.js.map +1 -1
- package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.d.ts +2 -21
- package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.d.ts.map +1 -1
- package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +18 -19
- package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js.map +1 -1
- package/lib/cjs/components/Notification/DeletedFor/DeletedFor.d.ts +2 -21
- package/lib/cjs/components/Notification/DeletedFor/DeletedFor.d.ts.map +1 -1
- package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +17 -18
- package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js.map +1 -1
- package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.d.ts +2 -21
- package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.d.ts.map +1 -1
- package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +16 -19
- package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js.map +1 -1
- package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.d.ts +2 -21
- package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.d.ts.map +1 -1
- package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +9 -10
- package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js.map +1 -1
- package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.d.ts +2 -21
- package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.d.ts.map +1 -1
- package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +16 -17
- package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js.map +1 -1
- package/lib/cjs/components/Notification/Mention/Mention.d.ts +2 -21
- package/lib/cjs/components/Notification/Mention/Mention.d.ts.map +1 -1
- package/lib/cjs/components/Notification/Mention/Mention.js +18 -19
- package/lib/cjs/components/Notification/Mention/Mention.js.map +1 -1
- package/lib/cjs/components/Notification/Notification.d.ts +12 -12
- package/lib/cjs/components/Notification/Notification.d.ts.map +1 -1
- package/lib/cjs/components/Notification/Notification.js +33 -86
- package/lib/cjs/components/Notification/Notification.js.map +1 -1
- package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.d.ts +2 -21
- package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.d.ts.map +1 -1
- package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +11 -20
- package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js.map +1 -1
- package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.d.ts +2 -21
- package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.d.ts.map +1 -1
- package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +16 -17
- package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js.map +1 -1
- package/lib/cjs/components/Notification/UserBlocked/UserBlocked.d.ts +2 -21
- package/lib/cjs/components/Notification/UserBlocked/UserBlocked.d.ts.map +1 -1
- package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +10 -11
- package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js.map +1 -1
- package/lib/cjs/components/Notification/UserConnection/UserConnection.d.ts +2 -21
- package/lib/cjs/components/Notification/UserConnection/UserConnection.d.ts.map +1 -1
- package/lib/cjs/components/Notification/UserConnection/UserConnection.js +12 -13
- package/lib/cjs/components/Notification/UserConnection/UserConnection.js.map +1 -1
- package/lib/cjs/components/Notification/UserFollow/UserFollow.d.ts +2 -21
- package/lib/cjs/components/Notification/UserFollow/UserFollow.d.ts.map +1 -1
- package/lib/cjs/components/Notification/UserFollow/UserFollow.js +10 -11
- package/lib/cjs/components/Notification/UserFollow/UserFollow.js.map +1 -1
- package/lib/cjs/components/Notification/VoteUp/VoteUp.d.ts +2 -21
- package/lib/cjs/components/Notification/VoteUp/VoteUp.d.ts.map +1 -1
- package/lib/cjs/components/Notification/VoteUp/VoteUp.js +16 -17
- package/lib/cjs/components/Notification/VoteUp/VoteUp.js.map +1 -1
- package/lib/cjs/components/SnippetNotifications/Skeleton.d.ts +1 -1
- package/lib/cjs/components/SnippetNotifications/Skeleton.d.ts.map +1 -1
- package/lib/cjs/components/SnippetNotifications/Skeleton.js +5 -12
- package/lib/cjs/components/SnippetNotifications/Skeleton.js.map +1 -1
- package/lib/cjs/components/SnippetNotifications/SnippetNotifications.d.ts +2 -2
- package/lib/cjs/components/SnippetNotifications/SnippetNotifications.d.ts.map +1 -1
- package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +7 -21
- package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js.map +1 -1
- package/lib/cjs/shared/CustomSnackMessage/index.d.ts.map +1 -1
- package/lib/cjs/shared/CustomSnackMessage/index.js +5 -19
- package/lib/cjs/shared/CustomSnackMessage/index.js.map +1 -1
- package/lib/cjs/shared/NotificationItem/NotificationItem.d.ts +1 -6
- package/lib/cjs/shared/NotificationItem/NotificationItem.d.ts.map +1 -1
- package/lib/cjs/shared/NotificationItem/NotificationItem.js +13 -123
- package/lib/cjs/shared/NotificationItem/NotificationItem.js.map +1 -1
- package/lib/esm/components/FeedObject/FeedObject.d.ts.map +1 -1
- package/lib/esm/components/FeedObject/FeedObject.js +0 -1
- package/lib/esm/components/FeedObject/FeedObject.js.map +1 -1
- package/lib/esm/components/FeedUpdates/FeedUpdates.d.ts.map +1 -1
- package/lib/esm/components/FeedUpdates/FeedUpdates.js +0 -1
- package/lib/esm/components/FeedUpdates/FeedUpdates.js.map +1 -1
- package/lib/esm/components/NavigationToolbar/NotificationMenu.d.ts.map +1 -1
- package/lib/esm/components/NavigationToolbar/NotificationMenu.js +6 -3
- package/lib/esm/components/NavigationToolbar/NotificationMenu.js.map +1 -1
- package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.d.ts +2 -21
- package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.d.ts.map +1 -1
- package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +15 -16
- package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js.map +1 -1
- package/lib/esm/components/Notification/Comment/Comment.d.ts +2 -21
- package/lib/esm/components/Notification/Comment/Comment.d.ts.map +1 -1
- package/lib/esm/components/Notification/Comment/Comment.js +24 -25
- package/lib/esm/components/Notification/Comment/Comment.js.map +1 -1
- package/lib/esm/components/Notification/Contribution/Contribution.d.ts +2 -21
- package/lib/esm/components/Notification/Contribution/Contribution.d.ts.map +1 -1
- package/lib/esm/components/Notification/Contribution/Contribution.js +26 -26
- package/lib/esm/components/Notification/Contribution/Contribution.js.map +1 -1
- package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.d.ts +2 -21
- package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.d.ts.map +1 -1
- package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +19 -20
- package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js.map +1 -1
- package/lib/esm/components/Notification/DeletedFor/DeletedFor.d.ts +2 -21
- package/lib/esm/components/Notification/DeletedFor/DeletedFor.d.ts.map +1 -1
- package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +17 -18
- package/lib/esm/components/Notification/DeletedFor/DeletedFor.js.map +1 -1
- package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.d.ts +2 -21
- package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.d.ts.map +1 -1
- package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +17 -20
- package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js.map +1 -1
- package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.d.ts +2 -21
- package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.d.ts.map +1 -1
- package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +9 -10
- package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js.map +1 -1
- package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.d.ts +2 -21
- package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.d.ts.map +1 -1
- package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +16 -17
- package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js.map +1 -1
- package/lib/esm/components/Notification/Mention/Mention.d.ts +2 -21
- package/lib/esm/components/Notification/Mention/Mention.d.ts.map +1 -1
- package/lib/esm/components/Notification/Mention/Mention.js +18 -19
- package/lib/esm/components/Notification/Mention/Mention.js.map +1 -1
- package/lib/esm/components/Notification/Notification.d.ts +12 -12
- package/lib/esm/components/Notification/Notification.d.ts.map +1 -1
- package/lib/esm/components/Notification/Notification.js +35 -88
- package/lib/esm/components/Notification/Notification.js.map +1 -1
- package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.d.ts +2 -21
- package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.d.ts.map +1 -1
- package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +11 -20
- package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js.map +1 -1
- package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.d.ts +2 -21
- package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.d.ts.map +1 -1
- package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +17 -18
- package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js.map +1 -1
- package/lib/esm/components/Notification/UserBlocked/UserBlocked.d.ts +2 -21
- package/lib/esm/components/Notification/UserBlocked/UserBlocked.d.ts.map +1 -1
- package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +11 -12
- package/lib/esm/components/Notification/UserBlocked/UserBlocked.js.map +1 -1
- package/lib/esm/components/Notification/UserConnection/UserConnection.d.ts +2 -21
- package/lib/esm/components/Notification/UserConnection/UserConnection.d.ts.map +1 -1
- package/lib/esm/components/Notification/UserConnection/UserConnection.js +13 -14
- package/lib/esm/components/Notification/UserConnection/UserConnection.js.map +1 -1
- package/lib/esm/components/Notification/UserFollow/UserFollow.d.ts +2 -21
- package/lib/esm/components/Notification/UserFollow/UserFollow.d.ts.map +1 -1
- package/lib/esm/components/Notification/UserFollow/UserFollow.js +11 -12
- package/lib/esm/components/Notification/UserFollow/UserFollow.js.map +1 -1
- package/lib/esm/components/Notification/VoteUp/VoteUp.d.ts +2 -21
- package/lib/esm/components/Notification/VoteUp/VoteUp.d.ts.map +1 -1
- package/lib/esm/components/Notification/VoteUp/VoteUp.js +17 -18
- package/lib/esm/components/Notification/VoteUp/VoteUp.js.map +1 -1
- package/lib/esm/components/SnippetNotifications/Skeleton.d.ts +1 -1
- package/lib/esm/components/SnippetNotifications/Skeleton.d.ts.map +1 -1
- package/lib/esm/components/SnippetNotifications/Skeleton.js +6 -13
- package/lib/esm/components/SnippetNotifications/Skeleton.js.map +1 -1
- package/lib/esm/components/SnippetNotifications/SnippetNotifications.d.ts +2 -2
- package/lib/esm/components/SnippetNotifications/SnippetNotifications.d.ts.map +1 -1
- package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +7 -21
- package/lib/esm/components/SnippetNotifications/SnippetNotifications.js.map +1 -1
- package/lib/esm/shared/CustomSnackMessage/index.d.ts.map +1 -1
- package/lib/esm/shared/CustomSnackMessage/index.js +5 -19
- package/lib/esm/shared/CustomSnackMessage/index.js.map +1 -1
- package/lib/esm/shared/NotificationItem/NotificationItem.d.ts +1 -6
- package/lib/esm/shared/NotificationItem/NotificationItem.d.ts.map +1 -1
- package/lib/esm/shared/NotificationItem/NotificationItem.js +13 -123
- package/lib/esm/shared/NotificationItem/NotificationItem.js.map +1 -1
- package/lib/umd/react-ui.js +3 -3
- package/lib/umd/react-ui.js.LICENSE.txt +2 -2
- package/lib/umd/react-ui.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,30 +1,11 @@
|
|
|
1
1
|
import { SCNotificationVoteUpType } from '@selfcommunity/types';
|
|
2
|
-
import {
|
|
3
|
-
export interface NotificationVoteUpProps {
|
|
4
|
-
/**
|
|
5
|
-
* Id of the feedObject
|
|
6
|
-
* @default `n_<notificationObject.sid>`
|
|
7
|
-
*/
|
|
8
|
-
id?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Overrides or extends the styles applied to the component.
|
|
11
|
-
* @default null
|
|
12
|
-
*/
|
|
13
|
-
className?: string;
|
|
2
|
+
import { NotificationItemProps } from '../../../shared/NotificationItem';
|
|
3
|
+
export interface NotificationVoteUpProps extends Pick<NotificationItemProps, Exclude<keyof NotificationItemProps, 'image' | 'disableTypography' | 'primary' | 'primaryTypographyProps' | 'secondary' | 'secondaryTypographyProps' | 'actions' | 'footer' | 'isNew'>> {
|
|
14
4
|
/**
|
|
15
5
|
* Notification obj
|
|
16
6
|
* @default null
|
|
17
7
|
*/
|
|
18
8
|
notificationObject: SCNotificationVoteUpType;
|
|
19
|
-
/**
|
|
20
|
-
* Notification Object template type
|
|
21
|
-
* @default 'detail'
|
|
22
|
-
*/
|
|
23
|
-
template?: SCNotificationObjectTemplateType;
|
|
24
|
-
/**
|
|
25
|
-
* Any other properties
|
|
26
|
-
*/
|
|
27
|
-
[p: string]: any;
|
|
28
9
|
}
|
|
29
10
|
/**
|
|
30
11
|
* This component render the content of the notification of type vote up
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VoteUp.d.ts","sourceRoot":"","sources":["../../../../../src/components/Notification/VoteUp/VoteUp.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAC,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"VoteUp.d.ts","sourceRoot":"","sources":["../../../../../src/components/Notification/VoteUp/VoteUp.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAC,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AAO9D,OAAyB,EAAC,qBAAqB,EAAC,MAAM,kCAAkC,CAAC;AA0CzF,MAAM,WAAW,uBACf,SAAQ,IAAI,CACV,qBAAqB,EACrB,OAAO,CACL,MAAM,qBAAqB,EAC3B,OAAO,GAAG,mBAAmB,GAAG,SAAS,GAAG,wBAAwB,GAAG,WAAW,GAAG,0BAA0B,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CACjJ,CACF;IACD;;;OAGG;IACH,kBAAkB,EAAE,wBAAwB,CAAC;CAC9C;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,OAAO,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAiFxF"}
|
|
@@ -40,7 +40,7 @@ const classes = {
|
|
|
40
40
|
activeAt: `${PREFIX}-active-at`,
|
|
41
41
|
contributionText: `${PREFIX}-contribution-text`
|
|
42
42
|
};
|
|
43
|
-
const Root = (0, styles_1.styled)(
|
|
43
|
+
const Root = (0, styles_1.styled)(NotificationItem_1.default, {
|
|
44
44
|
name: PREFIX,
|
|
45
45
|
slot: 'Root',
|
|
46
46
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -83,22 +83,21 @@ function VoteUpNotification(inProps) {
|
|
|
83
83
|
/**
|
|
84
84
|
* Renders root object
|
|
85
85
|
*/
|
|
86
|
-
return (react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${PREFIX}-${template}`)
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
react_1.default.createElement(
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
react_1.default.createElement(
|
|
100
|
-
react_1.default.createElement(
|
|
101
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }))))) })));
|
|
86
|
+
return (react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user) },
|
|
87
|
+
react_1.default.createElement(material_1.Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } })), primary: react_1.default.createElement(react_1.default.Fragment, null,
|
|
88
|
+
react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user), className: classes.username }, notificationObject.user.username),
|
|
89
|
+
' ',
|
|
90
|
+
intl.formatMessage(messages.appreciated, {
|
|
91
|
+
username: notificationObject.user.username,
|
|
92
|
+
b: (...chunks) => react_1.default.createElement("strong", null, chunks)
|
|
93
|
+
})), secondary: react_1.default.createElement(react_1.default.Fragment, null,
|
|
94
|
+
react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes[`${contributionType.toUpperCase()}_ROUTE_NAME`], (0, contribution_1.getRouteData)(notificationObject[contributionType])) },
|
|
95
|
+
react_1.default.createElement(material_1.Typography, { variant: "body2", className: classes.contributionText, component: 'div' }, (0, contribution_1.getContributionSnippet)(notificationObject[contributionType]))),
|
|
96
|
+
(template === notification_1.SCNotificationObjectTemplateType.DETAIL || template === notification_1.SCNotificationObjectTemplateType.SNIPPET) && (react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at, className: classes.activeAt }))), footer: template === notification_1.SCNotificationObjectTemplateType.TOAST && (react_1.default.createElement(material_1.Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 },
|
|
97
|
+
react_1.default.createElement(DateTimeAgo_1.default, { date: notificationObject.active_at }),
|
|
98
|
+
react_1.default.createElement(material_1.Typography, { color: "primary", component: 'div' },
|
|
99
|
+
react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url((0, contribution_1.getContributionRouteName)(contribution), (0, contribution_1.getRouteData)(contribution)) },
|
|
100
|
+
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }))))) }, rest)));
|
|
102
101
|
}
|
|
103
102
|
exports.default = VoteUpNotification;
|
|
104
103
|
//# sourceMappingURL=VoteUp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VoteUp.js","sourceRoot":"","sources":["../../../../../src/components/Notification/VoteUp/VoteUp.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,iDAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"VoteUp.js","sourceRoot":"","sources":["../../../../../src/components/Notification/VoteUp/VoteUp.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,iDAA4C;AAC5C,4CAAgF;AAChF,0DAA6F;AAE7F,2CAAqE;AACrE,8EAAsD;AACtD,8DAAiJ;AACjJ,4DAAoC;AACpC,8DAA6E;AAC7E,wCAA0C;AAC1C,wFAAyF;AAEzF,MAAM,QAAQ,GAAG,IAAA,2BAAc,EAAC;IAC9B,WAAW,EAAE;QACX,EAAE,EAAE,oCAAoC;QACxC,cAAc,EAAE,oCAAoC;KACrD;CACF,CAAC,CAAC;AAEH,MAAM,MAAM,GAAG,sBAAsB,CAAC;AAEtC,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,GAAG,MAAM,OAAO;IACtB,MAAM,EAAE,GAAG,MAAM,SAAS;IAC1B,QAAQ,EAAE,GAAG,MAAM,WAAW;IAC9B,UAAU,EAAE,GAAG,MAAM,eAAe;IACpC,QAAQ,EAAE,GAAG,MAAM,YAAY;IAC/B,gBAAgB,EAAE,GAAG,MAAM,oBAAoB;CAChD,CAAC;AAEF,MAAM,IAAI,GAAG,IAAA,eAAM,EAAC,0BAAgB,EAAE;IACpC,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI;CAClD,CAAC,CAAC,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,CAAC;IACf,KAAK,EAAE,MAAM;IACb,CAAC,MAAM,OAAO,CAAC,QAAQ,EAAE,CAAC,EAAE;QAC1B,UAAU,EAAE,GAAG;QACf,SAAS,EAAE;YACT,cAAc,EA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AC,IAAI,CAClH,8BAAC,qBAAW,IAAC,IAAI,EAAE,kBAAkB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,QAAQ,GAAI,CACjF,CACA,EAEL,MAAM,EACJ,QAAQ,KAAK,+CAAgC,CAAC,KAAK,IAAI,CACrD,8BAAC,gBAAK,IAAC,SAAS,EAAC,KAAK,EAAC,cAAc,EAAC,eAAe,EAAC,UAAU,EAAC,QAAQ,EAAC,OAAO,EAAE,CAAC;YAClF,8BAAC,qBAAW,IAAC,IAAI,EAAE,kBAAkB,CAAC,SAAS,GAAI;YACnD,8BAAC,qBAAU,IAAC,KAAK,EAAC,SAAS,EAAC,SAAS,EAAE,KAAK;gBAC1C,8BAAC,iBAAI,IAAC,EAAE,EAAE,gBAAgB,CAAC,GAAG,CAAC,IAAA,uCAAwB,EAAC,YAAY,CAAC,EAAE,IAAA,2BAAY,EAAC,YAAY,CAAC,CAAC;oBAChG,8BAAC,6BAAgB,IAAC,EAAE,EAAC,4CAA4C,EAAC,cAAc,EAAE,4CAA4C,GAAI,CAC7H,CACI,CACP,CACT,IAEC,IAAI,EACR,CACH,CAAC;AACJ,CAAC;AAjFD,qCAiFC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/SnippetNotifications/Skeleton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/SnippetNotifications/Skeleton.tsx"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,OAAO,UAAU,2BAA2B,CAAC,KAAK,KAAA,GAAG,GAAG,CAAC,OAAO,CA4BtE"}
|
|
@@ -9,27 +9,20 @@ const material_1 = require("@mui/material");
|
|
|
9
9
|
const Skeleton_1 = __importDefault(require("@mui/material/Skeleton"));
|
|
10
10
|
const NotificationItem_1 = __importDefault(require("../../shared/NotificationItem"));
|
|
11
11
|
const notification_1 = require("../../types/notification");
|
|
12
|
-
const PREFIX = '
|
|
12
|
+
const PREFIX = 'SCSnippetNotificationsSkeleton';
|
|
13
13
|
const classes = {
|
|
14
14
|
root: `${PREFIX}-root`,
|
|
15
|
+
list: `${PREFIX}-list`,
|
|
15
16
|
item: `${PREFIX}-item`
|
|
16
17
|
};
|
|
17
|
-
const Root = (0, styles_1.styled)(material_1.List)(({ theme }) => ({
|
|
18
|
-
marginBottom: theme.spacing(2),
|
|
19
|
-
[`& .${classes.item}`]: {
|
|
20
|
-
marginBottom: theme.spacing(),
|
|
21
|
-
'&::before': {
|
|
22
|
-
height: '11% !important'
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}));
|
|
18
|
+
const Root = (0, styles_1.styled)(material_1.List, { name: PREFIX, slot: 'Root', overridesResolver: (props, styles) => styles.root })(({ theme }) => ({}));
|
|
26
19
|
/**
|
|
27
20
|
* > API documentation for the Community-JS Snippet Notification Skeleton component. Learn about the available props and the CSS API.
|
|
28
21
|
|
|
29
22
|
#### Import
|
|
30
23
|
|
|
31
24
|
```jsx
|
|
32
|
-
import {
|
|
25
|
+
import {SnippetNotificationsSkeleton} from '@selfcommunity/react-ui';
|
|
33
26
|
```
|
|
34
27
|
|
|
35
28
|
#### Component Name
|
|
@@ -47,7 +40,7 @@ const Root = (0, styles_1.styled)(material_1.List)(({ theme }) => ({
|
|
|
47
40
|
function SnippetNotificationSkeleton(props) {
|
|
48
41
|
const theme = (0, material_1.useTheme)();
|
|
49
42
|
const notificationSkeleton = (react_1.default.createElement(NotificationItem_1.default, { className: classes.item, template: notification_1.SCNotificationObjectTemplateType.SNIPPET, image: react_1.default.createElement(Skeleton_1.default, { animation: "wave", variant: "circular", width: theme.selfcommunity.user.avatar.sizeSmall, height: theme.selfcommunity.user.avatar.sizeSmall }), primary: react_1.default.createElement(Skeleton_1.default, { animation: "wave", height: 10, width: 120, style: { marginBottom: 10 } }), secondary: react_1.default.createElement(Skeleton_1.default, { animation: "wave", height: 10, width: 70, style: { marginBottom: 10 } }) }));
|
|
50
|
-
return (react_1.default.createElement(Root, Object.assign({ className: classes.root }, props), [...Array(7)].map((x, i) => (react_1.default.createElement(
|
|
43
|
+
return (react_1.default.createElement(Root, Object.assign({ className: classes.root }, props), [...Array(7)].map((x, i) => (react_1.default.createElement(material_1.ListItem, { className: classes.item, key: i }, notificationSkeleton)))));
|
|
51
44
|
}
|
|
52
45
|
exports.default = SnippetNotificationSkeleton;
|
|
53
46
|
//# sourceMappingURL=Skeleton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../../src/components/SnippetNotifications/Skeleton.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,iDAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../../src/components/SnippetNotifications/Skeleton.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,iDAA4C;AAC5C,4CAAuD;AACvD,sEAA8C;AAC9C,qFAA6D;AAC7D,2DAA0E;AAG1E,MAAM,MAAM,GAAG,gCAAgC,CAAC;AAEhD,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,GAAG,MAAM,OAAO;IACtB,IAAI,EAAE,GAAG,MAAM,OAAO;IACtB,IAAI,EAAE,GAAG,MAAM,OAAO;CACvB,CAAC;AAEF,MAAM,IAAI,GAAG,IAAA,eAAM,EAAC,eAAI,EAAE,EAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,EAAC,CAAC,CAAC,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAE9H;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAwB,2BAA2B,CAAC,KAAK;IACvD,MAAM,KAAK,GAAG,IAAA,mBAAQ,GAAe,CAAC;IAEtC,MAAM,oBAAoB,GAAG,CAC3B,8BAAC,0BAAgB,IACf,SAAS,EAAE,OAAO,CAAC,IAAI,EACvB,QAAQ,EAAE,+CAAgC,CAAC,OAAO,EAClD,KAAK,EACH,8BAAC,kBAAQ,IACP,SAAS,EAAC,MAAM,EAChB,OAAO,EAAC,UAAU,EAClB,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,EAChD,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,GACjD,EAEJ,OAAO,EAAE,8BAAC,kBAAQ,IAAC,SAAS,EAAC,MAAM,EAAC,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,EAAC,YAAY,EAAE,EAAE,EAAC,GAAI,EACzF,SAAS,EAAE,8BAAC,kBAAQ,IAAC,SAAS,EAAC,MAAM,EAAC,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,EAAC,YAAY,EAAE,EAAE,EAAC,GAAI,GAC1F,CACH,CAAC;IACF,OAAO,CACL,8BAAC,IAAI,kBAAC,SAAS,EAAE,OAAO,CAAC,IAAI,IAAM,KAAK,GACrC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAC3B,8BAAC,mBAAQ,IAAC,SAAS,EAAE,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,IACtC,oBAAoB,CACZ,CACZ,CAAC,CACG,CACR,CAAC;AACJ,CAAC;AA5BD,8CA4BC"}
|
|
@@ -68,8 +68,8 @@ export interface SnippetNotificationsProps extends CardProps {
|
|
|
68
68
|
|root|.SCSnippetNotification-root|Styles applied to the root element.|
|
|
69
69
|
|notificationsWrap|.SCSnippetNotification-notification-wrap|Styles applied to the notifications wrap.|
|
|
70
70
|
|emptyBoxNotifications|.SCSnippetNotification-empty-box-notifications|Styles applied to the box indicating that there are no notifications.|
|
|
71
|
-
|
|
|
72
|
-
|
|
|
71
|
+
|list|.SCSnippetNotification-list|Styles applied to the list of notifications.|
|
|
72
|
+
|item|.SCSnippetNotification-item|Styles applied to the single notification.|
|
|
73
73
|
|broadcastMessagesBanner|.SCSnippetNotification-broadcast-messages-banner|Styles applied to the broadcast message banner.|
|
|
74
74
|
|
|
75
75
|
* @param inProps
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SnippetNotifications.d.ts","sourceRoot":"","sources":["../../../../src/components/SnippetNotifications/SnippetNotifications.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAc,SAAS,EAAiC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"SnippetNotifications.d.ts","sourceRoot":"","sources":["../../../../src/components/SnippetNotifications/SnippetNotifications.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAc,SAAS,EAAiC,MAAM,eAAe,CAAC;AAiDrF,MAAM,WAAW,yBAA0B,SAAQ,SAAS;IAC1D;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,wBAAwB,CAAC,EAAE,CAAC,IAAI,KAAA,KAAK,GAAG,CAAC,OAAO,CAAC;IAEjD;;;OAGG;IACH,kBAAkB,CAAC,EAAE,CAAC,IAAI,KAAA,EAAE,IAAI,KAAA,EAAE,OAAO,KAAA,KAAK,GAAG,CAAC,OAAO,CAAC;IAE1D;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE3C;;;OAGG;IACH,mBAAmB,CAAC,EAAE,CAAC,KAAK,KAAA,EAAE,YAAY,KAAA,KAAK,IAAI,CAAC;IAEpD;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,OAAO,EAAE,yBAAyB,GAAG,GAAG,CAAC,OAAO,CA2P5F"}
|
|
@@ -73,9 +73,9 @@ const classes = {
|
|
|
73
73
|
root: `${PREFIX}-root`,
|
|
74
74
|
notificationsWrap: `${PREFIX}-notifications-wrap`,
|
|
75
75
|
emptyBoxNotifications: `${PREFIX}-empty-box-notifications`,
|
|
76
|
-
|
|
76
|
+
list: `${PREFIX}-list`,
|
|
77
77
|
broadcastMessagesBanner: `${PREFIX}-broadcast-messages-banner`,
|
|
78
|
-
|
|
78
|
+
item: `${PREFIX}-item`
|
|
79
79
|
};
|
|
80
80
|
const Root = (0, styles_1.styled)(material_1.Box, {
|
|
81
81
|
name: PREFIX,
|
|
@@ -85,21 +85,7 @@ const Root = (0, styles_1.styled)(material_1.Box, {
|
|
|
85
85
|
width: '100%',
|
|
86
86
|
[`& .${classes.notificationsWrap}`]: {
|
|
87
87
|
height: 330,
|
|
88
|
-
maxWidth: 320,
|
|
89
88
|
overflowY: 'hidden'
|
|
90
|
-
},
|
|
91
|
-
[`& .${classes.notificationItem}`]: {
|
|
92
|
-
padding: 0,
|
|
93
|
-
margin: `${theme.spacing()} 0px`,
|
|
94
|
-
whiteSpace: 'normal',
|
|
95
|
-
'&:hover': {
|
|
96
|
-
backgroundColor: 'rgba(0, 0, 0, 0.05)',
|
|
97
|
-
cursor: 'default'
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
'& a': {
|
|
101
|
-
textDecoration: 'none',
|
|
102
|
-
color: theme.palette.text.primary
|
|
103
89
|
}
|
|
104
90
|
}));
|
|
105
91
|
const PREFERENCES = [react_core_1.SCPreferences.LOGO_NAVBAR_LOGO_MOBILE, react_core_1.SCPreferences.TEXT_APPLICATION_NAME];
|
|
@@ -125,8 +111,8 @@ const PREFERENCES = [react_core_1.SCPreferences.LOGO_NAVBAR_LOGO_MOBILE, react_c
|
|
|
125
111
|
|root|.SCSnippetNotification-root|Styles applied to the root element.|
|
|
126
112
|
|notificationsWrap|.SCSnippetNotification-notification-wrap|Styles applied to the notifications wrap.|
|
|
127
113
|
|emptyBoxNotifications|.SCSnippetNotification-empty-box-notifications|Styles applied to the box indicating that there are no notifications.|
|
|
128
|
-
|
|
|
129
|
-
|
|
|
114
|
+
|list|.SCSnippetNotification-list|Styles applied to the list of notifications.|
|
|
115
|
+
|item|.SCSnippetNotification-item|Styles applied to the single notification.|
|
|
130
116
|
|broadcastMessagesBanner|.SCSnippetNotification-broadcast-messages-banner|Styles applied to the broadcast message banner.|
|
|
131
117
|
|
|
132
118
|
* @param inProps
|
|
@@ -310,15 +296,15 @@ function SnippetNotifications(inProps) {
|
|
|
310
296
|
*/
|
|
311
297
|
return (react_1.default.createElement(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className) }, rest),
|
|
312
298
|
react_1.default.createElement(material_1.Box, { className: classes.notificationsWrap }, loading ? (react_1.default.createElement(Skeleton_1.default, { elevation: 0 })) : (react_1.default.createElement(ScrollContainer_1.default, Object.assign({}, ScrollContainerProps),
|
|
313
|
-
react_1.default.createElement(material_1.MenuList, { className: classes.
|
|
314
|
-
scUserContext.user.unseen_notification_banners_counter ? (react_1.default.createElement(material_1.MenuItem, { className: (0, classnames_1.default)(classes.
|
|
299
|
+
react_1.default.createElement(material_1.MenuList, { className: classes.list },
|
|
300
|
+
scUserContext.user.unseen_notification_banners_counter ? (react_1.default.createElement(material_1.MenuItem, { className: (0, classnames_1.default)(classes.item, classes.broadcastMessagesBanner), key: "banner", component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_NOTIFICATIONS_ROUTE_NAME, {}) },
|
|
315
301
|
react_1.default.createElement(NotificationItem_1.default, { template: types_1.SCNotificationObjectTemplateType.SNIPPET, isNew: true, disableTypography: true, image: react_1.default.createElement(material_1.Avatar, { alt: preferences[react_core_1.SCPreferences.TEXT_APPLICATION_NAME], src: preferences[react_core_1.SCPreferences.LOGO_NAVBAR_LOGO_MOBILE] }), primary: react_1.default.createElement(material_1.Typography, { component: 'div' }, intl.formatMessage({ id: 'ui.snippetNotifications.broadcastMessages', defaultMessage: 'ui.snippetNotifications.broadcastMessages' }, {
|
|
316
302
|
count: scUserContext.user.unseen_notification_banners_counter,
|
|
317
303
|
b: (...chunks) => react_1.default.createElement("strong", null, chunks),
|
|
318
304
|
link: (...chunks) => react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes.USER_NOTIFICATIONS_ROUTE_NAME, {}) }, chunks)
|
|
319
305
|
})) }))) : null,
|
|
320
306
|
notifications.length === 0 ? (react_1.default.createElement(material_1.MenuItem, { className: classes.emptyBoxNotifications },
|
|
321
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.snippetNotifications.noNotifications", defaultMessage: "ui.snippetNotifications.noNotifications" }))) : (notifications.slice(0, showMax).map((notificationObject, i) => notificationObject.aggregated.map((n, k) => (react_1.default.createElement(material_1.MenuItem, { className: classes.
|
|
307
|
+
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.snippetNotifications.noNotifications", defaultMessage: "ui.snippetNotifications.noNotifications" }))) : (notifications.slice(0, showMax).map((notificationObject, i) => notificationObject.aggregated.map((n, k) => (react_1.default.createElement(material_1.MenuItem, { className: classes.item, key: k, onClick: (e) => handleSingleNotificationClick(e, n) }, renderAggregatedItem(n, i))))))))))));
|
|
322
308
|
}
|
|
323
309
|
exports.default = SnippetNotifications;
|
|
324
310
|
//# sourceMappingURL=SnippetNotifications.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SnippetNotifications.js","sourceRoot":"","sources":["../../../../src/components/SnippetNotifications/SnippetNotifications.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAkE;AAClE,iDAA4C;AAC5C,sEAA0D;AAC1D,4EAAgE;AAChE,gFAAoE;AACpE,4EAAgE;AAChE,oFAAwE;AACxE,oFAAwE;AACxE,8EAAkE;AAClE,sEAA0D;AAC1D,gFAAoE;AACpE,sFAA0E;AAC1E,wFAA4E;AAC5E,oEAAwD;AACxD,mDAAmD;AACnD,0DAA+B;AAC/B,4FAAgF;AAChF,4CAAqF;AACrF,0FAA8E;AAC9E,4DAAoC;AACpC,0DAAkC;AAClC,uCAA6D;AAC7D,mFAA2D;AAC3D,2CAAqD;AACrD,gDAA2I;AAC3I,8DAA0E;AAC1E,gDAA4C;AAC5C,0DAWmC;AACnC,wCAA0C;AAC1C,gFAAoE;AACpE,qFAA6D;AAE7D,MAAM,MAAM,GAAG,wBAAwB,CAAC;AAExC,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,GAAG,MAAM,OAAO;IACtB,iBAAiB,EAAE,GAAG,MAAM,qBAAqB;IACjD,qBAAqB,EAAE,GAAG,MAAM,0BAA0B;IAC1D,
|
|
1
|
+
{"version":3,"file":"SnippetNotifications.js","sourceRoot":"","sources":["../../../../src/components/SnippetNotifications/SnippetNotifications.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAkE;AAClE,iDAA4C;AAC5C,sEAA0D;AAC1D,4EAAgE;AAChE,gFAAoE;AACpE,4EAAgE;AAChE,oFAAwE;AACxE,oFAAwE;AACxE,8EAAkE;AAClE,sEAA0D;AAC1D,gFAAoE;AACpE,sFAA0E;AAC1E,wFAA4E;AAC5E,oEAAwD;AACxD,mDAAmD;AACnD,0DAA+B;AAC/B,4FAAgF;AAChF,4CAAqF;AACrF,0FAA8E;AAC9E,4DAAoC;AACpC,0DAAkC;AAClC,uCAA6D;AAC7D,mFAA2D;AAC3D,2CAAqD;AACrD,gDA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AM,CAAQ;yBACjH,CACF,CACU,GAEf,CACO,CACZ,CAAC,CAAC,CAAC,IAAI;gBACP,aAAa,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CAC5B,8BAAC,mBAAQ,IAAC,SAAS,EAAE,OAAO,CAAC,qBAAqB;oBAChD,8BAAC,6BAAgB,IACf,EAAE,EAAC,yCAAyC,EAC5C,cAAc,EAAC,yCAAyC,GAAoB,CACrE,CACZ,CAAC,CAAC,CAAC,CACF,aAAa,CAAC,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,kBAAgD,EAAE,CAAC,EAAE,EAAE,CAC1F,kBAAkB,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAqB,EAAE,CAAC,EAAE,EAAE,CAAC,CAC9D,8BAAC,mBAAQ,IAAC,SAAS,EAAE,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC,IAC3F,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC,CAClB,CACZ,CAAC,CACH,CACF,CACQ,CACK,CACnB,CACG,CACD,CACR,CAAC;AACJ,CAAC;AA3PD,uCA2PC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/CustomSnackMessage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/CustomSnackMessage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAiCrD;;;;;;;GAOG;AACH,QAAA,MAAM,kBAAkB;QAAmC,MAAM,GAAG,MAAM;aAAW,MAAM,GAAG,MAAM,SAAS;wCAmB3G,CAAC;AAEH,eAAe,kBAAkB,CAAC"}
|
|
@@ -36,8 +36,8 @@ const PREFIX = 'SCCustomSnackMessage';
|
|
|
36
36
|
const classes = {
|
|
37
37
|
root: `${PREFIX}-root`,
|
|
38
38
|
card: `${PREFIX}-card`,
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
content: `${PREFIX}-content`,
|
|
40
|
+
close: `${PREFIX}-close`
|
|
41
41
|
};
|
|
42
42
|
const Root = (0, styles_1.styled)(notistack_1.SnackbarContent, {
|
|
43
43
|
name: PREFIX,
|
|
@@ -48,25 +48,11 @@ const Root = (0, styles_1.styled)(notistack_1.SnackbarContent, {
|
|
|
48
48
|
[theme.breakpoints.up('sm')]: {
|
|
49
49
|
minWidth: '345px !important'
|
|
50
50
|
},
|
|
51
|
-
[`& .${classes.
|
|
52
|
-
backgroundColor: '#fff',
|
|
53
|
-
width: '100%',
|
|
54
|
-
padding: theme.spacing(),
|
|
55
|
-
borderRadius: 10
|
|
56
|
-
},
|
|
57
|
-
[`& .${classes.cardContent}`]: {
|
|
58
|
-
padding: `5px 5px`,
|
|
59
|
-
paddingBottom: `5px !important`
|
|
60
|
-
},
|
|
61
|
-
[`& .${classes.closeAction}`]: {
|
|
51
|
+
[`& .${classes.close}`]: {
|
|
62
52
|
position: 'absolute',
|
|
63
53
|
right: 0,
|
|
64
54
|
top: 0,
|
|
65
55
|
zIndex: 1
|
|
66
|
-
},
|
|
67
|
-
'& a': {
|
|
68
|
-
textDecoration: 'none',
|
|
69
|
-
color: theme.palette.text.primary
|
|
70
56
|
}
|
|
71
57
|
}));
|
|
72
58
|
/**
|
|
@@ -84,8 +70,8 @@ const CustomSnackMessage = (0, react_1.forwardRef)((props, ref) => {
|
|
|
84
70
|
}, [props.id, closeSnackbar]);
|
|
85
71
|
return (react_1.default.createElement(Root, { ref: ref, className: classes.root, key: props.id },
|
|
86
72
|
react_1.default.createElement(Widget_1.default, { className: classes.card },
|
|
87
|
-
react_1.default.createElement(material_1.CardContent, { className: classes.
|
|
88
|
-
react_1.default.createElement(material_1.IconButton, { className: classes.
|
|
73
|
+
react_1.default.createElement(material_1.CardContent, { className: classes.content },
|
|
74
|
+
react_1.default.createElement(material_1.IconButton, { className: classes.close, onClick: handleDismiss },
|
|
89
75
|
react_1.default.createElement(Icon_1.default, null, "close")),
|
|
90
76
|
props.message))));
|
|
91
77
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/shared/CustomSnackMessage/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAqD;AACrD,yCAAuD;AACvD,iDAA4C;AAC5C,4CAAsD;AACtD,8DAAsC;AACtC,qEAA6C;AAE7C,MAAM,MAAM,GAAG,sBAAsB,CAAC;AAEtC,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,GAAG,MAAM,OAAO;IACtB,IAAI,EAAE,GAAG,MAAM,OAAO;IACtB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/shared/CustomSnackMessage/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAqD;AACrD,yCAAuD;AACvD,iDAA4C;AAC5C,4CAAsD;AACtD,8DAAsC;AACtC,qEAA6C;AAE7C,MAAM,MAAM,GAAG,sBAAsB,CAAC;AAEtC,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,GAAG,MAAM,OAAO;IACtB,IAAI,EAAE,GAAG,MAAM,OAAO;IACtB,OAAO,EAAE,GAAG,MAAM,UAAU;IAC5B,KAAK,EAAE,GAAG,MAAM,QAAQ;CACzB,CAAC;AAEF,MAAM,IAAI,GAAG,IAAA,eAAM,EAAC,2BAAe,EAAE;IACnC,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI;CAClD,CAAC,CAAC,CAAC,EAAC,KAAK,EAAC,E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*/
|
|
10
10
|
id?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Overrides or extends the styles applied to the component.
|
|
13
|
-
* @default null
|
|
14
|
-
*/
|
|
15
|
-
className?: string;
|
|
16
11
|
/**
|
|
17
12
|
* Notification Object template type
|
|
18
13
|
* @default 'detail'
|
|
@@ -83,7 +78,7 @@ export interface NotificationItemProps extends Pick<WidgetProps, Exclude<keyof W
|
|
|
83
78
|
|Rule Name|Global class|Description|
|
|
84
79
|
|---|---|---|
|
|
85
80
|
|root|.SCBaseItem-root|Styles applied to the root element.|
|
|
86
|
-
|
|
|
81
|
+
|new|.SCBaseItem-new-snippet|Styles applied to the root element when notification is marked as new.|
|
|
87
82
|
|content|.SCBaseItem-content|Styles applied to the content element.|
|
|
88
83
|
|header|.SCBaseItem-header|Styles applied to the header element.|
|
|
89
84
|
|image|.SCBaseItem-image|Styles applied to image section.|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationItem.d.ts","sourceRoot":"","sources":["../../../../src/shared/NotificationItem/NotificationItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAkB,eAAe,EAAC,MAAM,eAAe,CAAC;AAE/D,OAAe,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAI5D,OAAO,EAAC,gCAAgC,EAAC,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"NotificationItem.d.ts","sourceRoot":"","sources":["../../../../src/shared/NotificationItem/NotificationItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAkB,eAAe,EAAC,MAAM,eAAe,CAAC;AAE/D,OAAe,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAI5D,OAAO,EAAC,gCAAgC,EAAC,MAAM,0BAA0B,CAAC;AA4B1E,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,MAAM,WAAW,EAAE,IAAI,CAAC,CAAC;IAChG;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,QAAQ,CAAC,EAAE,gCAAgC,CAAC;IAC5C;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,sBAAsB,CAAC,EAAE,eAAe,CAAC;IACzC;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B;;;OAGG;IACH,wBAAwB,CAAC,EAAE,eAAe,CAAC;IAC3C;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,OAAO,EAAE,qBAAqB,GAAG,GAAG,CAAC,OAAO,CAqDpF"}
|
|
@@ -21,13 +21,10 @@ const classnames_1 = __importDefault(require("classnames"));
|
|
|
21
21
|
const Widget_1 = __importDefault(require("../../components/Widget"));
|
|
22
22
|
const system_1 = require("@mui/system");
|
|
23
23
|
const NewChip_1 = __importDefault(require("../NewChip/NewChip"));
|
|
24
|
-
const colors_1 = require("@mui/material/colors");
|
|
25
24
|
const notification_1 = require("../../types/notification");
|
|
26
25
|
const PREFIX = 'SCNotificationItem';
|
|
27
26
|
const classes = {
|
|
28
27
|
root: `${PREFIX}-root`,
|
|
29
|
-
content: `${PREFIX}-content`,
|
|
30
|
-
dense: `${PREFIX}-dense`,
|
|
31
28
|
header: `${PREFIX}-header`,
|
|
32
29
|
image: `${PREFIX}-image`,
|
|
33
30
|
snippetImage: `${PREFIX}-snippet-image`,
|
|
@@ -37,7 +34,7 @@ const classes = {
|
|
|
37
34
|
actions: `${PREFIX}-actions`,
|
|
38
35
|
footer: `${PREFIX}-footer`,
|
|
39
36
|
snippet: `${PREFIX}-snippet`,
|
|
40
|
-
|
|
37
|
+
new: `${PREFIX}-new`,
|
|
41
38
|
newChip: `${PREFIX}-new-chip`
|
|
42
39
|
};
|
|
43
40
|
const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
@@ -45,108 +42,7 @@ const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
|
45
42
|
slot: 'Root',
|
|
46
43
|
overridesResolver: (props, styles) => styles.root
|
|
47
44
|
})(({ theme }) => ({
|
|
48
|
-
|
|
49
|
-
backgroundColor: 'transparent',
|
|
50
|
-
width: '100%',
|
|
51
|
-
display: 'flex',
|
|
52
|
-
flexDirection: 'column',
|
|
53
|
-
alignItems: 'center',
|
|
54
|
-
marginTop: theme.spacing(),
|
|
55
|
-
boxSizing: 'border-box',
|
|
56
|
-
'&.MuiPaper-elevation': {
|
|
57
|
-
padding: `${theme.spacing()} ${theme.spacing(2)}`
|
|
58
|
-
},
|
|
59
|
-
'&.MuiPaper-elevation0': {
|
|
60
|
-
borderRadius: 0,
|
|
61
|
-
[`& .${classes.actions}`]: {
|
|
62
|
-
right: 0
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
[`&.${classes.dense}`]: {
|
|
67
|
-
'& .SCNotificationItem-header': {
|
|
68
|
-
alignItems: 'center'
|
|
69
|
-
},
|
|
70
|
-
marginTop: 0,
|
|
71
|
-
padding: `0px ${theme.spacing()} !important`
|
|
72
|
-
},
|
|
73
|
-
[`&.${classes.snippet}`]: {
|
|
74
|
-
'&:before': {
|
|
75
|
-
borderRadius: '5px',
|
|
76
|
-
width: '4px',
|
|
77
|
-
left: 1,
|
|
78
|
-
height: '100%',
|
|
79
|
-
display: 'block',
|
|
80
|
-
zIndex: '20',
|
|
81
|
-
position: 'absolute',
|
|
82
|
-
content: '" "',
|
|
83
|
-
backgroundColor: `${colors_1.grey[200]}`
|
|
84
|
-
},
|
|
85
|
-
'& .SCNotificationItem-header': {
|
|
86
|
-
alignItems: 'flex-start'
|
|
87
|
-
},
|
|
88
|
-
'& .SCNotificationItem-content': {
|
|
89
|
-
padding: `5px ${theme.spacing()}`
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
[`&.${classes.newSnippet}`]: {
|
|
93
|
-
'&:before': {
|
|
94
|
-
backgroundColor: theme.palette.primary.main
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
[`& .${classes.content}`]: {
|
|
98
|
-
width: '100%',
|
|
99
|
-
display: 'flex',
|
|
100
|
-
flexDirection: 'row',
|
|
101
|
-
justifyContent: 'center',
|
|
102
|
-
alignItems: 'center'
|
|
103
|
-
},
|
|
104
|
-
[`& .${classes.header}`]: {
|
|
105
|
-
display: 'flex',
|
|
106
|
-
flexDirection: 'row',
|
|
107
|
-
justifyContent: 'flex-start',
|
|
108
|
-
alignItems: 'flex-start',
|
|
109
|
-
width: '100%',
|
|
110
|
-
flex: 1
|
|
111
|
-
},
|
|
112
|
-
[`& .${classes.image}`]: {
|
|
113
|
-
flexShrink: 0,
|
|
114
|
-
marginRight: theme.spacing(1)
|
|
115
|
-
},
|
|
116
|
-
[`& .${classes.snippetImage}`]: {
|
|
117
|
-
paddingLeft: `${theme.spacing()}`,
|
|
118
|
-
'& .MuiAvatar-root': {
|
|
119
|
-
width: 25,
|
|
120
|
-
height: 25
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
[`& .${classes.title}`]: {
|
|
124
|
-
flex: '1 1 auto',
|
|
125
|
-
textAlign: 'left',
|
|
126
|
-
width: '100%'
|
|
127
|
-
},
|
|
128
|
-
[`& .${classes.primary}`]: {
|
|
129
|
-
color: theme.palette.text.primary,
|
|
130
|
-
textOverflow: 'ellipsis',
|
|
131
|
-
display: 'inline',
|
|
132
|
-
overflow: 'hidden'
|
|
133
|
-
},
|
|
134
|
-
[`& .${classes.secondary}`]: {
|
|
135
|
-
textOverflow: 'ellipsis',
|
|
136
|
-
display: 'inline',
|
|
137
|
-
overflow: 'hidden',
|
|
138
|
-
color: theme.palette.text.secondary
|
|
139
|
-
},
|
|
140
|
-
[`& .${classes.actions}`]: {
|
|
141
|
-
'> div': {
|
|
142
|
-
justifyContent: 'flex-end'
|
|
143
|
-
},
|
|
144
|
-
flex: 1
|
|
145
|
-
},
|
|
146
|
-
[`& .${classes.footer}`]: {
|
|
147
|
-
padding: `0px ${theme.spacing()}`,
|
|
148
|
-
width: '100%'
|
|
149
|
-
}
|
|
45
|
+
whiteSpace: 'normal'
|
|
150
46
|
}));
|
|
151
47
|
/**
|
|
152
48
|
* > API documentation for the Community-JS BaseItem component. Learn about the available props and the CSS API.
|
|
@@ -167,7 +63,7 @@ const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
|
167
63
|
|Rule Name|Global class|Description|
|
|
168
64
|
|---|---|---|
|
|
169
65
|
|root|.SCBaseItem-root|Styles applied to the root element.|
|
|
170
|
-
|
|
|
66
|
+
|new|.SCBaseItem-new-snippet|Styles applied to the root element when notification is marked as new.|
|
|
171
67
|
|content|.SCBaseItem-content|Styles applied to the content element.|
|
|
172
68
|
|header|.SCBaseItem-header|Styles applied to the header element.|
|
|
173
69
|
|image|.SCBaseItem-image|Styles applied to image section.|
|
|
@@ -188,24 +84,18 @@ function NotificationItem(inProps) {
|
|
|
188
84
|
name: PREFIX
|
|
189
85
|
});
|
|
190
86
|
const { id = null, className = null, image = null, disableTypography = false, primary = null, primaryTypographyProps = { component: 'span', variant: 'body1' }, secondary = null, secondaryTypographyProps = { component: 'p', variant: 'body2' }, actions = null, footer = null, template = notification_1.SCNotificationObjectTemplateType.DETAIL, isNew = false, elevation = 0 } = props, rest = __rest(props, ["id", "className", "image", "disableTypography", "primary", "primaryTypographyProps", "secondary", "secondaryTypographyProps", "actions", "footer", "template", "isNew", "elevation"]);
|
|
191
|
-
const isSnippetTemplate = template === notification_1.SCNotificationObjectTemplateType.SNIPPET;
|
|
192
|
-
const isDetailTemplate = template === notification_1.SCNotificationObjectTemplateType.DETAIL;
|
|
193
|
-
const isToastTemplate = template === notification_1.SCNotificationObjectTemplateType.TOAST;
|
|
194
87
|
// RENDER
|
|
195
|
-
return (react_1.default.createElement(Root, Object.assign({ id: id }, rest, { className: (0, classnames_1.default)(classes.root, className, {
|
|
196
|
-
[classes.
|
|
197
|
-
[classes.snippet]: isSnippetTemplate,
|
|
198
|
-
[classes.newSnippet]: isSnippetTemplate && isNew
|
|
88
|
+
return (react_1.default.createElement(Root, Object.assign({ id: id }, rest, { className: (0, classnames_1.default)(classes.root, className, `${PREFIX}-${template}`, {
|
|
89
|
+
[classes.new]: isNew
|
|
199
90
|
}), elevation: elevation }),
|
|
200
|
-
react_1.default.createElement(material_1.Box, { className: classes.
|
|
201
|
-
react_1.default.createElement(material_1.Box, { className: classes.
|
|
202
|
-
|
|
203
|
-
react_1.default.createElement(material_1.Box, { className: classes.
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
actions && react_1.default.createElement(material_1.Box, { className: classes.actions }, actions)),
|
|
91
|
+
react_1.default.createElement(material_1.Box, { className: classes.header },
|
|
92
|
+
image && react_1.default.createElement(material_1.Box, { className: (0, classnames_1.default)(classes.image) }, image),
|
|
93
|
+
react_1.default.createElement(material_1.Box, { className: classes.title },
|
|
94
|
+
primary && (react_1.default.createElement(material_1.Box, { className: classes.primary },
|
|
95
|
+
template === notification_1.SCNotificationObjectTemplateType.DETAIL && isNew && react_1.default.createElement(NewChip_1.default, { className: classes.newChip }),
|
|
96
|
+
disableTypography ? primary : react_1.default.createElement(material_1.Typography, Object.assign({}, primaryTypographyProps), primary))),
|
|
97
|
+
secondary && (react_1.default.createElement(material_1.Box, { className: classes.secondary }, disableTypography ? secondary : react_1.default.createElement(material_1.Typography, Object.assign({}, secondaryTypographyProps), secondary))))),
|
|
98
|
+
actions && react_1.default.createElement(material_1.Box, { className: classes.actions }, actions),
|
|
209
99
|
footer && react_1.default.createElement(material_1.Box, { className: classes.footer }, footer)));
|
|
210
100
|
}
|
|
211
101
|
exports.default = NotificationItem;
|