@voplus/morpho-workspace 6.0.42 → 6.0.44

Sign up to get free protection for your applications and to get access to all the features.
Files changed (22) hide show
  1. package/es/modules/calendar/pages/CalendarMonth/index.js +1 -2
  2. package/es/modules/calendar/pages/CalendarMonth/index.js.map +1 -1
  3. package/es/modules/tasks/components/AddTaskDropdown/index.js +1 -1
  4. package/es/modules/tasks/components/AddTaskDropdown/index.js.map +1 -1
  5. package/es/modules/tasks/components/AddTaskDropdown/index.less +2 -10
  6. package/es/modules/tasks/components/TaskCheckActiveTab/index.js +5 -5
  7. package/es/modules/tasks/components/TaskCheckActiveTab/index.js.map +1 -1
  8. package/es/modules/tasks/components/TaskCheckActiveTab/state.d.ts +2 -0
  9. package/es/modules/tasks/components/TaskCheckActiveTab/state.js +49 -0
  10. package/es/modules/tasks/components/TaskCheckActiveTab/state.js.map +1 -1
  11. package/es/modules/tasks/components/TaskCheckItem/index.d.ts +2 -1
  12. package/es/modules/tasks/components/TaskCheckItem/index.js +21 -8
  13. package/es/modules/tasks/components/TaskCheckItem/index.js.map +1 -1
  14. package/es/modules/tasks/components/TaskCheckItem/index.less +31 -19
  15. package/es/modules/tasks/components/TaskCheckItem/state.d.ts +1 -1
  16. package/es/modules/tasks/components/TaskCheckItem/state.js +9 -10
  17. package/es/modules/tasks/components/TaskCheckItem/state.js.map +1 -1
  18. package/es/modules/tasks/components/TaskSimpleProperties/index.d.ts +1 -1
  19. package/es/modules/tasks/components/TaskSimpleProperties/index.js +11 -21
  20. package/es/modules/tasks/components/TaskSimpleProperties/index.js.map +1 -1
  21. package/es/modules/tasks/components/TaskSimpleProperties/index.less +1 -0
  22. package/package.json +1 -1
