@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/work/components/WorkList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAqB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,E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AAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;gBAC1D,EAAE,GAAG,MAAM,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;aACxD;iBAAM;gBACN,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;gBAC9E,EAAE,GAAG,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;gBACX,CAAC,EAAE,SAAS;gBACZ,CAAC,EAAE,SAAS;gBACZ,CAAC,EAAE,KAAK;gBACR,EAAE,EAAE,EAAE;gBACN,EAAE,EAAE,EAAE;aACU,CAAC,CAAA;SAClB;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 WorkPropertiesView = (props) => {
|
|
26
26
|
}
|
27
27
|
} },
|
28
28
|
React.createElement(Reload, { action: onReload }),
|
29
|
-
React.createElement(Open, { url:
|
29
|
+
React.createElement(Open, { url: meta.getRoute(work) }))), descriptionVisible: false }),
|
30
30
|
React.createElement(DescriptionEditor, { id: id, description: work.description, readonly: work.readonly }),
|
31
31
|
React.createElement(WorkTabs, { id: id, propertie: true }))))));
|
32
32
|
/** reload data */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components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AAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACZ,SAAS,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC,EAAE,GAAG,CAAC,CAAC;IACZ,CAAC;AACL,CAAC,CAAC;AACF,eAAe,kBAAkB,CAAC"}
|
@@ -3,6 +3,7 @@ import React, { useState } from "react";
|
|
3
3
|
import { observe, useAsideContentContext } from "@voplus/morpho-ui";
|
4
4
|
import NewWorkErrorDialog from "../NewWorkErrorDialog";
|
5
5
|
import { PlusOutlined } from "@ant-design/icons";
|
6
|
+
import { Scrollbars } from "react-custom-scrollbars";
|
6
7
|
import TaskPropertiesView from "../../../tasks/components/TaskPropertiesView";
|
7
8
|
import WorkErrorList from "../WorkErrorList";
|
8
9
|
import WorkErrorPropertiesView from "../WorkErrorPropertiesView";
|
@@ -12,13 +13,14 @@ const WorkQATab = (props) => {
|
|
12
13
|
const [visible, setVisible] = useState(false);
|
13
14
|
const asideContext = useAsideContentContext();
|
14
15
|
return observe(() => React.createElement("div", { className: "work-qa-tab" },
|
15
|
-
React.createElement(
|
16
|
-
React.createElement(
|
17
|
-
|
18
|
-
React.createElement("
|
19
|
-
"
|
20
|
-
|
21
|
-
|
16
|
+
React.createElement(Scrollbars, { autoHide: true },
|
17
|
+
React.createElement("div", { className: "work-audit-tasks" },
|
18
|
+
React.createElement(WorkTaskList, { parentId: id, Title: "Audit Tasks", onClickItem: onClickWorkTaskItem })),
|
19
|
+
React.createElement("div", { className: "work-errors" },
|
20
|
+
React.createElement("h3", null,
|
21
|
+
"Errors ",
|
22
|
+
React.createElement(PlusOutlined, { onClick: () => setVisible(true) })),
|
23
|
+
React.createElement(WorkErrorList, { id: id, onClickItem: onClickItem }))),
|
22
24
|
visible &&
|
23
25
|
React.createElement(NewWorkErrorDialog, { WorkId: id, onCancel: () => setVisible(false), onSubmitSave: () => setVisible(false) })));
|
24
26
|
/** work error onclick item */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkQATab/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEpE,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,kBAAkB,MAAM,8CAA8C,CAAC;AAC9E,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,uBAAuB,MAAM,4BAA4B,CAAC;AACjE,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAE3C,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE;IACxC,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,YAAY,GAAG,sBAAsB,EAAE,CAAC;IAE9C,OAAO,OAAO,CAAC,GAAG,EAAE,CAChB,6BAAK,SAAS,EAAC,aAAa;QACxB,6BAAK,SAAS,EAAC,kBAAkB;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkQATab/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEpE,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,kBAAkB,MAAM,8CAA8C,CAAC;AAC9E,OAAO,aAAa,MAAM,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Z,YAAY,uBAAZ,YAAY,CAAE,SAAS,CACnB,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI,EAC9B,EAAE,IAAI,EAAE,EAAE,EAAE,CACf,CAAC;IACN,CAAC;AACL,CAAC,CAAA;AAED,eAAe,SAAS,CAAC"}
|
@@ -1,14 +1,14 @@
|
|
1
1
|
:global {
|
2
2
|
.work-qa-tab {
|
3
3
|
height: 100%;
|
4
|
-
display: flex;
|
5
|
-
flex-direction: column;
|
6
|
-
.work-audit-tasks,
|
7
|
-
.work-errors {
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
}
|
4
|
+
// display: flex;
|
5
|
+
// flex-direction: column;
|
6
|
+
// .work-audit-tasks,
|
7
|
+
// .work-errors {
|
8
|
+
// flex: 1;
|
9
|
+
// display: flex;
|
10
|
+
// flex-direction: column;
|
11
|
+
// }
|
12
12
|
h3 {
|
13
13
|
padding: 10px 20px;
|
14
14
|
display: flex;
|
@@ -8,7 +8,7 @@ import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
8
8
|
import { useAutoUpdateListData, useDocumentStore, } from "@voplus/morpho-document-core";
|
9
9
|
import DefaultTaskItem from "../../../tasks/components/TaskItem/DefaultTaskItem";
|
10
10
|
import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
|
11
|
-
import
|
11
|
+
import { Empty } from "@voplus/antd";
|
12
12
|
import NewTaskForm from "../../../tasks/components/NewTaskForm";
|
13
13
|
import { PlusOutlined } from "@ant-design/icons";
|
14
14
|
import classnames from "classnames";
|
@@ -19,7 +19,8 @@ const WorkTaskList = (props) => {
|
|
19
19
|
const list = useCreateListDataState({
|
20
20
|
filterDefaults: {
|
21
21
|
includes: "tags",
|
22
|
-
filters: filters()
|
22
|
+
filters: filters(),
|
23
|
+
page: { Page: 1, PageSize: 200 }
|
23
24
|
},
|
24
25
|
}, []);
|
25
26
|
/** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
|
@@ -38,14 +39,15 @@ const WorkTaskList = (props) => {
|
|
38
39
|
React.createElement("h3", { className: "work-task-header" },
|
39
40
|
props.Title,
|
40
41
|
React.createElement(PlusOutlined, { onClick: () => state.addAble = !state.addAble })),
|
41
|
-
|
42
|
-
|
43
|
-
}, moveAfter: moveAfter, renderItem: ({ item, connectDragSource, multiple }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
|
42
|
+
list.data.length ?
|
43
|
+
list.data.map((item) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
|
44
44
|
hoverEffect: "background",
|
45
45
|
hoverBackgroundProps: { color: "#f2f2f2" },
|
46
46
|
style: { border: "none", flex: "1" },
|
47
47
|
}, onClick: () => { var _a; return (_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item.id); } },
|
48
|
-
React.createElement(DefaultTaskItem, { id: item.id
|
48
|
+
React.createElement(DefaultTaskItem, { id: item.id }))))
|
49
|
+
:
|
50
|
+
React.createElement(Empty, null),
|
49
51
|
state.addAble && (React.createElement(NewTaskForm, { simple: true, parentId: props.parentId, block: true, onSave: () => {
|
50
52
|
state.clearAdd();
|
51
53
|
}, onCancel: () => state.clearAdd() }))))));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkTaskList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAgB,qBAAqB,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAAS,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;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AK,EAAE,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE;SACrF,CAAC;IACN,CAAC;IAED,KAAK,UAAU,SAAS,CAAC,EAAU,EAAE,OAAe;QAChD,MAAM,SAAS,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3C,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
@@ -1,14 +1,16 @@
|
|
1
1
|
import "./index.less";
|
2
2
|
import { observe, useAsideContentContext } from "@voplus/morpho-ui";
|
3
3
|
import React from "react";
|
4
|
+
import { Scrollbars } from "react-custom-scrollbars";
|
4
5
|
import TaskPropertiesView from "../../../tasks/components/TaskPropertiesView";
|
5
6
|
import WorkTaskList from "../WorkTaskList";
|
6
7
|
const WorkTasksTab = (props) => {
|
7
8
|
const { id } = props;
|
8
9
|
const asideContext = useAsideContentContext();
|
9
10
|
return observe(() => React.createElement("div", { className: "work-tasks-tab" },
|
10
|
-
React.createElement(
|
11
|
-
|
11
|
+
React.createElement(Scrollbars, { autoHide: true },
|
12
|
+
React.createElement(WorkTaskList, { parentId: id, Title: "My Tasks", roles: true, onClickItem: onClickItem }),
|
13
|
+
React.createElement(WorkTaskList, { parentId: id, Title: "All Tasks", onClickItem: onClickItem }))));
|
12
14
|
function onClickItem(id) {
|
13
15
|
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(TaskPropertiesView, { id: id }), { span: 12 });
|
14
16
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkTasksTab/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEpE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,kBAAkB,MAA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C,EAAU;QAC3B,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,CACnB,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI,EAC9B,EAAE,IAAI,EAAE,EAAE,EAAE,CACf,CAAC;IACN,CAAC;AACL,CAAC,CAAA;AAED,eAAe,YAAY,CAAC"}
|
@@ -4,25 +4,23 @@ import { Form } from "@voplus/antd";
|
|
4
4
|
import React from "react";
|
5
5
|
import moment from "moment";
|
6
6
|
import { observe } from "@voplus/morpho-ui";
|
7
|
-
import { useApplicationContext } from "@voplus/morpho-data";
|
8
7
|
import { useWork } from "../../../../data/work";
|
9
8
|
const WorksProperties = (props) => {
|
10
9
|
const work = useWork(props.id);
|
11
|
-
const { user } = useApplicationContext();
|
12
10
|
const noData = (React.createElement("span", { className: "no-data" }, "no data"));
|
13
11
|
return observe(() => {
|
14
12
|
var _a, _b;
|
15
13
|
return (React.createElement("div", { className: "work-roperties" },
|
16
14
|
React.createElement("h2", null, (_a = work.workType) === null || _a === void 0 ? void 0 : _a.name),
|
17
15
|
React.createElement(Form, { labelAlign: "left", labelCol: { span: 8 }, scrollToFirstError: true },
|
18
|
-
React.createElement(Form.Item, { label: "No" }, work.
|
16
|
+
React.createElement(Form.Item, { label: "No" }, work.number || noData),
|
19
17
|
React.createElement(Form.Item, { label: "Type" }, work.type || noData),
|
20
|
-
React.createElement(Form.Item, { label: "Status" }, work.
|
18
|
+
React.createElement(Form.Item, { label: "Status" }, work.workStatus || noData),
|
21
19
|
React.createElement(Form.Item, { label: "Contact" }),
|
22
|
-
React.createElement(Form.Item, { label: "Folder" }, ((_b = work.
|
20
|
+
React.createElement(Form.Item, { label: "Folder" }, ((_b = work.document) === null || _b === void 0 ? void 0 : _b.name) || noData),
|
23
21
|
React.createElement(Form.Item, { label: "Due" }, work.due ? moment(work.due).format("DD MMM yyyy") : noData),
|
24
22
|
React.createElement(Form.Item, { label: "Owner" },
|
25
|
-
React.createElement(AvatarList, { editable: false })))));
|
23
|
+
React.createElement(AvatarList, { list: work.owners || [], editable: false })))));
|
26
24
|
});
|
27
25
|
};
|
28
26
|
export default WorksProperties;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorksProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorksProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,MAAM,eAAe,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC9C,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAE/B,MAAM,MAAM,GAAG,CAAC,8BAAM,SAAS,EAAC,SAAS,cAAe,CAAC,CAAC;IAE1D,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACjB,6BAAK,SAAS,EAAC,gBAAgB;YAC3B,gCAAK,MAAA,IAAI,CAAC,QAAQ,0CAAE,IAAI,CAAM;YAC9B,oBAAC,IAAI,IACD,UAAU,EAAC,MAAM,EACjB,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EACrB,kBAAkB;gBAElB,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,IAAI,IAChB,IAAI,CAAC,MAAM,IAAI,MAAM,CACd;gBACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,MAAM,IAClB,IAAI,CAAC,IAAI,IAAI,MAAM,CACZ;gBACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,IACpB,IAAI,CAAC,UAAU,IAAI,MAAM,CAClB;gBACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,SAAS,GACd;gBACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,IACpB,CAAA,MAAA,IAAI,CAAC,QAAQ,0CAAE,IAAI,KAAI,MAAM,CACtB;gBACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,KAAK,IACjB,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,MAAM,CACnD;gBACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,OAAO;oBACpB,oBAAC,UAAU,IAAC,IAAI,EAAE,IAAI,CAAC,MAAM,IAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,GAAI,CAChD,CACT,CACL,CACT,CAAA;KAAA,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import "./index.less";
|
3
|
+
declare const WorkErrorMenu: {
|
4
|
+
(props: {
|
5
|
+
id: string;
|
6
|
+
className?: string;
|
7
|
+
closeAside?: boolean;
|
8
|
+
size: "small" | "middle" | "large" | undefined;
|
9
|
+
}): JSX.Element;
|
10
|
+
defaultProps: {
|
11
|
+
size: string;
|
12
|
+
};
|
13
|
+
};
|
14
|
+
export default WorkErrorMenu;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { Button, Dropdown, Modal } from "@voplus/antd";
|
3
|
+
import { useWorkErrorStore } from "../../../../data/workerror";
|
4
|
+
import { faTrashAlt } from "@fortawesome/pro-light-svg-icons";
|
5
|
+
import { observe, useAsideContentContext } from "@voplus/morpho-ui";
|
6
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
7
|
+
import { MoreOutlined } from "@ant-design/icons";
|
8
|
+
// import PermissionModal from "@voplus/morpho-org/es/controls/PermissionModal";
|
9
|
+
// 用于操作权限
|
10
|
+
import classnames from "classnames";
|
11
|
+
import "./index.less";
|
12
|
+
const WorkErrorMenu = (props) => {
|
13
|
+
const store = useWorkErrorStore();
|
14
|
+
const asideContext = useAsideContentContext();
|
15
|
+
return observe(() => (React.createElement(Dropdown, { placement: "bottomRight", overlay: React.createElement("div", { className: classnames("workError-menu", props.className) },
|
16
|
+
React.createElement(Button, { type: "link", onClick: onClick },
|
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
|
+
function onClick() {
|
22
|
+
/** 如果文件下有子文件, 询问是否删除所有子文件 */
|
23
|
+
Modal.confirm({
|
24
|
+
title: "Do you want to delete this item?",
|
25
|
+
async onOk() {
|
26
|
+
await store.delete([props.id], { DeleteChilds: true });
|
27
|
+
/** 删除后是否关闭Aside */
|
28
|
+
if (!!props.closeAside && (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent))
|
29
|
+
asideContext === null || asideContext === void 0 ? void 0 : asideContext.closeAside();
|
30
|
+
return;
|
31
|
+
},
|
32
|
+
});
|
33
|
+
}
|
34
|
+
};
|
35
|
+
WorkErrorMenu.defaultProps = {
|
36
|
+
size: "small",
|
37
|
+
};
|
38
|
+
export default WorkErrorMenu;
|
39
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/controls/WorkErrorMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAA4B,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACzF,OAAO,EAAE,UAAU,EAAwC,MAAM,kCAAkC,CAAC;AACpG,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,gFAAgF;AAChF,SAAS;AACT,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAEtB,MAAM,aAAa,GAAG,CAAC,KAKtB,EAAE,EAAE;IACJ,MAAM,KAAK,GAAG,iBAAiB,EAAE,CAAC;IAClC,MAAM,YAAY,GAAG,sBAAsB,EAAE,CAAC;IAE9C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,QAAQ,IACR,SAAS,EAAC,aAAa,EACvB,OAAO,EACN,6BAAK,SAAS,EAAE,UAAU,CAAC,gBAAgB,EAAE,KAAK,CAAC,SAAS,CAAC;YAC5D,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAE,OAAO;gBACnC,oBAAC,MAAM,IAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAC,SAAS,GAAG;gBAC5C,8BAAM,SAAS,EAAC,QAAQ,aAAc,CAC9B,CACJ;QAGP,oBAAC,MAAM,IAAC,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,EAAC,QAAQ;YACvC,oBAAC,YAAY,OAAG,CACR,CACC,CACX,CAAC,CAAC;IAEH,SAAS,OAAO;QACf,6BAA6B;QAC7B,KAAK,CAAC,OAAO,CAAC;YACb,KAAK,EAAE,kCAAkC;YACzC,KAAK,CAAC,IAAI;gBACT,MAAM,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;gBACvD,mBAAmB;gBACnB,IAAI,CAAC,CAAC,KAAK,CAAC,UAAU,KAAI,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,YAAY,CAAA;oBAAE,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,EAAE,CAAC;gBACjF,OAAO;YACR,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,aAAa,CAAC,YAAY,GAAG;IAC5B,IAAI,EAAE,OAAO;CACb,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
@@ -1,27 +1,5 @@
|
|
1
1
|
:global {
|
2
|
-
.
|
3
|
-
.ant-btn + .ant-btn {
|
4
|
-
margin-left: 5px;
|
5
|
-
}
|
6
|
-
.ant-tooltip-disabled-compatible-wrapper {
|
7
|
-
margin: 0 5px;
|
8
|
-
& + .ant-tooltip-disabled-compatible-wrapper {
|
9
|
-
margin-left: 0;
|
10
|
-
}
|
11
|
-
}
|
12
|
-
.archive-btn {
|
13
|
-
background: #fff;
|
14
|
-
border-color: #faad14;
|
15
|
-
color: #faad14;
|
16
|
-
}
|
17
|
-
.archive-btn:active,
|
18
|
-
.archive-btn.active,
|
19
|
-
.archive-btn:hover {
|
20
|
-
background-color: #faad14;
|
21
|
-
color: #fff;
|
22
|
-
}
|
23
|
-
}
|
24
|
-
.tool-bar-menu {
|
2
|
+
.workError-menu {
|
25
3
|
padding: 4px 0;
|
26
4
|
list-style-type: none;
|
27
5
|
background-color: #fff;
|
@@ -1,4 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import "./index.less";
|
3
|
-
|
3
|
+
/** The Work Page component with router parameters support. */
|
4
|
+
declare const WorkDefaultView: ({ id }: {
|
5
|
+
id: string;
|
6
|
+
}) => JSX.Element;
|
4
7
|
export default WorkDefaultView;
|
@@ -1,16 +1,14 @@
|
|
1
1
|
import "./index.less";
|
2
2
|
import React, { useState } from "react";
|
3
3
|
import { TabItemContext, TabItemStore } from "@voplus/morpho-data";
|
4
|
-
import { useRouteMatch } from "react-router";
|
5
4
|
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
6
5
|
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
7
6
|
import WorkTabs from "../../components/WorkTabs";
|
8
7
|
import WorksProperties from "../../components/WorksProperties";
|
9
8
|
import { observe } from "@voplus/morpho-ui";
|
10
9
|
import { useWorkStore } from "../../../../data/work";
|
11
|
-
|
12
|
-
|
13
|
-
const id = match.params.id;
|
10
|
+
/** The Work Page component with router parameters support. */
|
11
|
+
const WorkDefaultView = ({ id }) => {
|
14
12
|
const store = new TabItemStore({ url: "" });
|
15
13
|
const [asideContext] = useState(AsideContent.createContext());
|
16
14
|
const workStore = useWorkStore();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/pages/WorkDefaultView/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;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/pages/WorkDefaultView/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;AAGnE,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAC7E,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AACjD,OAAO,eAAe,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,8DAA8D;AAC9D,MAAM,eAAe,GAAG,CAAC,EAAE,EAAE,EAAkB,EAAE,EAAE;IAE/C,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,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IAEjC,OAAO,OAAO,CAAC,GAAG,EAAE,CAChB,oBAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK;QACjC,oBAAC,WAAW,IAAC,SAAS,EAAC,mBAAmB;YACtC,oBAAC,WAAW,CAAC,GAAG,IAAC,WAAW;gBACxB,oBAAC,eAAe,IAAC,EAAE,EAAE,EAAE,GAAI,CACb;YAClB,6BAAK,SAAS,EAAC,cAAc;gBAIzB,oBAAC,YAAY,IAAC,OAAO,EAAE,YAAY;oBAC/B,oBAAC,QAAQ,IAAC,EAAE,EAAE,EAAE,GAAI,CACT,CACb,CACI,CACQ,CAC7B,CAAA;AACL,CAAC,CAAA;AAED,eAAe,eAAe,CAAC"}
|
@@ -7,11 +7,12 @@ import { useLayout } from "@voplus/morpho-data";
|
|
7
7
|
const WorkListPage = (props) => {
|
8
8
|
const match = useRouteMatch();
|
9
9
|
const layout = useLayout();
|
10
|
-
return observe(() => React.createElement(WorkList, { status: match.params.status, active: match.params.active, onClickItem: (item) => {
|
11
|
-
layout.history.push(generatePath(match.path, { status: match.params.status, active: item.id }));
|
10
|
+
return observe(() => React.createElement(WorkList, { status: match.params.status, active: match.params.active, typesId: match.params.typesId, onClickItem: (item) => {
|
11
|
+
layout.history.push(generatePath(match.path, { id: match.params.id, status: match.params.status, typesId: match.params.typesId, active: item.id }));
|
12
12
|
}, onTotal: (total) => {
|
13
13
|
runInAction(() => {
|
14
14
|
props.state.workStatusTotals[match.params.status] = total;
|
15
|
+
props.state.workTypesTotals[match.params.typesId] = total;
|
15
16
|
});
|
16
17
|
} }));
|
17
18
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/pages/WorkListPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE3D,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,YAAY,GAAG,CAAC,KAAuB,EAAE,EAAE;IAChD,MAAM,KAAK,GAAG,aAAa,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/pages/WorkListPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE3D,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,YAAY,GAAG,CAAC,KAAuB,EAAE,EAAE;IAChD,MAAM,KAAK,GAAG,aAAa,EAAsE,CAAC;IAClG,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAG3B,OAAO,OAAO,CAAC,GAAG,EAAE,CACnB,oBAAC,QAAQ,IACR,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAC3B,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAC3B,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,EAC7B,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE;YACrB,MAAM,CAAC,OAAO,CAAC,IAAI,CAClB,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAC9H,CAAC;QACH,CAAC,EACD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,WAAW,CAAC,GAAG,EAAE;gBAChB,KAAK,CAAC,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,MAAM,CAAC,MAAO,CAAC,GAAG,KAAK,CAAC;gBAC3D,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,MAAM,CAAC,OAAQ,CAAC,GAAG,KAAK,CAAC;YAC5D,CAAC,CAAC,CAAC;QACJ,CAAC,GACA,CACF,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
@@ -2,6 +2,7 @@ import "./index.less";
|
|
2
2
|
import React, { useState } from "react";
|
3
3
|
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
4
4
|
import NewWorkspaceDialog from "../NewWorkspaceDialog";
|
5
|
+
import { Scrollbars } from "react-custom-scrollbars";
|
5
6
|
import { Typography } from "@voplus/antd";
|
6
7
|
import WorkspaceCardList from "../WorkspaceCardList";
|
7
8
|
import WorkspacePropertiesView from "../WorkspacePropertiesView";
|
@@ -12,13 +13,17 @@ const MyWorkspaces = (props) => {
|
|
12
13
|
const [visible, setVisible] = useState(false);
|
13
14
|
return observe(() => (React.createElement(AsideContent, { context: asideContext },
|
14
15
|
React.createElement("div", { className: "my-workSpaces" },
|
15
|
-
React.createElement(
|
16
|
-
React.createElement(
|
17
|
-
|
18
|
-
|
19
|
-
React.createElement(
|
20
|
-
|
21
|
-
|
16
|
+
React.createElement(Scrollbars, { autoHide: true },
|
17
|
+
React.createElement("div", { className: "workspace-list" },
|
18
|
+
React.createElement(Title, { level: 3 }, "My WorkSpaces"),
|
19
|
+
React.createElement(WorkspaceCardList, { roles: true, addCard: true, onItemClick: onItemClick })),
|
20
|
+
React.createElement("div", { className: "workspace-list" },
|
21
|
+
React.createElement(Title, { level: 3 }, "Worksapce I have access"),
|
22
|
+
React.createElement(WorkspaceCardList, { onItemClick: onItemClick })),
|
23
|
+
React.createElement("div", { className: "workspace-list" },
|
24
|
+
React.createElement(Title, { level: 3 }, "Disabled Workspaces"),
|
25
|
+
React.createElement(WorkspaceCardList, { WorkspaceStatus: "Disabled", onItemClick: onItemClick })),
|
26
|
+
visible && (React.createElement(NewWorkspaceDialog, { onCancel: () => setVisible(false), onSubmitSave: () => setVisible(false) })))))));
|
22
27
|
function onItemClick(item) {
|
23
28
|
var _a;
|
24
29
|
if (item.id !== "0") {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/components/MyWorkspaces/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAE/E,OAAO,kBAAkB,MAAM,uBAAuB,CAA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AAC,CAAC;SACjB;QACD,MAAA,KAAK,CAAC,WAAW,+CAAjB,KAAK,EAAe,IAAI,CAAC,CAAC;IAC3B,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import "./index.less";
|
2
2
|
import { faAcorn, faPlus } from "@fortawesome/pro-light-svg-icons";
|
3
|
+
import { Badge } from "@voplus/antd";
|
3
4
|
import Card from "@voplus/morpho-ui/es/controls/Card";
|
4
5
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
5
6
|
import React from "react";
|
@@ -9,10 +10,14 @@ import { useWorkspace } from "../../../../data/workspace";
|
|
9
10
|
const WorkspaceCard = (props) => {
|
10
11
|
const { id, active } = props;
|
11
12
|
const workspace = useWorkspace(id, { reload: false });
|
12
|
-
return observe(() =>
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
return observe(() => {
|
14
|
+
var _a;
|
15
|
+
return React.createElement(Card, { className: classnames("workspace-card", { active: active }), padding: "15px 12px", shadow: false, hoverShadow: false },
|
16
|
+
React.createElement(Badge, { count: (_a = workspace === null || workspace === void 0 ? void 0 : workspace.stats) === null || _a === void 0 ? void 0 : _a.activeWorks, className: "site-badge-count" }),
|
17
|
+
React.createElement("div", { className: classnames("workspaces-icon", { "new-workspace-icon": !id }) },
|
18
|
+
React.createElement(FAIcon, { icon: id ? faAcorn : faPlus })),
|
19
|
+
React.createElement("div", { className: "workspaces-name" }, (workspace === null || workspace === void 0 ? void 0 : workspace.name) || "New WorkSpace"));
|
20
|
+
});
|
16
21
|
};
|
17
22
|
export default WorkspaceCard;
|
18
23
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/components/WorkspaceCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,M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AE,CAAC,CAAC;IAEvD,OAAO,OAAO,CAAC,GAAG,EAAE;;QACnB,OAAA,oBAAC,IAAI,IACJ,SAAS,EAAE,UAAU,CAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EAE3D,OAAO,EAAC,WAAW,EACnB,MAAM,EAAE,KAAK,EACb,WAAW,EAAE,KAAK;YAElB,oBAAC,KAAK,IAAC,KAAK,EAAE,MAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAK,0CAAE,WAAW,EAAE,SAAS,EAAC,kBAAkB,GAAG;YAC5E,6BAAK,SAAS,EAAE,UAAU,CAAC,iBAAiB,EAAE,EAAE,oBAAoB,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC3E,oBAAC,MAAM,IAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,GAAI,CAClC;YACN,6BAAK,SAAS,EAAC,iBAAiB,IAC9B,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,IAAI,KAAI,eAAe,CAC9B,CACC,CAAA;KAAA,CACR,CAAA;AACF,CAAC,CAAA;AAED,eAAe,aAAa,CAAC"}
|
@@ -7,12 +7,24 @@
|
|
7
7
|
border-radius: 15px;
|
8
8
|
padding: 15px 8px;
|
9
9
|
background: transparent;
|
10
|
+
position: relative;
|
10
11
|
&.active {
|
11
12
|
background: #dedbdb57;
|
12
13
|
}
|
13
14
|
&:hover {
|
14
15
|
background: #dedbdb57;
|
15
16
|
}
|
17
|
+
.site-badge-count {
|
18
|
+
position: absolute;
|
19
|
+
vertical-align: middle;
|
20
|
+
right: 10px;
|
21
|
+
top: 10px;
|
22
|
+
.ant-badge-count {
|
23
|
+
background-color: #fff;
|
24
|
+
color: #999;
|
25
|
+
box-shadow: 0 0 0 1px #d9d9d9 inset;
|
26
|
+
}
|
27
|
+
}
|
16
28
|
.workspaces-icon {
|
17
29
|
width: 80px;
|
18
30
|
height: 80px;
|
@@ -5,6 +5,7 @@ import { IWorkspace } from "../../../../data/workspace";
|
|
5
5
|
declare const WorkspaceCardList: (props: {
|
6
6
|
/** filter roles */
|
7
7
|
roles?: boolean | undefined;
|
8
|
+
WorkspaceStatus?: string | undefined;
|
8
9
|
/** 显示add card */
|
9
10
|
addCard?: boolean | undefined;
|
10
11
|
/** item onclick */
|
@@ -2,7 +2,6 @@ import "./index.less";
|
|
2
2
|
import { useWorkspaceListEffect } from "../../../../data/workspace";
|
3
3
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
4
4
|
import React, { useState } from "react";
|
5
|
-
import InfiniteScrollView from "@voplus/morpho-ui/es/controls/InfiniteScrollView";
|
6
5
|
import WorkspaceCard from "../WorkspaceCard";
|
7
6
|
import { observe } from "@voplus/morpho-ui";
|
8
7
|
import { useApplicationContext } from "@voplus/morpho-data";
|
@@ -16,14 +15,16 @@ const WorkspaceCardList = (props) => {
|
|
16
15
|
const list = useCreateListDataState({
|
17
16
|
filterDefaults: {
|
18
17
|
filters: props.roles
|
19
|
-
? [{ c: "Roles", o: "contains", l: "And", v1:
|
20
|
-
:
|
18
|
+
? [{ c: "Roles", o: "contains", l: "And", v1: JSON.stringify(["Member"]) }]
|
19
|
+
: props.WorkspaceStatus
|
20
|
+
? [{ c: "WorkspaceStatus", o: "=", l: "And", v1: props.WorkspaceStatus }]
|
21
|
+
: [],
|
22
|
+
page: { Page: 1, PageSize: 200 },
|
21
23
|
},
|
22
|
-
}, [props.roles]);
|
24
|
+
}, [props.roles, props.WorkspaceStatus]);
|
23
25
|
if (props.addCard) {
|
24
26
|
list.insert({ id: "0", name: "" }, 0);
|
25
27
|
}
|
26
|
-
;
|
27
28
|
/** 如果 list.filters.options变更了就重渲染,使下一行的useWorkspaceListEffect 可以接收新参数*/
|
28
29
|
useRenderOnChange(() => list.filters.options);
|
29
30
|
/** 把ListDataState传给useWorkspaceListEffect,使之可以自動更新loading, hasmore. */
|
@@ -32,9 +33,8 @@ const WorkspaceCardList = (props) => {
|
|
32
33
|
useAutoUpdateListData(list, (d) => true);
|
33
34
|
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
34
35
|
React.createElement("div", { className: "workspace-list-view" },
|
35
|
-
React.createElement(
|
36
|
-
React.createElement(
|
37
|
-
React.createElement(WorkspaceCard, { id: i.id === "0" ? "" : i.id, active: active === i.id }))))))))));
|
36
|
+
React.createElement("div", { className: "workspace-card-list" }, list.data.map((i) => (React.createElement("div", { key: i.id, onClick: () => onItemClick(i) },
|
37
|
+
React.createElement(WorkspaceCard, { id: i.id === "0" ? "" : i.id, active: active === i.id })))))))));
|
38
38
|
function loadMore() {
|
39
39
|
list.triggerNextPage();
|
40
40
|
}
|