@voplus/morpho-workspace 1.3.1 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/es/data/notification/interfaces.d.ts +2 -1
  2. package/es/data/workerror/types.d.ts +4 -0
  3. package/es/modules/notification/components/{MentionNotificationCard → DocumentNotificationCard}/index.d.ts +2 -2
  4. package/es/modules/notification/components/{MentionNotificationCard → DocumentNotificationCard}/index.js +3 -3
  5. package/es/modules/notification/components/DocumentNotificationCard/index.js.map +1 -0
  6. package/es/modules/notification/components/NotificationList/index.js +2 -2
  7. package/es/modules/notification/components/NotificationList/index.js.map +1 -1
  8. package/es/modules/work/components/WorkList/index.d.ts +3 -1
  9. package/es/modules/work/components/WorkList/index.js +31 -7
  10. package/es/modules/work/components/WorkList/index.js.map +1 -1
  11. package/es/modules/worktype/components/WorkTypeProperties/index.js +19 -20
  12. package/es/modules/worktype/components/WorkTypeProperties/index.js.map +1 -1
  13. package/es/modules/worktype/components/WorkTypeProperties/state.d.ts +2 -3
  14. package/es/modules/worktype/components/WorkTypeProperties/state.js +7 -15
  15. package/es/modules/worktype/components/WorkTypeProperties/state.js.map +1 -1
  16. package/es/modules/worktype/components/WorkTypeQA/index.js +4 -4
  17. package/es/modules/worktype/components/WorkTypeQA/index.js.map +1 -1
  18. package/es/modules/worktype/components/WorkTypeQA/index.less +1 -1
  19. package/es/modules/worktype/components/WorkTypeTabs/index.js +1 -1
  20. package/es/modules/worktype/components/WorkTypeTabs/index.js.map +1 -1
  21. package/es/modules/worktype/pages/WorkTypeDefaultView/index.less +4 -3
  22. package/es/pages/Space/components/Tasks/index.d.ts +2 -2
  23. package/es/pages/Space/components/Tasks/index.js +50 -11
  24. package/es/pages/Space/components/Tasks/index.js.map +1 -1
  25. package/es/pages/Space/components/Works/index.d.ts +2 -2
  26. package/es/pages/Space/components/Works/index.js +13 -37
  27. package/es/pages/Space/components/Works/index.js.map +1 -1
  28. package/es/pages/Space/pages/MySpace/index.js +42 -11
  29. package/es/pages/Space/pages/MySpace/index.js.map +1 -1
  30. package/es/pages/Space/pages/MySpace/state.d.ts +27 -6
  31. package/es/pages/Space/pages/MySpace/state.js +114 -24
  32. package/es/pages/Space/pages/MySpace/state.js.map +1 -1
  33. package/package.json +1 -1
  34. package/es/modules/notification/components/MentionNotificationCard/index.js.map +0 -1
  35. /package/es/modules/notification/components/{MentionNotificationCard → DocumentNotificationCard}/index.less +0 -0
@@ -7,8 +7,9 @@ export interface INotification extends ILoadable {
7
7
  dismissDate?: Date;
8
8
  createDate: Date;
9
9
  }
