@voplus/morpho-workspace 6.0.133 → 6.0.134

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,24 +2,29 @@ import React, { useEffect, useState, useMemo } from "react";
2
2
  import { useNotificationListEffect, useNotificationStore, } from "../../../../data/notification";
3
3
  import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
4
4
  import { observe, useRenderOnChange } from "@voplus/morpho-ui";
5
- import { message } from "antd";
5
+ import { message, Alert } from "antd";
6
6
  import { CSSTransition } from "react-transition-group";
7
+ import { useApplicationContext } from "@voplus/morpho-data";
7
8
  import { runInAction } from "mobx";
8
9
  import NotificationListHeader from "../NotificationListHeader";
9
10
  import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
10
11
  import DocumentNotificationCard from "../DocumentNotificationCard";
11
12
  import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
13
+ import Viewer from "@voplus/morpho-text/es/controls/ProseMirror/Viewer";
12
14
  import NodePropertiesView from "@voplus/morpho-document-core/es/components/NodePropertiesView";
13
15
  import { NotificationListContext, NotificationListState } from "./state";
16
+ import { useUnit } from "@voplus/morpho-org/es/data";
14
17
  import S from "string";
15
18
  import "./index.less";
16
19
  const NotificationList = (props) => {
17
20
  const store = useNotificationStore();
21
+ const { user } = useApplicationContext();
18
22
  const context = useMemo(() => new NotificationListState(), []);
19
23
  const [asideContext] = useState(AsideContent.createContext());
20
24
  const list = useCreateListDataState({ filterDefaults: { filters: filters() } }, [
21
25
  props.status,
22
26
  ]);
27
+ const unit = useUnit(user.info.unit.id, { includes: "notes" });
23
28
  /** 如果 list.filters.options变更了就重渲染,使下一行的useNotificaitonListEffect 可以接收新参数*/
24
29
  useRenderOnChange(() => list.filters.options);
25
30
  /** 把ListDataState传给useNotificaitonListEffect,使之可以自動更新loading, hasmore. */
@@ -45,23 +50,27 @@ const NotificationList = (props) => {
45
50
  });
46
51
  }
47
52
  }, [props.active]);
