@voplus/morpho-workspace 1.3.4 → 1.3.6
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 +2 -2
- 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/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/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/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 +12 -3
- 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/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/work/controls/WorkErrorMenu/index.less +33 -0
- 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 +3 -0
- package/es/modules/workspace/components/MyWorkspaces/index.js.map +1 -1
- package/es/modules/workspace/components/WorkspaceCardList/index.d.ts +1 -0
- package/es/modules/workspace/components/WorkspaceCardList/index.js +6 -5
- 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/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/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/WorkTypeProperties/index.js +23 -20
- package/es/modules/worktype/components/WorkTypeProperties/index.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeProperties/index.less +0 -9
- 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/WorkTypeQA/index.js +31 -34
- package/es/modules/worktype/components/WorkTypeQA/index.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeTabs/index.js +9 -11
- 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 +6 -28
- package/es/pages/Routes.js.map +1 -1
- package/es/pages/Space/pages/MySpace/index.js +6 -6
- package/es/pages/Space/pages/MySpace/index.js.map +1 -1
- package/es/pages/Space/pages/MySpace/state.d.ts +16 -4
- package/es/pages/Space/pages/MySpace/state.js +139 -59
- package/es/pages/Space/pages/MySpace/state.js.map +1 -1
- package/es/pages/WorkType/WorkTypeSelect/index.js +1 -1
- package/es/pages/WorkType/WorkTypeSelect/index.js.map +1 -1
- package/package.json +1 -1
@@ -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,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0,0 +1,33 @@
|
|
1
|
+
:global {
|
2
|
+
.workError-menu {
|
3
|
+
padding: 4px 0;
|
4
|
+
list-style-type: none;
|
5
|
+
background-color: #fff;
|
6
|
+
background-clip: padding-box;
|
7
|
+
border-radius: 2px;
|
8
|
+
outline: none;
|
9
|
+
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
10
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
11
|
+
|
12
|
+
.ant-btn {
|
13
|
+
display: block;
|
14
|
+
width: 100%;
|
15
|
+
padding: 0 12px;
|
16
|
+
height: 34px;
|
17
|
+
color: #666;
|
18
|
+
text-align: left;
|
19
|
+
&[disabled] {
|
20
|
+
color: rgba(0, 0, 0, 0.25);
|
21
|
+
}
|
22
|
+
&:hover {
|
23
|
+
background-color: #f5f5f5;
|
24
|
+
}
|
25
|
+
> span {
|
26
|
+
margin-left: 10px;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
.delete {
|
30
|
+
color: #f5222d;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
@@ -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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C,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"}
|
@@ -20,6 +20,9 @@ const MyWorkspaces = (props) => {
|
|
20
20
|
React.createElement("div", { className: "workspace-list" },
|
21
21
|
React.createElement(Title, { level: 3 }, "Worksapce I have access"),
|
22
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 })),
|
23
26
|
visible && (React.createElement(NewWorkspaceDialog, { onCancel: () => setVisible(false), onSubmitSave: () => setVisible(false) })))))));
|
24
27
|
function onItemClick(item) {
|
25
28
|
var _a;
|
@@ -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,CAAC;AACvD,OAAO,EAAE,UAAU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BAAK,SAAS,EAAC,gBAAgB;oBAC9B,oBAAC,KAAK,IAAC,KAAK,EAAE,CAAC,oBAAuB;oBACtC,oBAAC,iBAAiB,IAAC,KAAK,QAAC,OAAO,QAAC,WAAW,EAAE,WAAW,GAAI,CACxD;gBACN,6BAAK,SAAS,EAAC,gBAAgB;oBAC9B,oBAAC,KAAK,IAAC,KAAK,EAAE,CAAC,8BAAiC;oBAChD,oBAAC,iBAAiB,IAAC,WAAW,EAAE,WAAW,GAAI,CAC1C;gBACN,6BAAK,SAAS,EAAC,gBAAgB;oBAC9B,oBAAC,KAAK,IAAC,KAAK,EAAE,CAAC,0BAA6B;oBAC5C,oBAAC,iBAAiB,IAAC,eAAe,EAAC,UAAU,EAAC,WAAW,EAAE,WAAW,GAAI,CACrE;gBACL,OAAO,IAAI,CACX,oBAAC,kBAAkB,IAClB,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,EACjC,YAAY,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GACpC,CACF,CACW,CACR,CACQ,CACf,CAAC,CAAC;IAEH,SAAS,WAAW,CAAC,IAAgB;;QACpC,IAAI,IAAI,CAAC,EAAE,KAAK,GAAG,EAAE;YACpB,YAAY,CAAC,SAAS,CAAC,oBAAC,uBAAuB,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;SAC/E;aAAM;YACN,UAAU,CAAC,IAAI,CAAC,CAAC;SACjB;QACD,MAAA,KAAK,CAAC,WAAW,+CAAjB,KAAK,EAAe,IAAI,CAAC,CAAC;IAC3B,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
@@ -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 */
|
@@ -15,15 +15,16 @@ const WorkspaceCardList = (props) => {
|
|
15
15
|
const list = useCreateListDataState({
|
16
16
|
filterDefaults: {
|
17
17
|
filters: props.roles
|
18
|
-
? [{ c: "Roles", o: "contains", l: "And", v1:
|
19
|
-
:
|
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. */
|
@@ -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,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGxC,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE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,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC,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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CACjB,6BAAK,SAAS,EAAC,8CAA8C,IACxD,SAAS,CAAC,MAAM,IAAI,CACjB,oBAAC,KAAK,CAAC,QAAQ;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,O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ACD,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,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"}
|
@@ -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,+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Effect, 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,KA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IAAC,KAAK,EAAE,KAAK,GAAI,CAChB;gBACR,oBAAC,KAAK,IAAC,IAAI,EAAE,GAAG,KAAK,CAAC,IAAI,6BAA6B;oBAEtD,oBAAC,KAAK,IAAC,KAAK,EAAE,KAAK,GAAI,CAChB;gBACR,oBAAC,QAAQ,IAAC,EAAE,EAAE,GAAG,KAAK,CAAC,IAAI,OAAO,GAAI,CAC9B,CACI,CACd,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,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
|
}
|