@voplus/morpho-workspace 6.0.98 → 6.0.99

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,6 @@ import { IDocument } from "@voplus/morpho-document-core";
4
4
  /** Meta information for Board document. */
5
5
  export declare class BoardTypeMeta extends DefaultDocumentTypeMeta {
6
6
  static TypeName: string;
7
- getRoute(document: IDocument): string;
8
7
  get name(): string;
9
8
  getIcon(document: IDocument): JSX.Element;
10
9
  getTabUrl(document: IDocument): string;
@@ -6,9 +6,6 @@ import { faColumns } from "@fortawesome/pro-solid-svg-icons";
6
6
  const DefaultView = lazy(() => import("../../modules/board/pages/BoardPage"));
7
7
  /** Meta information for Board document. */
8
8
  export class BoardTypeMeta extends DefaultDocumentTypeMeta {
9
- getRoute(document) {
10
- return `/boards/${document.id}`;
11
- }
12
9
  get name() {
13
10
  return BoardTypeMeta.TypeName;
14
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"metas.js","sourceRoot":"","sources":["../../../src/data/board/metas.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAE7D,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,qCAAqC,CAAC,CAAC,CAAC;AAE9E,2CAA2C;AAC3C,MAAM,OAAO,aAAc,SAAQ,uBAAuB;IAGlD,QAAQ,CAAC,QAAmB;QAClC,OAAO,WAAW,QAAQ,CAAC,EAAE,EAAE,CAAC;IACjC,CAAC;IAED,IAAW,IAAI;QACd,OAAO,aAAa,CAAC,QAAQ,CAAC;IAC/B,CAAC;IAEM,OAAO,CAAC,QAAmB;QACjC,OAAO,oBAA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 -40,7 +40,7 @@ const BoardTabs = (props) => {
40
40
  },
41
41
  ];
42
42
  return observe(() => (React.createElement(React.Fragment, null,
43
- React.createElement(DocumentTabs, { id: id, active: "Board", tabItems: items, onChange: (key) => setActiveKey(key), tabBarExtraContent: React.createElement("div", null,
43
+ React.createElement(DocumentTabs, { id: id, active: "Board", tabItems: items, onChange: (key) => setActiveKey(key), className: "board-document-tabs", tabBarExtraContent: React.createElement("div", null,
44
44
  activeKey === "Board" && board.status !== "Readonly" && (React.createElement(Button, { type: "link", className: "board-tab-create", onClick: () => setAddBoardColumnAble(true) }, "+ Create New Status")),
45
45
  React.createElement(ToolBar, { id: id, moreProps: { icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) } })) }),
46
46
  addBoardColumnAble && (React.createElement(NewBoardColumnDialog, { parentId: id, onCancel: () => setAddBoardColumnAble(false) })))));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/BoardTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,WAAW,MAAM,2DAA2D,CAAC;AACpF,OAAO,aAAa,MAAM,2BAA2B,CAAC;AACtD,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,KAAK,MAAM,6CAA6C,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,eAAe,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB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jB;gBACE,SAAS,KAAK,OAAO,IAAI,KAAK,CAAC,MAAM,KAAK,UAAU,IAAI,CACxD,oBAAC,MAAM,IACN,IAAI,EAAC,MAAM,EACX,SAAS,EAAC,kBAAkB,EAC5B,OAAO,EAAE,GAAG,EAAE,CAAC,qBAAqB,CAAC,IAAI,CAAC,0BAGlC,CACT;gBACD,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,kBAAkB,GAAI,EAAE,GAAI,CACzE,GAEN;QACD,kBAAkB,IAAI,CACtB,oBAAC,oBAAoB,IAAC,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,qBAAqB,CAAC,KAAK,CAAC,GAAI,CACpF,CACC,CACH,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -2,4 +2,9 @@
2
2
  .board-tab-create {
3
3
  color: #5d5d5d;
4
4
  }
5
+ .board-document-tabs {
6
+ .ant-tabs-nav {
7
+ padding-right: 20px;
8
+ }
9
+ }
5
10
  }
@@ -7,14 +7,17 @@ import { useParams } from "react-router-dom";
7
7
  import { useMetaStore } from "@voplus/morpho-document-core";
8
8
  import { useLayout, useTabItem } from "@voplus/morpho-data";
9
9
  import DocumentPageHeader from "@voplus/morpho-document/es/components/DocumentPageHeader";
10
+ import { useFrame } from "@voplus/morpho-document/es/components/ViewFrame/ViewFrameContext";
10
11
  import { runInAction } from "mobx";
11
12
  import "./index.less";
12
13
  const BoardPage = (props) => {
13
14
  const params = useParams();
15
+ const frame = useFrame();
14
16
  const id = props.id || params.id || "";
15
17
  const meta = useMetaStore();
16
18
  const layout = useLayout();
17
19
  const board = useBoard(id, { includes: "path" });
20
+ frame.header = null;
18
21
  /** set tab title */
19
22
  const tab = useTabItem();
20
23
  useEffect(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../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MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,UAAU,EAAS,CAAC,CAAC;QACjE,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,WAAW,GAAG,EAAE,CAAC,CAAC;IAC/C,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -3,7 +3,7 @@
3
3
  transform: scale(0.9);
4
4
  transform-origin: top left;
5
5
  width: 110%;
6
- height: 110%;
6
+ height: 110% !important;
7
7
  overflow: hidden;
8
8
  // height: 100%;
9
9
  display: flex;
@@ -2,10 +2,13 @@ import React from "react";
2
2
  import { INotification, NotificationStatus } from "../../../../data/notification";
3
3
  import "./index.less";
4
4
  declare const NotificationList: (props: {
5
+ /** status of notifications shown on the list. */
6
+ status: string;
5
7
  /** The current active item */
6
8
  active?: string | undefined;
7
9
  /** Call back when an item has been clicked on the list. */
8
10
  onClickItem?: ((ev: React.MouseEvent<HTMLDivElement, MouseEvent>, item: INotification) => void) | undefined;
11
+ onClickStatus?: ((status: string) => void) | undefined;
9
12
  /** Call back when received total number of notifications. */
10
13
  onTotal?: ((total: number) => void) | undefined;
11
14
  /** Call back when an item's status changed. */
@@ -11,11 +11,12 @@ import { runInAction } from "mobx";
11
11
  import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
12
12
  import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
13
13
  import DocumentNotificationCard from "../DocumentNotificationCard";
14
- import { faBell } from "@fortawesome/pro-duotone-svg-icons";
14
+ import { faBell } from "@fortawesome/pro-solid-svg-icons";
15
15
  import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
16
16
  import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
17
17
  import NodePropertiesView from "@voplus/morpho-document-core/es/components/NodePropertiesView";
18
18
  import classnames from "classnames";
19
+ import S from "string";
19
20
  import "./index.less";
20
21
  const NotificationList = (props) => {
21
22
  const store = useNotificationStore();
@@ -53,6 +54,9 @@ const NotificationList = (props) => {
53
54
  });
54
55
  }
55
56
  }, [props.active]);
57
+ useEffect(() => {
58
+ setStatusActive(S(props.status).capitalize().toString());
59
+ }, [props.status]);
56
60
  const status = ["All", "Unread", "Read", "Later", "Dismissed"];
57
61
  return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
58
62
  React.createElement(AsideContent, { context: asideContext },
@@ -62,8 +66,10 @@ const NotificationList = (props) => {
62
66
  ? {
63
67
  columns: [React.createElement(FlagFilter, { key: "Flag" })],
64
68
  }
65
- : undefined, sortable: context.host.isTest ? true : false, searchHeader: context.host.isTest ? true : false, preExtra: () => (React.createElement("div", { className: "notifications-status" },
66
- status.map((item, index) => (React.createElement(Button, { key: index, className: classnames(item, { active: statusActive === item }), onClick: () => setStatusActive(item) }, item))),
69
+ : 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" },
70
+ status.map((item, index) => (React.createElement(Button, { key: index, className: classnames(item, {
71
+ active: statusActive === item,
72
+ }), onClick: () => onClickStatus(item) }, item))),
67
73
  context.host.isTest && React.createElement(Divider, { type: "vertical" }))) }),
68
74
  React.createElement(ListView, { headerProps: { visible: false }, className: "notifications-list", asideable: false, renderItem: ({ item }) => {
69
75
  return (React.createElement(CSSTransition, { key: item.id, in: list.isRemoving(item.id) !== true, timeout: 300, classNames: "notification-card" },
@@ -97,6 +103,11 @@ const NotificationList = (props) => {
97
103
  list.remove(item.id, { delay: 300 });
98
104
  });
99
105
  }
106
+ function onClickStatus(item) {
107
+ var _a;
108
+ setStatusActive(item);
109
+ (_a = props.onClickStatus) === null || _a === void 0 ? void 0 : _a.call(props, item);
110
+ }
100
111
  };
101
112
  export default NotificationList;
102
113
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot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"}
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,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,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AACzE,OAAO,eAAe,MAAM,gEAAgE,CAAC;AAC7F,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAgB,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,cAAc,MAAM,wEAAwE,CAAC;AACpG,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,wBAAwB,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,kBAAkB,MAAM,+DAA+D,CAAC;AAC/F,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,cAAc,CAAC;AAEtB,MAAM,gBAAgB,GAAG,CAAC,KAiBzB,EAAE,EAAE;IACJ,MAAM,KAAK,GAAG,oBAAoB,EAAE,CAAC;IACrC,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAC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MAAA,KAAK,CAAC,mBAAmB,sDAAG,GAAG,EAAE,IAAI,CAAC,CAAC;YACvC,IAAI,YAAY,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;IAED,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,gBAAgB,CAAC"}
@@ -27,11 +27,7 @@ const Notifications = (props) => {
27
27
  }, [params.status]);
28
28
  return observe(() => error ? (React.createElement(Result, { status: error.toString() })) : (React.createElement("div", { className: "my-notifications" },
29
29
  React.createElement(Skeleton, { loading: params.status === "redirect" },
30
- React.createElement(NotificationList
31
- // status={params.status!}
32
- , {
33
- // status={params.status!}
34
- active: params.active, onClickItem: (ev, item) => {
30
+ React.createElement(NotificationList, { status: params.status, active: params.active, onClickItem: (ev, item) => {
35
31
  layout.history.push(generatePath(props.path, { status: params.status, active: item.id }));
36
32
  }, onTotal: (total) => {
37
33
  runInAction(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/obsolete/space/components/Notifications/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAExC,OAAO,gBAAgB,MAAM,8DAA8D,CAAC;AAE5F,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,E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,EAAE,MAAM,CAAC,MAAM,KAAK,UAAU;YAC9C,oBAAC,gBAAgB;YAChB,0BAA0B;;gBAA1B,0BAA0B;gBAC1B,MAAM,EAAE,MAAM,CAAC,MAAM,EACrB,WAAW,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE;oBACzB,MAAM,CAAC,OAAO,CAAC,IAAI,CAClB,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CACpE,CAAC;gBACH,CAAC,EACD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;oBAClB,WAAW,CAAC,GAAG,EAAE;wBAChB,KAAK,CAAC,KAAK,CAAC,kBAAkB,CAAC,MAAM,CAAC,MAAO,CAAC,GAAG,KAAK,CAAC;oBACxD,CAAC,CAAC,CAAC;gBACJ,CAAC,EACD,mBAAmB,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;oBAClC,KAAK,CAAC,KAAK,CAAC,uBAAuB,CAAC,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;gBACvD,CAAC,GACA,CACQ,CACN,CACN,CACD,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/obsolete/space/components/Notifications/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAExC,OAAO,gBAAgB,MAAM,8DAA8D,CAAC;AAE5F,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,S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C,oBAAC,gBAAgB,IAChB,MAAM,EAAE,MAAM,CAAC,MAAO,EACtB,MAAM,EAAE,MAAM,CAAC,MAAM,EACrB,WAAW,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE;oBACzB,MAAM,CAAC,OAAO,CAAC,IAAI,CAClB,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CACpE,CAAC;gBACH,CAAC,EACD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;oBAClB,WAAW,CAAC,GAAG,EAAE;wBAChB,KAAK,CAAC,KAAK,CAAC,kBAAkB,CAAC,MAAM,CAAC,MAAO,CAAC,GAAG,KAAK,CAAC;oBACxD,CAAC,CAAC,CAAC;gBACJ,CAAC,EACD,mBAAmB,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;oBAClC,KAAK,CAAC,KAAK,CAAC,uBAAuB,CAAC,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;gBACvD,CAAC,GACA,CACQ,CACN,CACN,CACD,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "6.0.98",
3
+ "version": "6.0.99",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",