@voplus/morpho-workspace 9.0.15 → 9.0.17

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.
Files changed (91) hide show
  1. package/es/modules/board/components/NewColumnDocumentForm/index.js +5 -4
  2. package/es/modules/board/components/NewColumnDocumentForm/index.js.map +1 -1
  3. package/es/modules/my-document/SectionTemplate/GridUI/index.js +33 -33
  4. package/es/modules/my-document/SectionTemplate/GridUI/index.js.map +1 -1
  5. package/es/modules/notification/components/NewNotificationForm/index.d.ts +1 -1
  6. package/es/modules/notification/components/NewNotificationForm/index.js +3 -3
  7. package/es/modules/notification/components/NewNotificationForm/index.js.map +1 -1
  8. package/es/modules/notification/components/NotificationItem/index.js.map +1 -0
  9. package/es/modules/notification/components/NotificationList/index.d.ts +24 -10
  10. package/es/modules/notification/components/NotificationList/index.js +60 -84
  11. package/es/modules/notification/components/NotificationList/index.js.map +1 -1
  12. package/es/modules/notification/components/NotificationListHeader/index.d.ts +15 -6
  13. package/es/modules/notification/components/NotificationListHeader/index.js +14 -68
  14. package/es/modules/notification/components/NotificationListHeader/index.js.map +1 -1
  15. package/es/modules/notification/components/NotificationPropertiesView/index.js +5 -5
  16. package/es/modules/notification/components/NotificationPropertiesView/index.js.map +1 -1
  17. package/es/modules/notification/components/NotificationRecipients/index.js +8 -8
  18. package/es/modules/notification/components/NotificationRecipients/index.js.map +1 -1
  19. package/es/modules/notification/components/{AllNewNotificationTableItem → NotificationTableItem}/index.d.ts +2 -2
  20. package/es/modules/notification/components/{AllNewNotificationTableItem → NotificationTableItem}/index.js +2 -2
  21. package/es/modules/notification/components/NotificationTableItem/index.js.map +1 -0
  22. package/es/modules/notification/components/{AllNewNotificationList → NotificationTableList}/index.d.ts +7 -6
  23. package/es/modules/notification/components/{AllNewNotificationTableList → NotificationTableList}/index.js +7 -8
  24. package/es/modules/notification/components/NotificationTableList/index.js.map +1 -0
  25. package/es/modules/notification/pages/NotificationListPage/index.d.ts +2 -2
  26. package/es/modules/notification/pages/NotificationListPage/index.js +2 -2
  27. package/es/modules/notification/pages/NotificationListPage/index.js.map +1 -1
  28. package/es/modules/notification-workspace/components/DocumentNotificationCard/NotificationMobileCard.js.map +1 -0
  29. package/es/modules/notification-workspace/components/DocumentNotificationCard/index.js.map +1 -0
  30. package/es/modules/notification-workspace/components/DocumentNotificationCard/obsolete.js.map +1 -0
  31. package/es/modules/notification-workspace/components/NotificationList/index.d.ts +14 -0
  32. package/es/modules/notification-workspace/components/NotificationList/index.js +102 -0
  33. package/es/modules/notification-workspace/components/NotificationList/index.js.map +1 -0
  34. package/es/modules/notification-workspace/components/NotificationList/state.js.map +1 -0
  35. package/es/modules/notification-workspace/components/NotificationListHeader/index.d.ts +7 -0
  36. package/es/modules/notification-workspace/components/NotificationListHeader/index.js +76 -0
  37. package/es/modules/notification-workspace/components/NotificationListHeader/index.js.map +1 -0
  38. package/es/modules/notification-workspace/components/NotificationTag/index.js.map +1 -0
  39. package/es/modules/notification-workspace/pages/NotificationListPage/NotificationMobileListPage.js.map +1 -0
  40. package/es/modules/notification-workspace/pages/NotificationListPage/index.js.map +1 -0
  41. package/es/modules/work/work-type/components/WorkTypeIconList/index.js +3 -4
  42. package/es/modules/work/work-type/components/WorkTypeIconList/index.js.map +1 -1
  43. package/es/modules/workspace/components/CreatedOrDisabledWorkspacesList/index.js +2 -3
  44. package/es/modules/workspace/components/CreatedOrDisabledWorkspacesList/index.js.map +1 -1
  45. package/es/modules/workspace/components/SharedWorkspacesList/index.js +2 -3
  46. package/es/modules/workspace/components/SharedWorkspacesList/index.js.map +1 -1
  47. package/es/obsolete/space/components/Notifications/index.js +1 -1
  48. package/es/obsolete/space/components/Notifications/index.js.map +1 -1
  49. package/package.json +1 -1
  50. package/es/modules/my-document/SectionTemplate/GridUI/useElementWidth.d.ts +0 -6
  51. package/es/modules/my-document/SectionTemplate/GridUI/useElementWidth.js +0 -29
  52. package/es/modules/my-document/SectionTemplate/GridUI/useElementWidth.js.map +0 -1
  53. package/es/modules/notification/components/AllNewNotificationItem/index.js.map +0 -1
  54. package/es/modules/notification/components/AllNewNotificationList/index.js +0 -78
  55. package/es/modules/notification/components/AllNewNotificationList/index.js.map +0 -1
  56. package/es/modules/notification/components/AllNewNotificationListHeader/index.d.ts +0 -16
  57. package/es/modules/notification/components/AllNewNotificationListHeader/index.js +0 -23
  58. package/es/modules/notification/components/AllNewNotificationListHeader/index.js.map +0 -1
  59. package/es/modules/notification/components/AllNewNotificationTableItem/index.js.map +0 -1
  60. package/es/modules/notification/components/AllNewNotificationTableList/index.d.ts +0 -29
  61. package/es/modules/notification/components/AllNewNotificationTableList/index.js.map +0 -1
  62. package/es/modules/notification/components/DocumentNotificationCard/NotificationMobileCard.js.map +0 -1
  63. package/es/modules/notification/components/DocumentNotificationCard/index.js.map +0 -1
  64. package/es/modules/notification/components/DocumentNotificationCard/obsolete.js.map +0 -1
  65. package/es/modules/notification/components/NotificationList/state.js.map +0 -1
  66. package/es/modules/notification/components/NotificationTag/index.js.map +0 -1
  67. package/es/modules/notification/pages/NotificationListPage2/NotificationMobileListPage.js.map +0 -1
  68. package/es/modules/notification/pages/NotificationListPage2/index.js.map +0 -1
  69. /package/es/modules/notification/components/{AllNewNotificationItem → NotificationItem}/index.css +0 -0
  70. /package/es/modules/notification/components/{AllNewNotificationItem → NotificationItem}/index.d.ts +0 -0
  71. /package/es/modules/notification/components/{AllNewNotificationItem → NotificationItem}/index.js +0 -0
  72. /package/es/modules/notification/components/{AllNewNotificationTableItem → NotificationTableItem}/index.css +0 -0
  73. /package/es/modules/notification/components/{AllNewNotificationTableList → NotificationTableList}/index.css +0 -0
  74. /package/es/modules/{notification → notification-workspace}/components/DocumentNotificationCard/NotificationMobileCard.d.ts +0 -0
  75. /package/es/modules/{notification → notification-workspace}/components/DocumentNotificationCard/NotificationMobileCard.js +0 -0
  76. /package/es/modules/{notification → notification-workspace}/components/DocumentNotificationCard/index.css +0 -0
  77. /package/es/modules/{notification → notification-workspace}/components/DocumentNotificationCard/index.d.ts +0 -0
  78. /package/es/modules/{notification → notification-workspace}/components/DocumentNotificationCard/index.js +0 -0
  79. /package/es/modules/{notification → notification-workspace}/components/DocumentNotificationCard/obsolete.d.ts +0 -0
  80. /package/es/modules/{notification → notification-workspace}/components/DocumentNotificationCard/obsolete.js +0 -0
  81. /package/es/modules/{notification → notification-workspace}/components/NotificationList/index.css +0 -0
  82. /package/es/modules/{notification → notification-workspace}/components/NotificationList/state.d.ts +0 -0
  83. /package/es/modules/{notification → notification-workspace}/components/NotificationList/state.js +0 -0
  84. /package/es/modules/{notification → notification-workspace}/components/NotificationTag/index.d.ts +0 -0
  85. /package/es/modules/{notification → notification-workspace}/components/NotificationTag/index.js +0 -0
  86. /package/es/modules/{notification → notification-workspace}/components/NotificationTag/index.less +0 -0
  87. /package/es/modules/{notification/pages/NotificationListPage2 → notification-workspace/pages/NotificationListPage}/NotificationMobileListPage.d.ts +0 -0
  88. /package/es/modules/{notification/pages/NotificationListPage2 → notification-workspace/pages/NotificationListPage}/NotificationMobileListPage.js +0 -0
  89. /package/es/modules/{notification/pages/NotificationListPage2 → notification-workspace/pages/NotificationListPage}/index.d.ts +0 -0
  90. /package/es/modules/{notification/pages/NotificationListPage2 → notification-workspace/pages/NotificationListPage}/index.js +0 -0
  91. /package/es/modules/{notification/pages/NotificationListPage2 → notification-workspace/pages/NotificationListPage}/index.less +0 -0
