@voplus/morpho-workspace 6.0.37 → 6.0.39

Sign up to get free protection for your applications and to get access to all the features.
Files changed (23) hide show
  1. package/es/modules/tasks/components/TaskCheckActiveTab/index.js +1 -1
  2. package/es/modules/tasks/components/TaskCheckActiveTab/index.js.map +1 -1
  3. package/es/modules/tasks/components/TaskCheckActiveTab/index.less +3 -0
  4. package/es/modules/tasks/components/TaskCheckActiveTab/state.js +37 -35
  5. package/es/modules/tasks/components/TaskCheckActiveTab/state.js.map +1 -1
  6. package/es/modules/tasks/components/TaskCheckDoneTab/index.js +2 -2
  7. package/es/modules/tasks/components/TaskCheckDoneTab/index.js.map +1 -1
  8. package/es/modules/tasks/components/TaskCheckItem/index.js +22 -14
  9. package/es/modules/tasks/components/TaskCheckItem/index.js.map +1 -1
  10. package/es/modules/tasks/components/TaskCheckItem/index.less +15 -1
  11. package/es/modules/tasks/components/TaskCheckList/index.js +11 -6
  12. package/es/modules/tasks/components/TaskCheckList/index.js.map +1 -1
  13. package/es/modules/tasks/components/TaskCheckList/index.less +11 -0
  14. package/es/modules/tasks/components/TaskCheckList/state.d.ts +1 -0
  15. package/es/modules/tasks/components/TaskCheckList/state.js +2 -0
  16. package/es/modules/tasks/components/TaskCheckList/state.js.map +1 -1
  17. package/es/modules/tasks/components/TaskCheckNewForm/index.js +15 -24
  18. package/es/modules/tasks/components/TaskCheckNewForm/index.js.map +1 -1
  19. package/es/modules/tasks/components/TaskCheckNewForm/index.less +28 -8
  20. package/es/modules/tasks/components/TaskCheckNewForm/state.d.ts +3 -1
  21. package/es/modules/tasks/components/TaskCheckNewForm/state.js +13 -4
  22. package/es/modules/tasks/components/TaskCheckNewForm/state.js.map +1 -1
  23. package/package.json +1 -1
@@ -65,7 +65,7 @@ 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, dueDate: true })))))),
68
+ React.createElement(TaskCheckItem, { id: item.id })))))),
69
69
  });
70
70
  if (state.todayList.length)
71
71
  items.push({
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckActiveTab/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,QAAQ,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACjD,OAAO,EAAiB,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACpG,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAE7C,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAS,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,cAAc,CAAC;AAEtB,MAAM,kBAAkB,GAAG,CAAC,KAA2D,EAAE,EAAE;IAC1F,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAC3C,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IACtC,MAAM,IAAI,GAAG,sBAAsB,CAClC;QACC,cAAc,EAAE;YACf,QAAQ,EAAE,MAAM;YAChB,OAAO,EAAE;gBACR,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,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"}
@@ -15,6 +15,9 @@
15
15
  .document-name {
16
16
  color: #797979;
17
17
  }
18
+ .task-check-item {
19
+ padding-left: 0;
20
+ }
18
21
  }
19
22
  }
20
23
  }
@@ -44,35 +44,43 @@ export class State {
44
44
  }
