@voplus/morpho-workspace 6.0.95 → 6.0.96

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,6 +4,7 @@ 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;
7
8
  get name(): string;
8
9
  getIcon(document: IDocument): JSX.Element;
9
10
  getTabUrl(document: IDocument): string;
@@ -6,6 +6,9 @@ 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
+ }
9
12
  get name() {
10
13
  return BoardTypeMeta.TypeName;
11
14
  }
@@ -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;IAGzD,IAAW,IAAI;QACd,OAAO,aAAa,CAAC,QAAQ,CAAC;IAC/B,CAAC;IAEM,OAAO,CAAC,QAAmB;QACjC,OAAO,oBAAC,eAAe,IAAC,IAAI,EAAE,SAAS,GAAI,CAAC;IAC7C,CAAC;IAEM,SAAS,CAAC,QAAmB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}
@@ -2,24 +2,20 @@ import "swiper/css";
2
2
  import { BoardListContextState, BoardtListContext, useBoard, useBoardColumnListEffect, useBoardColumnStore, } from "../../../../data/board";
3
3
  import { CreateDateFilter, DocumentStatusFilter, FlagFilter, } from "@voplus/morpho-document/es/controls/filters";
4
4
  import { DragDropContext, Droppable } from "react-beautiful-dnd";
5
- import { FilterOptionsContext, ListDataContext, useCreateListDataState, } from "@voplus/morpho-ui/es/data";
5
+ import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
6
6
  import React, { useEffect, useState } from "react";
7
7
  import { useLayout } from "@voplus/morpho-data";
8
8
  import { Swiper, SwiperSlide } from "swiper/react";
9
9
  import BoardColumn from "../BoardColumn";
10
- import FilterView from "@voplus/morpho-ui/es/controls/FilterView";
11
10
  import { Observer } from "mobx-react-lite";
12
11
  import Panable from "@voplus/morpho-ui/es/controls/Panable";
13
- import QuickSearch from "@voplus/morpho-ui/es/components/layout/ListView/controls/QuickSearch";
14
- import SortViewDropdown from "@voplus/morpho-ui/es/components/layout/ListView/controls/SortViewDropdown";
12
+ import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
15
13
  import { State } from "./state";
16
14
  import { observe } from "@voplus/morpho-ui";
17
15
  import { runInAction } from "mobx";
18
16
  import styles from "./index.less";
19
17
  import { useDocumentStore } from "@voplus/morpho-document-core";
20
- import { useFrame } from "@voplus/morpho-document/es/components/ViewFrame/ViewFrameContext";
21
18
  const Board = (props) => {
22
- const frame = useFrame();
23
19
  const layout = useLayout();
24
20
  const boards = useBoardColumnStore();
25
21
  const documentStore = useDocumentStore();
@@ -40,9 +36,6 @@ const Board = (props) => {
40
36
  Includes: "tags",
41
37
  Filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: props.parentId }],
42
38
  });
