@voplus/morpho-workspace 1.1.0-dev013 → 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/components/AvatarList/state.js +50 -46
- package/es/components/AvatarList/state.js.map +1 -1
- package/es/components/TimeLog/index.d.ts +1 -1
- 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 +3 -1
- package/es/data/board/index.js.map +1 -1
- package/es/data/board/metas.js +15 -11
- package/es/data/board/metas.js.map +1 -1
- package/es/data/meeting/index.js +2 -0
- package/es/data/meeting/index.js.map +1 -1
- package/es/data/meeting/metas.js +22 -18
- package/es/data/meeting/metas.js.map +1 -1
- package/es/data/task/index.js +2 -0
- package/es/data/task/index.js.map +1 -1
- package/es/data/task/metas.js +19 -15
- package/es/data/task/metas.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 +165 -106
- 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 +144 -139
- package/es/modules/board/components/BoardColumn/state.js.map +1 -1
- package/es/modules/board/components/DocumentCard/index.d.ts +2 -4
- 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 +68 -51
- package/es/modules/board/components/DocumentCard/state.js.map +1 -1
- package/es/modules/board/components/NewTaskForm/state.js +41 -37
- package/es/modules/board/components/NewTaskForm/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 +121 -112
- package/es/modules/board/components/TaskCard/state.js.map +1 -1
- package/es/modules/board/pages/BoardViewList/state.js +14 -10
- package/es/modules/board/pages/BoardViewList/state.js.map +1 -1
- package/es/modules/calendar/components/CalendarMenu/index.d.ts +1 -1
- package/es/modules/calendar/components/TaskCard/state.js +58 -54
- package/es/modules/calendar/components/TaskCard/state.js.map +1 -1
- package/es/modules/calendar/pages/CalendarMonth/state.js +12 -8
- package/es/modules/calendar/pages/CalendarMonth/state.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaHeader/index.d.ts +2 -2
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskItem/index.d.ts +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.js +40 -36
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/state.js +47 -43
- package/es/modules/meeting/components/AgendaList/AgendaItem/state.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/state.js +19 -15
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/state.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/state.js +22 -18
- package/es/modules/meeting/components/AgendaList/state.js.map +1 -1
- package/es/modules/meeting/components/MeetingDescription/index.d.ts +1 -1
- package/es/modules/meeting/components/MeetingHeader/index.d.ts +3 -3
- package/es/modules/meeting/components/MeetingItem/index.d.ts +1 -1
- package/es/modules/meeting/components/MeetingItem/state.js +22 -18
- package/es/modules/meeting/components/MeetingItem/state.js.map +1 -1
- package/es/modules/meeting/components/MeetingQuickViewDialog/index.d.ts +2 -2
- package/es/modules/meeting/components/NewMeetingForm/index.js +1 -1
- package/es/modules/meeting/components/NewMeetingForm/index.js.map +1 -1
- package/es/modules/meeting/components/NewMeetingForm/state.js +31 -27
- package/es/modules/meeting/components/NewMeetingForm/state.js.map +1 -1
- package/es/modules/menus/components/Access/index.d.ts +2 -2
- package/es/modules/menus/components/Account/index.d.ts +2 -2
- package/es/modules/menus/components/Status/index.d.ts +2 -2
- package/es/modules/tasks/components/NewTaskForm/index.js +1 -1
- package/es/modules/tasks/components/NewTaskForm/index.js.map +1 -1
- package/es/modules/tasks/components/NewTaskForm/state.js +30 -26
- package/es/modules/tasks/components/NewTaskForm/state.js.map +1 -1
- package/es/modules/tasks/components/SubTaskList/state.js +22 -18
- package/es/modules/tasks/components/SubTaskList/state.js.map +1 -1
- package/es/modules/tasks/components/TaskDescription/index.d.ts +1 -1
- package/es/modules/tasks/components/TaskItem/state.js +157 -153
- package/es/modules/tasks/components/TaskItem/state.js.map +1 -1
- package/es/modules/tasks/components/TaskPropertiesView/index.d.ts +1 -1
- package/es/modules/tasks/components/TaskQuickViewDialog/index.d.ts +2 -2
- package/es/modules/tasks/components/TaskTimeBox/index.d.ts +4 -4
- package/es/modules/tasks/components/TaskTimeBox/state.js +74 -70
- package/es/modules/tasks/components/TaskTimeBox/state.js.map +1 -1
- package/es/modules/workspaces/components/Access/index.d.ts +2 -2
- package/es/modules/workspaces/components/Account/index.d.ts +2 -2
- package/es/modules/workspaces/components/ListHeard/index.d.ts +1 -1
- package/es/modules/workspaces/components/Status/index.d.ts +2 -2
- package/package.json +5 -5
- package/es/data/board/LinkStore.d.ts +0 -11
- package/es/data/board/LinkStore.js +0 -40
- 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 -33
- 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
@@ -0,0 +1,25 @@
|
|
1
|
+
export declare type SubDocumentListProps = {
|
2
|
+
id: string;
|
3
|
+
/** sub-document length ids */
|
4
|
+
onDocumentData?: (params?: any) => void;
|
5
|
+
/** move 目标数据 */
|
6
|
+
destination?: any;
|
7
|
+
/** move 原数据 */
|
8
|
+
source?: any;
|
9
|
+
};
|
10
|
+
export declare class State {
|
11
|
+
props: SubDocumentListProps;
|
12
|
+
lists: any[];
|
13
|
+
loading: boolean;
|
14
|
+
/** move 目标数据 */
|
15
|
+
destination: any;
|
16
|
+
/** move 原数据 */
|
17
|
+
source: any;
|
18
|
+
/** sub-document move function */
|
19
|
+
move(): void;
|
20
|
+
/** props.onDocumentData 需要的数据 */
|
21
|
+
get docData(): {
|
22
|
+
documents: number;
|
23
|
+
ids: string[];
|
24
|
+
};
|
25
|
+
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { action, computed, observable } from "mobx";
|
3
|
+
let State = /** @class */ (() => {
|
4
|
+
class State {
|
5
|
+
constructor() {
|
6
|
+
this.lists = [];
|
7
|
+
this.loading = true;
|
8
|
+
}
|
9
|
+
/** sub-document move function */
|
10
|
+
move() {
|
11
|
+
var _a, _b;
|
12
|
+
console.log("move---", this.props.source, this.props.destination);
|
13
|
+
if (((_a = this.props.source) === null || _a === void 0 ? void 0 : _a.parentId) === this.props.id) {
|
14
|
+
const iNum = this.lists.findIndex(item => {
|
15
|
+
return item.id === this.props.source.id;
|
16
|
+
});
|
17
|
+
if (iNum >= 0 && this.lists[iNum].id === this.props.source.id) {
|
18
|
+
this.lists.splice(iNum, 1);
|
19
|
+
this.props.onDocumentData(this.docData);
|
20
|
+
}
|
21
|
+
}
|
22
|
+
if (((_b = this.props.destination) === null || _b === void 0 ? void 0 : _b.parentId) === this.props.id) {
|
23
|
+
const index = this.lists.findIndex(item => { var _a; return item.id === ((_a = this.props.destination) === null || _a === void 0 ? void 0 : _a.id); });
|
24
|
+
const doc = {
|
25
|
+
id: this.props.destination.id
|
26
|
+
};
|
27
|
+
const iNum = this.props.destination.index;
|
28
|
+
this.lists.splice(iNum, 0, doc);
|
29
|
+
this.props.onDocumentData(this.docData);
|
30
|
+
}
|
31
|
+
}
|
32
|
+
/** props.onDocumentData 需要的数据 */
|
33
|
+
get docData() {
|
34
|
+
const ids = [];
|
35
|
+
this.lists.map(i => ids.push(i.id));
|
36
|
+
return { documents: this.lists.length, ids: ids };
|
37
|
+
}
|
38
|
+
}
|
39
|
+
__decorate([
|
40
|
+
observable
|
41
|
+
], State.prototype, "lists", void 0);
|
42
|
+
__decorate([
|
43
|
+
observable
|
44
|
+
], State.prototype, "loading", void 0);
|
45
|
+
__decorate([
|
46
|
+
observable
|
47
|
+
], State.prototype, "destination", void 0);
|
48
|
+
__decorate([
|
49
|
+
observable
|
50
|
+
], State.prototype, "source", void 0);
|
51
|
+
__decorate([
|
52
|
+
action
|
53
|
+
], State.prototype, "move", null);
|
54
|
+
__decorate([
|
55
|
+
computed
|
56
|
+
], State.prototype, "docData", null);
|
57
|
+
return State;
|
58
|
+
})();
|
59
|
+
export { State };
|
60
|
+
//# sourceMappingURL=state.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/SubDocumentList/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAWpD;IAAA,MAAa,KAAK;QAAlB;YAEoB,UAAK,GAAU,EAAE,CAAC;YAClB,YAAO,GAAG,IAAI,CAAC;QAsCnC,CAAC;QAhCA,iCAAiC;QAE1B,IAAI;;YACV,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;YAClE,IAAI,OAAA,IAAI,CAAC,KAAK,CAAC,MAAM,0CAAE,QAAQ,MAAK,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE;gBAClD,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;oBACxC,OAAO,IAAI,CAAC,EAAE,KAAK,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;gBACzC,CAAC,CAAC,CAAC;gBACH,IAAI,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,KAAK,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,EAAE;oBAC9D,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;oBAC3B,IAAI,CAAC,KAAK,CAAC,cAAe,CAAC,IAAI,CAAC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, Checkbox } from "@voplus/antd";
|
2
2
|
import React, { useState } from "react";
|
3
3
|
import { State } from "./state";
|
4
|
-
import {
|
4
|
+
import { faSave, faUndo } from "@fortawesome/pro-light-svg-icons";
|
5
5
|
import { useTask, useTaskStore } from "../../../../data/task";
|
6
6
|
import AvatarList from "../../../../components/AvatarList";
|
7
7
|
import Card from "@voplus/morpho-ui/es/controls/Card";
|
8
|
-
import
|
8
|
+
import DocumentName from "@voplus/morpho-document/es/components/DocumentName";
|
9
9
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
10
10
|
import FlagIcon from "@voplus/morpho-document/es/controls/FlagIcon";
|
11
|
-
import
|
12
|
-
import
|
13
|
-
import TaskQuickViewDialog from "../../../tasks/components/TaskQuickViewDialog";
|
11
|
+
import QuickDataIcon from "@voplus/morpho-document/es/controls/QuickDataIcon";
|
12
|
+
import TaskTimeBox from "../../../tasks/components/TaskTimeBox";
|
14
13
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar";
|
15
14
|
import classnames from "classnames";
|
16
|
-
import moment from "moment";
|
17
15
|
import styles from "./index.less";
|
18
16
|
import { useDocumentStore } from "@voplus/morpho-document";
|
19
|
-
import { useLayout } from "@voplus/morpho-data";
|
20
17
|
import { useObserver } from "mobx-react-lite";
|
21
18
|
const TaskCard = (props) => {
|
22
19
|
const taskStore = useTaskStore();
|
23
20
|
const documentStore = useDocumentStore();
|
24
21
|
const [state] = useState(new State(taskStore, documentStore));
|
25
|
-
const
|
26
|
-
const { id, leftId, linkId, multiple } = { ...props };
|
22
|
+
const { id, multiple } = { ...props };
|
27
23
|
state.task = useTask(id);
|
28
24
|
state.props = props;
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
(state.task.documents || 0) - (state.task.tasks || 0)),
|
51
|
-
React.createElement("span", null,
|
52
|
-
React.createElement(FAIcon, { icon: faCommentDots }),
|
53
|
-
state.task.comments || 0),
|
54
|
-
React.createElement("span", null,
|
55
|
-
React.createElement(FAIcon, { icon: faCopy }),
|
56
|
-
(state.task.members && state.task.members.length) || 0)));
|
57
|
-
return useObserver(() => {
|
58
|
-
var _a, _b;
|
59
|
-
return (React.createElement(Card, { className: styles["task-card"], padding: "15px 12px", shadow: true },
|
60
|
-
React.createElement("div", { className: "task-card-item", onMouseOver: () => (state.isHover = !multiple && !state.editable), onMouseLeave: () => (state.isHover = false) },
|
61
|
-
React.createElement("div", { className: "task-card-head" },
|
62
|
-
multiple && React.createElement(Checkbox, { value: state.task.id, className: "multiple-box" }),
|
63
|
-
!multiple && (React.createElement(FlagIcon, { id: state.task.id, editable: !state.readonly, flag: state.task.flag, color: state.task.taskStatus === "Done" || state.isHover
|
64
|
-
? "rgba(168, 168, 168,0.5)"
|
65
|
-
: "#999", onchange: (e) => state.changeImportant(e), className: "task-icon-star" })),
|
66
|
-
state.editable ? (React.createElement(Spin, { spinning: state.loading },
|
67
|
-
React.createElement(Input.TextArea, { className: "task-card-title", autoSize: true, autoFocus: true, value: state.name, onChange: e => (state.name = e.target.value) }))) : (React.createElement("div", { className: "task-card-title", onClick: () => (state.visibleQuickView = true) }, ((_a = state.task.name) === null || _a === void 0 ? void 0 : _a.length) > 25 ? (React.createElement(Tooltip, { title: state.task.name, placement: "topLeft" },
|
68
|
-
React.createElement("span", null, state.task.name))) : (state.task.name))),
|
69
|
-
React.createElement(AvatarList, { num: 2, multiple: state.editable, editable: state.editable, list: [...(state.task.members || []), ...state.childMembers], onChange: (ids) => (state.ids = ids) })),
|
70
|
-
React.createElement("div", { className: "task-card-control" },
|
71
|
-
(state.editable || state.task.dueDate) && (React.createElement("span", null,
|
72
|
-
React.createElement(InlineEdit, { editable: state.editable && !state.readonly, defaultValue: state.task.dueDate ? moment(state.task.dueDate) : "", content: v => (React.createElement(React.Fragment, null,
|
73
|
-
React.createElement(FAIcon, { icon: faClock }),
|
74
|
-
React.createElement("span", null, v.store.value
|
75
|
-
? moment(v.store.value.toString()).format("D MMM YYYY")
|
76
|
-
: state.editable
|
77
|
-
? "Add Task Time"
|
78
|
-
: ""))), editTrigger: "click", onSave: (v) => (v ? taskStore.edit(state.task.id, { DueDate: v }) : null), editor: DateInputEditor }))),
|
79
|
-
iconList),
|
80
|
-
React.createElement("div", { className: "task-card-label" },
|
81
|
-
!state.isHover &&
|
82
|
-
!state.editable && ((_b = state.task.label) === null || _b === void 0 ? void 0 : _b.map((item, index) => (React.createElement("div", { key: index, className: classnames("item", item === "project" && "project") },
|
83
|
-
item,
|
84
|
-
item === "project" && (React.createElement("span", { className: "close" },
|
85
|
-
React.createElement(FAIcon, { icon: faTimes }))))))),
|
86
|
-
state.isHover && !state.editable && (React.createElement("div", { className: classnames("hover-operate-icon", { show: state.isHover }) },
|
87
|
-
React.createElement(ToolBar, { id: props.id, size: "small", url: `/tasks/${id}`, edit: false, hoverEdit: !state.readonly, deleteTitel: "Do you want to remove this item from board ?", onDelete: () => state.delete(), onEdit: () => state.edit(), onMove: onMove, onPaste: onPaste, onLock: () => state.lock(), onUnlock: () => state.unlock() }))),
|
88
|
-
state.editable && (React.createElement("div", { className: "task-card-editable-name" },
|
89
|
-
React.createElement(Button, { shape: "circle", size: "small", onClick: () => (state.editable = false) },
|
90
|
-
React.createElement(FAIcon, { icon: faUndo })),
|
91
|
-
React.createElement(Button, { type: "primary", size: "small", ghost: true, shape: "circle", onClick: () => state.save() },
|
92
|
-
React.createElement(FAIcon, { icon: faSave })))))),
|
93
|
-
React.createElement(TaskQuickViewDialog, { id: props.id, visible: state.visibleQuickView, onCancel: () => (state.visibleQuickView = false) })));
|
94
|
-
});
|
25
|
+
return useObserver(() => (React.createElement(Card, { className: styles["task-card"], padding: "15px 12px", shadow: true },
|
26
|
+
React.createElement("div", { className: "task-card-item", onMouseOver: () => (state.isHover = !multiple && !state.editable), onMouseLeave: () => (state.isHover = false) },
|
27
|
+
React.createElement("div", { className: "task-card-head" },
|
28
|
+
multiple && React.createElement(Checkbox, { value: state.task.id, className: "multiple-box" }),
|
29
|
+
!multiple && (React.createElement(FlagIcon, { id: state.task.id, editable: !state.readonly, flag: state.task.flag, className: "task-flag" })),
|
30
|
+
React.createElement(DocumentName, { id: id, includes: "tags,task-number-reports", editable: state.editable, onChange: value => (state.name = value), className: "task-name", status: false, showTags: false }),
|
31
|
+
React.createElement(AvatarList, { num: 2, multiple: state.editable, editable: state.editable, list: [...(state.task.members || []), ...state.childMembers], onChange: (ids) => (state.ids = ids) })),
|
32
|
+
React.createElement("div", { className: "task-card-control" },
|
33
|
+
React.createElement("div", null,
|
34
|
+
React.createElement(TaskTimeBox, { id: id, estimatedHours: state.task.estimatedHours || 0, schedule: [state.task.startDate, state.task.dueDate], editable: !state.readonly &&
|
35
|
+
!!(state.editable || state.task.startDate || state.task.estimatedHours), className: "task-time-box" })),
|
36
|
+
React.createElement("div", null,
|
37
|
+
React.createElement(QuickDataIcon, { id: id, includes: "tags,task-number-reports" }))),
|
38
|
+
React.createElement("div", { className: "task-card-label" },
|
39
|
+
state.isHover && !state.editable && (React.createElement("div", { className: classnames("hover-operate-icon", { show: state.isHover }) },
|
40
|
+
React.createElement(ToolBar, { id: props.id, size: "small", url: `/tasks/${id}`, edit: false, hoverEdit: !state.readonly, deleteTitel: "Do you want to remove this item from board ?", onEdit: () => state.edit() }))),
|
41
|
+
state.editable && (React.createElement("div", { className: "task-card-editable-name" },
|
42
|
+
React.createElement(Button, { shape: "circle", onClick: () => (state.editable = false) },
|
43
|
+
React.createElement(FAIcon, { icon: faUndo })),
|
44
|
+
React.createElement(Button, { type: "primary", ghost: true, shape: "circle", disabled: !state.hasChanges, loading: state.loading, className: "margin-left-10", onClick: () => state.save() },
|
45
|
+
React.createElement(FAIcon, { icon: faSave })))))))));
|
95
46
|
};
|
96
47
|
export default TaskCard;
|
97
48
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/TaskCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/TaskCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAiB,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE9D,OAAO,UAAU,MAAM,mCAAmC,CAAC;AAC3D,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,QAAQ,MAAM,8CAA8C,CAAC;AACpE,OAAO,aAAa,MAAM,mDAAmD,CAAC;AAC9E,OAAO,WAAW,MAAM,uCAAuC,CAAC;AAChE,OAAO,OAAO,MAAM,6CAA6C,CAAC;AAClE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,QAAQ,GAAG,CAAC,KAAoB,EAAE,EAAE;IACzC,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAA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Z,GAAG,EAAE,UAAU,EAAE,EAAE,EACnB,IAAI,EAAE,KAAK,EACX,SAAS,EAAE,CAAC,KAAK,CAAC,QAAQ,EAC1B,WAAW,EAAC,8CAA8C,EAC1D,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,GACzB,CACG,CACN;gBACA,KAAK,CAAC,QAAQ,IAAI,CAClB,6BAAK,SAAS,EAAC,yBAAyB;oBACvC,oBAAC,MAAM,IAAC,KAAK,EAAC,QAAQ,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC;wBAC7D,oBAAC,MAAM,IAAC,IAAI,EAAE,MAAM,GAAI,CAChB;oBACT,oBAAC,MAAM,IACN,IAAI,EAAC,SAAS,EACd,KAAK,QACL,KAAK,EAAC,QAAQ,EACd,QAAQ,EAAE,CAAC,KAAK,CAAC,UAAU,EAC3B,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,SAAS,EAAC,gBAAgB,EAC1B,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE;wBAE3B,oBAAC,MAAM,IAAC,IAAI,EAAE,MAAM,GAAI,CAChB,CACJ,CACN,CACI,CACD,CACA,CACP,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
@@ -1,12 +1,18 @@
|
|
1
1
|
@import "../../../../style/common.less";
|
2
2
|
.task-card {
|
3
|
-
margin-bottom: 15px;
|
3
|
+
// margin-bottom: 15px;
|
4
4
|
background: #ffffff;
|
5
5
|
cursor: pointer;
|
6
6
|
:global {
|
7
7
|
.task-card-head {
|
8
8
|
display: flex;
|
9
9
|
align-items: center;
|
10
|
+
.task-flag{
|
11
|
+
width: 20px;
|
12
|
+
}
|
13
|
+
.task-name{
|
14
|
+
flex: 1;
|
15
|
+
}
|
10
16
|
.task-card-title {
|
11
17
|
flex: 1;
|
12
18
|
font-size: 16px;
|
@@ -18,12 +24,11 @@
|
|
18
24
|
}
|
19
25
|
}
|
20
26
|
.task-card-control {
|
21
|
-
margin-top: 6px;
|
22
27
|
display: flex;
|
23
28
|
align-items: center;
|
24
|
-
padding: 5px 0;
|
25
29
|
font-size: 13px;
|
26
30
|
color: #666;
|
31
|
+
line-height: 24px;
|
27
32
|
& > span {
|
28
33
|
display: flex;
|
29
34
|
align-items: center;
|
@@ -48,7 +53,7 @@
|
|
48
53
|
}
|
49
54
|
.task-card-label {
|
50
55
|
height: 24px;
|
51
|
-
margin-top:
|
56
|
+
margin-top: 4px;
|
52
57
|
.item {
|
53
58
|
display: inline-block;
|
54
59
|
font-size: 13px;
|
@@ -2,10 +2,6 @@ import { ITask, TaskStore } from "../../../../data/task";
|
|
2
2
|
import { DocumentStore } from "@voplus/morpho-document";
|
3
3
|
export declare type TaskCardProps = {
|
4
4
|
id: string;
|
5
|
-
/** link leftId */
|
6
|
-
leftId?: string;
|
7
|
-
/** link id */
|
8
|
-
linkId?: string;
|
9
5
|
reload?: boolean;
|
10
6
|
multiple?: boolean;
|
11
7
|
};
|
@@ -23,18 +19,15 @@ export declare class State {
|
|
23
19
|
editable: boolean;
|
24
20
|
/** edit task save loading */
|
25
21
|
loading: boolean;
|
26
|
-
/** task QuickView */
|
27
|
-
visibleQuickView: boolean;
|
28
22
|
isHover: boolean;
|
29
23
|
reload: boolean;
|
30
24
|
get readonly(): boolean;
|
31
25
|
get childMembers(): any[];
|
26
|
+
get hasChanges(): boolean | undefined;
|
32
27
|
/** edit task */
|
33
28
|
edit(): void;
|
34
29
|
/** edit task save */
|
35
30
|
save(): Promise<void>;
|
36
|
-
/** delete link */
|
37
|
-
delete(): void;
|
38
31
|
/** task Lock */
|
39
32
|
lock(): void;
|
40
33
|
/** task unlock */
|
@@ -1,119 +1,128 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { action, computed, observable } from "mobx";
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
2
|
+
import { action, computed, observable, toJS } from "mobx";
|
3
|
+
import { isEqual } from "lodash-es";
|
4
|
+
let State = /** @class */ (() => {
|
5
|
+
class State {
|
6
|
+
constructor(_store, _docStore) {
|
7
|
+
this._store = _store;
|
8
|
+
this._docStore = _docStore;
|
9
|
+
/** task members ids */
|
10
|
+
this.ids = [];
|
11
|
+
/** edit task name */
|
12
|
+
this.name = "";
|
13
|
+
/** edit task */
|
14
|
+
this.editable = false;
|
15
|
+
/** edit task save loading */
|
16
|
+
this.loading = false;
|
17
|
+
this.isHover = false;
|
18
|
+
this.reload = false;
|
19
|
+
}
|
20
|
+
get readonly() {
|
21
|
+
return this.task.status === "Readonly";
|
22
|
+
}
|
23
|
+
get childMembers() {
|
24
|
+
return (this.task.childMembers || [])
|
25
|
+
.filter(item => !this.task.members.some(member => member.id === item.id))
|
26
|
+
.map(item => ({
|
27
|
+
...item,
|
28
|
+
disabled: true
|
29
|
+
}));
|
30
|
+
}
|
31
|
+
get hasChanges() {
|
32
|
+
if (!this.name)
|
33
|
+
return;
|
34
|
+
const ids = toJS([...(this.task.members || []), ...this.childMembers].map(({ id }) => id));
|
35
|
+
const { name, startDate, dueDate, estimatedHours } = this.task;
|
36
|
+
const originalData = { name, ids };
|
37
|
+
const modifiedData = {
|
38
|
+
name: this.name.trim(),
|
39
|
+
ids: this.ids
|
40
|
+
// startDate: toJS(this.schedule)[0],
|
41
|
+
// dueDate: toJS(this.schedule)[1],
|
42
|
+
// estimatedHours: this.estimatedHours || estimatedHours
|
43
|
+
};
|
44
|
+
return !isEqual(originalData, modifiedData);
|
45
|
+
}
|
11
46
|
/** edit task */
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
return (this.task.childMembers || [])
|
25
|
-
.filter(item => !this.task.members.some(member => member.id === item.id))
|
26
|
-
.map(item => ({
|
27
|
-
...item,
|
28
|
-
disabled: true
|
29
|
-
}));
|
30
|
-
}
|
31
|
-
/** edit task */
|
32
|
-
edit() {
|
33
|
-
this.name = this.task.name;
|
34
|
-
this.ids = [...(this.task.members || [])].map(({ id }) => id);
|
35
|
-
this.isHover = false;
|
36
|
-
this.editable = !this.editable;
|
37
|
-
}
|
38
|
-
/** edit task save */
|
39
|
-
async save() {
|
40
|
-
if (!this.name && !this.ids.length)
|
41
|
-
return;
|
42
|
-
const ids = [...(this.task.members || []), ...this.childMembers].map(({ id }) => id);
|
43
|
-
const noChange = this.name.trim() === this.task.name && this.ids.sort().toString() === ids.sort().toString();
|
44
|
-
// 有变更才保存
|
45
|
-
if (!noChange) {
|
47
|
+
edit() {
|
48
|
+
this.name = this.task.name;
|
49
|
+
this.ids = [...(this.task.members || [])].map(({ id }) => id);
|
50
|
+
this.isHover = false;
|
51
|
+
this.editable = !this.editable;
|
52
|
+
}
|
53
|
+
/** edit task save */
|
54
|
+
async save() {
|
55
|
+
const params = { Name: this.name, MemberIds: this.ids };
|
56
|
+
// if (this.estimatedHours) params = { ...params, EstimatedHours: this.estimatedHours };
|
57
|
+
// if (this.schedule[0])
|
58
|
+
// params = { ...params, StartDate: this.schedule[0], DueDate: this.schedule[1] };
|
46
59
|
this.loading = true;
|
47
|
-
await this._store.edit(this.task.id,
|
60
|
+
await this._store.edit(this.task.id, params);
|
48
61
|
this.loading = false;
|
62
|
+
// }
|
63
|
+
this.editable = false;
|
64
|
+
}
|
65
|
+
/** task Lock */
|
66
|
+
lock() {
|
67
|
+
this._docStore.edit(this.task.id, { Status: "Readonly" });
|
68
|
+
}
|
69
|
+
/** task unlock */
|
70
|
+
unlock() {
|
71
|
+
this._docStore.edit(this.task.id, { Status: "Normal" });
|
72
|
+
}
|
73
|
+
/** task change important */
|
74
|
+
changeImportant(e) {
|
75
|
+
if (this.readonly)
|
76
|
+
return;
|
77
|
+
e.stopPropagation();
|
49
78
|
}
|
50
|
-
this.editable = false;
|
51
|
-
}
|
52
|
-
/** delete link */
|
53
|
-
delete() {
|
54
|
-
this._docStore.editLinks(this.props.leftId, { RemoveLinks: [this.props.linkId] });
|
55
|
-
}
|
56
|
-
/** task Lock */
|
57
|
-
lock() {
|
58
|
-
this._docStore.edit(this.task.id, { Status: "Readonly" });
|
59
|
-
}
|
60
|
-
/** task unlock */
|
61
|
-
unlock() {
|
62
|
-
this._docStore.edit(this.task.id, { Status: "Normal" });
|
63
|
-
}
|
64
|
-
/** task change important */
|
65
|
-
changeImportant(e) {
|
66
|
-
if (this.readonly)
|
67
|
-
return;
|
68
|
-
e.stopPropagation();
|
69
79
|
}
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
], State.prototype, "changeImportant", null);
|
80
|
+
__decorate([
|
81
|
+
observable
|
82
|
+
], State.prototype, "task", void 0);
|
83
|
+
__decorate([
|
84
|
+
observable
|
85
|
+
], State.prototype, "ids", void 0);
|
86
|
+
__decorate([
|
87
|
+
observable
|
88
|
+
], State.prototype, "name", void 0);
|
89
|
+
__decorate([
|
90
|
+
observable
|
91
|
+
], State.prototype, "editable", void 0);
|
92
|
+
__decorate([
|
93
|
+
observable
|
94
|
+
], State.prototype, "loading", void 0);
|
95
|
+
__decorate([
|
96
|
+
observable
|
97
|
+
], State.prototype, "isHover", void 0);
|
98
|
+
__decorate([
|
99
|
+
observable
|
100
|
+
], State.prototype, "reload", void 0);
|
101
|
+
__decorate([
|
102
|
+
computed
|
103
|
+
], State.prototype, "readonly", null);
|
104
|
+
__decorate([
|
105
|
+
computed
|
106
|
+
], State.prototype, "childMembers", null);
|
107
|
+
__decorate([
|
108
|
+
computed
|
109
|
+
], State.prototype, "hasChanges", null);
|
110
|
+
__decorate([
|
111
|
+
action
|
112
|
+
], State.prototype, "edit", null);
|
113
|
+
__decorate([
|
114
|
+
action
|
115
|
+
], State.prototype, "save", null);
|
116
|
+
__decorate([
|
117
|
+
action
|
118
|
+
], State.prototype, "lock", null);
|
119
|
+
__decorate([
|
120
|
+
action
|
121
|
+
], State.prototype, "unlock", null);
|
122
|
+
__decorate([
|
123
|
+
action
|
124
|
+
], State.prototype, "changeImportant", null);
|
125
|
+
return State;
|
126
|
+
})();
|
127
|
+
export { State };
|
119
128
|
//# sourceMappingURL=state.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/TaskCard/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/TaskCard/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAG1D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQpC;IAAA,MAAa,KAAK;QACjB,YAA2B,MAAiB,EAAU,SAAwB;YAAnD,WAAM,GAAN,MAAM,CAAW;YAAU,cAAS,GAAT,SAAS,CAAe;YAG9E,uBAAuB;YACJ,QAAG,GAAa,EAAE,CAAC;YACtC,qBAAqB;YACF,SAAI,GAAG,EAAE,CAAC;YAC7B,gBAAgB;YACG,aA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AED,4BAA4B;QAErB,eAAe,CAAC,CAAM;YAC5B,IAAI,IAAI,CAAC,QAAQ;gBAAE,OAAO;YAC1B,CAAC,CAAC,eAAe,EAAE,CAAC;QACrB,CAAC;KACD;IApFY;QAAX,UAAU;uCAAoB;IAEnB;QAAX,UAAU;sCAA2B;IAE1B;QAAX,UAAU;uCAAkB;IAEjB;QAAX,UAAU;2CAAyB;IAExB;QAAX,UAAU;0CAAwB;IACvB;QAAX,UAAU;0CAAwB;IACvB;QAAX,UAAU;yCAAuB;IAGlC;QADC,QAAQ;yCAGR;IAGD;QADC,QAAQ;6CAQR;IAGD;QADC,QAAQ;2CAcR;IAID;QADC,MAAM;qCAMN;IAID;QADC,MAAM;qCAWN;IAID;QADC,MAAM;qCAGN;IAID;QADC,MAAM;uCAGN;IAID;QADC,MAAM;gDAIN;IACF,YAAC;KAAA;SAvFY,KAAK"}
|
@@ -1,14 +1,18 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
2
|
import { observable } from "mobx";
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
let State = /** @class */ (() => {
|
4
|
+
class State {
|
5
|
+
constructor() {
|
6
|
+
this.id = "";
|
7
|
+
}
|
6
8
|
}
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
__decorate([
|
10
|
+
observable
|
11
|
+
], State.prototype, "id", void 0);
|
12
|
+
__decorate([
|
13
|
+
observable
|
14
|
+
], State.prototype, "board", void 0);
|
15
|
+
return State;
|
16
|
+
})();
|
17
|
+
export { State };
|
14
18
|
//# sourceMappingURL=state.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/pages/BoardViewList/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlC,
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/pages/BoardViewList/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlC;IAAA,MAAa,KAAK;QAAlB;YACoB,OAAE,GAAG,EAAE,CAAC;QAE5B,CAAC;KAAA;IAFY;QAAX,UAAU;qCAAgB;IACf;QAAX,UAAU;wCAAsB;IAClC,YAAC;KAAA;SAHY,KAAK"}
|