@voplus/morpho-workspace 1.3.1 → 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/notification/interfaces.d.ts +2 -1
- 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/workerror/types.d.ts +4 -0
- 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/notification/components/{MentionNotificationCard → DocumentNotificationCard}/index.d.ts +2 -2
- package/es/modules/notification/components/{MentionNotificationCard → DocumentNotificationCard}/index.js +3 -3
- package/es/modules/notification/components/DocumentNotificationCard/index.js.map +1 -0
- package/es/modules/notification/components/NotificationList/index.js +2 -2
- package/es/modules/notification/components/NotificationList/index.js.map +1 -1
- 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.d.ts +3 -1
- package/es/modules/work/components/WorkList/index.js +35 -11
- 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/WorkTypeProperties/index.js +19 -20
- package/es/modules/worktype/components/WorkTypeProperties/index.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeProperties/state.d.ts +2 -3
- package/es/modules/worktype/components/WorkTypeProperties/state.js +7 -15
- package/es/modules/worktype/components/WorkTypeProperties/state.js.map +1 -1
- 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 +8 -1
- package/es/modules/worktype/components/WorkTypeTabs/index.js +1 -1
- package/es/modules/worktype/components/WorkTypeTabs/index.js.map +1 -1
- 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/modules/worktype/pages/WorkTypeDefaultView/index.less +4 -3
- package/es/pages/Space/components/Tasks/index.d.ts +2 -2
- package/es/pages/Space/components/Tasks/index.js +50 -11
- package/es/pages/Space/components/Tasks/index.js.map +1 -1
- package/es/pages/Space/components/Works/index.d.ts +2 -2
- package/es/pages/Space/components/Works/index.js +13 -37
- package/es/pages/Space/components/Works/index.js.map +1 -1
- package/es/pages/Space/pages/MySpace/index.js +43 -12
- package/es/pages/Space/pages/MySpace/index.js.map +1 -1
- package/es/pages/Space/pages/MySpace/state.d.ts +27 -6
- package/es/pages/Space/pages/MySpace/state.js +114 -24
- package/es/pages/Space/pages/MySpace/state.js.map +1 -1
- package/package.json +1 -1
- package/es/modules/notification/components/MentionNotificationCard/index.js.map +0 -1
- /package/es/modules/notification/components/{MentionNotificationCard → DocumentNotificationCard}/index.less +0 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
import { Tabs } from "@voplus/antd";
|
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 @@
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AAC,GAAG,EAAC,YAAY,IAC1C,SAAS,KAAK,YAAY,IAAI,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,GAAI,CAC3C;QACf,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,WAAW,EAAC,GAAG,EAAC,WAAW,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,M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ePage = () => {
|
|
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;AAC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E,CAAC,EAAE,SAAS,EAAC,kBAAkB,GAAG,CAC3C,CACH,CACJ,CACK,CACI;QAElB,oBAAC,MAAM;YACN,oBAAC,KAAK,IAAC,IAAI,EAAE,GAAG,KAAK,CAAC,IAAI,WAAW;gBAEpC,oBAAC,oBAAoB,OAAG,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,OAA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AC,CAAC,CAAC;QAC1C,MAAM,GAAG,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC;YACjC,IAAI,EAAE,EAAE,GAAG,KAAK,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE;YACzD,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;QACH,MAAA,KAAK,CAAC,MAAM,+CAAZ,KAAK,CAAW,CAAA;QAChB,WAAW,CAAC,GAAG,EAAE;YAChB,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;YACtB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC7B,CAAC,CAAC,CAAC;IACJ,CAAC;IACD,SAAS,SAAS,CAAC,CAAM;QACxB,IAAI,CAAC,CAAC,OAAO,KAAK,EAAE;YAAE,OAAO;QAC7B,QAAQ,EAAE,CAAC;IACZ,CAAC;IACD,kBAAkB;IAClB,SAAS,QAAQ;QAChB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC5B,IAAI,KAAK,CAAC,QAAQ;YAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACtC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { makeObservable, observable } from "mobx";
|
3
|
+
export class State {
|
4
|
+
constructor(_store) {
|
5
|
+
Object.defineProperty(this, "_store", {
|
6
|
+
enumerable: true,
|
7
|
+
configurable: true,
|
8
|
+
writable: true,
|
9
|
+
value: _store
|
10
|
+
});
|
11
|
+
Object.defineProperty(this, "Params", {
|
12
|
+
enumerable: true,
|
13
|
+
configurable: true,
|
14
|
+
writable: true,
|
15
|
+
value: {
|
16
|
+
// workspaceId: "",
|
17
|
+
Name: ""
|
18
|
+
}
|
19
|
+
});
|
20
|
+
Object.defineProperty(this, "params", {
|
21
|
+
enumerable: true,
|
22
|
+
configurable: true,
|
23
|
+
writable: true,
|
24
|
+
value: this.Params
|
25
|
+
});
|
26
|
+
Object.defineProperty(this, "loading", {
|
27
|
+
enumerable: true,
|
28
|
+
configurable: true,
|
29
|
+
writable: true,
|
30
|
+
value: false
|
31
|
+
});
|
32
|
+
makeObservable(this);
|
33
|
+
}
|
34
|
+
}
|
35
|
+
__decorate([
|
36
|
+
observable
|
37
|
+
], State.prototype, "params", void 0);
|
38
|
+
__decorate([
|
39
|
+
observable
|
40
|
+
], State.prototype, "loading", void 0);
|
41
|
+
//# sourceMappingURL=state.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/NewTypeForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElD,MAAM,OAAO,KAAK;IACjB,YAA2B,MAAW;;;;;mBAAX;;QAG3B;;;;mBAAgB;gBACf,mBAAmB;gBACnB,IAAI,EAAE,EAAE;aACR;WAAC;QACU;;;;mBAAgB,IAAI,CAAC,MAAM;WAAC;QAC5B;;;;mBAAiB,KAAK;WAAC;QAPlC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAOD;AAFY;IAAX,UAAU;qCAA6B;AAC5B;IAAX,UAAU;sCAAwB"}
|
@@ -2,15 +2,8 @@
|
|
2
2
|
import "./index.less";
|
3
3
|
import { IWorkType } from "../../../../data/worktype";
|
4
4
|
/** A worktype list view shows worktype in card style. */
|
5
|
-
declare const WorkTypeCardList: {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
/** item onclick */
|
10
|
-
onItemClick?: ((item: IWorkType) => void) | undefined;
|
11
|
-
}): JSX.Element;
|
12
|
-
defaultProps: {
|
13
|
-
type: string;
|
14
|
-
};
|
15
|
-
};
|
5
|
+
declare const WorkTypeCardList: (props: {
|
6
|
+
/** item onclick */
|
7
|
+
onItemClick?: ((item: IWorkType) => void) | undefined;
|
8
|
+
}) => JSX.Element;
|
16
9
|
export default WorkTypeCardList;
|
@@ -2,11 +2,8 @@ import "./index.less";
|
|
2
2
|
import { useWorkTypeListEffect } from "../../../../data/worktype";
|
3
3
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
4
4
|
import React, { useState } from "react";
|
5
|
-
import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
|
6
5
|
import InfiniteScrollView from "@voplus/morpho-ui/es/controls/InfiniteScrollView";
|
7
6
|
import WorkTypeCard from "../WorkTypeCard";
|
8
|
-
import WorkTypeItem from "../WorkTypeItem";
|
9
|
-
import classnames from "classnames";
|
10
7
|
import { observe } from "@voplus/morpho-ui";
|
11
8
|
import { useRenderOnChange } from "@voplus/morpho-ui";
|
12
9
|
/** A worktype list view shows worktype in card style. */
|
@@ -14,7 +11,6 @@ const WorkTypeCardList = (props) => {
|
|
14
11
|
const [active, setActive] = useState(null);
|
15
12
|
const list = useCreateListDataState({
|
16
13
|
filterDefaults: {
|
17
|
-
includes: "tags",
|
18
14
|
filters: [],
|
19
15
|
},
|
20
16
|
}, []);
|
@@ -23,17 +19,10 @@ const WorkTypeCardList = (props) => {
|
|
23
19
|
/** 把ListDataState传给useWorkTypeListEffect,使之可以自動更新loading, hasmore. */
|
24
20
|
useWorkTypeListEffect(list, (result) => list.union(result), list.filters.options);
|
25
21
|
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
26
|
-
React.createElement("div", { className:
|
22
|
+
React.createElement("div", { className: "worktype-list-view" },
|
27
23
|
React.createElement(InfiniteScrollView, { empty: list.isEmpty, loading: list.loading, hasMore: list.hasMore, loadMore: loadMore },
|
28
|
-
React.createElement("div", { className: "worktype-list-content" }, list.data.map((i) => (React.createElement("div", { key: i.id, onClick: () => onItemClick(i) },
|
29
|
-
React.createElement(WorkTypeCard, { id: i.id, active: active === i.id })
|
30
|
-
:
|
31
|
-
React.createElement(DocumentItemFrame, { frameProps: {
|
32
|
-
active: active === i.id,
|
33
|
-
hoverEffect: "background",
|
34
|
-
hoverBackgroundProps: { color: "#f2f2f2" },
|
35
|
-
} },
|
36
|
-
React.createElement(WorkTypeItem, { id: i.id })))))))))));
|
24
|
+
React.createElement("div", { className: "worktype-list-content" }, list.data.map((i) => (React.createElement("div", { key: i.id, onClick: () => onItemClick(i) },
|
25
|
+
React.createElement(WorkTypeCard, { id: i.id, active: active === i.id }))))))))));
|
37
26
|
function loadMore() {
|
38
27
|
list.triggerNextPage();
|
39
28
|
}
|
@@ -43,8 +32,5 @@ const WorkTypeCardList = (props) => {
|
|
43
32
|
(_a = props.onItemClick) === null || _a === void 0 ? void 0 : _a.call(props, item);
|
44
33
|
}
|
45
34
|
};
|
46
|
-
WorkTypeCardList.defaultProps = {
|
47
|
-
type: "default"
|
48
|
-
};
|
49
35
|
export default WorkTypeCardList;
|
50
36
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeCardList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAa,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeCardList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAa,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGxC,OAAO,kBAAkB,MAAM,kDAAkD,CAAC;AAClF,OAAO,YAAY,MAAM,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AC,EAAE,GAAI,CAC9C,CACN,CAAC,CACG,CACc,CAChB,CACoB,CAC3B,CAAC,CAAC;IAEH,SAAS,QAAQ;QAChB,IAAI,CAAC,eAAe,EAAE,CAAC;IACxB,CAAC;IAED,SAAS,WAAW,CAAC,IAAe;;QACnC,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,gBAAgB,CAAC"}
|
@@ -1,15 +1,13 @@
|
|
1
1
|
:global {
|
2
2
|
.worktype-list-view {
|
3
3
|
height: 100%;
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
margin: 8px;
|
11
|
-
}
|
4
|
+
padding: 0 12px;
|
5
|
+
.worktype-list-content {
|
6
|
+
display: flex;
|
7
|
+
flex-wrap: wrap;
|
8
|
+
>div {
|
9
|
+
margin: 8px;
|
12
10
|
}
|
13
11
|
}
|
14
12
|
}
|
15
|
-
}
|
13
|
+
}
|
@@ -1,11 +1,23 @@
|
|
1
1
|
import "./index.less";
|
2
|
-
import React from "react";
|
2
|
+
import React, { useState } from "react";
|
3
|
+
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
4
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
5
|
+
import WorkTypeMenu from "../../controls/WorkTypeMenu";
|
6
|
+
import classnames from "classnames";
|
3
7
|
import { observe } from "@voplus/morpho-ui";
|
4
8
|
import { useWorkType } from "../../../../data/worktype";
|
5
9
|
const WorkTypeItem = (props) => {
|
6
10
|
const { id, active } = props;
|
7
11
|
const worktype = useWorkType(id, { reload: false });
|
8
|
-
|
12
|
+
const [hover, setHover] = useState(false);
|
13
|
+
return observe(() => (React.createElement("div", { className: classnames("worktype-item", { active: active }), onMouseLeave: () => setHover(false), onMouseOver: () => setHover(true) },
|
14
|
+
React.createElement("div", null, worktype.name),
|
15
|
+
React.createElement("div", { className: classnames("hover-operate-icon", {
|
16
|
+
show: hover,
|
17
|
+
}) },
|
18
|
+
React.createElement(ToolBar, { id: id, showMenu: false },
|
19
|
+
React.createElement(Open, { size: "middle", url: `/workType/${id}` }),
|
20
|
+
React.createElement(WorkTypeMenu, { id: id, size: "middle", closeAside: true }))))));
|
9
21
|
};
|
10
22
|
export default WorkTypeItem;
|
11
23
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,MAAM,YAAY,GAAG,CAAC,KAIrB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAC7B,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAG,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IACrD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE1C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BACC,SAAS,EAAE,UAAU,CAAC,eAAe,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EAC1D,YAAY,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,EACnC,WAAW,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;QAEjC,iCAAM,QAAQ,CAAC,IAAI,CAAO;QAC1B,6BACC,SAAS,EAAE,UAAU,CAAC,oBAAoB,EAAE;gBAC3C,IAAI,EAAE,KAAK;aACX,CAAC;YAEF,oBAAC,OAAO,IACP,EAAE,EAAE,EAAE,EACN,QAAQ,EAAE,KAAK;gBAEf,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,aAAa,EAAE,EAAE,GAAI;gBAC9C,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAC,QAAQ,EAAC,UAAU,EAAE,IAAI,GAAI,CAC/C,CACL,CACD,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
@@ -6,6 +6,8 @@
|
|
6
6
|
font-weight: 500;
|
7
7
|
word-break: break-all;
|
8
8
|
padding: 20px;
|
9
|
+
display: flex;
|
10
|
+
align-items: center;
|
9
11
|
// background: transparent;
|
10
12
|
&:after {
|
11
13
|
position: absolute;
|
@@ -15,5 +17,16 @@
|
|
15
17
|
bottom: 0;
|
16
18
|
border-bottom: 1px solid #f2f2f2;
|
17
19
|
}
|
20
|
+
.hover-operate-icon {
|
21
|
+
display: none;
|
22
|
+
position: absolute;
|
23
|
+
right: 20px;
|
24
|
+
.ant-btn:first-child {
|
25
|
+
margin-left: 0;
|
26
|
+
}
|
27
|
+
&.show {
|
28
|
+
display: block;
|
29
|
+
}
|
30
|
+
}
|
18
31
|
}
|
19
32
|
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { IWorkType } from "../../../../data/worktype";
|
3
|
+
declare const WorkTypeList: (props: {
|
4
|
+
workspaceId: string;
|
5
|
+
active?: string | undefined;
|
6
|
+
/** item onclick */
|
7
|
+
onClickItem?: ((item: IWorkType) => void) | undefined;
|
8
|
+
}) => JSX.Element;
|
9
|
+
export default WorkTypeList;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import React, { useState } from "react";
|
2
|
+
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
3
|
+
import { useRenderOnChange } from "@voplus/morpho-ui";
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
5
|
+
import { useAutoUpdateListData } from "../../../../data/worktype/worktype-events";
|
6
|
+
import { useWorkTypeListEffect } from "../../../../data/worktype";
|
7
|
+
// import InfiniteScrollView from "@voplus/morpho-ui/es/controls/InfiniteScrollView";
|
8
|
+
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
9
|
+
import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
|
10
|
+
import WorkTypeItem from "../WorkTypeItem";
|
11
|
+
import NewTypeForm from "../NewTypeForm";
|
12
|
+
const WorkTypeList = (props) => {
|
13
|
+
const [activeId, setActiveId] = useState("");
|
14
|
+
const [showAdd, setShowAdd] = useState(false);
|
15
|
+
const list = useCreateListDataState({
|
16
|
+
filterDefaults: {
|
17
|
+
filters: [],
|
18
|
+
},
|
19
|
+
}, []);
|
20
|
+
useAutoUpdateListData(list, (d) => true);
|
21
|
+
/** 如果 list.filters.options变更了就重渲染,使下一行的useWorkTypeListEffect 可以接收新参数*/
|
22
|
+
useRenderOnChange(() => list.filters.options);
|
23
|
+
/** 把ListDataState传给useWorkTypeListEffect,使之可以自動更新loading, hasmore. */
|
24
|
+
useWorkTypeListEffect(list, (result) => list.union(result), list.filters.options);
|
25
|
+
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
26
|
+
React.createElement(ListView, { headerProps: {
|
27
|
+
viewTitle: "",
|
28
|
+
sortable: false,
|
29
|
+
onAdd: () => setShowAdd(true),
|
30
|
+
}, className: "work-type-list", formViewTitle: "Add WorkType", renderItem: ({ item, connectDragSource }) => (React.createElement(React.Fragment, null,
|
31
|
+
React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
|
32
|
+
active: activeId === item.id,
|
33
|
+
hoverEffect: "background",
|
34
|
+
hoverBackgroundProps: { color: "#f2f2f2" },
|
35
|
+
}, onClick: () => {
|
36
|
+
var _a;
|
37
|
+
setActiveId(item.id);
|
38
|
+
(_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item);
|
39
|
+
} },
|
40
|
+
React.createElement(WorkTypeItem, { id: item.id })))) }),
|
41
|
+
showAdd && (React.createElement(NewTypeForm, { workspaceId: props.workspaceId, onCancel: () => setShowAdd(false), onSave: () => setShowAdd(false) })))));
|
42
|
+
};
|
43
|
+
export default WorkTypeList;
|
44
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAa,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAC7E,qFAAqF;AACrF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,MAAM,YAAY,GA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,KAAK,EAAE,SAAS,EAAE;qBAC1C,EACD,OAAO,EAAE,GAAG,EAAE;;wBACb,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;wBACrB,MAAA,KAAK,CAAC,WAAW,+CAAjB,KAAK,EAAe,IAAI,CAAC,CAAC;oBAC3B,CAAC;oBAED,oBAAC,YAAY,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,CACV,CACJ,CACjB,GACA;QACD,OAAO,IAAI,CACX,oBAAC,WAAW,IACX,WAAW,EAAE,KAAK,CAAC,WAAW,EAC9B,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,EACjC,MAAM,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GAC9B,CACF,CACyB,CAC3B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import React, { useState
|
2
|
-
import {
|
1
|
+
import React, { useState } from "react";
|
2
|
+
import { Form } from "@voplus/antd";
|
3
3
|
import { InlineEdit, observe } from "@voplus/morpho-ui";
|
4
4
|
import DocumentSelectDialog from "@voplus/morpho-document/es/components/DocumentSelectDialog";
|
5
5
|
import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
|
@@ -11,36 +11,35 @@ import "./index.less";
|
|
11
11
|
const WorkTypeProperties = (props) => {
|
12
12
|
const store = useWorkTypeStore();
|
13
13
|
const [state] = useState(new State(store));
|
14
|
-
const
|
15
|
-
state.update(
|
14
|
+
const worktype = useWorkType(props.id);
|
15
|
+
state.update(worktype);
|
16
16
|
const [form] = Form.useForm();
|
17
17
|
const { user } = useApplicationContext();
|
18
|
-
useEffect(() => {
|
19
|
-
|
20
|
-
}, [props.id]);
|
18
|
+
// useEffect(() => {
|
19
|
+
// runInAction(() => (state.defaultdueEdit = worktype.defaultDue ? true : false));
|
20
|
+
// }, [props.id]);
|
21
21
|
return observe(() => {
|
22
22
|
var _a, _b, _c;
|
23
23
|
return (React.createElement("div", { className: "work-type-properties" },
|
24
|
-
React.createElement(Form, { form: form, labelAlign: "left", labelCol: { span:
|
24
|
+
React.createElement(Form, { form: form, labelAlign: "left", labelCol: { span: 11 }, scrollToFirstError: true },
|
25
25
|
React.createElement(Form.Item, { label: "Number Format" },
|
26
|
-
React.createElement(InlineEdit, { defaultValue: (_a =
|
26
|
+
React.createElement(InlineEdit, { defaultValue: (_a = worktype.sequence) === null || _a === void 0 ? void 0 : _a.format, content: (v) => {
|
27
27
|
var _a;
|
28
|
-
return (React.createElement("div", null, ((_a =
|
29
|
-
}, onSave: (value) => { var _a; return state.save(value, (_a =
|
28
|
+
return (React.createElement("div", null, ((_a = worktype.sequence) === null || _a === void 0 ? void 0 : _a.format) ? worktype.sequence.format : "Add NumberFormat"));
|
29
|
+
}, onSave: (value) => { var _a; return state.save(value, (_a = worktype.sequence) === null || _a === void 0 ? void 0 : _a.format, { Sequence: { format: value } }); } })),
|
30
30
|
React.createElement(Form.Item, { label: "Default Folder" },
|
31
|
-
React.createElement("div", { onClick: () => runInAction(() => (state.folderEdit = true)) }, ((_b = state.
|
31
|
+
React.createElement("div", { onClick: () => runInAction(() => (state.folderEdit = true)) }, ((_b = state.worktype.defaultFolder) === null || _b === void 0 ? void 0 : _b.name) || "Add Default Folder")),
|
32
32
|
React.createElement(Form.Item, { label: "Documentation" },
|
33
|
-
React.createElement("div", { onClick: () => runInAction(() => (state.documentationEdit = true)) }, ((_c = state.
|
34
|
-
React.createElement(Form.Item, { label: "Default Due" },
|
35
|
-
|
36
|
-
}, onBlur: () => runInAction(() => (state.defaultdueEdit = false)) })) : (React.createElement("div", { onClick: () => runInAction(() => (state.defaultdueEdit = true)) }, state.contact.defaultDue ? state.contact.defaultDue : "Add Default Due"))),
|
33
|
+
React.createElement("div", { onClick: () => runInAction(() => (state.documentationEdit = true)) }, ((_c = state.worktype.document) === null || _c === void 0 ? void 0 : _c.name) || "Add Documentation")),
|
34
|
+
React.createElement(Form.Item, { label: "Default Due" },
|
35
|
+
React.createElement(InlineEdit, { defaultValue: worktype.defaultDue, content: (v) => (React.createElement("div", null, worktype.defaultDue ? worktype.defaultDue : "Add Default Due")), onSave: (value) => store.edit(worktype.id, { data: { DefaultDue: value }, error: "message" }) })),
|
37
36
|
React.createElement(Form.Item, { label: "Requester" },
|
38
|
-
React.createElement(AvatarList, { organizationId: user.info.organizationId, multiple: true, buttonText: "Ok", list:
|
39
|
-
store.edit(
|
37
|
+
React.createElement(AvatarList, { organizationId: user.info.organizationId, multiple: true, buttonText: "Ok", list: worktype.requester, onChange: (ids) => {
|
38
|
+
store.edit(worktype.id, { data: { RequesterIds: ids }, error: "message" });
|
40
39
|
} })),
|
41
40
|
React.createElement(Form.Item, { label: "Accepters" },
|
42
|
-
React.createElement(AvatarList, { organizationId: user.info.organizationId, multiple: true, buttonText: "Ok", list:
|
43
|
-
store.edit(
|
41
|
+
React.createElement(AvatarList, { organizationId: user.info.organizationId, multiple: true, buttonText: "Ok", list: worktype.accepters, onChange: (ids) => {
|
42
|
+
store.edit(worktype.id, { data: { AccepterIds: ids }, error: "message" });
|
44
43
|
} }))),
|
45
44
|
state.folderEdit && (React.createElement(DocumentSelectDialog, { multiSelect: false, onCancel: () => runInAction(() => (state.folderEdit = false)), onSelect: (data) => {
|
46
45
|
store.edit(props.id, { data: { DefaultFolderId: data[0].id }, error: "message" });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAa,MAAM,OAAO,CAAC;AACnD,OAAO,EAAe,IAAI,EAAE,MAAM,cAAc,CAAC;AACjD,OAA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,EACF,EAAE;oBACH,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,eAAe,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;oBAClF,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC;gBAC/C,CAAC,GACA,CACF;YACA,KAAK,CAAC,iBAAiB,IAAI,CAC3B,oBAAC,oBAAoB,IACpB,WAAW,EAAE,KAAK,EAClB,QAAQ,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC,CAAC,EACpE,QAAQ,EAAE,CACT,IAGG,EACF,EAAE;oBACH,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;oBAC7E,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC,CAAC,CAAC;gBACtD,CAAC,GACA,CACF,CACI,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
@@ -1,12 +1,11 @@
|
|
1
1
|
import { IWorkType, WorkTypeStore } from "../../../../data/worktype";
|
2
2
|
export declare class State {
|
3
3
|
private store;
|
4
|
-
|
5
|
-
defaultdueEdit: boolean;
|
4
|
+
worktype: IWorkType;
|
6
5
|
folderEdit: boolean;
|
7
6
|
documentationEdit: boolean;
|
8
7
|
constructor(store: WorkTypeStore);
|
9
|
-
update(
|
8
|
+
update(worktype: IWorkType): void;
|
10
9
|
/** edit save */
|
11
10
|
save(v: any, name: any, params: Record<string, unknown>): void;
|
12
11
|
}
|