@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.
Files changed (151) hide show
  1. package/es/data/work/interfaces.d.ts +4 -4
  2. package/es/data/work/metas.d.ts +13 -0
  3. package/es/data/work/metas.js +34 -0
  4. package/es/data/work/metas.js.map +1 -0
  5. package/es/data/workerror/interfaces.d.ts +2 -3
  6. package/es/data/workerror/workerror-events/useOnDeleteWorkspace.js +0 -1
  7. package/es/data/workerror/workerror-events/useOnDeleteWorkspace.js.map +1 -1
  8. package/es/data/workerror/workerror-events/useOnNewWorkspace.js +0 -1
  9. package/es/data/workerror/workerror-events/useOnNewWorkspace.js.map +1 -1
  10. package/es/data/workspace/interfaces.d.ts +8 -0
  11. package/es/data/workspace/types.d.ts +1 -0
  12. package/es/data/worktype/hook.d.ts +1 -1
  13. package/es/data/worktype/hook.js +3 -3
  14. package/es/data/worktype/hook.js.map +1 -1
  15. package/es/data/worktype/interfaces.d.ts +4 -0
  16. package/es/data/worktype/types.d.ts +1 -0
  17. package/es/modules/board/components/Board/state.js +1 -1
  18. package/es/modules/board/components/Board/state.js.map +1 -1
  19. package/es/modules/meeting/components/AgendaList/AgendaItem/index.js +9 -15
  20. package/es/modules/meeting/components/AgendaList/AgendaItem/index.js.map +1 -1
  21. package/es/modules/tasks/components/SubTaskList/index.js +6 -3
  22. package/es/modules/tasks/components/SubTaskList/index.js.map +1 -1
  23. package/es/modules/tasks/components/SubTaskList/state.d.ts +2 -0
  24. package/es/modules/tasks/components/SubTaskList/state.js.map +1 -1
  25. package/es/modules/tasks/components/TaskItem/ChildTaskItem.d.ts +4 -0
  26. package/es/modules/tasks/components/TaskItem/ChildTaskItem.js +18 -0
  27. package/es/modules/tasks/components/TaskItem/ChildTaskItem.js.map +1 -0
  28. package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js +2 -0
  29. package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js.map +1 -1
  30. package/es/modules/tasks/components/TaskItem/SubTaskItem.js +2 -0
  31. package/es/modules/tasks/components/TaskItem/SubTaskItem.js.map +1 -1
  32. package/es/modules/tasks/controls/ChildTasksDataIcon/index.d.ts +9 -0
  33. package/es/modules/tasks/controls/ChildTasksDataIcon/index.js +19 -0
  34. package/es/modules/tasks/controls/ChildTasksDataIcon/index.js.map +1 -0
  35. package/es/modules/tasks/controls/ChildTasksDataIcon/index.less +29 -0
  36. package/es/modules/work/components/NewWorkErrorDialog/index.js +26 -15
  37. package/es/modules/work/components/NewWorkErrorDialog/index.js.map +1 -1
  38. package/es/modules/work/components/NewWorkErrorDialog/index.less +1 -1
  39. package/es/modules/work/components/NewWorkErrorDialog/state.d.ts +2 -0
  40. package/es/modules/work/components/NewWorkErrorDialog/state.js +1 -0
  41. package/es/modules/work/components/NewWorkErrorDialog/state.js.map +1 -1
  42. package/es/modules/work/components/WorkErrorItem/index.js +18 -8
  43. package/es/modules/work/components/WorkErrorItem/index.js.map +1 -1
  44. package/es/modules/work/components/WorkErrorItem/index.less +35 -7
  45. package/es/modules/work/components/WorkErrorList/index.js +7 -5
  46. package/es/modules/work/components/WorkErrorList/index.js.map +1 -1
  47. package/es/modules/work/components/WorkErrorProperties/index.d.ts +6 -0
  48. package/es/modules/work/components/WorkErrorProperties/index.js +57 -0
  49. package/es/modules/work/components/WorkErrorProperties/index.js.map +1 -0
  50. package/es/modules/work/components/WorkErrorProperties/index.less +8 -0
  51. package/es/modules/work/components/WorkErrorProperties/state.d.ts +5 -0
  52. package/es/modules/work/components/WorkErrorProperties/state.js +26 -0
  53. package/es/modules/work/components/WorkErrorProperties/state.js.map +1 -0
  54. package/es/modules/work/components/WorkErrorPropertiesView/index.js +18 -10
  55. package/es/modules/work/components/WorkErrorPropertiesView/index.js.map +1 -1
  56. package/es/modules/work/components/WorkErrorPropertiesView/index.less +18 -1
  57. package/es/modules/work/components/WorkItem/index.js +1 -1
  58. package/es/modules/work/components/WorkItem/index.js.map +1 -1
  59. package/es/modules/work/components/WorkList/index.d.ts +2 -0
  60. package/es/modules/work/components/WorkList/index.js +13 -2
  61. package/es/modules/work/components/WorkList/index.js.map +1 -1
  62. package/es/modules/work/components/WorkPropertiesView/index.js +1 -1
  63. package/es/modules/work/components/WorkPropertiesView/index.js.map +1 -1
  64. package/es/modules/work/components/WorkQATab/index.js +9 -7
  65. package/es/modules/work/components/WorkQATab/index.js.map +1 -1
  66. package/es/modules/work/components/WorkQATab/index.less +8 -8
  67. package/es/modules/work/components/WorkTaskList/index.js +8 -6
  68. package/es/modules/work/components/WorkTaskList/index.js.map +1 -1
  69. package/es/modules/work/components/WorkTaskList/index.less +3 -3
  70. package/es/modules/work/components/WorkTasksTab/index.js +4 -2
  71. package/es/modules/work/components/WorkTasksTab/index.js.map +1 -1
  72. package/es/modules/work/components/WorkTasksTab/index.less +2 -2
  73. package/es/modules/work/components/WorksProperties/index.js +4 -6
  74. package/es/modules/work/components/WorksProperties/index.js.map +1 -1
  75. package/es/modules/work/controls/WorkErrorMenu/index.d.ts +14 -0
  76. package/es/modules/work/controls/WorkErrorMenu/index.js +39 -0
  77. package/es/modules/work/controls/WorkErrorMenu/index.js.map +1 -0
  78. package/es/modules/{worktype/controls/ToolBar → work/controls/WorkErrorMenu}/index.less +1 -23
  79. package/es/modules/work/pages/WorkDefaultView/index.d.ts +4 -1
  80. package/es/modules/work/pages/WorkDefaultView/index.js +2 -4
  81. package/es/modules/work/pages/WorkDefaultView/index.js.map +1 -1
  82. package/es/modules/work/pages/WorkListPage/index.js +3 -2
  83. package/es/modules/work/pages/WorkListPage/index.js.map +1 -1
  84. package/es/modules/workspace/components/MyWorkspaces/index.js +12 -7
  85. package/es/modules/workspace/components/MyWorkspaces/index.js.map +1 -1
  86. package/es/modules/workspace/components/MyWorkspaces/index.less +2 -2
  87. package/es/modules/workspace/components/WorkspaceCard/index.js +9 -4
  88. package/es/modules/workspace/components/WorkspaceCard/index.js.map +1 -1
  89. package/es/modules/workspace/components/WorkspaceCard/index.less +12 -0
  90. package/es/modules/workspace/components/WorkspaceCardList/index.d.ts +1 -0
  91. package/es/modules/workspace/components/WorkspaceCardList/index.js +8 -8
  92. package/es/modules/workspace/components/WorkspaceCardList/index.js.map +1 -1
  93. package/es/modules/workspace/components/WorkspacePropertiesView/index.js +1 -1
  94. package/es/modules/workspace/components/WorkspacePropertiesView/index.js.map +1 -1
  95. package/es/modules/workspace/components/WorkspaceTabs/index.js +1 -1
  96. package/es/modules/workspace/components/WorkspaceTabs/index.js.map +1 -1
  97. package/es/modules/workspace/controls/WorkspaceMenu/index.js +38 -14
  98. package/es/modules/workspace/controls/WorkspaceMenu/index.js.map +1 -1
  99. package/es/modules/workspace/pages/WorkspaceDefaultView/index.d.ts +3 -1
  100. package/es/modules/workspace/pages/WorkspaceDefaultView/index.js +2 -4
  101. package/es/modules/workspace/pages/WorkspaceDefaultView/index.js.map +1 -1
  102. package/es/modules/workspace/pages/WorkspacePage/index.js +60 -43
  103. package/es/modules/workspace/pages/WorkspacePage/index.js.map +1 -1
  104. package/es/modules/workspace/pages/WorkspacePage/state.d.ts +12 -6
  105. package/es/modules/workspace/pages/WorkspacePage/state.js +42 -24
  106. package/es/modules/workspace/pages/WorkspacePage/state.js.map +1 -1
  107. package/es/modules/worktype/components/NewTypeForm/index.js +3 -5
  108. package/es/modules/worktype/components/NewTypeForm/index.js.map +1 -1
  109. package/es/modules/worktype/components/NewTypeForm/index.less +5 -2
  110. package/es/modules/worktype/components/RepeatTab/index.d.ts +6 -0
  111. package/es/modules/worktype/components/RepeatTab/index.js +44 -0
  112. package/es/modules/worktype/components/RepeatTab/index.js.map +1 -0
  113. package/es/modules/worktype/components/RepeatTab/index.less +30 -0
  114. package/es/modules/worktype/components/WorkTypeItem/index.js +1 -1
  115. package/es/modules/worktype/components/WorkTypeItem/index.js.map +1 -1
  116. package/es/modules/worktype/components/WorkTypeList/index.d.ts +1 -0
  117. package/es/modules/worktype/components/WorkTypeList/index.js +19 -17
  118. package/es/modules/worktype/components/WorkTypeList/index.js.map +1 -1
  119. package/es/modules/worktype/components/WorkTypeList/index.less +7 -0
  120. package/es/modules/worktype/components/WorkTypeProperties/index.js +32 -8
  121. package/es/modules/worktype/components/WorkTypeProperties/index.js.map +1 -1
  122. package/es/modules/worktype/components/WorkTypeProperties/index.less +18 -2
  123. package/es/modules/worktype/components/WorkTypeProperties/state.js +0 -1
  124. package/es/modules/worktype/components/WorkTypeProperties/state.js.map +1 -1
  125. package/es/modules/worktype/components/WorkTypePropertiesView/index.js +1 -1
  126. package/es/modules/worktype/components/WorkTypePropertiesView/index.js.map +1 -1
  127. package/es/modules/worktype/components/WorkTypeQA/index.js +31 -34
  128. package/es/modules/worktype/components/WorkTypeQA/index.js.map +1 -1
  129. package/es/modules/worktype/components/WorkTypeTabs/index.js +13 -13
  130. package/es/modules/worktype/components/WorkTypeTabs/index.js.map +1 -1
  131. package/es/modules/worktype/pages/WorkTypeDefaultView/index.js +10 -2
  132. package/es/modules/worktype/pages/WorkTypeDefaultView/index.js.map +1 -1
  133. package/es/pages/Routes.d.ts +4 -12
  134. package/es/pages/Routes.js +9 -31
  135. package/es/pages/Routes.js.map +1 -1
  136. package/es/pages/Space/components/Tasks/index.js +22 -24
  137. package/es/pages/Space/components/Tasks/index.js.map +1 -1
  138. package/es/pages/Space/pages/MySpace/index.js +7 -7
  139. package/es/pages/Space/pages/MySpace/index.js.map +1 -1
  140. package/es/pages/Space/pages/MySpace/state.d.ts +19 -6
  141. package/es/pages/Space/pages/MySpace/state.js +150 -56
  142. package/es/pages/Space/pages/MySpace/state.js.map +1 -1
  143. package/es/pages/WorkType/WorkTypeSelect/index.js +5 -1
  144. package/es/pages/WorkType/WorkTypeSelect/index.js.map +1 -1
  145. package/package.json +1 -1
  146. package/es/modules/worktype/controls/ToolBar/index.d.ts +0 -10
  147. package/es/modules/worktype/controls/ToolBar/index.js +0 -20
  148. package/es/modules/worktype/controls/ToolBar/index.js.map +0 -1
  149. package/es/modules/worktype/controls/ToolBar/state.d.ts +0 -36
  150. package/es/modules/worktype/controls/ToolBar/state.js +0 -57
  151. 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,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAmB,aAAa,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAC7E,OAAO,kBAAkB,MAAM,qCAAqC,CAAC;AACrE,OAAO,YAAY,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,mBAAmB,GAAG,GAAG,EAAE;IAChC,MAAM,KAAK,GAAG,aAAa,EAAkB,CAAC;IAC9C,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;IAE3B,MAAM,KAAK,GAAG,IAAI,YAAY,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5C,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;IAE9D,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK;QACpC,oBAAC,WAAW,IAAC,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,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U,EAAE,CAAC;IAEzB,SAAS,CAAC,GAAG,EAAE;QACd,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IAChD,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK;QACpC,oBAAC,WAAW,IAAC,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"}
