@voplus/morpho-workspace 1.3.3 → 1.3.5
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/interfaces.d.ts +4 -4
- package/es/data/work/metas.d.ts +13 -0
- package/es/data/work/metas.js +34 -0
- package/es/data/work/metas.js.map +1 -0
- package/es/data/workerror/interfaces.d.ts +2 -3
- package/es/data/workerror/workerror-events/useOnDeleteWorkspace.js +0 -1
- package/es/data/workerror/workerror-events/useOnDeleteWorkspace.js.map +1 -1
- package/es/data/workerror/workerror-events/useOnNewWorkspace.js +0 -1
- package/es/data/workerror/workerror-events/useOnNewWorkspace.js.map +1 -1
- package/es/data/workspace/interfaces.d.ts +8 -0
- package/es/data/workspace/types.d.ts +1 -0
- package/es/data/worktype/hook.d.ts +1 -1
- package/es/data/worktype/hook.js +3 -3
- package/es/data/worktype/hook.js.map +1 -1
- package/es/data/worktype/interfaces.d.ts +4 -0
- package/es/data/worktype/types.d.ts +1 -0
- package/es/modules/board/components/Board/state.js +1 -1
- package/es/modules/board/components/Board/state.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.js +9 -15
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.js.map +1 -1
- package/es/modules/tasks/components/SubTaskList/index.js +6 -3
- package/es/modules/tasks/components/SubTaskList/index.js.map +1 -1
- package/es/modules/tasks/components/SubTaskList/state.d.ts +2 -0
- package/es/modules/tasks/components/SubTaskList/state.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/ChildTaskItem.d.ts +4 -0
- package/es/modules/tasks/components/TaskItem/ChildTaskItem.js +18 -0
- package/es/modules/tasks/components/TaskItem/ChildTaskItem.js.map +1 -0
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js +2 -0
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/SubTaskItem.js +2 -0
- package/es/modules/tasks/components/TaskItem/SubTaskItem.js.map +1 -1
- package/es/modules/tasks/controls/ChildTasksDataIcon/index.d.ts +9 -0
- package/es/modules/tasks/controls/ChildTasksDataIcon/index.js +19 -0
- package/es/modules/tasks/controls/ChildTasksDataIcon/index.js.map +1 -0
- package/es/modules/tasks/controls/ChildTasksDataIcon/index.less +29 -0
- package/es/modules/work/components/NewWorkErrorDialog/index.js +26 -15
- package/es/modules/work/components/NewWorkErrorDialog/index.js.map +1 -1
- package/es/modules/work/components/NewWorkErrorDialog/index.less +1 -1
- package/es/modules/work/components/NewWorkErrorDialog/state.d.ts +2 -0
- package/es/modules/work/components/NewWorkErrorDialog/state.js +1 -0
- package/es/modules/work/components/NewWorkErrorDialog/state.js.map +1 -1
- package/es/modules/work/components/WorkErrorItem/index.js +18 -8
- package/es/modules/work/components/WorkErrorItem/index.js.map +1 -1
- package/es/modules/work/components/WorkErrorItem/index.less +35 -7
- package/es/modules/work/components/WorkErrorList/index.js +7 -5
- package/es/modules/work/components/WorkErrorList/index.js.map +1 -1
- package/es/modules/work/components/WorkErrorProperties/index.d.ts +6 -0
- package/es/modules/work/components/WorkErrorProperties/index.js +57 -0
- package/es/modules/work/components/WorkErrorProperties/index.js.map +1 -0
- package/es/modules/work/components/WorkErrorProperties/index.less +8 -0
- package/es/modules/work/components/WorkErrorProperties/state.d.ts +5 -0
- package/es/modules/work/components/WorkErrorProperties/state.js +26 -0
- package/es/modules/work/components/WorkErrorProperties/state.js.map +1 -0
- package/es/modules/work/components/WorkErrorPropertiesView/index.js +18 -10
- package/es/modules/work/components/WorkErrorPropertiesView/index.js.map +1 -1
- package/es/modules/work/components/WorkErrorPropertiesView/index.less +18 -1
- package/es/modules/work/components/WorkItem/index.js +1 -1
- package/es/modules/work/components/WorkItem/index.js.map +1 -1
- package/es/modules/work/components/WorkList/index.d.ts +2 -0
- package/es/modules/work/components/WorkList/index.js +13 -2
- package/es/modules/work/components/WorkList/index.js.map +1 -1
- package/es/modules/work/components/WorkPropertiesView/index.js +1 -1
- 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/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 +4 -6
- package/es/modules/work/components/WorksProperties/index.js.map +1 -1
- package/es/modules/work/controls/WorkErrorMenu/index.d.ts +14 -0
- package/es/modules/work/controls/WorkErrorMenu/index.js +39 -0
- package/es/modules/work/controls/WorkErrorMenu/index.js.map +1 -0
- package/es/modules/{worktype/controls/ToolBar → work/controls/WorkErrorMenu}/index.less +1 -23
- package/es/modules/work/pages/WorkDefaultView/index.d.ts +4 -1
- package/es/modules/work/pages/WorkDefaultView/index.js +2 -4
- package/es/modules/work/pages/WorkDefaultView/index.js.map +1 -1
- package/es/modules/work/pages/WorkListPage/index.js +3 -2
- package/es/modules/work/pages/WorkListPage/index.js.map +1 -1
- package/es/modules/workspace/components/MyWorkspaces/index.js +12 -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.d.ts +1 -0
- package/es/modules/workspace/components/WorkspaceCardList/index.js +8 -8
- package/es/modules/workspace/components/WorkspaceCardList/index.js.map +1 -1
- package/es/modules/workspace/components/WorkspacePropertiesView/index.js +1 -1
- package/es/modules/workspace/components/WorkspacePropertiesView/index.js.map +1 -1
- package/es/modules/workspace/components/WorkspaceTabs/index.js +1 -1
- package/es/modules/workspace/components/WorkspaceTabs/index.js.map +1 -1
- 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.d.ts +3 -1
- package/es/modules/workspace/pages/WorkspaceDefaultView/index.js +2 -4
- package/es/modules/workspace/pages/WorkspaceDefaultView/index.js.map +1 -1
- package/es/modules/workspace/pages/WorkspacePage/index.js +60 -43
- package/es/modules/workspace/pages/WorkspacePage/index.js.map +1 -1
- package/es/modules/workspace/pages/WorkspacePage/state.d.ts +12 -6
- package/es/modules/workspace/pages/WorkspacePage/state.js +42 -24
- package/es/modules/workspace/pages/WorkspacePage/state.js.map +1 -1
- package/es/modules/worktype/components/NewTypeForm/index.js +3 -5
- package/es/modules/worktype/components/NewTypeForm/index.js.map +1 -1
- package/es/modules/worktype/components/NewTypeForm/index.less +5 -2
- package/es/modules/worktype/components/RepeatTab/index.d.ts +6 -0
- package/es/modules/worktype/components/RepeatTab/index.js +44 -0
- package/es/modules/worktype/components/RepeatTab/index.js.map +1 -0
- package/es/modules/worktype/components/RepeatTab/index.less +30 -0
- package/es/modules/worktype/components/WorkTypeItem/index.js +1 -1
- package/es/modules/worktype/components/WorkTypeItem/index.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeList/index.d.ts +1 -0
- package/es/modules/worktype/components/WorkTypeList/index.js +19 -17
- package/es/modules/worktype/components/WorkTypeList/index.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeList/index.less +7 -0
- package/es/modules/worktype/components/WorkTypeProperties/index.js +32 -8
- package/es/modules/worktype/components/WorkTypeProperties/index.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeProperties/index.less +18 -2
- package/es/modules/worktype/components/WorkTypeProperties/state.js +0 -1
- package/es/modules/worktype/components/WorkTypeProperties/state.js.map +1 -1
- package/es/modules/worktype/components/WorkTypePropertiesView/index.js +1 -1
- package/es/modules/worktype/components/WorkTypePropertiesView/index.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeQA/index.js +31 -34
- package/es/modules/worktype/components/WorkTypeQA/index.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeTabs/index.js +13 -13
- package/es/modules/worktype/components/WorkTypeTabs/index.js.map +1 -1
- package/es/modules/worktype/pages/WorkTypeDefaultView/index.js +10 -2
- package/es/modules/worktype/pages/WorkTypeDefaultView/index.js.map +1 -1
- package/es/pages/Routes.d.ts +4 -12
- package/es/pages/Routes.js +9 -31
- 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 +7 -7
- package/es/pages/Space/pages/MySpace/index.js.map +1 -1
- package/es/pages/Space/pages/MySpace/state.d.ts +19 -6
- package/es/pages/Space/pages/MySpace/state.js +150 -56
- 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
- package/es/modules/worktype/controls/ToolBar/index.d.ts +0 -10
- package/es/modules/worktype/controls/ToolBar/index.js +0 -20
- package/es/modules/worktype/controls/ToolBar/index.js.map +0 -1
- package/es/modules/worktype/controls/ToolBar/state.d.ts +0 -36
- package/es/modules/worktype/controls/ToolBar/state.js +0 -57
- package/es/modules/worktype/controls/ToolBar/state.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/pages/WorkTypeDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/pages/WorkTypeDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAA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,SAAS,EAAC,wBAAwB;YAC9C,oBAAC,WAAW,CAAC,GAAG,IAAC,WAAW;gBAC3B,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI,CACb;YAClB,6BAAK,SAAS,EAAC,mBAAmB;gBACjC,oBAAC,YAAY,IAAC,OAAO,EAAE,YAAY;oBAClC,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,GAAI,CACV,CACV,CACO,CACW,CAC1B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
package/es/pages/Routes.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
import { DocumentRoute } from "@voplus/morpho-document/es/routes";
|
2
3
|
declare const Routes: {
|
3
4
|
ProjectDefaultView: {
|
4
5
|
route: string;
|
@@ -6,11 +7,8 @@ declare const Routes: {
|
|
6
7
|
getUrl: (id: string) => string;
|
7
8
|
component: () => JSX.Element;
|
8
9
|
};
|
9
|
-
|
10
|
-
|
11
|
-
tabPattern: RegExp;
|
12
|
-
getUrl: (id: string) => string;
|
13
|
-
component: () => JSX.Element;
|
10
|
+
Work: {
|
11
|
+
getUrl: typeof DocumentRoute;
|
14
12
|
};
|
15
13
|
WorkTypeDefaultView: {
|
16
14
|
route: string;
|
@@ -18,12 +16,6 @@ declare const Routes: {
|
|
18
16
|
getUrl: (id: string) => string;
|
19
17
|
component: () => JSX.Element;
|
20
18
|
};
|
21
|
-
WorkspaceDefaultView: {
|
22
|
-
route: string;
|
23
|
-
tabPattern: RegExp;
|
24
|
-
getUrl: (id: string) => string;
|
25
|
-
component: () => JSX.Element;
|
26
|
-
};
|
27
19
|
MySpace: {
|
28
20
|
route: string;
|
29
21
|
tabPattern: RegExp;
|
@@ -33,7 +25,7 @@ declare const Routes: {
|
|
33
25
|
WorkspacePage: {
|
34
26
|
route: string;
|
35
27
|
tabPattern: RegExp;
|
36
|
-
getUrl: () => string;
|
28
|
+
getUrl: (id: string) => string;
|
37
29
|
component: () => JSX.Element;
|
38
30
|
};
|
39
31
|
addRoutes: () => void;
|
package/es/pages/Routes.js
CHANGED
@@ -1,18 +1,15 @@
|
|
1
1
|
import { Route, Switch } from "react-router";
|
2
2
|
import { BaseRoutes } from "@voplus/morpho-data";
|
3
|
+
import { DocumentRoute } from "@voplus/morpho-document/es/routes";
|
3
4
|
import MySpace from "./Space/pages/MySpace";
|
4
5
|
import ProjectDefaultView from "./Project/ProjectDefaultView";
|
5
6
|
import React from "react";
|
6
|
-
import WorkDefaultView from "../modules/work/pages/WorkDefaultView";
|
7
7
|
import WorkTypeDefaultView from "../modules/worktype/pages/WorkTypeDefaultView";
|
8
|
-
import WorkspaceDefaultView from "../modules/workspace/pages/WorkspaceDefaultView";
|
9
8
|
import WorkspacePage from '../modules/workspace/pages/WorkspacePage';
|
10
9
|
const ProjectRoutes = () => {
|
11
10
|
return (React.createElement(Switch, null,
|
12
11
|
React.createElement(Route, { path: Routes.ProjectDefaultView.route, exact: true, component: Routes.ProjectDefaultView.component }),
|
13
|
-
React.createElement(Route, { path: Routes.WorkDefaultView.route, exact: true, component: Routes.WorkDefaultView.component }),
|
14
12
|
React.createElement(Route, { path: Routes.WorkTypeDefaultView.route, exact: true, component: Routes.WorkTypeDefaultView.component }),
|
15
|
-
React.createElement(Route, { path: Routes.WorkspaceDefaultView.route, exact: true, component: Routes.WorkspaceDefaultView.component }),
|
16
13
|
React.createElement(Route, { path: Routes.MySpace.route, component: Routes.MySpace.component }),
|
17
14
|
React.createElement(Route, { path: Routes.WorkspacePage.route, component: Routes.WorkspacePage.component })));
|
18
15
|
};
|
@@ -23,24 +20,15 @@ const Routes = {
|
|
23
20
|
getUrl: (id) => `/project/${id}`,
|
24
21
|
component: ProjectDefaultView,
|
25
22
|
},
|
26
|
-
|
27
|
-
|
28
|
-
tabPattern: RegExp("/work/[^/]+"),
|
29
|
-
getUrl: (id) => `/work/${id}`,
|
30
|
-
component: WorkDefaultView,
|
23
|
+
Work: {
|
24
|
+
getUrl: DocumentRoute,
|
31
25
|
},
|
32
26
|
WorkTypeDefaultView: {
|
33
|
-
route: "/
|
34
|
-
tabPattern: RegExp("/
|
35
|
-
getUrl: (id) => `/
|
27
|
+
route: "/work-types/:id",
|
28
|
+
tabPattern: RegExp("/work-types/[^/]+"),
|
29
|
+
getUrl: (id) => `/work-types/${id}`,
|
36
30
|
component: WorkTypeDefaultView,
|
37
31
|
},
|
38
|
-
WorkspaceDefaultView: {
|
39
|
-
route: "/workSpace/:id",
|
40
|
-
tabPattern: RegExp("/workSpace/[^/]+"),
|
41
|
-
getUrl: (id) => `/workSpace/${id}`,
|
42
|
-
component: WorkspaceDefaultView,
|
43
|
-
},
|
44
32
|
MySpace: {
|
45
33
|
route: "/my-space",
|
46
34
|
tabPattern: RegExp("/my-space"),
|
@@ -48,9 +36,9 @@ const Routes = {
|
|
48
36
|
component: MySpace,
|
49
37
|
},
|
50
38
|
WorkspacePage: {
|
51
|
-
route: "/
|
52
|
-
tabPattern: RegExp("/
|
53
|
-
getUrl: () => `/
|
39
|
+
route: "/workspaces/:id",
|
40
|
+
tabPattern: RegExp("/workspaces/[^/]+"),
|
41
|
+
getUrl: (id) => `/workspaces/${id}`,
|
54
42
|
component: WorkspacePage,
|
55
43
|
},
|
56
44
|
addRoutes: () => {
|
@@ -59,21 +47,11 @@ const Routes = {
|
|
59
47
|
tabBasePattern: Routes.ProjectDefaultView.tabPattern,
|
60
48
|
component: React.createElement(ProjectRoutes, null),
|
61
49
|
});
|
62
|
-
BaseRoutes.routes.push({
|
63
|
-
name: "WorkDefaultView",
|
64
|
-
tabBasePattern: Routes.WorkDefaultView.tabPattern,
|
65
|
-
component: React.createElement(ProjectRoutes, null),
|
66
|
-
});
|
67
50
|
BaseRoutes.routes.push({
|
68
51
|
name: "WorkTypeDefaultView",
|
69
52
|
tabBasePattern: Routes.WorkTypeDefaultView.tabPattern,
|
70
53
|
component: React.createElement(ProjectRoutes, null),
|
71
54
|
});
|
72
|
-
BaseRoutes.routes.push({
|
73
|
-
name: "WorkspaceDefaultView",
|
74
|
-
tabBasePattern: Routes.WorkspaceDefaultView.tabPattern,
|
75
|
-
component: React.createElement(ProjectRoutes, null),
|
76
|
-
});
|
77
55
|
BaseRoutes.routes.push({
|
78
56
|
name: "MySpace",
|
79
57
|
tabBasePattern: Routes.MySpace.tabPattern,
|
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,
|
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,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,kBAAkB,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,mBAAmB,MAAM,+CAA+C,CAAC;AAChF,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,mBAAmB,CAAC,KAAK,EACtC,KAAK,EAAE,IAAI,EACX,SAAS,EAAE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C,kBAAkB,CAAC,UAAU;YACpD,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,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,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAEhE,MAAM,QAAQ,GAAG,CAAC,KAAuB,EAAE,EAAE;IAC5C,MAAM,KAAK,GAAG,aAAa,EAAwC,CAAC;IAEpE,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,M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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
|
}, []);
|
@@ -34,10 +34,10 @@ const MySpace = () => {
|
|
34
34
|
useTaskListEffect(null, (result, total) => runInAction(() => (state.taskTotals.week = total || 0)), state.tWeek);
|
35
35
|
useTaskListEffect(null, (result, total) => runInAction(() => (state.taskTotals.month = total || 0)), state.tMonth);
|
36
36
|
useTaskListEffect(null, (result, total) => runInAction(() => (state.taskTotals.unscheduled = total || 0)), state.tUnscheduled);
|
37
|
-
useWorkListEffect(null, (result, total) => runInAction(() => (state.workTotals.today = total || 0)), state.
|
38
|
-
useWorkListEffect(null, (result, total) => runInAction(() => (state.workTotals.week = total || 0)), state.
|
39
|
-
useWorkListEffect(null, (result, total) => runInAction(() => (state.workTotals.month = total || 0)), state.
|
40
|
-
useWorkListEffect(null, (result, total) => runInAction(() => (state.workTotals.unscheduled = total || 0)), state.
|
37
|
+
useWorkListEffect(null, (result, total) => runInAction(() => (state.workTotals.today = total || 0)), state.wToday);
|
38
|
+
useWorkListEffect(null, (result, total) => runInAction(() => (state.workTotals.week = total || 0)), state.wWeek);
|
39
|
+
useWorkListEffect(null, (result, total) => runInAction(() => (state.workTotals.month = total || 0)), state.wMonth);
|
40
|
+
useWorkListEffect(null, (result, total) => runInAction(() => (state.workTotals.unscheduled = total || 0)), state.wUnscheduled);
|
41
41
|
useNotificationListEffect(null, (result, total) => runInAction(() => (state.notificationTotals.unread = total || 0)), state.nUnreadOptions);
|
42
42
|
useNotificationListEffect(null, (result, total) => runInAction(() => (state.notificationTotals.read = total || 0)), state.nReadOptions);
|
43
43
|
useNotificationListEffect(null, (result, total) => runInAction(() => (state.notificationTotals.later = total || 0)), state.nLaterOptions);
|
@@ -47,7 +47,7 @@ const MySpace = () => {
|
|
47
47
|
React.createElement(Scrollbars, { autoHide: true },
|
48
48
|
React.createElement(Menu, { mode: "inline", defaultSelectedKeys: ["/notifications/unread"], selectedKeys: state.menuKey, defaultOpenKeys: ["Notifications"], onClick: (key) => state.navigate(key.key) },
|
49
49
|
React.createElement(Menu.Item, { key: "/documents", icon: React.createElement(FAIcon, { icon: faFolders }) }, "My Documents"),
|
50
|
-
React.createElement(Menu.Item, { key: "/
|
50
|
+
React.createElement(Menu.Item, { key: "/workspace", icon: React.createElement(FAIcon, { icon: faLaptopHouse }) }, "My Workspaces"),
|
51
51
|
React.createElement(SubMenu, { key: "Notifications", icon: React.createElement(FAIcon, { icon: faBell }), title: "My Notifications" },
|
52
52
|
React.createElement(Menu.Item, { key: "/notifications/unread" },
|
53
53
|
"Unread",
|
@@ -94,7 +94,7 @@ const MySpace = () => {
|
|
94
94
|
React.createElement(Switch, null,
|
95
95
|
React.createElement(Route, { path: `${match.path}/documents` },
|
96
96
|
React.createElement(DocumentPage, null)),
|
97
|
-
React.createElement(Route, { path: `${match.path}/
|
97
|
+
React.createElement(Route, { path: `${match.path}/workspace/:active?` },
|
98
98
|
React.createElement(Workspaces, null)),
|
99
99
|
React.createElement(Route, { path: `${match.path}/task/:dueDate/:active?` },
|
100
100
|
React.createElement(Tasks, { state: state })),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/Space/pages/MySpace/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAiB,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,EAAE,IAAI,EAAY,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAmB,OAAO,EAAY,MAAM,OAAO,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EACN,aAAa,EACb,MAAM,EACN,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,OAA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ListOptions } 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,19 +29,31 @@ export declare class State {
|
|
28
29
|
month: number;
|
29
30
|
unscheduled: number;
|
30
31
|
};
|
31
|
-
|
32
|
+
private todayFilter;
|
33
|
+
private weekFilter;
|
34
|
+
private monthFilter;
|
35
|
+
private unscheduledFilter;
|
36
|
+
constructor(_layout: LayoutContext, _url: string, user: UserContext);
|
32
37
|
navigate(key: string, rest?: string): void;
|
33
38
|
updateTaskTotal(oldStatus: TaskStatus, status: TaskStatus): void;
|
34
39
|
updateWorkTotal(oldStatus: WorkStatus, status: WorkStatus): void;
|
35
40
|
updateNotificationTotal(oldStatus: NotificationStatus, status: NotificationStatus): void;
|
36
|
-
/** tasks
|
41
|
+
/** tasks list DueDate(today) Options */
|
37
42
|
get tToday(): LoadDocumentListOptions;
|
38
|
-
/** tasks
|
43
|
+
/** tasks list DueDate(week) Options */
|
39
44
|
get tWeek(): LoadDocumentListOptions;
|
40
|
-
/** tasks
|
45
|
+
/** tasks list DueDate(month) Options */
|
41
46
|
get tMonth(): LoadDocumentListOptions;
|
42
|
-
/** tasks
|
47
|
+
/** tasks list DueDate(unscheduled) Options */
|
43
48
|
get tUnscheduled(): LoadDocumentListOptions;
|
49
|
+
/** works list DueDate(today) Options */
|
50
|
+
get wToday(): LoadDocumentListOptions;
|
51
|
+
/** works list DueDate(week) Options */
|
52
|
+
get wWeek(): LoadDocumentListOptions;
|
53
|
+
/** works list DueDate(month) Options */
|
54
|
+
get wMonth(): LoadDocumentListOptions;
|
55
|
+
/** works list DueDate(unscheduled) Options */
|
56
|
+
get wUnscheduled(): LoadDocumentListOptions;
|
44
57
|
/** Notifications list Options */
|
45
58
|
get nUnreadOptions(): LoadDocumentListOptions;
|
46
59
|
/** Notifications list Read Options */
|