45
45
  update(list, type) {
46
46
  list.map((i) => {
47
- if (i.dueDate) {
48
- const dueDate = dayjs(i.dueDate);
49
- // 获取当前日期
50
- const today = dayjs();
51
- /** 获取明天的日期 */
52
- const tomorrow = today.add(1, "day");
53
- if (dueDate.isSame(today, "day")) {
54
- if (type === "new")
55
- this.todayList.push(i);
56
- else
57
- this.todayList = this.todayList.filter((item) => item.id !== i.id);
58
- }
59
- else if (dueDate.isSame(tomorrow, "day")) {
60
- if (type === "new")
61
- this.tomorrowList.push(i);
62
- else
63
- this.tomorrowList = this.tomorrowList.filter((item) => item.id !== i.id);
64
- }
65
- else if (dueDate.isBefore(today)) {
66
- if (type === "new")
67
- this.dueList.push(i);
68
- else
69
- this.dueList = this.dueList.filter((item) => item.id !== i.id);
70
- }
71
- else if (this.isDateInThisWeek(dueDate)) {
72
- if (type === "new")
73
- this.thisWeekList.push(i);
74
- else
75
- this.thisWeekList = this.thisWeekList.filter((item) => item.id !== i.id);
47
+ if (i.taskStatus !== "Done") {
48
+ if (i.dueDate) {
49
+ const dueDate = dayjs(i.dueDate);
50
+ // 获取当前日期
51
+ const today = dayjs();
52
+ /** 获取明天的日期 */
53
+ const tomorrow = today.add(1, "day");
54
+ if (dueDate.isSame(today, "day")) {
55
+ if (type === "new")
56
+ this.todayList.push(i);
57
+ else
58
+ this.todayList = this.todayList.filter((item) => item.id !== i.id);
59
+ }
60
+ else if (dueDate.isSame(tomorrow, "day")) {
61
+ if (type === "new")
62
+ this.tomorrowList.push(i);
63
+ else
64
+ this.tomorrowList = this.tomorrowList.filter((item) => item.id !== i.id);
65
+ }
66
+ else if (dueDate.isBefore(today)) {
67
+ if (type === "new")
68
+ this.dueList.push(i);
69
+ else
70
+ this.dueList = this.dueList.filter((item) => item.id !== i.id);
71
+ }
72
+ else if (this.isDateInThisWeek(dueDate)) {
73
+ if (type === "new")
74
+ this.thisWeekList.push(i);
75
+ else
76
+ this.thisWeekList = this.thisWeekList.filter((item) => item.id !== i.id);
77
+ }
78
+ else {
79
+ if (type === "new")
80
+ this.upcomingList.push(i);
81
+ else
82
+ this.upcomingList = this.upcomingList.filter((item) => item.id !== i.id);
83
+ }
76
84
  }
77
85
  else {
78
86
  if (type === "new")
@@ -81,12 +89,6 @@ export class State {
81
89
  this.upcomingList = this.upcomingList.filter((item) => item.id !== i.id);
82
90
  }
83
91
  }
84
- else {
85
- if (type === "new")
86
- this.upcomingList.push(i);
87
- else
88
- this.upcomingList = this.upcomingList.filter((item) => item.id !== i.id);
89
- }
90
92
  });
91
93
  }
92
94
  /** 检查特定日期是否在本周内 */
@@ -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,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YACd,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC;gBACf,MAAM,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;gBACjC,SAAS;gBACT,MAAM,KAA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AAC,CAAC,CACrE,CAAC;IACH,CAAC;CACD;AArDmB;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;mCA8BN;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;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,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YACd,IAAI,CAAC,CAAC,UAAU,KAAK,MAAM,EAAE,CAAC;gBAC7B,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC;oBACf,MAAM,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;oBACjC,SAAS;oBACT,MAAM,KAAK,GAAG,KAAK,EAAE,CAAC;oBACtB,cAAc;oBACd,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;oBAErC,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC;wBAClC,IAAI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lB,UAAU;2CAAmC;AAE/B;IAAd,MAAM;mCAgCN;AAGc;IAAd,MAAM;6CAWN"}
@@ -17,7 +17,7 @@ const TaskCheckDoneTab = (props) => {
17
17
  includes: "tags",
18
18
  filters: [
19
19
  { c: "ParentNodeId", o: "=", l: "And", v1: parentId },
20
- { c: "TaskStatus", o: "contains", l: "And", v1: "['Done']" },
20
+ { c: "TaskStatus", o: "contains", l: "And", v1: JSON.stringify(["Done"]) },
21
21
  /** 必須提供parent node id或assignee filter */
22
22
  // {
23
23
  // c: "Members",
@@ -54,7 +54,7 @@ const TaskCheckDoneTab = (props) => {
54
54
  });
55
55
  return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
56
56
  React.createElement(ListView, { renderId: props.parentId, asideable: false, headerProps: { visible: false }, renderItem: ({ item }) => (React.createElement(DocumentItemFrame, { key: item.id },
57
- React.createElement(TaskCheckItem, { id: item.id, dueDate: true }))) }))));
57
+ React.createElement(TaskCheckItem, { id: item.id }))) }))));
58
58
  };
59
59
  export default TaskCheckDoneTab;