10
- export interface IMentionedNotification extends INotification {
10
+ export interface IDocumentNotification extends INotification {
11
11
  content: {
12
+ title: string;
12
13
  content: string;
13
14
  documentId: string;
14
15
  };
@@ -24,6 +24,8 @@ export declare type CreateWorkErrorDataOptions = {
24
24
  Description?: string;
25
25
  /** list of causer's unit id */
26
26
  CauserIds?: string[];
27
+ /** incident date of the error */
28
+ IncidentDate?: string;
27
29
  };
28
30
  export declare type CreateWorkErrorOptions = {
29
31
  data: CreateWorkErrorDataOptions;
@@ -40,6 +42,8 @@ export declare type EditWorkErrorDataOptions = {
40
42
  Description?: string;
41
43
  /** list of causer's unit id */
42
44
  CauserIds?: string[];
45
+ /** incident date of the error */
46
+ IncidentDate?: string;
43
47
  };
44
48
  export declare type EditWorkErrorOptions = {
45
49
  data: EditWorkErrorDataOptions;
@@ -1,10 +1,10 @@
1
1
  import { NotificationStatus } from "../../../../data/notification";
2
2
  import React from "react";
3
- declare const MentionNotificationCard: (props: {
3
+ declare const DocumentNotificationCard: (props: {
4
4
  id: string;
5
5
  active?: boolean | undefined;
6
6
  className?: string | undefined;
7
7
  onClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
8
8
  onChangeStatus?: ((state: NotificationStatus) => void) | undefined;
9
9
  }) => JSX.Element;
10
- export default MentionNotificationCard;
10
+ export default DocumentNotificationCard;
@@ -7,13 +7,13 @@ import classnames from "classnames";
7
7
  import moment from "moment";
8
8
  import { observe } from "@voplus/morpho-ui";
9
9
  import styles from "./index.less";
10
- const MentionNotificationCard = (props) => {
10
+ const DocumentNotificationCard = (props) => {
11
11
  const notification = useNotification(props.id);
12
12
  return observe(() => (React.createElement(Card, { className: classnames(styles["notification-card"], props.className, { active: props.active }), bordered: true,
13
13
  //hoverShadow
14
14
  shadow: true },
15
15
  React.createElement("div", { onClick: props.onClick },
16
- React.createElement("h3", null, "Mention Notification"),
16
+ React.createElement("h3", null, notification.content.title),
17
17
  React.createElement(ProseMirrorViewer, { html: notification.content.content }),
18
18
  React.createElement("div", { className: "notification-footer" },
19
19
  React.createElement("div", { className: "notification-date" }, moment(notification.createDate).format("DD MMM yyyy")),
@@ -27,5 +27,5 @@ const MentionNotificationCard = (props) => {
27
27
  ev.stopPropagation();
28
28
  }
29
29
  };
30
- export default MentionNotificationCard;
30
+ export default DocumentNotificationCard;
31
31
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/DocumentNotificationCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAGN,eAAe,GACf,MAAM,+BAA+B,CAAC;AAEvC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,wBAAwB,GAAG,CAAC,KAMjC,EAAE,EAAE;IACJ,MAAM,YAAY,GAAG,eAAe,CAAC,KAAK,CAAC,EAAE,CAA0B,CAAC;IAExE,OAAO,OAAO,CAA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@voplus/morpho-ui/es/da
4
4
  import React from "react";
5
5
  import { observe, useRenderOnChange } from "@voplus/morpho-ui";
6
6
  import { CSSTransition } from "react-transition-group";
7
+ import DocumentNotificationCard from "../DocumentNotificationCard";
7
8
  import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
8
- import MentionNotificationCard from "../MentionNotificationCard";
9
9
  import PropertiesView from "@voplus/morpho-document/es/components/PropertiesView";
10
10
  import S from "string";
11
11
  import { runInAction } from "mobx";
@@ -38,7 +38,7 @@ const NotificationList = (props) => {
38
38
  return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
39
39
  React.createElement(ListView, { headerProps: { viewTitle: "My Notifications", addAble: false, sortable: false }, className: "my-space-notifications", renderItem: ({ item }) => {
40
40
  return (React.createElement(CSSTransition, { key: item.id, in: list.isRemoving(item.id) !== true, timeout: 300, classNames: "notification-card" },
41
- React.createElement(MentionNotificationCard, { id: item.id, active: props.active === item.id ? true : false, onClick: (ev) => { var _a; return (_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, ev, item); }, onChangeStatus: (status) => editStatus(item.id, status) })));
41
+ React.createElement(DocumentNotificationCard, { id: item.id, active: props.active === item.id ? true : false, onClick: (ev) => { var _a; return (_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, ev, item); }, onChangeStatus: (status) => editStatus(item.id, status) })));
42
42
  }, propertiesView: (id, item) => React.createElement(PropertiesView, { id: item.content.documentId }) }))));
43
43
  function filters() {
44
44
  if (!props.status || props.status == "all")
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAGN,eAAe,EACf,yBAAyB,EACzB,oBAAoB,GACpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAA8B,MAAM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IAAI,KAAK;YAAE,OAAO,EAAE,CAAC;QACtD,OAAO;YACN;gBACC,CAAC,EAAE,QAAQ;gBACX,CAAC,EAAE,GAAG;gBACN,CAAC,EAAE,KAAK;gBACR,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE;aAC3B;SACjB,CAAC;IACH,CAAC;IAED,SAAS,UAAU,CAAC,EAAU,EAAE,MAA0B;QACzD,WAAW,CAAC,KAAK,IAAI,EAAE;;YACtB,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YACjC,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC;YACxB,MAAM,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;YACrE,MAAA,KAAK,CAAC,mBAAmB,+CAAzB,KAAK,EAAuB,GAAG,EAAE,IAAI,CAAC,CAAC;YACvC,IAAI,KAAK,CAAC,MAAM,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM;gBAAE,OAAO;YAChE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;QACtC,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAGN,eAAe,EACf,yBAAyB,EACzB,oBAAoB,GACpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAA8B,MAAM,OAAO,C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AK;YAAE,OAAO,EAAE,CAAC;QACtD,OAAO;YACN;gBACC,CAAC,EAAE,QAAQ;gBACX,CAAC,EAAE,GAAG;gBACN,CAAC,EAAE,KAAK;gBACR,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE;aAC3B;SACjB,CAAC;IACH,CAAC;IAED,SAAS,UAAU,CAAC,EAAU,EAAE,MAA0B;QACzD,WAAW,CAAC,KAAK,IAAI,EAAE;;YACtB,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YACjC,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC;YACxB,MAAM,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;YACrE,MAAA,KAAK,CAAC,mBAAmB,+CAAzB,KAAK,EAAuB,GAAG,EAAE,IAAI,CAAC,CAAC;YACvC,IAAI,KAAK,CAAC,MAAM,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM;gBAAE,OAAO;YAChE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;QACtC,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -3,7 +3,9 @@ import "./index.less";
3
3
  import { IWork } from "../../../../data/work";
4
4
  declare const WorkList: (props: {
5
5
  /** status of works shown on the list. */
6
- status: string;
6
+ status?: string | undefined;
7
+ /** dueDate of works shown on the list. */
8
+ dueDate?: string | undefined;
7
9
  /** The current active item */
8
10
  active?: string | undefined;
9
11
  /** Call back when an item has been clicked on the list. */
@@ -8,14 +8,16 @@ import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2"
8
8
  import S from "string";
9
9
  import WorkItem from '../WorkItem';
10
10
  import WorkPropertiesView from '../WorkPropertiesView';
11
+ import moment from "moment";
11
12
  import { observe } from "@voplus/morpho-ui";
12
13
  import { useRenderOnChange } from "@voplus/morpho-ui";
13
14
  const WorkList = (props) => {
15
+ const { dueDate } = props;
14
16
  const [activeId, setActiveId] = useState("");
15
17
  const documentStore = useDocumentStore();
16
18
  const list = useCreateListDataState({
17
19
  filterDefaults: { filters: filters() }
18
- }, [props.status]);
20
+ }, [props.status, dueDate]);
19
21
  /** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
20
22
  useAutoUpdateListData(list, (d) => d.type === "Work" && !d.parentId);
21
23
  useRenderOnChange(() => list.filters.options);
@@ -45,16 +47,38 @@ const WorkList = (props) => {
45
47
  } },
46
48
  React.createElement(WorkItem, { id: item.id })))) }))));
47
49
  function filters() {
48
- if (!props.status)
49
- return [];
50
- return [
51
- {
50
+ const filter = [];
51
+ if (props.status) {
52
+ filter.push({
52
53
  c: "WorkStatus",
53
54
  o: "=",
54
55
  l: "And",
55
56
  v1: S(props.status).capitalize().toString(),
56
- },
57
- ];
57
+ });
58
+ }
59
+ if (dueDate) {
60
+ let date = "day";
61
+ let v1 = "";
62
+ let v2 = "";
63
+ if (dueDate !== "today")
64
+ date = dueDate;
65
+ if (dueDate !== "unscheduled") {
66
+ v1 = moment().startOf(date).format("YYYY-MM-DD HH:mm:ss");
67
+ v2 = moment().endOf(date).format("YYYY-MM-DD HH:mm:ss");
68
+ }
69
+ else {
70
+ v1 = moment().add(1, "months").startOf("month").format("YYYY-MM-DD HH:mm:ss");
71
+ v2 = moment().add(1, "months").endOf("month").format("YYYY-MM-DD HH:mm:ss");
72
+ }
73
+ filter.push({
74
+ c: "DueDate",
75
+ o: "between",
76
+ l: "And",
77
+ v1: v1,
78
+ v2: v2,
79
+ });
80
+ }
81
+ return filter;
58
82
  }
59
83
  async function moveAfter(id, afterId) {
60
84
  await documentStore.moveAfter(id, af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E,GAAG,MAAM,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;aACxD;iBAAM;gBACN,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;gBAC9E,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;aAC5E;YACD,MAAM,CAAC,IAAI,CAAC;gBACX,CAAC,EAAE,SAAS;gBACZ,CAAC,EAAE,SAAS;gBACZ,CAAC,EAAE,KAAK;gBACR,EAAE,EAAE,EAAE;gBACN,EAAE,EAAE,EAAE;aACU,CAAC,CAAA;SAClB;QACD,OAAO,MAAM,CAAC;IACf,CAAC;IAED,KAAK,UAAU,SAAS,CAAC,EAAU,EAAE,OAAe;QACnD,MAAM,aAAa,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,5 +1,5 @@
1
- import React, { useState, useEffect } from "react";
2
- import { InputNumber, Form } from "@voplus/antd";
1
+ import React, { useState } from "react";
2
+ import { Form } from "@voplus/antd";
3
3
  import { InlineEdit, observe } from "@voplus/morpho-ui";
4
4
  import DocumentSelectDialog from "@voplus/morpho-document/es/components/DocumentSelectDialog";
5
5
  import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
@@ -11,36 +11,35 @@ import "./index.less";
11
11
  const WorkTypeProperties = (props) => {
12
12
  const store = useWorkTypeStore();
13
13
  const [state] = useState(new State(store));
14
- const contact = useWorkType(props.id);
15
- state.update(contact);
14
+ const worktype = useWorkType(props.id);
15
+ state.update(worktype);
16
16
  const [form] = Form.useForm();
17
17
  const { user } = useApplicationContext();
18
- useEffect(() => {
19
- runInAction(() => (state.defaultdueEdit = contact.defaultDue ? true : false));
20
- }, [props.id]);
18
+ // useEffect(() => {
19
+ // runInAction(() => (state.defaultdueEdit = worktype.defaultDue ? true : false));
20
+ // }, [props.id]);
21
21
  return observe(() => {
22
22
  var _a, _b, _c;
23
23
  return (React.createElement("div", { className: "work-type-properties" },
24
- React.createElement(Form, { form: form, labelAlign: "left", labelCol: { span: 10 }, scrollToFirstError: true },
24
+ React.createElement(Form, { form: form, labelAlign: "left", labelCol: { span: 11 }, scrollToFirstError: true },
25
25
  React.createElement(Form.Item, { label: "Number Format" },
26
- React.createElement(InlineEdit, { defaultValue: (_a = contact.sequence) === null || _a === void 0 ? void 0 : _a.format, content: (v) => {
26
+ React.createElement(InlineEdit, { defaultValue: (_a = worktype.sequence) === null || _a === void 0 ? void 0 : _a.format, content: (v) => {
27
27
  var _a;
28
- return (React.createElement("div", null, ((_a = contact.sequence) === null || _a === void 0 ? void 0 : _a.format) ? contact.sequence.format : "Add NumberFormat"));
29
- }, onSave: (value) => { var _a; return state.save(value, (_a = contact.sequence) === null || _a === void 0 ? void 0 : _a.format, { Sequence: { format: value } }); } })),
28
+ return (React.createElement("div", null, ((_a = worktype.sequence) === null || _a === void 0 ? void 0 : _a.format) ? worktype.sequence.format : "Add NumberFormat"));
29
+ }, onSave: (value) => { var _a; return state.save(value, (_a = worktype.sequence) === null || _a === void 0 ? void 0 : _a.format, { Sequence: { format: value } }); } })),
30
30
  React.createElement(Form.Item, { label: "Default Folder" },
31
- React.createElement("div", { onClick: () => runInAction(() => (state.folderEdit = true)) }, ((_b = state.contact.defaultFolder) === null || _b === void 0 ? void 0 : _b.name) || "Add Default Folder")),
31
+ React.createElement("div", { onClick: () => runInAction(() => (state.folderEdit = true)) }, ((_b = state.worktype.defaultFolder) === null || _b === void 0 ? void 0 : _b.name) || "Add Default Folder")),
32
32
  React.createElement(Form.Item, { label: "Documentation" },
33
- React.createElement("div", { onClick: () => runInAction(() => (state.documentationEdit = true)) }, ((_c = state.contact.document) === null || _c === void 0 ? void 0 : _c.name) || "Add Documentation")),
34
- React.createElement(Form.Item, { label: "Default Due" }, state.defaultdueEdit ? (React.createElement(InputNumber, { min: 0, defaultValue: state.contact.defaultDue, onChange: (value) => {
35
- store.edit(contact.id, { data: { DefaultDue: value }, error: "message" });
36
- }, onBlur: () => runInAction(() => (state.defaultdueEdit = false)) })) : (React.createElement("div", { onClick: () => runInAction(() => (state.defaultdueEdit = true)) }, state.contact.defaultDue ? state.contact.defaultDue : "Add Default Due"))),
33
+ React.createElement("div", { onClick: () => runInAction(() => (state.documentationEdit = true)) }, ((_c = state.worktype.document) === null || _c === void 0 ? void 0 : _c.name) || "Add Documentation")),
34
+ React.createElement(Form.Item, { label: "Default Due" },
35
+ React.createElement(InlineEdit, { defaultValue: worktype.defaultDue, content: (v) => (React.createElement("div", null, worktype.defaultDue ? worktype.defaultDue : "Add Default Due")), onSave: (value) => store.edit(worktype.id, { data: { DefaultDue: value }, error: "message" }) })),
37
36
  React.createElement(Form.Item, { label: "Requester" },
38
- React.createElement(AvatarList, { organizationId: user.info.organizationId, multiple: true, buttonText: "Ok", list: contact.requester, onChange: (ids) => {
39
- store.edit(contact.id, { data: { RequesterIds: ids }, error: "message" });
37
+ React.createElement(AvatarList, { organizationId: user.info.organizationId, multiple: true, buttonText: "Ok", list: worktype.requester, onChange: (ids) => {
38
+ store.edit(worktype.id, { data: { RequesterIds: ids }, error: "message" });
40
39
  } })),
41
40
  React.createElement(Form.Item, { label: "Accepters" },
42
- React.createElement(AvatarList, { organizationId: user.info.organizationId, multiple: true, buttonText: "Ok", list: contact.accepters, onChange: (ids) => {
43
- store.edit(contact.id, { data: { AccepterIds: ids }, error: "message" });
41
+ React.createElement(AvatarList, { organizationId: user.info.organizationId, multiple: true, buttonText: "Ok", list: worktype.accepters, onChange: (ids) => {
42
+ store.edit(worktype.id, { data: { AccepterIds: ids }, error: "message" });
44
43
  } }))),
45
44
  state.folderEdit && (React.createElement(DocumentSelectDialog, { multiSelect: false, onCancel: () => runInAction(() => (state.folderEdit = false)), onSelect: (data) => {
46
45
  store.edit(props.id, { data: { DefaultFolderId: data[0].id }, error: "message" });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,oBAAoB,MAAM,4DAA4D,CAAC;AAC9F,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,cAAc,CAAC;AAEtB,MAAM,kBAAkB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACpD,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IAE3C,MAAM,OAAO,GAAG,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACtC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAEtB,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;IAC9B,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAEzC,SAAS,CAAC,GAAG,EAAE;QACd,WAAW,CA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,oBAAoB,IACpB,WAAW,EAAE,KAAK,EAClB,QAAQ,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC,CAAC,EACpE,QAAQ,EAAE,CACT,IAGG,EACF,EAAE;oBACH,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;oBAC7E,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC,CAAC,CAAC;gBACtD,CAAC,GACA,CACF,CACI,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAa,MAAM,OAAO,CAAC;AACnD,OAAO,EAAe,IAAI,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,oBAAoB,MAAM,4DAA4D,CAAC;AAC9F,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,cAAc,CAAC;AAEtB,MAAM,kBAAkB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACpD,MAAM,KAAK,GAAG,gBAA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K,CAAC,iBAAiB,GAAG,KAAK,CAAC,CAAC,EACpE,QAAQ,EAAE,CACT,IAGG,EACF,EAAE;oBACH,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;oBAC7E,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC,CAAC,CAAC;gBACtD,CAAC,GACA,CACF,CACI,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1,12 +1,11 @@
1
1
  import { IWorkType, WorkTypeStore } from "../../../../data/worktype";
2
2
  export declare class State {
3
3
  private store;
4
- contact: IWorkType;
5
- defaultdueEdit: boolean;
4
+ worktype: IWorkType;
6
5
  folderEdit: boolean;
7
6
  documentationEdit: boolean;
8
7
  constructor(store: WorkTypeStore);
9
- update(contact: IWorkType): void;
8
+ update(worktype: IWorkType): void;
10
9
  /** edit save */
11
10
  save(v: any, name: any, params: Record<string, unknown>): void;
12
11
  }
@@ -8,18 +8,13 @@ export class State {
8
8
  writable: true,
9
9
  value: store
10
10
  });
11
- Object.defineProperty(this, "contact", {
11
+ Object.defineProperty(this, "worktype", {
12
12
  enumerable: true,
13
13
  configurable: true,
14
14
  writable: true,
15
15
  value: void 0
16
16
  });
17
- Object.defineProperty(this, "defaultdueEdit", {
18
- enumerable: true,
19
- configurable: true,
20
- writable: true,
21
- value: false
22
- });
17
+ // @observable public defaultdueEdit = false;
23
18
  Object.defineProperty(this, "folderEdit", {
24
19
  enumerable: true,
25
20
  configurable: true,
@@ -34,22 +29,19 @@ export class State {
34
29
  });
35
30
  makeObservable(this);
36
31
  }
37
- update(contact) {
38
- this.contact = contact;
32
+ update(worktype) {
33
+ this.worktype = worktype;
39
34
  }
40
35
  /** edit save */
41
36
  save(v, name, params) {
42
- if ((v === null || v === void 0 ? void 0 : v.trim()) === name)
37
+ if ((v === null || v === void 0 ? void 0 : v.trim()) === name || (v === null || v === void 0 ? void 0 : v.trim()) === "")
43
38
  return;
44
- this.store.edit(this.contact.id, { data: params, error: "message" });
39
+ this.store.edit(this.worktype.id, { data: params, error: "message" });
45
40
  }
46
41
  }
47
42
  __decorate([
48
43
  observable
49
- ], State.prototype, "contact", void 0);
50
- __decorate([
51
- observable
52
- ], State.prototype, "defaultdueEdit", void 0);
44
+ ], State.prototype, "worktype", void 0);
53
45
  __decorate([
54
46
  observable
55
47
  ], State.prototype, "folderEdit", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeProperties/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,MAAM,OAAO,KAAK;IAMjB,YAAoB,KAAoB;;;;;mBAApB;;QALR;;;;;WAA0B;QAC1B;;;;mBAAwB,KAAK;WAAC;QAC9B;;;;mBAAoB,KAAK;WAAC;QAC1B;;;;mBAA2B,KAAK;WAAC;QAG5C,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAEc,MAAM,CAAC,OAAkB;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACxB,CAAC;IAED,gBAAgB;IAET,IAAI,CAAC,CAAM,EAAE,IAAS,EAAE,MAA+B;QAC7D,IAAI,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,IAAI,EAAE,MAAK,IAAI;YAAE,OAAO;QAC/B,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IACtE,CAAC;CACD;AAnBY;IAAX,UAAU;sCAA2B;AAC1B;IAAX,UAAU;6CAA+B;AAC9B;IAAX,UAAU;yCAA2B;AAC1B;IAAX,UAAU;gDAAkC;AAMrC;IAAP,MAAM;mCAEN;AAID;IADC,MAAM;iCAIN"}
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeProperties/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,MAAM,OAAO,KAAK;IAMjB,YAAoB,KAAoB;;;;;mBAApB;;QALR;;;;;WAA2B;QACvC,6CAA6C;QACjC;;;;mBAAoB,KAAK;WAAC;QAC1B;;;;mBAA2B,KAAK;WAAC;QAG5C,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAEc,MAAM,CAAC,QAAmB;QACxC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC1B,CAAC;IAED,gBAAgB;IAET,IAAI,CAAC,CAAM,EAAE,IAAS,EAAE,MAA+B;QAC7D,IAAI,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,IAAI,EAAE,MAAK,IAAI,IAAI,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,IAAI,EAAE,MAAK,EAAE;YAAE,OAAO;QACnD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IACvE,CAAC;CACD;AAnBY;IAAX,UAAU;uCAA4B;AAE3B;IAAX,UAAU;yCAA2B;AAC1B;IAAX,UAAU;gDAAkC;AAMrC;IAAP,MAAM;mCAEN;AAID;IADC,MAAM;iCAIN"}
@@ -43,14 +43,14 @@ const WorkTypeQA = (props) => {
43
43
  : "Add Audit Rate"))),
44
44
  React.createElement(Form.Item, { label: "Audit Task" },
45
45
  React.createElement("div", { className: "open-btn", onClick: () => setVisible(true) }, "Open")))),
46
- React.createElement(Form.Item, null,
46
+ React.createElement(Form.Item, { label: "Reject Reasons" },
47
47
  React.createElement(CheckList, { headerProps: {
48
- viewTitle: "Reject Reasons",
48
+ viewTitle: " ",
49
49
  visible: true
50
50
  }, allowAdd: true, list: state.rejectReasons, onChange: (item) => state.onChangeRejectReasons(item), onCreate: (item) => state.onCreateRejectReasons(item), onDelete: (item) => state.onDeleteRejectReasons(item) })),
51
- React.createElement(Form.Item, null,
51
+ React.createElement(Form.Item, { label: "Error Types" },
52
52
  React.createElement(CheckList, { headerProps: {
53
- viewTitle: "Error Types",
53
+ viewTitle: " ",
54
54
  visible: true
55
55
  }, allowAdd: true, list: state.errorTypes, onChange: (item) => state.onChangeErrorTypes(item), onCreate: (item) => state.onCreateErrorTypes(item), onDelete: (item) => state.onDeleteErrorTypes(item) }))),
56
56
  React.createElement(TaskQuickViewDialog, { id: props.id, visible: visible, onCancel: () => setVisible(false) }))));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeQA/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE1E,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,SAAS,MAAM,yCAAyC,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,mBAAmB,MAAM,+CAA+C,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,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,oBAAC,mBAAmB,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GAAI,CACrF,CACQ,CACf,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -17,7 +17,7 @@
17
17
  }
18
18
  }
19
19
  .check-item {
20
- padding: 10px 20px;
20
+ padding: 10px 0;
21
21
  font-size: 14px;
22
22
  font-weight: normal;
23
23
  }
@@ -22,7 +22,7 @@ const WorkTypeTabs = (props) => {
22
22
  React.createElement(Badge, { count: 6, className: "site-badge-count" })), key: "TaskList" }, activeKey === "TaskList" && (React.createElement(WorkTaskList, { Title: "Task", parentId: id, onClickItem: onClickItem }))),
