@voplus/morpho-workspace 1.1.0-dev014 → 1.1.0-dev016
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +5 -3
- package/es/data/board/BoardColumnStore.d.ts +3 -13
- package/es/data/board/BoardColumnStore.js +2 -24
- package/es/data/board/BoardColumnStore.js.map +1 -1
- package/es/data/board/BoardStore.d.ts +2 -12
- package/es/data/board/BoardStore.js +1 -23
- package/es/data/board/BoardStore.js.map +1 -1
- package/es/data/board/contexts/BoardListContextState/index.d.ts +19 -0
- package/es/data/board/contexts/BoardListContextState/index.js +49 -0
- package/es/data/board/contexts/BoardListContextState/index.js.map +1 -0
- package/es/data/board/index.d.ts +1 -1
- package/es/data/board/index.js +1 -1
- package/es/data/board/index.js.map +1 -1
- package/es/modules/board/components/Board/index.js +34 -41
- package/es/modules/board/components/Board/index.js.map +1 -1
- package/es/modules/board/components/Board/index.less +83 -51
- package/es/modules/board/components/Board/state.d.ts +22 -5
- package/es/modules/board/components/Board/state.js +70 -15
- package/es/modules/board/components/Board/state.js.map +1 -1
- package/es/modules/board/components/BoardColumn/index.js +21 -35
- package/es/modules/board/components/BoardColumn/index.js.map +1 -1
- package/es/modules/board/components/BoardColumn/index.less +22 -12
- package/es/modules/board/components/BoardColumn/state.d.ts +17 -18
- package/es/modules/board/components/BoardColumn/state.js +43 -42
- package/es/modules/board/components/BoardColumn/state.js.map +1 -1
- package/es/modules/board/components/DocumentCard/index.d.ts +0 -2
- package/es/modules/board/components/DocumentCard/index.js +16 -79
- package/es/modules/board/components/DocumentCard/index.js.map +1 -1
- package/es/modules/board/components/DocumentCard/index.less +16 -13
- package/es/modules/board/components/DocumentCard/state.d.ts +6 -6
- package/es/modules/board/components/DocumentCard/state.js +34 -21
- package/es/modules/board/components/DocumentCard/state.js.map +1 -1
- package/es/modules/board/components/SubDocument/index.d.ts +13 -0
- package/es/modules/board/components/SubDocument/index.js +13 -0
- package/es/modules/board/components/SubDocument/index.js.map +1 -0
- package/es/modules/board/components/SubDocumentList/index.d.ts +4 -0
- package/es/modules/board/components/SubDocumentList/index.js +74 -0
- package/es/modules/board/components/SubDocumentList/index.js.map +1 -0
- package/es/modules/board/components/SubDocumentList/index.less +28 -0
- package/es/modules/board/components/SubDocumentList/state.d.ts +25 -0
- package/es/modules/board/components/SubDocumentList/state.js +60 -0
- package/es/modules/board/components/SubDocumentList/state.js.map +1 -0
- package/es/modules/board/components/TaskCard/index.js +27 -76
- package/es/modules/board/components/TaskCard/index.js.map +1 -1
- package/es/modules/board/components/TaskCard/index.less +9 -4
- package/es/modules/board/components/TaskCard/state.d.ts +1 -8
- package/es/modules/board/components/TaskCard/state.js +28 -23
- package/es/modules/board/components/TaskCard/state.js.map +1 -1
- package/package.json +1 -1
- package/es/data/board/LinkStore.d.ts +0 -11
- package/es/data/board/LinkStore.js +0 -44
- package/es/data/board/LinkStore.js.map +0 -1
- package/es/modules/board/components/LinkList/index.d.ts +0 -4
- package/es/modules/board/components/LinkList/index.js +0 -38
- package/es/modules/board/components/LinkList/index.js.map +0 -1
- package/es/modules/board/components/LinkList/state.d.ts +0 -15
- package/es/modules/board/components/LinkList/state.js +0 -37
- package/es/modules/board/components/LinkList/state.js.map +0 -1
- package/es/modules/board/components/links/index.d.ts +0 -12
- package/es/modules/board/components/links/index.js +0 -26
- package/es/modules/board/components/links/index.js.map +0 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { action, observable } from "mobx";
|
2
|
+
import { action, computed, observable } from "mobx";
|
3
3
|
import { message } from "@voplus/antd";
|
4
4
|
let State = /** @class */ (() => {
|
5
5
|
class State {
|
@@ -7,6 +7,8 @@ let State = /** @class */ (() => {
|
|
7
7
|
this._store = _store;
|
8
8
|
this._docStore = _docStore;
|
9
9
|
this.boardcolumns = [];
|
10
|
+
/** board ids */
|
11
|
+
this.ids = [];
|
10
12
|
/** search filter 1.5秒 */
|
11
13
|
this.timeout = null;
|
12
14
|
/** add BoardColumn name */
|
@@ -18,21 +20,25 @@ let State = /** @class */ (() => {
|
|
18
20
|
this.addBoardColumnAble = false;
|
19
21
|
/** BoardColumn head border-top color */
|
20
22
|
this.colorList = ["#765FEE", "#fe4066", "#FFC832", "#FF8F5E", "#16ecec", "#FFC832"];
|
23
|
+
/** documentlist filter name */
|
24
|
+
this.filterName = "";
|
25
|
+
this.filterList = [];
|
21
26
|
this.onBoardColumnCreated = (s, t) => {
|
22
|
-
if (t.parentId === this.props.parentId) {
|
27
|
+
if (t.parentId === this.props.parentId && t.type == "BoardColumn") {
|
23
28
|
this.boardcolumns.push(t);
|
24
29
|
this.reload = true;
|
25
30
|
}
|
26
31
|
};
|
27
32
|
this.onBoardColumnDeleted = (s, t) => {
|
28
|
-
|
33
|
+
if (t.type == "BoardColumn")
|
34
|
+
this.boardcolumns = this.boardcolumns.filter(item => item.id !== t.id);
|
29
35
|
};
|
30
36
|
this.subscribeOnBoardCreateCallback = () => {
|
31
|
-
this.
|
32
|
-
this.
|
37
|
+
this._docStore.DocumentCreatedEvent.subscribe(this.onBoardColumnCreated);
|
38
|
+
this._docStore.DocumentDeletedEvent.subscribe(this.onBoardColumnDeleted);
|
33
39
|
return () => {
|
34
|
-
this.
|
35
|
-
this.
|
40
|
+
this._docStore.DocumentCreatedEvent.unsubscribe(this.onBoardColumnCreated);
|
41
|
+
this._docStore.DocumentDeletedEvent.unsubscribe(this.onBoardColumnDeleted);
|
36
42
|
};
|
37
43
|
};
|
38
44
|
/** add BoardColumn save */
|
@@ -46,7 +52,7 @@ let State = /** @class */ (() => {
|
|
46
52
|
};
|
47
53
|
}
|
48
54
|
/** 拖拽方法 */
|
49
|
-
onDragEnd(result) {
|
55
|
+
async onDragEnd(result) {
|
50
56
|
// dropped nowhere
|
51
57
|
if (!result.destination) {
|
52
58
|
return;
|
@@ -71,21 +77,58 @@ let State = /** @class */ (() => {
|
|
71
77
|
this.boardcolumns.splice(destination.index, 0, removed);
|
72
78
|
return;
|
73
79
|
}
|
74
|
-
|
75
|
-
|
76
|
-
this._docStore.moveLinks(destination.droppableId, source.droppableId, [{ Type: "Association", RightId: rightId, Position: destination.index }], [linkId]);
|
77
|
-
this.source = { id: source.droppableId, linkId: linkId };
|
80
|
+
// destination,source 数据 传给SubDocumentList 进行reordering list
|
81
|
+
this.source = { parentId: source.droppableId, id: draggableId };
|
78
82
|
this.destination = {
|
79
|
-
|
80
|
-
|
81
|
-
linkId: linkId,
|
83
|
+
parentId: destination.droppableId,
|
84
|
+
id: draggableId,
|
82
85
|
index: destination.index
|
83
86
|
};
|
87
|
+
let afterId = "";
|
88
|
+
const idsList = this.ids.filter(item => item.id === destination.droppableId);
|
89
|
+
const index = destination.index - 1;
|
90
|
+
if (index >= 0) {
|
91
|
+
afterId = idsList[0].ids[index];
|
92
|
+
}
|
93
|
+
if (destination.droppableId === source.droppableId) {
|
94
|
+
this._docStore.moveAfter(draggableId, afterId);
|
95
|
+
}
|
96
|
+
else {
|
97
|
+
await this._docStore.move([draggableId], destination.droppableId);
|
98
|
+
if (afterId !== "") {
|
99
|
+
this._docStore.moveAfter(draggableId, afterId);
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
/** 存储ids 放便拖拽后查找 afterId */
|
104
|
+
onIds(v) {
|
105
|
+
const index = this.ids.findIndex(i => i.id === v.id);
|
106
|
+
if (index == -1) {
|
107
|
+
this.ids.push({ id: v.id, ids: v.ids });
|
108
|
+
}
|
109
|
+
else {
|
110
|
+
this.ids[index] = { id: v.id, ids: v.ids };
|
111
|
+
}
|
112
|
+
}
|
113
|
+
/**
|
114
|
+
* document filters
|
115
|
+
* @return document filters
|
116
|
+
*/
|
117
|
+
get filters() {
|
118
|
+
let filters = [];
|
119
|
+
if (this.filterName) {
|
120
|
+
filters.push({ c: "Name", o: "contains", v1: this.filterName, l: "And" });
|
121
|
+
}
|
122
|
+
filters = [...filters, ...this.filterList];
|
123
|
+
return filters;
|
84
124
|
}
|
85
125
|
}
|
86
126
|
__decorate([
|
87
127
|
observable
|
88
128
|
], State.prototype, "boardcolumns", void 0);
|
129
|
+
__decorate([
|
130
|
+
observable
|
131
|
+
], State.prototype, "ids", void 0);
|
89
132
|
__decorate([
|
90
133
|
observable
|
91
134
|
], State.prototype, "timeout", void 0);
|
@@ -110,12 +153,24 @@ let State = /** @class */ (() => {
|
|
110
153
|
__decorate([
|
111
154
|
observable
|
112
155
|
], State.prototype, "colorList", void 0);
|
156
|
+
__decorate([
|
157
|
+
observable
|
158
|
+
], State.prototype, "filterName", void 0);
|
159
|
+
__decorate([
|
160
|
+
observable
|
161
|
+
], State.prototype, "filterList", void 0);
|
113
162
|
__decorate([
|
114
163
|
action
|
115
164
|
], State.prototype, "onSave", void 0);
|
116
165
|
__decorate([
|
117
166
|
action
|
118
167
|
], State.prototype, "onDragEnd", null);
|
168
|
+
__decorate([
|
169
|
+
action
|
170
|
+
], State.prototype, "onIds", null);
|
171
|
+
__decorate([
|
172
|
+
computed
|
173
|
+
], State.prototype, "filters", null);
|
119
174
|
return State;
|
120
175
|
})();
|
121
176
|
export { State };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/Board/state.ts"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/Board/state.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAWvC;IAAA,MAAa,KAAK;QAEjB,YAA2B,MAAwB,EAAU,SAAwB;YAA1D,WAAM,GAAN,MAAM,CAAkB;YAAU,cAAS,GAAT,SAAS,CAAe;YAClE,iBAAY,GAAmB,EAAE,CAAC;YACrD,gBAAgB;YACG,QAAG,GAAgB,EAAE,CAAC;YACzC,yBAAyB;YACN,YAAO,GAAQ,IAAI,CAA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E7B;QAAX,UAAU;0CAA4B;IAE3B;QAAX,UAAU;uCAAkB;IACjB;QAAX,UAAU;yCAAuB;IAEtB;QAAX,UAAU;6CAA2B;IAE1B;QAAX,UAAU;qDAAmC;IAElC;QAAX,UAAU;yCAAoB;IAEnB;QAAX,UAAU;8CAAyB;IAExB;QAAX,UAAU;4CAAuF;IAEtF;QAAX,UAAU;6CAAwB;IACvB;QAAX,UAAU;6CAAyC;IAyBpD;QADC,MAAM;yCAOL;IAIF;QADC,MAAM;0CAkDN;IAGO;QAAP,MAAM;sCAON;IAOD;QADC,QAAQ;wCAQR;IACF,YAAC;KAAA;SApIY,KAAK"}
|
@@ -1,48 +1,26 @@
|
|
1
1
|
import { State } from "./state";
|
2
|
-
import { Checkbox, Input, Spin, Tooltip
|
3
|
-
import { LinkStore, useBoardColumn, useBoardColumnStore } from "../../../../data/board";
|
2
|
+
import { Checkbox, Input, Spin, Tooltip } from "@voplus/antd";
|
4
3
|
import { Observer, useObserver } from "mobx-react-lite";
|
5
4
|
import React, { useState } from "react";
|
6
|
-
import {
|
5
|
+
import { useDocumentStore } from "@voplus/morpho-document";
|
6
|
+
import { useBoardColumn, useBoardColumnStore } from "../../../../data/board";
|
7
|
+
import AddDocDropdown from "@voplus/morpho-document/es/components/AddDocDropdown";
|
7
8
|
import DocumentMenu from "@voplus/morpho-document/es/components/DocumentMenu";
|
8
9
|
import DocumentSelectDialog from "@voplus/morpho-document/es/components/DocumentSelectDialog";
|
9
10
|
import { Draggable } from "react-beautiful-dnd";
|
10
|
-
import
|
11
|
-
import Links from "../links";
|
11
|
+
import NewDocumentForm from "@voplus/morpho-document/es/components/NewDocumentForm";
|
12
12
|
import { Scrollbars } from "react-custom-scrollbars";
|
13
|
+
import SubDocument from "../SubDocument";
|
13
14
|
import classnames from "classnames";
|
15
|
+
import { faEllipsisH } from "@fortawesome/pro-light-svg-icons";
|
14
16
|
import styles from "./index.less";
|
15
|
-
import { useDocumentStore } from "@voplus/morpho-document";
|
16
17
|
const BoardColumn = (props) => {
|
17
18
|
const { index, destination, source } = { ...props };
|
18
19
|
const documentStore = useDocumentStore();
|
19
20
|
const boardStore = useBoardColumnStore();
|
20
21
|
const [state] = useState(new State(boardStore, documentStore));
|
21
|
-
const [store] = useState(new LinkStore());
|
22
22
|
state.props = props;
|
23
23
|
state.boardcolumn = useBoardColumn(props.id, { reload: state.reload });
|
24
|
-
/** paste link to boardColumn */
|
25
|
-
const onPaste = async () => {
|
26
|
-
var _a;
|
27
|
-
if (!store.moveIds.length)
|
28
|
-
return message.warn("nothing to cut");
|
29
|
-
const sourceId = (_a = store.moveIds[0]) === null || _a === void 0 ? void 0 : _a.leftId;
|
30
|
-
if (!sourceId)
|
31
|
-
return message.warn("Not a link file");
|
32
|
-
const AddLinks = store.moveIds.map(({ rightId }) => ({
|
33
|
-
Type: "Association",
|
34
|
-
RightId: rightId
|
35
|
-
}));
|
36
|
-
const RemoveLinks = store.moveIds.map(({ linkId }) => linkId);
|
37
|
-
store.onPaste(() => documentStore.moveLinks(props.id, sourceId, AddLinks, RemoveLinks));
|
38
|
-
state.reload = true;
|
39
|
-
};
|
40
|
-
/** DocumentSelectDialog 选择文件, boardColumn add links */
|
41
|
-
const onSelect = async (links) => {
|
42
|
-
const AddLinks = links.map((RightId) => ({ Type: "Association", RightId: RightId }));
|
43
|
-
await documentStore.editLinks(props.id, { AddLinks });
|
44
|
-
state.addLinks = false;
|
45
|
-
};
|
46
24
|
return useObserver(() => (React.createElement(Draggable, { draggableId: state.boardcolumn.id, index: index }, (provided, snapshot) => (React.createElement(Observer, null, () => {
|
47
25
|
var _a;
|
48
26
|
return (React.createElement("div", Object.assign({ className: classnames(styles["board-column"], snapshot.isDragging && "action"),
|
@@ -54,15 +32,23 @@ const BoardColumn = (props) => {
|
|
54
32
|
state.editable ? (React.createElement(Spin, { spinning: state.loading },
|
55
33
|
React.createElement(Input.TextArea, { autoSize: true, autoFocus: true, value: state.name, onBlur: () => state.save(), onChange: e => (state.name = e.target.value) }))) : (React.createElement("div", { className: "task-card-title" }, ((_a = state.boardcolumn.name) === null || _a === void 0 ? void 0 : _a.length) > 15 ? (React.createElement(Tooltip, { title: state.boardcolumn.name, placement: "topLeft" },
|
56
34
|
React.createElement("span", null, state.boardcolumn.name))) : (state.boardcolumn.name))),
|
57
|
-
!state.editable && React.createElement("span", { className: "board-length" }, state.
|
35
|
+
!state.editable && (React.createElement("span", { className: "board-length" }, state.documents ? state.documents : state.boardcolumn.documents))),
|
58
36
|
React.createElement("div", { className: "board-control" },
|
59
|
-
React.createElement(DocumentMenu, { id: state.boardcolumn.id,
|
60
|
-
React.createElement("
|
61
|
-
React.createElement(FAIcon, { style: { marginLeft: "15px", color: props.colorStyle }, icon: faPlus })))),
|
37
|
+
React.createElement(DocumentMenu, { id: state.boardcolumn.id, icon: faEllipsisH, lock: !state.readonly, unlock: state.readonly, onEdit: state.onEdit }),
|
38
|
+
React.createElement(AddDocDropdown, { className: "board-drodown", iconColor: props.colorStyle, onItemClick: (val) => state.onItemClick(val), onCancelClick: () => state.cancel() }))),
|
62
39
|
React.createElement(Scrollbars, { autoHide: true },
|
63
|
-
React.createElement(
|
64
|
-
state.
|
40
|
+
React.createElement(SubDocument, { id: props.id, listType: "QUOTE", onDocumentData: state.onDocumentData, destination: destination, source: source })),
|
41
|
+
state.shortcut && React.createElement(DocumentSelectDialog, { onSelect: onCreateShortcut }),
|
42
|
+
state.addAble && (React.createElement(NewDocumentForm, { className: "new-sub-doc", parentId: props.id, type: state.type }))));
|
65
43
|
})))));
|
44
|
+
function onCreateShortcut(doc) {
|
45
|
+
const shortcuts = [];
|
46
|
+
doc.map(item => {
|
47
|
+
shortcuts.push({ TargetId: item, ParentId: props.id, Name: "" });
|
48
|
+
});
|
49
|
+
documentStore.createShortcuts(shortcuts);
|
50
|
+
state.shortcut = false;
|
51
|
+
}
|
66
52
|
};
|
67
53
|
export default BoardColumn;
|
68
54
|
//# sourceMappingURL=index.js.map
|
@@ -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,
|
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,cAAc,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAkC,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3F,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7E,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,oBAAoB,MAAM,4DAA4D,CAAC;AAC9F,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,eAAe,MAAM,uDAAuD,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,WAAW,GAAG,CAAC,KAAuB,EAAE,EAAE;IAC/C,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,EAAE,CAAC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,KAAK,CAAC,MAAM,EAAE,GAClC,CACG,CACD;YACN,oBAAC,UAAU,IAAC,QAAQ;gBACnB,oBAAC,WAAW,IACX,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,QAAQ,EAAC,OAAO,EAChB,cAAc,EAAE,KAAK,CAAC,cAAc,EACpC,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,MAAM,GACb,CACU;YACZ,KAAK,CAAC,QAAQ,IAAI,oBAAC,oBAAoB,IAAC,QAAQ,EAAE,gBAAgB,GAAI;YACtE,KAAK,CAAC,OAAO,IAAI,CACjB,oBAAC,eAAe,IAAC,SAAS,EAAC,aAAa,EAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,GAAI,CACjF,CACI,CACN,CAAA;KAAA,CACS,CACX,CACU,CACZ,CAAC,CAAC;IAEH,SAAS,gBAAgB,CAAC,GAAa;QACtC,MAAM,SAAS,GAA4B,EAAE,CAAC;QAC9C,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;YACd,SAAS,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;QAClE,CAAC,CAAC,CAAC;QACH,aAAa,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;QACzC,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC;IACxB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
@@ -71,6 +71,10 @@
|
|
71
71
|
.svg-inline--fa {
|
72
72
|
cursor: pointer;
|
73
73
|
}
|
74
|
+
.board-drodown{
|
75
|
+
background: #ffffff;
|
76
|
+
margin-left: 10px;
|
77
|
+
}
|
74
78
|
}
|
75
79
|
}
|
76
80
|
.addTask {
|
@@ -94,13 +98,14 @@
|
|
94
98
|
}
|
95
99
|
.dropZone {
|
96
100
|
/* stop the list collapsing when empty */
|
97
|
-
min-height: 250px;
|
101
|
+
// min-height: 250px;
|
102
|
+
height: 100%;
|
98
103
|
|
99
104
|
/*
|
100
105
|
not relying on the items for a margin-bottom
|
101
106
|
as it will collapse when the list is empty
|
102
107
|
*/
|
103
|
-
padding-bottom: 8px;
|
108
|
+
// padding-bottom: 8px;
|
104
109
|
}
|
105
110
|
.wrapper {
|
106
111
|
flex: 1;
|
@@ -112,6 +117,7 @@
|
|
112
117
|
transition: background-color 0.2s ease, opacity 0.1s ease;
|
113
118
|
user-select: none;
|
114
119
|
width: 250px;
|
120
|
+
height: 100%;
|
115
121
|
// background: #e6f7ff;
|
116
122
|
}
|
117
123
|
.scrollContainer {
|
@@ -121,17 +127,8 @@
|
|
121
127
|
}
|
122
128
|
.link-container {
|
123
129
|
border-radius: 2px;
|
124
|
-
// border: 2px solid transparent;
|
125
|
-
// border-color: ${props => getBorderColor(props.isDragging, props.colors)};
|
126
|
-
// background-color: ${props =>
|
127
|
-
// getBackgroundColor(props.isDragging, props.isGroupedOver, props.colors)};
|
128
|
-
// box-shadow: ${({ isDragging }) =>
|
129
|
-
// isDragging ? `2px 2px 1px ${colors.N70}` : 'none'};
|
130
|
-
// background: #ffffff;
|
131
|
-
// box-sizing: border-box;
|
132
|
-
// padding: 8px;
|
133
130
|
min-height: 40px;
|
134
|
-
|
131
|
+
margin-bottom: 15px;
|
135
132
|
user-select: none;
|
136
133
|
|
137
134
|
/* anchor overrides */
|
@@ -149,6 +146,10 @@
|
|
149
146
|
box-shadow: none;
|
150
147
|
}
|
151
148
|
|
149
|
+
// &:last-child{
|
150
|
+
// margin-bottom: 0;
|
151
|
+
// }
|
152
|
+
|
152
153
|
/* flexbox */
|
153
154
|
display: flex;
|
154
155
|
}
|
@@ -225,5 +226,14 @@
|
|
225
226
|
text-overflow: ellipsis;
|
226
227
|
text-align: right;
|
227
228
|
}
|
229
|
+
.new-sub-doc{
|
230
|
+
padding: 0;
|
231
|
+
.ant-form-item{
|
232
|
+
margin-bottom: 0;
|
233
|
+
}
|
234
|
+
.ant-spin-nested-loading{
|
235
|
+
margin: 4px 0 0 0;
|
236
|
+
}
|
237
|
+
}
|
228
238
|
}
|
229
239
|
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
1
|
+
import { BoardColumnStore, IBoardColumn } from "../../../../data/board";
|
2
|
+
import { DocumentStore, docType } from "@voplus/morpho-document";
|
3
3
|
export declare type BoardColumnProps = {
|
4
4
|
id: string;
|
5
5
|
/** reload BoardColumn */
|
@@ -12,6 +12,7 @@ export declare type BoardColumnProps = {
|
|
12
12
|
destination?: any;
|
13
13
|
/** move 原数据 */
|
14
14
|
source?: any;
|
15
|
+
onIds?: (params?: any) => void;
|
15
16
|
};
|
16
17
|
export declare class State {
|
17
18
|
private boardColumnStore;
|
@@ -19,8 +20,10 @@ export declare class State {
|
|
19
20
|
props: BoardColumnProps;
|
20
21
|
boardcolumn: IBoardColumn;
|
21
22
|
name: string;
|
22
|
-
/** BoardColumn
|
23
|
-
|
23
|
+
/** BoardColumn documents number*/
|
24
|
+
documents: number;
|
25
|
+
/** BoardColumn sub-doucment-list id */
|
26
|
+
ids: string;
|
24
27
|
reload: boolean;
|
25
28
|
/** edit BoardColumn name */
|
26
29
|
editable: boolean;
|
@@ -30,29 +33,25 @@ export declare class State {
|
|
30
33
|
checkIds: string[];
|
31
34
|
checkAll: boolean;
|
32
35
|
multiple: boolean;
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
AddLinksAble: boolean;
|
36
|
+
shortcut: boolean;
|
37
|
+
addAble: boolean;
|
38
|
+
type: docType;
|
37
39
|
constructor(boardColumnStore: BoardColumnStore, docStore: DocumentStore);
|
38
40
|
/** DocumentMenu click edit */
|
39
41
|
onEdit: () => void;
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
onLinkNum: (links: number) => void;
|
42
|
+
/**@documents BoardColumn documents number
|
43
|
+
* @ids BoardColumn sub-document lists id[] */
|
44
|
+
onDocumentData: ({ documents, ids }: any) => void;
|
44
45
|
/** cleck */
|
45
46
|
onCheck: (checkAll: boolean) => void;
|
46
47
|
/** checkAll */
|
47
48
|
onCheckAllChange: (e: any) => void;
|
48
49
|
/** edit save BoardColumn name function*/
|
49
50
|
save(): Promise<any>;
|
50
|
-
/** delete boardColumn*/
|
51
|
-
delete(): void;
|
52
|
-
/** lock boardColumn*/
|
53
|
-
lock(): Promise<void>;
|
54
|
-
/** unlock boardColumn */
|
55
|
-
unlock(): Promise<void>;
|
56
51
|
/** BoardColumn文件是否 readonly */
|
57
52
|
get readonly(): boolean;
|
53
|
+
/** AddDocDropdown(新增type下拉Menu) item click */
|
54
|
+
onItemClick(val: docType): void;
|
55
|
+
/** documentList add Drop down more menus hidden*/
|
56
|
+
cancel(): void;
|
58
57
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { action, computed, observable } from "mobx";
|
2
|
+
import { action, computed, observable, toJS } from "mobx";
|
3
3
|
import { message } from "@voplus/antd";
|
4
4
|
let State = /** @class */ (() => {
|
5
5
|
class State {
|
@@ -7,8 +7,10 @@ let State = /** @class */ (() => {
|
|
7
7
|
this.boardColumnStore = boardColumnStore;
|
8
8
|
this.docStore = docStore;
|
9
9
|
this.name = "";
|
10
|
-
/** BoardColumn
|
11
|
-
this.
|
10
|
+
/** BoardColumn documents number*/
|
11
|
+
this.documents = 0;
|
12
|
+
/** BoardColumn sub-doucment-list id */
|
13
|
+
this.ids = "";
|
12
14
|
this.reload = false;
|
13
15
|
/** edit BoardColumn name */
|
14
16
|
this.editable = false;
|
@@ -18,22 +20,20 @@ let State = /** @class */ (() => {
|
|
18
20
|
this.checkIds = [];
|
19
21
|
this.checkAll = false;
|
20
22
|
this.multiple = false;
|
21
|
-
|
22
|
-
this.
|
23
|
-
/** add links 如果为true 显示新增links框 */
|
24
|
-
this.AddLinksAble = false;
|
23
|
+
this.shortcut = false;
|
24
|
+
this.addAble = false;
|
25
25
|
/** DocumentMenu click edit */
|
26
26
|
this.onEdit = () => {
|
27
27
|
this.name = this.boardcolumn.name;
|
28
28
|
this.editable = !this.editable;
|
29
29
|
};
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
this.
|
30
|
+
/**@documents BoardColumn documents number
|
31
|
+
* @ids BoardColumn sub-document lists id[] */
|
32
|
+
this.onDocumentData = ({ documents, ids }) => {
|
33
|
+
var _a, _b;
|
34
|
+
this.documents = documents;
|
35
|
+
this.ids = toJS(JSON.stringify(ids));
|
36
|
+
(_b = (_a = this.props).onIds) === null || _b === void 0 ? void 0 : _b.call(_a, { id: this.props.id, ids: ids });
|
37
37
|
};
|
38
38
|
/** cleck */
|
39
39
|
this.onCheck = (checkAll) => {
|
@@ -59,24 +59,25 @@ let State = /** @class */ (() => {
|
|
59
59
|
this.boardcolumn.name = this.name;
|
60
60
|
this.editable = !this.editable;
|
61
61
|
}
|
62
|
-
/** delete boardColumn*/
|
63
|
-
delete() {
|
64
|
-
this.boardColumnStore.delete([this.boardcolumn.id], { DeleteChilds: true });
|
65
|
-
}
|
66
|
-
/** lock boardColumn*/
|
67
|
-
async lock() {
|
68
|
-
await this.docStore.edit(this.boardcolumn.id, { Status: "Readonly" });
|
69
|
-
this.boardcolumn.status = "Readonly";
|
70
|
-
}
|
71
|
-
/** unlock boardColumn */
|
72
|
-
async unlock() {
|
73
|
-
await this.docStore.edit(this.boardcolumn.id, { Status: "Normal" });
|
74
|
-
this.boardcolumn.status = "Normal";
|
75
|
-
}
|
76
62
|
/** BoardColumn文件是否 readonly */
|
77
63
|
get readonly() {
|
78
64
|
return this.boardcolumn.status === "Readonly";
|
79
65
|
}
|
66
|
+
/** AddDocDropdown(新增type下拉Menu) item click */
|
67
|
+
onItemClick(val) {
|
68
|
+
if (val.toLowerCase() === "shortcut") {
|
69
|
+
this.shortcut = true;
|
70
|
+
}
|
71
|
+
else {
|
72
|
+
this.type = val;
|
73
|
+
this.addAble = true;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
/** documentList add Drop down more menus hidden*/
|
77
|
+
cancel() {
|
78
|
+
this.shortcut = false;
|
79
|
+
this.addAble = false;
|
80
|
+
}
|
80
81
|
}
|
81
82
|
__decorate([
|
82
83
|
observable
|
@@ -86,7 +87,10 @@ let State = /** @class */ (() => {
|
|
86
87
|
], State.prototype, "name", void 0);
|
87
88
|
__decorate([
|
88
89
|
observable
|
89
|
-
], State.prototype, "
|
90
|
+
], State.prototype, "documents", void 0);
|
91
|
+
__decorate([
|
92
|
+
observable
|
93
|
+
], State.prototype, "ids", void 0);
|
90
94
|
__decorate([
|
91
95
|
observable
|
92
96
|
], State.prototype, "reload", void 0);
|
@@ -110,19 +114,19 @@ let State = /** @class */ (() => {
|
|
110
114
|
], State.prototype, "multiple", void 0);
|
111
115
|
__decorate([
|
112
116
|
observable
|
113
|
-
], State.prototype, "
|
117
|
+
], State.prototype, "shortcut", void 0);
|
114
118
|
__decorate([
|
115
119
|
observable
|
116
|
-
], State.prototype, "
|
120
|
+
], State.prototype, "addAble", void 0);
|
117
121
|
__decorate([
|
118
|
-
|
119
|
-
], State.prototype, "
|
122
|
+
observable
|
123
|
+
], State.prototype, "type", void 0);
|
120
124
|
__decorate([
|
121
125
|
action
|
122
|
-
], State.prototype, "
|
126
|
+
], State.prototype, "onEdit", void 0);
|
123
127
|
__decorate([
|
124
128
|
action
|
125
|
-
], State.prototype, "
|
129
|
+
], State.prototype, "onDocumentData", void 0);
|
126
130
|
__decorate([
|
127
131
|
action
|
128
132
|
], State.prototype, "onCheck", void 0);
|
@@ -133,17 +137,14 @@ let State = /** @class */ (() => {
|
|
133
137
|
action
|
134
138
|
], State.prototype, "save", null);
|
135
139
|
__decorate([
|
136
|
-
|
137
|
-
], State.prototype, "
|
140
|
+
computed
|
141
|
+
], State.prototype, "readonly", null);
|
138
142
|
__decorate([
|
139
143
|
action
|
140
|
-
], State.prototype, "
|
144
|
+
], State.prototype, "onItemClick", null);
|
141
145
|
__decorate([
|
142
146
|
action
|
143
|
-
], State.prototype, "
|
144
|
-
__decorate([
|
145
|
-
computed
|
146
|
-
], State.prototype, "readonly", null);
|
147
|
+
], State.prototype, "cancel", null);
|
147
148
|
return State;
|
148
149
|
})();
|
149
150
|
export { State };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/BoardColumn/state.ts"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/BoardColumn/state.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE1D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAiBvC;IAAA,MAAa,KAAK;QAqBjB,YAA2B,gBAAkC,EAAU,QAAuB;YAAnE,qBAAgB,GAAhB,gBAAgB,CAAkB;YAAU,aAAQ,GAAR,QAAQ,CAAe;YAlB3E,SAAI,GAAG,EAAE,CAAC;YAC7B,kCAAkC;YACf,cAAS,GAAG,CAAC,CAAC;YACjC,uCAAuC;YACpB,QAAG,GAAG,EAAE,CAAC;YACT,WAAM,GAAG,KAAK,CAAC;YAClC,4BAA4B;YACT,aAAQ,GAAG,KAAK,CAAC;YACpC,0BAA0B;YACP,YAAO,GAAG,KAAK,CAAC;YAChB,YAAO,GAAG,KAAK,CAAC;YAChB,aAAQ,GAAa,EAAE,CAAC;YACxB,aAAQ,GAAG,KAAK,CAAC;YACjB,aAAQ,GAAG,KAAK,CAAC;YACjB,aAAQ,GAAG,KAAK,CAAC;YACjB,YAAO,GAAG,KAAK,CAAC;YAKnC,8BAA8B;YAEvB,WAAM,GAAG,GAAG,EAAE;gBACpB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;gBAClC,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,Q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