@voplus/morpho-workspace 6.0.2 → 6.0.4
Sign up to get free protection for your applications and to get access to all the features.
- package/es/components/TimeLog/index.js +5 -7
- package/es/components/TimeLog/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.js +3 -2
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingDescription/index.js +2 -2
- package/es/modules/meeting/components/MeetingDescription/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingHeader/index.js +6 -4
- package/es/modules/meeting/components/MeetingHeader/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingHeader/state.d.ts +6 -0
- package/es/modules/meeting/components/MeetingHeader/state.js +26 -0
- package/es/modules/meeting/components/MeetingHeader/state.js.map +1 -0
- package/es/modules/meeting/components/MeetingItem/index.js +11 -11
- package/es/modules/meeting/components/MeetingItem/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingProperties/index.js +6 -4
- package/es/modules/meeting/components/MeetingProperties/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingProperties/state.d.ts +6 -0
- package/es/modules/meeting/components/MeetingProperties/state.js +26 -0
- package/es/modules/meeting/components/MeetingProperties/state.js.map +1 -0
- package/es/modules/meeting/components/MeetingsFolderQuickViewDialog/index.js +2 -2
- package/es/modules/meeting/components/MeetingsFolderQuickViewDialog/index.js.map +1 -1
- package/es/modules/meeting/components/NewMeetingForm/index.js +6 -7
- package/es/modules/meeting/components/NewMeetingForm/index.js.map +1 -1
- package/es/modules/meeting/pages/MeetingPrintView/index.js +5 -4
- package/es/modules/meeting/pages/MeetingPrintView/index.js.map +1 -1
- package/es/modules/meeting/pages/MeetingTabView/index.js +2 -2
- package/es/modules/meeting/pages/MeetingTabView/index.js.map +1 -1
- package/es/modules/notification/components/DocumentNotificationCard/index.js +1 -1
- package/es/modules/space/components/Notes/NewNoteDialog/index.js +1 -2
- package/es/modules/space/components/Notes/NewNoteDialog/index.js.map +1 -1
- package/es/modules/space/components/Notes/TextNoteCard/index.js +9 -9
- package/es/modules/space/components/Notes/TextNoteCard/index.js.map +1 -1
- package/es/modules/space/components/Notifications/index.js +11 -9
- package/es/modules/space/components/Notifications/index.js.map +1 -1
- package/es/modules/space/pages/MySpace/state.js.map +1 -1
- package/es/modules/tasks/components/NewTaskForm/index.js +2 -2
- package/es/modules/tasks/components/NewTaskForm/index.js.map +1 -1
- package/es/modules/tasks/components/TaskEstimatedTime/index.js +2 -2
- package/es/modules/tasks/components/TaskEstimatedTime/index.js.map +1 -1
- package/es/modules/tasks/components/TaskEstimatedTime/state.js +1 -2
- package/es/modules/tasks/components/TaskEstimatedTime/state.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js +2 -2
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskTabs/index.js +2 -1
- package/es/modules/tasks/components/TaskTabs/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskTabView/index.js +12 -14
- package/es/modules/tasks/pages/TaskTabView/index.js.map +1 -1
- package/es/modules/work/components/WorkErrorItem/index.js +1 -1
- package/es/modules/work/components/WorkErrorPropertiesView/index.js +14 -13
- package/es/modules/work/components/WorkErrorPropertiesView/index.js.map +1 -1
- package/es/modules/work/components/WorkItem/index.js +2 -2
- package/es/modules/work/components/WorkItem/index.js.map +1 -1
- package/es/modules/work/controls/WorkDataIconBar/index.js +3 -3
- package/es/modules/work/controls/WorkDataIconBar/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleItem/index.js +33 -32
- package/es/modules/work/work-schedule/components/WorkScheduleItem/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleTimeLineView/index.js +2 -2
- package/es/modules/work/work-schedule/components/WorkScheduleTimeLineView/index.js.map +1 -1
- package/es/modules/work/work-type/components/RepeatTab/index.js +1 -1
- package/es/modules/work/work-type/components/WorkTypeProperties/WorkTypePropertiesCard.js +2 -3
- package/es/modules/work/work-type/components/WorkTypeProperties/WorkTypePropertiesCard.js.map +1 -1
- package/es/modules/work/work-type/components/WorkTypeStats/WorkTypeStatsCard.js +3 -2
- package/es/modules/work/work-type/components/WorkTypeStats/WorkTypeStatsCard.js.map +1 -1
- package/es/modules/work/work-type/components/WorkTypeStats/index.js +3 -2
- package/es/modules/work/work-type/components/WorkTypeStats/index.js.map +1 -1
- package/es/modules/work/work-type/controls/WorktypeCompleteWorksChart/index.js +2 -2
- package/es/modules/work/work-type/controls/WorktypeCompleteWorksChart/index.js.map +1 -1
- package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.js +2 -2
- package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.js.map +1 -1
- package/package.json +1 -1
- package/es/data/contexts/StoreContext/index.d.ts +0 -3
- package/es/data/contexts/StoreContext/index.js +0 -4
- package/es/data/contexts/StoreContext/index.js.map +0 -1
@@ -12,7 +12,7 @@ import UnitReference from "@voplus/morpho-org/es/controls/UnitReference/LoadedUn
|
|
12
12
|
import WorkScheduleMenu from "../../controls/WorkScheduleMenu";
|
13
13
|
import WorkScheduleQuickViewDialog from "../WorkScheduleQuickViewDialog";
|
14
14
|
import classnames from "classnames";
|
15
|
-
import
|
15
|
+
import dayjs from "dayjs";
|
16
16
|
import styles from "./index.less";
|
17
17
|
const WorkScheduleItem = (props) => {
|
18
18
|
const { id, avatar, quickView } = props;
|
@@ -23,37 +23,38 @@ const WorkScheduleItem = (props) => {
|
|
23
23
|
return observe(() => {
|
24
24
|
var _a, _b, _c, _d, _e, _f;
|
25
25
|
return (React.createElement("div", { className: classnames(styles["work-schedule-item"]), onClick: onQuickView, onMouseOver: () => setHover(true), onMouseLeave: () => setHover(false) },
|
26
|
-
|
27
|
-
React.createElement(
|
28
|
-
React.createElement(
|
29
|
-
|
30
|
-
React.createElement(
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
React.createElement(
|
35
|
-
|
36
|
-
React.createElement(
|
37
|
-
|
38
|
-
React.createElement(
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
React.createElement(
|
44
|
-
|
45
|
-
|
46
|
-
React.createElement(
|
47
|
-
React.createElement(
|
48
|
-
|
49
|
-
React.createElement(
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
React.createElement(
|
56
|
-
|
26
|
+
React.createElement(Skeleton, { avatar: avatar, paragraph: { rows: 1 }, loading: workSchedule.loading },
|
27
|
+
React.createElement(ColumnItem, null,
|
28
|
+
React.createElement(ColumnItemCol, { span: 10 },
|
29
|
+
React.createElement("div", { className: "work-schedule-item-name" }, `${(_a = workSchedule.workType) === null || _a === void 0 ? void 0 : _a.name}`),
|
30
|
+
React.createElement("div", { className: "text-sm text-gray-500 margin-right-15" },
|
31
|
+
React.createElement(FAIcon, { icon: faIdBadge, className: "margin-right-5" }), (_b = workSchedule.contact) === null || _b === void 0 ? void 0 :
|
32
|
+
_b.name)),
|
33
|
+
((_c = workSchedule === null || workSchedule === void 0 ? void 0 : workSchedule.work) === null || _c === void 0 ? void 0 : _c.id) ? (React.createElement(React.Fragment, null,
|
34
|
+
React.createElement(ColumnItemCol, { span: 8, title: "Work" },
|
35
|
+
React.createElement("div", { className: "work-schedule-item-data-info" }, (_d = workSchedule.work) === null || _d === void 0 ? void 0 : _d.name)),
|
36
|
+
React.createElement(ColumnItemCol, { span: 3, title: "Work Status" },
|
37
|
+
React.createElement("div", { className: "work-schedule-item-data-info" }, (_e = workSchedule.work) === null || _e === void 0 ? void 0 : _e.status)),
|
38
|
+
React.createElement(ColumnItemCol, { span: 3, align: "flex-end" },
|
39
|
+
React.createElement("div", { className: classnames("work-schedule-item-tool", { show: hover }), onClick: (e) => {
|
40
|
+
e.stopPropagation();
|
41
|
+
setHover(false);
|
42
|
+
} },
|
43
|
+
React.createElement(ToolBar, { id: id, showMenu: false },
|
44
|
+
React.createElement(Open, { size: "middle", url: meta.getRoute(workSchedule) }),
|
45
|
+
React.createElement(WorkScheduleMenu, { id: id, closeAside: true })))))) : (React.createElement(React.Fragment, null,
|
46
|
+
React.createElement(ColumnItemCol, { span: 7, title: "Owner(s)" },
|
47
|
+
React.createElement("div", { className: "work-schedule-item-data-info text-sm text-gray-500 margin-right-15" }, (_f = workSchedule.owners) === null || _f === void 0 ? void 0 : _f.map((item) => (React.createElement("span", { key: item.id, className: "data-icon" },
|
48
|
+
React.createElement(UnitReference, { unit: item })))))),
|
49
|
+
React.createElement(ColumnItemCol, { span: 7, align: "flex-end" },
|
50
|
+
React.createElement(UpDownStatusBar, { className: classnames("work-schedule-item-menus", { hide: hover }), upNode: React.createElement("div", { className: classnames("flex items-baseline text-xl font-semibold commission-amount") }, workSchedule.schedule && (React.createElement("span", null, dayjs(workSchedule === null || workSchedule === void 0 ? void 0 : workSchedule.schedule).format("YYYY-MM-DD")))), downNode: React.createElement("div", { className: "work-schedule-item-schedule" }, workSchedule.status) }),
|
51
|
+
React.createElement("div", { className: classnames("work-schedule-item-tool", { show: hover }), onClick: (e) => {
|
52
|
+
e.stopPropagation();
|
53
|
+
setHover(false);
|
54
|
+
} },
|
55
|
+
React.createElement(ToolBar, { id: id, showMenu: false },
|
56
|
+
React.createElement(Open, { size: "middle", url: meta.getRoute(workSchedule) }),
|
57
|
+
React.createElement(WorkScheduleMenu, { id: id, closeAside: true })))))))),
|
57
58
|
visibleQuickView && (React.createElement(WorkScheduleQuickViewDialog, { id: id, visible: true, onCancel: onQuickView }))));
|
58
59
|
});
|
59
60
|
/** Quick View */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAA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EAAE,QAAQ,EAAE,WAAW,GAAI,CAC7E,CACI,CACN,CAAA;KAAA,CAAC,CAAC;IAEH,iBAAiB;IACjB,SAAS,WAAW;QACnB,IAAI,CAAC,SAAS;YAAE,OAAO;QACvB,mBAAmB,CAAC,CAAC,gBAAgB,CAAC,CAAC;IACxC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
@@ -9,7 +9,7 @@ import FilterView from "@voplus/morpho-ui/es/controls/FilterView";
|
|
9
9
|
import WorkScheduleFilter from "../../controls/WorkScheduleFilter";
|
10
10
|
import WorkScheduleQuickViewDialog from "../WorkScheduleQuickViewDialog";
|
11
11
|
import classnames from "classnames";
|
12
|
-
import
|
12
|
+
import dayjs from "dayjs";
|
13
13
|
import { useAutoUpdateListData } from "../../../../../data/work-schedule/work-schedule-events";
|
14
14
|
const WorkScheduleTimeLineView = (props) => {
|
15
15
|
const { contact } = props;
|
@@ -59,7 +59,7 @@ const WorkScheduleTimeLineView = (props) => {
|
|
59
59
|
React.createElement("div", { className: "text-sm" }, event.workType.name),
|
60
60
|
React.createElement("div", { className: "font-medium text-gray-500" }, event === null || event === void 0 ? void 0 : event.status))),
|
61
61
|
React.createElement("div", { className: "whitespace-nowrap text-right text-sm text-gray-500" }, event.schedule
|
62
|
-
?
|
62
|
+
? dayjs(event.schedule).format("YYYY-MM-DD")
|
63
63
|
: "unscheduled")))))))))),
|
64
64
|
visibleQuickView.visible && visibleQuickView.id && (React.createElement(WorkScheduleQuickViewDialog, { id: visibleQuickView.id, visible: true, onCancel: onQuickView }))))))));
|
65
65
|
function filters() {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleTimeLineView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,oBAAoB,EACpB,eAAe,EACf,sBAAsB,GACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAiB,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAE3E,OAAO,UAAU,MAAM,0CAA0C,CAAC;AAClE,OAAO,kBAAkB,MAAM,mCAAmC,CAAC;AACnE,OAAO,2BAA2B,MAAM,gCAAgC,CAAC;AACzE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleTimeLineView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,oBAAoB,EACpB,eAAe,EACf,sBAAsB,GACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAiB,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAE3E,OAAO,UAAU,MAAM,0CAA0C,CAAC;AAClE,OAAO,kBAAkB,MAAM,mCAAmC,CAAC;AACnE,OAAO,2BAA2B,MAAM,gCAAgC,CAAC;AACzE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAA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,GAAG,CAAC;QAC9C,CAAC;aAAM,IAAI,MAAM,KAAK,aAAa,EAAE,CAAC;YACrC,OAAO,oBAAC,MAAM,IAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAC,MAAM,GAAG,CAAC;QAClD,CAAC;aAAM,CAAC;YACP,OAAO,oBAAC,MAAM,IAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAC,MAAM,GAAG,CAAC;QAC/C,CAAC;IACF,CAAC;IAED,iBAAiB;IACjB,SAAS,WAAW,CAAC,EAAW;QAC/B,mBAAmB,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
@@ -3,7 +3,7 @@ import { Calendar, Divider, Form, InputNumber, Radio, Select, Space } from "antd
|
|
3
3
|
import { observe, UTCDatePicker as DatePicker } from "@voplus/morpho-ui";
|
4
4
|
import "./index.less";
|
5
5
|
const RepeatTab = (props) => {
|
6
|
-
const dateFormatList = ["DD MMM
|
6
|
+
const dateFormatList = ["DD MMM YYYY"];
|
7
7
|
const [select, setSelect] = useState("Week");
|
8
8
|
return observe(() => (React.createElement("div", { className: "repeat-tab" },
|
9
9
|
React.createElement("div", { className: "repeat-tab-head" }, "Repeat Tab"),
|
@@ -7,9 +7,8 @@ import { useWorkType } from "../../../../../data/worktype";
|
|
7
7
|
const WorkTypePropertiesCard = (props) => {
|
8
8
|
const { id, workTypeProperties } = props;
|
9
9
|
const worktype = useWorkType(id);
|
10
|
-
return observe(() => {
|
11
|
-
|
12
|
-
});
|
10
|
+
return observe(() => (React.createElement(Skeleton, { active: true, loading: worktype.loading },
|
11
|
+
React.createElement(PropertiesCard, { title: "Work Type Details", cardList: workTypeProperties, cardItem: (item) => React.createElement(Properties, { id: id, propertiesName: item }) }))));
|
13
12
|
};
|
14
13
|
WorkTypePropertiesCard.defaultProps = {
|
15
14
|
workTypeProperties: [
|
package/es/modules/work/work-type/components/WorkTypeProperties/WorkTypePropertiesCard.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WorkTypePropertiesCard.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeProperties/WorkTypePropertiesCard.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAsC,MAAM,cAAc,CAAC;AAElE,OAAO,cAAc,MAAM,8CAA8C,CAAC;AAC1E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,MAAM,sBAAsB,GAAG,CAAC,KAG/B,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IACzC,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC;IAEjC,OAAO,OAAO,CAAC,GAAG,EAAE
|
1
|
+
{"version":3,"file":"WorkTypePropertiesCard.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeProperties/WorkTypePropertiesCard.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAsC,MAAM,cAAc,CAAC;AAElE,OAAO,cAAc,MAAM,8CAA8C,CAAC;AAC1E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,MAAM,sBAAsB,GAAG,CAAC,KAG/B,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IACzC,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC;IAEjC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzC,oBAAC,cAAc,IACd,KAAK,EAAC,mBAAmB,EACzB,QAAQ,EAAE,kBAAkB,EAC5B,QAAQ,EAAE,CAAC,IAA4B,EAAE,EAAE,CAAC,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,GAAI,GACvF,CACQ,CACX,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,sBAAsB,CAAC,YAAY,GAAG;IACrC,kBAAkB,EAAE;QACnB,EAAE,GAAG,EAAE,YAAY,EAAE;QACrB,EAAE,GAAG,EAAE,eAAe,EAAE;QACxB,EAAE,GAAG,EAAE,QAAQ,EAAE;QACjB,EAAE,GAAG,EAAE,gBAAgB,EAAE;QACzB,EAAE,GAAG,EAAE,eAAe,EAAE;QACxB,EAAE,GAAG,EAAE,aAAa,EAAE;QACtB,EAAE,GAAG,EAAE,WAAW,EAAE;QACpB,EAAE,GAAG,EAAE,WAAW,EAAE;QACpB,EAAE,GAAG,EAAE,eAAe,EAAE;QACxB,EAAE,GAAG,EAAE,aAAa,EAAE;KACtB;CACD,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
@@ -8,8 +8,9 @@ const WorkTypeStatsCard = (props) => {
|
|
8
8
|
return observe(() => (React.createElement("div", { className: "mt-5 overflow-hidden bg-white shadow sm:rounded-lg", style: props.style },
|
9
9
|
React.createElement("div", { className: "px-4 py-4 sm:px-6" },
|
10
10
|
React.createElement("h3", { className: "text-lg font-medium leading-6 text-gray-900" }, "Work Stats")),
|
11
|
-
React.createElement("div", { className: "border-t border-gray-200" },
|
12
|
-
React.createElement(Skeleton, { active: true }
|
11
|
+
React.createElement("div", { className: "border-t border-gray-200" },
|
12
|
+
React.createElement(Skeleton, { active: true, loading: !state.estimatedLoaded },
|
13
|
+
React.createElement(WorktypeCompleteWorksChart, { id: props.id }))))));
|
13
14
|
};
|
14
15
|
export default WorkTypeStatsCard;
|
15
16
|
//# sourceMappingURL=WorkTypeStatsCard.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WorkTypeStatsCard.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeStats/WorkTypeStatsCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,0BAA0B,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,iBAAiB,GAAG,CAAC,KAAkD,EAAE,EAAE;IAChF,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEtC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,oDAAoD,EAAC,KAAK,EAAE,KAAK,CAAC,KAAK;QACrF,6BAAK,SAAS,EAAC,mBAAmB;YACjC,4BAAI,SAAS,EAAC,6CAA6C,iBAAgB,CACtE;QACN,6BAAK,SAAS,EAAC,0BAA0B,
|
1
|
+
{"version":3,"file":"WorkTypeStatsCard.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeStats/WorkTypeStatsCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,0BAA0B,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,iBAAiB,GAAG,CAAC,KAAkD,EAAE,EAAE;IAChF,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEtC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,oDAAoD,EAAC,KAAK,EAAE,KAAK,CAAC,KAAK;QACrF,6BAAK,SAAS,EAAC,mBAAmB;YACjC,4BAAI,SAAS,EAAC,6CAA6C,iBAAgB,CACtE;QACN,6BAAK,SAAS,EAAC,0BAA0B;YACxC,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,CAAC,KAAK,CAAC,eAAe;gBAC/C,oBAAC,0BAA0B,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CAClC,CACN,CACD,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
@@ -9,8 +9,9 @@ const WorkTypeStats = (props) => {
|
|
9
9
|
return observe(() => (React.createElement("div", { className: styles["workstats"] },
|
10
10
|
React.createElement("div", { className: "workstats-head" }, "Work Stats"),
|
11
11
|
React.createElement("div", { className: "workstats-content" },
|
12
|
-
React.createElement(Row, { gutter: 24 }, props.id && (React.createElement(Col, { span: 24 },
|
13
|
-
React.createElement(Skeleton, { active: true }
|
12
|
+
React.createElement(Row, { gutter: 24 }, props.id && (React.createElement(Col, { span: 24 },
|
13
|
+
React.createElement(Skeleton, { active: true, loading: !state.estimatedLoaded },
|
14
|
+
React.createElement(WorktypeCompleteWorksChart, { id: props.id })))))))));
|
14
15
|
};
|
15
16
|
export default WorkTypeStats;
|
16
17
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeStats/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,Q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C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC;QAClC,6BAAK,SAAS,EAAC,gBAAgB,iBAAiB;QAChD,6BAAK,SAAS,EAAC,mBAAmB;YACjC,oBAAC,GAAG,IAAC,MAAM,EAAE,EAAE,IACb,KAAK,CAAC,EAAE,IAAI,CACZ,oBAAC,GAAG,IAAC,IAAI,EAAE,EAAE;gBACZ,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,CAAC,KAAK,CAAC,eAAe;oBAC/C,oBAAC,0BAA0B,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CAClC,CACN,CACN,CACI,CACD,CACD,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
@@ -5,7 +5,7 @@ import React, { useEffect, useRef, useState } from "react";
|
|
5
5
|
import { Column } from "@antv/g2plot";
|
6
6
|
import { LoadingOutlined } from "@ant-design/icons";
|
7
7
|
import { State } from "./state";
|
8
|
-
import
|
8
|
+
import dayjs from "dayjs";
|
9
9
|
import { observe } from "@voplus/morpho-ui";
|
10
10
|
const WorkTypeCompletedWorksChart = (props) => {
|
11
11
|
const { id } = props;
|
@@ -15,7 +15,7 @@ const WorkTypeCompletedWorksChart = (props) => {
|
|
15
15
|
useWorkTypeCompletedWork(id, (list) => {
|
16
16
|
const data = [];
|
17
17
|
list.map((i) => {
|
18
|
-
data.push({ date:
|
18
|
+
data.push({ date: dayjs(i.date).format("DD MMM"), total: i.total });
|
19
19
|
});
|
20
20
|
setColumnData(data);
|
21
21
|
state.loading = false;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/controls/WorktypeCompleteWorksChart/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAEN,wBAAwB,GACxB,MAAM,6DAA6D,CAAC;AACrE,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/controls/WorktypeCompleteWorksChart/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAEN,wBAAwB,GACxB,MAAM,6DAA6D,CAAC;AACrE,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,2BAA2B,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC7D,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,KAAK,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAC3C,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IACtC,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAA2B,EAAE,CAAC,CAAC;IAE3E,wBAAwB,CAAC,EAAE,EAAE,CAAC,IAAI,E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E;wBACN,KAAK,EAAE,KAAK;qBACZ;iBACD;gBACD,MAAM,EAAE,GAAG;aACX,CAAC,CAAC;YACH,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;QAC3B,CAAC;IACF,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;IAEjB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,uBAAuB;QACrC,6BAAK,GAAG,EAAE,KAAK,GAAI;QAClB,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAChB,6BAAK,SAAS,EAAC,cAAc;YAC5B,oBAAC,IAAI,IAAC,GAAG,EAAC,YAAY,EAAC,SAAS,EAAE,oBAAC,eAAe,OAAG,GAAI,CACpD,CACN,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CACxB,oBAAC,KAAK,IAAC,KAAK,EAAE,KAAK,CAAC,sBAAsB,GAAI,CAC9C,CAAC,CAAC,CAAC,IAAI,CACH,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
@@ -5,7 +5,7 @@ import React, { useEffect, useRef, useState } from "react";
|
|
5
5
|
import { Column } from "@antv/g2plot";
|
6
6
|
import { LoadingOutlined } from "@ant-design/icons";
|
7
7
|
import { State } from "./state";
|
8
|
-
import
|
8
|
+
import dayjs from "dayjs";
|
9
9
|
import { observe } from "@voplus/morpho-ui";
|
10
10
|
const WorkspaceCompletedWorksChart = (props) => {
|
11
11
|
const { id } = props;
|
@@ -15,7 +15,7 @@ const WorkspaceCompletedWorksChart = (props) => {
|
|
15
15
|
useWorkSpaceCompletedWork(id, (list) => {
|
16
16
|
const data = [];
|
17
17
|
list.map((i) => {
|
18
|
-
data.push({ date:
|
18
|
+
data.push({ date: dayjs(i.date).format("DD MMM"), total: i.total });
|
19
19
|
});
|
20
20
|
setColumnData(data);
|
21
21
|
state.loading = false;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/controls/WorkspaceCompletedWorksChart/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAEN,yBAAyB,GACzB,MAAM,4DAA4D,CAAC;AACpE,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/controls/WorkspaceCompletedWorksChart/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAEN,yBAAyB,GACzB,MAAM,4DAA4D,CAAC;AACpE,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,4BAA4B,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC9D,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,KAAK,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAC3C,MAAM,CAAC,KAAK,C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D,KAAK,EAAE;oBACN,KAAK,EAAE;wBACN,IAAI,EAAE,iBAAiB;qBACvB;iBACD;gBACD,IAAI,EAAE;oBACL,IAAI,EAAE;wBACL,KAAK,EAAE,IAAI;qBACX;oBACD,KAAK,EAAE;wBACN,KAAK,EAAE,KAAK;qBACZ;iBACD;gBACD,MAAM,EAAE,GAAG;aACX,CAAC,CAAC;YACH,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;QAC3B,CAAC;IACF,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;IAEjB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,uBAAuB;QACrC,6BAAK,GAAG,EAAE,KAAK,GAAI;QAClB,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAChB,6BAAK,SAAS,EAAC,cAAc;YAC5B,oBAAC,IAAI,IAAC,GAAG,EAAC,YAAY,EAAC,SAAS,EAAE,oBAAC,eAAe,OAAG,GAAI,CACpD,CACN,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CACxB,oBAAC,KAAK,IAAC,KAAK,EAAE,KAAK,CAAC,sBAAsB,GAAI,CAC9C,CAAC,CAAC,CAAC,IAAI,CACH,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
package/package.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/data/contexts/StoreContext/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAU,EAAE,MAAe,EAAE,EAAE,CAC1D,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAClD,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,IAAS,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC"}
|