23
23
  React.createElement(Tabs.TabPane, { tab: React.createElement(React.Fragment, null,
24
24
  "Documents",
25
- React.createElement(Badge, { count: 3, className: "site-badge-count" })), key: "Document" }, activeKey === "Document" && React.createElement(DocumentList, { id: id, multiple: true })),
25
+ React.createElement(Badge, { count: 3, className: "site-badge-count" })), key: "Document" }, activeKey === "Document" && React.createElement(DocumentList, { id: id, multiple: true, exclude: ["Task"] })),
26
26
  React.createElement(Tabs.TabPane, { tab: "QA Setting", key: "QA Setting" }, activeKey === "QA Setting" && React.createElement(WorkTypeQA, { id: id })))));
27
27
  /**切换面板的回调*/
28
28
  function onChange(activeKey) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,YAAY,MAAM,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AC,kBAAkB,GAAG,CAC9C,EAEJ,GAAG,EAAC,UAAU,IAEb,SAAS,KAAK,UAAU,IAAI,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,QAAC,OAAO,EAAE,CAAC,MAAM,CAAC,GAAI,CACnE;QACf,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,YAAY,EAAC,GAAG,EAAC,YAAY,IAC7C,SAAS,KAAK,YAAY,IAAI,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,GAAI,CACvC,CACT,CACP,CAAC,CAAC;IAEH,YAAY;IACZ,SAAS,QAAQ,CAAC,SAAiB;QAClC,YAAY,CAAC,SAAS,CAAC,CAAC;IACzB,CAAC;IAED,SAAS,WAAW,CAAC,EAAU;QAC9B,2BAA2B;QAC3B,mCAAmC;QACnC,gBAAgB;QAChB,KAAK;QACL,IAAI,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,YAAY,EAAE;YAC/B,YAAY,CAAC,UAAU,EAAE,CAAC;SAC1B;aAAM;YACN,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,CAAC,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;SACtE;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,9 +1,10 @@
