@voplus/morpho-workspace 6.0.61 → 6.0.63

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. package/es/data/notification/NotificationStore.d.ts +14 -4
  2. package/es/data/notification/NotificationStore.js +54 -4
  3. package/es/data/notification/NotificationStore.js.map +1 -1
  4. package/es/data/notification/index.d.ts +1 -0
  5. package/es/data/notification/index.js +1 -0
  6. package/es/data/notification/index.js.map +1 -1
  7. package/es/data/notification/interfaces.d.ts +13 -0
  8. package/es/data/notification/notification-events/index.d.ts +3 -0
  9. package/es/data/notification/notification-events/index.js +4 -0
  10. package/es/data/notification/notification-events/index.js.map +1 -0
  11. package/es/data/notification/notification-events/useAutoUpdateListData.d.ts +4 -0
  12. package/es/data/notification/notification-events/useAutoUpdateListData.js +13 -0
  13. package/es/data/notification/notification-events/useAutoUpdateListData.js.map +1 -0
  14. package/es/data/notification/notification-events/useOnDeleteNotification.d.ts +4 -0
  15. package/es/data/notification/notification-events/useOnDeleteNotification.js +16 -0
  16. package/es/data/notification/notification-events/useOnDeleteNotification.js.map +1 -0
  17. package/es/data/notification/notification-events/useOnNewNotification.d.ts +4 -0
  18. package/es/data/notification/notification-events/useOnNewNotification.js +16 -0
  19. package/es/data/notification/notification-events/useOnNewNotification.js.map +1 -0
  20. package/es/data/notification/types.d.ts +28 -0
  21. package/es/modules/Routes.d.ts +6 -0
  22. package/es/modules/Routes.js +14 -1
  23. package/es/modules/Routes.js.map +1 -1
  24. package/es/modules/meeting/components/MeetingDescription/index.js +1 -1
  25. package/es/modules/meeting/components/MeetingDescription/index.js.map +1 -1
  26. package/es/modules/meeting/components/MeetingTaskList/index.js +1 -1
  27. package/es/modules/meeting/components/MeetingTaskList/index.js.map +1 -1
  28. package/es/modules/meeting/components/MeetingsFolderQuickViewDialog/index.js +1 -1
  29. package/es/modules/meeting/components/MeetingsFolderQuickViewDialog/index.js.map +1 -1
  30. package/es/modules/meeting/pages/MeetingPrintView/index.js +1 -1
  31. package/es/modules/meeting/pages/MeetingPrintView/index.js.map +1 -1
  32. package/es/modules/meeting/pages/MeetingTabView/index.js +1 -1
  33. package/es/modules/meeting/pages/MeetingTabView/index.js.map +1 -1
  34. package/es/modules/notification/components/NewNotificationForm/NotificationForm.d.ts +17 -0
  35. package/es/modules/notification/components/NewNotificationForm/NotificationForm.js +67 -0
  36. package/es/modules/notification/components/NewNotificationForm/NotificationForm.js.map +1 -0
  37. package/es/modules/notification/components/NewNotificationForm/index.d.ts +10 -0
  38. package/es/modules/notification/components/NewNotificationForm/index.js +14 -0
  39. package/es/modules/notification/components/NewNotificationForm/index.js.map +1 -0
  40. package/es/modules/notification/components/NewNotificationForm/index.less +38 -0
  41. package/es/modules/notification/components/NewNotificationForm/state.d.ts +19 -0
  42. package/es/modules/notification/components/NewNotificationForm/state.js +54 -0
  43. package/es/modules/notification/components/NewNotificationForm/state.js.map +1 -0
  44. package/es/modules/notification/components/NotificationHeader/index.d.ts +6 -0
  45. package/es/modules/notification/components/NotificationHeader/index.js +19 -0
  46. package/es/modules/notification/components/NotificationHeader/index.js.map +1 -0
  47. package/es/modules/notification/components/NotificationHeader/index.less +12 -0
  48. package/es/modules/notification/components/NotificationItem/index.d.ts +6 -0
  49. package/es/modules/notification/components/NotificationItem/index.js +31 -0
  50. package/es/modules/notification/components/NotificationItem/index.js.map +1 -0
  51. package/es/modules/notification/components/NotificationItem/index.less +29 -0
  52. package/es/modules/notification/components/NotificationList2/index.d.ts +7 -0
  53. package/es/modules/notification/components/NotificationList2/index.js +39 -0
  54. package/es/modules/notification/components/NotificationList2/index.js.map +1 -0
  55. package/es/modules/notification/components/NotificationList2/index.less +11 -0
  56. package/es/modules/notification/components/NotificationProperties/index.d.ts +20 -0
  57. package/es/modules/notification/components/NotificationProperties/index.js +56 -0
  58. package/es/modules/notification/components/NotificationProperties/index.js.map +1 -0
  59. package/es/modules/notification/components/NotificationPropertiesView/index.d.ts +7 -0
  60. package/es/modules/notification/components/NotificationPropertiesView/index.js +16 -0
  61. package/es/modules/notification/components/NotificationPropertiesView/index.js.map +1 -0
  62. package/es/modules/notification/components/NotificationPropertiesView/index.less +26 -0
  63. package/es/modules/notification/components/NotificationQuickViewDialog/index.d.ts +8 -0
  64. package/es/modules/notification/components/NotificationQuickViewDialog/index.js +13 -0
  65. package/es/modules/notification/components/NotificationQuickViewDialog/index.js.map +1 -0
  66. package/es/modules/notification/components/NotificationQuickViewDialog/index.less +7 -0
  67. package/es/modules/notification/components/NotificationRecipients/index.d.ts +7 -0
  68. package/es/modules/notification/components/NotificationRecipients/index.js +27 -0
  69. package/es/modules/notification/components/NotificationRecipients/index.js.map +1 -0
  70. package/es/modules/notification/components/NotificationRecipients/index.less +17 -0
  71. package/es/modules/notification/components/NotificationTabs/index.d.ts +7 -0
  72. package/es/modules/notification/components/NotificationTabs/index.js +38 -0
  73. package/es/modules/notification/components/NotificationTabs/index.js.map +1 -0
  74. package/es/modules/notification/components/NotificationTabs/index.less +8 -0
  75. package/es/modules/notification/controls/NotificationMenu/index.d.ts +7 -0
  76. package/es/modules/notification/controls/NotificationMenu/index.js +13 -0
  77. package/es/modules/notification/controls/NotificationMenu/index.js.map +1 -0
  78. package/es/modules/notification/pages/NotificationDefaultView/index.d.ts +4 -0
  79. package/es/modules/notification/pages/NotificationDefaultView/index.js +26 -0
  80. package/es/modules/notification/pages/NotificationDefaultView/index.js.map +1 -0
  81. package/es/modules/notification/pages/NotificationDefaultView/index.less +19 -0
  82. package/es/modules/tasks/components/DelegateDialog/index.less +44 -37
  83. package/es/modules/tasks/pages/TaskTabView/index.js +16 -12
  84. package/es/modules/tasks/pages/TaskTabView/index.js.map +1 -1
  85. package/es/modules/work/work-schedule/components/WorkScheduleItem/index.js +1 -1
  86. package/es/modules/work/work-schedule/components/WorkScheduleItem/index.js.map +1 -1
  87. package/es/modules/work/work-type/components/WorkTypeProperties/WorkTypePropertiesCard.js +1 -1
  88. package/es/modules/work/work-type/components/WorkTypeProperties/WorkTypePropertiesCard.js.map +1 -1
  89. package/es/obsolete/space/components/Notes/TextNoteCard/index.js +1 -1
  90. package/es/obsolete/space/components/Notes/TextNoteCard/index.js.map +1 -1
  91. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationForm.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NewNotificationForm/NotificationForm.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAS,MAAM,MAAM,CAAC;AACjF,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,OAAO,WAAW,MAAM,6CAA6C,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,0BAA0B,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAWhC,MAAM,0BAA0B,GAAG,CAAC,KAA+B,EAAE,EAAE;IACtE,MAAM,KAAK,GAAG,oBAAoB,EAAE,CAAC;IACrC,MAAM,YAAY,GAAG,sBAAsB,EAAE,CAAC;IAC9C,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEtC,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAC7B,6BACC,SAAS,EAAE,UAAU,CACpB,uBAAuB,EACvB,EAAE,8BAA8B,EAAE,KAAK,CAAC,IAAI,KAAK,MAAM,EAAE,EACzD,KAAK,CAAC,SAAS,CACf;QAED,oBAA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DAAI,CAAC;QACjB,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;QACtB,IAAI,KAAK,CAAC,QAAQ,IAAI,GAAG;YACxB,OAAO,YAAa,CAAC,SAAS,CAAC,oBAAC,0BAA0B,IAAC,EAAE,EAAE,GAAG,CAAC,EAAE,GAAI,EAAE;gBAC1E,IAAI,EAAE,EAAE;aACR,CAAC,CAAC;IACL,CAAC;IAED,2BAA2B;IAC3B,SAAS,QAAQ;;QAChB,IAAI,KAAK,CAAC,QAAQ;YAAE,OAAO,YAAa,CAAC,UAAU,EAAE,CAAC;QACtD,MAAA,KAAK,CAAC,QAAQ,qDAAI,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AAEF,0BAA0B,CAAC,YAAY,GAAG;IACzC,IAAI,EAAE,MAAM;CACZ,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { NewNotificationFormProps } from "./NotificationForm";
