@voplus/morpho-workspace 6.0.94 → 6.0.96
Sign up to get free protection for your applications and to get access to all the features.
- package/es/data/board/metas.d.ts +1 -0
- package/es/data/board/metas.js +4 -1
- package/es/data/board/metas.js.map +1 -1
- package/es/modules/board/BoardRouets.js +2 -2
- package/es/modules/board/BoardRouets.js.map +1 -1
- package/es/modules/board/components/Board/index.js +10 -30
- package/es/modules/board/components/Board/index.js.map +1 -1
- package/es/modules/board/components/Board/index.less +6 -0
- package/es/modules/board/components/Board/state.d.ts +0 -2
- package/es/modules/board/components/Board/state.js +0 -10
- package/es/modules/board/components/Board/state.js.map +1 -1
- package/es/modules/board/components/BoardProperties/index.d.ts +12 -0
- package/es/modules/board/components/BoardProperties/index.js +14 -0
- package/es/modules/board/components/BoardProperties/index.js.map +1 -0
- package/es/modules/board/components/BoardTabs/index.d.ts +6 -0
- package/es/modules/board/components/BoardTabs/index.js +49 -0
- package/es/modules/board/components/BoardTabs/index.js.map +1 -0
- package/es/modules/board/components/BoardTabs/index.less +5 -0
- package/es/modules/board/pages/BoardPage/index.d.ts +6 -0
- package/es/modules/board/pages/BoardPage/index.js +36 -0
- package/es/modules/board/pages/BoardPage/index.js.map +1 -0
- package/es/modules/board/pages/BoardPage/index.less +13 -0
- package/es/modules/board/pages/BoardViewList/index.d.ts +1 -1
- package/es/modules/board/pages/BoardViewList/index.js +2 -22
- package/es/modules/board/pages/BoardViewList/index.js.map +1 -1
- package/package.json +1 -1
package/es/data/board/metas.d.ts
CHANGED
@@ -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;
|
package/es/data/board/metas.js
CHANGED
@@ -3,9 +3,12 @@ import { DefaultDocumentTypeMeta } from "@voplus/morpho-document";
|
|
3
3
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
4
4
|
import { suspense } from "@voplus/morpho-ui/es/controls/Suspense";
|
5
5
|
import { faColumns } from "@fortawesome/pro-solid-svg-icons";
|
6
|
-
const DefaultView = lazy(() => import("../../modules/board/pages/
|
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,
|
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,oBAAC,eAAe,IAAC,IAAI,EAAE,SAAS,GAAI,CAAC;IAC7C,CAAC;IAEM,SAAS,CAAC,QAAmB;QACnC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC5C,CAAC;IAEM,cAAc,CAAC,KAAqB;QAC1C,OAAO,QAAQ,CAAC,WAAW,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;IAChD,CAAC;;AApBa;;;;WAAW,OAAO;GAAC"}
|
@@ -3,7 +3,7 @@ import { Route, Routes } from "react-router-dom";
|
|
3
3
|
import { BaseRoutes } from "@voplus/morpho-data";
|
4
4
|
import { DocumentRoute } from "@voplus/morpho-document/es/routes";
|
5
5
|
import { Skeleton } from "antd";
|
6
|
-
const
|
6
|
+
const BoardPage = lazy(() => import("./pages/BoardPage"));
|
7
7
|
const BoardRoutes = () => {
|
8
8
|
return (React.createElement(Suspense, { fallback: React.createElement(Skeleton, null) },
|
9
9
|
React.createElement(Routes, null,
|
@@ -14,7 +14,7 @@ const RouteList = {
|
|
14
14
|
route: "/boards/:id",
|
15
15
|
tabPattern: RegExp("/boards/[^/]+"),
|
16
16
|
getUrl: (id) => `/boards/${id}`,
|
17
|
-
component: React.createElement(
|
17
|
+
component: React.createElement(BoardPage, null),
|
18
18
|
},
|
19
19
|
Board: {
|
20
20
|
getUrl: DocumentRoute,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BoardRouets.js","sourceRoot":"","sources":["../../../src/modules/board/BoardRouets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAEhC,MAAM,
|
1
|
+
{"version":3,"file":"BoardRouets.js","sourceRoot":"","sources":["../../../src/modules/board/BoardRouets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAEhC,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,CAAC;AAE1D,MAAM,WAAW,GAAG,GAAG,EAAE;IACxB,OAAO,CACN,oBAAC,QAAQ,IAAC,QAAQ,EAAE,oBAAC,QAAQ,OAAG;QAC/B,oBAAC,MAAM;YACN,oBAAC,KAAK,IAAC,IAAI,EAAE,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,CAAC,SAAS,CAAC,SAAS,GAAI,CAC1E,CACC,CACX,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG;IACjB,SAAS,EAAE;QACV,KAAK,EAAE,aAAa;QACpB,UAAU,EAAE,MAAM,CAAC,eAAe,CAAC;QACnC,MAAM,EAAE,CAAC,EAAU,EAAE,EAAE,CAAC,WAAW,EAAE,EAAE;QACvC,SAAS,EAAE,oBAAC,SAAS,OAAG;KACxB;IACD,KAAK,EAAE;QACN,MAAM,EAAE,aAAa;KACrB;IAED,SAAS,EAAE,GAAG,EAAE;QACf,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,aAAa;YACnB,cAAc,EAAE,SAAS,CAAC,SAAS,CAAC,UAAU;YAC9C,SAAS,EAAE,oBAAC,WAAW,OAAG;SAC1B,CAAC,CAAC;IACJ,CAAC;CACD,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
@@ -2,25 +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 {
|
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
|
-
import NewBoardColumnDialog from "../NewBoardColumnDialog";
|
10
9
|
import BoardColumn from "../BoardColumn";
|
11
|
-
import FilterView from "@voplus/morpho-ui/es/controls/FilterView";
|
12
10
|
import { Observer } from "mobx-react-lite";
|
13
11
|
import Panable from "@voplus/morpho-ui/es/controls/Panable";
|
14
|
-
import
|
15
|
-
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";
|
16
13
|
import { State } from "./state";
|
17
14
|
import { observe } from "@voplus/morpho-ui";
|
18
15
|
import { runInAction } from "mobx";
|
19
16
|
import styles from "./index.less";
|
20
17
|
import { useDocumentStore } from "@voplus/morpho-document-core";
|
21
|
-
import { useFrame } from "@voplus/morpho-document/es/components/ViewFrame/ViewFrameContext";
|
22
18
|
const Board = (props) => {
|
23
|
-
const frame = useFrame();
|
24
19
|
const layout = useLayout();
|
25
20
|
const boards = useBoardColumnStore();
|
26
21
|
const documentStore = useDocumentStore();
|
@@ -41,9 +36,6 @@ const Board = (props) => {
|
|
41
36
|
Includes: "tags",
|
42
37
|
Filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: props.parentId }],
|
43
38
|
});
|
44
|
-
useEffect(() => {
|
45
|
-
setupExtra();
|
46
|
-
}, [props.parentId, frame === null || frame === void 0 ? void 0 : frame.view]);
|
47
39
|
const board = observe(() => (React.createElement(Droppable, { droppableId: props.parentId, type: "COLUMN", direction: "horizontal", isDropDisabled: data.status === "Readonly" }, (provided) =>
|
48
40
|
//{/* 手机模式 */}
|
49
41
|
!layout.ui.mobile ? (React.createElement(Panable, { scroll: true },
|
@@ -75,27 +67,15 @@ const Board = (props) => {
|
|
75
67
|
return observe(() => (React.createElement(BoardtListContext.Provider, { value: lists },
|
76
68
|
React.createElement(ListDataContext.Provider, { value: list },
|
77
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
|
+
} }),
|
78
77
|
React.createElement("div", { className: "board-list" },
|
79
|
-
React.createElement(DragDropContext, { onDragEnd: (result) => state.onDragEnd(result) }, board)
|
80
|
-
data.status !== "Readonly" && (React.createElement("div", { className: "add-board" },
|
81
|
-
React.createElement("div", { onClick: () => runInAction(() => (state.addBoardColumnAble = true)) }, "+ ADD")))),
|
82
|
-
state.addBoardColumnAble && (React.createElement(NewBoardColumnDialog, { parentId: props.parentId, onCancel: () => (state.addBoardColumnAble = false) })))))));
|
83
|
-
/** BoardColumn filters name */
|
84
|
-
function onSearch(value) {
|
85
|
-
list.triggerSearch(value);
|
86
|
-
}
|
87
|
-
function setupExtra() {
|
88
|
-
if (!frame)
|
89
|
-
return;
|
90
|
-
frame.PreExtra = observe(() => React.createElement(QuickSearch, { title: "Search", onChange: onSearch }));
|
91
|
-
frame.Extra = observe(() => (React.createElement(FilterOptionsContext.Provider, { value: list.filters },
|
92
|
-
React.createElement(SortViewDropdown, { onSort: (sort) => list.triggerSort(sort), className: "margin-left-10" }),
|
93
|
-
React.createElement(FilterView, { columns: [
|
94
|
-
React.createElement(CreateDateFilter, { key: "createDateFilter" }),
|
95
|
-
React.createElement(FlagFilter, { key: "flagFilter" }),
|
96
|
-
React.createElement(DocumentStatusFilter, { key: "documentStatusFilter" }),
|
97
|
-
], className: "margin-left-10" }))));
|
98
|
-
}
|
78
|
+
React.createElement(DragDropContext, { onDragEnd: (result) => state.onDragEnd(result) }, board)))))));
|
99
79
|
};
|
100
80
|
export default Board;
|
101
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,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,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/Board/index.tsx"],"names":[],"mappings":"AAAA,OAAO,YAAY,CAAC;AACpB,OAAO,EAC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
|
|
60
60
|
writable: true,
|
61
61
|
value: false
|
62
62
|
});
|
63
|
-
/** add BoardColumn */
|
64
|
-
Object.defineProperty(this, "addBoardColumnAble", {
|
65
|
-
enumerable: true,
|
66
|
-
configurable: true,
|
67
|
-
writable: true,
|
68
|
-
value: false
|
69
|
-
});
|
70
63
|
/** move 原数据 */
|
71
64
|
Object.defineProperty(this, "source", {
|
72
65
|
enumerable: true,
|
@@ -284,9 +277,6 @@ __decorate([
|
|
284
277
|
__decorate([
|
285
278
|
observable
|
286
279
|
], State.prototype, "addLoading", void 0);
|
287
|
-
__decorate([
|
288
|
-
observable
|
289
|
-
], State.prototype, "addBoardColumnAble", void 0);
|
290
280
|
__decorate([
|
291
281
|
observable
|
292
282
|
], State.prototype, "source", void 0);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/Board/state.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGpE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAW/B,MAAM,OAAO,KAAK;IAEjB,YAA2B,MAAwB,EAAU,SAAwB;QAAlE;;;;mBAAQ,MAAM;WAAkB;QAAE;;;;mBAAQ,SAAS;WAAe;QAD9E;;;;;WAAsB;QAIV;;;;mBAA+B,EAAE;WAAC;QAClC;;;;;WAAgC;QACnD,gBAAgB;QACG;;;;mBAAmB,EAAE;WAAC;QACzC,2BAA2B;QACR;;;;mBAAO,EAAE;WAAC;QACV;;;;mBAAS,KAAK;WAAC;QAClC,mCAAmC;QAChB;;;;mBAAa,KAAK;WAAC;QACtC,
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/Board/state.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CA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EAAE,GAAG,IAAI,CAAC,UAAW,CAAC,CAAC;QAC5C,OAAO,OAAO,CAAC;IAChB,CAAC;CACD;AAzKmB;IAAlB,UAAU;2CAA0C;AAClC;IAAlB,UAAU;8CAAwC;AAEhC;IAAlB,UAAU;kCAA8B;AAEtB;IAAlB,UAAU;mCAAkB;AACV;IAAlB,UAAU;qCAAuB;AAEf;IAAlB,UAAU;yCAA2B;AAEnB;IAAlB,UAAU;qCAAoB;AAEZ;IAAlB,UAAU;0CAAyB;AAEjB;IAAlB,UAAU;wCAqBT;AAEiB;IAAlB,UAAU;yCAAwB;AAChB;IAAlB,UAAU;yCAAyC;AAEjC;IAAlB,UAAU;0CAA4B;AAGhC;IADN,MAAM;mDAOL;AAGK;IADN,MAAM;mDAKL;AAGK;IADN,MAAM;6DAQL;AAIK;IADN,MAAM;qCAWL;AAIW;IADZ,MAAM;sCA6DN;AAGc;IAAd,MAAM;kCAON;AAOD;IADC,QAAQ;oCAQR"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { DocumentPropertiesName } from "@voplus/morpho-document/es/components/DocumentProperties";
|
3
|
+
declare const BoardProperties: (props: {
|
4
|
+
id: string;
|
5
|
+
headerVisible?: boolean;
|
6
|
+
documentTitle?: string;
|
7
|
+
documentProperties?: {
|
8
|
+
name: DocumentPropertiesName;
|
9
|
+
visible?: boolean;
|
10
|
+
}[];
|
11
|
+
}) => React.JSX.Element;
|
12
|
+
export default BoardProperties;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
3
|
+
import { Scrollbars } from "react-custom-scrollbars-2";
|
4
|
+
import DocumentProperties from "@voplus/morpho-document/es/components/DocumentProperties";
|
5
|
+
import DocumentPanelHeader from "@voplus/morpho-document/es/components/DocumentPanelHeader";
|
6
|
+
const BoardProperties = (props) => {
|
7
|
+
const { id, headerVisible, documentTitle, documentProperties } = props;
|
8
|
+
return observe(() => (React.createElement("div", { className: "properties-list" },
|
9
|
+
headerVisible && React.createElement(DocumentPanelHeader, { id: id }),
|
10
|
+
React.createElement(Scrollbars, { autoHide: true },
|
11
|
+
React.createElement(DocumentProperties, { id: id, title: documentTitle !== null && documentTitle !== void 0 ? documentTitle : "Document Properties", customProperties: documentProperties })))));
|
12
|
+
};
|
13
|
+
export default BoardProperties;
|
14
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/BoardProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,kBAEN,MAAM,0DAA0D,CAAC;AAClE,OAAO,mBAAmB,MAAM,2DAA2D,CAAC;AAE5F,MAAM,eAAe,GAAG,CAAC,KAQxB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IAEvE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,iBAAiB;QAC9B,aAAa,IAAI,oBAAC,mBAAmB,IAAC,EAAE,EAAE,EAAE,GAAI;QACjD,oBAAC,UAAU,IAAC,QAAQ;YACnB,oBAAC,kBAAkB,IAClB,EAAE,EAAE,EAAE,EACN,KAAK,EAAE,aAAa,aAAb,aAAa,cAAb,aAAa,GAAI,qBAAqB,EAC7C,gBAAgB,EAAE,kBAAkB,GACnC,CACU,CACR,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import React, { useState } from "react";
|
2
|
+
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog/ActivityLog2";
|
3
|
+
import BoardViewList from "../../pages/BoardViewList";
|
4
|
+
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
5
|
+
import Links from "@voplus/morpho-document/es/components/Links";
|
6
|
+
import { faEllipsisVertical } from "@fortawesome/pro-solid-svg-icons";
|
7
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
8
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
9
|
+
import NewBoardColumnDialog from "../NewBoardColumnDialog";
|
10
|
+
import BoardProperties from "../BoardProperties";
|
11
|
+
import { useBoard } from "../../../../data/board";
|
12
|
+
import { Button } from "antd";
|
13
|
+
import { observe } from "@voplus/morpho-ui";
|
14
|
+
import "./index.less";
|
15
|
+
const BoardTabs = (props) => {
|
16
|
+
const { id } = props;
|
17
|
+
const [activeKey, setActiveKey] = useState();
|
18
|
+
const [addBoardColumnAble, setAddBoardColumnAble] = useState(false);
|
19
|
+
const board = useBoard(id);
|
20
|
+
const items = [
|
21
|
+
{
|
22
|
+
key: "Board",
|
23
|
+
label: "Board",
|
24
|
+
children: React.createElement(BoardViewList, { id: id }),
|
25
|
+
},
|
26
|
+
{
|
27
|
+
key: "Properties",
|
28
|
+
label: "Properties",
|
29
|
+
children: React.createElement(BoardProperties, { id: id }),
|
30
|
+
},
|
31
|
+
{
|
32
|
+
key: "Activities",
|
33
|
+
label: "Activities",
|
34
|
+
children: React.createElement(React.Fragment, null, activeKey === "Activities" ? React.createElement(ActivityLog, { id: id, title: " " }) : null),
|
35
|
+
},
|
36
|
+
{
|
37
|
+
key: "Links",
|
38
|
+
label: "Links",
|
39
|
+
children: React.createElement(Links, { id: id, isTitle: false }),
|
40
|
+
},
|
41
|
+
];
|
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,
|
44
|
+
activeKey === "Board" && board.status !== "Readonly" && (React.createElement(Button, { type: "link", className: "board-tab-create", onClick: () => setAddBoardColumnAble(true) }, "+ Create New Status")),
|
45
|
+
React.createElement(ToolBar, { id: id, moreProps: { icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) } })) }),
|
46
|
+
addBoardColumnAble && (React.createElement(NewBoardColumnDialog, { parentId: id, onCancel: () => setAddBoardColumnAble(false) })))));
|
47
|
+
};
|
48
|
+
export default BoardTabs;
|
49
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +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,CAAC;AAC5C,OAAO,cAAc,CAAC;AAEtB,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC3C,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,EAAU,CAAC;IACrD,MAAM,CAAC,kBAA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AE,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"}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import React, { useEffect } from "react";
|
2
|
+
import BoardTabs from "../../components/BoardTabs";
|
3
|
+
import { useBoard } from "../../../../data/board";
|
4
|
+
import PageHeaderBoard from "@voplus/morpho-ui/es/components/layout/headers/PageHeaderBoard";
|
5
|
+
import { observe } from "@voplus/morpho-ui";
|
6
|
+
import { useParams } from "react-router-dom";
|
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";
|
10
|
+
import { runInAction } from "mobx";
|
11
|
+
import "./index.less";
|
12
|
+
const BoardPage = (props) => {
|
13
|
+
const params = useParams();
|
14
|
+
const id = props.id || params.id || "";
|
15
|
+
const meta = useMetaStore();
|
16
|
+
const layout = useLayout();
|
17
|
+
const board = useBoard(id, { includes: "path" });
|
18
|
+
/** set tab title */
|
19
|
+
const tab = useTabItem();
|
20
|
+
useEffect(() => {
|
21
|
+
runInAction(() => { var _a; return (tab.title = (_a = board.name) !== null && _a !== void 0 ? _a : "Decument"); });
|
22
|
+
}, []);
|
23
|
+
return observe(() => (React.createElement("div", { className: "board-page" },
|
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
|
+
} }),
|
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
|
+
}
|
34
|
+
};
|
35
|
+
export default BoardPage;
|
36
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +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;AAC7F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,kBAAkB,MAAM,0DAA0D,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,cAAc,CAAC;AAEtB,MAAM,SAAS,GAAG,CAAC,KAAsB,EAAE,EAAE;IAC5C,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,IAAI,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC;IACvC,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC;IAC5B,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,KAAK,GAAG,QAAQ,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;IAEjD,oBAAoB;IACpB,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;IACzB,SAAS,CAAC,GAAG,EAAE;QACd,WAAW,CAAC,GAAG,EAAE,WAAC,OAAA,CAAC,GAAG,CAAC,KAAK,GAAG,MAAA,KAAK,CAAC,IAAI,mCAAI,UAAU,CAAC,CAAA,EAAA,CAAC,CAAC;IAC3D,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,YAAY;QAC1B,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"}
|
@@ -1,42 +1,22 @@
|
|
1
|
-
import {
|
2
|
-
import React, { useEffect, useMemo, useState } from "react";
|
1
|
+
import React, { useMemo, useState } from "react";
|
3
2
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
4
3
|
import { observe, useAsideContentContext } from "@voplus/morpho-ui";
|
5
4
|
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
6
5
|
import Board from "../../components/Board";
|
7
|
-
import BoardPropertiesView from "../../components/BoardPropertiesView";
|
8
|
-
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
9
6
|
import NewColumnDocumentForm from "../../components/NewColumnDocumentForm";
|
10
7
|
import { State } from "./state";
|
11
|
-
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
12
|
-
import { runInAction } from "mobx";
|
13
8
|
import styles from "./index.less";
|
14
9
|
import { useBoard } from "../../../../data/board";
|
15
10
|
import { useFrame } from "@voplus/morpho-document/es/components/ViewFrame/ViewFrameContext";
|
16
|
-
import { useParams } from "react-router-dom";
|
17
|
-
import { useTabItem } from "@voplus/morpho-data";
|
18
11
|
/** The Board Page component with router parameters support. */
|
19
12
|
const BoardViewList = (props) => {
|
20
|
-
const
|
21
|
-
const id = props.id || params.id || "";
|
13
|
+
const { id } = props;
|
22
14
|
const frame = useFrame();
|
23
15
|
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
24
16
|
const [asideContext] = useState(frame ? useAsideContentContext() : AsideContent.createContext());
|
25
17
|
const [state] = useState(new State());
|
26
18
|
state.board = useBoard(id);
|
27
|
-
/** set tab title */
|
28
|
-
const tab = useTabItem();
|
29
|
-
useEffect(() => {
|
30
|
-
runInAction(() => { var _a; return (tab.title = (_a = state.board.name) !== null && _a !== void 0 ? _a : "Decument"); });
|
31
|
-
}, []);
|
32
|
-
const AsideElement = React.createElement(BoardPropertiesView, { id: id });
|
33
19
|
const Content = observe(() => (React.createElement("div", { className: "vo-layout-main" },
|
34
|
-
React.createElement(DocumentHeader, { id: id, size: "h3", quickVisible: false, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, tools: React.createElement("div", { className: "tools-bar" },
|
35
|
-
React.createElement(ToolBar, { id: id },
|
36
|
-
React.createElement(Sidebar, { action: () => runInAction(() => (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent)
|
37
|
-
? asideContext.closeAside()
|
38
|
-
: asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(AsideElement, { span: 12 })) }),
|
39
|
-
React.createElement(Archive, null))), descriptionVisible: false }),
|
40
20
|
React.createElement(Board, { parentId: id, onAdd: onAddColumn }))));
|
41
21
|
return observe(() => (React.createElement("div", { className: styles["vo-layout"] },
|
42
22
|
React.createElement(ViewContext.Provider, { value: view }, frame ? Content : React.createElement(AsideContent, { context: asideContext }, Content)))));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/pages/BoardViewList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/pages/BoardViewList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAC3C,OAAO,qBAAqB,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,kEAAkE,CAAC;AAE5F,+DAA+D;AAC/D,MAAM,aAAa,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC/C,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,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