@voplus/morpho-workspace 1.3.2 → 1.3.3
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/WorkStore.d.ts +12 -0
- package/es/data/work/WorkStore.js +21 -0
- package/es/data/work/WorkStore.js.map +1 -1
- package/es/data/work/interfaces.d.ts +17 -1
- package/es/data/worktype/WorkTypeStore.d.ts +6 -0
- package/es/data/worktype/WorkTypeStore.js +22 -0
- package/es/data/worktype/WorkTypeStore.js.map +1 -1
- package/es/data/worktype/worktype-events/index.d.ts +3 -0
- package/es/data/worktype/worktype-events/index.js +4 -0
- package/es/data/worktype/worktype-events/index.js.map +1 -0
- package/es/data/worktype/worktype-events/useAutoUpdateListData.d.ts +4 -0
- package/es/data/worktype/worktype-events/useAutoUpdateListData.js +15 -0
- package/es/data/worktype/worktype-events/useAutoUpdateListData.js.map +1 -0
- package/es/data/worktype/worktype-events/useOnDeleteWorkType.d.ts +4 -0
- package/es/data/worktype/worktype-events/useOnDeleteWorkType.js +16 -0
- package/es/data/worktype/worktype-events/useOnDeleteWorkType.js.map +1 -0
- package/es/data/worktype/worktype-events/useOnNewWorkType.d.ts +4 -0
- package/es/data/worktype/worktype-events/useOnNewWorkType.js +17 -0
- package/es/data/worktype/worktype-events/useOnNewWorkType.js.map +1 -0
- package/es/modules/work/components/NewWorkForm/index.d.ts +10 -0
- package/es/modules/work/components/NewWorkForm/index.js +60 -0
- package/es/modules/work/components/NewWorkForm/index.js.map +1 -0
- package/es/modules/work/components/NewWorkForm/index.less +17 -0
- package/es/modules/work/components/SubWorkList/index.d.ts +4 -0
- package/es/modules/work/components/SubWorkList/index.js +42 -0
- package/es/modules/work/components/SubWorkList/index.js.map +1 -0
- package/es/modules/work/components/SubWorkList/index.less +7 -0
- package/es/modules/work/components/WorkErrorList/index.js +0 -1
- package/es/modules/work/components/WorkErrorList/index.js.map +1 -1
- package/es/modules/work/components/WorkItem/index.d.ts +1 -3
- package/es/modules/work/components/WorkItem/index.js +20 -4
- package/es/modules/work/components/WorkItem/index.js.map +1 -1
- package/es/modules/work/components/WorkItem/index.less +11 -0
- package/es/modules/work/components/WorkList/index.js +4 -4
- package/es/modules/work/components/WorkList/index.js.map +1 -1
- package/es/modules/work/components/WorkPropertiesView/index.js +8 -2
- package/es/modules/work/components/WorkPropertiesView/index.js.map +1 -1
- package/es/modules/work/components/WorkTabs/index.js +10 -1
- package/es/modules/work/components/WorkTabs/index.js.map +1 -1
- package/es/modules/work/components/WorksProperties/index.js +4 -2
- package/es/modules/work/components/WorksProperties/index.js.map +1 -1
- package/es/modules/work/controls/WorkMenu/Accept.d.ts +8 -0
- package/es/modules/work/controls/WorkMenu/Accept.js +31 -0
- package/es/modules/work/controls/WorkMenu/Accept.js.map +1 -0
- package/es/modules/work/controls/WorkMenu/Reject.d.ts +8 -0
- package/es/modules/work/controls/WorkMenu/Reject.js +31 -0
- package/es/modules/work/controls/WorkMenu/Reject.js.map +1 -0
- package/es/modules/work/controls/WorkMenu/Send.d.ts +8 -0
- package/es/modules/work/controls/WorkMenu/Send.js +31 -0
- package/es/modules/work/controls/WorkMenu/Send.js.map +1 -0
- package/es/modules/work/controls/WorkMenu/index.d.ts +7 -0
- package/es/modules/work/controls/WorkMenu/index.js +27 -0
- package/es/modules/work/controls/WorkMenu/index.js.map +1 -0
- package/es/modules/work/pages/WorkDefaultView/index.less +1 -2
- package/es/modules/workspace/components/WorkspaceCardList/index.js +0 -1
- package/es/modules/workspace/components/WorkspaceCardList/index.js.map +1 -1
- package/es/modules/workspace/components/WorkspacePropertiesView/index.js +11 -5
- package/es/modules/workspace/components/WorkspacePropertiesView/index.js.map +1 -1
- package/es/modules/workspace/components/WorkspaceTabs/index.d.ts +5 -0
- package/es/modules/workspace/components/WorkspaceTabs/index.js +26 -0
- package/es/modules/workspace/components/WorkspaceTabs/index.js.map +1 -0
- package/es/modules/workspace/pages/WorkspaceDefaultView/index.js +1 -1
- package/es/modules/workspace/pages/WorkspaceDefaultView/index.js.map +1 -1
- package/es/modules/workspace/pages/WorkspacePage/index.js +1 -1
- package/es/modules/workspace/pages/WorkspacePage/index.js.map +1 -1
- package/es/modules/worktype/components/NewTypeForm/index.d.ts +10 -0
- package/es/modules/worktype/components/NewTypeForm/index.js +44 -0
- package/es/modules/worktype/components/NewTypeForm/index.js.map +1 -0
- package/es/modules/worktype/components/NewTypeForm/index.less +5 -0
- package/es/modules/worktype/components/NewTypeForm/state.d.ts +11 -0
- package/es/modules/worktype/components/NewTypeForm/state.js +41 -0
- package/es/modules/worktype/components/NewTypeForm/state.js.map +1 -0
- package/es/modules/worktype/components/WorkTypeCardList/index.d.ts +4 -11
- package/es/modules/worktype/components/WorkTypeCardList/index.js +3 -17
- package/es/modules/worktype/components/WorkTypeCardList/index.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeCardList/index.less +7 -9
- package/es/modules/worktype/components/WorkTypeItem/index.d.ts +1 -1
- package/es/modules/worktype/components/WorkTypeItem/index.js +14 -2
- package/es/modules/worktype/components/WorkTypeItem/index.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeItem/index.less +13 -0
- package/es/modules/worktype/components/WorkTypeList/index.d.ts +9 -0
- package/es/modules/worktype/components/WorkTypeList/index.js +44 -0
- package/es/modules/worktype/components/WorkTypeList/index.js.map +1 -0
- package/es/modules/worktype/components/WorkTypePropertiesView/index.js +13 -8
- package/es/modules/worktype/components/WorkTypePropertiesView/index.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeQA/index.js +37 -36
- package/es/modules/worktype/components/WorkTypeQA/index.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeQA/index.less +7 -0
- package/es/modules/worktype/controls/ToolBar/index.d.ts +10 -0
- package/es/modules/worktype/controls/ToolBar/index.js +20 -0
- package/es/modules/worktype/controls/ToolBar/index.js.map +1 -0
- package/es/modules/worktype/controls/ToolBar/index.less +55 -0
- package/es/modules/worktype/controls/ToolBar/state.d.ts +36 -0
- package/es/modules/worktype/controls/ToolBar/state.js +57 -0
- package/es/modules/worktype/controls/ToolBar/state.js.map +1 -0
- package/es/modules/worktype/controls/WorkTypeMenu/index.d.ts +14 -0
- package/es/modules/worktype/controls/WorkTypeMenu/index.js +26 -0
- package/es/modules/worktype/controls/WorkTypeMenu/index.js.map +1 -0
- package/es/modules/worktype/controls/WorkTypeMenu/index.less +0 -0
- package/es/pages/Space/pages/MySpace/index.js +4 -4
- package/es/pages/Space/pages/MySpace/index.js.map +1 -1
- package/package.json +1 -1
@@ -5,6 +5,7 @@ import { useWork, useWorkStore } from "../../../../data/work";
|
|
5
5
|
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
6
6
|
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
7
7
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
8
|
+
import WorkMenu from "../../controls/WorkMenu";
|
8
9
|
import WorkTabs from "../WorkTabs";
|
9
10
|
import { observe } from "@voplus/morpho-ui";
|
10
11
|
import { useApplicationContext } from "@voplus/morpho-data";
|
@@ -18,9 +19,14 @@ const WorkPropertiesView = (props) => {
|
|
18
19
|
const [loaded, setLoaded] = useState(true);
|
19
20
|
return observe(() => (React.createElement("div", { className: "module-detail-view" }, loaded && (React.createElement(React.Fragment, null,
|
20
21
|
React.createElement(DocumentHeader, { id: id, size: "h3", quickVisible: false, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, className: "task-properties-view-header", tools: React.createElement("div", { className: "tools-bar" },
|
21
|
-
React.createElement(ToolBar, { id: id, moreProps: {
|
22
|
+
React.createElement(ToolBar, { id: id, moreProps: {
|
23
|
+
closeAside: true,
|
24
|
+
menus: {
|
25
|
+
default: React.createElement(WorkMenu, { id: id })
|
26
|
+
}
|
27
|
+
} },
|
22
28
|
React.createElement(Reload, { action: onReload }),
|
23
|
-
React.createElement(Open, { url:
|
29
|
+
React.createElement(Open, { url: `/work/${id}` }))), descriptionVisible: false }),
|
24
30
|
React.createElement(DescriptionEditor, { id: id, description: work.description, readonly: work.readonly }),
|
25
31
|
React.createElement(WorkTabs, { id: id, propertie: true }))))));
|
26
32
|
/** reload data */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE9D,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,MAAM,kBAAkB,GAAG,CAAC,KAAwC,EAAE,EAAE;IACpE,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IAEpB,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC;IAC5B,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAEzC,MAAM,IAAI,GAAG,OAAO,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAE5C,MAAM,KAAK,GAAG,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@@ -8,6 +8,7 @@ import WorkTasksTab from "../WorkTasksTab";
|
|
8
8
|
import WorksProperties from "../WorksProperties";
|
9
9
|
import { observe } from "@voplus/morpho-ui";
|
10
10
|
import { useApplicationContext } from "@voplus/morpho-data";
|
11
|
+
import { useDocumentListEffect } from "@voplus/morpho-document-core";
|
11
12
|
import { useTaskListEffect } from "../../../../data/task";
|
12
13
|
const WorkTabs = (props) => {
|
13
14
|
const { id, propertie } = props;
|
@@ -15,6 +16,7 @@ const WorkTabs = (props) => {
|
|
15
16
|
/**Tabs 当前激活 tab 面板的 key */
|
16
17
|
const [activeKey, setActiveKey] = useState(propertie ? "Properties" : "Activities");
|
17
18
|
const [taskTotals, setTaskTotals] = useState(0);
|
19
|
+
const [docTotals, setDocTotals] = useState(0);
|
18
20
|
useEffect(() => {
|
19
21
|
setActiveKey(propertie ? "Properties" : "Activities");
|
20
22
|
}, [props.id]);
|
@@ -25,6 +27,13 @@ const WorkTabs = (props) => {
|
|
25
27
|
{ c: "Members", o: "contains", l: "And", v1: JSON.stringify([user.info.unit.id]) }
|
26
28
|
],
|
27
29
|
});
|
30
|
+
useDocumentListEffect(null, (result, total) => setDocTotals(total || 0), {
|
31
|
+
Total: true, List: false,
|
32
|
+
Filters: [
|
33
|
+
{ c: "ParentNodeId", o: "=", l: "And", v1: id },
|
34
|
+
{ c: "Type", o: "!contains", l: "And", v1: '["Task"]' }
|
35
|
+
],
|
36
|
+
});
|
28
37
|
return observe(() => (React.createElement(Tabs, { activeKey: activeKey, className: "work-tabs", onChange: onChange },
|
29
38
|
propertie &&
|
30
39
|
React.createElement(Tabs.TabPane, { tab: "Properties", key: "Properties" }, activeKey === "Properties" && React.createElement(WorksProperties, { id: id })),
|
@@ -34,7 +43,7 @@ const WorkTabs = (props) => {
|
|
34
43
|
React.createElement(Badge, { count: taskTotals, className: "site-badge-count" })), key: "Tasks" }, activeKey === "Tasks" && (React.createElement(WorkTasksTab, { id: id }))),
|
35
44
|
React.createElement(Tabs.TabPane, { tab: React.createElement(React.Fragment, null,
|
36
45
|
"Documents",
|
37
|
-
React.createElement(Badge, { count:
|
46
|
+
React.createElement(Badge, { count: docTotals, className: "site-badge-count" })), key: "Documents" }, activeKey === "Documents" && (React.createElement(DocumentList, { id: id, multiple: true, exclude: ["Task"] }))),
|
38
47
|
React.createElement(Tabs.TabPane, { tab: "QA", key: "QA" }, activeKey === "QA" && React.createElement(WorkQATab, { id: id })))));
|
39
48
|
/**切换面板的回调*/
|
40
49
|
function onChange(activeKey) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkTabs/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,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkTabs/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,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGnD,OAAO,WAAW,MAAM,gEAAgE,CAAC;AACzF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,eAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAA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AAS,KAAK,WAAW,IAAI,CAC1B,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,QAAC,OAAO,EAAE,CAAC,MAAM,CAAC,GAAI,CACvD,CACU;QACf,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,IAAI,EAAC,GAAG,EAAC,IAAI,IAC1B,SAAS,KAAK,IAAI,IAAI,oBAAC,SAAS,IAAC,EAAE,EAAE,EAAE,GAAI,CACjC,CACZ,CACV,CAAC,CAAC;IAEH,YAAY;IACZ,SAAS,QAAQ,CAAC,SAAiB;QAC/B,YAAY,CAAC,SAAS,CAAC,CAAC;IAC5B,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
@@ -11,13 +11,15 @@ const WorksProperties = (props) => {
|
|
11
11
|
const { user } = useApplicationContext();
|
12
12
|
const noData = (React.createElement("span", { className: "no-data" }, "no data"));
|
13
13
|
return observe(() => {
|
14
|
-
var _a;
|
14
|
+
var _a, _b;
|
15
15
|
return (React.createElement("div", { className: "work-roperties" },
|
16
|
+
React.createElement("h2", null, (_a = work.workType) === null || _a === void 0 ? void 0 : _a.name),
|
16
17
|
React.createElement(Form, { labelAlign: "left", labelCol: { span: 8 }, scrollToFirstError: true },
|
17
18
|
React.createElement(Form.Item, { label: "No" }, work.no || noData),
|
18
19
|
React.createElement(Form.Item, { label: "Type" }, work.type || noData),
|
19
20
|
React.createElement(Form.Item, { label: "Status" }, work.status || noData),
|
20
|
-
React.createElement(Form.Item, { label: "
|
21
|
+
React.createElement(Form.Item, { label: "Contact" }),
|
22
|
+
React.createElement(Form.Item, { label: "Folder" }, ((_b = work.folder) === null || _b === void 0 ? void 0 : _b.name) || noData),
|
21
23
|
React.createElement(Form.Item, { label: "Due" }, work.due ? moment(work.due).format("DD MMM yyyy") : noData),
|
22
24
|
React.createElement(Form.Item, { label: "Owner" },
|
23
25
|
React.createElement(AvatarList, { editable: false })))));
|
@@ -1 +1 @@
|
|
1
|
-
{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AAI,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,EAAE,IAAI,MAAM,CACV;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,MAAM,IAAI,MAAM,CACd;gBACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,SAAS,GAEd;gBACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,IACpB,CAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,IAAI,KAAI,MAAM,CACpB;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,QAAQ,EAAE,KAAK,GAAI,CACvB,CACT,CACL,CACT,CAAA;KAAA,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { useWork, useWorkStore } from "../../../../data/work";
|
2
|
+
import { useDocumentMenuContext, } from "@voplus/morpho-document-core";
|
3
|
+
import { Button } from "@voplus/antd";
|
4
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
5
|
+
import React from "react";
|
6
|
+
import { faVoteYea } from "@fortawesome/pro-light-svg-icons";
|
7
|
+
import { observe } from "@voplus/morpho-ui";
|
8
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
9
|
+
const Accept = (props) => {
|
10
|
+
const { disabled, action } = props;
|
11
|
+
const context = useDocumentMenuContext();
|
12
|
+
const { user } = useApplicationContext();
|
13
|
+
const store = useWorkStore();
|
14
|
+
const document = useWork(context.id, {
|
15
|
+
reload: (i) => !i.requester || !i.accepters,
|
16
|
+
includes: "requester,accepters"
|
17
|
+
});
|
18
|
+
return observe(() => {
|
19
|
+
var _a;
|
20
|
+
return document.workStatus == "New" && ((_a = document.accepters) === null || _a === void 0 ? void 0 : _a.some(i => i.id === user.info.id)) ? (React.createElement(Button, { type: "link", disabled: disabled, onClick: onClick },
|
21
|
+
React.createElement(FAIcon, { icon: faVoteYea }),
|
22
|
+
React.createElement("span", null, "Accept"))) : null;
|
23
|
+
});
|
24
|
+
function onClick() {
|
25
|
+
!!action
|
26
|
+
? action()
|
27
|
+
: store.accept(context.id);
|
28
|
+
}
|
29
|
+
};
|
30
|
+
export default Accept;
|
31
|
+
//# sourceMappingURL=Accept.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Accept.js","sourceRoot":"","sources":["../../../../../src/modules/work/controls/WorkMenu/Accept.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpE,OAAO,EAEH,sBAAsB,GACzB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB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Context, } from "@voplus/morpho-document-core";
|
3
|
+
import { Button } from "@voplus/antd";
|
4
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
5
|
+
import React from "react";
|
6
|
+
import { faVoteNay } from "@fortawesome/pro-light-svg-icons";
|
7
|
+
import { observe } from "@voplus/morpho-ui";
|
8
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
9
|
+
const Reject = (props) => {
|
10
|
+
const { disabled, action } = props;
|
11
|
+
const context = useDocumentMenuContext();
|
12
|
+
const { user } = useApplicationContext();
|
13
|
+
const store = useWorkStore();
|
14
|
+
const document = useWork(context.id, {
|
15
|
+
reload: (i) => !i.requester || !i.accepters,
|
16
|
+
includes: "requester,accepters"
|
17
|
+
});
|
18
|
+
return observe(() => {
|
19
|
+
var _a;
|
20
|
+
return document.workStatus == "New" && ((_a = document.accepters) === null || _a === void 0 ? void 0 : _a.some(i => i.id === user.info.id)) ? (React.createElement(Button, { type: "link", disabled: disabled, onClick: onClick },
|
21
|
+
React.createElement(FAIcon, { icon: faVoteNay }),
|
22
|
+
React.createElement("span", null, "Reject"))) : null;
|
23
|
+
});
|
24
|
+
function onClick() {
|
25
|
+
!!action
|
26
|
+
? action()
|
27
|
+
: store.reject(context.id);
|
28
|
+
}
|
29
|
+
};
|
30
|
+
export default Reject;
|
31
|
+
//# sourceMappingURL=Reject.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Reject.js","sourceRoot":"","sources":["../../../../../src/modules/work/controls/WorkMenu/Reject.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpE,OAAO,EAEH,sBAAsB,GACzB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;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C;AACL,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { useWork, useWorkStore } from "../../../../data/work";
|
2
|
+
import React from "react";
|
3
|
+
import { useDocumentMenuContext, } from "@voplus/morpho-document-core";
|
4
|
+
import { Button } from "@voplus/antd";
|
5
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
6
|
+
import { faFileImport } from "@fortawesome/pro-light-svg-icons";
|
7
|
+
import { observe } from "@voplus/morpho-ui";
|
8
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
9
|
+
const Send = (props) => {
|
10
|
+
const { disabled, action } = props;
|
11
|
+
const context = useDocumentMenuContext();
|
12
|
+
const { user } = useApplicationContext();
|
13
|
+
const store = useWorkStore();
|
14
|
+
const document = useWork(context.id, {
|
15
|
+
reload: (i) => !i.requester || !i.accepters,
|
16
|
+
includes: "requester,accepters"
|
17
|
+
});
|
18
|
+
return observe(() => {
|
19
|
+
var _a;
|
20
|
+
return document.workStatus == "Draft" && ((_a = document.requester) === null || _a === void 0 ? void 0 : _a.id) === user.info.id ? (React.createElement(Button, { type: "link", disabled: disabled, onClick: onClick },
|
21
|
+
React.createElement(FAIcon, { icon: faFileImport }),
|
22
|
+
React.createElement("span", null, "Send"))) : null;
|
23
|
+
});
|
24
|
+
function onClick() {
|
25
|
+
!!action
|
26
|
+
? action()
|
27
|
+
: store.send(context.id);
|
28
|
+
}
|
29
|
+
};
|
30
|
+
export default Send;
|
31
|
+
//# sourceMappingURL=Send.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Send.js","sourceRoot":"","sources":["../../../../../src/modules/work/controls/WorkMenu/Send.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpE,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAEN,sBAAsB,GACtB,MAAM,8BAA8B,CAAC;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AAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAC3B,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { Access, Delete, Lock, Move, Notifications, OpenReferenceView, Paste, Publish, PublishLock, Unlock, } from "@voplus/morpho-document/es/controls/DocumentMenu/items";
|
2
|
+
import { DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-core";
|
3
|
+
import React, { useMemo } from "react";
|
4
|
+
import Accept from "./Accept";
|
5
|
+
import Reject from "./Reject";
|
6
|
+
import Send from "./Send";
|
7
|
+
import classnames from "classnames";
|
8
|
+
const WorkMenu = (props) => {
|
9
|
+
const context = useMemo(() => new DocumentMenuState(props.id), [props.id]);
|
10
|
+
return (React.createElement("div", { className: classnames("document-menu", props.className) },
|
11
|
+
React.createElement(DocumentMenuContext.Provider, { value: context },
|
12
|
+
React.createElement(Send, null),
|
13
|
+
React.createElement(Accept, null),
|
14
|
+
React.createElement(Reject, null),
|
15
|
+
React.createElement(Move, null),
|
16
|
+
React.createElement(Paste, null),
|
17
|
+
React.createElement(Lock, null),
|
18
|
+
React.createElement(Unlock, null),
|
19
|
+
React.createElement(Publish, null),
|
20
|
+
React.createElement(PublishLock, null),
|
21
|
+
React.createElement(Access, null),
|
22
|
+
React.createElement(Notifications, null),
|
23
|
+
React.createElement(OpenReferenceView, null),
|
24
|
+
React.createElement(Delete, { closeAside: props.closeAside }))));
|
25
|
+
};
|
26
|
+
export default WorkMenu;
|
27
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/controls/WorkMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,MAAM,EACN,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,aAAa,EACb,iBAAiB,EACjB,KAAK,EACL,OAAO,EACP,WAAW,EAEX,MAAM,GACT,MAAM,wDA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(0 0 0 / 15%) !important;
|
7
6
|
}
|
8
7
|
.work-context {
|
9
8
|
display: flex;
|
@@ -15,7 +15,6 @@ const WorkspaceCardList = (props) => {
|
|
15
15
|
/** 建立 ListView 和useWorkspaceListEffect所需的ListDataState. 会根据state.id重建所以不需reset. */
|
16
16
|
const list = useCreateListDataState({
|
17
17
|
filterDefaults: {
|
18
|
-
includes: "tags",
|
19
18
|
filters: props.roles
|
20
19
|
? [{ c: "Roles", o: "contains", l: "And", v1: 'Member' }]
|
21
20
|
: [],
|
@@ -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;AAExC,OAAO,kBAAkB,MAAM,kDAAkD,CAAC;AAClF,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,2DAA2D;AAC3D,MAAM,iBAAiB,GAAG,CAAC,KAO1B,EAAE,EAAE;IACD,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACzC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IAE1D,mFAAmF;IACnF,MAAM,IAAI,GAAG,sBAAsB,CAC/B;QACI,cAAc,EAAE;YACZ,
|
1
|
+
{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gB;;QACjC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAClB,MAAA,KAAK,CAAC,WAAW,+CAAjB,KAAK,EAAe,IAAI,CAAC,CAAC;IAC9B,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
@@ -1,13 +1,14 @@
|
|
1
1
|
import "./index.less";
|
2
2
|
import { InlineEdit, observe } from "@voplus/morpho-ui";
|
3
|
+
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
3
4
|
import React, { useEffect, useState } from "react";
|
4
5
|
import { useWorkspace, useWorkspaceStore } from "../../../../data/workspace";
|
5
6
|
import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
|
6
|
-
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
7
7
|
import { State } from "./state";
|
8
|
-
import
|
8
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
9
9
|
import WorkspaceCompletedWorksChart from "../../controls/WorkspaceCompletedWorksChart";
|
10
10
|
import WorkspaceMenu from "../../controls/WorkspaceMenu";
|
11
|
+
import WorkspaceTabs from "../WorkspaceTabs";
|
11
12
|
import { runInAction } from "mobx";
|
12
13
|
import { useApplicationContext } from "@voplus/morpho-data";
|
13
14
|
import { useDocumentStore } from "@voplus/morpho-document-core";
|
@@ -28,13 +29,18 @@ const WorkspacePropertiesView = (props) => {
|
|
28
29
|
React.createElement("div", { className: "workspace-header" },
|
29
30
|
React.createElement("div", { className: "workspace-name" },
|
30
31
|
React.createElement(InlineEdit, { defaultValue: workspace.name, content: (v) => (React.createElement("div", null, workspace.name)), onSave: (value) => state.save(value, workspace.name, { Name: value }) }),
|
31
|
-
React.createElement(
|
32
|
+
React.createElement("div", { className: "tools-bar" },
|
33
|
+
React.createElement(ToolBar, { id: id, showMenu: false },
|
34
|
+
React.createElement(Open, { url: `/workSpace/${id}` }),
|
35
|
+
React.createElement(WorkspaceMenu, { id: id, closeAside: true })))),
|
32
36
|
React.createElement(AvatarList, { organizationId: user.info.organizationId, list: state.members, multiple: true, onChange: onChange })),
|
33
37
|
React.createElement(WorkspaceCompletedWorksChart, { id: props.id }),
|
34
|
-
React.createElement(
|
38
|
+
React.createElement(WorkspaceTabs, { id: id }))))));
|
35
39
|
async function onChange(ids, members) {
|
36
40
|
await store.edit(id, { data: { MemberIds: ids }, error: "message" });
|
37
|
-
runInAction(() => {
|
41
|
+
runInAction(() => {
|
42
|
+
state.members = members;
|
43
|
+
});
|
38
44
|
}
|
39
45
|
};
|
40
46
|
export default WorkspacePropertiesView;
|
@@ -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,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;
|
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,sD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";
|
2
|
+
import React, { useEffect, useState } from "react";
|
3
|
+
import ActivityLog from "@voplus/morpho-document/es/components/ActivityLog/ActivityLog2";
|
4
|
+
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
5
|
+
import SubWorkList from "../../../work/components/SubWorkList";
|
6
|
+
import WorkTypeList from "../../../worktype/components/WorkTypeList";
|
7
|
+
import { observe } from "@voplus/morpho-ui";
|
8
|
+
const WorkspaceTabs = (props) => {
|
9
|
+
const { id } = props;
|
10
|
+
/**Tabs 当前激活 tab 面板的 key */
|
11
|
+
const [activeKey, setActiveKey] = useState("WorkTypes");
|
12
|
+
useEffect(() => {
|
13
|
+
setActiveKey("WorkTypes");
|
14
|
+
}, [props.id]);
|
15
|
+
return observe(() => (React.createElement(Tabs, { activeKey: activeKey, className: "work-tabs", onChange: onChange },
|
16
|
+
React.createElement(Tabs.TabPane, { tab: "Work Types", key: "WorkTypes" }, activeKey === "WorkTypes" && React.createElement(WorkTypeList, { workspaceId: id })),
|
17
|
+
React.createElement(Tabs.TabPane, { tab: "Works", key: "Works" }, activeKey === "Works" && React.createElement(SubWorkList, null)),
|
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" && (React.createElement(DocumentList, { id: id, multiple: true }))))));
|
20
|
+
/**切换面板的回调*/
|
21
|
+
function onChange(activeKey) {
|
22
|
+
setActiveKey(activeKey);
|
23
|
+
}
|
24
|
+
};
|
25
|
+
export default WorkspaceTabs;
|
26
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +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,SA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AW,IACxC,SAAS,KAAK,WAAW,IAAI,CAC1B,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,SAAG,CACpC,CACU,CACZ,CACV,CAAC,CAAC;IAEH,YAAY;IACZ,SAAS,QAAQ,CAAC,SAAiB;QAC/B,YAAY,CAAC,SAAS,CAAC,CAAC;IAC5B,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
@@ -36,7 +36,7 @@ const WorkspaceDefaultView = () => {
|
|
36
36
|
React.createElement(WorkspaceCompletedWorksChart, { id: id }),
|
37
37
|
React.createElement("h3", null, "Work Types"),
|
38
38
|
React.createElement("div", { className: "my-workSpaces" },
|
39
|
-
React.createElement(WorkTypeCardList, {
|
39
|
+
React.createElement(WorkTypeCardList, { onItemClick: onItemClick }))))));
|
40
40
|
async function onChange(ids, members) {
|
41
41
|
await store.edit(id, { data: { MemberIds: ids }, error: "message" });
|
42
42
|
runInAction(() => {
|
@@ -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;AACnD,OAAO,EAAgB,aAAa,EAAE,MAAM,cAAc,CAAC;AAC3D,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,6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AI,CAAO,EAC3C,MAAM,EAAE,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,GACzE,CACG;gBACN,oBAAC,UAAU,IACV,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"}
|
@@ -62,7 +62,7 @@ const WorkspacePage = () => {
|
|
62
62
|
React.createElement(Route, { path: `${match.path}/home/:id` },
|
63
63
|
React.createElement(WorkspaceDefaultView, null)),
|
64
64
|
React.createElement(Route, { path: `${match.path}/document` },
|
65
|
-
React.createElement(DocumentPage,
|
65
|
+
React.createElement(DocumentPage, null)),
|
66
66
|
React.createElement(Route, { path: `${match.path}/workstatus/:status/:active?` },
|
67
67
|
React.createElement(Works, { state: state })),
|
68
68
|
React.createElement(Route, { path: `${match.path}/worktype/:types/:active?` },
|
@@ -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;AACjG,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEnF,OAAO,YAAY,MAAM,+CAA+C,CAAC;AACzE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAE7E,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,OAAO,MAAM,8BAA8B,CAAC;AACnD,OAAO,KAAK,MAAM,kCAAkC,CAAC;AACrD,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,aAAa,GAAG,GAAG,EAAE;IAC1B,MAAM,KAAK,GAAG,aAAa,EAAE,CAAC;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AAG,CACjB;YACR,oBAAC,KAAK,IAAC,IAAI,EAAE,GAAG,KAAK,CAAC,IAAI,WAAW;gBAEpC,oBAAC,YAAY,OAAG,CACT;YACR,oBAAC,KAAK,IAAC,IAAI,EAAE,GAAG,KAAK,CAAC,IAAI,8BAA8B;gBAEvD,oBAAC,KAAK,IAAC,KAAK,EAAE,KAAK,GAAI,CAChB;YACR,oBAAC,KAAK,IAAC,IAAI,EAAE,GAAG,KAAK,CAAC,IAAI,2BAA2B;gBAEpD,oBAAC,KAAK,IAAC,KAAK,EAAE,KAAK,GAAI,CAChB;YACR,oBAAC,QAAQ,IAAC,EAAE,EAAE,GAAG,KAAK,CAAC,IAAI,OAAO,GAAI,CAC9B,CACI,CACd,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import "./index.less";
|
3
|
+
declare const NewTypeForm: (props: {
|
4
|
+
workspaceId: string;
|
5
|
+
className?: string | undefined;
|
6
|
+
block?: boolean | undefined;
|
7
|
+
onSave?: ((params?: any) => void) | undefined;
|
8
|
+
onCancel?: (() => void) | undefined;
|
9
|
+
}) => JSX.Element;
|
10
|
+
export default NewTypeForm;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import React, { useState } from "react";
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
3
|
+
import { runInAction } from "mobx";
|
4
|
+
import { Col, Input, Row, Spin, message } from "@voplus/antd";
|
5
|
+
import { State } from "./state";
|
6
|
+
import { useWorkTypeStore } from "../../../../data/worktype";
|
7
|
+
import "./index.less";
|
8
|
+
const NewTypeForm = (props) => {
|
9
|
+
const worktype = useWorkTypeStore();
|
10
|
+
const [state] = useState(new State({ workspaceId: props.workspaceId }));
|
11
|
+
return observe(() => (React.createElement(React.Fragment, null,
|
12
|
+
React.createElement(Spin, { spinning: !!state.loading },
|
13
|
+
React.createElement(Row, { justify: "space-between" },
|
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 })))))));
|
16
|
+
async function onSubmit() {
|
17
|
+
var _a;
|
18
|
+
if (!state.params.Name)
|
19
|
+
return message.warning("Title is required");
|
20
|
+
runInAction(() => (state.loading = true));
|
21
|
+
const res = await worktype.create({
|
22
|
+
data: { ...state.params, workspaceId: props.workspaceId },
|
23
|
+
error: "message",
|
24
|
+
});
|
25
|
+
(_a = props.onSave) === null || _a === void 0 ? void 0 : _a.call(props);
|
26
|
+
runInAction(() => {
|
27
|
+
state.loading = false;
|
28
|
+
state.params = state.Params;
|
29
|
+
});
|
30
|
+
}
|
31
|
+
function onKeyDown(e) {
|
32
|
+
if (e.keyCode !== 27)
|
33
|
+
return;
|
34
|
+
onCancel();
|
35
|
+
}
|
36
|
+
// cancel add task
|
37
|
+
function onCancel() {
|
38
|
+
state.params = state.Params;
|
39
|
+
if (props.onCancel)
|
40
|
+
props.onCancel();
|
41
|
+
}
|
42
|
+
};
|
43
|
+
export default NewTypeForm;
|
44
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +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,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA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