@voplus/morpho-workspace 6.0.131 → 6.0.132

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,8 +20,7 @@ export interface INotification extends ILoadable {
20
20
  export interface INewNotification extends ILoadable {
21
21
  id: string;
22
22
  type: string;
23
- /** Draft = true 時可以Send, 也可以Delete, false 時不可以
24
- */
23
+ /** Draft = true 時可以Send, 也可以Delete, false 時不可以 */
25
24
  draft: boolean;
26
25
  dismissDate?: Date;
27
26
  createDate: string;
@@ -30,6 +29,10 @@ export interface INewNotification extends ILoadable {
30
29
  channels?: ("Email" | "Instant Message")[];
31
30
  subject?: string;
32
31
  body?: string;
32
+ createdBy?: {
33
+ id: string;
34
+ name: string;
35
+ };
33
36
  target: {
34
37
  id: string;
35
38
  name: string;
@@ -19,7 +19,7 @@ const NotificationItem = (props) => {
19
19
  React.createElement(ColumnItemCol, { span: 8 },
20
20
  React.createElement("div", { className: "notification-item-name" }, notification.subject)),
21
21
  React.createElement(ColumnItemCol, { span: 4 },
22
- React.createElement(AvatarList, { editable: false, list: [], maxCount: 4 })),
22
+ React.createElement(AvatarList, { className: "notification-item-avatar", editable: false, list: notification.createdBy ? [notification.createdBy] : [] })),
23
23
  React.createElement(ColumnItemCol, { span: 4 },
24
24
  React.createElement(UTCShortDate, { value: notification.createDate, format: "DD MMM YYYY" })),
25
25
  React.createElement(ColumnItemCol, { span: 4 }, notification.draft ? (React.createElement(NotificationStatusLabel, { status: notification.draft ? "Draft" : "" })) : null),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/AllNewNotificationItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,8CAA8C,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,aAAa,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CAAC,CAAC,EAAE,GAAI,CACtE,CAAC,CAAC,CAAC,IAAI,CACO;YAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,UAAU;gBACvC,oBAAC,OAAO,IAAC,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE;oBAC3B,oBAAC,IAAI,IAAC,GAAG,EAAE,MAAM,CAAC,uBAAuB,CAAC,MAAM,CAAC,EAAE,CAAC,GAAI;oBACvD,YAAY,CAAC,KAAK,IAAI,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CAC5D,CACK,CACJ,CACC,CACf,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/AllNewNotificationItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,8CAA8C,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAC/D,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,uBAAuB,MAAM,wCAAwC,CAAC;AAC7E,OAAO,YAAY,MAAM,6CAA6C,CAAC;AACvE,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,CAAC;AAEtB,MAAM,gBAAgB,GAAG,CAAC,KAA2C,EAAE,EAAE;IACxE,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB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AAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CAC5D,CACK,CACJ,CACC,CACf,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -6,20 +6,31 @@
6
6
  background-color: #f5f8fd;
7
7
  }
8
8
 
9
- :global {
10
- .notification-item-name {
11
- color: #5d5d5d;
9
+ .notification-item-name {
10
+ color: #5d5d5d;
11
+ font-weight: bold;
12
+ font-size: 14px;
13
+ line-height: 19px;
14
+ }
15
+
16
+ .notification-item-avatar {
17
+ .ant-avatar {
18
+ width: 29px;
19
+ height: 29px;
20
+ font-size: 12px;
21
+ line-height: 15px;
12
22
  font-weight: bold;
13
- font-size: 14px;
14
- line-height: 19px;
23
+ border-radius: 2px;
24
+ background: transparent linear-gradient(180deg, #217eb2 0%, #38d6fc 100%) 0% 0% no-repeat
25
+ padding-box;
15
26
  }
27
+ }
16
28
 
17
- .notification-column-item {
18
- padding: 7px 20px;
29
+ .notification-column-item {
30
+ padding: 7px 20px;
19
31
 
20
- .ant-row {
21
- height: 50px;
22
- }
32
+ .ant-row {
33
+ height: 50px;
23
34
  }
24
35
  }
25
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "6.0.131",
3
+ "version": "6.0.132",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",