@voplus/morpho-workspace 6.0.25 → 6.0.26
Sign up to get free protection for your applications and to get access to all the features.
- package/es/components/TeamTaskList/index.js +8 -8
- package/es/components/TeamTaskList/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingHeader/index.js +2 -3
- package/es/modules/meeting/components/MeetingHeader/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingItem/index.d.ts +1 -1
- package/es/modules/meeting/components/MeetingItem/index.js +18 -13
- package/es/modules/meeting/components/MeetingItem/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingProperties/index.js +2 -3
- package/es/modules/meeting/components/MeetingProperties/index.js.map +1 -1
- package/es/modules/meeting/pages/MeetingPrintView/index.js +1 -2
- package/es/modules/meeting/pages/MeetingPrintView/index.js.map +1 -1
- package/es/modules/space/components/Tasks/index.js +8 -8
- package/es/modules/space/components/Tasks/index.js.map +1 -1
- package/es/modules/space/pages/MySpace/taskState.js +8 -8
- package/es/modules/space/pages/MySpace/taskState.js.map +1 -1
- package/es/modules/space/pages/MySpace/workState.js +8 -8
- package/es/modules/space/pages/MySpace/workState.js.map +1 -1
- package/es/modules/tasks/components/TaskEstimatedTime/index.js +1 -2
- package/es/modules/tasks/components/TaskEstimatedTime/index.js.map +1 -1
- package/es/modules/tasks/reports/MemberEstimatedDurationCard/state.js +3 -3
- package/es/modules/tasks/reports/MemberEstimatedDurationCard/state.js.map +1 -1
- package/es/modules/work/components/WorkCashReport/index.js +1 -1
- package/es/modules/work/components/WorkCashReport/index.js.map +1 -1
- package/es/modules/work/components/WorkList/index.js +8 -8
- package/es/modules/work/components/WorkList/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleList/index.js +10 -8
- package/es/modules/work/work-schedule/components/WorkScheduleList/index.js.map +1 -1
- package/es/modules/workspace/pages/WorkspacePage/state.js +8 -8
- package/es/modules/workspace/pages/WorkspacePage/state.js.map +1 -1
- package/package.json +1 -1
@@ -14,7 +14,7 @@ import MemberTaskDueDateFilter from "../../controls/filters/MemberTaskDueDateFil
|
|
14
14
|
import TaskPropertiesView from "../../modules/tasks/components/TaskPropertiesView";
|
15
15
|
import { TaskStatusFilter } from "../../controls/filters";
|
16
16
|
import { generatePath } from "react-router";
|
17
|
-
import
|
17
|
+
import dayjs from "dayjs";
|
18
18
|
import { observe } from "@voplus/morpho-ui";
|
19
19
|
import { runInAction } from "mobx";
|
20
20
|
import { useRenderOnChange } from "@voplus/morpho-ui";
|
@@ -100,28 +100,28 @@ const TeamTaskList = (props) => {
|
|
100
100
|
c: "DueDate",
|
101
101
|
o: "between",
|
102
102
|
l: "And",
|
103
|
-
v1:
|
104
|
-
v2:
|
103
|
+
v1: dayjs().startOf("day").format("YYYY-MM-DD HH:mm:ss"),
|
104
|
+
v2: dayjs().endOf("day").format("YYYY-MM-DD HH:mm:ss"),
|
105
105
|
};
|
106
106
|
const weekFilter = {
|
107
107
|
c: "DueDate",
|
108
108
|
o: "between",
|
109
109
|
l: "And",
|
110
|
-
v1:
|
111
|
-
v2:
|
110
|
+
v1: dayjs().startOf("week").format("YYYY-MM-DD HH:mm:ss"),
|
111
|
+
v2: dayjs().endOf("week").format("YYYY-MM-DD HH:mm:ss"),
|
112
112
|
};
|
113
113
|
const monthFilter = {
|
114
114
|
c: "DueDate",
|
115
115
|
o: "between",
|
116
116
|
l: "And",
|
117
|
-
v1:
|
118
|
-
v2:
|
117
|
+
v1: dayjs().startOf("month").format("YYYY-MM-DD HH:mm:ss"),
|
118
|
+
v2: dayjs().endOf("month").format("YYYY-MM-DD HH:mm:ss"),
|
119
119
|
};
|
120
120
|
const dueFilter = {
|
121
121
|
c: "DueDate",
|
122
122
|
o: "<",
|
123
123
|
l: "And",
|
124
|
-
v1:
|
124
|
+
v1: dayjs().format("YYYY-MM-DD HH:mm:ss"),
|
125
125
|
};
|
126
126
|
const unscheduledFilter = [
|
127
127
|
{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/TeamTaskList/index.tsx"],"names":[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5C,CAAC;IACD,SAAS,QAAQ,CAAC,OAAY;QAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
@@ -8,13 +8,12 @@ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
8
8
|
import { InlineEdit, observe } from "@voplus/morpho-ui";
|
9
9
|
import { useApplicationContext } from "@voplus/morpho-data";
|
10
10
|
import { useMetaStore } from "@voplus/morpho-document-core";
|
11
|
+
import { State } from "./state";
|
11
12
|
import MeetingTasksProgressDataIcon from "../../controls/MeetingTasksProgressDataIcon";
|
12
13
|
import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
|
13
14
|
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
14
15
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
15
|
-
import moment from "moment";
|
16
16
|
import dayjs from "dayjs";
|
17
|
-
import { State } from "./state";
|
18
17
|
import "./index.less";
|
19
18
|
const MeetingHeader = (props) => {
|
20
19
|
const { id, onReLoad, onExpand } = props;
|
@@ -52,7 +51,7 @@ const MeetingHeader = (props) => {
|
|
52
51
|
: "Add Meeting Time")),
|
53
52
|
meeting.startTime && (React.createElement("span", { className: "data-icon" },
|
54
53
|
React.createElement(FAIcon, { icon: faStopwatch }),
|
55
|
-
|
54
|
+
dayjs(meeting.startTime).from(dayjs(meeting.endTime), true))))),
|
56
55
|
React.createElement(Row, { justify: "start", align: "middle" },
|
57
56
|
React.createElement("div", { className: "meeting-clock" },
|
58
57
|
React.createElement(InlineEdit, { editable: !meeting.readonly, defaultValue: meeting.venue || "", content: (v) => (React.createElement(React.Fragment, null,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EACN,OAAO,EACP,IAAI,EACJ,KAAK,EACL,MAAM,EACN,OAAO,GACP,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AACnG,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAChD,OAAO,EACN,OAAO,EACP,cAAc,EACd,WAAW,EACX,aAAa,GACb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,4BAA4B,MAAM,6CAA6C,CAAC;AACvF,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EACN,OAAO,EACP,IAAI,EACJ,KAAK,EACL,MAAM,EACN,OAAO,GACP,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AACnG,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAChD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KAAK,UAAU,MAAM,CAAC,CAAS,EAAE,IAAY,EAAE,MAA+B;QAC7E,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,IAAI;YAAE,OAAO;QAC9B,MAAM,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IACzE,CAAC;IACD,wBAAwB;IACxB,KAAK,UAAU,IAAI;QAClB,MAAM,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE;YACnC,IAAI,EAAE;gBACL,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC,SAAS,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,yBAAyB,CAAC;gBACjF,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,yBAAyB,CAAC;aAC7E;YACD,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;QACH,OAAO,CAAC,KAAK,CAAC,CAAC;QACf,WAAW,CAAC,KAAK,CAAC,CAAC;IACpB,CAAC;IACD,SAAS,YAAY,CAAC,KAAU,EAAE,UAAoB;QACrD,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QAC3B,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC;IACD,SAAS,UAAU;QAClB,OAAO,CAAC,IAAI,CAAC,CAAC;QACd,WAAW,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC;IACD,SAAS,YAAY,CAAC,IAAa;QAClC,WAAW,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC;AACF,CAAC,CAAC;AACF,eAAe,aAAa,CAAC"}
|
@@ -1,24 +1,29 @@
|
|
1
|
-
import "
|
1
|
+
import React, { useState } from "react";
|
2
2
|
import { Archive, Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
3
3
|
import { CommentDataIcon, DocumentDataIcon } from "@voplus/morpho-document/es/controls/data-icons";
|
4
|
-
import React, { useState } from "react";
|
5
4
|
import { faClock, faMapMarkerAlt, faStopwatch } from "@fortawesome/pro-light-svg-icons";
|
5
|
+
import { observe } from "@voplus/morpho-ui";
|
6
|
+
import { runInAction } from "mobx";
|
7
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
8
|
+
import { useMeeting } from "../../../../data/meeting";
|
9
|
+
import { useMetaStore } from "@voplus/morpho-document-core";
|
10
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
11
|
+
import { State } from "./state";
|
12
|
+
import { Tooltip } from "antd";
|
13
|
+
import classnames from "classnames";
|
6
14
|
import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
|
7
15
|
import DataIconBar from "@voplus/morpho-document/es/controls/DataIconBar";
|
8
16
|
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
9
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
10
17
|
import MeetingTasksProgressDataIcon from "../../controls/MeetingTasksProgressDataIcon";
|
11
|
-
import { State } from "./state";
|
12
18
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
13
|
-
import
|
14
|
-
import classnames from "classnames";
|
15
|
-
import moment from "moment";
|
19
|
+
import relativeTime from "dayjs/plugin/relativeTime";
|
16
20
|
import dayjs from "dayjs";
|
17
|
-
import
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
21
|
+
import "./index.less";
|
22
|
+
/**
|
23
|
+
* 直接用 dayjs 替代 moment.js 并不能直接使用 end.from(start, true) 方法
|
24
|
+
* 可以使用 dayjs 的 relativeTime 插件来实现相似的功能。
|
25
|
+
* */
|
26
|
+
dayjs.extend(relativeTime);
|
22
27
|
const MeetingItem = (props) => {
|
23
28
|
const { id, isList, reload } = props;
|
24
29
|
const meta = useMetaStore();
|
@@ -45,7 +50,7 @@ const MeetingItem = (props) => {
|
|
45
50
|
dayjs(meeting.endTime).format("hh:mm A")))),
|
46
51
|
React.createElement("span", { className: "data-icon" },
|
47
52
|
React.createElement(FAIcon, { icon: faStopwatch }),
|
48
|
-
|
53
|
+
dayjs(meeting.startTime).from(dayjs(meeting.endTime), true)))),
|
49
54
|
(meeting.venue || !!meeting.taskNumbers) && (React.createElement("div", null,
|
50
55
|
meeting.venue && (React.createElement("span", { className: "data-icon" },
|
51
56
|
React.createElement(FAIcon, { icon: faMapMarkerAlt }),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AACnG,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACxF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B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9D,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAI;wBACnD,oBAAC,OAAO,IAAC,IAAI,EAAC,QAAQ,GAAG,CAChB,CACL,CACN,CACe,GAEjB,CACF,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,WAAW,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import React, { useState } from "react";
|
2
|
+
import { State } from "./state";
|
2
3
|
import { DatePicker, Form, Tooltip } from "antd";
|
3
4
|
import { InlineEdit, observe, PropertiesSection } from "@voplus/morpho-ui";
|
4
5
|
import { faClock, faMapMarkerAlt, faStopwatch } from "@fortawesome/pro-light-svg-icons";
|
@@ -11,8 +12,6 @@ import MeetingTasksProgressDataIcon from "../../controls/MeetingTasksProgressDat
|
|
11
12
|
import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
|
12
13
|
import DocumentPanelHeader from "@voplus/morpho-document/es/components/DocumentPanelHeader";
|
13
14
|
import classnames from "classnames";
|
14
|
-
import { State } from "./state";
|
15
|
-
import moment from "moment";
|
16
15
|
import dayjs from "dayjs";
|
17
16
|
const MeetingProperties = (props) => {
|
18
17
|
/** 加class name 为了方便做integration tests */
|
@@ -54,7 +53,7 @@ const MeetingProperties = (props) => {
|
|
54
53
|
dayjs(meeting.endTime).format(!isAfterNow ? "DD MMM HH:mm" : "hh:mm nA"))) : (React.createElement("span", { className: "add-info-style" }, "Add Meeting Time")))),
|
55
54
|
meeting.startTime && (React.createElement("span", { className: classnames("data-icon", "properties-value") },
|
56
55
|
React.createElement(FAIcon, { icon: faStopwatch }),
|
57
|
-
|
56
|
+
dayjs(meeting.startTime).from(dayjs(meeting.endTime), true)))))));
|
58
57
|
case "Enter Place":
|
59
58
|
return (React.createElement(Form.Item, { label: "Enter Place", className: classId + "-enterPlace" },
|
60
59
|
React.createElement(InlineEdit, { editable: !meeting.readonly, defaultValue: meeting.venue || "", content: (v) => (React.createElement(React.Fragment, null,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACxF,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,kBAEN,MAAM,0DAA0D,CAAC;AAClE,OAAO,4BAA4B,MAAM,6CAA6C,CAAC;AACvF,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,mBAAmB,MAAM,2DAA2D,CAAC;AAC5F,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3E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K,CAAC,OAAO,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,yBAAyB,CAAC;aAC7E;YACD,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;QACH,OAAO,CAAC,KAAK,CAAC,CAAC;QACf,WAAW,CAAC,KAAK,CAAC,CAAC;IACpB,CAAC;IACD,SAAS,YAAY,CAAC,KAAU,EAAE,UAAoB;QACrD,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QAC3B,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC;IACD,SAAS,UAAU;QAClB,OAAO,CAAC,IAAI,CAAC,CAAC;QACd,WAAW,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC;IACD,SAAS,YAAY,CAAC,IAAa;QAClC,WAAW,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC;AACF,CAAC,CAAC;AAEF,iBAAiB,CAAC,YAAY,GAAG;IAChC,YAAY,EAAE,oBAAoB;IAClC,aAAa,EAAE,qBAAqB;IACpC,iBAAiB,EAAE;QAClB,EAAE,IAAI,EAAE,UAAU,EAAE;QACpB,EAAE,IAAI,EAAE,SAAS,EAAE;QACnB,EAAE,IAAI,EAAE,UAAU,EAAE;QACpB,EAAE,IAAI,EAAE,aAAa,EAAE;KACvB;CACD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
@@ -8,7 +8,6 @@ import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
|
|
8
8
|
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
9
9
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
10
10
|
import Scrollbars from "react-custom-scrollbars-2";
|
11
|
-
import moment from "moment";
|
12
11
|
import dayjs from "dayjs";
|
13
12
|
import { observe } from "@voplus/morpho-ui";
|
14
13
|
import { useMeeting } from "../../../../data/meeting";
|
@@ -34,7 +33,7 @@ const MeetingTabView = () => {
|
|
34
33
|
dayjs(meeting.endTime).format("MM-DD hh:mm A")),
|
35
34
|
React.createElement("span", { className: "duration" },
|
36
35
|
React.createElement(FAIcon, { icon: faStopwatch }),
|
37
|
-
|
36
|
+
dayjs(meeting.startTime).from(dayjs(meeting.endTime), true)))),
|
38
37
|
React.createElement(Row, { justify: "start", align: "middle" },
|
39
38
|
meeting.venue && (React.createElement("div", { className: "print-clock" },
|
40
39
|
React.createElement(FAIcon, { icon: faMapMarkerAlt }),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/pages/MeetingPrintView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EACN,OAAO,EACP,cAAc,EACd,WAAW,EACX,aAAa,GACb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEvE,OAAO,UAAU,MAAM,6BAA6B,CAAC;AACrD,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/pages/MeetingPrintView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EACN,OAAO,EACP,cAAc,EACd,WAAW,EACX,aAAa,GACb,MAAM,kCAAkC,CAAC;AAC1C,OAA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AAE,GAAI,CACxB,CACR,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,cAAc,CAAC"}
|
@@ -11,7 +11,7 @@ import NewTaskForm from "../../../../modules/tasks/components/NewTaskForm";
|
|
11
11
|
import TaskPropertiesView from "../../../../modules/tasks/components/TaskPropertiesView";
|
12
12
|
import { TaskStatusFilter } from "../../../../controls/filters";
|
13
13
|
import { generatePath } from "react-router";
|
14
|
-
import
|
14
|
+
import dayjs from "dayjs";
|
15
15
|
import { observe } from "@voplus/morpho-ui";
|
16
16
|
import { runInAction } from "mobx";
|
17
17
|
import { useParams } from "react-router-dom";
|
@@ -80,28 +80,28 @@ const TaskList = (props) => {
|
|
80
80
|
c: "DueDate",
|
81
81
|
o: "between",
|
82
82
|
l: "And",
|
83
|
-
v1:
|
84
|
-
v2:
|
83
|
+
v1: dayjs().startOf("day").format("YYYY-MM-DD HH:mm:ss"),
|
84
|
+
v2: dayjs().endOf("day").format("YYYY-MM-DD HH:mm:ss"),
|
85
85
|
};
|
86
86
|
const weekFilter = {
|
87
87
|
c: "DueDate",
|
88
88
|
o: "between",
|
89
89
|
l: "And",
|
90
|
-
v1:
|
91
|
-
v2:
|
90
|
+
v1: dayjs().startOf("week").format("YYYY-MM-DD HH:mm:ss"),
|
91
|
+
v2: dayjs().endOf("week").format("YYYY-MM-DD HH:mm:ss"),
|
92
92
|
};
|
93
93
|
const monthFilter = {
|
94
94
|
c: "DueDate",
|
95
95
|
o: "between",
|
96
96
|
l: "And",
|
97
|
-
v1:
|
98
|
-
v2:
|
97
|
+
v1: dayjs().startOf("month").format("YYYY-MM-DD HH:mm:ss"),
|
98
|
+
v2: dayjs().endOf("month").format("YYYY-MM-DD HH:mm:ss"),
|
99
99
|
};
|
100
100
|
const dueFilter = {
|
101
101
|
c: "DueDate",
|
102
102
|
o: "<",
|
103
103
|
l: "And",
|
104
|
-
v1:
|
104
|
+
v1: dayjs().format("YYYY-MM-DD HH:mm:ss"),
|
105
105
|
};
|
106
106
|
const unscheduledFilter = [
|
107
107
|
{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/space/components/Tasks/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAgB,qBAAqB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,EAAS,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EACN,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,eAAe,MAAM,+DAA+D,CAAC;AAC5F,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,WAAW,MAAM,kDAAkD,CAAC;AAE3E,OAAO,kBAAkB,MAAM,yDAAyD,CAAC;AACzF,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/space/components/Tasks/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAgB,qBAAqB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,EAAS,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EACN,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,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AAQ,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
2
|
import { action, computed, makeObservable, observable } from "mobx";
|
3
|
-
import
|
3
|
+
import dayjs from "dayjs";
|
4
4
|
export class TaskState {
|
5
5
|
constructor(_state, user) {
|
6
6
|
Object.defineProperty(this, "_state", {
|
@@ -159,8 +159,8 @@ export class TaskState {
|
|
159
159
|
c: "DueDate",
|
160
160
|
o: "between",
|
161
161
|
l: "And",
|
162
|
-
v1:
|
163
|
-
v2:
|
162
|
+
v1: dayjs().startOf("day").format("YYYY-MM-DD HH:mm:ss"),
|
163
|
+
v2: dayjs().endOf("day").format("YYYY-MM-DD HH:mm:ss"),
|
164
164
|
},
|
165
165
|
{ c: "Status", o: "!=", l: "And", v1: "Draft" },
|
166
166
|
{
|
@@ -188,8 +188,8 @@ export class TaskState {
|
|
188
188
|
c: "DueDate",
|
189
189
|
o: "between",
|
190
190
|
l: "And",
|
191
|
-
v1:
|
192
|
-
v2:
|
191
|
+
v1: dayjs().startOf("week").format("YYYY-MM-DD HH:mm:ss"),
|
192
|
+
v2: dayjs().endOf("week").format("YYYY-MM-DD HH:mm:ss"),
|
193
193
|
},
|
194
194
|
{ c: "Status", o: "!=", l: "And", v1: "Draft" },
|
195
195
|
{
|
@@ -217,8 +217,8 @@ export class TaskState {
|
|
217
217
|
c: "DueDate",
|
218
218
|
o: "between",
|
219
219
|
l: "And",
|
220
|
-
v1:
|
221
|
-
v2:
|
220
|
+
v1: dayjs().startOf("month").format("YYYY-MM-DD HH:mm:ss"),
|
221
|
+
v2: dayjs().endOf("month").format("YYYY-MM-DD HH:mm:ss"),
|
222
222
|
},
|
223
223
|
{ c: "Status", o: "!=", l: "And", v1: "Draft" },
|
224
224
|
{
|
@@ -268,7 +268,7 @@ export class TaskState {
|
|
268
268
|
c: "DueDate",
|
269
269
|
o: "<",
|
270
270
|
l: "And",
|
271
|
-
v1:
|
271
|
+
v1: dayjs().format("YYYY-MM-DD HH:mm:ss"),
|
272
272
|
},
|
273
273
|
{ c: "Status", o: "!=", l: "And", v1: "Draft" },
|
274
274
|
{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"taskState.js","sourceRoot":"","sources":["../../../../../src/modules/space/pages/MySpace/taskState.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"taskState.js","sourceRoot":"","sources":["../../../../../src/modules/space/pages/MySpace/taskState.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAKpE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,OAAO,SAAS;IAgBrB,YAAoB,MAAa,EAAU,IAAiB;QAAhD;;;;mBAAQ,MAAM;WAAO;QAAE;;;;mBAAQ,IAAI;WAAa;QAfzC;;;;mBAAS,KAAK;WAAC;QACf;;;;mBAAS,KAAK;WAAC;QACf;;;;mBAAgB,EAAE;WAAC;QACnB;;;;mBAAiE,IAAI;WAAC;QACtE;;;;mBAAc,EAAE;WAAC;QACjB;;;;mBAA+D,IAAI;WAAC;QACpE;;;;mBAAa,EAAE;WAAC;QAChB;;;;mBAA8D,IAAI;WAAC;QACnE;;;;mBAAc,EAAE;WAAC;QACjB;;;;mBAA+D,IAAI;WAAC;QACpE;;;;mBAAoB,EAAE;WAAC;QACvB;;;;mBAAqE,IAAI;WAAC;QAC1E;;;;mBAAY,EAAE;WAAC;QACf;;;;mBAA6D,IAAI;WAAC;QAGpF,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAEc,YAAY;QAC1B,cAAc;QACd,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,QAAQ,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;YACtC,IAAI,C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;AAID;IADC,QAAQ;yCAeR;AAID;IADC,QAAQ;uCA4BR;AAID;IADC,QAAQ;sCA4BR;AAID;IADC,QAAQ;uCA4BR;AAID;IADC,QAAQ;6CAqBR;AAID;IADC,QAAQ;qCA2BR"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
2
|
import { action, computed, makeObservable, observable } from "mobx";
|
3
|
-
import
|
3
|
+
import dayjs from "dayjs";
|
4
4
|
export class WorkState {
|
5
5
|
constructor(_state, user) {
|
6
6
|
Object.defineProperty(this, "_state", {
|
@@ -142,8 +142,8 @@ export class WorkState {
|
|
142
142
|
c: "DueDate",
|
143
143
|
o: "between",
|
144
144
|
l: "And",
|
145
|
-
v1:
|
146
|
-
v2:
|
145
|
+
v1: dayjs().startOf("day").format("YYYY-MM-DD HH:mm:ss"),
|
146
|
+
v2: dayjs().endOf("day").format("YYYY-MM-DD HH:mm:ss"),
|
147
147
|
},
|
148
148
|
{ c: "WorkStatus", l: "And", o: "=", v1: "Active" },
|
149
149
|
{ c: "Roles", o: "contains", l: "And", v1: JSON.stringify(["Owner"]) },
|
@@ -160,8 +160,8 @@ export class WorkState {
|
|
160
160
|
c: "DueDate",
|
161
161
|
o: "between",
|
162
162
|
l: "And",
|
163
|
-
v1:
|
164
|
-
v2:
|
163
|
+
v1: dayjs().startOf("week").format("YYYY-MM-DD HH:mm:ss"),
|
164
|
+
v2: dayjs().endOf("week").format("YYYY-MM-DD HH:mm:ss"),
|
165
165
|
},
|
166
166
|
{ c: "WorkStatus", l: "And", o: "=", v1: "Active" },
|
167
167
|
{ c: "Roles", o: "contains", l: "And", v1: JSON.stringify(["Owner"]) },
|
@@ -178,8 +178,8 @@ export class WorkState {
|
|
178
178
|
c: "DueDate",
|
179
179
|
o: "between",
|
180
180
|
l: "And",
|
181
|
-
v1:
|
182
|
-
v2:
|
181
|
+
v1: dayjs().startOf("month").format("YYYY-MM-DD HH:mm:ss"),
|
182
|
+
v2: dayjs().endOf("month").format("YYYY-MM-DD HH:mm:ss"),
|
183
183
|
},
|
184
184
|
{ c: "WorkStatus", l: "And", o: "=", v1: "Active" },
|
185
185
|
{ c: "Roles", o: "contains", l: "And", v1: JSON.stringify(["Owner"]) },
|
@@ -196,7 +196,7 @@ export class WorkState {
|
|
196
196
|
c: "DueDate",
|
197
197
|
o: "<",
|
198
198
|
l: "And",
|
199
|
-
v1:
|
199
|
+
v1: dayjs().format("YYYY-MM-DD HH:mm:ss"),
|
200
200
|
},
|
201
201
|
{ c: "WorkStatus", l: "And", o: "=", v1: "Active" },
|
202
202
|
{ c: "Roles", o: "contains", l: "And", v1: JSON.stringify(["Owner"]) },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"workState.js","sourceRoot":"","sources":["../../../../../src/modules/space/pages/MySpace/workState.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"workState.js","sourceRoot":"","sources":["../../../../../src/modules/space/pages/MySpace/workState.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAKpE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,OAAO,SAAS;IAcrB,YAAoB,MAAa,EAAU,IAAiB;QAAhD;;;;mBAAQ,MAAM;WAAO;QAAE;;;;mBAAQ,IAAI;WAAa;QAbzC;;;;mBAAS,KAAK;WAAC;QACf;;;;mBAAS,KAAK;WAAC;QACf;;;;mBAAkB,EAAE;WAAC;QACrB;;;;mBAAmE,IAAI;WAAC;QACxE;;;;mBAAc,EAAE;WAAC;QACjB;;;;mBAA+D,IAAI;WAAC;QACpE;;;;mBAAa,EAAE;WAAC;QAChB;;;;mBAA8D,IAAI;WAAC;QACnE;;;;mBAAc,EAAE;WAAC;QACjB;;;;mBAA+D,IAAI;WAAC;Q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AAO,CAAC,CAAC,EAAE;aACtE;SACD,CAAC;IACH,CAAC;IAED,sCAAsC;IAEtC,IAAW,IAAI;QACd,OAAO;YACN,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,KAAK;YACX,OAAO,EAAE;gBACR;oBACC,CAAC,EAAE,SAAS;oBACZ,CAAC,EAAE,GAAG;oBACN,CAAC,EAAE,KAAK;oBACR,EAAE,EAAE,KAAK,EAAE,CAAC,MAAM,CAAC,qBAAqB,CAAC;iBACzC;gBACD,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,QAAQ,EAAE;gBACnD,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE;aACtE;SACD,CAAC;IACH,CAAC;CACD;AA7ImB;IAAlB,UAAU;yCAAuB;AACf;IAAlB,UAAU;yCAAuB;AACf;IAAlB,UAAU;kDAA6B;AACrB;IAAlB,UAAU;kDAAgF;AACxE;IAAlB,UAAU;8CAAyB;AACjB;IAAlB,UAAU;8CAA4E;AACpE;IAAlB,UAAU;6CAAwB;AAChB;IAAlB,UAAU;6CAA2E;AACnE;IAAlB,UAAU;8CAAyB;AACjB;IAAlB,UAAU;8CAA4E;AACpE;IAAlB,UAAU;4CAAuB;AACf;IAAlB,UAAU;4CAA0E;AAMtE;IAAd,MAAM;6CA0BN;AAID;IADC,QAAQ;2CAeR;AAID;IADC,QAAQ;uCAiBR;AAID;IADC,QAAQ;sCAiBR;AAID;IADC,QAAQ;uCAiBR;AAID;IADC,QAAQ;qCAgBR"}
|
@@ -5,7 +5,6 @@ import { State } from "./state";
|
|
5
5
|
import { faHourglassEnd, faHourglassStart, faStopwatch } from "@fortawesome/pro-light-svg-icons";
|
6
6
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
7
7
|
import dayjs from "dayjs";
|
8
|
-
import moment from "moment";
|
9
8
|
import { observe } from "@voplus/morpho-ui";
|
10
9
|
import { runInAction } from "mobx";
|
11
10
|
import { useTaskStore } from "@voplus/morpho-document-core";
|
@@ -60,7 +59,7 @@ const TaskEstimatedTime = (props) => {
|
|
60
59
|
state.startDate && dayjs(state.startDate).format(state.dateFormat),
|
61
60
|
state.startDate && state.dueDate && "~",
|
62
61
|
state.dueDate && dayjs(state.dueDate).format(state.dateFormat),
|
63
|
-
period && state.startDate && state.dueDate && (React.createElement("span", { className: "margin-left-5" },
|
62
|
+
period && state.startDate && state.dueDate && (React.createElement("span", { className: "margin-left-5" }, dayjs(state.startDate).from(dayjs(state.dueDate), true))))) : editable ? (React.createElement("span", { className: "add-info-style" },
|
64
63
|
React.createElement(FAIcon, { icon: faStopwatch, className: "margin-right-5" }),
|
65
64
|
"Add Task Time")) : null))));
|
66
65
|
function onVisibleChange(visible) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskEstimatedTime/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,KAAK,EAA0B,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEjG,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskEstimatedTime/index.tsx"],"names":[],"m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K,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC;YAC9D,MAAM,IAAI,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,OAAO,IAAI,CAC9C,8BAAM,SAAS,EAAC,eAAe,IAC7B,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,CAClD,CACP,CACe,CACjB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CACd,8BAAM,SAAS,EAAC,gBAAgB;YAC/B,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,EAAE,SAAS,EAAC,gBAAgB,GAAG;4BAElD,CACP,CAAC,CAAC,CAAC,IAAI,CACF,CACE,CACV,CAAC,CAAC;IACH,SAAS,eAAe,CAAC,OAAgB;QACxC,WAAW,CAAC,GAAG,EAAE;YAChB,KAAK,CAAC,OAAO,GAAG,OAAO,IAAI,CAAC,CAAC,QAAQ,CAAC;YACtC,KAAK,CAAC,cAAc,GAAG,KAAK,CAAC,iBAAiB,CAAC;QAChD,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AACF,iBAAiB,CAAC,YAAY,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;AAClF,eAAe,iBAAiB,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
2
|
import { action, makeObservable, observable, toJS } from "mobx";
|
3
|
-
import
|
3
|
+
import dayjs from "dayjs";
|
4
4
|
export class State {
|
5
5
|
constructor() {
|
6
6
|
Object.defineProperty(this, "estimatedTime", {
|
@@ -95,8 +95,8 @@ export class State {
|
|
95
95
|
c: "DueDate",
|
96
96
|
o: "between",
|
97
97
|
l: "And",
|
98
|
-
v1:
|
99
|
-
v2:
|
98
|
+
v1: dayjs(dueDate[0]).format("YYYY-MM-DD"),
|
99
|
+
v2: dayjs(dueDate[1]).format("YYYY-MM-DD"),
|
100
100
|
},
|
101
101
|
];
|
102
102
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/reports/MemberEstimatedDurationCard/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/reports/MemberEstimatedDurationCard/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAGhE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,OAAO,KAAK;IASjB;QARmB;;;;mBAAwC,EAAE;WAAC;QAC3C;;;;mBAAO,CAAC;WAAC;QACT;;;;mBAAW,EAAE;WAAC;QACd;;;;mBAAU,IAAI;WAAC;QACf;;;;mBAAiB,EAAE;WAAC;QACpB;;;;mBAAuB,EAAE;WAAC;QAC1B;;;;mBAAY,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;WAAC;QAGjG,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAED,WAAW;IAEJ,QAAQ;QACd,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;IAC3B,CAAC;IAED,YAAY;IAEL,KAAK;QACX,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;QACd,+BAA+B;IAChC,CAAC;IAED,gBAAgB;I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C,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC;iBAC1C;aACD,CAAC;IACJ,CAAC;IAED,kBAAkB;IAEX,OAAO,CAAC,IAAY;QAC1B,IAAI,GAAG,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YAC7B,GAAG,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACvB,CAAC,CAAC,CAAC;QACH,OAAO,GAAG,CAAC;IACZ,CAAC;CACD;AAlFmB;IAAlB,UAAU;4CAAmD;AAC3C;IAAlB,UAAU;mCAAiB;AACT;IAAlB,UAAU;uCAAsB;AACd;IAAlB,UAAU;sCAAuB;AACf;IAAlB,UAAU;sCAA4B;AACpB;IAAlB,UAAU;mCAAkC;AAC1B;IAAlB,UAAU;wCAAuF;AAQ3F;IADN,MAAM;qCAIN;AAIM;IADN,MAAM;kCAMN;AAIM;IADN,MAAM;mCAIN;AAIM;IADN,MAAM;qCAmCN;AAIM;IADN,MAAM;oCAON"}
|
@@ -43,7 +43,7 @@ const WorkCashReport = (props) => {
|
|
43
43
|
onFilter((state.filterV1Val = ((_a = c === null || c === void 0 ? void 0 : c.options) === null || _a === void 0 ? void 0 : _a.Filters)
|
44
44
|
? JSON.parse((_b = c === null || c === void 0 ? void 0 : c.options) === null || _b === void 0 ? void 0 : _b.Filters[0].v1)
|
45
45
|
: []));
|
46
|
-
}, onReset: () => onFilter([]) })))),
|
46
|
+
}, onReset: () => onFilter(["Active"]) })))),
|
47
47
|
React.createElement("div", { className: "work-report-content" },
|
48
48
|
React.createElement(Skeleton, { loading: state.loading, active: true },
|
49
49
|
React.createElement(WorkCashReportTemplate, { data: state.dataList }))))));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkCashReport/index.tsx"],"names":[],"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AQ,CAAC,CAAC,GAClC,CACG,CACD,CACyB;gBAEhC,6BAAK,SAAS,EAAC,qBAAqB;oBACnC,oBAAC,QAAQ,IAAC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,MAAM;wBACvC,oBAAC,sBAAsB,IAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,GAAI,CACtC,CACN,CACD,CACoB,CAC3B,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
@@ -10,7 +10,7 @@ import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemF
|
|
10
10
|
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
11
11
|
import NewWorkForm from "../NewWorkForm";
|
12
12
|
import WorkItem from "../WorkItem";
|
13
|
-
import
|
13
|
+
import dayjs from "dayjs";
|
14
14
|
import S from "string";
|
15
15
|
import "./index.less";
|
16
16
|
const WorkList = (props) => {
|
@@ -80,7 +80,7 @@ const WorkList = (props) => {
|
|
80
80
|
c: "DueDate",
|
81
81
|
o: "<",
|
82
82
|
l: "And",
|
83
|
-
v1:
|
83
|
+
v1: dayjs().format("YYYY-MM-DD HH:mm:ss"),
|
84
84
|
};
|
85
85
|
const requestedFilter = [
|
86
86
|
{
|
@@ -146,14 +146,14 @@ const WorkList = (props) => {
|
|
146
146
|
let v2 = "";
|
147
147
|
if (dueDate !== "today")
|
148
148
|
date = dueDate;
|
149
|
-
v1 =
|
150
|
-
v2 =
|
149
|
+
v1 = dayjs().startOf(date).format("YYYY-MM-DD HH:mm:ss");
|
150
|
+
v2 = dayjs().endOf(date).format("YYYY-MM-DD HH:mm:ss");
|
151
151
|
// if (dueDate === "unscheduled") {
|
152
|
-
// v1 =
|
153
|
-
// v2 =
|
152
|
+
// v1 = dayjs().add(1, "months").startOf("month").format("YYYY-MM-DD HH:mm:ss");
|
153
|
+
// v2 = dayjs().add(1, "months").endOf("month").format("YYYY-MM-DD HH:mm:ss");
|
154
154
|
// } else {
|
155
|
-
// v1 =
|
156
|
-
// v2 =
|
155
|
+
// v1 = dayjs().startOf(date).format("YYYY-MM-DD HH:mm:ss");
|
156
|
+
// v2 = dayjs().endOf(date).format("YYYY-MM-DD HH:mm:ss");
|
157
157
|
// }
|
158
158
|
filter.push({
|
159
159
|
c: "DueDate",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAS,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAa,WAAW,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAC1F,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACvF,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAS,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAa,WAAW,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC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AC;QAED,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;IAED,SAAS,YAAY;QACpB,QAAQ,OAAO,EAAE,CAAC;YACjB,KAAK,OAAO,CAAC;YACb,KAAK,MAAM,CAAC;YACZ,KAAK,OAAO,CAAC;YACb,KAAK,KAAK;gBACT,OAAO,CAAC,QAAQ,CAAC,CAAC;YACnB,KAAK,WAAW;gBACf,OAAO,CAAC,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;YACnC;gBACC,MAAM;QACR,CAAC;QACD,IAAI,SAAS;YAAE,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QACxC,IAAI,OAAO;YAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC/B,OAAO,EAAE,CAAC;IACX,CAAC;IAED,SAAS,QAAQ,CAAC,OAAY;QAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;AACF,CAAC,CAAC;AAEF,QAAQ,CAAC,YAAY,GAAG;IACvB,SAAS,EAAE,IAAI;IACf,aAAa,EAAE,IAAI;CACnB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
@@ -12,8 +12,10 @@ import WorkSchedulePropertiesView from "../WorkSchedulePropertiesView";
|
|
12
12
|
import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
|
13
13
|
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
14
14
|
import WorkScheduleItem from "../WorkScheduleItem";
|
15
|
-
import
|
15
|
+
import quarterOfYear from "dayjs/plugin/quarterOfYear";
|
16
|
+
import dayjs from "dayjs";
|
16
17
|
import styles from "./index.less";
|
18
|
+
dayjs.extend(quarterOfYear);
|
17
19
|
const WorkScheduleList = (props) => {
|
18
20
|
const { contact, viewTitle, asideable, scheduleDate } = props;
|
19
21
|
const [activeId, setActiveId] = useState("");
|
@@ -73,28 +75,28 @@ const WorkScheduleList = (props) => {
|
|
73
75
|
c: "ScheduleDate",
|
74
76
|
o: "<",
|
75
77
|
l: "And",
|
76
|
-
v1:
|
78
|
+
v1: dayjs().format("YYYY-MM-DD HH:mm:ss"),
|
77
79
|
};
|
78
80
|
const weekFilter = {
|
79
81
|
c: "ScheduleDate",
|
80
82
|
o: "between",
|
81
83
|
l: "And",
|
82
|
-
v1:
|
83
|
-
v2:
|
84
|
+
v1: dayjs().startOf("week").format("YYYY-MM-DD HH:mm:ss"),
|
85
|
+
v2: dayjs().endOf("week").format("YYYY-MM-DD HH:mm:ss"),
|
84
86
|
};
|
85
87
|
const monthFilter = {
|
86
88
|
c: "ScheduleDate",
|
87
89
|
o: "between",
|
88
90
|
l: "And",
|
89
|
-
v1:
|
90
|
-
v2:
|
91
|
+
v1: dayjs().startOf("month").format("YYYY-MM-DD HH:mm:ss"),
|
92
|
+
v2: dayjs().endOf("month").format("YYYY-MM-DD HH:mm:ss"),
|
91
93
|
};
|
92
94
|
const quarterFilter = {
|
93
95
|
c: "ScheduleDate",
|
94
96
|
o: "between",
|
95
97
|
l: "And",
|
96
|
-
v1:
|
97
|
-
v2:
|
98
|
+
v1: dayjs().startOf("quarter").format("YYYY-MM-DD HH:mm:ss"),
|
99
|
+
v2: dayjs().endOf("quarter").format("YYYY-MM-DD HH:mm:ss"),
|
98
100
|
};
|
99
101
|
if (contact) {
|
100
102
|
filter.push({ c: "Contact", o: "=", l: "And", v1: contact.id });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleList/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,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAiB,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAC/F,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAC1F,OAAO,kBAAkB,MAAM,mCAAmC,CAAC;AACnE,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,yBAAyB,MAAM,kDAAkD,CAAC;AACzF,OAAO,0BAA0B,MAAM,+BAA+B,CAAC;AACvE,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,MAAM,MAAM,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleList/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,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAiB,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAC/F,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAC1F,OAAO,kBAAkB,MAAM,mCAAmC,CAAC;AACnE,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,yBAAyB,MAAM,kDAAkD,CAAC;AACzF,OAAO,0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AAa;gBACjB,MAAM,GAAG,CAAC,iBAAiB,EAAE,GAAG,MAAM,CAAC,CAAC;gBACxC,MAAM;YACP,KAAK,KAAK;gBACT,MAAM,GAAG,CAAC,SAAS,EAAE,GAAG,MAAM,CAAC,CAAC;gBAChC,MAAM;YACP,KAAK,MAAM;gBACV,MAAM,GAAG,CAAC,UAAU,EAAE,GAAG,MAAM,CAAC,CAAC;gBACjC,MAAM;YACP,KAAK,OAAO;gBACX,MAAM,GAAG,CAAC,WAAW,EAAE,GAAG,MAAM,CAAC,CAAC;gBAClC,MAAM;YACP,KAAK,SAAS;gBACb,MAAM,GAAG,CAAC,aAAa,EAAE,GAAG,MAAM,CAAC,CAAC;gBACpC,MAAM;YACP;gBACC,OAAO,MAAM,CAAC;QAChB,CAAC;QAED,OAAO,MAAM,CAAC;IACf,CAAC;IAED,SAAS,QAAQ,CAAC,OAAY;QAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;AACF,CAAC,CAAC;AAEF,gBAAgB,CAAC,YAAY,GAAG;IAC/B,SAAS,EAAE,GAAG;CACd,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
2
|
import { action, computed, makeObservable, observable } from "mobx";
|
3
|
-
import
|
3
|
+
import dayjs from "dayjs";
|
4
4
|
export class State {
|
5
5
|
constructor(_id, _layout, _url) {
|
6
6
|
Object.defineProperty(this, "_id", {
|
@@ -159,8 +159,8 @@ export class State {
|
|
159
159
|
c: "DueDate",
|
160
160
|
o: "between",
|
161
161
|
l: "And",
|
162
|
-
v1:
|
163
|
-
v2:
|
162
|
+
v1: dayjs().startOf("day").format("YYYY-MM-DD HH:mm:ss"),
|
163
|
+
v2: dayjs().endOf("day").format("YYYY-MM-DD HH:mm:ss"),
|
164
164
|
},
|
165
165
|
{ c: "WorkStatus", l: "And", o: "=", v1: "Active" },
|
166
166
|
// { c: "Roles", o: "contains", l: "And", v1: JSON.stringify(["Owner"]) },
|
@@ -178,8 +178,8 @@ export class State {
|
|
178
178
|
c: "DueDate",
|
179
179
|
o: "between",
|
180
180
|
l: "And",
|
181
|
-
v1:
|
182
|
-
v2:
|
181
|
+
v1: dayjs().startOf("week").format("YYYY-MM-DD HH:mm:ss"),
|
182
|
+
v2: dayjs().endOf("week").format("YYYY-MM-DD HH:mm:ss"),
|
183
183
|
},
|
184
184
|
{ c: "WorkStatus", l: "And", o: "=", v1: "Active" },
|
185
185
|
// { c: "Roles", o: "contains", l: "And", v1: JSON.stringify(["Owner"]) },
|
@@ -197,8 +197,8 @@ export class State {
|
|
197
197
|
c: "DueDate",
|
198
198
|
o: "between",
|
199
199
|
l: "And",
|
200
|
-
v1:
|
201
|
-
v2:
|
200
|
+
v1: dayjs().startOf("month").format("YYYY-MM-DD HH:mm:ss"),
|
201
|
+
v2: dayjs().endOf("month").format("YYYY-MM-DD HH:mm:ss"),
|
202
202
|
},
|
203
203
|
{ c: "WorkStatus", l: "And", o: "=", v1: "Active" },
|
204
204
|
// { c: "Roles", o: "contains", l: "And", v1: JSON.stringify(["Owner"]) },
|
@@ -216,7 +216,7 @@ export class State {
|
|
216
216
|
c: "DueDate",
|
217
217
|
o: "<",
|
218
218
|
l: "And",
|
219
|
-
v1:
|
219
|
+
v1: dayjs().format("YYYY-MM-DD HH:mm:ss"),
|
220
220
|
},
|
221
221
|
{ c: "WorkStatus", l: "And", o: "=", v1: "Active" },
|
222
222
|
// { c: "Roles", o: "contains", l: "And", v1: JSON.stringify(["Owner"]) },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/pages/WorkspacePage/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"state.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