@voplus/morpho-workspace 1.3.2 → 1.3.4
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.
- package/es/data/work/WorkStore.d.ts +12 -0
- package/es/data/work/WorkStore.js +21 -0
- package/es/data/work/WorkStore.js.map +1 -1
- package/es/data/work/interfaces.d.ts +18 -2
- package/es/data/workspace/interfaces.d.ts +8 -0
- package/es/data/workspace/types.d.ts +1 -0
- package/es/data/worktype/WorkTypeStore.d.ts +6 -0
- package/es/data/worktype/WorkTypeStore.js +22 -0
- package/es/data/worktype/WorkTypeStore.js.map +1 -1
- package/es/data/worktype/interfaces.d.ts +4 -0
- package/es/data/worktype/types.d.ts +1 -0
- package/es/data/worktype/worktype-events/index.d.ts +3 -0
- package/es/data/worktype/worktype-events/index.js +4 -0
- package/es/data/worktype/worktype-events/index.js.map +1 -0
- package/es/data/worktype/worktype-events/useAutoUpdateListData.d.ts +4 -0
- package/es/data/worktype/worktype-events/useAutoUpdateListData.js +15 -0
- package/es/data/worktype/worktype-events/useAutoUpdateListData.js.map +1 -0
- package/es/data/worktype/worktype-events/useOnDeleteWorkType.d.ts +4 -0
- package/es/data/worktype/worktype-events/useOnDeleteWorkType.js +16 -0
- package/es/data/worktype/worktype-events/useOnDeleteWorkType.js.map +1 -0
- package/es/data/worktype/worktype-events/useOnNewWorkType.d.ts +4 -0
- package/es/data/worktype/worktype-events/useOnNewWorkType.js +17 -0
- package/es/data/worktype/worktype-events/useOnNewWorkType.js.map +1 -0
- package/es/modules/work/components/NewWorkForm/index.d.ts +10 -0
- package/es/modules/work/components/NewWorkForm/index.js +60 -0
- package/es/modules/work/components/NewWorkForm/index.js.map +1 -0
- package/es/modules/work/components/NewWorkForm/index.less +17 -0
- package/es/modules/work/components/SubWorkList/index.d.ts +4 -0
- package/es/modules/work/components/SubWorkList/index.js +42 -0
- package/es/modules/work/components/SubWorkList/index.js.map +1 -0
- package/es/modules/work/components/SubWorkList/index.less +7 -0
- package/es/modules/work/components/WorkErrorList/index.js +7 -6
- package/es/modules/work/components/WorkErrorList/index.js.map +1 -1
- package/es/modules/work/components/WorkItem/index.d.ts +1 -3
- package/es/modules/work/components/WorkItem/index.js +20 -4
- package/es/modules/work/components/WorkItem/index.js.map +1 -1
- package/es/modules/work/components/WorkItem/index.less +11 -0
- package/es/modules/work/components/WorkList/index.js +7 -5
- package/es/modules/work/components/WorkList/index.js.map +1 -1
- package/es/modules/work/components/WorkPropertiesView/index.js +8 -2
- package/es/modules/work/components/WorkPropertiesView/index.js.map +1 -1
- package/es/modules/work/components/WorkQATab/index.js +9 -7
- package/es/modules/work/components/WorkQATab/index.js.map +1 -1
- package/es/modules/work/components/WorkQATab/index.less +8 -8
- package/es/modules/work/components/WorkTabs/index.js +10 -1
- package/es/modules/work/components/WorkTabs/index.js.map +1 -1
- package/es/modules/work/components/WorkTaskList/index.js +8 -6
- package/es/modules/work/components/WorkTaskList/index.js.map +1 -1
- package/es/modules/work/components/WorkTaskList/index.less +3 -3
- package/es/modules/work/components/WorkTasksTab/index.js +4 -2
- package/es/modules/work/components/WorkTasksTab/index.js.map +1 -1
- package/es/modules/work/components/WorkTasksTab/index.less +2 -2
- package/es/modules/work/components/WorksProperties/index.js +5 -3
- package/es/modules/work/components/WorksProperties/index.js.map +1 -1
- package/es/modules/work/controls/WorkMenu/Accept.d.ts +8 -0
- package/es/modules/work/controls/WorkMenu/Accept.js +31 -0
- package/es/modules/work/controls/WorkMenu/Accept.js.map +1 -0
- package/es/modules/work/controls/WorkMenu/Reject.d.ts +8 -0
- package/es/modules/work/controls/WorkMenu/Reject.js +31 -0
- package/es/modules/work/controls/WorkMenu/Reject.js.map +1 -0
- package/es/modules/work/controls/WorkMenu/Send.d.ts +8 -0
- package/es/modules/work/controls/WorkMenu/Send.js +31 -0
- package/es/modules/work/controls/WorkMenu/Send.js.map +1 -0
- package/es/modules/work/controls/WorkMenu/index.d.ts +7 -0
- package/es/modules/work/controls/WorkMenu/index.js +27 -0
- package/es/modules/work/controls/WorkMenu/index.js.map +1 -0
- package/es/modules/work/pages/WorkDefaultView/index.less +1 -2
- package/es/modules/workspace/components/MyWorkspaces/index.js +9 -7
- package/es/modules/workspace/components/MyWorkspaces/index.js.map +1 -1
- package/es/modules/workspace/components/MyWorkspaces/index.less +2 -2
- package/es/modules/workspace/components/WorkspaceCard/index.js +9 -4
- package/es/modules/workspace/components/WorkspaceCard/index.js.map +1 -1
- package/es/modules/workspace/components/WorkspaceCard/index.less +12 -0
- package/es/modules/workspace/components/WorkspaceCardList/index.js +3 -5
- package/es/modules/workspace/components/WorkspaceCardList/index.js.map +1 -1
- package/es/modules/workspace/components/WorkspacePropertiesView/index.js +11 -5
- package/es/modules/workspace/components/WorkspacePropertiesView/index.js.map +1 -1
- package/es/modules/workspace/components/WorkspaceTabs/index.d.ts +5 -0
- package/es/modules/workspace/components/WorkspaceTabs/index.js +26 -0
- package/es/modules/workspace/components/WorkspaceTabs/index.js.map +1 -0
- package/es/modules/workspace/controls/WorkspaceMenu/index.js +38 -14
- package/es/modules/workspace/controls/WorkspaceMenu/index.js.map +1 -1
- package/es/modules/workspace/pages/WorkspaceDefaultView/index.js +1 -1
- package/es/modules/workspace/pages/WorkspaceDefaultView/index.js.map +1 -1
- package/es/modules/workspace/pages/WorkspacePage/index.js +1 -1
- package/es/modules/workspace/pages/WorkspacePage/index.js.map +1 -1
- package/es/modules/worktype/components/NewTypeForm/index.d.ts +10 -0
- package/es/modules/worktype/components/NewTypeForm/index.js +42 -0
- package/es/modules/worktype/components/NewTypeForm/index.js.map +1 -0
- package/es/modules/worktype/components/NewTypeForm/index.less +8 -0
- package/es/modules/worktype/components/NewTypeForm/state.d.ts +11 -0
- package/es/modules/worktype/components/NewTypeForm/state.js +41 -0
- package/es/modules/worktype/components/NewTypeForm/state.js.map +1 -0
- package/es/modules/worktype/components/WorkTypeCardList/index.d.ts +4 -11
- package/es/modules/worktype/components/WorkTypeCardList/index.js +3 -17
- package/es/modules/worktype/components/WorkTypeCardList/index.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeCardList/index.less +7 -9
- package/es/modules/worktype/components/WorkTypeItem/index.d.ts +1 -1
- package/es/modules/worktype/components/WorkTypeItem/index.js +14 -2
- package/es/modules/worktype/components/WorkTypeItem/index.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeItem/index.less +13 -0
- package/es/modules/worktype/components/WorkTypeList/index.d.ts +10 -0
- package/es/modules/worktype/components/WorkTypeList/index.js +46 -0
- package/es/modules/worktype/components/WorkTypeList/index.js.map +1 -0
- package/es/modules/worktype/components/WorkTypeList/index.less +7 -0
- package/es/modules/worktype/components/WorkTypeProperties/index.js +24 -3
- package/es/modules/worktype/components/WorkTypeProperties/index.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeProperties/index.less +27 -2
- package/es/modules/worktype/components/WorkTypePropertiesView/index.js +13 -8
- package/es/modules/worktype/components/WorkTypePropertiesView/index.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeQA/index.js +37 -36
- package/es/modules/worktype/components/WorkTypeQA/index.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeQA/index.less +7 -0
- package/es/modules/worktype/components/WorkTypeTabs/index.js +4 -2
- package/es/modules/worktype/components/WorkTypeTabs/index.js.map +1 -1
- package/es/modules/worktype/controls/WorkTypeMenu/index.d.ts +14 -0
- package/es/modules/worktype/controls/WorkTypeMenu/index.js +26 -0
- package/es/modules/worktype/controls/WorkTypeMenu/index.js.map +1 -0
- package/es/modules/worktype/controls/WorkTypeMenu/index.less +0 -0
- package/es/pages/Routes.js +3 -3
- package/es/pages/Routes.js.map +1 -1
- package/es/pages/Space/components/Tasks/index.js +22 -24
- package/es/pages/Space/components/Tasks/index.js.map +1 -1
- package/es/pages/Space/pages/MySpace/index.js +5 -5
- package/es/pages/Space/pages/MySpace/index.js.map +1 -1
- package/es/pages/Space/pages/MySpace/state.d.ts +3 -2
- package/es/pages/Space/pages/MySpace/state.js +19 -5
- package/es/pages/Space/pages/MySpace/state.js.map +1 -1
- package/es/pages/WorkType/WorkTypeSelect/index.js +5 -1
- package/es/pages/WorkType/WorkTypeSelect/index.js.map +1 -1
- package/package.json +1 -1
@@ -0,0 +1,26 @@
|
|
1
|
+
import "./index.less";
|
2
|
+
import { Button, Dropdown } from "@voplus/antd";
|
3
|
+
import { DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-core";
|
4
|
+
import React, { useMemo } from "react";
|
5
|
+
import { useAsideContentContext } from "@voplus/morpho-ui";
|
6
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
7
|
+
import { MoreOutlined } from "@ant-design/icons";
|
8
|
+
import { faTrashAlt } from "@fortawesome/pro-light-svg-icons";
|
9
|
+
import { useWorkTypeStore } from "../../.../../../../data/worktype";
|
10
|
+
const WorkTypeMenu = (props) => {
|
11
|
+
const context = useMemo(() => new DocumentMenuState(props.id), [props.id]);
|
12
|
+
const store = useWorkTypeStore();
|
13
|
+
const asideContext = useAsideContentContext();
|
14
|
+
return (React.createElement(Dropdown, { placement: "bottomRight", overlay: React.createElement("div", { className: "workspace-menu" },
|
15
|
+
React.createElement(DocumentMenuContext.Provider, { value: context },
|
16
|
+
React.createElement(Button, { type: "link" },
|
17
|
+
React.createElement(FAIcon, { icon: faTrashAlt, color: "#f5222d" }),
|
18
|
+
React.createElement("span", { className: "delete" }, "Delete")))) },
|
19
|
+
React.createElement(Button, { size: props.size, shape: "circle" },
|
20
|
+
React.createElement(MoreOutlined, null))));
|
21
|
+
};
|
22
|
+
WorkTypeMenu.defaultProps = {
|
23
|
+
size: "small"
|
24
|
+
};
|
25
|
+
export default WorkTypeMenu;
|
26
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/controls/WorkTypeMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAetB,OAAO,EAAE,MAAM,EAAE,Q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;IAC3B,IAAI,EAAE,OAAO;CACb,CAAA;AAED,eAAe,YAAY,CAAC"}
|
File without changes
|
package/es/pages/Routes.js
CHANGED
@@ -30,9 +30,9 @@ const Routes = {
|
|
30
30
|
component: WorkDefaultView,
|
31
31
|
},
|
32
32
|
WorkTypeDefaultView: {
|
33
|
-
route: "/
|
34
|
-
tabPattern: RegExp("/
|
35
|
-
getUrl: (id) => `/
|
33
|
+
route: "/work-types/:id",
|
34
|
+
tabPattern: RegExp("/work-types/[^/]+"),
|
35
|
+
getUrl: (id) => `/work-types/${id}`,
|
36
36
|
component: WorkTypeDefaultView,
|
37
37
|
},
|
38
38
|
WorkspaceDefaultView: {
|
package/es/pages/Routes.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Routes.js","sourceRoot":"","sources":["../../src/pages/Routes.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,kBAAkB,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,eAAe,MAAM,uCAAuC,CAAC;AACpE,OAAO,mBAAmB,MAAM,+CAA+C,CAAC;AAChF,OAAO,oBAAoB,MAAM,iDAAiD,CAAC;AACnF,OAAO,aAAa,MAAM,0CAA0C,CAAA;AAEpE,MAAM,aAAa,GAAG,GAAG,EAAE;IAC1B,OAAO,CACN,oBAAC,MAAM;QACN,oBAAC,KAAK,IACL,IAAI,EAAE,MAAM,CAAC,kBAAkB,CAAC,KAAK,EACrC,KAAK,EAAE,IAAI,EACX,SAAS,EAAE,MAAM,CAAC,kBAAkB,CAAC,SAAS,GAC7C;QACF,oBAAC,KAAK,IACL,IAAI,EAAE,MAAM,CAAC,eAAe,CAAC,KAAK,EAClC,KAAK,EAAE,IAA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ACpD,SAAS,EAAE,oBAAC,aAAa,OAAG;SAC5B,CAAC,CAAC;QACH,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,iBAAiB;YACvB,cAAc,EAAE,MAAM,CAAC,eAAe,CAAC,UAAU;YACjD,SAAS,EAAE,oBAAC,aAAa,OAAG;SAC5B,CAAC,CAAC;QACH,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,qBAAqB;YAC3B,cAAc,EAAE,MAAM,CAAC,mBAAmB,CAAC,UAAU;YACrD,SAAS,EAAE,oBAAC,aAAa,OAAG;SAC5B,CAAC,CAAC;QACH,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,sBAAsB;YAC5B,cAAc,EAAE,MAAM,CAAC,oBAAoB,CAAC,UAAU;YACtD,SAAS,EAAE,oBAAC,aAAa,OAAG;SAC5B,CAAC,CAAC;QACH,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,SAAS;YACf,cAAc,EAAE,MAAM,CAAC,OAAO,CAAC,UAAU;YACzC,SAAS,EAAE,oBAAC,aAAa,OAAG;SAC5B,CAAC,CAAC;QACH,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,eAAe;YACrB,cAAc,EAAE,MAAM,CAAC,aAAa,CAAC,UAAU;YAC/C,SAAS,EAAE,oBAAC,aAAa,OAAG;SAC5B,CAAC,CAAC;IACJ,CAAC;CACD,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import "./index.less";
|
2
|
-
import { useLayout } from "@voplus/morpho-data";
|
2
|
+
import { useApplicationContext, useLayout } from "@voplus/morpho-data";
|
3
3
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
4
4
|
import React from "react";
|
5
5
|
import { generatePath, useRouteMatch } from "react-router";
|
@@ -17,6 +17,7 @@ import { useTaskListEffect } from "../../../../data/task/hooks";
|
|
17
17
|
const TaskList = (props) => {
|
18
18
|
const match = useRouteMatch();
|
19
19
|
const layout = useLayout();
|
20
|
+
const { user } = useApplicationContext();
|
20
21
|
const documentStore = useDocumentStore();
|
21
22
|
const list = useCreateListDataState({
|
22
23
|
filterDefaults: {
|
@@ -49,30 +50,27 @@ const TaskList = (props) => {
|
|
49
50
|
} },
|
50
51
|
React.createElement(DefaultTaskItem, { id: item.id, memberAlign: "block", connectDragSource: connectDragSource })))) }))));
|
51
52
|
function filters() {
|
52
|
-
|
53
|
-
|
54
|
-
|
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
|
-
},
|
53
|
+
const filter = [
|
54
|
+
{ c: "Members", o: "contains", l: "And", v1: JSON.stringify([user.info.unit.id]) },
|
55
|
+
{ c: "Status", o: "!=", v1: "Draft", l: "And" }
|
75
56
|
];
|
57
|
+
if (match.params.dueDate) {
|
58
|
+
let date = "day";
|
59
|
+
let v1 = "";
|
60
|
+
let v2 = "";
|
61
|
+
if (match.params.dueDate !== "today")
|
62
|
+
date = match.params.dueDate;
|
63
|
+
if (match.params.dueDate !== "unscheduled") {
|
64
|
+
v1 = moment().startOf(date).format("YYYY-MM-DD HH:mm:ss");
|
65
|
+
v2 = moment().endOf(date).format("YYYY-MM-DD HH:mm:ss");
|
66
|
+
}
|
67
|
+
else {
|
68
|
+
v1 = moment().add(1, "months").startOf("month").format("YYYY-MM-DD HH:mm:ss");
|
69
|
+
v2 = moment().add(1, "months").endOf("month").format("YYYY-MM-DD HH:mm:ss");
|
70
|
+
}
|
71
|
+
filter.push({ c: "DueDate", o: "between", l: "And", v1: v1, v2: v2, });
|
72
|
+
}
|
73
|
+
return filter;
|
76
74
|
}
|
77
75
|
async function moveAfter(id, afterId) {
|
78
76
|
await documentStore.moveAfter(id, afterId);
|
@@ -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,EAAgB,SAAS,EAAE,MAAM,qBAAqB,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/Space/components/Tasks/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAgB,qBAAqB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEvF,OAAO,eAAe,MAAM,+DAA+D,CAAC;AAC5F,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AAEtF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,WAAW,MAAM,kDAAkD,CAAC;AAE3E,OAAO,kBAAkB,MAAM,yDAAyD,CAAC;AACzF,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,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ACD,OAAO,MAAwB,CAAC;IACjC,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"}
|
@@ -26,7 +26,7 @@ const MySpace = () => {
|
|
26
26
|
const match = useRouteMatch();
|
27
27
|
const tab = useTabItem();
|
28
28
|
const layout = useLayout();
|
29
|
-
const state = useMemo(() => new State(layout, match.url), []);
|
29
|
+
const state = useMemo(() => new State(layout, match.url, user), []);
|
30
30
|
useEffect(() => {
|
31
31
|
runInAction(() => (tab.title = "My Space"));
|
32
32
|
}, []);
|
@@ -84,16 +84,16 @@ const MySpace = () => {
|
|
84
84
|
React.createElement(Badge, { count: state.workTotals.today, className: "site-badge-count" })),
|
85
85
|
React.createElement(Menu.Item, { key: "/works/week" },
|
86
86
|
"This Week",
|
87
|
-
React.createElement(Badge, { count: state.workTotals.
|
87
|
+
React.createElement(Badge, { count: state.workTotals.week, className: "site-badge-count" })),
|
88
88
|
React.createElement(Menu.Item, { key: "/works/month" },
|
89
89
|
"This Month",
|
90
|
-
React.createElement(Badge, { count: state.workTotals.
|
90
|
+
React.createElement(Badge, { count: state.workTotals.month, className: "site-badge-count" })),
|
91
91
|
React.createElement(Menu.Item, { key: "/works/unscheduled" },
|
92
92
|
"Unscheduled",
|
93
|
-
React.createElement(Badge, { count: state.workTotals.
|
93
|
+
React.createElement(Badge, { count: state.workTotals.unscheduled, className: "site-badge-count" })))))),
|
94
94
|
React.createElement(Switch, null,
|
95
95
|
React.createElement(Route, { path: `${match.path}/documents` },
|
96
|
-
React.createElement(DocumentPage,
|
96
|
+
React.createElement(DocumentPage, null)),
|
97
97
|
React.createElement(Route, { path: `${match.path}/workspaces/:active?` },
|
98
98
|
React.createElement(Workspaces, null)),
|
99
99
|
React.createElement(Route, { path: `${match.path}/task/:dueDate/:active?` },
|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G,KAAK,CAAC,IAAI,0BAA0B;gBACnD,oBAAC,KAAK,IAAC,KAAK,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,4 +1,4 @@
|
|
1
|
-
import { LayoutContext } from "@voplus/morpho-data";
|
1
|
+
import { LayoutContext, UserContext } from "@voplus/morpho-data";
|
2
2
|
import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
|
3
3
|
import { NotificationStatus } from "../../../../data/notification";
|
4
4
|
import { TaskStatus } from "../../../../data/task";
|
@@ -6,6 +6,7 @@ import { WorkStatus } from "../../../../data/work";
|
|
6
6
|
export declare class State {
|
7
7
|
private _layout;
|
8
8
|
private _url;
|
9
|
+
private user;
|
9
10
|
menuKey: string[] | undefined;
|
10
11
|
/** status All Notifications list Total */
|
11
12
|
notificationTotals: {
|
@@ -28,7 +29,7 @@ export declare class State {
|
|
28
29
|
month: number;
|
29
30
|
unscheduled: number;
|
30
31
|
};
|
31
|
-
constructor(_layout: LayoutContext, _url: string);
|
32
|
+
constructor(_layout: LayoutContext, _url: string, user: UserContext);
|
32
33
|
navigate(key: string, rest?: string): void;
|
33
34
|
updateTaskTotal(oldStatus: TaskStatus, status: TaskStatus): void;
|
34
35
|
updateWorkTotal(oldStatus: WorkStatus, status: WorkStatus): void;
|
@@ -2,7 +2,7 @@ import { __decorate } from "tslib";
|
|
2
2
|
import { action, computed, makeObservable, observable } from "mobx";
|
3
3
|
import moment from "moment";
|
4
4
|
export class State {
|
5
|
-
constructor(_layout, _url) {
|
5
|
+
constructor(_layout, _url, user) {
|
6
6
|
Object.defineProperty(this, "_layout", {
|
7
7
|
enumerable: true,
|
8
8
|
configurable: true,
|
@@ -15,6 +15,12 @@ export class State {
|
|
15
15
|
writable: true,
|
16
16
|
value: _url
|
17
17
|
});
|
18
|
+
Object.defineProperty(this, "user", {
|
19
|
+
enumerable: true,
|
20
|
+
configurable: true,
|
21
|
+
writable: true,
|
22
|
+
value: user
|
23
|
+
});
|
18
24
|
Object.defineProperty(this, "menuKey", {
|
19
25
|
enumerable: true,
|
20
26
|
configurable: true,
|
@@ -86,7 +92,9 @@ export class State {
|
|
86
92
|
l: "And",
|
87
93
|
v1: moment().startOf("day").format("YYYY-MM-DD HH:mm:ss"),
|
88
94
|
v2: moment().endOf("day").format("YYYY-MM-DD HH:mm:ss"),
|
89
|
-
}
|
95
|
+
},
|
96
|
+
{ c: "Members", o: "contains", l: "And", v1: JSON.stringify([this.user.info.unit.id]) },
|
97
|
+
{ c: "Status", o: "!=", v1: "Draft", l: "And" }
|
90
98
|
],
|
91
99
|
};
|
92
100
|
}
|
@@ -101,7 +109,9 @@ export class State {
|
|
101
109
|
l: "And",
|
102
110
|
v1: moment().startOf("week").format("YYYY-MM-DD HH:mm:ss"),
|
103
111
|
v2: moment().endOf("week").format("YYYY-MM-DD HH:mm:ss"),
|
104
|
-
}
|
112
|
+
},
|
113
|
+
{ c: "Members", o: "contains", l: "And", v1: JSON.stringify([this.user.info.unit.id]) },
|
114
|
+
{ c: "Status", o: "!=", v1: "Draft", l: "And" }
|
105
115
|
],
|
106
116
|
};
|
107
117
|
}
|
@@ -116,7 +126,9 @@ export class State {
|
|
116
126
|
l: "And",
|
117
127
|
v1: moment().startOf("month").format("YYYY-MM-DD HH:mm:ss"),
|
118
128
|
v2: moment().endOf("month").format("YYYY-MM-DD HH:mm:ss"),
|
119
|
-
}
|
129
|
+
},
|
130
|
+
{ c: "Members", o: "contains", l: "And", v1: JSON.stringify([this.user.info.unit.id]) },
|
131
|
+
{ c: "Status", o: "!=", v1: "Draft", l: "And" }
|
120
132
|
],
|
121
133
|
};
|
122
134
|
}
|
@@ -131,7 +143,9 @@ export class State {
|
|
131
143
|
l: "And",
|
132
144
|
v1: moment().add(1, "months").startOf("month").format("YYYY-MM-DD HH:mm:ss"),
|
133
145
|
v2: moment().add(1, "months").endOf("month").format("YYYY-MM-DD HH:mm:ss"),
|
134
|
-
}
|
146
|
+
},
|
147
|
+
{ c: "Members", o: "contains", l: "And", v1: JSON.stringify([this.user.info.unit.id]) },
|
148
|
+
{ c: "Status", o: "!=", v1: "Draft", l: "And" }
|
135
149
|
],
|
136
150
|
};
|
137
151
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/pages/Space/pages/MySpace/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,MAAkB,MAAM,QAAQ,CAAC;AAOxC,MAAM,OAAO,KAAK;IA2BjB,YAAoB,OAAsB,EAAU,IAAY;;;;;
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/pages/Space/pages/MySpace/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,MAAkB,MAAM,QAAQ,CAAC;AAOxC,MAAM,OAAO,KAAK;IA2BjB,YAAoB,OAAsB,EAAU,IAAY,EAAU,IAAiB;;;;;mBAAvE;;;;;;mBAAgC;;;;;;mBAAsB;;QA1B9D;;;;mBAAiB,SAAmC;WAAC;QAEjE,0CAA0C;QAC9B;;;;mBAA4B;gBACvC,MAAM,EAAE,CAAC;gBACT,IAAI,EAAE,CAAC;gBACP,KAAK,EAAE,CAAC;gBACR,SAAS,EAAE,CAAC;aACZ;WAAC;QAEF,sCAAsC;QAC1B;;;;mBAAoB;gBAC/B,KAAK,EAAE,CAAC;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IAAI,EAAE,KAAK;YACxB,OAAO,EAAE;gBACR,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,WAAW,EAAE;aAClD;SACD,CAAC;IACH,CAAC;CACD;AA5KY;IAAX,UAAU;sCAAsD;AAGrD;IAAX,UAAU;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;mCAgBR;AAID;IADC,QAAQ;kCAgBR;AAID;IADC,QAAQ;mCAgBR;AAID;IADC,QAAQ;yCAgBR;AAID;IADC,QAAQ;2CAQR;AAID;IADC,QAAQ;yCAQR;AAID;IADC,QAAQ;0CAQR;AAID;IADC,QAAQ;8CAQR"}
|
@@ -5,7 +5,11 @@ import { observe } from "@voplus/morpho-ui";
|
|
5
5
|
import { useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
6
6
|
const WorkTypeSelect = (props) => {
|
7
7
|
const { onChange, style } = props;
|
8
|
-
const list = useCreateListDataState({
|
8
|
+
const list = useCreateListDataState({
|
9
|
+
filterDefaults: {
|
10
|
+
filters: [{ c: "Roles", o: "contains", l: "And", v1: "Requester" }]
|
11
|
+
},
|
12
|
+
}, []);
|
9
13
|
useWorkTypeListEffect(null, (result) => list.union(result), list.filters.options);
|
10
14
|
return observe(() => (React.createElement(Select, { style: { width: "100%", ...style }, loading: list.loading, placeholder: "Select WorkType", onChange: handleChange }, list.data.map((item) => (React.createElement(Select.Option, { key: item.id, value: item.id }, item.name))))));
|
11
15
|
function handleChange(id) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pages/WorkType/WorkTypeSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,qBAAqB,EAAE,MAA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