1
1
  :global {
2
2
  .work-type-default-view {
3
3
  .main-content-nav {
4
- width: 310px;
5
- box-shadow: 6px 0 16px -8px rgb(0 0 0 / 8%), 9px 0 28px 0 rgb(0 0 0 / 5%),
6
- 12px 0 48px 16px rgb(0 0 0 / 3%) !important;
4
+ width: 300px;
5
+ // box-shadow: 6px 0 16px -8px rgb(0 0 0 / 8%), 9px 0 28px 0 rgb(0 0 0 / 5%),
6
+ // 12px 0 48px 16px rgb(0 0 0 / 3%) !important;
7
+ box-shadow: 1px 0 3px 0px rgba(0, 0, 0, 0.15) !important;
7
8
  }
8
9
 
9
10
  .work-type-context {
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import "./index.less";
3
- import { FilterOption } from "@voplus/morpho-data";
3
+ import { State } from "../../pages/MySpace/state";
4
4
  declare const TaskList: (props: {
5
- filters?: FilterOption[];
5
+ state: State;
6
6
  }) => JSX.Element;
7
7
  export default TaskList;
@@ -1,40 +1,79 @@
1
1
  import "./index.less";
2
+ import { useLayout } from "@voplus/morpho-data";
2
3
  import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
3
- import React, { useEffect } from "react";
4
+ import React from "react";
5
+ import { generatePath, useRouteMatch } from "react-router";
4
6
  import { useAutoUpdateListData, useDocumentStore } from "@voplus/morpho-document-core";
7
+ import DefaultTaskItem from "../../../../modules/tasks/components/TaskItem/DefaultTaskItem";
5
8
  import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
6
9
  import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
7
10
  import NewTaskForm from "../../../../modules/tasks/components/NewTaskForm";
8
- import SubTaskItem from "../../../../modules/tasks/components/TaskItem/SubTaskItem";
11
+ import TaskPropertiesView from "../../../../modules/tasks/components/TaskPropertiesView";
12
+ import moment from "moment";
9
13
  import { observe } from "@voplus/morpho-ui";
14
+ import { runInAction } from "mobx";
10
15
  import { useRenderOnChange } from "@voplus/morpho-ui";
11
16
  import { useTaskListEffect } from "../../../../data/task/hooks";
12
17
  const TaskList = (props) => {
18
+ const match = useRouteMatch();
19
+ const layout = useLayout();
13
20
  const documentStore = useDocumentStore();
14
21
  const list = useCreateListDataState({
15
22
  filterDefaults: {
16
23
  includes: "tags,task-number-reports",
24
+ filters: filters()
17
25
  },
18
- }, []);
19
- useEffect(() => {
20
- if (props.filters)
21
- list.clear();
22
- }, [props.filters]);
23
- list.filters.options.Filters = props.filters || [];
26
+ }, [match.params.dueDate]);
24
27
  /** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
25
28
  useAutoUpdateListData(list, (d) => d.type === "Task" && !d.parentId);
26
29
  /** 如果 list.filters.options变更了就重渲染,使下一行的useTaskListEffect 可以接收新参数*/
27
30
  useRenderOnChange(() => list.filters.options);
28
31
  /** 把ListDataState传给useTaskListEffect,使之可以自動更新loading, hasmore. */
29
- useTaskListEffect(list, (result) => list.union(result), list.filters.options);
32
+ useTaskListEffect(list, (result, total) => {
33
+ list.union(result);
34
+ runInAction(() => {
35
+ props.state.updateTaskTotal[match.params.dueDate] = total;
36
+ });
37
+ }, {
38
+ Total: true,
39
+ ...list.filters.options,
40
+ });
30
41
  return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
31
- React.createElement(ListView, { headerProps: { viewTitle: "My Tasks" }, formViewTitle: "Add Task", className: "my-space-tasks", formView: React.createElement(NewTaskForm, null), moveAfter: moveAfter, renderItem: ({ item, connectDragSource }) => (React.createElement(React.Fragment, null,
42
+ React.createElement(ListView, { headerProps: { viewTitle: "My Tasks" }, formViewTitle: "Add Task", className: "my-space-tasks", formView: React.createElement(NewTaskForm, null), moveAfter: moveAfter, propertiesView: (id) => React.createElement(TaskPropertiesView, { id: id }), renderItem: ({ item, connectDragSource }) => (React.createElement(React.Fragment, null,
32
43
  React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
33
44
  hoverEffect: "background",
34
45
  hoverBackgroundProps: { color: "#f2f2f2" },
35
46
  style: { border: "none", flex: "1" },
47
+ }, onClick: () => {
48
+ layout.history.push(generatePath(match.path, { dueDate: match.params.dueDate, active: item.id }));
36
49
  } },
37
- React.createElement(SubTaskItem, { id: item.id, memberAlign: "block", connectDragSource: connectDragSource })))) }))));
50
+ React.createElement(DefaultTaskItem, { id: item.id, memberAlign: "block", connectDragSource: connectDragSource })))) }))));
51
+ function filters() {
52
+ if (!match.params.dueDate)
53
+ return [];
54
+ let date = "day";
55
+ let v1 = "";
56
+ let v2 = "";
57
+ if (match.params.dueDate !== "today")
58
+ date = match.params.dueDate;
59
+ if (match.params.dueDate !== "unscheduled") {
60
+ v1 = moment().startOf(date).format("YYYY-MM-DD HH:mm:ss");
61
+ v2 = moment().endOf(date).format("YYYY-MM-DD HH:mm:ss");
62
+ }
63
+ else {
64
+ v1 = moment().add(1, "months").startOf("month").format("YYYY-MM-DD HH:mm:ss");
65
+ v2 = moment().add(1, "months").endOf("month").format("YYYY-MM-DD HH:mm:ss");
66
+ }
67
+ return [
68
+ {
69
+ c: "DueDate",
70
+ o: "between",
71
+ l: "And",
72
+ v1: v1,
73
+ v2: v2,
74
+ },
75
+ ];
76
+ }
38
77
  async function moveAfter(id, afterId) {
39
78
  await documentStore.moveAfter(id, afterId);
40
79
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/Space/components/Tasks/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAGvF,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AAGtF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,WAAW,MAAM,kDAAkD,CAAC;AAC3E,OAAO,WAAW,MAAM,2DAA2D,CAAC;AACpF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAEhE,MAAM,QAAQ,GAAG,CAAC,KAAmC,EAAE,EAAE;IACxD,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IAEzC,MAAM,IAAI,GAAG,sBAAsB,CAClC;QACC,cAAc,EAAE;YACf,QAAQ,EAAE,0BAA0B;SACpC;KACD,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AK,aAAa,EAAE;YAC3C,EAAE,GAAG,MAAM,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;YAC1D,EAAE,GAAG,MAAM,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;SACxD;aAAM;YACN,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;YAC9E,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;SAC5E;QACD,OAAO;YACN;gBACC,CAAC,EAAE,SAAS;gBACZ,CAAC,EAAE,SAAS;gBACZ,CAAC,EAAE,KAAK;gBACR,EAAE,EAAE,EAAE;gBACN,EAAE,EAAE,EAAE;aACU;SACjB,CAAC;IACH,CAAC;IAED,KAAK,UAAU,SAAS,CAAC,EAAU,EAAE,OAAe;QACnD,MAAM,aAAa,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import "./index.less";
2
+ import { State } from "../../pages/MySpace/state";
3
3
  declare const Works: (props: {
4
- id: string;
4
+ state: State;
5
5
  }) => JSX.Element;
6
6
  export default Works;
@@ -1,43 +1,19 @@
1
- import "./index.less";
2
- import { useAutoUpdateListData, useDocumentListEffect, useDocumentStore, } from "@voplus/morpho-document-core";
3
- import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
1
+ import { generatePath, useRouteMatch } from "react-router";
4
2
  import React from "react";
5
- import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
6
- import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
7
- import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
3
+ import WorkList from "../../../../modules/work/components/WorkList";
8
4
  import { observe } from "@voplus/morpho-ui";
9
- import { useRenderOnChange } from "@voplus/morpho-ui";
5
+ import { runInAction } from "mobx";
6
+ import { useLayout } from "@voplus/morpho-data";
10
7
  const Works = (props) => {
11
- const { id } = props;
12
- const documentStore = useDocumentStore();
13
- /** 建立 ListView 和useDocumentListEffect所需的ListDataState. 会根据state.id重建所以不需reset. */
14
- const list = useCreateListDataState({
15
- filterDefaults: {
16
- includes: "tags",
17
- filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: id }],
18
- },
19
- }, [id]);
20
- /** 如果 list.filters.options变更了就重渲染,使下一行的useDocumentListEffect 可以接收新参数*/
21
- useRenderOnChange(() => list.filters.options);
22
- /** 把ListDataState传给useDocumentListEffect,使之可以自動更新loading, hasmore. */
23
- useDocumentListEffect(list, (result) => list.union(result), list.filters.options);
24
- /** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
25
- useAutoUpdateListData(list, (d) => d.parentId === id);
26
- return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
27
- React.createElement(ListView, { headerProps: { viewTitle: "My Works" },
28
- // formViewTitle="Add Task"
29
- className: "my-space-works",
30
- // formView={<NewTaskForm />}
31
- moveAfter: moveAfter, renderItem: ({ item, connectDragSource }) => (React.createElement(React.Fragment, null,
32
- React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
33
- hoverEffect: "background",
34
- hoverBackgroundProps: { color: "#f2f2f2" },
35
- style: { border: "none", flex: "1" },
36
- } },
37
- React.createElement(DocumentHeader, { id: item.id, itemHover: true })))) }))));
38
- async function moveAfter(id, afterId) {
39
- await documentStore.moveAfter(id, afterId);
40
- }
8
+ const match = useRouteMatch();
9
+ const layout = useLayout();
10
+ return observe(() => React.createElement(WorkList, { dueDate: match.params.dueDate, active: match.params.active, onClickItem: (item) => {
11
+ layout.history.push(generatePath(match.path, { dueDate: match.params.dueDate, active: item.id }));
12
+ }, onTotal: (total) => {
13
+ runInAction(() => {
14
+ props.state.updateWorkTotal[match.params.dueDate] = total;
15
+ });
16
+ } }));
41
17
  };
42
18
  export default Works;
43
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/Space/components/Works/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAEN,qBAAqB,EACrB,qBAAqB,EACrB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AAEjF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,KAAK,GAAG,CAAC,KAAqB,EAAE,EAAE;IACvC,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IAEzC,kFAAkF;IAClF,MAAM,IAAI,GAAG,sBAAsB,CAClC;QACC,cAAc,EAAE;YACf,QAAQ,EAAE,MAAM;YAChB,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;SAC1D;KACD,EACD,CAAC,EAAE,CAAC,CACJ,CAAC;IAEF,uEAAuE;IACvE,iBAAiB,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,C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/pages/Space/components/Works/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE3D,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,QAAQ,MAAM,8CAA8C,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,KAAK,GAAG,CAAC,KAAuB,EAAE,EAAE;IACzC,MAAM,KAAK,GAAG,aAAa,EAAwC,CAAC;IACpE,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,OAAO,CAAC,GAAG,EAAE,CACnB,oBAAC,QAAQ,IACR,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,EAC7B,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAC3B,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE;YACrB,MAAM,CAAC,OAAO,CAAC,IAAI,CAClB,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAC5E,CAAC;QACH,CAAC,EACD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,WAAW,CAAC,GAAG,EAAE;gBAChB,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC;YAC3D,CAAC,CAAC,CAAC;QACJ,CAAC,GACA,CACF,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -13,11 +13,14 @@ import Notifications from "../../components/Notifications";
13
13
  import Scrollbars from "react-custom-scrollbars";
14
14
  import { State } from "./state";
15
15
  import SubMenu from "@voplus/antd/es/menu/SubMenu";
16
+ import Tasks from "../../components/Tasks";
17
+ import Works from "../../components/Works";
16
18
  import Workspaces from "../../components/Workspaces";
17
19
  import { observe } from "@voplus/morpho-ui";
18
20
  import { runInAction } from "mobx";
19
21
  import { useLayout } from "@voplus/morpho-data";
20
- //import Notifications from "../../../../modules/notification/components/NotificationList";
22
+ import { useTaskListEffect } from "../../../../data/task";
23
+ import { useWorkListEffect } from "../../../../data/work";
21
24
  const MySpace = () => {
22
25
  const { user } = useApplicationContext();
23
26
  const match = useRouteMatch();
@@ -27,6 +30,14 @@ const MySpace = () => {
27
30
  useEffect(() => {
28
31
  runInAction(() => (tab.title = "My Space"));
29
32
  }, []);
33
+ useTaskListEffect(null, (result, total) => runInAction(() => (state.taskTotals.today = total || 0)), state.tToday);
34
+ useTaskListEffect(null, (result, total) => runInAction(() => (state.taskTotals.week = total || 0)), state.tWeek);
35
+ useTaskListEffect(null, (result, total) => runInAction(() => (state.taskTotals.month = total || 0)), state.tMonth);
36
+ useTaskListEffect(null, (result, total) => runInAction(() => (state.taskTotals.unscheduled = total || 0)), state.tUnscheduled);
37
+ useWorkListEffect(null, (result, total) => runInAction(() => (state.workTotals.today = total || 0)), state.tToday);
38
+ useWorkListEffect(null, (result, total) => runInAction(() => (state.workTotals.week = total || 0)), state.tWeek);
39
+ useWorkListEffect(null, (result, total) => runInAction(() => (state.workTotals.month = total || 0)), state.tMonth);
40
+ useWorkListEffect(null, (result, total) => runInAction(() => (state.workTotals.unscheduled = total || 0)), state.tUnscheduled);
30
41
  useNotificationListEffect(null, (result, total) => runInAction(() => (state.notificationTotals.unread = total || 0)), state.nUnreadOptions);
31
42
  useNotificationListEffect(null, (result, total) => runInAction(() => (state.notificationTotals.read = total || 0)), state.nReadOptions);
32
43
  useNotificationListEffect(null, (result, total) => runInAction(() => (state.notificationTotals.later = total || 0)), state.nLaterOptions);
@@ -54,21 +65,41 @@ const MySpace = () => {
54
65
  React.createElement(Badge, { count: state.notificationTotals.dismissed, className: "site-badge-count" }))),
55
66
  React.createElement(Menu.Item, { key: "Notes", icon: React.createElement(FAIcon, { icon: faStickyNote }), disabled: true }, "My Notes"),
56
67
  React.createElement(Menu.Item, { key: "Projects", icon: React.createElement(FAIcon, { icon: faProjectDiagram }), disabled: true }, "My Projects"),
57
- React.createElement(SubMenu, { key: "Tasks", icon: React.createElement(FAIcon, { icon: faTasks }), title: "My Tasks", disabled: true },
58
- React.createElement(Menu.Item, { key: "TaskToday" }, "Today(2)"),
59
- React.createElement(Menu.Item, { key: "TaskWeek" }, "This Week(4)"),
60
- React.createElement(Menu.Item, { key: "TaskMonth" }, "This Month(5)"),
61
- React.createElement(Menu.Item, { key: "TaskUnscheduled" }, "Unscheduled(6)")),
62
- React.createElement(SubMenu, { key: "Works", icon: React.createElement(FAIcon, { icon: faBallotCheck }), title: "My Works", disabled: true },
63
- React.createElement(Menu.Item, { key: "WorkToday" }, "Today(2)"),
64
- React.createElement(Menu.Item, { key: "WorkWeek" }, "This Week(4)"),
65
- React.createElement(Menu.Item, { key: "WorkMonth" }, "This Month(5)"),
66
- React.createElement(Menu.Item, { key: "WorkUnscheduled" }, "Unscheduled(6)"))))),
68
+ React.createElement(SubMenu, { key: "Tasks", icon: React.createElement(FAIcon, { icon: faTasks }), title: "My Tasks" },
69
+ React.createElement(Menu.Item, { key: "/task/today" },
70
+ "Today",
71
+ React.createElement(Badge, { count: state.taskTotals.today, className: "site-badge-count" })),
72
+ React.createElement(Menu.Item, { key: "/task/week" },
73
+ "This Week",
74
+ React.createElement(Badge, { count: state.taskTotals.week, className: "site-badge-count" })),
75
+ React.createElement(Menu.Item, { key: "/task/month" },
76
+ "This Month",
77
+ React.createElement(Badge, { count: state.taskTotals.month, className: "site-badge-count" })),
78
+ React.createElement(Menu.Item, { key: "/task/unscheduled" },
79
+ "Unscheduled",
80
+ React.createElement(Badge, { count: state.taskTotals.unscheduled, className: "site-badge-count" }))),
81
+ React.createElement(SubMenu, { key: "Works", icon: React.createElement(FAIcon, { icon: faBallotCheck }), title: "My Works" },
82
+ React.createElement(Menu.Item, { key: "/works/today" },
83
+ "Today",
84
+ React.createElement(Badge, { count: state.workTotals.today, className: "site-badge-count" })),
85
+ React.createElement(Menu.Item, { key: "/works/week" },
86
+ "This Week",
87
+ React.createElement(Badge, { count: state.workTotals.today, className: "site-badge-count" })),
88
+ React.createElement(Menu.Item, { key: "/works/month" },
89
+ "This Month",
90
+ React.createElement(Badge, { count: state.workTotals.today, className: "site-badge-count" })),
91
+ React.createElement(Menu.Item, { key: "/works/unscheduled" },
92
+ "Unscheduled",
93
+ React.createElement(Badge, { count: state.workTotals.today, className: "site-badge-count" })))))),
67
94
  React.createElement(Switch, null,
68
95
  React.createElement(Route, { path: `${match.path}/documents` },
69
96
  React.createElement(DocumentPage, { root: user.info.folderId })),
70
97
  React.createElement(Route, { path: `${match.path}/workspaces/:active?` },
71
98
  React.createElement(Workspaces, null)),
99
+ React.createElement(Route, { path: `${match.path}/task/:dueDate/:active?` },
100
+ React.createElement(Tasks, { state: state })),
101
+ React.createElement(Route, { path: `${match.path}/works/:dueDate/:active?` },
102
+ React.createElement(Works, { state: state })),
72
103
  React.createElement(Route, { path: `${match.path}/notifications/:status/:active?` },
73
104
  React.createElement(Notifications, { state: state })),
74
105
  React.createElement(Redirect, { to: `${match.path}/notifications/unread` })))));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/Space/pages/MySpace/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAiB,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,EAAE,IAAI,EAAY,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAmB,OAAO,EAAY,MAAM,OAAO,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EACN,aAAa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AAK,EAAE,KAAK,GAAI,CAChB;YACR,oBAAC,KAAK,IAAC,IAAI,EAAE,GAAG,KAAK,CAAC,IAAI,iCAAiC;gBAC1D,oBAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CACxB;YACR,oBAAC,QAAQ,IAAC,EAAE,EAAE,GAAG,KAAK,CAAC,IAAI,uBAAuB,GAAI,CAC9C,CAGI,CACd,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,14 +1,12 @@
1
- import { FilterOption, LayoutContext } from "@voplus/morpho-data";
2
- import { Moment } from "moment";
1
+ import { LayoutContext } from "@voplus/morpho-data";
3
2
  import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
4
3
  import { NotificationStatus } from "../../../../data/notification";
5
- import { RangeValue } from "rc-picker/es/interface";
4
+ import { TaskStatus } from "../../../../data/task";
5
+ import { WorkStatus } from "../../../../data/work";
6
6
  export declare class State {
7
7
  private _layout;
8
8
  private _url;
9
9
  menuKey: string[] | undefined;
10
- /** dueDate of task */
11
- dueDate: RangeValue<Moment>;
12
10
  /** status All Notifications list Total */