@@ -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
- WorkDefaultView: {
10
- route: string;
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;
@@ -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
- WorkDefaultView: {
27
- route: "/work/:id",
28
- tabPattern: RegExp("/work/[^/]+"),
29
- getUrl: (id) => `/work/${id}`,
30
- component: WorkDefaultView,
23
+ Work: {
24
+ getUrl: DocumentRoute,
31
25
  },
32
26
  WorkTypeDefaultView: {
33
- route: "/workType/:id",
34
- tabPattern: RegExp("/workType/[^/]+"),
35
- getUrl: (id) => `/workType/${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: "/work-space",
52
- tabPattern: RegExp("/work-space"),
53
- getUrl: () => `/work-space`,
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,
@@ -1 +1 @@
1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B,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
- if (!match.params.dueDate)
53
- return [];
54
- let date = "day";
55
- let v1 = "";
56
- let v2 = "";
57
- if (match.params.dueDate !== "today")
58
- date = match.params.dueDate;
59
- if (match.params.dueDate !== "unscheduled") {
60
- v1 = moment().startOf(date).format("YYYY-MM-DD HH:mm:ss");
61
- v2 = moment().endOf(date).format("YYYY-MM-DD HH:mm:ss");
62
- }
63
- else {
64
- v1 = moment().add(1, "months").startOf("month").format("YYYY-MM-DD HH:mm:ss");
65
- v2 = moment().add(1, "months").endOf("month").format("YYYY-MM-DD HH:mm:ss");
66
- }
67
- return [
68
- {
69
- c: "DueDate",
70
- o: "between",
71
- l: "And",
72
- v1: v1,
73
- v2: v2,
74
- },
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;AAC9D,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,EAAC,WAAW,EAAC,MAAM,MAAM,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM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,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;aAC5E;YACD,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAmB,CAAC,CAAC;SACvF;QACD,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
  }, []);
@@ -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.tToday);
38
- useWorkListEffect(null, (result, total) => runInAction(() => (state.workTotals.week = total || 0)), state.tWeek);
39
- useWorkListEffect(null, (result, total) => runInAction(() => (state.workTotals.month = total || 0)), state.tMonth);
40
- useWorkListEffect(null, (result, total) => runInAction(() => (state.workTotals.unscheduled = total || 0)), state.tUnscheduled);
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: "/workspaces", icon: React.createElement(FAIcon, { icon: faLaptopHouse }) }, "My Workspaces"),
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}/workspaces/:active?` },
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,OAAO,GACP,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAExE,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,YAAY,MAAM,+CAA+C,CAAC;AACzE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAG7E,OAAO,aAAa,MAAM,gCAAgC,CAAC;AAE3D,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,OAAO,MAAM,8BAA8B,CAAC;AACnD,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAC3C,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAC3C,OAAO,UAAU,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAA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DocumentListOptions } 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
- constructor(_layout: LayoutContext, _url: string);
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/works list DueDate(today) Options */
41
+ /** tasks list DueDate(today) Options */
37
42
  get tToday(): LoadDocumentListOptions;
38
- /** tasks/works list DueDate(week) Options */
43
+ /** tasks list DueDate(week) Options */
39
44
  get tWeek(): LoadDocumentListOptions;
40
- /** tasks/works list DueDate(month) Options */
45
+ /** tasks list DueDate(month) Options */
41
46
  get tMonth(): LoadDocumentListOptions;
42
- /** tasks/works list DueDate(unscheduled) Options */
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 */