@@ -55,10 +55,9 @@ const CalendarMonth = () => {
55
55
  useCalendarListEffect(null, (list) => {
56
56
  runInAction(() => {
57
57
  list.map((item, index) => {
58
- var _a, _b, _c;
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
  });
@@ -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,OAAO,EACP,iBAAiB,EACjB,aAAa,IAAI,UAAU,GAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAC5F,OAAO,EAAa,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC/F,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,oBAAoB,MAAM,uCAAuC,CAAC;AAC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AC,CAAC;QAC7D,IAAI,KAAK,KAAK,KAAK;YAAE,WAAW,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IAC5D,CAAC;IAED,gBAAgB;IAChB,SAAS,QAAQ,CAAC,IAAS,EAAE,UAAkB;QAC9C,cAAc,CAAC,IAAI,CAAC,CAAC;QACrB,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YAC3B,WAAW,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;QAC7D,CAAC;aAAM,CAAC;YACP,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QAClC,CAAC;IACF,CAAC;IAED,8BAA8B;IAC9B,SAAS,SAAS,CAAC,IAAS;QAC3B,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;QAC7C,IAAI,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,gBAAgB,EAAE,CAAC;YAC/C,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACjE,CAAC;aAAM,CAAC;YACP,IAAI,CAAC,MAAM,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(styles["doc-plus-icon"], props.className), onClick: (e) => e.preventDefault() },
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,CAAC;IAExC,IAAI,QAAQ,GAAG,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IAEhD,OAAO,CAAC,IAAI,CAAC,MAAM,IAAI,QAAQ,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,oBAAoB,EAAE,CAAC,CAAC;IAE1F,aAAa;IACb,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAC1B,6BAAK,SAAS,EAAE,MAAM,CAAC,uBAAuB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OAAO,CAAC,EAClB,IAAI,EAAE,OAAO,EACb,YAAY,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,eAAe,CAAC,OAAO,CAAC;YAEnD,8BACC,SAAS,EAAE,UAAU,CAAC,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,EACvD,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,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/tasks/components/TaskCheckActiveTab/index.tsx"],"names":[],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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"}
@@ -12,4 +12,6 @@ export declare class State {
12
12
  update(list: ITask[], type?: "new" | "del"): void;
13
13
  /** 检查特定日期是否在本周内 */
14
14
  isDateInThisWeek(dateToCheck: Dayjs): boolean;
15
+ /** edit dueDate 成功后, 重新计算 */
16
+ onChangeDueDate(item: ITask, date?: Date): void;
15
17
  }
@@ -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;AAErC,MAAM,OAAO,KAAK;IACjB;QAImB;;;;mBAAgB,CAAC;WAAC;QACrC,gDAAgD;QAC7B;;;;mBAAmB,EAAE;WAAC;QACtB;;;;mBAAqB,EAAE;WAAC;QACxB;;;;mBAAwB,EAAE;WAAC;QAC3B;;;;mBAAwB,EAAE;WAAC;QAC3B;;;;mBAAwB,EAAE;WAAC;QAT7C,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAUc,MAAM,CAAC,IAAa,EAAE,IAAoB;QACxD,IAAI,CAAC,GAA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C,KAAK,CAAC,MAAM,CAAC,CAAC;QACpC,OAAO,CACN,WAAW,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC;YACtC,WAAW,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC;YACpC,CAAC,WAAW,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,WAAW,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CACrE,CAAC;IACH,CAAC;CACD;AAvDmB;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"}
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;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,OAAO,KAAK;IACjB;QAImB;;;;mBAAgB,CAAC;WAAC;QACrC,gDAAgD;QAC7B;;;;mBAAmB,EAAE;WAAC;QACtB;;;;mBAAqB,EAAE;WAAC;QACxB;;;;mBAAwB,EAAE;WAAC;QAC3B;;;;mBAAwB,EAAE;WAAC;QAC3B;;;;mBAAwB,EAAE;WAAC;QAT7C,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAUc,MAAM,CAAC,IAAa,EAAE,IAAoB;QACxD,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YACd,IAAI,CAAC,CAAC,UAAU,KAAK,MAAM,EAAE,CAAC;gBAC7B,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC;oBACf,MAAM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A8B;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";
@@ -10,6 +10,8 @@ import dayjs from "dayjs";
10
10
  import { State } from "./state";
11
11
  import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
12
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";
13
15
  import { useApplicationContext } from "@voplus/morpho-data";
14
16
  import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
15
17
  import "./index.less";
@@ -24,29 +26,40 @@ const TaskCheckItem = (props) => {
24
26
  return observe(() => {
25
27
  var _a;
26
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,
27
- React.createElement(Checkbox, { checked: state.checked, onChange: async (e) => {
28
- state.checked = e.target.checked;
29
+ React.createElement(Checkbox, { checked: task.taskStatus === "Done", onChange: async (e) => {
29
30
  await taskStore.edit(task.id, {
30
31
  data: { TaskStatus: e.target.checked === true ? "Done" : "Progress" },
31
32
  error: (error) => message.error(error.message),
32
33
  });
33
- state.checked = task.taskStatus === "Done";
34
34
  } }),
35
35
  React.createElement(FlagIcon, { id: task.id, flag: task.flag, editable: !task.readonly })), tools: React.createElement(React.Fragment, null,
36
36
  ((_a = task.members) === null || _a === void 0 ? void 0 : _a.length) ? (React.createElement("div", { className: classnames("task-members", { hide: state.isHover }) },
37
37
  React.createElement(AvatarList, { organizationId: user.info.organizationId, maxCount: 3, list: task.members, editable: false }))) : null,
38
- dueDate && (React.createElement("span", { className: classnames("task-dueDate", { hide: state.isHover }) }, task.dueDate ? (dayjs(task.dueDate).format("DD MMM YYYY")) : (React.createElement("div", { className: classnames("no-dueDate", { open: state.openDate }) },
39
- React.createElement("span", { onClick: () => (state.openDate = true) }, "No due date"),
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
40
  React.createElement(PresetDatePicker, { className: "task-item-preset-date-picker", open: state.openDate, onChange: async (preset, date) => {
41
+ var _a;
41
42
  state.openDate = false;
42
43
  await taskStore.edit(task.id, {
43
44
  data: { DueDate: dayjs(date).format("YYYY-MM-DD") },
44
45
  error: (error) => message.error(error.message),
45
46
  });
46
- }, handleOpenChange: (open) => (state.openDate = open), style: { width: "100%" } }))))),
47
+ (_a = props.onChangeDueDate) === null || _a === void 0 ? void 0 : _a.call(props, task.dueDate);
48
+ }, handleOpenChange: (open) => (state.openDate = open), style: { width: "100%" } }))),
47
49
  React.createElement("div", { className: classnames("hover-operate-icon", { show: state.isHover }) },
48
50
  React.createElement(ToolBar, { id: id, moreProps: { buttonProps: { size: "middle" } } },
49
- 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%" } })))))) }));
50
63
  });
51
64
  };
52
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;AACzC,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,CAAC;AACrE,OAAO,gBAAgB,MAAM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AC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -22,37 +22,33 @@
22
22
  .avatar-list-view {
23
23
  justify-content: end;
24
24
  .ant-avatar {
25
- width: 1.8em;
26
- height: 1.8em;
27
- line-height: 1.8em;
28
- font-size: 13px;
25
+ width: 24px;
26
+ height: 24px;
27
+ line-height: 22px;
28
+ font-size: 10px;
29
29
  }
30
30
  }
31
31
  }
32
32
  .task-dueDate {
33
+ position: relative;
33
34
  width: 120px;
34
35
  opacity: 1;
35
36
  color: #94a3b8;
36
37
  flex-shrink: 0;
37
38
  text-align: right;
39
+ background-color: transparent;
38
40
  &.hide {
39
41
  opacity: 0;
40
42
  }
41
- .no-dueDate {
42
- position: relative;
43
- background-color: #fff;
44
- &.open {
45
- background-color: #f5f8fd;
46
- }
47
- .task-item-preset-date-picker {
48
- position: absolute;
49
- left: 0;
50
- top: 0;
51
- z-index: -1;
52
- border: none;
53
- .ant-picker-suffix {
54
- display: none;
55
- }
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;
56
52
  }
57
53
  }
58
54
  }
@@ -67,5 +63,21 @@
67
63
  display: block;
68
64
  }
69
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
+ }
70
82
  }