@@ -6,17 +6,18 @@ import { useDocumentStore, useMetaStore } from "@voplus/morpho-document-core";
6
6
  import { State } from "@voplus/morpho-document/es/components/NewDocumentForm/state";
7
7
  import AddFormView from "@voplus/morpho-ui/es/controls/AddFormView";
8
8
  const NewColumnDocumentForm = (props) => {
9
- const { type, columnName } = props;
9
+ const { columnName } = props;
10
10
  const { user } = useApplicationContext();
11
11
  const store = useDocumentStore();
12
12
  const meta = useMetaStore();
13
13
  const [state] = useState(new State(store, user));
14
14
  const [createData, setCreateData] = useState();
15
15
  state.parentId = props.parentId;
16
- return observe(() => (React.createElement(AddFormView, { title: `Add ${type} in ${columnName}`, onCancel: onCancel, onSubmit: () => state.onSubmit(createData).then(() => onCancel()) }, /^(Deal|Quotation|Form|Case|CLDA)$/.test(type) ? (React.createElement("div", null, type &&
16
+ state.type = props.type;
17
+ return observe(() => (React.createElement(AddFormView, { title: `Add ${state.type} in ${columnName}`, onCancel: onCancel, onSubmit: () => state.onSubmit(createData).then(() => onCancel()) }, /^(Deal|Quotation|Form|Case|CLDA)$/.test(state.type) ? (React.createElement("div", null, state.type &&
17
18
  meta.getNewForm({
18
19
  id: "",
19
- type: type,
20
+ type: state.type,
20
21
  }, {
21
22
  type: "mini",
22
23
  onCancel: onCancel,
@@ -25,7 +26,7 @@ const NewColumnDocumentForm = (props) => {
25
26
  React.createElement(Form.Item, null,
26
27
  React.createElement(Spin, { spinning: !!state.loading },
27
28
  React.createElement("div", { className: "form-item-layout" },
28
- React.createElement(Input, { autoFocus: true, placeholder: `Add a ${type === "Document" ? "Folder" : type} for state Document`, onChange: (e) => setCreateData({ Name: e.target.value }) })))))))));
29
+ React.createElement(Input, { autoFocus: true, placeholder: `Add a ${state.type === "Document" ? "Folder" : state.type} for state Document`, onChange: (e) => setCreateData({ Name: e.target.value }) })))))))));
29
30
  function onCancel() {
30
31
  var _a;
31
32
  setCreateData(undefined);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/NewColumnDocumentForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,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KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAC9C,qBAAqB,EACrB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,aAAa,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,GACvD,CACG,CACA,CACI,CACN,CACP,CACY,CACd,CAAC,CAAC;IAEH,SAAS,QAAQ;;QAChB,aAAa,CAAC,SAAS,CAAC,CAAC;QACzB,MAAA,KAAK,CAAC,QAAQ,qDAAI,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -1,13 +1,14 @@
1
- import React from "react";
1
+ import React, { useState } from "react";
2
2
  import { observe } from "@voplus/morpho-ui";
3
3
  import { Skeleton, Pagination } from "antd";
4
- import { useElementWidth } from "./useElementWidth";
5
4
  import { useApplicationContext } from "@voplus/morpho-data";
6
5
  import { FontAwesomeIcon as FAIcon, faFolderOpenSolid } from "@voplus/morpho-ui/es/faIcons";
7
6
  import { Restore, Open, Versions, Download, } from "@voplus/morpho-document/es/controls/DocumentToolbar/buttons";
8
7
  import { useMetaStore, useDocumentStore } from "@voplus/morpho-document-core";
8
+ import ResponsiveGridContainer from "@voplus/morpho-ui/es/controls/ResponsiveGrid/ResponsiveGridContainer";
9
9
  import DocumentDataIconBar from "@voplus/morpho-document/es/controls/DocumentDataIconBar";
10
10
  import DocumentToolbar from "@voplus/morpho-document/es/controls/DocumentToolbar";
11
+ import GridColumn from "@voplus/morpho-ui/es/controls/ResponsiveGrid/GridColumn";
11
12
  import MentionList from "@voplus/morpho-org/es/controls/MentionList";
12
13
  import TagView from "@voplus/morpho-org/es/modules/tag/TagView";
13
14
  const GridView = (props) => {
@@ -15,37 +16,36 @@ const GridView = (props) => {
15
16
  const { user } = useApplicationContext();
16
17
  const meta = useMetaStore();
17
18
  const store = useDocumentStore();
18
- const [currentPage, setCurrentPage] = React.useState(1);
19
- // 使用自定义 hook 检测宽度
20
- const [gridRef, , isNarrow] = useElementWidth(1200);
21
- return observe(() => (React.createElement(Skeleton, { loading: list.loading, active: true, paragraph: { rows: 3 } }, list.data.length > 0 ? (React.createElement(React.Fragment, null,
22
- React.createElement("div", { ref: gridRef, className: `grid gap-4 items-stretch [grid-auto-rows:1fr] ` +
23
- (isNarrow ? "grid-cols-2" : "grid-cols-1 md:grid-cols-2 lg:grid-cols-3") }, list.data.map((doc) => (React.createElement("div", { key: doc.id, onClick: () => { var _a; return (_a = props.onItemClick) === null || _a === void 0 ? void 0 : _a.call(props, doc.id); }, className: "group relative bg-white border rounded-lg p-4 hover:shadow-md transition-all cursor-pointer border-slate-200" },
24
- React.createElement("div", { className: "absolute top-2 right-2" },
25
- React.createElement(DocumentToolbar, { id: doc.id },
26
- React.createElement(Open, { url: meta.getRoute(doc) }),
27
- doc.status === "Archived" && React.createElement(Restore, null),
28
- React.createElement(Versions, null),
29
- doc.type === "File" && React.createElement(Download, null))),
30
- React.createElement("div", { className: "flex items-start gap-3" },
31
- React.createElement("div", { className: "flex-shrink-0 text-slate-500 text-xl" }, meta.getIcon(doc)),
32
- React.createElement("div", { className: "flex-1 min-w-0" },
33
- React.createElement("h3", { className: "font-semibold text-slate-900 truncate group-hover:text-blue-600 transition-colors" }, doc.name),
34
- React.createElement("div", { className: "mt-2 flex flex-wrap items-center! gap-2 text-xs text-slate-500" },
35
- React.createElement(MentionList, { contacts: doc.createdBy ? [doc.createdBy] : [], placeholder: "no Data", canEdit: false }),
36
- React.createElement("div", null,
37
- React.createElement(DocumentDataIconBar, { id: doc.id }))),
38
- React.createElement(TagView, { id: doc.id, tags: doc.tags, items: store.items, editable: user.can("edit", doc.p, { asset: "Tags" }) && !doc.readonly }))))))),
39
- React.createElement("div", { className: "flex justify-end mt-4" },
40
- React.createElement(Pagination, { current: currentPage, total: total, pageSize: 10, onChange: (newPage, newPageSize) => {
41
- var _a;
42
- setCurrentPage(newPage);
43
- (_a = props.onPageChange) === null || _a === void 0 ? void 0 : _a.call(props, newPage, newPageSize);
44
- } })))) : (React.createElement("div", { className: "text-center py-12" },
45
- React.createElement("div", { className: "mb-4" },
46
- React.createElement(FAIcon, { icon: faFolderOpenSolid, className: "text-slate-300 text-6xl" })),
47
- React.createElement("h3", { className: "text-lg font-semibold text-slate-900 mb-2" }, "No documents found"),
48
- React.createElement("p", { className: "text-slate-600" }, "Try adjusting your filters or create a new document."))))));
19
+ const [currentPage, setCurrentPage] = useState(1);
20
+ return observe(() => (React.createElement(ResponsiveGridContainer, { breakpoints: { xl: 4, lg: 4, md: 3, sm: 2, xs: 2 } }, ({ cols }) => {
21
+ return (React.createElement(Skeleton, { loading: list.loading, active: true, paragraph: { rows: 3 } }, list.data.length > 0 ? (React.createElement(React.Fragment, null,
22
+ React.createElement(GridColumn, { cols: cols }, list.data.map((doc) => (React.createElement("div", { key: doc.id, onClick: () => { var _a; return (_a = props.onItemClick) === null || _a === void 0 ? void 0 : _a.call(props, doc.id); }, className: "group relative bg-white border rounded-lg p-4 hover:shadow-md transition-all cursor-pointer border-slate-200" },
23
+ React.createElement("div", { className: "absolute top-2 right-2" },
24
+ React.createElement(DocumentToolbar, { id: doc.id },
25
+ React.createElement(Open, { url: meta.getRoute(doc) }),
26
+ doc.status === "Archived" && React.createElement(Restore, null),
27
+ React.createElement(Versions, null),
28
+ doc.type === "File" && React.createElement(Download, null))),
29
+ React.createElement("div", { className: "flex items-start gap-3" },
30
+ React.createElement("div", { className: "flex-shrink-0 text-slate-500 text-xl" }, meta.getIcon(doc)),
31
+ React.createElement("div", { className: "flex-1 min-w-0" },
32
+ React.createElement("h3", { className: "font-semibold text-slate-900 truncate group-hover:text-blue-600 transition-colors" }, doc.name),
33
+ React.createElement("div", { className: "mt-2 flex flex-wrap items-center! gap-2 text-xs text-slate-500" },
34
+ React.createElement(MentionList, { contacts: doc.createdBy ? [doc.createdBy] : [], placeholder: "no Data", canEdit: false }),
35
+ React.createElement("div", null,
36
+ React.createElement(DocumentDataIconBar, { id: doc.id }))),
37
+ React.createElement(TagView, { id: doc.id, tags: doc.tags, items: store.items, editable: user.can("edit", doc.p, { asset: "Tags" }) && !doc.readonly }))))))),
38
+ React.createElement("div", { className: "flex justify-end mt-4" },
39
+ React.createElement(Pagination, { current: currentPage, total: total, pageSize: 10, onChange: (newPage, newPageSize) => {
40
+ var _a;
41
+ setCurrentPage(newPage);
42
+ (_a = props.onPageChange) === null || _a === void 0 ? void 0 : _a.call(props, newPage, newPageSize);
43
+ } })))) : (React.createElement("div", { className: "text-center py-12" },
44
+ React.createElement("div", { className: "mb-4" },
45
+ React.createElement(FAIcon, { icon: faFolderOpenSolid, className: "text-slate-300 text-6xl" })),
46
+ React.createElement("h3", { className: "text-lg font-semibold text-slate-900 mb-2" }, "No documents found"),
47
+ React.createElement("p", { className: "text-slate-600" }, "Try adjusting your filters or create a new document.")))));
48
+ })));
49
49
  };
50
50
  export default GridView;
51
51
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/my-document/SectionTemplate/GridUI/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EACN,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,QAAQ,GACR,MAAM,6DAA6D,CAAC;AAErE,OAAO,EAAa,YAAY,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACzF,OAAO,mBAAmB,MAAM,yDAAyD,CAAC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EACZ,QAAQ,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE;;wBAClC,cAAc,CAAC,OAAO,CAAC,CAAC;wBACxB,MAAA,KAAK,CAAC,YAAY,sDAAG,OAAO,EAAE,WAAW,CAAC,CAAC;oBAC5C,CAAC,GACA,CACG,CACJ,CACH,CAAC,CAAC,CAAC,CACH,6BAAK,SAAS,EAAC,mBAAmB;YACjC,6BAAK,SAAS,EAAC,MAAM;gBACpB,oBAAC,MAAM,IAAC,IAAI,EAAE,iBAAiB,EAAE,SAAS,EAAC,yBAAyB,GAAG,CAClE;YACN,4BAAI,SAAS,EAAC,2CAA2C,yBAAwB;YACjF,2BAAG,SAAS,EAAC,gBAAgB,2DAEzB,CACC,CACN,CACS,CACX,CAAC;IACH,CAAC,CACwB,CAC1B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,5 +1,5 @@
1
- import { NewNotificationFormProps } from "./NotificationForm";
2
1
  import React from "react";
2
+ import { NewNotificationFormProps } from "./NotificationForm";
3
3
  declare const NewNotificationFormDialog: {
4
4
  (props: NewNotificationFormProps): React.JSX.Element;
5
5
  defaultProps: {
@@ -1,7 +1,7 @@
1
- import Content from "./NotificationForm";
2
- import { observe } from "@voplus/morpho-ui";
3
- import { Modal } from "antd";
4
1
  import React from "react";
2
+ import { Modal } from "antd";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import Content from "./NotificationForm";
5
5
  const NewNotificationFormDialog = (props) => {
6
6
  return observe(() => (React.createElement(Modal, { title: "New Notification Form Dialog", open: true, closable: false, footer: null, onCancel: props.onCancel },
7
7
  React.createElement(Content, { ...props }))));
@@ -1 +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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NewNotificationForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,OAAqC,MAAM,oBAAoB,CAAC;AAEvE,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 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,0DAA0D,CAAC;AAChF,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,YAAY,MAAM,6CAA6C,CAAC;AACvE,OAAO,OAAO,MAAM,kDAAkD,CAAC;AACvE,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,aAAa,CAAC;AAErB,MAAM,gBAAgB,GAAG,CAAC,KAA2C,EAAE,EAAE;IACxE,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,YAAY,GAAG,eAAe,CAAC,EAAE,CAAC,CAAC;IAEzC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,YAAY,IACZ,SAAS,EAAC,6BAA6B,EACvC,WAAW,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,EACnC,YAAY,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,EACrC,cAAc,EAAE,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,GAAI;QAE1C,oBAA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gBAAgB,CAAC"}
@@ -1,14 +1,28 @@
1
1
  import React from "react";
2
- import { INotification } from "../../../../data/notification-workspace";
3
- import "./index.css";
2
+ import { FilterOption } from "@voplus/morpho-data";
4
3
  export type NotificationListProps = {
5
- /** status of notifications shown on the list. */
6
- status: string;
7
- /** The current active item */
8
- active?: string;
9
- /** Call back when an item has been clicked on the list. */
10
- onClickItem?: (ev: React.MouseEvent<HTMLDivElement, MouseEvent>, item: INotification) => void;
11
- onClickStatus?: (status: string) => void;
4
+ /** 需要 corporate 或者 customer id */
5
+ parentId: string;
6
+ /** 如传入 unit Organization, 并且 mainContacts 有内容, Recipients 会自动显示 mainContacts 的内容 */
7
+ unitForRecipients?: {
8
+ id: string;
9
+ name: string;
10
+ };
11
+ defaultTemplate?: {
12
+ id: string;
13
+ name: string;
14
+ body: string;
15
+ };
16
+ /** 是否允在 listView 内部打开 aside */
17
+ asideable?: boolean;
18
+ filterOptions?: FilterOption[];
19
+ /** Call back when received total number of All New Notification. */
20
+ onTotal?: (total: number) => void;
21
+ };
22
+ declare const NotificationList: {
23
+ (props: NotificationListProps): React.JSX.Element;
24
+ defaultProps: {
25
+ asideable: boolean;
26
+ };
12
27
  };
13
- declare const NotificationList: (props: NotificationListProps) => React.JSX.Element;
14
28
  export default NotificationList;
@@ -1,102 +1,78 @@
1
- import React, { useEffect, useState, useMemo } from "react";
2
- import { useNotificationListInWorkSpaceEffect, useNotificationStore, } from "../../../../data/notification-workspace";
3
- import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
1
+ import React, { useEffect, useState } from "react";
2
+ import { useAutoUpdateListData, useNotificationListEffect, } from "../../../../data/notification";
3
+ import { useUnitStore } from "@voplus/morpho-org";
4
4
  import { observe, useRenderOnChange } from "@voplus/morpho-ui";
5
- import { message, Alert } from "antd";
6
5
  import { useApplicationContext } from "@voplus/morpho-data";
7
- import { runInAction } from "mobx";
8
- import NotificationListHeader from "../NotificationListHeader";
9
- import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
10
- import DocumentNotificationCard from "../DocumentNotificationCard";
11
- import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
12
- import Viewer from "@voplus/morpho-text/es/controls/ProseMirror/Viewer";
13
- import NodePropertiesView from "@voplus/morpho-document-core/es/components/NodePropertiesView";
14
- import { NotificationListContext, NotificationListState } from "./state";
15
- import { useUnit } from "@voplus/morpho-org/es/data";
16
- import S from "string";
17
- import "./index.css";
6
+ import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data/ListDataContext";
7
+ import { useViewLayoutContext } from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout/ViewLayoutContext";
8
+ import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView";
9
+ import NotificationForm from "../NewNotificationForm/NotificationForm";
10
+ import NotificationItem from "../NotificationItem";
18
11
  const NotificationList = (props) => {
19
- const store = useNotificationStore();
12
+ const { parentId, asideable, filterOptions } = props;
20
13
  const { user } = useApplicationContext();
21
- const context = useMemo(() => new NotificationListState(), []);
22
- const [asideContext] = useState(AsideContent.createContext());
23
- const list = useCreateListDataState({ filterDefaults: { filters: filters() } }, [
24
- props.status,
25
- ]);
26
- const unit = useUnit(user.info.unit.id, { includes: "notes" });
27
- /** 如果 list.filters.options变更了就重渲染,使下一行的useNotificationListEffect 可以接收新参数*/
14
+ const unitStore = useUnitStore();
15
+ const layoutContext = useViewLayoutContext();
16
+ const [recipients, setRecipients] = useState();
17
+ useEffect(() => {
18
+ var _a;
19
+ if ((_a = props.unitForRecipients) === null || _a === void 0 ? void 0 : _a.id) {
20
+ unitStore.load(props.unitForRecipients.id, { includes: "main-contacts" }).then((res) => {
21
+ var _a;
22
+ if ((_a = res === null || res === void 0 ? void 0 : res.mainContacts) === null || _a === void 0 ? void 0 : _a.length) {
23
+ setRecipients(res.mainContacts);
24
+ }
25
+ else {
26
+ setRecipients([props.unitForRecipients]);
27
+ }
28
+ });
29
+ }
30
+ }, []);
31
+ const list = useCreateListDataState({
32
+ filterDefaults: {
33
+ includes: "recipients",
34
+ filters: filters(),
35
+ },
36
+ }, [parentId, filterOptions]);
37
+ useAutoUpdateListData(list, (d) => d.target.id === parentId);
28
38
  useRenderOnChange(() => list.filters.options);
29
- /** 把ListDataState传给useNotificationListEffect,使之可以自動更新loading, hasmore. */
30
- useNotificationListInWorkSpaceEffect(list, (result, total) => {
39
+ useNotificationListEffect(list, (result, total) => {
40
+ var _a;
31
41
  list.union(result);
42
+ (_a = props.onTotal) === null || _a === void 0 ? void 0 : _a.call(props, total !== null && total !== void 0 ? total : 0);
32
43
  }, {
33
44
  Total: true,
34
45
  ...list.filters.options,
35
46
  });
36
- useEffect(() => {
37
- if (props.active) {
38
- runInAction(() => {
39
- store
40
- .load(props.active, { onError: (e) => message.error(e) })
41
- .then((res) => {
42
- if (!(list.data.filter((i) => i.id === res.id).length > 0))
43
- list.insert(res, 0);
44
- if (res.status === "Unread")
45
- editStatus(res.id, "Read");
46
- asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(NodePropertiesView, { node: res.node }), { span: 12 });
47
- })
48
- .catch((e) => { });
49
- });
50
- }
51
- }, [props.active]);
52
47
  return observe(() => {
53
- var _a;
54
48
  return (React.createElement(ListDataContext.Provider, { value: list },
55
- React.createElement(AsideContent, { context: asideContext },
56
- React.createElement(NotificationListContext.Provider, { value: context },
57
- React.createElement("div", { className: "my-space-notifications" },
58
- React.createElement("div", { className: "my-space-alert-content" }, (_a = unit.notes) === null || _a === void 0 ? void 0 : _a.map((n, i) => (React.createElement(Alert, { key: i, showIcon: true, closable: true, type: (n.type.substring(0, 1).toLowerCase() + n.type.substring(1)), className: "dashboard-alert normal-alert notifications-alert", message: React.createElement(React.Fragment, null,
59
- React.createElement("div", { className: "title-group" }, n.group),
60
- React.createElement(Viewer, { html: n.note })) })))),
61
- React.createElement(NotificationListHeader, { status: props.status, onClickStatus: props.onClickStatus }),
62
- React.createElement(ListView, { headerProps: { visible: false }, className: "notifications-list", asideable: false, renderItem: ({ item }) => (React.createElement(DocumentNotificationCard, { className: "doc-notification-card", id: item.id, active: props.active === item.id, onClick: (ev) => {
63
- var _a, _b;
64
- // const path = ev.nativeEvent.composedPath();
65
- // const visible = path.some(
66
- // (item: any) => item.className === "notification-card-content"
67
- // );
68
- /** fix: notification card里的任何对话框(比如:pdf/file viewer quick view) 任何button 都按不了,一按就close */
69
- if ((_a = item === null || item === void 0 ? void 0 : item.node) === null || _a === void 0 ? void 0 : _a.id) {
70
- (_b = props.onClickItem) === null || _b === void 0 ? void 0 : _b.call(props, ev, item);
71
- }
72
- }, onChangeStatus: (status) => editStatus(item.id, status) })) }))))));
49
+ React.createElement(ListView, { className: "all-new-list-view", headerProps: {
50
+ headerToolProps: {
51
+ visible: true,
52
+ /* 暂时直接检查 是不是外部用户, 是就不显示 */
53
+ addAble: !user.info.guest,
54
+ sortable: false,
55
+ onAdd: onAdd,
56
+ searchOptions: { placeholder: "Search in notifications" },
57
+ },
58
+ }, asideable: asideable, renderItem: ({ item }) => (React.createElement(NotificationItem, { key: item.id, id: item.id })) })));
73
59
  });
74
- function filters() {
75
- if (props.status == "all")
76
- return [];
77
- return [
78
- {
79
- c: "Status",
80
- o: "=",
81
- l: "And",
82
- v1: S(props.status).capitalize().toString(),
83
- },
84
- ];
85
- }
86
- function editStatus(id, status) {
87
- runInAction(async () => {
88
- var _a;
89
- const item = store.items.get(id);
90
- const old = item.status;
91
- await store.edit(id, { data: { status: status }, error: "message" });
92
- context.updateNotificationTotal(old, item.status);
93
- if (props.status === "unread" && item.status === "Read")
94
- return;
95
- list.remove(item.id, { delay: 300 });
96
- if (((_a = list.data) === null || _a === void 0 ? void 0 : _a.length) <= 1)
97
- list.triggerNextPage();
60
+ function onAdd(asideContext) {
61
+ asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(NotificationForm, { showView: true, targetId: props.parentId, recipients: recipients, defaultTemplate: props.defaultTemplate }), {
62
+ span: (layoutContext === null || layoutContext === void 0 ? void 0 : layoutContext.asideColSpan) ? layoutContext.asideColSpan : 12,
98
63
  });
99
64
  }
65
+ function filters() {
66
+ let filter = [];
67
+ if (parentId)
68
+ filter.push({ c: "Target", o: "=", l: "And", v1: parentId });
69
+ if (filterOptions)
70
+ filter = filterOptions;
71
+ return filter;
72
+ }
73
+ };
74
+ NotificationList.defaultProps = {
75
+ asideable: true,
100
76
  };
101
77
  export default NotificationList;
102
78
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAIN,oCAAoC,EACpC,oBAAoB,GACpB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,qBAAqB,EAAgB,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,sBAAsB,MAAM,2BAA2B,CAAC;AAC/D,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,wBAAwB,MAAM,6BAA6B,CAAC;AACnE,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,MAAM,MAAM,oDAAoD,CAAC;AACxE,OAAO,kBAAkB,MAAM,+DAA+D,CAAC;AAC/F,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB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;YAAE,OAAO,EAAE,CAAC;QACrC,OAAO;YACN;gBACC,CAAC,EAAE,QAAQ;gBACX,CAAC,EAAE,GAAG;gBACN,CAAC,EAAE,KAAK;gBACR,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE;aAC3B;SACjB,CAAC;IACH,CAAC;IAED,SAAS,UAAU,CAAC,EAAU,EAAE,MAA0B;QACzD,WAAW,CAAC,KAAK,IAAI,EAAE;;YACtB,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YACjC,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC;YACxB,MAAM,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;YACrE,OAAO,CAAC,uBAAuB,CAAC,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;YAClD,IAAI,KAAK,CAAC,MAAM,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM;gBAAE,OAAO;YAChE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;YAErC,IAAI,CAAA,MAAA,IAAI,CAAC,IAAI,0CAAE,MAAM,KAAI,CAAC;gBAAE,IAAI,CAAC,eAAe,EAAE,CAAC;QACpD,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAEN,qBAAqB,EACrB,yBAAyB,GAC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I,EAA8B,EAAE,EAAE,CAAC,CACrD,oBAAC,gBAAgB,IAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,CAC/C,GACA,CACwB,CAC3B,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,SAAS,KAAK,CAAC,YAA0B;QACxC,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,CACtB,oBAAC,gBAAgB,IAChB,QAAQ,QACR,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,UAAU,EAAE,UAAU,EACtB,eAAe,EAAE,KAAK,CAAC,eAAe,GACrC,EACF;YACC,IAAI,EAAE,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,YAAY,EAAC,CAAC,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE;SACnE,CACD,CAAC;IACH,CAAC;IAED,SAAS,OAAO;QACf,IAAI,MAAM,GAAmB,EAAE,CAAC;QAChC,IAAI,QAAQ;YAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;QAE3E,IAAI,aAAa;YAAE,MAAM,GAAG,aAAa,CAAC;QAE1C,OAAO,MAAM,CAAC;IACf,CAAC;AACF,CAAC,CAAC;AAEF,gBAAgB,CAAC,YAAY,GAAG;IAC/B,SAAS,EAAE,IAAI;CACf,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,7 +1,16 @@
1
- import React from "react";
2
- declare const NotificationListHeader: (props: {
3
- /** status of notifications shown on the list. */
4
- status: string;
5
- onClickStatus?: (status: string) => void;
6
- }) => React.JSX.Element;
1
+ import React, { ReactNode } from "react";
2
+ export type NotificationListHeaderProps = {
3
+ /** title */
4
+ title?: ReactNode;
5
+ /** description */
6
+ description?: ReactNode;
7
+ onAdd?: () => void;
8
+ };
9
+ declare const NotificationListHeader: {
10
+ (props: NotificationListHeaderProps): React.JSX.Element;
11
+ defaultProps: {
12
+ title: string;
13
+ description: string;
14
+ };
15
+ };
7
16
  export default NotificationListHeader;
@@ -1,76 +1,22 @@
1
- import React, { useEffect, useState } from "react";
1
+ import React from "react";
2
2
  import { observe } from "@voplus/morpho-ui";
3
- import { Button, Divider } from "antd";
4
- import { runInAction } from "mobx";
5
- import { useLayout } from "@voplus/morpho-data";
6
- import { FlagFilter } from "@voplus/morpho-document/es/controls/filters";
7
- import { useNotificationListInWorkSpaceEffect } from "../../../../data/notification-workspace";
8
3
  import { useApplicationContext } from "@voplus/morpho-data";
9
4
  import { FontAwesomeIcon as FAIcon, faBellSolid } from "@voplus/morpho-ui/es/faIcons";
10
- import { useNotificationListContext } from "../NotificationList/state";
11
- import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
12
5
  import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
13
- import classnames from "classnames";
14
6
  const NotificationListHeader = (props) => {
15
- const layout = useLayout();
16
- const mobile = layout.ui.mobile;
17
- const context = useApplicationContext();
18
- const nContext = useNotificationListContext();
19
- const [statusActive, setStatusActive] = useState("all");
20
- useEffect(() => {
21
- setStatusActive(props.status);
22
- }, [props.status]);
23
- useNotificationListInWorkSpaceEffect(null, (result, total) => runInAction(() => (nContext.notificationTotals.unread = total || 0)), nContext.nUnreadOptions);
24
- useNotificationListInWorkSpaceEffect(null, (result, total) => runInAction(() => (nContext.notificationTotals.read = total || 0)), nContext.nReadOptions);
25
- useNotificationListInWorkSpaceEffect(null, (result, total) => runInAction(() => (nContext.notificationTotals.later = total || 0)), nContext.nLaterOptions);
26
- useNotificationListInWorkSpaceEffect(null, (result, total) => runInAction(() => (nContext.notificationTotals.dismissed = total || 0)), nContext.nDismissedOptions);
27
- return observe(() => {
28
- const statusMenu = [
29
- {
30
- key: "all",
31
- label: "All",
32
- total: undefined,
33
- },
34
- {
35
- key: "unread",
36
- label: "Unread",
37
- total: nContext.notificationTotals.unread,
38
- },
39
- {
40
- key: "read",
41
- label: "Read",
42
- total: nContext.notificationTotals.read,
43
- },
44
- {
45
- key: "later",
46
- label: "Later",
47
- total: nContext.notificationTotals.later,
48
- },
49
- {
50
- key: "dismissed",
51
- label: "Dismissed",
52
- total: undefined,
53
- },
54
- ];
55
- const ListHeader = () => (React.createElement(ListHeaderTool, { addAble: false, filterViewProps: context.host.isTest
56
- ? {
57
- columns: [React.createElement(FlagFilter, { key: "Flag" })],
58
- }
59
- : undefined, sortable: context.host.isTest ? true : false, searchHeader: context.host.isTest ? true : false, searchOptions: { placeholder: "Search in notifications" }, preExtra: () => (React.createElement("div", { className: "notifications-status" },
60
- statusMenu.map((item) => (React.createElement(Button, { key: item.key, className: classnames(item, {
61
- active: statusActive === item.key,
62
- }), onClick: () => onClickStatus(item.key) },
63
- item.label,
64
- " ",
65
- (item === null || item === void 0 ? void 0 : item.total) ? ` (${item.total})` : ""))),
66
- context.host.isTest && !mobile && React.createElement(Divider, { type: "vertical" }))) }));
67
- return (React.createElement("div", { className: classnames("notifications-header", { mobile: mobile }) }, !mobile ? (React.createElement(PageHeadDashboard, { headerType: "page", avatarIcon: React.createElement(FAIcon, { icon: faBellSolid }), title: "Your Notifications Center", description: "Stay updated: your latest alerts and notifications", moreExpansions: React.createElement(ListHeader, null) })) : (React.createElement(ListHeader, null))));
68
- });
69
- function onClickStatus(item) {
70
- var _a;
71
- setStatusActive(item);
72
- (_a = props.onClickStatus) === null || _a === void 0 ? void 0 : _a.call(props, item);
73
- }
7
+ const { user } = useApplicationContext();
8
+ return observe(() => (React.createElement(PageHeadDashboard, { className: "all-new-notifications-header", headerType: "page", avatarIcon: React.createElement(FAIcon, { icon: faBellSolid }), title: props.title, description: props.description, listHeaderProps: {
9
+ visible: true,
10
+ /* 暂时直接检查 是不是外部用户, 是就不显示 */
11
+ addAble: !user.info.guest,
12
+ sortable: false,
13
+ onAdd: props.onAdd,
14
+ searchOptions: { placeholder: "Search in notifications" },
15
+ } })));
16
+ };
17
+ NotificationListHeader.defaultProps = {
18
+ title: "Notification Creation",
19
+ description: "Set up your notification list effortlessly.",
74
20
  };
75
21
  export default NotificationListHeader;
76
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationListHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AACzE,OAAO,EAAE,oCAAoC,EAAE,MAAM,yCAAyC,CAAC;AAC/F,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,cAAc,MAAM,wEAAwE,CAAC;AACpG,OAAO,iBAAiB,MAAM,kEAAkE,CAAC;AACjG,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,sBAAsB,GAAG,CAAC,KAK/B,EAAE,EAAE;IACJ,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC;IAChC,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAC;IACxC,MAAM,QAAQ,GAAG,0BAA0B,EAAE,CAAC;IAC9C,MAAM,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GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC;oBAErC,IAAI,CAAC,KAAK;;oBAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,EAAC,CAAC,CAAC,KAAK,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,CAC3C,CACT,CAAC;gBAED,OAAO,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,IAAI,oBAAC,OAAO,IAAC,IAAI,EAAC,UAAU,GAAG,CACzD,CACN,GACA,CACF,CAAC;QAEF,OAAO,CACN,6BAAK,SAAS,EAAE,UAAU,CAAC,sBAAsB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,IACpE,CAAC,MAAM,CAAC,CAAC,CAAC,CACV,oBAAC,iBAAiB,IACjB,UAAU,EAAC,MAAM,EACjB,UAAU,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI,EACzC,KAAK,EAAC,2BAA2B,EACjC,WAAW,EAAC,oDAAoD,EAChE,cAAc,EAAE,oBAAC,UAAU,OAAG,GAC7B,CACF,CAAC,CAAC,CAAC,CACH,oBAAC,UAAU,OAAG,CACd,CACI,CACN,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,SAAS,aAAa,CAAC,IAAY;;QAClC,eAAe,CAAC,IAAI,CAAC,CAAC;QACtB,MAAA,KAAK,CAAC,aAAa,sDAAG,IAAI,CAAC,CAAC;IAC7B,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationListHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,iBAAiB,MAAM,kEAAkE,CAAC;AAUjG,MAAM,sBAAsB,GAAG,CAAC,KAAkC,EAAE,EAAE;IACrE,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAEzC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,iBAAiB,IACjB,SAAS,EAAC,8BAA8B,EACxC,UAAU,EAAC,MAAM,EACjB,UAAU,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI,EACzC,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,WAAW,EAAE,KAAK,CAAC,WAAW,EAC9B,eAAe,EAAE;YAChB,OAAO,EAAE,IAAI;YACb,2BAA2B;YAC3B,OAAO,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK;YACzB,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,aAAa,EAAE,EAAE,WAAW,EAAE,yBAAyB,EAAE;SACzD,GACA,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,sBAAsB,CAAC,YAAY,GAAG;IACrC,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EAAE,6CAA6C;CAC1D,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -1,15 +1,15 @@
1
- import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
2
1
  import React, { useMemo } from "react";
3
2
  import { observe } from "@voplus/morpho-ui";
4
- import NotificationMenu from "../../controls/NotificationMenu";
5
- import NotificationTabs from "../NotificationTabs";
6
- import { FontAwesomeIcon as FAIcon, faBellSolid } from "@voplus/morpho-ui/es/faIcons";
7
3
  import { useHandleError } from "@voplus/morpho-document-core";
8
4
  import { useNotification } from "../../../../data/notification";
5
+ import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
6
+ import { FontAwesomeIcon as FAIcon, faBellSolid } from "@voplus/morpho-ui/es/faIcons";
9
7
  import PropertiesHeader from "@voplus/morpho-org/es/components/PropertiesHeader";
8
+ import NotificationMenu from "../../controls/NotificationMenu";
9
+ import NotificationTabs from "../NotificationTabs";
10
10
  import Routes from "../../../Routes";
11
- import "./index.css";
12
11
  import classnames from "classnames";
12
+ import "./index.css";
13
13
  const NotificationPropertiesView = (props) => {
14
14
  const id = props.id;
15
15
  const handleError = useHandleError();
@@ -1 +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,gBAAgB,MAAM,iCAAiC,CAAC;AAC/D,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,gBAAgB,MAAM,mDAAmD,CAAC;AACjF,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,aAAa,CAAC;AACrB,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,0BAA0B,GAAG,CAAC,KAAwC,EAAE,EAAE;IAC/E,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IACtE,MAAM,YAAY,GAAG,eAAe,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;IAEnE,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;YAChC,6BACC,SAAS,EAAE,UAAU,CAAC,iDAAiD,EAAE;oBACxE,IAAI,EAAE,CAAC,YAAY,CAAC,KAAK;iBACzB,CAAC;gBAEF,oBAAC,gBAAgB,IAChB,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI,EACnC,QAAQ,EAAE,MAAA,YAAY,CAAC,OAAO,mCAAI,cAAc,EAChD,GAAG,EAAE,MAAM,CAAC,uBAAuB,CAAC,MAAM,CAAC,EAAE,CAAC,EAC9C,eAAe,EAAE,IAAI,EACrB,QAAQ,EAAE,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,GACvD;gBACF,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CAClC,CACgB,CACvB,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;A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