60
60
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckDoneTab/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAiB,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACpG,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEh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CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QACpC,oBAAC,QAAQ,IACR,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,SAAS,EAAE,KAAK,EAChB,WAAW,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAC/B,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CACzB,oBAAC,iBAAiB,IAAC,GAAG,EAAE,IAAI,CAAC,EAAE;gBAC9B,oBAAC,aAAa,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,CACX,CACpB,GACA,CACwB,CAC3B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -8,29 +8,37 @@ import FlagIcon from "@voplus/morpho-document/es/controls/data-icons/FlagIcon";
8
8
  import { useTask, useTaskStore, useMetaStore } from "@voplus/morpho-document-core";
9
9
  import dayjs from "dayjs";
10
10
  import { State } from "./state";
11
+ import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
12
+ import { useApplicationContext } from "@voplus/morpho-data";
11
13
  import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
12
14
  import "./index.less";
13
15
  const TaskCheckItem = (props) => {
14
16
  const { id, dueDate } = props;
15
17
  const [state] = useState(new State());
16
18
  const meta = useMetaStore();
19
+ const { user } = useApplicationContext();
17
20
  const taskStore = useTaskStore();
18
21
  const task = useTask(id);
19
22
  state.update(task);
20
- return observe(() => (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,
21
- React.createElement(Checkbox, { checked: state.checked, onChange: async (e) => {
22
- state.checked = e.target.checked;
23
- await taskStore.edit(task.id, {
24
- data: { TaskStatus: e.target.checked === true ? "Done" : "Progress" },
25
- error: (error) => message.error(error.message),
26
- });
27
- state.checked = task.taskStatus === "Done";
28
- } }),
29
- React.createElement(FlagIcon, { id: task.id, flag: task.flag, editable: !task.readonly })), tools: React.createElement(React.Fragment, null,
30
- dueDate && task.dueDate && (React.createElement("span", { className: classnames("task-dueDate", { hide: state.isHover }) }, dayjs(task.dueDate).format("DD MMM YYYY"))),
31
- React.createElement("div", { className: classnames("hover-operate-icon", { show: state.isHover }) },
32
- React.createElement(ToolBar, { id: id, moreProps: { buttonProps: { size: "middle" } } },
33
- React.createElement(Open, { size: "middle", url: meta.getRoute(task) })))) })));
23
+ return observe(() => {
24
+ var _a;
25
+ 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: state.checked, onChange: async (e) => {
27
+ state.checked = e.target.checked;
28
+ await taskStore.edit(task.id, {
29
+ data: { TaskStatus: e.target.checked === true ? "Done" : "Progress" },
30
+ error: (error) => message.error(error.message),
31
+ });
32
+ state.checked = task.taskStatus === "Done";
33
+ } }),
34
+ 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, noDate: dueDate }) },
36
+ 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 }) }, task.dueDate && dayjs(task.dueDate).format("DD MMM YYYY"))),
38
+ React.createElement("div", { className: classnames("hover-operate-icon", { show: state.isHover }) },
39
+ React.createElement(ToolBar, { id: id, moreProps: { buttonProps: { size: "middle" } } },
40
+ React.createElement(Open, { size: "middle", url: meta.getRoute(task) })))) }));
41
+ });
34
42
  };
35
43
  export default TaskCheckItem;