71
83
  }
@@ -2,9 +2,9 @@ import { ITask } from "@voplus/morpho-document-core";
2
2
  export declare class State {
3
3
  constructor();
4
4
  /** */
5
- checked: boolean;
6
5
  isHover: boolean;
7
6
  task: ITask;
8
7
  openDate: boolean;
8
+ openToolbarDate: boolean;
9
9
  update(task: ITask): void;
10
10
  }
@@ -3,12 +3,6 @@ import { makeObservable, observable, action } from "mobx";
3
3
  export class State {
4
4
  constructor() {
5
5
  /** */
6
- Object.defineProperty(this, "checked", {
7
- enumerable: true,
8
- configurable: true,
9
- writable: true,
10
- value: false
11
- });
12
6
  Object.defineProperty(this, "isHover", {
13
7
  enumerable: true,
14
8
  configurable: true,
@@ -27,16 +21,18 @@ export class State {
27
21
  writable: true,
28
22
  value: false
29
23
  });
24
+ Object.defineProperty(this, "openToolbarDate", {
25
+ enumerable: true,
26
+ configurable: true,
27
+ writable: true,
28
+ value: false
29
+ });
30
30
  makeObservable(this);
31
31
  }
32
32
  update(task) {
33
33
  this.task = task;
34
- this.checked = task.taskStatus === "Done";
35
34
  }
36
35
  }
37
- __decorate([
38
- observable
39
- ], State.prototype, "checked", void 0);
40
36
  __decorate([
41
37
  observable
42
38
  ], State.prototype, "isHover", void 0);
@@ -46,6 +42,9 @@ __decorate([
46
42
  __decorate([
47
43
  observable
48
44
  ], State.prototype, "openDate", void 0);
45
+ __decorate([
46
+ observable
47
+ ], State.prototype, "openToolbarDate", void 0);
49
48
  __decorate([
50
49
  action
51
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;;;;mBAAU,KAAK;WAAC;QAChB;;;;;WAAY;QACZ;;;;mBAAW,KAAK;WAAC;QAPnC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAQc,MAAM,CAAC,IAAW;QAChC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,UAAU,KAAK,MAAM,CAAC;IAC3C,CAAC;CACD;AATmB;IAAlB,UAAU;sCAAwB;AAChB;IAAlB,UAAU;sCAAwB;AAChB;IAAlB,UAAU;mCAAoB;AACZ;IAAlB,UAAU;uCAAyB;AAErB;IAAd,MAAM;mCAGN"}
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"}
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { DocumentPropertiesName } from "@voplus/morpho-document/es/components/DocumentProperties";
3
3
  import "./index.less";
4
- export type TaskPropertiesName = "Status" | "Members" | "Due";
4
+ export type TaskPropertiesName = "Done" | "Members" | "Due";
5
5
  declare const TaskSimpleProperties: {
6
6
  (props: {
7
7
  id: string;
@@ -1,13 +1,10 @@
1
- import React, { useEffect, useState } from "react";
2
- import { Form, message, Row, Col } from "antd";
1
+ import React from "react";
2
+ import { Form, message, Row, Col, Checkbox } from "antd";
3
3
  import { useTask, useTaskStore } from "@voplus/morpho-document-core";
4
- import { autorun } from "mobx";
5
4
  import { observe, PropertiesSection } from "@voplus/morpho-ui";
6
5
  import { useApplicationContext } from "@voplus/morpho-data";
7
6
  import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
8
7
  import TaskEstimatedTime from "../TaskEstimatedTime";
9
- import TaskStatusLabel from "../../controls/TaskStatusLabel";
10
- import TasksProgressDataIcon from "../../controls/TasksProgressDataIcon";
11
8
  import "./index.less";
12
9
  const TaskSimpleProperties = (props) => {
13
10
  /** 加class name 为了方便做integration tests */
@@ -16,18 +13,20 @@ const TaskSimpleProperties = (props) => {
16
13
  const { user } = useApplicationContext();
17
14
  const task = useTask(id, { reload: true, includes: "tags,task-number-reports" });
18
15
  const taskStore = useTaskStore();
19
- const [taskStatus, setTaskStatus] = useState(task.taskStatus);
20
- useEffect(() => autorun(() => setTaskStatus(task.taskStatus)), [task.taskStatus]);
21
16
  const filterPro = taskProperties === null || taskProperties === void 0 ? void 0 : taskProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
22
17
  return observe(() => (React.createElement("div", { className: "properties-list task-simple-properties" },
23
18
  React.createElement(PropertiesSection, { title: taskTitle, properties: (labelCol) => (React.createElement(Form, { className: classId + "-form", layout: "vertical", colon: false },
24
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))))))) }))));
25
20
  function renderProp(item) {
26
21
  switch (item.name) {
27
- case "Status":
28
- return task.taskNumbers > 0 ? (React.createElement(Form.Item, { label: "Progress", className: classId + "-progress" },
29
- React.createElement(TasksProgressDataIcon, { id: id }))) : (React.createElement(Form.Item, { label: "Status", className: classId + "-status" },
30
- React.createElement(TaskStatusLabel, { status: taskStatus, editable: !task.readonly, onChange: (TaskStatus) => onEdit(TaskStatus) })));
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
+ } })));
31
30
  case "Members":
32
31
  return (React.createElement(Form.Item, { label: "Members", className: classId + "-members" },
33
32
  React.createElement(AvatarList, { organizationId: user.info.organizationId, editable: !task.readonly, multiple: true, list: [
@@ -46,19 +45,10 @@ const TaskSimpleProperties = (props) => {
46
45
  React.createElement(TaskEstimatedTime, { id: id, estimatedHours: task.estimatedHours || 0, startDate: task.startDate, dueDate: task.dueDate, editable: !task.readonly })));
47
46
  }
48
47
  }
49
- /** task edit TaskStatus */
50
- async function onEdit(TaskStatus) {
51
- setTaskStatus(TaskStatus);
52
- await taskStore.edit(id, {
53
- data: { TaskStatus },
54
- error: (error) => message.error(error.message),
55
- });
56
- setTaskStatus(task.taskStatus);
57
- }
58
48
  };
59
49
  TaskSimpleProperties.defaultProps = {
60
50
  taskTitle: "Task Properties",
61
- taskProperties: [{ name: "Members" }, { name: "Due" }, { name: "Status" }],
51
+ taskProperties: [{ name: "Members" }, { name: "Due" }, { name: "Done" }],
62
52
  };
63
53
  export default TaskSimpleProperties;
64
54
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskSimpleProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAK5D,OAAO,UAAU,MAAM,6CAA6C,CAAC;AAGrE,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,eAAe,MAAM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,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,QAAQ,EAAE,CAAC,IAAI,CAAC,QAAQ,GACvB,CACS,CACZ,CAAC;QACJ,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,oBAAoB,CAAC,YAAY,GAAG;IACnC,SAAS,EAAE,iBAAiB;IAC5B,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;CACxE,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  :global {
2
2
  .task-simple-properties.properties-list {
3
3
  height: auto;
4
+ padding-bottom: 8px;
4
5
  .properties-section-header {
5
6
  margin: 0 0 8px 0;
6
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "6.0.42",
3
+ "version": "6.0.44",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",