13
11
  notificationTotals: {
14
12
  unread: number;
@@ -16,10 +14,33 @@ export declare class State {
16
14
  later: number;
17
15
  dismissed: number;
18
16
  };
17
+ /** DueDate of the Tasks list Total */
18
+ taskTotals: {
19
+ today: number;
20
+ week: number;
21
+ month: number;
22
+ unscheduled: number;
23
+ };
24
+ /** DueDate of the Works list Total */
25
+ workTotals: {
26
+ today: number;
27
+ week: number;
28
+ month: number;
29
+ unscheduled: number;
30
+ };
19
31
  constructor(_layout: LayoutContext, _url: string);
20
32
  navigate(key: string, rest?: string): void;
21
- get filters(): FilterOption[];
33
+ updateTaskTotal(oldStatus: TaskStatus, status: TaskStatus): void;
34
+ updateWorkTotal(oldStatus: WorkStatus, status: WorkStatus): void;
22
35
  updateNotificationTotal(oldStatus: NotificationStatus, status: NotificationStatus): void;
36
+ /** tasks/works list DueDate(today) Options */
37
+ get tToday(): LoadDocumentListOptions;
38
+ /** tasks/works list DueDate(week) Options */
39
+ get tWeek(): LoadDocumentListOptions;
40
+ /** tasks/works list DueDate(month) Options */
41
+ get tMonth(): LoadDocumentListOptions;
42
+ /** tasks/works list DueDate(unscheduled) Options */
43
+ get tUnscheduled(): LoadDocumentListOptions;
23
44
  /** Notifications list Options */
24
45
  get nUnreadOptions(): LoadDocumentListOptions;
25
46
  /** Notifications list Read Options */
@@ -21,13 +21,6 @@ export class State {
21
21
  writable: true,
22
22
  value: undefined
23
23
  });