2
+ import React from "react";
3
+ declare const NewNotificationFormDialog: {
4
+ (props: NewNotificationFormProps): React.JSX.Element;
5
+ defaultProps: {
6
+ type: string;
7
+ showSubmit: boolean;
8
+ };
9
+ };
10
+ export default NewNotificationFormDialog;
@@ -0,0 +1,14 @@
1
+ import Content from "./NotificationForm";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import { Modal } from "antd";
4
+ import React from "react";
5
+ const NewNotificationFormDialog = (props) => {
6
+ return observe(() => (React.createElement(Modal, { title: "New Notification Form Dialog", open: true, closable: false, footer: null, onCancel: props.onCancel },
7
+ React.createElement(Content, { ...props }))));
8
+ };
9
+ NewNotificationFormDialog.defaultProps = {
10
+ type: "mini",
11
+ showSubmit: true,
12
+ };
13
+ export default NewNotificationFormDialog;
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NewNotificationForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,OAAqC,MAAM,oBAAoB,CAAC;AAEvE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,yBAAyB,GAAG,CAAC,KAA+B,EAAE,EAAE;IACrE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,IACL,KAAK,EAAC,8BAA8B,EACpC,IAAI,QACJ,QAAQ,EAAE,KAAK,EACf,MAAM,EAAE,IAAI,EACZ,QAAQ,EAAE,KAAK,CAAC,QAAQ;QAExB,oBAAC,OAAO,OAAK,KAAK,GAAI,CACf,CACR,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,yBAAyB,CAAC,YAAY,GAAG;IACxC,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,IAAI;CAChB,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -0,0 +1,38 @@
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
+
3
+ :global {
4
+ .new-notification-form {
5
+ &.sub-notification-more-form {
6
+ padding: 0 20px;
7
+
8
+ .ant-form-item {
9
+ margin-bottom: 15px;
10
+ }
11
+ }
12
+
13
+ &.sub-notification-simply-form {
14
+ flex: none;
15
+ padding-bottom: 10px;
16
+ // border-top: #f2f2f2 solid 1px;
17
+
18
+ .ant-form-item {
19
+ margin-bottom: 10px;
20
+ }
21
+ }
22
+
23
+ .notification-form-btn {
24
+ margin-top: 10px;
25
+ }
26
+
27
+ .proseMirror {
28
+ .prosemirror-content {
29
+ height: 140px;
30
+ }
31
+ .toolbar-button[title="Align"] {
32
+ .ant-select {
33
+ width: auto;
34
+ }
35
+ }
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,19 @@
1
+ export declare class State {
2
+ constructor();
3
+ Params: {
4
+ Channels: string[];
5
+ Subject: string;
6
+ Body: string;
7
+ };
8
+ params: {
9
+ Channels: string[];
10
+ Subject: string;
11
+ Body: string;
12
+ };
13
+ contact: {
14
+ id: string;
15
+ name: string;
16
+ }[];
17
+ recipients: string[];
18
+ loading: boolean;
19
+ }
@@ -0,0 +1,54 @@
1
+ import { __decorate } from "tslib";
2
+ import { makeObservable, observable } from "mobx";
3
+ export class State {
4
+ constructor() {
5
+ Object.defineProperty(this, "Params", {
6
+ enumerable: true,
7
+ configurable: true,
8
+ writable: true,
9
+ value: {
10
+ Channels: ["Email"],
11
+ Subject: "",
12
+ Body: "",
13
+ }
14
+ });
15
+ Object.defineProperty(this, "params", {
16
+ enumerable: true,
17
+ configurable: true,
18
+ writable: true,
19
+ value: this.Params
20
+ });
21
+ Object.defineProperty(this, "contact", {
22
+ enumerable: true,
23
+ configurable: true,
24
+ writable: true,
25
+ value: []
26
+ });
27
+ Object.defineProperty(this, "recipients", {
28
+ enumerable: true,
29
+ configurable: true,
30
+ writable: true,
31
+ value: []
32
+ });
33
+ Object.defineProperty(this, "loading", {
34
+ enumerable: true,
35
+ configurable: true,
36
+ writable: true,
37
+ value: false
38
+ });
39
+ makeObservable(this);
40
+ }
41
+ }
42
+ __decorate([
43
+ observable
44
+ ], State.prototype, "params", void 0);
45
+ __decorate([
46
+ observable
47
+ ], State.prototype, "contact", void 0);
48
+ __decorate([
49
+ observable
50
+ ], State.prototype, "recipients", void 0);
51
+ __decorate([
52
+ observable
53
+ ], State.prototype, "loading", void 0);
54
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NewNotificationForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlD,MAAM,OAAO,KAAK;IACjB;QAGO;;;;mBAAS;gBACf,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,OAAO,EAAE,EAAE;gBACX,IAAI,EAAE,EAAE;aACR;WAAC;QACiB;;;;mBAAS,IAAI,CAAC,MAAM;WAAC;QACrB;;;;mBAA0C,EAAE;WAAC;QAC7C;;;;mBAAuB,EAAE;WAAC;QAC1B;;;;mBAAU,KAAK;WAAC;QAVlC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAUD;AAJmB;IAAlB,UAAU;qCAA6B;AACrB;IAAlB,UAAU;sCAAqD;AAC7C;IAAlB,UAAU;yCAAkC;AAC1B;IAAlB,UAAU;sCAAwB"}
@@ -0,0 +1,6 @@
1
+ import "./index.less";
2
+ import React from "react";
3
+ declare const NotificationHeader: (props: {
4
+ id: string;
5
+ }) => React.JSX.Element;
6
+ export default NotificationHeader;
@@ -0,0 +1,19 @@
1
+ import "./index.less";
2
+ import ToolBar from "@voplus/morpho-org/es/controls/ToolBar";
3
+ import { Open } from "@voplus/morpho-org/es/controls/ToolBar/items";
4
+ import { observe } from "@voplus/morpho-ui";
5
+ import React from "react";
6
+ import { useNotification } from "../../../../data/notification";
7
+ import Routes from "../../../Routes";
8
+ import NotificationMenu from "../../controls/NotificationMenu";
9
+ const NotificationHeader = (props) => {
10
+ const id = props.id;
11
+ const notification = useNotification(id);
12
+ return observe(() => (React.createElement("div", { className: "notification-header" },
13
+ React.createElement("div", null, notification.subject),
14
+ React.createElement(ToolBar, { more: false, id: id },
15
+ React.createElement(Open, { url: Routes.NotificationDefaultView.getUrl(id) }),
16
+ React.createElement(NotificationMenu, { id: id, closeAside: true })))));
17
+ };
18
+ export default NotificationHeader;
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,8CAA8C,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAE/D,MAAM,kBAAkB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACpD,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,YAAY,GAAG,eAAe,CAAC,EAAE,CAAC,CAAC;IAEzC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,qBAAqB;QACnC,iCAAM,YAAY,CAAC,OAAO,CAAO;QACjC,oBAAC,OAAO,IAAC,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE;YAC3B,oBAAC,IAAI,IAAC,GAAG,EAAE,MAAM,CAAC,uBAAuB,CAAC,MAAM,CAAC,EAAE,CAAC,GAAI;YACxD,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CACrC,CACL,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,12 @@
1
+ :global {
2
+ .notification-header {
3
+ font-size: 24px;
4
+ display: flex;
5
+ justify-content: space-between;
6
+ padding: 10px 20px;
7
+
8
+ .tools-bar {
9
+ text-align: right;
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ declare const NotificationItem: (props: {
4
+ id: string;
5
+ }) => React.JSX.Element;
6
+ export default NotificationItem;
@@ -0,0 +1,31 @@
1
+ import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
2
+ import ToolBar from "@voplus/morpho-org/es/controls/ToolBar";
3
+ import { Open } from "@voplus/morpho-org/es/controls/ToolBar/items";
4
+ import { observe } from "@voplus/morpho-ui";
5
+ import { ColumnItem, ColumnItemCol } from "@voplus/morpho-ui/es/controls/ColumnItem";
6
+ import classnames from "classnames";
7
+ import React, { useState } from "react";
8
+ import { useNotification } from "../../../../data/notification";
9
+ import Routes from "../../../Routes";
10
+ import dayjs from "dayjs";
11
+ import NotificationMenu from "../../controls/NotificationMenu";
12
+ import PropertiesView from "../NotificationPropertiesView";
13
+ import NotificationQuickViewDialog from "../NotificationQuickViewDialog";
14
+ import "./index.less";
15
+ const NotificationItem = (props) => {
16
+ const { id } = props;
17
+ const notification = useNotification(id);
18
+ const [hover, setHover] = useState(false);
19
+ return observe(() => (React.createElement(ItemFunction, { className: "notification-item", onMouseOver: () => setHover(true), onMouseLeave: () => setHover(false), propertiesView: React.createElement(PropertiesView, { id: id }), quickViewDialog: (onCancel) => (React.createElement(NotificationQuickViewDialog, { id: id, visible: true, onCancel: onCancel })) },
20
+ React.createElement(ColumnItem, { className: "notification-column-item" },
21
+ React.createElement(ColumnItemCol, { span: 14 },
22
+ React.createElement("div", { className: "notification-item-name" }, notification.subject)),
23
+ React.createElement(ColumnItemCol, { span: 6, label: "Date" }, dayjs(notification.date).format("DD MMM YYYY")),
24
+ React.createElement(ColumnItemCol, { span: 4, align: "flex-end" },
25
+ React.createElement("div", { className: classnames("notification-item-tool", { show: hover }) },
26
+ React.createElement(ToolBar, { more: false, id: id },
27
+ React.createElement(Open, { url: Routes.NotificationDefaultView.getUrl(id) }),
28
+ React.createElement(NotificationMenu, { id: id, closeAside: true }))))))));
29
+ };
30
+ export default NotificationItem;
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,6CAA6C,CAAC;AACvE,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,8CAA8C,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,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,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,MAAM,IAClC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAChC;YAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,UAAU;gBACvC,6BAAK,SAAS,EAAE,UAAU,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;oBACpE,oBAAC,OAAO,IAAC,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE;wBAC3B,oBAAC,IAAI,IAAC,GAAG,EAAE,MAAM,CAAC,uBAAuB,CAAC,MAAM,CAAC,EAAE,CAAC,GAAI;wBACxD,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CACrC,CACL,CACS,CACJ,CACC,CACf,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,29 @@
1
+ :global {
2
+ .notification-item {
3
+ cursor: pointer;
4
+
5
+ &:hover {
6
+ background-color: #f5f8fd;
7
+ }
8
+
9
+ :global {
10
+ .notification-item-name {
11
+ color: #575757;
12
+ font-weight: 500;
13
+ word-break: break-all;
14
+ }
15
+
16
+ .notification-item-tool {
17
+ display: none;
18
+
19
+ &.show {
20
+ display: block;
21
+ }
22
+ }
23
+
24
+ .notification-column-item {
25
+ padding: 7px 20px;
26
+ }
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,7 @@
1
+ import "./index.less";
2
+ import React from "react";
3
+ export type NotificationListProps = {
4
+ parentId: string;
5
+ };
6
+ declare const NotificationList: (props: NotificationListProps) => React.JSX.Element;
7
+ export default NotificationList;
@@ -0,0 +1,39 @@
1
+ import "./index.less";
2
+ import { useNotificationListEffect } from "../../../../data/notification";
3
+ import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data/ListDataContext";
4
+ import React, { useState } from "react";
5
+ import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
6
+ import NotificationForm from "../NewNotificationForm/NotificationForm";
7
+ import NewNotificationFormDialog from "../NewNotificationForm";
8
+ import NotificationItem from "../NotificationItem";
9
+ import { observe } from "@voplus/morpho-ui";
10
+ import { useRenderOnChange } from "@voplus/morpho-ui";
11
+ import { useViewContext } from "@voplus/morpho-document-core/es/data/context/ViewContext";
12
+ const NotificationList = (props) => {
13
+ const { parentId } = props;
14
+ const [addAble, setAddAble] = useState(false);
15
+ const view = useViewContext();
16
+ const list = useCreateListDataState({ filterDefaults: { filters: [{ c: "Status", o: "=", l: "And", v1: "Unread" }] } }, [parentId]);
17
+ // useAutoUpdateListData(list, (d) => d.parentId === parentId);
18
+ useRenderOnChange(() => list.filters.options);
19
+ useNotificationListEffect(list, (result, total) => {
20
+ list.union(result);
21
+ }, {
22
+ Total: false,
23
+ ...list.filters.options,
24
+ });
25
+ return observe(() => {
26
+ return (React.createElement(ListDataContext.Provider, { value: list },
27
+ React.createElement(ListView, { className: "notification-list-view", headerProps: {
28
+ viewTitle: "Notification List",
29
+ sortable: false,
30
+ quickSearch: true,
31
+ onAdd: () => ((view === null || view === void 0 ? void 0 : view.Type) === "PropertiesView" || (view === null || view === void 0 ? void 0 : view.Type) === "QuickView") &&
32
+ setAddAble(!addAble),
33
+ }, formViewTitle: "Add Offiec", formView: (view === null || view === void 0 ? void 0 : view.Type) !== "PropertiesView" &&
34
+ (view === null || view === void 0 ? void 0 : view.Type) !== "QuickView" && React.createElement(NotificationForm, { showView: true, parentId: parentId }), renderItem: ({ item, index }) => (React.createElement(NotificationItem, { key: item.id, id: item.id })) }),
35
+ addAble && (React.createElement(NewNotificationFormDialog, { parentId: parentId, onCancel: () => setAddAble(false), onSave: () => setAddAble(false) }))));
36
+ });
37
+ };
38
+ export default NotificationList;
39
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/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H,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,11 @@
1
+ :global {
2
+ .notification-list-view {
3
+ padding: 0 !important;
4
+ .list-view-header .view-title {
5
+ flex: 1;
6
+ }
7
+ aside {
8
+ border-top: 0;
9
+ }
10
+ }
11
+ }
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ export type NotificationPropertiesName = "Subject" | "Channels" | "Date";
3
+ declare const NotificationProperties: {
4
+ (props: {
5
+ id: string;
6
+ headerVisible?: boolean;
7
+ NotificationTitle?: string;
8
+ NotificationProperties?: {
9
+ name: NotificationPropertiesName;
10
+ visible?: boolean;
11
+ }[];
12
+ }): React.JSX.Element;
13
+ defaultProps: {
14
+ NotificationTitle: string;
15
+ NotificationProperties: {
16
+ name: string;
17
+ }[];
18
+ };
19
+ };
20
+ export default NotificationProperties;
@@ -0,0 +1,56 @@
1
+ import { faEllipsisVertical } from "@fortawesome/pro-light-svg-icons";
2
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
3
+ import ToolBar from "@voplus/morpho-org/es/controls/ToolBar";
4
+ import { InlineEdit, observe } from "@voplus/morpho-ui";
5
+ import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
6
+ import Prop from "@voplus/morpho-ui/es/controls/Prop";
7
+ import { Radio } from "antd";
8
+ import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
9
+ import React from "react";
10
+ import { Scrollbars } from "react-custom-scrollbars-2";
11
+ import { useNotification, useNotificationStore, } from "../../../../data/notification";
12
+ import NotificationMenu from "../../controls/NotificationMenu";
13
+ import dayjs from "dayjs";
14
+ const NotificationProperties = (props) => {
15
+ /** 加class name 为了方便做integration tests */
16
+ const classId = "notification-properties";
17
+ const { id, headerVisible, NotificationTitle, NotificationProperties } = props;
18
+ const notification = useNotification(id);
19
+ const store = useNotificationStore();
20
+ const filterPro = NotificationProperties === null || NotificationProperties === void 0 ? void 0 : NotificationProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
21
+ return observe(() => (React.createElement("div", { className: "properties-list" },
22
+ headerVisible && (React.createElement("div", { className: "properties-header" },
23
+ React.createElement("div", { className: "title" }, notification.subject),
24
+ React.createElement(ToolBar, { id: id, more: false },
25
+ React.createElement(NotificationMenu, { id: id, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) })))),
26
+ React.createElement(Scrollbars, { autoHide: true },
27
+ React.createElement(PropertiesSection, { title: NotificationTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(Prop, { key: i.name, label: i.name, className: `${classId}-${i.name}` }, renderProp(i)))) })))));
28
+ function renderProp(item) {
29
+ switch (item.name) {
30
+ case "Subject":
31
+ return (React.createElement(InlineEdit, { defaultValue: notification.subject, content: (v) => notification.subject ? (React.createElement("span", { className: "properties-value" }, notification.subject)) : (React.createElement("span", { className: "add-info-style" }, "Add Number")), onSave: (value) => store.edit(id, { data: { Subject: value }, error: "message" }) }));
32
+ case "Channels":
33
+ return (React.createElement(InlineEdit, { defaultValue: notification.channels, editor: (v) => (React.createElement(Radio.Group, { onChange: (e) => {
34
+ v.store.value = e.target.value;
35
+ store.edit(id, { data: { Channels: e.target.value }, error: "message" });
36
+ v.store.cancel();
37
+ }, value: notification.channels },
38
+ React.createElement(Radio, { value: "Email" }, "Email"),
39
+ React.createElement(Radio, { value: "Instant Message" }, "Instant Message"))) }));
40
+ case "Date":
41
+ return (React.createElement(InlineEdit, { defaultValue: notification.date ? dayjs(notification.date) : undefined, content: (v) => notification.date ? (React.createElement("span", { className: "properties-value" }, dayjs(notification.date).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, "Add Date")), editor: DateInputEditor, onSave: (date) => {
42
+ if (notification.date && dayjs(date).isSame(notification.date, "day"))
43
+ return;
44
+ store.edit(id, {
45
+ data: { Date: date !== null ? date : "" },
46
+ });
47
+ } }));
48
+ }
49
+ }
50
+ };
51
+ NotificationProperties.defaultProps = {
52
+ NotificationTitle: "Notification Properties",
53
+ NotificationProperties: [{ name: "Subject" }, { name: "Channels" }, { name: "Date" }],
54
+ };
55
+ export default NotificationProperties;
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EACN,eAAe,EACf,oBAAoB,GAEpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAC/D,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,sBAAsB,GAAG,CAAC,KAK/B,EAAE,EAAE;IACJ,yCAAyC;IACzC,MAAM,OAAO,GAAG,yBAAyB,CAAC;IAE1C,MAAM,EAAE,EAAE,EAAE,aAAa,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,GAAG,KAAK,CAAC;IAE/E,MAAM,YAAY,GAAG,eAAe,CAAC,EAAE,CAAC,CAAC;IACzC,MAAM,KAAK,GAAG,oBAAoB,EAAE,CAAC;IAErC,MAAM,SAAS,GAAG,sBAAsB,aAAtB,sBAAsB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AAkB,IAChC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CACxC,CACP,CAAC,CAAC,CAAC,CACH,8BAAM,SAAS,EAAC,gBAAgB,eAAgB,CAChD,EAEF,MAAM,EAAE,eAAe,EACvB,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;wBAChB,IAAI,YAAY,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC;4BAAE,OAAO;wBAC9E,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE;4BACd,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAS;yBAChD,CAAC,CAAC;oBACJ,CAAC,GACA,CACF,CAAC;QACJ,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,sBAAsB,CAAC,YAAY,GAAG;IACrC,iBAAiB,EAAE,yBAAyB;IAC5C,sBAAsB,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;CACrF,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ declare const NotificationPropertiesView: (props: {
4
+ id: string;
5
+ default?: boolean;
6
+ }) => React.JSX.Element;
7
+ export default NotificationPropertiesView;
@@ -0,0 +1,16 @@
1
+ import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
2
+ import React, { useMemo } from "react";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import NotificationHeader from "../NotificationHeader";
5
+ import NotificationTabs from "../NotificationTabs";
6
+ import "./index.less";
7
+ const NotificationPropertiesView = (props) => {
8
+ const id = props.id;
9
+ const view = useMemo(() => new ViewContextData("PropertiesView"), []);
10
+ return observe(() => (React.createElement(ViewContext.Provider, { value: view },
11
+ React.createElement("div", { className: "notification-properties-view" },
12
+ React.createElement(NotificationHeader, { id: id }),
13
+ React.createElement(NotificationTabs, { id: id, properties: true })))));
14
+ };
15
+ export default NotificationPropertiesView;
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,cAAc,CAAC;AAEtB,MAAM,0BAA0B,GAAG,CAAC,KAAwC,EAAE,EAAE;IAC/E,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEtE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,6BAAK,SAAS,EAAC,8BAA8B;YAC5C,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI;YAC9B,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CAClC,CACgB,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1,26 @@
1
+ :global {
2
+ .notification-properties-view {
3
+ display: flex;
4
+ flex-direction: column;
5
+ height: 100%;
6
+ .ant-tabs {
7
+ display: flex;
8
+ flex-direction: column;
9
+ height: 100%;
10
+ .ant-tabs-content {
11
+ height: 100%;
12
+ padding-bottom: 0px !important;
13
+ .ant-tabs-tabpane {
14
+ position: relative;
15
+ height: 100%;
16
+ }
17
+ }
18
+ .ant-tabs-bar {
19
+ margin: 0 20px;
20
+ }
21
+ .ant-tabs-nav {
22
+ margin: 0;
23
+ }
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,8 @@
1
+ import "./index.less";
2
+ import React from "react";
3
+ declare const NotificationQuickViewDialog: (props: {
4
+ id: string;
5
+ visible?: boolean;
6
+ onCancel?: () => void;
7
+ }) => React.JSX.Element;
8
+ export default NotificationQuickViewDialog;
@@ -0,0 +1,13 @@
1
+ import "./index.less";
2
+ import UnitQuickView from "@voplus/morpho-org/es/components/UnitQuickView";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import React from "react";
5
+ import NotificationHeader from "../NotificationHeader";
6
+ import NotificationProperties from "../NotificationProperties";
7
+ const NotificationQuickViewDialog = (props) => {
8
+ const { id } = props;
9
+ return observe(() => (React.createElement(UnitQuickView, { ...props, className: "notification-quick-view", header: React.createElement(NotificationHeader, { id: id }), subButtons: [{ name: "Document" }, { name: "Activities" }] },
10
+ React.createElement(NotificationProperties, { id: id }))));
11
+ };
12
+ export default NotificationQuickViewDialog;
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,aAAa,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,sBAAsB,MAAM,2BAA2B,CAAC;AAE/D,MAAM,2BAA2B,GAAG,CAAC,KAA+D,EAAE,EAAE;IACvG,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,aAAa,OACT,KAAK,EACT,SAAS,EAAC,yBAAyB,EACnC,MAAM,EAAE,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI,EACtC,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;QAE1D,oBAAC,sBAAsB,IAAC,EAAE,EAAE,EAAE,GAAI,CACnB,CAChB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
@@ -0,0 +1,7 @@
1
+ :global {
2
+ .notification-quick-view {
3
+ .notification-header {
4
+ padding: 10px 44px 10px 20px;
5
+ }
6
+ }
7
+ }
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ declare const NotificationRecipients: (props: {
4
+ id: string;
5
+ viewTitle?: boolean;
6
+ }) => React.JSX.Element;
7
+ export default NotificationRecipients;
@@ -0,0 +1,27 @@
1
+ import React from "react";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import dayjs from "dayjs";
4
+ import { Empty } from "antd";
5
+ import Scrollbars from "react-custom-scrollbars-2";
6
+ import ItemFrame from "@voplus/morpho-ui/es/controls/ItemFrame";
7
+ import UnitReference from "@voplus/morpho-org/es/controls/UnitReference";
8
+ import { ColumnItem, ColumnItemCol } from "@voplus/morpho-ui/es/controls/ColumnItem";
9
+ import { useNotification } from "../../../../data/notification";
10
+ import "./index.less";
11
+ const NotificationRecipients = (props) => {
12
+ const { id, viewTitle } = props;
13
+ const notification = useNotification(id);
14
+ return observe(() => {
15
+ var _a;
16
+ return (React.createElement("div", { className: "notification-recipient-list" },
17
+ viewTitle && React.createElement("div", { className: "notification-recipient-header" }, "Messages"),
18
+ React.createElement(Scrollbars, { autoHide: true }, ((_a = notification.recipients) === null || _a === void 0 ? void 0 : _a.length) ? (notification.recipients.map((item, index) => (React.createElement(ItemFrame, { key: index, hoverEffect: "background" },
19
+ React.createElement(ColumnItem, { className: "notification-recipient-item" },
20
+ React.createElement(ColumnItemCol, { span: 10, label: "Recipient" },
21
+ React.createElement(UnitReference, { id: item.recipient.id })),
22
+ React.createElement(ColumnItemCol, { span: 10, label: "Channel" }, item.channel),
23
+ React.createElement(ColumnItemCol, { span: 4, label: "Date" }, dayjs(item.sentDate).format("YYYY-MM-DD"))))))) : (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE })))));
24
+ });
25
+ };
26
+ export default NotificationRecipients;
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationRecipients/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,SAAS,MAAM,yCAAyC,CAAC;AAChE,OAAO,aAAa,MAAM,8CAA8C,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,cAAc,CAAC;AAEtB,MAAM,sBAAsB,GAAG,CAAC,KAA0C,EAAE,EAAE;IAC7E,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAChC,MAAM,YAAY,GAAG,eAAe,CAAC,EAAE,CAAC,CAAC;IAEzC,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,6BAAK,SAAS,EAAC,6BAA6B;YAC1C,SAAS,IAAI,6BAAK,SAAS,EAAC,+BAA+B,eAAe;YAC3E,oBAAC,UAAU,IAAC,QAAQ,UAClB,CAAA,MAAA,YAAY,CAAC,UAAU,0CAAE,MAAM,EAAC,CAAC,CAAC,CAClC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5C,oBAAC,SAAS,IAAC,GAAG,EAAE,KAAK,EAAE,WAAW,EAAC,YAAY;gBAC9C,oBAAC,UAAU,IAAC,SAAS,EAAC,6BAA6B;oBAClD,oBAAC,aAAa,IAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAC,WAAW;wBACzC,oBAAC,aAAa,IAAC,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,GAAI,CACzB;oBAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAC,SAAS,IACtC,IAAI,CAAC,OAAO,CACE;oBAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,MAAM,IAClC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAC3B,CACJ,CACF,CACZ,CAAC,CACF,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,IAAC,KAAK,EAAE,KAAK,CAAC,sBAAsB,GAAI,CAC9C,CACW,CACR,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1,17 @@
1
+ :global {
2
+ .notification-recipient-list {
3
+ height: 100%;
4
+ display: flex;
5
+ flex-direction: column;
6
+ .notification-recipient-header {
7
+ height: 60px;
8
+ padding: 1em 20px;
9
+ color: #575757;
10
+ font-size: 16px;
11
+ font-weight: 600;
12
+ }
13
+ .notification-recipient-item {
14
+ padding: 7px 20px;
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ declare const NotificationTabs: (props: {
4
+ id: string;
5
+ properties?: boolean;
6
+ }) => React.JSX.Element;
7
+ export default NotificationTabs;