@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/workspace/components/WorkspaceCardList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAc,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,E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,CAAC,EAAE,GAAI,CACnE,CACN,CAAC,CACG,CAED,CACoB,CAC3B,CAAC,CAAC;IAEH,SAAS,QAAQ;QAChB,IAAI,CAAC,eAAe,EAAE,CAAC;IACxB,CAAC;IAED,SAAS,WAAW,CAAC,IAAgB;;QACpC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACnB,MAAA,KAAK,CAAC,WAAW,+CAAjB,KAAK,EAAe,IAAI,CAAC,CAAC;IAC3B,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
@@ -31,7 +31,7 @@ const WorkspacePropertiesView = (props) => {
|
|
31
31
|
React.createElement(InlineEdit, { defaultValue: workspace.name, content: (v) => (React.createElement("div", null, workspace.name)), onSave: (value) => state.save(value, workspace.name, { Name: value }) }),
|
32
32
|
React.createElement("div", { className: "tools-bar" },
|
33
33
|
React.createElement(ToolBar, { id: id, showMenu: false },
|
34
|
-
React.createElement(Open, { url: `/
|
34
|
+
React.createElement(Open, { url: `/workspaces/${id}` }),
|
35
35
|
React.createElement(WorkspaceMenu, { id: id, closeAside: true })))),
|
36
36
|
React.createElement(AvatarList, { organizationId: user.info.organizationId, list: state.members, multiple: true, onChange: onChange })),
|
37
37
|
React.createElement(WorkspaceCompletedWorksChart, { id: props.id }),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/components/WorkspacePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAU,MAAM,qDAAqD,CAAC;AACnF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE7E,OAAO,UAAU,MAAM,kDAAkD,CA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QACX,6BAAK,SAAS,EAAC,kBAAkB;YAC7B,6BAAK,SAAS,EAAC,gBAAgB;gBAC3B,oBAAC,UAAU,IACP,YAAY,EAAE,SAAS,CAAC,IAAI,EAC5B,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CACZ,iCAAM,SAAS,CAAC,IAAI,CAAO,CAC9B,EACD,MAAM,EAAE,CAAC,KAAU,EAAE,EAAE,CACnB,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,GAExD;gBACF,6BAAK,SAAS,EAAC,WAAW;oBACtB,oBAAC,OAAO,IACJ,EAAE,EAAE,EAAE,EACN,QAAQ,EAAE,KAAK;wBAEf,oBAAC,IAAI,IAAC,GAAG,EAAE,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/components/WorkspacePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAU,MAAM,qDAAqD,CAAC;AACnF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE7E,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAG1E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAE3E,OAAO,4BAA4B,MAAM,6CAA6C,CAAC;AACvF,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AA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AI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,GAExD;gBACF,6BAAK,SAAS,EAAC,WAAW;oBACtB,oBAAC,OAAO,IACJ,EAAE,EAAE,EAAE,EACN,QAAQ,EAAE,KAAK;wBAEf,oBAAC,IAAI,IAAC,GAAG,EAAE,eAAe,EAAE,EAAE,GAAI;wBAClC,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CACrC,CACR,CACJ;YACN,oBAAC,UAAU,IACP,cAAc,EAAE,IAAI,CAAC,IAAI,CAAC,cAAc,EACxC,IAAI,EAAE,KAAK,CAAC,OAAO,EACnB,QAAQ,QACR,QAAQ,EAAE,QAAQ,GACpB,CACA;QACN,oBAAC,4BAA4B,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI;QAC9C,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,GAAI,CACZ,CACpB,CACC,CACT,CAAC,CAAC;IAEH,KAAK,UAAU,QAAQ,CAAC,GAAa,EAAE,OAAgB;QACnD,MAAM,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACrE,WAAW,CAAC,GAAG,EAAE;YACb,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;QAC5B,CAAC,CAAC,CAAC;IACP,CAAC;AACL,CAAC,CAAC;AACF,eAAe,uBAAuB,CAAC"}
|
@@ -16,7 +16,7 @@ const WorkspaceTabs = (props) => {
|
|
16
16
|
React.createElement(Tabs.TabPane, { tab: "Work Types", key: "WorkTypes" }, activeKey === "WorkTypes" && React.createElement(WorkTypeList, { workspaceId: id })),
|
17
17
|
React.createElement(Tabs.TabPane, { tab: "Works", key: "Works" }, activeKey === "Works" && React.createElement(SubWorkList, null)),
|
18
18
|
React.createElement(Tabs.TabPane, { tab: "Activities", key: "Activities" }, activeKey === "Activities" && React.createElement(ActivityLog, { id: id })),
|
19
|
-
React.createElement(Tabs.TabPane, { tab: "Documents", key: "Documents" }, activeKey === "Documents" &&
|
19
|
+
React.createElement(Tabs.TabPane, { tab: "Documents", key: "Documents" }, activeKey === "Documents" && React.createElement(DocumentList, { id: id, multiple: true })))));
|
20
20
|
/**切换面板的回调*/
|
21
21
|
function onChange(activeKey) {
|
22
22
|
setActiveKey(activeKey);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/components/WorkspaceTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,WAAW,MAAM,gEAAgE,CAAC;AACzF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAC/D,OAAO,YAAY,MAAM,2CAA2C,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,MAAM,aAAa,GAAG,CAAC,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/components/WorkspaceTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,WAAW,MAAM,gEAAgE,CAAC;AACzF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAC/D,OAAO,YAAY,MAAM,2CAA2C,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,MAAM,aAAa,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC/C,MAAM,EAA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Dropdown, Modal } from "@voplus/antd";
|
3
|
-
import {
|
4
|
-
import React, {
|
5
|
-
import {
|
3
|
+
import { useWorkspace, useWorkspaceStore } from "../../../../data/workspace";
|
4
|
+
import React, { useState } from "react";
|
5
|
+
import { faTrashAlt, faUserEdit, faUserLock, faUserUnlock } from "@fortawesome/pro-light-svg-icons";
|
6
|
+
import { observe, useAsideContentContext } from "@voplus/morpho-ui";
|
6
7
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
7
8
|
import { MoreOutlined } from "@ant-design/icons";
|
8
|
-
import
|
9
|
-
import
|
9
|
+
import PermissionModal from "@voplus/morpho-org/es/controls/PermissionModal";
|
10
|
+
import classnames from "classnames";
|
10
11
|
const WorksapceMenu = (props) => {
|
11
|
-
const context = useMemo(() => new DocumentMenuState(props.id), [props.id]);
|
12
12
|
const store = useWorkspaceStore();
|
13
13
|
const asideContext = useAsideContentContext();
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
14
|
+
const [visible, setVisible] = useState(false);
|
15
|
+
const workspace = useWorkspace(props.id, {
|
16
|
+
reload: (i) => !i.actions,
|
17
|
+
includes: "actions"
|
18
|
+
});
|
19
|
+
return observe(() => {
|
20
|
+
var _a, _b, _c;
|
21
|
+
return (React.createElement(Dropdown, { placement: "bottomRight", overlay: React.createElement("div", { className: classnames("workspace-menu", props.className) },
|
22
|
+
((_a = workspace.actions) === null || _a === void 0 ? void 0 : _a.canDelete) &&
|
23
|
+
React.createElement(Button, { type: "link", onClick: onClick },
|
24
|
+
React.createElement(FAIcon, { icon: faTrashAlt, color: "#f5222d" }),
|
25
|
+
React.createElement("span", { className: "delete" }, "Delete")),
|
26
|
+
!((_b = workspace.actions) === null || _b === void 0 ? void 0 : _b.canDelete) && workspace.status === "Active" &&
|
27
|
+
React.createElement(Button, { type: "link", onClick: () => onChangeStatus("Disabled") },
|
28
|
+
React.createElement(FAIcon, { icon: faUserLock }),
|
29
|
+
React.createElement("span", null, "Disabled")),
|
30
|
+
!((_c = workspace.actions) === null || _c === void 0 ? void 0 : _c.canDelete) && workspace.status === "Disabled" &&
|
31
|
+
React.createElement(Button, { type: "link", onClick: () => onChangeStatus("Enable") },
|
32
|
+
React.createElement(FAIcon, { icon: faUserUnlock }),
|
33
|
+
React.createElement("span", null, "Enable")),
|
34
|
+
React.createElement(Button, { type: "link", onClick: () => setVisible(!visible) },
|
35
|
+
React.createElement(FAIcon, { icon: faUserEdit }),
|
36
|
+
React.createElement("span", null, "Access")),
|
37
|
+
visible && React.createElement(PermissionModal, { id: props.id || "", onChange: () => setVisible(!visible) })) },
|
38
|
+
React.createElement(Button, { size: "small", shape: "circle" },
|
39
|
+
React.createElement(MoreOutlined, null))));
|
40
|
+
});
|
21
41
|
function onClick() {
|
22
42
|
/** 如果文件下有子文件, 询问是否删除所有子文件 */
|
23
43
|
Modal.confirm({
|
24
44
|
title: "Do you want to delete this item?",
|
25
45
|
async onOk() {
|
26
|
-
await store.delete([
|
46
|
+
await store.delete([props.id], { DeleteChilds: true });
|
27
47
|
/** 删除后是否关闭Aside */
|
28
48
|
if (!!props.closeAside && (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent))
|
29
49
|
asideContext === null || asideContext === void 0 ? void 0 : asideContext.closeAside();
|
@@ -31,6 +51,10 @@ const WorksapceMenu = (props) => {
|
|
31
51
|
},
|
32
52
|
});
|
33
53
|
}
|
54
|
+
/** Disabled/Enable function */
|
55
|
+
function onChangeStatus(status) {
|
56
|
+
store.edit(props.id, { data: { Status: status }, error: "message" });
|
57
|
+
}
|
34
58
|
};
|
35
59
|
export default WorksapceMenu;
|
36
60
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/controls/WorkspaceMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"index.js","source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AAA;KAAA,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;IAED,+BAA+B;IAC/B,SAAS,cAAc,CAAC,MAAe;QACtC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAA;IACrE,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import "./index.less";
|
2
2
|
import { InlineEdit, observe } from "@voplus/morpho-ui";
|
3
3
|
import React, { useEffect, useState } from "react";
|
4
|
-
import { useRouteMatch } from "react-router";
|
5
4
|
import { useWorkspace, useWorkspaceStore } from "../../../../data/workspace";
|
6
5
|
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
7
6
|
import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
|
@@ -12,9 +11,8 @@ import WorkspaceCompletedWorksChart from "../../controls/WorkspaceCompletedWorks
|
|
12
11
|
import { runInAction } from "mobx";
|
13
12
|
import { useApplicationContext } from "@voplus/morpho-data";
|
14
13
|
import { useDocumentStore } from "@voplus/morpho-document-core";
|
15
|
-
const WorkspaceDefaultView = () => {
|
16
|
-
const
|
17
|
-
const id = match.params.id;
|
14
|
+
const WorkspaceDefaultView = (props) => {
|
15
|
+
const { id } = props;
|
18
16
|
const store = useWorkspaceStore();
|
19
17
|
const docStore = useDocumentStore();
|
20
18
|
const [state] = useState(new State(id, store));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/pages/WorkspaceDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/pages/WorkspaceDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE7E,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAI1E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,gBAAgB,MAAM,+CAA+C,CAAC;AAC7E,OAAO,sBAAsB,MAAM,qDAAqD,CAAC;AACzF,OAAO,4BAA4B,MAAM,6CAA6C,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,MAAM,oBAAoB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACtD,M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V,cAAc,EAAE,IAAI,CAAC,IAAI,CAAC,cAAc,EACxC,IAAI,EAAE,KAAK,CAAC,OAAO,EACnB,QAAQ,QACR,QAAQ,EAAE,QAAQ,GACjB,CACG;YACN,oBAAC,4BAA4B,IAAC,EAAE,EAAE,EAAE,GAAI;YACxC,6CAAmB;YAEnB,6BAAK,SAAS,EAAC,eAAe;gBAC7B,oBAAC,gBAAgB,IAAC,WAAW,EAAE,WAAW,GAAI,CACzC,CACD,CACQ,CACf,CAAC,CAAC;IAEH,KAAK,UAAU,QAAQ,CAAC,GAAa,EAAE,OAAgB;QACtD,MAAM,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACrE,WAAW,CAAC,GAAG,EAAE;YAChB,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;QACzB,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,SAAS,WAAW,CAAC,IAAe;QACnC,YAAY,CAAC,SAAS,CAAC,oBAAC,sBAAsB,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/E,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
@@ -2,11 +2,12 @@ import "./index.less";
|
|
2
2
|
import { Badge, Menu } from "@voplus/antd";
|
3
3
|
import React, { useEffect, useMemo } from "react";
|
4
4
|
import { Redirect, Route, Switch, useRouteMatch } from "react-router";
|
5
|
-
import { faAlignLeft, faBatteryHalf, faFolders, faHome } from "@fortawesome/pro-light-svg-icons";
|
5
|
+
import { faAlignLeft, faBatteryHalf, faCalendarDay, faFolders, faHome } from "@fortawesome/pro-light-svg-icons";
|
6
6
|
import { useApplicationContext, useLayout, useTabItem } from "@voplus/morpho-data";
|
7
7
|
import DocumentPage from "@voplus/morpho-document/es/pages/DocumentPage";
|
8
8
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
9
9
|
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
10
|
+
import MeetingListView from "../../../meeting/pages/MeetingListView";
|
10
11
|
import Scrollbars from "react-custom-scrollbars";
|
11
12
|
import { State } from "./state";
|
12
13
|
import SubMenu from "@voplus/antd/es/menu/SubMenu";
|
@@ -15,8 +16,10 @@ import WorkspaceDefaultView from "../WorkspaceDefaultView";
|
|
15
16
|
import { observe } from "@voplus/morpho-ui";
|
16
17
|
import { runInAction } from "mobx";
|
17
18
|
import { useWorkListEffect } from "../../../../data/work";
|
19
|
+
import { useWorkTypeListEffect } from "../../../../data/worktype";
|
18
20
|
const WorkspacePage = () => {
|
19
21
|
const match = useRouteMatch();
|
22
|
+
const id = match.params.id;
|
20
23
|
const { user } = useApplicationContext();
|
21
24
|
const tab = useTabItem();
|
22
25
|
const layout = useLayout();
|
@@ -24,50 +27,64 @@ const WorkspacePage = () => {
|
|
24
27
|
useEffect(() => {
|
25
28
|
runInAction(() => (tab.title = "Work Space"));
|
26
29
|
}, []);
|
30
|
+
useWorkTypeListEffect(null, (result) => runInAction(() => {
|
31
|
+
state.workTypeList = result;
|
32
|
+
result === null || result === void 0 ? void 0 : result.map(item => {
|
33
|
+
return state.workTypesTotals[item.id] = 0;
|
34
|
+
});
|
35
|
+
}), {
|
36
|
+
Filters: [{ c: "Roles", o: "contains", l: "And", v1: JSON.stringify(["Requester"]) }]
|
37
|
+
});
|
27
38
|
useWorkListEffect(null, (result, total) => runInAction(() => (state.workStatusTotals.new = total || 0)), state.nNewOptions);
|
28
|
-
useWorkListEffect(null, (result, total) => runInAction(() => (state.workStatusTotals.
|
29
|
-
useWorkListEffect(null, (result, total) => runInAction(() => (state.workStatusTotals.
|
39
|
+
useWorkListEffect(null, (result, total) => runInAction(() => (state.workStatusTotals.draft = total || 0)), state.nDraftOptions);
|
40
|
+
useWorkListEffect(null, (result, total) => runInAction(() => (state.workStatusTotals.active = total || 0)), state.nActiveOptions);
|
30
41
|
useWorkListEffect(null, (result, total) => runInAction(() => (state.workStatusTotals.done = total || 0)), state.nDoneOptions);
|
31
|
-
useWorkListEffect(null, (result, total) => runInAction(() => (state.workStatusTotals.
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
React.createElement(
|
39
|
-
React.createElement(Menu.Item, { key: "/
|
40
|
-
|
41
|
-
|
42
|
-
React.createElement(
|
43
|
-
"
|
44
|
-
|
45
|
-
|
46
|
-
"
|
47
|
-
|
48
|
-
|
49
|
-
"
|
50
|
-
|
51
|
-
|
52
|
-
"
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
React.createElement(
|
65
|
-
React.createElement(
|
66
|
-
|
67
|
-
React.createElement(
|
68
|
-
|
69
|
-
React.createElement(
|
70
|
-
|
42
|
+
useWorkListEffect(null, (result, total) => runInAction(() => (state.workStatusTotals.rejected = total || 0)), state.nRejectedOptions);
|
43
|
+
useWorkListEffect(null, (result, total) => runInAction(() => (state.workStatusTotals.closed = total || 0)), state.nClosedOptions);
|
44
|
+
return observe(() => {
|
45
|
+
var _a;
|
46
|
+
return (React.createElement(MainContent, { className: "my-space-view" },
|
47
|
+
React.createElement(MainContent.Nav, { collapsible: true },
|
48
|
+
React.createElement(Scrollbars, { autoHide: true },
|
49
|
+
React.createElement(Menu, { onClick: (key) => state.navigate(key.key), defaultSelectedKeys: ["/home"], selectedKeys: state.menuKey, mode: "inline" },
|
50
|
+
React.createElement(Menu.Item, { key: "/home", icon: React.createElement(FAIcon, { icon: faHome }) }, "Home"),
|
51
|
+
React.createElement(Menu.Item, { key: "/document", icon: React.createElement(FAIcon, { icon: faFolders }) }, "Documents"),
|
52
|
+
React.createElement(Menu.Item, { key: "/meeting", icon: React.createElement(FAIcon, { icon: faCalendarDay }) }, "Meetings"),
|
53
|
+
React.createElement(SubMenu, { key: "Workstatus", icon: React.createElement(FAIcon, { icon: faBatteryHalf }), title: "Works(Status)" },
|
54
|
+
React.createElement(Menu.Item, { key: "/workstatus/draft" },
|
55
|
+
"Draft",
|
56
|
+
React.createElement(Badge, { count: state.workStatusTotals.draft, className: "site-badge-count" })),
|
57
|
+
React.createElement(Menu.Item, { key: "/workstatus/new" },
|
58
|
+
"New",
|
59
|
+
React.createElement(Badge, { count: state.workStatusTotals.new, className: "site-badge-count" })),
|
60
|
+
React.createElement(Menu.Item, { key: "/workstatus/rejected" },
|
61
|
+
"Rejected",
|
62
|
+
React.createElement(Badge, { count: state.workStatusTotals.rejected, className: "site-badge-count" })),
|
63
|
+
React.createElement(Menu.Item, { key: "/workstatus/active" },
|
64
|
+
"Active",
|
65
|
+
React.createElement(Badge, { count: state.workStatusTotals.active, className: "site-badge-count" })),
|
66
|
+
React.createElement(Menu.Item, { key: "/workstatus/closed" },
|
67
|
+
"Closed",
|
68
|
+
React.createElement(Badge, { count: state.workStatusTotals.closed, className: "site-badge-count" })),
|
69
|
+
React.createElement(Menu.Item, { key: "/workstatus/done" },
|
70
|
+
"Done",
|
71
|
+
React.createElement(Badge, { count: state.workStatusTotals.done, className: "site-badge-count" }))),
|
72
|
+
React.createElement(SubMenu, { key: "Worktype", icon: React.createElement(FAIcon, { icon: faAlignLeft }), title: "Works(Types)" }, (_a = state.workTypeList) === null || _a === void 0 ? void 0 : _a.map(item => React.createElement(Menu.Item, { key: `/worktype/${item.id}` },
|
73
|
+
item.name,
|
74
|
+
React.createElement(Badge, { count: 0, className: "site-badge-count" }))))))),
|
75
|
+
React.createElement(Switch, null,
|
76
|
+
React.createElement(Route, { path: `${match.path}/home` },
|
77
|
+
React.createElement(WorkspaceDefaultView, { id: id })),
|
78
|
+
React.createElement(Route, { path: `${match.path}/document` },
|
79
|
+
React.createElement(DocumentPage, null)),
|
80
|
+
React.createElement(Route, { path: `${match.path}/meeting` },
|
81
|
+
React.createElement(MeetingListView, { id: "873bf9c0-1f95-4315-a0ab-ad7c00191f8d" })),
|
82
|
+
React.createElement(Route, { path: `${match.path}/workstatus/:status/:active?` },
|
83
|
+
React.createElement(Works, { state: state })),
|
84
|
+
React.createElement(Route, { path: `${match.path}/worktype/:typesId/:active?` },
|
85
|
+
React.createElement(Works, { state: state })),
|
86
|
+
React.createElement(Redirect, { to: `${match.path}/home` }))));
|
87
|
+
});
|
71
88
|
};
|
72
89
|
export default WorkspacePage;
|
73
90
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/pages/WorkspacePage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/pages/WorkspacePage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAChH,OAAO,EA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Aa,CAAC"}
|
@@ -1,23 +1,29 @@
|
|
1
1
|
import { LayoutContext } from "@voplus/morpho-data";
|
2
|
+
import { IWorkType } from "../../../../data/worktype";
|
2
3
|
import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
|
3
4
|
import { WorkStatus } from "../../../../data/work";
|
4
5
|
export declare class State {
|
5
6
|
private _layout;
|
6
7
|
private _url;
|
7
8
|
menuKey: string[] | undefined;
|
9
|
+
workTypeList: IWorkType[];
|
8
10
|
workStatusTotals: {
|
11
|
+
draft: number;
|
9
12
|
new: number;
|
10
|
-
|
11
|
-
|
13
|
+
rejected: number;
|
14
|
+
active: number;
|
15
|
+
closed: number;
|
12
16
|
done: number;
|
13
|
-
cancelled: number;
|
14
17
|
};
|
18
|
+
workTypesTotals: {};
|
15
19
|
constructor(_layout: LayoutContext, _url: string);
|
16
20
|
navigate(key: string, rest?: string): void;
|
17
21
|
updateWorkStatusTotal(oldStatus: WorkStatus, status: WorkStatus): void;
|
22
|
+
updateWorkTypesTotal(oldStatus: string, status: string): void;
|
18
23
|
get nNewOptions(): LoadDocumentListOptions;
|
19
|
-
get
|
20
|
-
get
|
24
|
+
get nDraftOptions(): LoadDocumentListOptions;
|
25
|
+
get nRejectedOptions(): LoadDocumentListOptions;
|
21
26
|
get nDoneOptions(): LoadDocumentListOptions;
|
22
|
-
get
|
27
|
+
get nActiveOptions(): LoadDocumentListOptions;
|
28
|
+
get nClosedOptions(): LoadDocumentListOptions;
|
23
29
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { action,
|
2
|
+
import { action, makeObservable, observable } from "mobx";
|
3
3
|
export class State {
|
4
4
|
constructor(_layout, _url) {
|
5
5
|
Object.defineProperty(this, "_layout", {
|
@@ -20,18 +20,31 @@ export class State {
|
|
20
20
|
writable: true,
|
21
21
|
value: undefined
|
22
22
|
});
|
23
|
+
Object.defineProperty(this, "workTypeList", {
|
24
|
+
enumerable: true,
|
25
|
+
configurable: true,
|
26
|
+
writable: true,
|
27
|
+
value: void 0
|
28
|
+
});
|
23
29
|
Object.defineProperty(this, "workStatusTotals", {
|
24
30
|
enumerable: true,
|
25
31
|
configurable: true,
|
26
32
|
writable: true,
|
27
33
|
value: {
|
34
|
+
draft: 0,
|
28
35
|
new: 0,
|
29
|
-
|
30
|
-
|
36
|
+
rejected: 0,
|
37
|
+
active: 0,
|
38
|
+
closed: 0,
|
31
39
|
done: 0,
|
32
|
-
cancelled: 0,
|
33
40
|
}
|
34
41
|
});
|
42
|
+
Object.defineProperty(this, "workTypesTotals", {
|
43
|
+
enumerable: true,
|
44
|
+
configurable: true,
|
45
|
+
writable: true,
|
46
|
+
value: {}
|
47
|
+
});
|
35
48
|
makeObservable(this);
|
36
49
|
}
|
37
50
|
navigate(key, rest) {
|
@@ -42,6 +55,10 @@ export class State {
|
|
42
55
|
this.workStatusTotals[oldStatus.toLowerCase()]--;
|
43
56
|
this.workStatusTotals[status.toLowerCase()]++;
|
44
57
|
}
|
58
|
+
updateWorkTypesTotal(oldStatus, status) {
|
59
|
+
this.workTypesTotals[oldStatus.toLowerCase()]--;
|
60
|
+
this.workTypesTotals[status.toLowerCase()]++;
|
61
|
+
}
|
45
62
|
get nNewOptions() {
|
46
63
|
return {
|
47
64
|
Total: true,
|
@@ -49,18 +66,18 @@ export class State {
|
|
49
66
|
Filters: [{ c: "WorkStatus", o: "=", l: "And", v1: "New" }],
|
50
67
|
};
|
51
68
|
}
|
52
|
-
get
|
69
|
+
get nDraftOptions() {
|
53
70
|
return {
|
54
71
|
Total: true,
|
55
72
|
List: false,
|
56
|
-
Filters: [{ c: "WorkStatus", o: "=", l: "And", v1: "
|
73
|
+
Filters: [{ c: "WorkStatus", o: "=", l: "And", v1: "Draft" }],
|
57
74
|
};
|
58
75
|
}
|
59
|
-
get
|
76
|
+
get nRejectedOptions() {
|
60
77
|
return {
|
61
78
|
Total: true,
|
62
79
|
List: false,
|
63
|
-
Filters: [{ c: "WorkStatus", o: "=", l: "And", v1: "
|
80
|
+
Filters: [{ c: "WorkStatus", o: "=", l: "And", v1: "Rejected" }],
|
64
81
|
};
|
65
82
|
}
|
66
83
|
get nDoneOptions() {
|
@@ -70,20 +87,33 @@ export class State {
|
|
70
87
|
Filters: [{ c: "WorkStatus", o: "=", l: "And", v1: "Done" }],
|
71
88
|
};
|
72
89
|
}
|
73
|
-
get
|
90
|
+
get nActiveOptions() {
|
74
91
|
return {
|
75
92
|
Total: true,
|
76
93
|
List: false,
|
77
|
-
Filters: [{ c: "WorkStatus", o: "=", l: "And", v1: "
|
94
|
+
Filters: [{ c: "WorkStatus", o: "=", l: "And", v1: "Active" }],
|
95
|
+
};
|
96
|
+
}
|
97
|
+
get nClosedOptions() {
|
98
|
+
return {
|
99
|
+
Total: true,
|
100
|
+
List: false,
|
101
|
+
Filters: [{ c: "WorkStatus", o: "=", l: "And", v1: "Closed" }],
|
78
102
|
};
|
79
103
|
}
|
80
104
|
}
|
81
105
|
__decorate([
|
82
106
|
observable
|
83
107
|
], State.prototype, "menuKey", void 0);
|
108
|
+
__decorate([
|
109
|
+
observable
|
110
|
+
], State.prototype, "workTypeList", void 0);
|
84
111
|
__decorate([
|
85
112
|
observable
|
86
113
|
], State.prototype, "workStatusTotals", void 0);
|
114
|
+
__decorate([
|
115
|
+
observable
|
116
|
+
], State.prototype, "workTypesTotals", void 0);
|
87
117
|
__decorate([
|
88
118
|
action
|
89
119
|
], State.prototype, "navigate", null);
|
@@ -91,18 +121,6 @@ __decorate([
|
|
91
121
|
action
|
92
122
|
], State.prototype, "updateWorkStatusTotal", null);
|
93
123
|
__decorate([
|
94
|
-
|
95
|
-
], State.prototype, "
|
96
|
-
__decorate([
|
97
|
-
computed
|
98
|
-
], State.prototype, "nDueOptions", null);
|
99
|
-
__decorate([
|
100
|
-
computed
|
101
|
-
], State.prototype, "nPendingOptions", null);
|
102
|
-
__decorate([
|
103
|
-
computed
|
104
|
-
], State.prototype, "nDoneOptions", null);
|
105
|
-
__decorate([
|
106
|
-
computed
|
107
|
-
], State.prototype, "nCancelledOptions", null);
|
124
|
+
action
|
125
|
+
], State.prototype, "updateWorkTypesTotal", null);
|
108
126
|
//# sourceMappingURL=state.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/pages/WorkspacePage/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/pages/WorkspacePage/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAY,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAMpE,MAAM,OAAO,KAAK;IAajB,YAAoB,OAAsB,EAAU,IAAY;;;;;mBAA5C;;;;;;mBAAgC;;QAZxC;;;;mBAAiB,SAAiC;WAAC;QACnD;;;;;WAAiC;QACjC;;;;mBAA0B;gBACrC,KAAK,EAAE,CAAC;gBACR,GAAG,EAAE,CAAC;gBACN,QAAQ,EAAE,CAAC;gBACX,MAAM,EAAE,CAAC;gBACT,MAAM,EAAE,CAAC;gBACT,IAAI,EAAE,CAAC;aACP;WAAC;QACU;;;;mBAAyB,EAAE;WAAC;QAGvC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAEc,QAAQ,CAAC,GAAW,EAAE,IAAa;QACjD,IAAI,CAAC,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC;QACrB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,GAAG,GAAG,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,EAAE,CAAC,CAAC;IAC9D,CAAC;IAGM,qBAAqB,CAAC,SAAqB,EAAE,MAAkB;QACrE,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,EAAE,CAAC;QACjD,IAAI,CAAC,gBAAgB,CAAC,MAA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I,EAAE,KAAK;YACX,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC;SAC9D,CAAC;IACH,CAAC;IAED,IAAW,cAAc;QACxB,OAAO;YACN,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC;SAC9D,CAAC;IACH,CAAC;CACD;AAhFY;IAAX,UAAU;sCAAoD;AACnD;IAAX,UAAU;2CAAkC;AACjC;IAAX,UAAU;+CAOT;AACU;IAAX,UAAU;8CAA6B;AAMhC;IAAP,MAAM;qCAGN;AAGD;IADC,MAAM;kDAIN;AAGD;IADC,MAAM;iDAIN"}
|
@@ -1,18 +1,16 @@
|
|
1
1
|
import React, { useState } from "react";
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
3
3
|
import { runInAction } from "mobx";
|
4
|
-
import {
|
4
|
+
import { Input, Spin, message } from "@voplus/antd";
|
5
5
|
import { State } from "./state";
|
6
6
|
import { useWorkTypeStore } from "../../../../data/worktype";
|
7
7
|
import "./index.less";
|
8
8
|
const NewTypeForm = (props) => {
|
9
9
|
const worktype = useWorkTypeStore();
|
10
10
|
const [state] = useState(new State({ workspaceId: props.workspaceId }));
|
11
|
-
return observe(() => (React.createElement(
|
11
|
+
return observe(() => (React.createElement("div", { className: "new-work-type" },
|
12
12
|
React.createElement(Spin, { spinning: !!state.loading },
|
13
|
-
React.createElement(
|
14
|
-
React.createElement(Col, { flex: 1 },
|
15
|
-
React.createElement(Input, { autoFocus: true, value: state.params.Name, placeholder: "Enter a title for this task", onChange: (e) => runInAction(() => (state.params.Name = e.target.value)), onPressEnter: () => onSubmit(), onKeyDown: onKeyDown })))))));
|
13
|
+
React.createElement(Input, { autoFocus: true, value: state.params.Name, placeholder: "Enter a title for this task", onChange: (e) => runInAction(() => (state.params.Name = e.target.value)), onPressEnter: () => onSubmit(), onKeyDown: onKeyDown })))));
|
16
14
|
async function onSubmit() {
|
17
15
|
var _a;
|
18
16
|
if (!state.params.Name)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/NewTypeForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/NewTypeForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAO,KAAK,EAAO,IAAI,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,cAAc,CAAC;AAEtB,MAAM,WAAW,GAAG,CAAC,KAMpB,EAAE,EAAE;IACJ,MAAM,QAAQ,GAAG,gBAAgB,EAAE,CAAC;IACpC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;IAExE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,eAAe;QAC7B,oBAA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