24
- /** dueDate of task */
25
- Object.defineProperty(this, "dueDate", {
26
- enumerable: true,
27
- configurable: true,
28
- writable: true,
29
- value: void 0
30
- });
31
24
  /** status All Notifications list Total */
32
25
  Object.defineProperty(this, "notificationTotals", {
33
26
  enumerable: true,
@@ -40,32 +33,108 @@ export class State {
40
33
  dismissed: 0
41
34
  }
42
35
  });
36
+ /** DueDate of the Tasks list Total */
37
+ Object.defineProperty(this, "taskTotals", {
38
+ enumerable: true,
39
+ configurable: true,
40
+ writable: true,
41
+ value: {
42
+ today: 0,
43
+ week: 0,
44
+ month: 0,
45
+ unscheduled: 0
46
+ }
47
+ });
48
+ /** DueDate of the Works list Total */
49
+ Object.defineProperty(this, "workTotals", {
50
+ enumerable: true,
51
+ configurable: true,
52
+ writable: true,
53
+ value: {
54
+ today: 0,
55
+ week: 0,
56
+ month: 0,
57
+ unscheduled: 0
58
+ }
59
+ });
43
60
  makeObservable(this);
44
61
  }
45
62
  navigate(key, rest) {
46
63
  this.menuKey = [key];
47
64
  this._layout.history.push(`${this._url}${key}${rest !== null && rest !== void 0 ? rest : ""}`);
48
65
  }
