@voplus/morpho-workspace 6.0.41 → 6.0.43
Sign up to get free protection for your applications and to get access to all the features.
- package/es/modules/calendar/pages/CalendarMonth/index.js +2 -34
- package/es/modules/calendar/pages/CalendarMonth/index.js.map +1 -1
- package/es/modules/tasks/components/AddTaskDropdown/index.js +1 -1
- package/es/modules/tasks/components/AddTaskDropdown/index.js.map +1 -1
- package/es/modules/tasks/components/AddTaskDropdown/index.less +2 -10
- package/es/modules/tasks/components/TaskCheckActiveTab/index.js +5 -5
- package/es/modules/tasks/components/TaskCheckActiveTab/index.js.map +1 -1
- package/es/modules/tasks/components/TaskCheckActiveTab/state.d.ts +2 -0
- package/es/modules/tasks/components/TaskCheckActiveTab/state.js +49 -0
- package/es/modules/tasks/components/TaskCheckActiveTab/state.js.map +1 -1
- package/es/modules/tasks/components/TaskCheckItem/index.d.ts +2 -1
- package/es/modules/tasks/components/TaskCheckItem/index.js +29 -7
- package/es/modules/tasks/components/TaskCheckItem/index.js.map +1 -1
- package/es/modules/tasks/components/TaskCheckItem/index.less +46 -5
- package/es/modules/tasks/components/TaskCheckItem/state.d.ts +2 -1
- package/es/modules/tasks/components/TaskCheckItem/state.js +16 -8
- package/es/modules/tasks/components/TaskCheckItem/state.js.map +1 -1
- package/es/modules/tasks/components/TaskEstimatedTime/state.js +2 -2
- package/es/modules/tasks/components/TaskEstimatedTime/state.js.map +1 -1
- package/es/modules/tasks/components/TaskQuickViewDialog/index.js +4 -1
- package/es/modules/tasks/components/TaskQuickViewDialog/index.js.map +1 -1
- package/es/modules/tasks/components/TaskSimpleProperties/index.d.ts +27 -0
- package/es/modules/tasks/components/TaskSimpleProperties/index.js +54 -0
- package/es/modules/tasks/components/TaskSimpleProperties/index.js.map +1 -0
- package/es/modules/tasks/components/TaskSimpleProperties/index.less +14 -0
- package/package.json +1 -3
@@ -7,6 +7,7 @@ import { faAngleLeft, faAngleRight } from "@fortawesome/pro-light-svg-icons";
|
|
7
7
|
import { useDeepMemo, useTabItem } from "@voplus/morpho-data";
|
8
8
|
import { faCalendar } from "@fortawesome/free-solid-svg-icons";
|
9
9
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
10
|
+
import { generateLightColorFromHash } from "@voplus/morpho-org/es/tools";
|
10
11
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
11
12
|
import { Button, Select } from "antd";
|
12
13
|
import { runInAction } from "mobx";
|
@@ -18,7 +19,6 @@ import interactionPlugin from "@fullcalendar/interaction";
|
|
18
19
|
import timeGridPlugin from "@fullcalendar/timegrid";
|
19
20
|
import FullCalendar from "@fullcalendar/react";
|
20
21
|
import dayGridPlugin from "@fullcalendar/daygrid";
|
21
|
-
import crypto from "crypto-js";
|
22
22
|
import dayjs from "dayjs";
|
23
23
|
import styles from "./index.less";
|
24
24
|
const CalendarMonth = () => {
|
@@ -55,10 +55,9 @@ const CalendarMonth = () => {
|
|
55
55
|
useCalendarListEffect(null, (list) => {
|
56
56
|
runInAction(() => {
|
57
57
|
list.map((item, index) => {
|
58
|
-
var _a, _b
|
58
|
+
var _a, _b;
|
59
59
|
item.backgroundColor = generateLightColorFromHash((_a = item === null || item === void 0 ? void 0 : item.source) === null || _a === void 0 ? void 0 : _a.type);
|
60
60
|
item.borderColor = generateLightColorFromHash((_b = item === null || item === void 0 ? void 0 : item.source) === null || _b === void 0 ? void 0 : _b.type);
|
61
|
-
console.log("color", generateLightColorFromHash((_c = item === null || item === void 0 ? void 0 : item.source) === null || _c === void 0 ? void 0 : _c.type));
|
62
61
|
});
|
63
62
|
state.listOptions = list;
|
64
63
|
});
|
@@ -107,37 +106,6 @@ const CalendarMonth = () => {
|
|
107
106
|
height: "100%",
|
108
107
|
//events={(dataInfo)=>getDate(dataInfo)}//这个要放在eventSources前,不然eventSources数据会被覆盖
|
109
108
|
eventSources: [state.listOptions], eventDrop: eventDrop, eventContent: eventContent, datesSet: (info) => state.datesRender(info) })))))));
|
110
|
-
function generateLightColorFromHash(type) {
|
111
|
-
// 使用SHA-256哈希算法生成哈希值
|
112
|
-
const hash = crypto.SHA256(type).toString();
|
113
|
-
// 从哈希值中提取一部分用于生成颜色值
|
114
|
-
// 这里我们使用前6个字符来生成RGB值,你可以根据需要调整
|
115
|
-
let hexColor = "#" + hash.slice(0, 6);
|
116
|
-
// 确保颜色足够浅(这里是一个简单的启发式方法,你可以根据需要调整)
|
117
|
-
let r = parseInt(hexColor.slice(1, 3), 16);
|
118
|
-
let g = parseInt(hexColor.slice(3, 5), 16);
|
119
|
-
let b = parseInt(hexColor.slice(5, 7), 16);
|
120
|
-
const brightness = r * 0.299 + g * 0.587 + b * 0.114; // 使用RGB到亮度的简单转换
|
121
|
-
// 如果亮度不够高,则增加亮度值
|
122
|
-
if (brightness < 192) {
|
123
|
-
// 192是一个阈值,你可以根据需要进行调整
|
124
|
-
const adjustment = 255 - brightness;
|
125
|
-
r += Math.round((255 - r) * (adjustment / 255));
|
126
|
-
g += Math.round((255 - g) * (adjustment / 255));
|
127
|
-
b += Math.round((255 - b) * (adjustment / 255));
|
128
|
-
// 确保颜色值不超过255
|
129
|
-
r = Math.min(r, 255);
|
130
|
-
g = Math.min(g, 255);
|
131
|
-
b = Math.min(b, 255);
|
132
|
-
// 转换为16进制字符串
|
133
|
-
hexColor =
|
134
|
-
"#" +
|
135
|
-
r.toString(16).padStart(2, "0") +
|
136
|
-
g.toString(16).padStart(2, "0") +
|
137
|
-
b.toString(16).padStart(2, "0");
|
138
|
-
}
|
139
|
-
return hexColor;
|
140
|
-
}
|
141
109
|
/** 切换month,week,day视图 */
|
142
110
|
function handleChange(value) {
|
143
111
|
runInAction(() => (state.type = value));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/calendar/pages/CalendarMonth/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxE,OAAO,EACN,YAAY,EACZ,OA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AAM,EAAE,CAAC;QACf,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
@@ -17,7 +17,7 @@ const AddTaskDropdown = (props) => {
|
|
17
17
|
React.createElement(Menu, { onClick: (val) => moreOperate(val), items: menuList }))));
|
18
18
|
return observe(() => (React.createElement(React.Fragment, null,
|
19
19
|
React.createElement(Dropdown, { dropdownRender: () => menu, placement: "bottomRight", trigger: ["click"], open: visible, onOpenChange: (visible) => onVisibleChange(visible) },
|
20
|
-
React.createElement("span", { className: classnames(
|
20
|
+
React.createElement("span", { className: classnames("doc-plus-icon", props.className), onClick: (e) => e.preventDefault() },
|
21
21
|
React.createElement(FAIcon, { icon: faPlus, color: props.iconColor }))))));
|
22
22
|
function moreOperate({ key, domEvent }) {
|
23
23
|
domEvent.stopPropagation();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/AddTaskDropdown/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,wBAAwB;AACxB,MAAM,eAAe,GAAG,CAAC,KAMxB,EAAE,EAAE;IACJ,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,MAAM,OAAO,GAAG,qBAAqB,EAAE,CA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cAAc,EAAE;gBAElC,oBAAC,MAAM,IAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,SAAS,GAAI,CAC1C,CACG,CACK,CACjB,CAAC,CAAC;IAEH,SAAS,WAAW,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAO;QAC1C,QAAQ,CAAC,eAAe,EAAE,CAAC;QAC3B,UAAU,CAAC,KAAK,CAAC,CAAC;QAClB,KAAK,CAAC,WAAY,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC;IAED,SAAS,eAAe,CAAC,OAAgB;QACxC,UAAU,CAAC,OAAO,CAAC,CAAC;QACpB,KAAK,CAAC,aAAc,EAAE,CAAC;IACxB,CAAC;AACF,CAAC,CAAC;AACF,eAAe,eAAe,CAAC"}
|
@@ -1,3 +1,5 @@
|
|
1
|
+
@import "~@voplus/morpho-theme/styles/index.less";
|
2
|
+
|
1
3
|
.task-operate-dropdown {
|
2
4
|
display: flex;
|
3
5
|
flex-direction: column;
|
@@ -33,13 +35,3 @@
|
|
33
35
|
}
|
34
36
|
}
|
35
37
|
}
|
36
|
-
|
37
|
-
.doc-plus-icon {
|
38
|
-
display: inline-block;
|
39
|
-
padding: 4px;
|
40
|
-
font-size: 13px;
|
41
|
-
line-height: 1px;
|
42
|
-
color: #ffffff;
|
43
|
-
background: #1abc9c;
|
44
|
-
cursor: pointer;
|
45
|
-
}
|
@@ -65,35 +65,35 @@ const TaskCheckActiveTab = (props) => {
|
|
65
65
|
key: "Due",
|
66
66
|
label: "Due",
|
67
67
|
children: (React.createElement(React.Fragment, null, state.dueList.map((item) => (React.createElement(DocumentItemFrame, { key: item.id },
|
68
|
-
React.createElement(TaskCheckItem, { id: item.id })))))),
|
68
|
+
React.createElement(TaskCheckItem, { id: item.id, onChangeDueDate: (date) => state.onChangeDueDate(item, date) })))))),
|
69
69
|
});
|
70
70
|
if (state.todayList.length)
|
71
71
|
items.push({
|
72
72
|
key: "Today",
|
73
73
|
label: "Today",
|
74
74
|
children: (React.createElement(React.Fragment, null, state.todayList.map((item) => (React.createElement(DocumentItemFrame, { key: item.id },
|
75
|
-
React.createElement(TaskCheckItem, { id: item.id })))))),
|
75
|
+
React.createElement(TaskCheckItem, { id: item.id, onChangeDueDate: (date) => state.onChangeDueDate(item, date) })))))),
|
76
76
|
});
|
77
77
|
if (state.tomorrowList.length)
|
78
78
|
items.push({
|
79
79
|
key: "Tomorrow",
|
80
80
|
label: "Tomorrow",
|
81
81
|
children: (React.createElement(React.Fragment, null, state.tomorrowList.map((item) => (React.createElement(DocumentItemFrame, { key: item.id },
|
82
|
-
React.createElement(TaskCheckItem, { id: item.id })))))),
|
82
|
+
React.createElement(TaskCheckItem, { id: item.id, onChangeDueDate: (date) => state.onChangeDueDate(item, date) })))))),
|
83
83
|
});
|
84
84
|
if (state.thisWeekList.length)
|
85
85
|
items.push({
|
86
86
|
key: "This Week",
|
87
87
|
label: "This Week",
|
88
88
|
children: (React.createElement(React.Fragment, null, state.thisWeekList.map((item) => (React.createElement(DocumentItemFrame, { key: item.id },
|
89
|
-
React.createElement(TaskCheckItem, { id: item.id })))))),
|
89
|
+
React.createElement(TaskCheckItem, { id: item.id, onChangeDueDate: (date) => state.onChangeDueDate(item, date) })))))),
|
90
90
|
});
|
91
91
|
if (state.upcomingList.length)
|
92
92
|
items.push({
|
93
93
|
key: "Upcoming",
|
94
94
|
label: "Upcoming",
|
95
95
|
children: (React.createElement(React.Fragment, null, state.upcomingList.map((item) => (React.createElement(DocumentItemFrame, { key: item.id },
|
96
|
-
React.createElement(TaskCheckItem, { id: item.id, dueDate: true })))))),
|
96
|
+
React.createElement(TaskCheckItem, { id: item.id, dueDate: true, onChangeDueDate: (date) => state.onChangeDueDate(item, date) })))))),
|
97
97
|
});
|
98
98
|
return (React.createElement(ListDataContext.Provider, { value: list },
|
99
99
|
React.createElement("div", { className: "active-tab-task-list" },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules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AO;oBAC9B,oBAAC,QAAQ,IACR,SAAS,EAAC,sBAAsB,EAChC,QAAQ,EAAE,KAAK,EACf,gBAAgB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC,EACvE,UAAU,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,oBAAC,kBAAkB,IAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAI,EAC/E,KAAK,EAAE,KAAK,GACX;oBACD,CAAC,KAAK,CAAC,MAAM,IAAI,oBAAC,KAAK,OAAG,CACjB,CACN,CACoB,CAC3B,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
2
|
import { makeObservable, observable, action } from "mobx";
|
3
3
|
import dayjs from "dayjs";
|
4
|
+
import { cloneDeep } from "lodash-es";
|
4
5
|
export class State {
|
5
6
|
constructor() {
|
6
7
|
Object.defineProperty(this, "total", {
|
@@ -102,6 +103,51 @@ export class State {
|
|
102
103
|
dateToCheck.isSame(endOfWeek, "day") ||
|
103
104
|
(dateToCheck.isAfter(startOfWeek) && dateToCheck.isBefore(endOfWeek)));
|
104
105
|
}
|
106
|
+
/** edit dueDate 成功后, 重新计算 */
|
107
|
+
onChangeDueDate(item, date) {
|
108
|
+
const data = cloneDeep(item);
|
109
|
+
data.dueDate = date;
|
110
|
+
if (item.dueDate !== date) {
|
111
|
+
const dueDate = dayjs(date);
|
112
|
+
const oldDueDate = dayjs(item.dueDate);
|
113
|
+
// 获取当前日期
|
114
|
+
const today = dayjs();
|
115
|
+
/** 获取明天的日期 */
|
116
|
+
const tomorrow = today.add(1, "day");
|
117
|
+
/** 删除 */
|
118
|
+
if (oldDueDate.isSame(today, "day")) {
|
119
|
+
this.todayList = this.todayList.filter((i) => item.id !== i.id);
|
120
|
+
}
|
121
|
+
else if (oldDueDate.isSame(tomorrow, "day")) {
|
122
|
+
this.tomorrowList = this.tomorrowList.filter((i) => item.id !== i.id);
|
123
|
+
}
|
124
|
+
else if (oldDueDate.isBefore(today)) {
|
125
|
+
this.dueList = this.dueList.filter((i) => item.id !== i.id);
|
126
|
+
}
|
127
|
+
else if (this.isDateInThisWeek(oldDueDate)) {
|
128
|
+
this.thisWeekList = this.thisWeekList.filter((i) => item.id !== i.id);
|
129
|
+
}
|
130
|
+
else {
|
131
|
+
this.upcomingList = this.upcomingList.filter((i) => item.id !== i.id);
|
132
|
+
}
|
133
|
+
/** 新增 */
|
134
|
+
if (dueDate.isSame(today, "day")) {
|
135
|
+
this.todayList.push(data);
|
136
|
+
}
|
137
|
+
else if (dueDate.isSame(tomorrow, "day")) {
|
138
|
+
this.tomorrowList.push(data);
|
139
|
+
}
|
140
|
+
else if (dueDate.isBefore(today)) {
|
141
|
+
this.dueList.push(data);
|
142
|
+
}
|
143
|
+
else if (this.isDateInThisWeek(dueDate)) {
|
144
|
+
this.thisWeekList.push(data);
|
145
|
+
}
|
146
|
+
else {
|
147
|
+
this.upcomingList.push(data);
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}
|
105
151
|
}
|
106
152
|
__decorate([
|
107
153
|
observable
|
@@ -127,4 +173,7 @@ __decorate([
|
|
127
173
|
__decorate([
|
128
174
|
action
|
129
175
|
], State.prototype, "isDateInThisWeek", null);
|
176
|
+
__decorate([
|
177
|
+
action
|
178
|
+
], State.prototype, "onChangeDueDate", null);
|
130
179
|
//# sourceMappingURL=state.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckActiveTab/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE1D,OAAO,KAAgB,MAAM,OAAO,CAAC;
|
1
|
+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AAO,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC;gBAClC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC3B,CAAC;iBAAM,IAAI,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC;gBAC5C,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC9B,CAAC;iBAAM,IAAI,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;gBACpC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACzB,CAAC;iBAAM,IAAI,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAC;gBAC3C,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC9B,CAAC;iBAAM,CAAC;gBACP,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC9B,CAAC;QACF,CAAC;IACF,CAAC;CACD;AA9FmB;IAAlB,UAAU;oCAA0B;AAElB;IAAlB,UAAU;sCAA8B;AACtB;IAAlB,UAAU;wCAAgC;AACxB;IAAlB,UAAU;2CAAmC;AAC3B;IAAlB,UAAU;2CAAmC;AAC3B;IAAlB,UAAU;2CAAmC;AAE/B;IAAd,MAAM;mCAgCN;AAGc;IAAd,MAAM;6CAWN;AAGc;IAAd,MAAM;4CAoCN"}
|
@@ -3,6 +3,7 @@ import "./index.less";
|
|
3
3
|
declare const TaskCheckItem: (props: {
|
4
4
|
id: string;
|
5
5
|
/** 是否显示dueDate */
|
6
|
-
dueDate?: boolean;
|
6
|
+
dueDate?: boolean | undefined;
|
7
|
+
onChangeDueDate?: ((dueDate?: Date) => void) | undefined;
|
7
8
|
}) => React.JSX.Element;
|
8
9
|
export default TaskCheckItem;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React, { useState } from "react";
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
3
|
-
import { Checkbox, message } from "antd";
|
3
|
+
import { Checkbox, message, Button } from "antd";
|
4
4
|
import classnames from "classnames";
|
5
5
|
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
6
6
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
@@ -9,6 +9,9 @@ import { useTask, useTaskStore, useMetaStore } from "@voplus/morpho-document-cor
|
|
9
9
|
import dayjs from "dayjs";
|
10
10
|
import { State } from "./state";
|
11
11
|
import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
|
12
|
+
import PresetDatePicker from "@voplus/morpho-ui/es/controls/PresetDatePicker";
|
13
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
14
|
+
import { faCalendar } from "@fortawesome/pro-light-svg-icons";
|
12
15
|
import { useApplicationContext } from "@voplus/morpho-data";
|
13
16
|
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
14
17
|
import "./index.less";
|
@@ -23,21 +26,40 @@ const TaskCheckItem = (props) => {
|
|
23
26
|
return observe(() => {
|
24
27
|
var _a;
|
25
28
|
return (React.createElement(DocumentHeader, { id: id, flagVisible: false, tagsVisible: false, quickDataBarVisible: false, className: "task-check-item", clickNameEffect: "default", onMouse: (over) => (state.isHover = over), pre: React.createElement("div", null,
|
26
|
-
React.createElement(Checkbox, { checked:
|
27
|
-
state.checked = e.target.checked;
|
29
|
+
React.createElement(Checkbox, { checked: task.taskStatus === "Done", onChange: async (e) => {
|
28
30
|
await taskStore.edit(task.id, {
|
29
31
|
data: { TaskStatus: e.target.checked === true ? "Done" : "Progress" },
|
30
32
|
error: (error) => message.error(error.message),
|
31
33
|
});
|
32
|
-
state.checked = task.taskStatus === "Done";
|
33
34
|
} }),
|
34
35
|
React.createElement(FlagIcon, { id: task.id, flag: task.flag, editable: !task.readonly })), tools: React.createElement(React.Fragment, null,
|
35
|
-
((_a = task.members) === null || _a === void 0 ? void 0 : _a.length) ? (React.createElement("div", { className: classnames("task-members", { hide: state.isHover
|
36
|
+
((_a = task.members) === null || _a === void 0 ? void 0 : _a.length) ? (React.createElement("div", { className: classnames("task-members", { hide: state.isHover }) },
|
36
37
|
React.createElement(AvatarList, { organizationId: user.info.organizationId, maxCount: 3, list: task.members, editable: false }))) : null,
|
37
|
-
dueDate && (React.createElement("span", { className: classnames("task-dueDate", { hide: state.isHover }) },
|
38
|
+
dueDate && (React.createElement("span", { className: classnames("task-dueDate", { hide: state.isHover }) },
|
39
|
+
React.createElement("span", { className: classnames("no-dueDate", { open: state.openDate }), onClick: () => (state.openDate = true) }, task.dueDate ? dayjs(task.dueDate).format("DD MMM YYYY") : "No due date"),
|
40
|
+
React.createElement(PresetDatePicker, { className: "task-item-preset-date-picker", open: state.openDate, onChange: async (preset, date) => {
|
41
|
+
var _a;
|
42
|
+
state.openDate = false;
|
43
|
+
await taskStore.edit(task.id, {
|
44
|
+
data: { DueDate: dayjs(date).format("YYYY-MM-DD") },
|
45
|
+
error: (error) => message.error(error.message),
|
46
|
+
});
|
47
|
+
(_a = props.onChangeDueDate) === null || _a === void 0 ? void 0 : _a.call(props, task.dueDate);
|
48
|
+
}, handleOpenChange: (open) => (state.openDate = open), style: { width: "100%" } }))),
|
38
49
|
React.createElement("div", { className: classnames("hover-operate-icon", { show: state.isHover }) },
|
39
50
|
React.createElement(ToolBar, { id: id, moreProps: { buttonProps: { size: "middle" } } },
|
40
|
-
React.createElement(Open, { size: "middle", url: meta.getRoute(task) })
|
51
|
+
React.createElement(Open, { size: "middle", url: meta.getRoute(task) }),
|
52
|
+
!dueDate && (React.createElement(Button, { type: "link", key: "dueDate", className: "task-toolbar-dueDate", onClick: () => (state.openToolbarDate = true) },
|
53
|
+
React.createElement(FAIcon, { icon: faCalendar }),
|
54
|
+
React.createElement(PresetDatePicker, { className: "task-toolbar-preset-date-picker", open: state.openToolbarDate, onChange: async (preset, date) => {
|
55
|
+
var _a;
|
56
|
+
state.openToolbarDate = false;
|
57
|
+
await taskStore.edit(task.id, {
|
58
|
+
data: { DueDate: dayjs(date).format("YYYY-MM-DD") },
|
59
|
+
error: (error) => message.error(error.message),
|
60
|
+
});
|
61
|
+
(_a = props.onChangeDueDate) === null || _a === void 0 ? void 0 : _a.call(props, task.dueDate);
|
62
|
+
}, handleOpenChange: (open) => (state.openToolbarDate = open), style: { width: "100%" } })))))) }));
|
41
63
|
});
|
42
64
|
};
|
43
65
|
export default TaskCheckItem;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AACjD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,QAAQ,MAAM,yDAAyD,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,UAAU,MAAM,6CAA6C,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AAC,IAAI,EAAE,UAAU,GAAI;4BAC5B,oBAAC,gBAAgB,IAChB,SAAS,EAAC,iCAAiC,EAC3C,IAAI,EAAE,KAAK,CAAC,eAAe,EAC3B,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE;;oCAChC,KAAK,CAAC,eAAe,GAAG,KAAK,CAAC;oCAC9B,MAAM,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;wCAC7B,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE;wCACnD,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;qCACrD,CAAC,CAAC;oCACH,MAAA,KAAK,CAAC,eAAe,sDAAG,IAAI,CAAC,OAAO,CAAC,CAAC;gCACvC,CAAC,EACD,gBAAgB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,GAAG,IAAI,CAAC,EAC1D,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GACvB,CACM,CACT,CACQ,CACL,CACJ,GAEH,CACF,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
@@ -5,6 +5,13 @@
|
|
5
5
|
align-items: center;
|
6
6
|
background-color: transparent;
|
7
7
|
padding: 10px 20px 10px 20px;
|
8
|
+
&:hover {
|
9
|
+
.task-dueDate {
|
10
|
+
.no-dueDate {
|
11
|
+
background-color: #f5f8fd;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
8
15
|
.task-members {
|
9
16
|
opacity: 1;
|
10
17
|
// transition: opacity 0.3s;
|
@@ -12,20 +19,38 @@
|
|
12
19
|
&.hide {
|
13
20
|
opacity: 0;
|
14
21
|
}
|
15
|
-
|
16
|
-
|
17
|
-
|
22
|
+
.avatar-list-view {
|
23
|
+
justify-content: end;
|
24
|
+
.ant-avatar {
|
25
|
+
width: 24px;
|
26
|
+
height: 24px;
|
27
|
+
line-height: 22px;
|
28
|
+
font-size: 10px;
|
29
|
+
}
|
18
30
|
}
|
19
31
|
}
|
20
32
|
.task-dueDate {
|
21
|
-
|
33
|
+
position: relative;
|
34
|
+
width: 120px;
|
22
35
|
opacity: 1;
|
23
|
-
|
36
|
+
color: #94a3b8;
|
24
37
|
flex-shrink: 0;
|
25
38
|
text-align: right;
|
39
|
+
background-color: transparent;
|
26
40
|
&.hide {
|
27
41
|
opacity: 0;
|
28
42
|
}
|
43
|
+
.task-item-preset-date-picker {
|
44
|
+
position: absolute;
|
45
|
+
left: 0;
|
46
|
+
top: 0;
|
47
|
+
z-index: -1;
|
48
|
+
border: none;
|
49
|
+
background-color: transparent;
|
50
|
+
.ant-picker-suffix {
|
51
|
+
display: none;
|
52
|
+
}
|
53
|
+
}
|
29
54
|
}
|
30
55
|
.hover-operate-icon {
|
31
56
|
display: none;
|
@@ -38,5 +63,21 @@
|
|
38
63
|
display: block;
|
39
64
|
}
|
40
65
|
}
|
66
|
+
|
67
|
+
.task-toolbar-dueDate {
|
68
|
+
position: relative;
|
69
|
+
background-color: transparent;
|
70
|
+
.task-toolbar-preset-date-picker {
|
71
|
+
position: absolute;
|
72
|
+
left: 0;
|
73
|
+
top: 0;
|
74
|
+
z-index: -1;
|
75
|
+
border: none;
|
76
|
+
background-color: transparent;
|
77
|
+
.ant-picker-suffix {
|
78
|
+
display: none;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
41
82
|
}
|
42
83
|
}
|
@@ -3,40 +3,48 @@ import { makeObservable, observable, action } from "mobx";
|
|
3
3
|
export class State {
|
4
4
|
constructor() {
|
5
5
|
/** */
|
6
|
-
Object.defineProperty(this, "
|
6
|
+
Object.defineProperty(this, "isHover", {
|
7
7
|
enumerable: true,
|
8
8
|
configurable: true,
|
9
9
|
writable: true,
|
10
10
|
value: false
|
11
11
|
});
|
12
|
-
Object.defineProperty(this, "
|
12
|
+
Object.defineProperty(this, "task", {
|
13
|
+
enumerable: true,
|
14
|
+
configurable: true,
|
15
|
+
writable: true,
|
16
|
+
value: void 0
|
17
|
+
});
|
18
|
+
Object.defineProperty(this, "openDate", {
|
13
19
|
enumerable: true,
|
14
20
|
configurable: true,
|
15
21
|
writable: true,
|
16
22
|
value: false
|
17
23
|
});
|
18
|
-
Object.defineProperty(this, "
|
24
|
+
Object.defineProperty(this, "openToolbarDate", {
|
19
25
|
enumerable: true,
|
20
26
|
configurable: true,
|
21
27
|
writable: true,
|
22
|
-
value:
|
28
|
+
value: false
|
23
29
|
});
|
24
30
|
makeObservable(this);
|
25
31
|
}
|
26
32
|
update(task) {
|
27
33
|
this.task = task;
|
28
|
-
this.checked = task.taskStatus === "Done";
|
29
34
|
}
|
30
35
|
}
|
31
|
-
__decorate([
|
32
|
-
observable
|
33
|
-
], State.prototype, "checked", void 0);
|
34
36
|
__decorate([
|
35
37
|
observable
|
36
38
|
], State.prototype, "isHover", void 0);
|
37
39
|
__decorate([
|
38
40
|
observable
|
39
41
|
], State.prototype, "task", void 0);
|
42
|
+
__decorate([
|
43
|
+
observable
|
44
|
+
], State.prototype, "openDate", void 0);
|
45
|
+
__decorate([
|
46
|
+
observable
|
47
|
+
], State.prototype, "openToolbarDate", void 0);
|
40
48
|
__decorate([
|
41
49
|
action
|
42
50
|
], State.prototype, "update", null);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckItem/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAG1D,MAAM,OAAO,KAAK;IACjB;QAIA,OAAO;QACY;;;;mBAAU,KAAK;WAAC;QAChB;;;;
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckItem/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAG1D,MAAM,OAAO,KAAK;IACjB;QAIA,OAAO;QACY;;;;mBAAU,KAAK;WAAC;QAChB;;;;;WAAY;QACZ;;;;mBAAW,KAAK;WAAC;QACjB;;;;mBAAkB,KAAK;WAAC;QAP1C,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAQc,MAAM,CAAC,IAAW;QAChC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IAClB,CAAC;CACD;AARmB;IAAlB,UAAU;sCAAwB;AAChB;IAAlB,UAAU;mCAAoB;AACZ;IAAlB,UAAU;uCAAyB;AACjB;IAAlB,UAAU;8CAAgC;AAE5B;IAAd,MAAM;mCAEN"}
|
@@ -74,8 +74,8 @@ export class State {
|
|
74
74
|
this.loading = true;
|
75
75
|
await this.taskStore.edit(this.id, {
|
76
76
|
data: {
|
77
|
-
StartDate: dayjs(this.startDate).format("YYYY-MM-DDTHH:mm:ss.SSS[Z]"),
|
78
|
-
DueDate: dayjs(this.dueDate).format("YYYY-MM-DDTHH:mm:ss.SSS[Z]"),
|
77
|
+
StartDate: this.startDate ? dayjs(this.startDate).format("YYYY-MM-DDTHH:mm:ss.SSS[Z]") : "",
|
78
|
+
DueDate: this.dueDate ? dayjs(this.dueDate).format("YYYY-MM-DDTHH:mm:ss.SSS[Z]") : "",
|
79
79
|
EstimatedHours: this.estimatedHours,
|
80
80
|
},
|
81
81
|
error: (error) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskEstimatedTime/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAC;AAE1E,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,MAAM,OAAO,KAAK;IAiBjB,YAA2B,SAAoB;QAA5B;;;;mBAAQ,SAAS;WAAW;QAhB5B;;;;;WAA8B;QACjD,iBAAiB;QACE;;;;mBAAK,EAAE;WAAC;QAC3B,iBAAiB;QACE;;;;mBAAuC,SAAS;WAAC;QACpE,gBAAgB;QACG;;;;mBAAqC,SAAS;WAAC;QAClE,6BAA6B;QACV;;;;mBAAiB,CAAC;WAAC;QACtC,iCAAiC;QACd;;;;mBAAoB,CAAC;WAAC;QACzC,uBAAuB;QACJ;;;;mBAAU,KAAK;WAAC;QACnC,uDAAuD;QACpC;;;;mBAAU,KAAK;WAAC;QAMnC,kDAAkD;QAE3C;;;;mBAAS,KAAK,IAAI,EAAE;gBAC1B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;gBACpB,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;oBAClC,IAAI,EAAE;wBACL,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,4BAA4B,CAAC;
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskEstimatedTime/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAC;AAE1E,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,MAAM,OAAO,KAAK;IAiBjB,YAA2B,SAAoB;QAA5B;;;;mBAAQ,SAAS;WAAW;QAhB5B;;;;;WAA8B;QACjD,iBAAiB;QACE;;;;mBAAK,EAAE;WAAC;QAC3B,iBAAiB;QACE;;;;mBAAuC,SAAS;WAAC;QACpE,gBAAgB;QACG;;;;mBAAqC,SAAS;WAAC;QAClE,6BAA6B;QACV;;;;mBAAiB,CAAC;WAAC;QACtC,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KL;AAGK;IADN,MAAM;6CAKL;AAGF;IADC,QAAQ;uCAGR"}
|
@@ -5,6 +5,7 @@ import { useMetaStore } from "@voplus/morpho-document-core";
|
|
5
5
|
import { useTask } from "@voplus/morpho-document-core";
|
6
6
|
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
7
7
|
import TaskProperties from "../TaskProperties";
|
8
|
+
import TaskSimpleProperties from "../TaskSimpleProperties";
|
8
9
|
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
9
10
|
import QuickViewDialog from "@voplus/morpho-document/es/controls/QuickViewDialog";
|
10
11
|
import { faFileAlt, faAlignLeft } from "@fortawesome/pro-light-svg-icons";
|
@@ -39,7 +40,9 @@ const TaskQuickViewDialog = (props) => {
|
|
39
40
|
title: "Sub-Documents",
|
40
41
|
detail: React.createElement(DocumentList, { id: id, exclude: ["Task"], multiple: true }),
|
41
42
|
},
|
42
|
-
] }, loaded && React.createElement(
|
43
|
+
] }, loaded && (React.createElement(React.Fragment, null,
|
44
|
+
React.createElement(TaskSimpleProperties, { id: props.id }),
|
45
|
+
React.createElement(TaskDescription, { id: props.id }))))));
|
43
46
|
/** reload data */
|
44
47
|
function onReload() {
|
45
48
|
setLoaded(false);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,cAAc,MAAM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AM,IAAC,MAAM,EAAE,QAAQ,GAAI;wBAC5B,oBAAC,IAAI,IAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAI;wBAClC,oBAAC,OAAO,OAAG,CACF,CACL,CACD,CACU,EAElB,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EACtD,KAAK,EAAE;YACN;gBACC,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,+BAA+B;gBACtC,MAAM,EAAE,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,GAAI;aAClC;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,eAAe;gBACtB,MAAM,EAAE,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,QAAQ,SAAG;aAC5D;SACD,IAEA,MAAM,IAAI,oBAAC,eAAe,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,YAAY,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wBAC5B,oBAAC,IAAI,IAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAI;wBAClC,oBAAC,OAAO,OAAG,CACF,CACL,CACD,CACU,EAElB,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EACtD,KAAK,EAAE;YACN;gBACC,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,+BAA+B;gBACtC,MAAM,EAAE,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,GAAI;aAClC;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,eAAe;gBACtB,MAAM,EAAE,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,QAAQ,SAAG;aAC5D;SACD,IAEA,MAAM,IAAI,CACV;QACC,oBAAC,oBAAoB,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI;QACtC,oBAAC,eAAe,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CAC/B,CACH,CACgB,CAClB,CAAC,CAAC;IACH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { DocumentPropertiesName } from "@voplus/morpho-document/es/components/DocumentProperties";
|
3
|
+
import "./index.less";
|
4
|
+
export type TaskPropertiesName = "Done" | "Members" | "Due";
|
5
|
+
declare const TaskSimpleProperties: {
|
6
|
+
(props: {
|
7
|
+
id: string;
|
8
|
+
headerVisible?: boolean;
|
9
|
+
taskTitle?: string;
|
10
|
+
documentTitle?: string;
|
11
|
+
taskProperties?: {
|
12
|
+
name: TaskPropertiesName;
|
13
|
+
visible?: boolean;
|
14
|
+
}[];
|
15
|
+
documentProperties?: {
|
16
|
+
name: DocumentPropertiesName;
|
17
|
+
visible?: boolean;
|
18
|
+
}[];
|
19
|
+
}): React.JSX.Element;
|
20
|
+
defaultProps: {
|
21
|
+
taskTitle: string;
|
22
|
+
taskProperties: {
|
23
|
+
name: string;
|
24
|
+
}[];
|
25
|
+
};
|
26
|
+
};
|
27
|
+
export default TaskSimpleProperties;
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { Form, message, Row, Col, Checkbox } from "antd";
|
3
|
+
import { useTask, useTaskStore } from "@voplus/morpho-document-core";
|
4
|
+
import { observe, PropertiesSection } from "@voplus/morpho-ui";
|
5
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
6
|
+
import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
|
7
|
+
import TaskEstimatedTime from "../TaskEstimatedTime";
|
8
|
+
import "./index.less";
|
9
|
+
const TaskSimpleProperties = (props) => {
|
10
|
+
/** 加class name 为了方便做integration tests */
|
11
|
+
const classId = "task-properties";
|
12
|
+
const { id, taskProperties } = props;
|
13
|
+
const { user } = useApplicationContext();
|
14
|
+
const task = useTask(id, { reload: true, includes: "tags,task-number-reports" });
|
15
|
+
const taskStore = useTaskStore();
|
16
|
+
const filterPro = taskProperties === null || taskProperties === void 0 ? void 0 : taskProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
17
|
+
return observe(() => (React.createElement("div", { className: "properties-list task-simple-properties" },
|
18
|
+
React.createElement(PropertiesSection, { properties: (labelCol) => (React.createElement(Form, { className: classId + "-form", layout: "vertical", colon: false },
|
19
|
+
React.createElement(Row, null, filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(Col, { key: i.name, span: 8 }, renderProp(i))))))) }))));
|
20
|
+
function renderProp(item) {
|
21
|
+
switch (item.name) {
|
22
|
+
case "Done":
|
23
|
+
return (React.createElement(Form.Item, { label: "Done", className: classId + "-done" },
|
24
|
+
React.createElement(Checkbox, { checked: task.taskStatus === "Done", onChange: async (e) => {
|
25
|
+
await taskStore.edit(task.id, {
|
26
|
+
data: { TaskStatus: e.target.checked === true ? "Done" : "Progress" },
|
27
|
+
error: (error) => message.error(error.message),
|
28
|
+
});
|
29
|
+
} })));
|
30
|
+
case "Members":
|
31
|
+
return (React.createElement(Form.Item, { label: "Members", className: classId + "-members" },
|
32
|
+
React.createElement(AvatarList, { organizationId: user.info.organizationId, editable: !task.readonly, multiple: true, list: [
|
33
|
+
...(task.members || []),
|
34
|
+
...(task.childMembers || [])
|
35
|
+
.filter((item) => !(task.members || []).some((member) => member.id === item.id))
|
36
|
+
.map((item) => ({
|
37
|
+
...item,
|
38
|
+
disabled: true,
|
39
|
+
})),
|
40
|
+
], onChange: (ids) => {
|
41
|
+
taskStore.edit(id, { data: { MemberIds: ids }, error: "message" });
|
42
|
+
} })));
|
43
|
+
case "Due":
|
44
|
+
return (React.createElement(Form.Item, { label: "Due", className: classId + "-due" },
|
45
|
+
React.createElement(TaskEstimatedTime, { id: id, estimatedHours: task.estimatedHours || 0, startDate: task.startDate, dueDate: task.dueDate, editable: !task.readonly })));
|
46
|
+
}
|
47
|
+
}
|
48
|
+
};
|
49
|
+
TaskSimpleProperties.defaultProps = {
|
50
|
+
taskTitle: "Task Properties",
|
51
|
+
taskProperties: [{ name: "Done" }, { name: "Members" }, { name: "Due" }],
|
52
|
+
};
|
53
|
+
export default TaskSimpleProperties;
|
54
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskSimpleProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE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2
2
|
"name": "@voplus/morpho-workspace",
|
3
|
-
"version": "6.0.
|
3
|
+
"version": "6.0.43",
|
4
4
|
"description": "morpho workspace module",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -39,13 +39,11 @@
|
|
39
39
|
"@fullcalendar/timegrid": "6.x",
|
40
40
|
"@voplus/morpho-collaboration-action": "6.x",
|
41
41
|
"@voplus/morpho-report": "6.x",
|
42
|
-
"crypto-js": "^4.2.0",
|
43
42
|
"react-beautiful-dnd": "^13.1.0",
|
44
43
|
"swiper": "9.x",
|
45
44
|
"tippy.js": "^5.1.4"
|
46
45
|
},
|
47
46
|
"devDependencies": {
|
48
|
-
"@types/crypto-js": "^4.2.2",
|
49
47
|
"@types/mockjs": "^1.0.3",
|
50
48
|
"@types/react-beautiful-dnd": "^13.0.0",
|
51
49
|
"@voplus/morpho-build": "5.x",
|