43
- useEffect(() => {
44
- setupExtra();
45
- }, [props.parentId, frame === null || frame === void 0 ? void 0 : frame.view]);
46
39
  const board = observe(() => (React.createElement(Droppable, { droppableId: props.parentId, type: "COLUMN", direction: "horizontal", isDropDisabled: data.status === "Readonly" }, (provided) =>
47
40
  //{/* 手机模式 */}
48
41
  !layout.ui.mobile ? (React.createElement(Panable, { scroll: true },
@@ -74,24 +67,15 @@ const Board = (props) => {
74
67
  return observe(() => (React.createElement(BoardtListContext.Provider, { value: lists },
75
68
  React.createElement(ListDataContext.Provider, { value: list },
76
69
  React.createElement("div", { className: styles["board-context"] },
70
+ React.createElement(ListHeaderTool, { addAble: false, filterViewProps: {
71
+ columns: [
72
+ React.createElement(CreateDateFilter, { key: "createDateFilter" }),
73
+ React.createElement(FlagFilter, { key: "flagFilter" }),
74
+ React.createElement(DocumentStatusFilter, { key: "documentStatusFilter" }),
75
+ ],
76
+ } }),
77
77
  React.createElement("div", { className: "board-list" },
78
78
  React.createElement(DragDropContext, { onDragEnd: (result) => state.onDragEnd(result) }, board)))))));
79
- /** BoardColumn filters name */
80
- function onSearch(value) {
81
- list.triggerSearch(value);
82
- }
83
- function setupExtra() {
84
- if (!frame)
85
- return;
86
- frame.PreExtra = observe(() => React.createElement(QuickSearch, { title: "Search", onChange: onSearch }));
87
- frame.Extra = observe(() => (React.createElement(FilterOptionsContext.Provider, { value: list.filters },
88
- React.createElement(SortViewDropdown, { onSort: (sort) => list.triggerSort(sort), className: "margin-left-10" }),
89
- React.createElement(FilterView, { columns: [
90
- React.createElement(CreateDateFilter, { key: "createDateFilter" }),
91
- React.createElement(FlagFilter, { key: "flagFilter" }),
92
- React.createElement(DocumentStatusFilter, { key: "documentStatusFilter" }),
93
- ], className: "margin-left-10" }))));
94
- }
95
79
  };
96
80
  export default Board;
97
81
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/Board/index.tsx"],"names":[],"mappings":"AAAA,OAAO,YAAY,CAAC;AACpB,OAAO,EACN,qBAAqB,EACrB,iBAAiB,EACjB,QAAQ,EACR,wBAAwB,EACxB,mBAAmB,GACnB,M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9B,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;IAED,SAAS,UAAU;QAClB,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,oBAAC,WAAW,IAAC,KAAK,EAAC,QAAQ,EAAC,QAAQ,EAAE,QAAQ,GAAI,CAAC,CAAC;QACnF,KAAK,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAC3B,oBAAC,oBAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,CAAC,OAAO;YACjD,oBAAC,gBAAgB,IAChB,MAAM,EAAE,CAAC,IAAqB,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EACzD,SAAS,EAAC,gBAAgB,GACzB;YACF,oBAAC,UAAU,IACV,OAAO,EAAE;oBACR,oBAAC,gBAAgB,IAAC,GAAG,EAAC,kBAAkB,GAAG;oBAC3C,oBAAC,UAAU,IAAC,GAAG,EAAC,YAAY,GAAG;oBAC/B,oBAAC,oBAAoB,IAAC,GAAG,EAAC,sBAAsB,GAAG;iBACnD,EACD,SAAS,EAAC,gBAAgB,GACzB,CAC6B,CAChC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/Board/index.tsx"],"names":[],"mappings":"AAAA,OAAO,YAAY,CAAC;AACpB,OAAO,EACN,qBAAqB,EACrB,iBAAiB,EACjB,QAAQ,EACR,wBAAwB,EACxB,mBAAmB,GACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,gBAAgB,EAChB,oBAAoB,EACpB,UAAU,GACV,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,sBAAsB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AW,EAC9B,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,KAAK,EAAE,CAAC,CAAM,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,GAChC,CACW,CACd,CAAC,CACM;YACR,QAAQ,CAAC,WAAW,CAChB,CACN,CAAA;KAAA,CACS,CACX,CAES,CACZ,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,iBAAiB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK;QACvC,oBAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;YACpC,6BAAK,SAAS,EAAE,MAAM,CAAC,eAAe,CAAC;gBACtC,oBAAC,cAAc,IACd,OAAO,EAAE,KAAK,EACd,eAAe,EAAE;wBAChB,OAAO,EAAE;4BACR,oBAAC,gBAAgB,IAAC,GAAG,EAAC,kBAAkB,GAAG;4BAC3C,oBAAC,UAAU,IAAC,GAAG,EAAC,YAAY,GAAG;4BAC/B,oBAAC,oBAAoB,IAAC,GAAG,EAAC,sBAAsB,GAAG;yBACnD;qBACD,GACA;gBACF,6BAAK,SAAS,EAAC,YAAY;oBAC1B,oBAAC,eAAe,IAAC,SAAS,EAAE,CAAC,MAAW,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,IAClE,KAAK,CACW,CACb,CACD,CACoB,CACC,CAC7B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -3,6 +3,12 @@
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
  :global {
6
+ .list-view-header-tool {
7
+ padding: 20px 20px 0;
8
+ .search-header-tool .ant-input-outlined {
9
+ width: 310px;
10
+ }
11
+ }
6
12
  .board-list {
7
13
  height: 100%;
8
14
  display: flex;
@@ -4,12 +4,16 @@ import { useBoard } from "../../../../data/board";
4
4
  import PageHeaderBoard from "@voplus/morpho-ui/es/components/layout/headers/PageHeaderBoard";
5
5
  import { observe } from "@voplus/morpho-ui";
6
6
  import { useParams } from "react-router-dom";
7
- import { useTabItem } from "@voplus/morpho-data";
7
+ import { useMetaStore } from "@voplus/morpho-document-core";
8
+ import { useLayout, useTabItem } from "@voplus/morpho-data";
9
+ import DocumentPageHeader from "@voplus/morpho-document/es/components/DocumentPageHeader";
8
10
  import { runInAction } from "mobx";
9
11
  import "./index.less";
10
12
  const BoardPage = (props) => {
11
13
  const params = useParams();
12
14
  const id = props.id || params.id || "";
15
+ const meta = useMetaStore();
16
+ const layout = useLayout();
13
17
  const board = useBoard(id, { includes: "path" });
14
18
  /** set tab title */
15
19
  const tab = useTabItem();
@@ -17,8 +21,16 @@ const BoardPage = (props) => {
17
21
  runInAction(() => { var _a; return (tab.title = (_a = board.name) !== null && _a !== void 0 ? _a : "Decument"); });
18
22
  }, []);
19
23
  return observe(() => (React.createElement("div", { className: "board-page" },
20
- React.createElement(PageHeaderBoard, { title: board.name, breadCrumbsPathProps: { current: { id: id, name: board.name }, path: board.path } }),
24
+ React.createElement(PageHeaderBoard, { title: React.createElement(DocumentPageHeader, { id: id }), breadCrumbsPathProps: {
25
+ current: { id: id, name: board.name },
26
+ path: board.path,
27
+ onBreadCrumb: onNavigate,
28
+ } }),
21
29
  React.createElement(BoardTabs, { id: id }))));
30
+ function onNavigate(aId) {
31
+ const route = meta.getRoute({ id: id, type: "Document" });
32
+ layout.history.push(`${route}?active=${aId}`);
33
+ }
22
34
  };
23
35
  export default BoardPage;
24
36
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/pages/BoardPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,SAAS,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,eAAe,MAAM,gEAAgE,CAAC;A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AC1B,oBAAC,eAAe,IACf,KAAK,EAAE,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI,EACrC,oBAAoB,EAAE;gBACrB,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE;gBACrC,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,YAAY,EAAE,UAAU;aACxB,GACA;QACF,oBAAC,SAAS,IAAC,EAAE,EAAE,EAAE,GAAI,CAChB,CACN,CAAC,CAAC;IAEH,SAAS,UAAU,CAAC,GAAW;QAC9B,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"}
@@ -6,5 +6,8 @@
6
6
  .ant-tabs {
7
7
  height: 100%;
8
8
  }
9
+ .document-page-header {
10
+ padding: 0;
11
+ }
9
12
  }
10
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "6.0.95",
3
+ "version": "6.0.96",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",