49
- get filters() {
50
- var _a, _b, _c, _d, _e, _f;
51
- if (((_a = this.dueDate) === null || _a === void 0 ? void 0 : _a[0]) === null && ((_b = this.dueDate) === null || _b === void 0 ? void 0 : _b[1]) === null)
52
- return [];
53
- const start = (_d = (_c = this.dueDate) === null || _c === void 0 ? void 0 : _c[0]) !== null && _d !== void 0 ? _d : moment({ year: 1753, month: 1, day: 1 });
54
- const end = (_f = (_e = this.dueDate) === null || _e === void 0 ? void 0 : _e[1]) !== null && _f !== void 0 ? _f : moment().endOf("year");
55
- return [
56
- {
57
- c: "DueDate",
58
- o: "between",
59
- l: "And",
60
- v1: start.startOf("days").format("YYYY-MM-DD HH:mm:ss"),
61
- v2: end.endOf("days").format("YYYY-MM-DD HH:mm:ss"),
62
- },
63
- ];
66
+ updateTaskTotal(oldStatus, status) {
67
+ this.taskTotals[oldStatus.toLowerCase()]--;
68
+ this.taskTotals[status.toLowerCase()]++;
69
+ }
70
+ updateWorkTotal(oldStatus, status) {
71
+ this.workTotals[oldStatus.toLowerCase()]--;
72
+ this.workTotals[status.toLowerCase()]++;
64
73
  }
65
74
  updateNotificationTotal(oldStatus, status) {
66
75
  this.notificationTotals[oldStatus.toLowerCase()]--;
67
76
  this.notificationTotals[status.toLowerCase()]++;
68
77
  }
78
+ /** tasks/works list DueDate(today) Options */
79
+ get tToday() {
80
+ return {
81
+ Total: true, List: false,
82
+ Filters: [
83
+ {
84
+ c: "DueDate",
85
+ o: "between",
86
+ l: "And",
87
+ v1: moment().startOf("day").format("YYYY-MM-DD HH:mm:ss"),
88
+ v2: moment().endOf("day").format("YYYY-MM-DD HH:mm:ss"),
89
+ }
90
+ ],
91
+ };
92
+ }
93
+ /** tasks/works list DueDate(week) Options */
94
+ get tWeek() {
95
+ return {
96
+ Total: true, List: false,
97
+ Filters: [
98
+ {
99
+ c: "DueDate",
100
+ o: "between",
101
+ l: "And",
102
+ v1: moment().startOf("week").format("YYYY-MM-DD HH:mm:ss"),
103
+ v2: moment().endOf("week").format("YYYY-MM-DD HH:mm:ss"),
104
+ }
105
+ ],
106
+ };
107
+ }
108
+ /** tasks/works list DueDate(month) Options */
109
+ get tMonth() {
110
+ return {
111
+ Total: true, List: false,
112
+ Filters: [
113
+ {
114
+ c: "DueDate",
115
+ o: "between",
116
+ l: "And",
117
+ v1: moment().startOf("month").format("YYYY-MM-DD HH:mm:ss"),
118
+ v2: moment().endOf("month").format("YYYY-MM-DD HH:mm:ss"),
119
+ }
120
+ ],
121
+ };
122
+ }
123
+ /** tasks/works list DueDate(unscheduled) Options */
124
+ get tUnscheduled() {
125
+ return {
126
+ Total: true, List: false,
127
+ Filters: [
128
+ {
129
+ c: "DueDate",
130
+ o: "between",
131
+ l: "And",
132
+ v1: moment().add(1, "months").startOf("month").format("YYYY-MM-DD HH:mm:ss"),
133
+ v2: moment().add(1, "months").endOf("month").format("YYYY-MM-DD HH:mm:ss"),
134
+ }
135
+ ],
136
+ };
137
+ }
69
138
  /** Notifications list Options */
70
139
  get nUnreadOptions() {
71
140
  return {
@@ -108,16 +177,37 @@ __decorate([
108
177
  ], State.prototype, "menuKey", void 0);
109
178
  __decorate([
110
179
  observable
111
- ], State.prototype, "dueDate", void 0);
180
+ ], State.prototype, "notificationTotals", void 0);
112
181
  __decorate([
113
182
  observable
114
- ], State.prototype, "notificationTotals", void 0);
183
+ ], State.prototype, "taskTotals", void 0);
184
+ __decorate([
185
+ observable
186
+ ], State.prototype, "workTotals", void 0);
115
187
  __decorate([
116
188
  action
117
189
  ], State.prototype, "navigate", null);