36
44
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["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gBACE,CAAA,MAAA,IAAI,CAAC,OAAO,0CAAE,MAAM,EAAC,CAAC,CAAC,CACvB,6BAAK,SAAS,EAAE,UAAU,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;oBACnF,oBAAC,UAAU,IACV,cAAc,EAAE,IAAI,CAAC,IAAI,CAAC,cAAc,EACxC,QAAQ,EAAE,CAAC,EACX,IAAI,EAAE,IAAI,CAAC,OAAO,EAClB,QAAQ,EAAE,KAAK,GACd,CACG,CACN,CAAC,CAAC,CAAC,IAAI;gBACP,OAAO,IAAI,CACX,8BAAM,SAAS,EAAE,UAAU,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,IAClE,IAAI,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CACpD,CACP;gBACD,6BAAK,SAAS,EAAE,UAAU,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC;oBACxE,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;wBAC9D,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAI,CACvC,CACL,CACJ,GAEH,CACF,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -4,11 +4,25 @@
4
4
  cursor: pointer;
5
5
  align-items: center;
6
6
  background-color: transparent;
7
- padding: 10px 20px 10px 0;
7
+ padding: 10px 20px 10px 20px;
8
+ .task-members {
9
+ opacity: 1;
10
+ // transition: opacity 0.3s;
11
+ flex-shrink: 0;
12
+ &.hide {
13
+ opacity: 0;
14
+ }
15
+ &.noDate {
16
+ flex: 1;
17
+ opacity: 1;
18
+ }
19
+ }
8
20
  .task-dueDate {
21
+ width: 100px;
9
22
  opacity: 1;
10
23
  // transition: opacity 0.3s;
11
24
  flex-shrink: 0;
25
+ text-align: right;
12
26
  &.hide {
13
27
  opacity: 0;
14
28
  }
@@ -2,12 +2,14 @@ import React, { useState, useMemo } from "react";
2
2
  import { observe } from "@voplus/morpho-ui";
3
3
  import TaskCheckActiveTab from "../TaskCheckActiveTab";
4
4
  import TaskCheckDoneTab from "../TaskCheckDoneTab";
5
- import { Button, Tabs, Badge } from "antd";
5
+ import { Button, Tabs, Badge, Popover } from "antd";
6
6
  import { Scrollbars } from "react-custom-scrollbars-2";
7
7
  import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
8
8
  import { faEllipsis } from "@fortawesome/pro-solid-svg-icons";
9
+ import { faEllipsis as faEllipsisLight } from "@fortawesome/pro-light-svg-icons";
9
10
  import TaskCheckNewForm from "../TaskCheckNewForm";
10
11
  import { State } from "./state";
12
+ import { PlusOutlined } from "@ant-design/icons";
11
13
  import classnames from "classnames";
12
14
  import { useTaskListEffect } from "@voplus/morpho-document-core";
13
15
  import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
@@ -29,17 +31,20 @@ const TaskCheckList = (props) => {
29
31
  List: false,
30
32
  Filters: [
31
33
  { c: "ParentNodeId", o: "=", l: "And", v1: id },
32
- { c: "TaskStatus", o: "contains", l: "And", v1: "['Done']" },
34
+ { c: "TaskStatus", o: "contains", l: "And", v1: JSON.stringify(["Done"]) },
33
35
  ],
34
36
  });
35
37
  return observe(() => (React.createElement(ViewContext.Provider, { value: view },
36
38
  React.createElement("div", { className: "task-check-list" },
37
39
  React.createElement("div", { className: "task-check-header" },
38
40
  React.createElement("h3", { className: "text-lg font-medium leading-6 text-gray-900" }, "Tasks"),
39
- React.createElement("div", null,
40
- React.createElement(Button, { type: "primary", onClick: onMore },
41
- React.createElement(FAIcon, { icon: faEllipsis })))),
42
- React.createElement(Tabs, { className: classnames("task-check-tabs", { "show-tabbar": state.showTabbar }), tabBarExtraContent: React.createElement(Button, { onClick: onCreate }, "Create"), activeKey: state.activeKey, onChange: (activeKey) => (state.activeKey = activeKey), items: [
41
+ React.createElement("div", { className: "task-check-tabbar" },
42
+ React.createElement(Popover, { content: React.createElement(React.Fragment, null, "Show Done Tasts") },
43
+ React.createElement(Button, { onClick: onMore, className: "task-check-trigger" },
44
+ React.createElement(FAIcon, { icon: state.showTabbar ? faEllipsis : faEllipsisLight }))),
45
+ React.createElement(Button, { onClick: onCreate, className: "task-check-add" },
46
+ React.createElement(PlusOutlined, null)))),
47
+ React.createElement(Tabs, { className: classnames("task-check-tabs", { "show-tabbar": state.showTabbar }), activeKey: state.activeKey, onChange: (activeKey) => (state.activeKey = activeKey), items: [
43
48
  {
44
49
  key: "Active",
45
50
  label: (React.createElement(React.Fragment, null,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO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BAAC,UAAU,IAAC,QAAQ;4BACnB,oBAAC,gBAAgB,IAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,EAAE,cAAc,EAAE,KAAK,GAAI,CACnD,CACb;qBACD;iBACD,GACA;YACD,KAAK,CAAC,OAAO,IAAI,CACjB,oBAAC,gBAAgB,IAChB,QAAQ,EAAE,KAAK,CAAC,EAAE,EAClB,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,EACvC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,GACpC,CACF,CACI,CACgB,CACvB,CAAC,CAAC;IAEH,SAAS,QAAQ;QAChB,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;QACrB,KAAK,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC5B,CAAC;IAED,SAAS,MAAM;QACd,KAAK,CAAC,UAAU,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC;QACrC,IAAI,CAAC,KAAK,CAAC,UAAU;YAAE,KAAK,CAAC,SAAS,GAAG,QAAQ,CAAC;IACnD,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAA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;AAEF,eAAe,aAAa,CAAC"}
@@ -9,6 +9,17 @@
9
9
  justify-content: space-between;
10
10
  padding: 10px 20px 10px 20px;
11
11
  border-bottom: 1px solid #e6e6e6;
12
+ .task-check-tabbar {
13
+ display: flex;
14
+ }
15
+ .task-check-add,
16
+ .task-check-trigger {
17
+ width: 32px;
18
+ display: inline-flex;
19
+ align-items: center;
20
+ justify-content: center;
21
+ margin-left: 10px;
22
+ }
12
23
  }
13
24
  .task-check-tabs {
14
25
  flex: 1;
@@ -1,6 +1,7 @@
1
1
  export declare class State {
2
2
  constructor();
3
3
  addAble: boolean;
4
+ /** 如果 Active / Done 都有内容 應該default 顯示 tabbar */
4
5
  showTabbar: boolean;
5
6
  activeKey: string;
6
7
  activeTotals?: number;
@@ -8,6 +8,7 @@ export class State {
8
8
  writable: true,
9
9
  value: false
10
10
  });
11
+ /** 如果 Active / Done 都有内容 應該default 顯示 tabbar */
11
12
  Object.defineProperty(this, "showTabbar", {
12
13
  enumerable: true,
13
14
  configurable: true,
@@ -39,6 +40,7 @@ export class State {
39
40
  }
40
41
  updateDoneTotals(total) {
41
42
  this.doneTotals = total;
43
+ this.showTabbar = true;
42
44
  }
43
45
  }
44
46
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckList/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE1D,MAAM,OAAO,KAAK;IACjB;QAImB;;;;mBAAU,KAAK;WAAC;QAChB;;;;mBAAa,KAAK;WAAC;QACnB;;;;mBAAY,QAAQ;WAAC;QACrB;;;;;WAAsB;QACtB;;;;;WAAoB;QAPtC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAQc,kBAAkB,CAAC,KAAa;QAC9C,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;IAC3B,CAAC;IAEc,gBAAgB,CAAC,KAAa;QAC5C,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;IACzB,CAAC;CACD;AAbmB;IAAlB,UAAU;sCAAwB;AAChB;IAAlB,UAAU;yCAA2B;AACnB;IAAlB,UAAU;wCAA6B;AACrB;IAAlB,UAAU;2CAA8B;AACtB;IAAlB,UAAU;yCAA4B;AAExB;IAAd,MAAM;+CAEN;AAEc;IAAd,MAAM;6CAEN"}
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckList/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE1D,MAAM,OAAO,KAAK;IACjB;QAImB;;;;mBAAU,KAAK;WAAC;QACnC,gDAAgD;QAC7B;;;;mBAAa,KAAK;WAAC;QACnB;;;;mBAAY,QAAQ;WAAC;QACrB;;;;;WAAsB;QACtB;;;;;WAAoB;QARtC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IASc,kBAAkB,CAAC,KAAa;QAC9C,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;IAC3B,CAAC;IAEc,gBAAgB,CAAC,KAAa;QAC5C,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QACxB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;IACxB,CAAC;CACD;AAfmB;IAAlB,UAAU;sCAAwB;AAEhB;IAAlB,UAAU;yCAA2B;AACnB;IAAlB,UAAU;wCAA6B;AACrB;IAAlB,UAAU;2CAA8B;AACtB;IAAlB,UAAU;yCAA4B;AAExB;IAAd,MAAM;+CAEN;AAEc;IAAd,MAAM;6CAGN"}
@@ -5,7 +5,7 @@ import { observe } from "@voplus/morpho-ui";
5
5
  import PresetDatePicker from "@voplus/morpho-ui/es/controls/PresetDatePicker";
6
6
  import { runInAction } from "mobx";
7
7
  import { useTaskStore } from "@voplus/morpho-document-core";
8
- import { faListAlt } from "@fortawesome/pro-light-svg-icons";
8
+ import { faCalendar } from "@fortawesome/pro-light-svg-icons";
9
9
  import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
10
10
  import classnames from "classnames";
11
11
  import "./index.less";
@@ -21,34 +21,25 @@ const TaskCheckNewForm = (props) => {
21
21
  React.createElement(Col, { flex: 1 },
22
22
  React.createElement(Input, { autoFocus: true, value: state.params.Name, className: "task-name-input", placeholder: `Enter a title for this task`, onChange: (e) => runInAction(() => (state.params.Name = e.target.value)), onPressEnter: onSubmit, onKeyDown: onKeyDown })),
23
23
  React.createElement(Col, null,
24
- React.createElement("span", { onClick: onShowMore, className: "detailed" },
25
- React.createElement(FAIcon, { icon: faListAlt, size: "lg" }))))),
26
- state.showMore && (React.createElement(Form.Item, null,
27
- React.createElement(Row, { justify: "space-between" },
28
- React.createElement(Col, { flex: 1 },
29
- React.createElement(PresetDatePicker, { onChange: (preset, date) => {
30
- state.params.DueDate = preset
31
- ? dayjs(preset).format("YYYY-MM-DD")
32
- : dayjs(date).format("YYYY-MM-DD");
33
- const dateElement = document.querySelector(".ant-picker-input input");
34
- const inputlement = document.querySelector(".task-name-input");
35
- if (dateElement) {
36
- dateElement.blur();
37
- }
38
- if (inputlement) {
39
- inputlement.focus();
40
- }
41
- }, style: { width: "100%" } })),
42
- React.createElement(Col, null,
43
- React.createElement("span", { className: "dueDate" }, "Due Dtae"))))))))));
24
+ React.createElement("div", { className: "task-due-date-content" },
25
+ state.dueDateString ? (React.createElement("div", { className: "due-val-content", onClick: () => (state.openDate = true) },
26
+ React.createElement("div", { className: "dueDate" }, "Due"),
27
+ React.createElement(React.Fragment, null, state.dueDateString))) : (React.createElement("span", { onClick: () => (state.openDate = true), className: "task-due-date-bnt" },
28
+ React.createElement(FAIcon, { icon: faCalendar, size: "lg" }))),
29
+ React.createElement(PresetDatePicker, { className: "task-preset-date-picker", open: state.openDate, onChange: (preset, date) => {
30
+ state.params.DueDate = dayjs(date).format("YYYY-MM-DD");
31
+ state.dueDateString = preset ? preset : dayjs(date).format("YYYY-MM-DD");
32
+ state.openDate = false;
33
+ const inputlement = document.querySelector(".task-name-input");
34
+ if (inputlement) {
35
+ inputlement.focus();
36
+ }
37
+ }, handleOpenChange: (open) => (state.openDate = open), style: { width: "100%" } }))))))))));
44
38
  function onKeyDown(e) {
45
39
  if (e.keyCode !== 27)
46
40
  return;
47
41
  onCancel();
48
42
  }