48
- return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
49
- React.createElement(AsideContent, { context: asideContext },
50
- React.createElement(NotificationListContext.Provider, { value: context },
51
- React.createElement("div", { className: "my-space-notifications" },
52
- React.createElement(NotificationListHeader, { status: props.status, onClickStatus: props.onClickStatus }),
53
- React.createElement(ListView, { headerProps: { visible: false }, className: "notifications-list", asideable: false, renderItem: ({ item }) => {
54
- return (React.createElement(CSSTransition, { key: item.id, in: list.isRemoving(item.id) !== true, timeout: 300, classNames: "notification-card" },
55
- React.createElement(DocumentNotificationCard, { id: item.id, active: props.active === item.id ? true : false, className: "doc-notification-card", onClick: (ev) => {
56
- var _a;
57
- const path = ev.nativeEvent.composedPath();
58
- const visible = path.some((item) => item.className === "notification-card-content");
59
- /** fix: notification card里的任何对话框(比如:pdf/file viewer quick view) 任何button 都按不了,一按就close */
60
- if (visible) {
61
- (_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, ev, item);
62
- }
63
- }, onChangeStatus: (status) => editStatus(item.id, status) })));
64
- } })))))));
53
+ return observe(() => {
54
+ var _a;
55
+ return (React.createElement(ListDataContext.Provider, { value: list },
56
+ React.createElement(AsideContent, { context: asideContext },
57
+ React.createElement(NotificationListContext.Provider, { value: context },
58
+ React.createElement("div", { className: "my-space-notifications" },
59
+ React.createElement("div", { className: "my-space-alert-content" }, (_a = unit.notes) === null || _a === void 0 ? void 0 : _a.map((n) => (React.createElement(Alert, { showIcon: true, closable: true, type: (n.type.substring(0, 1).toLowerCase() + n.type.substring(1)), className: "dashboard-alert normal-alert", message: React.createElement(Viewer, { html: n.note }) })))),
60
+ React.createElement(NotificationListHeader, { status: props.status, onClickStatus: props.onClickStatus }),
61
+ React.createElement(ListView, { headerProps: { visible: false }, className: "notifications-list", asideable: false, renderItem: ({ item }) => {
62
+ return (React.createElement(CSSTransition, { key: item.id, in: list.isRemoving(item.id) !== true, timeout: 300, classNames: "notification-card" },
63
+ React.createElement(DocumentNotificationCard, { id: item.id, active: props.active === item.id ? true : false, className: "doc-notification-card", onClick: (ev) => {
64
+ var _a;
65
+ const path = ev.nativeEvent.composedPath();
66
+ const visible = path.some((item) => item.className === "notification-card-content");
67
+ /** fix: notification card里的任何对话框(比如:pdf/file viewer quick view) 任何button 都按不了,一按就close */
68
+ if (visible) {
69
+ (_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, ev, item);
70
+ }
71
+ }, onChangeStatus: (status) => editStatus(item.id, status) })));
72
+ } }))))));
73
+ });
65
74
  function filters() {
66
75
  if (props.status == "all")
67
76
  return [];
@@ -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,yBAAyB,EACzB,oBAAoB,GACpB,MAAM,+BAA+B,CAAC;AACvC,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,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,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,kBAAkB,MAAM,+DAA+D,CAAC;AAC/F,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AACzE,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,cAAc,CAAC;AAEtB,MAAM,gBAAgB,GAAG,CAAC,KAWzB,EAAE,EAAE;IACJ,MAAM,KAAK,G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E,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;QACtC,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,OAAO,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAIN,yBAAyB,EACzB,oBAAoB,GACpB,MAAM,+BAA+B,CAAC;AACvC,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,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,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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C;QACtC,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -10,6 +10,15 @@
10
10
  height: 100%;
11
11
  display: flex;
12
12
  flex-direction: column;
13
+ position: relative;
14
+
15
+ .my-space-alert-content {
16
+ position: absolute;
17
+ width: 500px;
18
+ left: 50%;
19
+ transform: translateX(-50%);
20
+ z-index: 2;
21
+ }
13
22
 
14
23
  .board-header-content {
15
24
  padding-left: 24px;
@@ -18,7 +27,7 @@
18
27
  .list-view-header-tool {
19
28
  padding: 20px 24px 20px;
20
29
 
21
- .search-header-tool{
30
+ .search-header-tool {
22
31
  min-width: 100px;
23
32
  }
24
33
  }
@@ -11,8 +11,8 @@ const WorkSpaceSettingPage = (props) => {
11
11
  return observe(() => {
12
12
  var _a, _b, _c, _d;
13
13
  return (React.createElement("div", null,
14
- React.createElement(SettingPage, { header: React.createElement(React.Fragment, null, "Setting"), className: "workSpace-setting-page" },
15
- React.createElement(SettingSection, null,
14
+ React.createElement(SettingPage, { className: "workSpace-setting-page", pageHeadProps: { visible: true } },
15
+ React.createElement(SettingSection, { className: "setting-section" },
16
16
  React.createElement(Setting, { label: "Members" },
17
17
  React.createElement(MentionList, { contacts: ((_a = wrokspace.settings) === null || _a === void 0 ? void 0 : _a.members) ? (_b = wrokspace.settings) === null || _b === void 0 ? void 0 : _b.members : [], canEdit: true, multiple: true, defaultSelection: "Users", placeholder: "Select an Members", onChange: (list) => {
18
18
  const ids = [];
@@ -1 +1 @@
1
- {"version":3,"file":"SettingPage.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/pages/WorkspacePage/SettingPage.tsx"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,OAAO,OAAO,MAAM,mDAAmD,CAAC;AACxE,OAAO,cAAc,MAAM,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EACtE,OAAO,QACP,QAAQ,QACR,gBAAgB,EAAC,OAAO,EACxB,WAAW,EAAC,kBAAkB,EAC9B,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE;gCAClB,MAAM,GAAG,GAAa,EAAE,CAAC;gCACzB,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gCAChC,MAAM,CAAC;oCACN,QAAQ,EAAE;wCACT,MAAM,EAAE,GAAG;qCACX;iCACD,CAAC,CAAC;4BACJ,CAAC,GACA,CACO,CACM,CACJ,CACT,CACN,CAAA;KAAA,CAAC,CAAC;IAEH,SAAS,MAAM,CAAC,IAAS;QACxB,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE;YACpB,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"SettingPage.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/pages/WorkspacePage/SettingPage.tsx"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,OAAO,OAAO,MAAM,mDAAmD,CAAC;AACxE,OAAO,cAAc,MAAM,0DAA0D,CAAC;AACtF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG7E,MAAM,oBAAoB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACtD,MAAM,KAAK,GAAG,iBAAiB,EAAE,CAAC;IAClC,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAEzC,OAAO,OAAO,CA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CAAC,EAAE,CAAC,CAAC,CAAC;gCAChC,MAAM,CAAC;oCACN,QAAQ,EAAE;wCACT,MAAM,EAAE,GAAG;qCACX;iCACD,CAAC,CAAC;4BACJ,CAAC,GACA,CACO,CACM,CACJ,CACT,CACN,CAAA;KAAA,CAAC,CAAC;IAEH,SAAS,MAAM,CAAC,IAAS;QACxB,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE;YACpB,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -18,7 +18,7 @@
18
18
  :global {
19
19
  .workSpace-setting-page {
20
20
  height: 100%;
21
- padding: 24px !important;
21
+ padding: 20px !important;
22
22
  background: #fff;
23
23
  }
24
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "6.0.133",
3
+ "version": "6.0.134",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",