190
+ __decorate([
191
+ action
192
+ ], State.prototype, "updateTaskTotal", null);
193
+ __decorate([
194
+ action
195
+ ], State.prototype, "updateWorkTotal", null);
118
196
  __decorate([
119
197
  action
120
198
  ], State.prototype, "updateNotificationTotal", null);
199
+ __decorate([
200
+ computed
201
+ ], State.prototype, "tToday", null);
202
+ __decorate([
203
+ computed
204
+ ], State.prototype, "tWeek", null);
205
+ __decorate([
206
+ computed
207
+ ], State.prototype, "tMonth", null);
208
+ __decorate([
209
+ computed
210
+ ], State.prototype, "tUnscheduled", null);
121
211
  __decorate([
122
212
  computed
123
213
  ], State.prototype, "nUnreadOptions", null);
@@ -1 +1 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/pages/Space/pages/MySpace/state.ts"],"names":[],"mappings":";AACA,OAAO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iDAKT;AAGU;IAAX,UAAU;yCAKV;AAGW;IAAX,UAAU;yCAKV;AAMO;IAAP,MAAM;qCAGN;AAGD;IADC,MAAM;4CAIN;AAGD;IADC,MAAM;4CAIN;AAGD;IADC,MAAM;oDAIN;AAID;IADC,QAAQ;mCAcR;AAID;IADC,QAAQ;kCAcR;AAID;IADC,QAAQ;mCAcR;AAID;IADC,QAAQ;yCAcR;AAID;IADC,QAAQ;2CAQR;AAID;IADC,QAAQ;yCAQR;AAID;IADC,QAAQ;0CAQR;AAID;IADC,QAAQ;8CAQR"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/MentionNotificationCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAGN,eAAe,GACf,MAAM,+BAA+B,CAAC;AAEvC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,uBAAuB,GAAG,CAAC,KAMhC,EAAE,EAAE;IACJ,MAAM,YAAY,GAAG,eAAe,CAAC,KAAK,CAAC,EAAE,CAA2B,CAAC;IAEzE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,IAAI,IACJ,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,mBAAmB,C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