49
- function onShowMore() {
50
- state.showMore = !state.showMore;
51
- }
52
43
  async function onSubmit() {
53
44
  var _a;
54
45
  if (!state.params.Name)
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckNewForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,gBAAgB,GAAG,CAAC,KAKzB,EAAE,EAAE;IACJ,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC;IAC7B,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;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,CAAC,QAAQ,EAAS;YAC1D,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;QACH,WAAW,CAAC,GAAG,EAAE;YAChB,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;YACtB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC7B,CAAC,CAAC,CAAC;QACH,MAAA,KAAK,CAAC,MAAM,qDAAI,CAAC;QACjB,OAAO;IACR,CAAC;IACD,kBAAkB;IAClB,SAAS,QAAQ;;QAChB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC5B,MAAA,KAAK,CAAC,QAAQ,qDAAI,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AACF,eAAe,gBAAgB,CAAC"}
@@ -2,19 +2,39 @@
2
2
 
3
3
  :global {
4
4
  .new-task-check-form {
5
- padding: 10px 20px 0;
5
+ padding: 10px 16px 0;
6
6
  .ant-form-item {
7
7
  margin-bottom: 10px;
8
- .detailed {
9
- font-size: 20px;
8
+ .task-due-date-content {
10
9
  margin-left: 10px;
10
+ position: relative;
11
+ .task-preset-date-picker {
12
+ position: absolute;
13
+ left: 0;
14
+ top: 0;
15
+ z-index: -1;
16
+ }
17
+ }
18
+ .task-due-date-bnt {
19
+ width: 40px;
20
+ height: 32px;
21
+ font-size: 20px;
11
22
  cursor: pointer;
23
+ display: inline-flex;
24
+ align-items: center;
25
+ justify-content: center;
26
+ background-color: #fff;
12
27
  }
13
- .dueDate{
14
- // font-size: 20px;
15
- line-height: 30px;
16
- color: @heading-subtitle-color;
17
- margin-left: 10px;
28
+ .due-val-content {
29
+ min-width: 32px;
30
+ line-height: 18px;
31
+ background-color: #fff;
32
+ cursor: pointer;
33
+ .dueDate {
34
+ font-size: 12px;
35
+ line-height: 14px;
36
+ color: @heading-subtitle-color;
37
+ }
18
38
  }
19
39
  }
20
40
  }
@@ -1,3 +1,4 @@
1
+ import { Dayjs } from "dayjs";
1
2
  export declare class State {
2
3
  constructor();
3
4
  Params: {
@@ -10,6 +11,7 @@ export declare class State {
10
11
  DueDate: string;
11
12
  InheritMembers: boolean;
12
13
  };
13
- showMore: boolean;
14
14
  loading: boolean;
15
+ openDate: boolean;
16
+ dueDateString?: string | Dayjs;
15
17
  }
@@ -18,18 +18,24 @@ export class State {
18
18
  writable: true,
19
19
  value: this.Params
20
20
  });
21
- Object.defineProperty(this, "showMore", {
21
+ Object.defineProperty(this, "loading", {
22
22
  enumerable: true,
23
23
  configurable: true,
24
24
  writable: true,
25
25
  value: false
26
26
  });
27
- Object.defineProperty(this, "loading", {
27
+ Object.defineProperty(this, "openDate", {
28
28
  enumerable: true,
29
29
  configurable: true,
30
30
  writable: true,
31
31
  value: false
32
32
  });
33
+ Object.defineProperty(this, "dueDateString", {
34
+ enumerable: true,
35
+ configurable: true,
36
+ writable: true,
37
+ value: void 0
38
+ });
33
39
  makeObservable(this);
34
40
  }
35
41
  }
@@ -38,8 +44,11 @@ __decorate([
38
44
  ], State.prototype, "params", void 0);
39
45
  __decorate([
40
46
  observable
41
- ], State.prototype, "showMore", void 0);
47
+ ], State.prototype, "loading", void 0);
42
48
  __decorate([
43
49
  observable
44
- ], State.prototype, "loading", void 0);
50
+ ], State.prototype, "openDate", void 0);
51
+ __decorate([
52
+ observable
53
+ ], State.prototype, "dueDateString", void 0);
45
54
  //# sourceMappingURL=state.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckNewForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElD,MAAM,OAAO,KAAK;IACjB;QAGO;;;;mBAAS;gBACf,IAAI,EAAE,EAAE;gBACR,OAAO,EAAE,EAAE;gBACX,cAAc,EAAE,KAAK;aACrB;WAAC;QACiB;;;;mBAAS,IAAI,CAAC,MAAM;WAAC;QACrB;;;;mBAAW,KAAK;WAAC;QACjB;;;;mBAAU,KAAK;WAAC;QATlC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CASD;AAHmB;IAAlB,UAAU;qCAA6B;AACrB;IAAlB,UAAU;uCAAyB;AACjB;IAAlB,UAAU;sCAAwB"}
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckNewForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElD,MAAM,OAAO,KAAK;IACjB;QAGO;;;;mBAAS;gBACf,IAAI,EAAE,EAAE;gBACR,OAAO,EAAE,EAAE;gBACX,cAAc,EAAE,KAAK;aACrB;WAAC;QACiB;;;;mBAAS,IAAI,CAAC,MAAM;WAAC;QACrB;;;;mBAAU,KAAK;WAAC;QAChB;;;;mBAAW,KAAK;WAAC;QACjB;;;;;WAA+B;QAVjD,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAUD;AAJmB;IAAlB,UAAU;qCAA6B;AACrB;IAAlB,UAAU;sCAAwB;AAChB;IAAlB,UAAU;uCAAyB;AACjB;IAAlB,UAAU;4CAAuC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "6.0.37",
3
+ "version": "6.0.39",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",