@voplus/morpho-workspace 6.0.93 → 6.0.95
Sign up to get free protection for your applications and to get access to all the features.
- package/es/data/board/metas.js +1 -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 +1 -5
- package/es/modules/board/components/Board/index.js.map +1 -1
- 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/BoardColumn/index.js +6 -3
- package/es/modules/board/components/BoardColumn/index.js.map +1 -1
- package/es/modules/board/components/BoardColumn/index.less +8 -2
- 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 +24 -0
- package/es/modules/board/pages/BoardPage/index.js.map +1 -0
- package/es/modules/board/pages/BoardPage/index.less +10 -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.js
CHANGED
@@ -3,7 +3,7 @@ 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
9
|
get name() {
|
@@ -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;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;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;;AAhBa;;;;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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@ import { FilterOptionsContext, ListDataContext, useCreateListDataState, } from "
|
|
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
10
|
import FilterView from "@voplus/morpho-ui/es/controls/FilterView";
|
12
11
|
import { Observer } from "mobx-react-lite";
|
@@ -76,10 +75,7 @@ const Board = (props) => {
|
|
76
75
|
React.createElement(ListDataContext.Provider, { value: list },
|
77
76
|
React.createElement("div", { className: styles["board-context"] },
|
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) })))))));
|
78
|
+
React.createElement(DragDropContext, { onDragEnd: (result) => state.onDragEnd(result) }, board)))))));
|
83
79
|
/** BoardColumn filters name */
|
84
80
|
function onSearch(value) {
|
85
81
|
list.triggerSearch(value);
|
@@ -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,EACN,oBAAoB,EACpB,eAAe,EACf,sBAAsB,GACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAkB,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,cAAc,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,EACN,oBAAoB,EACpB,eAAe,EACf,sBAAsB,GACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAkB,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,UAAU,MAAM,0CAA0C,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,WAAW,MAAM,sEAAsE,CAAC;AAC/F,OAAO,gBAAgB,MAAM,2EAA2E,CAAC;AACzG,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,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ACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
@@ -60,13 +60,6 @@ export class State {
|
|
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":";A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C,EAAE,KAAK,EAAE,CAAC,CAAC;QAC7F,CAAC;QACD,OAAO,GAAG,CAAC,GAAG,OAAO,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"}
|
@@ -4,6 +4,7 @@ import React, { useState } from "react";
|
|
4
4
|
import { useBoardColumn, useBoardColumnStore } from "../../../../data/board";
|
5
5
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
6
6
|
import { faEllipsis } from "@fortawesome/pro-light-svg-icons";
|
7
|
+
import { faGripVertical } from "@fortawesome/pro-solid-svg-icons";
|
7
8
|
import AddDocDropdown from "@voplus/morpho-document/es/components/AddDocDropdown";
|
8
9
|
import DocumentSelectDialog from "@voplus/morpho-document/es/components/DocumentSelectDialog";
|
9
10
|
import { Draggable } from "react-beautiful-dnd";
|
@@ -30,9 +31,11 @@ const BoardColumn = (props) => {
|
|
30
31
|
return (React.createElement("div", { className: classnames(styles["board-column"], snapshot.isDragging && "action"),
|
31
32
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
32
33
|
ref: provided.innerRef, ...provided.draggableProps },
|
33
|
-
React.createElement("div", { className: "content-top"
|
34
|
-
|
35
|
-
|
34
|
+
React.createElement("div", { className: "content-top" },
|
35
|
+
React.createElement("span", { className: "drag-icon", ...provided.dragHandleProps,
|
36
|
+
// avoid mouse down propagate to panable
|
37
|
+
onMouseDown: (e) => e.stopPropagation() },
|
38
|
+
React.createElement(FAIcon, { icon: faGripVertical, color: "#CBCBCB" })),
|
36
39
|
React.createElement("div", { className: "board-name" },
|
37
40
|
state.checked && (React.createElement(Checkbox, { onChange: state.onCheckAllChange, checked: state.checkAll })),
|
38
41
|
state.editable ? (React.createElement(Spin, { spinning: state.loading },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/BoardColumn/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACtD,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,oBAAoB,MAAM,4DAA4D,CAAC;AAC9F,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,eAAe,MAAM,uDAAuD,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACz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,CAAC,IAAI,CAAC,CAAC;YAC1D,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;QACvB,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
@@ -5,7 +5,7 @@
|
|
5
5
|
margin: 8px;
|
6
6
|
display: flex;
|
7
7
|
flex-direction: column;
|
8
|
-
background-color: #
|
8
|
+
background-color: #ebf5ff;
|
9
9
|
border-radius: 5px;
|
10
10
|
|
11
11
|
&:global(.action) {
|
@@ -30,7 +30,13 @@
|
|
30
30
|
.content-top {
|
31
31
|
width: 290px;
|
32
32
|
display: flex;
|
33
|
-
padding: 15px 12px 20px;
|
33
|
+
padding: 15px 12px 20px 0;
|
34
|
+
|
35
|
+
.drag-icon {
|
36
|
+
display: inline-flex;
|
37
|
+
align-items: center;
|
38
|
+
padding: 0 8px 0 10px;
|
39
|
+
}
|
34
40
|
|
35
41
|
.board-name {
|
36
42
|
flex: 1;
|
@@ -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,kBAAkB,EAAE,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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,24 @@
|
|
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 { useTabItem } from "@voplus/morpho-data";
|
8
|
+
import { runInAction } from "mobx";
|
9
|
+
import "./index.less";
|
10
|
+
const BoardPage = (props) => {
|
11
|
+
const params = useParams();
|
12
|
+
const id = props.id || params.id || "";
|
13
|
+
const board = useBoard(id, { includes: "path" });
|
14
|
+
/** set tab title */
|
15
|
+
const tab = useTabItem();
|
16
|
+
useEffect(() => {
|
17
|
+
runInAction(() => { var _a; return (tab.title = (_a = board.name) !== null && _a !== void 0 ? _a : "Decument"); });
|
18
|
+
}, []);
|
19
|
+
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 } }),
|
21
|
+
React.createElement(BoardTabs, { id: id }))));
|
22
|
+
};
|
23
|
+
export default BoardPage;
|
24
|
+
//# 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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AC,SAAS,IAAC,EAAE,EAAE,EAAE,GAAI,CAChB,CACN,CAAC,CAAC;AACJ,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,OAA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