@voplus/morpho-workspace 1.3.3 → 1.3.4
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/workspace/interfaces.d.ts +8 -0
- package/es/data/workspace/types.d.ts +1 -0
- package/es/data/worktype/interfaces.d.ts +4 -0
- package/es/data/worktype/types.d.ts +1 -0
- package/es/modules/work/components/WorkErrorList/index.js +7 -5
- package/es/modules/work/components/WorkErrorList/index.js.map +1 -1
- package/es/modules/work/components/WorkList/index.js +3 -1
- package/es/modules/work/components/WorkList/index.js.map +1 -1
- package/es/modules/work/components/WorkQATab/index.js +9 -7
- package/es/modules/work/components/WorkQATab/index.js.map +1 -1
- package/es/modules/work/components/WorkQATab/index.less +8 -8
- package/es/modules/work/components/WorkTaskList/index.js +8 -6
- package/es/modules/work/components/WorkTaskList/index.js.map +1 -1
- package/es/modules/work/components/WorkTaskList/index.less +3 -3
- package/es/modules/work/components/WorkTasksTab/index.js +4 -2
- package/es/modules/work/components/WorkTasksTab/index.js.map +1 -1
- package/es/modules/work/components/WorkTasksTab/index.less +2 -2
- package/es/modules/work/components/WorksProperties/index.js +1 -1
- package/es/modules/work/components/WorksProperties/index.js.map +1 -1
- package/es/modules/workspace/components/MyWorkspaces/index.js +9 -7
- package/es/modules/workspace/components/MyWorkspaces/index.js.map +1 -1
- package/es/modules/workspace/components/MyWorkspaces/index.less +2 -2
- package/es/modules/workspace/components/WorkspaceCard/index.js +9 -4
- package/es/modules/workspace/components/WorkspaceCard/index.js.map +1 -1
- package/es/modules/workspace/components/WorkspaceCard/index.less +12 -0
- package/es/modules/workspace/components/WorkspaceCardList/index.js +3 -4
- package/es/modules/workspace/components/WorkspaceCardList/index.js.map +1 -1
- package/es/modules/workspace/components/WorkspaceTabs/index.js +1 -1
- package/es/modules/workspace/components/WorkspaceTabs/index.js.map +1 -1
- package/es/modules/workspace/controls/WorkspaceMenu/index.js +38 -14
- package/es/modules/workspace/controls/WorkspaceMenu/index.js.map +1 -1
- package/es/modules/worktype/components/NewTypeForm/index.js +3 -5
- package/es/modules/worktype/components/NewTypeForm/index.js.map +1 -1
- package/es/modules/worktype/components/NewTypeForm/index.less +5 -2
- package/es/modules/worktype/components/WorkTypeItem/index.js +1 -1
- package/es/modules/worktype/components/WorkTypeItem/index.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeList/index.d.ts +1 -0
- package/es/modules/worktype/components/WorkTypeList/index.js +19 -17
- package/es/modules/worktype/components/WorkTypeList/index.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeList/index.less +7 -0
- package/es/modules/worktype/components/WorkTypeProperties/index.js +24 -3
- package/es/modules/worktype/components/WorkTypeProperties/index.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeProperties/index.less +27 -2
- package/es/modules/worktype/components/WorkTypePropertiesView/index.js +1 -1
- package/es/modules/worktype/components/WorkTypePropertiesView/index.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeTabs/index.js +4 -2
- package/es/modules/worktype/components/WorkTypeTabs/index.js.map +1 -1
- package/es/pages/Routes.js +3 -3
- package/es/pages/Routes.js.map +1 -1
- package/es/pages/Space/components/Tasks/index.js +22 -24
- package/es/pages/Space/components/Tasks/index.js.map +1 -1
- package/es/pages/Space/pages/MySpace/index.js +1 -1
- package/es/pages/Space/pages/MySpace/index.js.map +1 -1
- package/es/pages/Space/pages/MySpace/state.d.ts +3 -2
- package/es/pages/Space/pages/MySpace/state.js +19 -5
- package/es/pages/Space/pages/MySpace/state.js.map +1 -1
- package/es/pages/WorkType/WorkTypeSelect/index.js +5 -1
- package/es/pages/WorkType/WorkTypeSelect/index.js.map +1 -1
- package/package.json +1 -1
- package/es/modules/worktype/controls/ToolBar/index.d.ts +0 -10
- package/es/modules/worktype/controls/ToolBar/index.js +0 -20
- package/es/modules/worktype/controls/ToolBar/index.js.map +0 -1
- package/es/modules/worktype/controls/ToolBar/index.less +0 -55
- package/es/modules/worktype/controls/ToolBar/state.d.ts +0 -36
- package/es/modules/worktype/controls/ToolBar/state.js +0 -57
- package/es/modules/worktype/controls/ToolBar/state.js.map +0 -1
@@ -1,29 +1,49 @@
|
|
1
1
|
import "./index.less";
|
2
2
|
import { Button, Dropdown, Modal } from "@voplus/antd";
|
3
|
-
import {
|
4
|
-
import React, {
|
5
|
-
import {
|
3
|
+
import { useWorkspace, useWorkspaceStore } from "../../../../data/workspace";
|
4
|
+
import React, { useState } from "react";
|
5
|
+
import { faTrashAlt, faUserEdit, faUserLock, faUserUnlock } from "@fortawesome/pro-light-svg-icons";
|
6
|
+
import { observe, useAsideContentContext } from "@voplus/morpho-ui";
|
6
7
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
7
8
|
import { MoreOutlined } from "@ant-design/icons";
|
8
|
-
import
|
9
|
-
import
|
9
|
+
import PermissionModal from "@voplus/morpho-org/es/controls/PermissionModal";
|
10
|
+
import classnames from "classnames";
|
10
11
|
const WorksapceMenu = (props) => {
|
11
|
-
const context = useMemo(() => new DocumentMenuState(props.id), [props.id]);
|
12
12
|
const store = useWorkspaceStore();
|
13
13
|
const asideContext = useAsideContentContext();
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
14
|
+
const [visible, setVisible] = useState(false);
|
15
|
+
const workspace = useWorkspace(props.id, {
|
16
|
+
reload: (i) => !i.actions,
|
17
|
+
includes: "actions"
|
18
|
+
});
|
19
|
+
return observe(() => {
|
20
|
+
var _a, _b, _c;
|
21
|
+
return (React.createElement(Dropdown, { placement: "bottomRight", overlay: React.createElement("div", { className: classnames("workspace-menu", props.className) },
|
22
|
+
((_a = workspace.actions) === null || _a === void 0 ? void 0 : _a.canDelete) &&
|
23
|
+
React.createElement(Button, { type: "link", onClick: onClick },
|
24
|
+
React.createElement(FAIcon, { icon: faTrashAlt, color: "#f5222d" }),
|
25
|
+
React.createElement("span", { className: "delete" }, "Delete")),
|
26
|
+
!((_b = workspace.actions) === null || _b === void 0 ? void 0 : _b.canDelete) && workspace.status === "Active" &&
|
27
|
+
React.createElement(Button, { type: "link", onClick: () => onChangeStatus("Disabled") },
|
28
|
+
React.createElement(FAIcon, { icon: faUserLock }),
|
29
|
+
React.createElement("span", null, "Disabled")),
|
30
|
+
!((_c = workspace.actions) === null || _c === void 0 ? void 0 : _c.canDelete) && workspace.status === "Disabled" &&
|
31
|
+
React.createElement(Button, { type: "link", onClick: () => onChangeStatus("Enable") },
|
32
|
+
React.createElement(FAIcon, { icon: faUserUnlock }),
|
33
|
+
React.createElement("span", null, "Enable")),
|
34
|
+
React.createElement(Button, { type: "link", onClick: () => setVisible(!visible) },
|
35
|
+
React.createElement(FAIcon, { icon: faUserEdit }),
|
36
|
+
React.createElement("span", null, "Access")),
|
37
|
+
visible && React.createElement(PermissionModal, { id: props.id || "", onChange: () => setVisible(!visible) })) },
|
38
|
+
React.createElement(Button, { size: "small", shape: "circle" },
|
39
|
+
React.createElement(MoreOutlined, null))));
|
40
|
+
});
|
21
41
|
function onClick() {
|
22
42
|
/** 如果文件下有子文件, 询问是否删除所有子文件 */
|
23
43
|
Modal.confirm({
|
24
44
|
title: "Do you want to delete this item?",
|
25
45
|
async onOk() {
|
26
|
-
await store.delete([
|
46
|
+
await store.delete([props.id], { DeleteChilds: true });
|
27
47
|
/** 删除后是否关闭Aside */
|
28
48
|
if (!!props.closeAside && (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent))
|
29
49
|
asideContext === null || asideContext === void 0 ? void 0 : asideContext.closeAside();
|
@@ -31,6 +51,10 @@ const WorksapceMenu = (props) => {
|
|
31
51
|
},
|
32
52
|
});
|
33
53
|
}
|
54
|
+
/** Disabled/Enable function */
|
55
|
+
function onChangeStatus(status) {
|
56
|
+
store.edit(props.id, { data: { Status: status }, error: "message" });
|
57
|
+
}
|
34
58
|
};
|
35
59
|
export default WorksapceMenu;
|
36
60
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/controls/WorkspaceMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/controls/WorkspaceMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAc,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACzF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AACpG,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEpE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,eAAe,MAAM,gDAAgD,CAAC;AAC7E,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,aAAa,GAAG,CAAC,KAA+D,EAAE,EAAE;IACzF,MAAM,KAAK,GAAG,iBAAiB,EAAE,CAAC;IAClC,MAAM,YAAY,GAAG,sBAAsB,EAAE,CAAC;IAE9C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,EAAE,EAAE;QACxC,MAAM,EAAE,CAAC,CAAa,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO;QACrC,QAAQ,EAAE,SAAS;KACnB,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,O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AC,UAAU,CAAC,CAAC,OAAO,CAAC,GAAI,CACpF;YAGP,oBAAC,MAAM,IAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAC,QAAQ;gBAClC,oBAAC,YAAY,OAAG,CACR,CACC,CACX,CAAA;KAAA,CAAC,CAAC;IAEH,SAAS,OAAO;QACf,6BAA6B;QAC7B,KAAK,CAAC,OAAO,CAAC;YACb,KAAK,EAAE,kCAAkC;YACzC,KAAK,CAAC,IAAI;gBACT,MAAM,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;gBACvD,mBAAmB;gBACnB,IAAI,CAAC,CAAC,KAAK,CAAC,UAAU,KAAI,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,YAAY,CAAA;oBAAE,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,EAAE,CAAC;gBACjF,OAAO;YACR,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;IAED,+BAA+B;IAC/B,SAAS,cAAc,CAAC,MAAe;QACtC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAA;IACrE,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
@@ -1,18 +1,16 @@
|
|
1
1
|
import React, { useState } from "react";
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
3
3
|
import { runInAction } from "mobx";
|
4
|
-
import {
|
4
|
+
import { Input, Spin, message } from "@voplus/antd";
|
5
5
|
import { State } from "./state";
|
6
6
|
import { useWorkTypeStore } from "../../../../data/worktype";
|
7
7
|
import "./index.less";
|
8
8
|
const NewTypeForm = (props) => {
|
9
9
|
const worktype = useWorkTypeStore();
|
10
10
|
const [state] = useState(new State({ workspaceId: props.workspaceId }));
|
11
|
-
return observe(() => (React.createElement(
|
11
|
+
return observe(() => (React.createElement("div", { className: "new-work-type" },
|
12
12
|
React.createElement(Spin, { spinning: !!state.loading },
|
13
|
-
React.createElement(
|
14
|
-
React.createElement(Col, { flex: 1 },
|
15
|
-
React.createElement(Input, { autoFocus: true, value: state.params.Name, placeholder: "Enter a title for this task", onChange: (e) => runInAction(() => (state.params.Name = e.target.value)), onPressEnter: () => onSubmit(), onKeyDown: onKeyDown })))))));
|
13
|
+
React.createElement(Input, { autoFocus: true, value: state.params.Name, placeholder: "Enter a title for this task", onChange: (e) => runInAction(() => (state.params.Name = e.target.value)), onPressEnter: () => onSubmit(), onKeyDown: onKeyDown })))));
|
16
14
|
async function onSubmit() {
|
17
15
|
var _a;
|
18
16
|
if (!state.params.Name)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/NewTypeForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/NewTypeForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAO,KAAK,EAAO,IAAI,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,cAAc,CAAC;AAEtB,MAAM,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AAK,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"}
|
@@ -16,7 +16,7 @@ const WorkTypeItem = (props) => {
|
|
16
16
|
show: hover,
|
17
17
|
}) },
|
18
18
|
React.createElement(ToolBar, { id: id, showMenu: false },
|
19
|
-
React.createElement(Open, { size: "middle", url: `/
|
19
|
+
React.createElement(Open, { size: "middle", url: `/work-types/${id}` }),
|
20
20
|
React.createElement(WorkTypeMenu, { id: id, size: "middle", closeAside: true }))))));
|
21
21
|
};
|
22
22
|
export default WorkTypeItem;
|
@@ -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,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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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,eAAe,EAAE,EAAE,GAAI;gBAChD,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"}
|
@@ -9,6 +9,7 @@ import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2"
|
|
9
9
|
import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
|
10
10
|
import WorkTypeItem from "../WorkTypeItem";
|
11
11
|
import NewTypeForm from "../NewTypeForm";
|
12
|
+
import "./index.less";
|
12
13
|
const WorkTypeList = (props) => {
|
13
14
|
const [activeId, setActiveId] = useState("");
|
14
15
|
const [showAdd, setShowAdd] = useState(false);
|
@@ -22,23 +23,24 @@ const WorkTypeList = (props) => {
|
|
22
23
|
useRenderOnChange(() => list.filters.options);
|
23
24
|
/** 把ListDataState传给useWorkTypeListEffect,使之可以自動更新loading, hasmore. */
|
24
25
|
useWorkTypeListEffect(list, (result) => list.union(result), list.filters.options);
|
25
|
-
return observe(() => (React.createElement(
|
26
|
-
React.createElement(
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
26
|
+
return observe(() => (React.createElement("div", { className: "work-type-list" },
|
27
|
+
React.createElement(ListDataContext.Provider, { value: list },
|
28
|
+
React.createElement(ListView, { headerProps: {
|
29
|
+
viewTitle: "WorkTypes",
|
30
|
+
sortable: false,
|
31
|
+
onAdd: () => setShowAdd(true),
|
32
|
+
}, formViewTitle: "Add WorkType", renderItem: ({ item, connectDragSource }) => (React.createElement(React.Fragment, null,
|
33
|
+
React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
|
34
|
+
active: activeId === item.id,
|
35
|
+
hoverEffect: "background",
|
36
|
+
hoverBackgroundProps: { color: "#f2f2f2" },
|
37
|
+
}, onClick: () => {
|
38
|
+
var _a;
|
39
|
+
setActiveId(item.id);
|
40
|
+
(_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item);
|
41
|
+
} },
|
42
|
+
React.createElement(WorkTypeItem, { id: item.id })))) }),
|
43
|
+
showAdd && (React.createElement(NewTypeForm, { workspaceId: props.workspaceId, onCancel: () => setShowAdd(false), onSave: () => setShowAdd(false) }))))));
|
42
44
|
};
|
43
45
|
export default WorkTypeList;
|
44
46
|
//# sourceMappingURL=index.js.map
|
@@ -1 +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;
|
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;AACzC,OAAO,cAAc,CAAC;AAEtB,MAAM,YAAY,GAAG,CAAC,KAKrB,EAAE,EAAE;IACJ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;yBAC1C,EACD,OAAO,EAAE,GAAG,EAAE;;4BACb,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;4BACrB,MAAA,KAAK,CAAC,WAAW,+CAAjB,KAAK,EAAe,IAAI,CAAC,CAAC;wBAC3B,CAAC;wBAED,oBAAC,YAAY,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,CACV,CACJ,CACjB,GACA;YACD,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,CACtB,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
@@ -1,16 +1,21 @@
|
|
1
1
|
import React, { useState } from "react";
|
2
|
-
import { Form } from "@voplus/antd";
|
2
|
+
import { Form, Button } from "@voplus/antd";
|
3
3
|
import { InlineEdit, observe } from "@voplus/morpho-ui";
|
4
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
5
|
+
import { faMinusCircle } from "@fortawesome/pro-light-svg-icons";
|
4
6
|
import DocumentSelectDialog from "@voplus/morpho-document/es/components/DocumentSelectDialog";
|
5
7
|
import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
|
6
8
|
import { useApplicationContext } from "@voplus/morpho-data";
|
7
9
|
import { useWorkType, useWorkTypeStore } from "../../../../data/worktype";
|
10
|
+
import DocumentQuickViewDialog from "@voplus/morpho-document/es/components/DocumentQuickViewDialog";
|
8
11
|
import { State } from "./state";
|
9
12
|
import { runInAction } from "mobx";
|
10
13
|
import "./index.less";
|
11
14
|
const WorkTypeProperties = (props) => {
|
12
15
|
const store = useWorkTypeStore();
|
13
16
|
const [state] = useState(new State(store));
|
17
|
+
const [visible, setVisible] = useState(false);
|
18
|
+
const [ids, setIds] = useState("");
|
14
19
|
const worktype = useWorkType(props.id);
|
15
20
|
state.update(worktype);
|
16
21
|
const [form] = Form.useForm();
|
@@ -28,7 +33,18 @@ const WorkTypeProperties = (props) => {
|
|
28
33
|
return (React.createElement("div", null, ((_a = worktype.sequence) === null || _a === void 0 ? void 0 : _a.format) ? worktype.sequence.format : "Add NumberFormat"));
|
29
34
|
}, onSave: (value) => { var _a; return state.save(value, (_a = worktype.sequence) === null || _a === void 0 ? void 0 : _a.format, { Sequence: { format: value } }); } })),
|
30
35
|
React.createElement(Form.Item, { label: "Default Folder" },
|
31
|
-
React.createElement("div", { onClick: () => runInAction(() =>
|
36
|
+
React.createElement("div", { onClick: () => runInAction(() => {
|
37
|
+
var _a;
|
38
|
+
((_a = state.worktype.defaultFolder) === null || _a === void 0 ? void 0 : _a.id)
|
39
|
+
? (state.folderEdit = false)
|
40
|
+
: (state.folderEdit = true);
|
41
|
+
}) }, ((_b = state.worktype.defaultFolder) === null || _b === void 0 ? void 0 : _b.id) ? (React.createElement("div", null,
|
42
|
+
React.createElement("span", { className: "prosemirror-mention-node", onClick: () => {
|
43
|
+
var _a;
|
44
|
+
setVisible(true);
|
45
|
+
setIds((_a = state.worktype.defaultFolder) === null || _a === void 0 ? void 0 : _a.id);
|
46
|
+
} }, `&${state.worktype.defaultFolder.name}`),
|
47
|
+
React.createElement(Button, { type: "text", icon: React.createElement(FAIcon, { icon: faMinusCircle, onClick: () => store.edit(props.id, { data: { DefaultFolderId: "" }, error: "message" }) }) }))) : (React.createElement("span", null, " Add Default Folder ")))),
|
32
48
|
React.createElement(Form.Item, { label: "Documentation" },
|
33
49
|
React.createElement("div", { onClick: () => runInAction(() => (state.documentationEdit = true)) }, ((_c = state.worktype.document) === null || _c === void 0 ? void 0 : _c.name) || "Add Documentation")),
|
34
50
|
React.createElement(Form.Item, { label: "Default Due" },
|
@@ -40,6 +56,10 @@ const WorkTypeProperties = (props) => {
|
|
40
56
|
React.createElement(Form.Item, { label: "Accepters" },
|
41
57
|
React.createElement(AvatarList, { organizationId: user.info.organizationId, multiple: true, buttonText: "Ok", list: worktype.accepters, onChange: (ids) => {
|
42
58
|
store.edit(worktype.id, { data: { AccepterIds: ids }, error: "message" });
|
59
|
+
} })),
|
60
|
+
React.createElement(Form.Item, { label: "Default Owner" },
|
61
|
+
React.createElement(AvatarList, { organizationId: user.info.organizationId, multiple: true, buttonText: "Ok", list: worktype.owners, onChange: (ids) => {
|
62
|
+
store.edit(worktype.id, { data: { OwnerIds: ids }, error: "message" });
|
43
63
|
} }))),
|
44
64
|
state.folderEdit && (React.createElement(DocumentSelectDialog, { multiSelect: false, onCancel: () => runInAction(() => (state.folderEdit = false)), onSelect: (data) => {
|
45
65
|
store.edit(props.id, { data: { DefaultFolderId: data[0].id }, error: "message" });
|
@@ -48,7 +68,8 @@ const WorkTypeProperties = (props) => {
|
|
48
68
|
state.documentationEdit && (React.createElement(DocumentSelectDialog, { multiSelect: false, onCancel: () => runInAction(() => (state.documentationEdit = false)), onSelect: (data) => {
|
49
69
|
store.edit(props.id, { data: { DocumentId: data[0].id }, error: "message" });
|
50
70
|
runInAction(() => (state.documentationEdit = false));
|
51
|
-
} }))
|
71
|
+
} })),
|
72
|
+
React.createElement(DocumentQuickViewDialog, { id: ids, visible: visible, onCancel: () => setVisible(false) })));
|
52
73
|
});
|
53
74
|
};
|
54
75
|
export default WorkTypeProperties;
|
@@ -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,EAAa,MAAM,OAAO,CAAC;AACnD,OAAO,EAAe,IAAI,EAAE,MAAM,cAAc,CAAC;
|
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,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EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GAAI,CACpF,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
@@ -1,5 +1,30 @@
|
|
1
|
-
:global{
|
2
|
-
.work-type-properties{
|
1
|
+
:global {
|
2
|
+
.work-type-properties {
|
3
3
|
padding: 10px 20px;
|
4
4
|
}
|
5
|
+
|
6
|
+
.prosemirror-mention-node {
|
7
|
+
color: rgb(66, 82, 110);
|
8
|
+
cursor: pointer;
|
9
|
+
line-height: 1.714;
|
10
|
+
font-size: 1em;
|
11
|
+
font-weight: normal;
|
12
|
+
word-break: break-word;
|
13
|
+
background: rgba(9, 30, 66, 0.08);
|
14
|
+
border-width: 1px;
|
15
|
+
border-style: solid;
|
16
|
+
border-color: transparent;
|
17
|
+
border-image: initial;
|
18
|
+
border-radius: 20px;
|
19
|
+
padding: 0px 0.3em 2px 0.23em;
|
20
|
+
}
|
21
|
+
|
22
|
+
.ant-btn {
|
23
|
+
left: -15px;
|
24
|
+
top: -10px;
|
25
|
+
}
|
26
|
+
|
27
|
+
.ant-btn-text {
|
28
|
+
color: rgb(247 4 4);
|
29
|
+
}
|
5
30
|
}
|
@@ -30,7 +30,7 @@ const WorkTypePropertiesView = (props) => {
|
|
30
30
|
React.createElement(InlineEdit, { defaultValue: worktype.name, content: (v) => React.createElement("div", null, worktype.name), onSave: (value) => state.save(value, worktype.name, { Name: value }) }),
|
31
31
|
React.createElement("div", { className: "tools-bar" },
|
32
32
|
React.createElement(ToolBar, { id: id, showMenu: false },
|
33
|
-
React.createElement(Open, { url: `/
|
33
|
+
React.createElement(Open, { url: `/work-types/${id}` }),
|
34
34
|
React.createElement(WorkTypeMenu, { id: id, closeAside: true }))))),
|
35
35
|
React.createElement(WorktypeCompleteWorksChart, { id: props.id }),
|
36
36
|
React.createElement(WorkTypePropertiesTabs, { id: id }))))));
|
@@ -1 +1 @@
|
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C,KAAK,CAAC,QAAQ;QACd,6BAAK,SAAS,EAAC,iBAAiB;YAC/B,6BAAK,SAAS,EAAC,eAAe;gBAC7B,oBAAC,UAAU,IACV,YAAY,EAAE,QAAQ,CAAC,IAAI,EAC3B,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,iCAAM,QAAQ,CAAC,IAAI,CAAO,EAC1C,MAAM,EAAE,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,GACxE;gBACF,6BAAK,SAAS,EAAC,WAAW;oBACzB,oBAAC,OAAO,IACP,EAAE,EAAE,EAAE,EACN,QAAQ,EAAE,KAAK;wBAEf,oBAAC,IAAI,IAAC,GAAG,EAAE,eAAe,EAAE,EAAE,GAAI;wBAClC,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CACjC,CACL,CACD,CAOD;QACN,oBAAC,0BAA0B,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI;QAC5C,oBAAC,sBAAsB,IAAC,EAAE,EAAE,EAAE,GAAI,CAClB,CACjB,CACI,CACN,CAAC,CAAC;IAEH,6DAA6D;IAC7D,4EAA4E;IAC5E,qDAAqD;IACrD,IAAI;AACL,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
@@ -1,12 +1,13 @@
|
|
1
|
+
import "./index.less";
|
2
|
+
import { Badge, Tabs } from "@voplus/antd";
|
1
3
|
import React, { useEffect, useState } from "react";
|
2
4
|
import { observe, useAsideContentContext } from "@voplus/morpho-ui";
|
3
|
-
import
|
5
|
+
import ActivityLog from "@voplus/morpho-document/es/components/ActivityLog/ActivityLog2";
|
4
6
|
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
5
7
|
import TaskPropertiesView from "../../../tasks/components/TaskPropertiesView";
|
6
8
|
import WorkTaskList from "../../../work/components/WorkTaskList";
|
7
9
|
import WorkTypeQA from "../WorkTypeQA";
|
8
10
|
import WorkTypeStats from "../WorkTypeStats";
|
9
|
-
import "./index.less";
|
10
11
|
const WorkTypeTabs = (props) => {
|
11
12
|
const { id } = props;
|
12
13
|
/**Tabs 当前激活 tab 面板的 key */
|
@@ -23,6 +24,7 @@ const WorkTypeTabs = (props) => {
|
|
23
24
|
React.createElement(Tabs.TabPane, { tab: React.createElement(React.Fragment, null,
|
24
25
|
"Documents",
|
25
26
|
React.createElement(Badge, { count: 3, className: "site-badge-count" })), key: "Document" }, activeKey === "Document" && React.createElement(DocumentList, { id: id, multiple: true, exclude: ["Task"] })),
|
27
|
+
React.createElement(Tabs.TabPane, { tab: "Activities", key: "Activities" }, activeKey === "Activities" && React.createElement(ActivityLog, { id: id })),
|
26
28
|
React.createElement(Tabs.TabPane, { tab: "QA Setting", key: "QA Setting" }, activeKey === "QA Setting" && React.createElement(WorkTypeQA, { id: id })))));
|
27
29
|
/**切换面板的回调*/
|
28
30
|
function onChange(activeKey) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeTabs/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;AACnD,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEpE,O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
34
|
-
tabPattern: RegExp("/
|
35
|
-
getUrl: (id) => `/
|
33
|
+
route: "/work-types/:id",
|
34
|
+
tabPattern: RegExp("/work-types/[^/]+"),
|
35
|
+
getUrl: (id) => `/work-types/${id}`,
|
36
36
|
component: WorkTypeDefaultView,
|
37
37
|
},
|
38
38
|
WorkspaceDefaultView: {
|
package/es/pages/Routes.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Routes.js","sourceRoot":"","sources":["../../src/pages/Routes.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,kBAAkB,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,eAAe,MAAM,uCAAuC,CAAC;AACpE,OAAO,mBAAmB,MAAM,+CAA+C,CAAC;AAChF,OAAO,oBAAoB,MAAM,iDAAiD,CAAC;AACnF,OAAO,aAAa,MAAM,0CAA0C,CAAA;AAEpE,MAAM,aAAa,GAAG,GAAG,EAAE;IAC1B,OAAO,CACN,oBAAC,MAAM;QACN,oBAAC,KAAK,IACL,IAAI,EAAE,MAAM,CAAC,kBAAkB,CAAC,KAAK,EACrC,KAAK,EAAE,IAAI,EACX,SAAS,EAAE,MAAM,CAAC,kBAAkB,CAAC,SAAS,GAC7C;QACF,oBAAC,KAAK,IACL,IAAI,EAAE,MAAM,CAAC,eAAe,CAAC,KAAK,EAClC,KAAK,EAAE,IAAI,EACX,SAAS,EAAE,MAAM,CAAC,eAAe,CAAC,SAAS,GAC1C;QACF,oBAAC,KAAK,IACL,IAAI,EAAE,MAAM,CAAC,mBAAmB,CAAC,KAAK,EACtC,KAAK,EAAE,IAAI,EACX,SAAS,EAAE,MAAM,CAAC,mBAAmB,CAAC,SAAS,GAC9C;Q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G;SAC5B,CAAC,CAAC;QACH,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,qBAAqB;YAC3B,cAAc,EAAE,MAAM,CAAC,mBAAmB,CAAC,UAAU;YACrD,SAAS,EAAE,oBAAC,aAAa,OAAG;SAC5B,CAAC,CAAC;QACH,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,sBAAsB;YAC5B,cAAc,EAAE,MAAM,CAAC,oBAAoB,CAAC,UAAU;YACtD,SAAS,EAAE,oBAAC,aAAa,OAAG;SAC5B,CAAC,CAAC;QACH,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,SAAS;YACf,cAAc,EAAE,MAAM,CAAC,OAAO,CAAC,UAAU;YACzC,SAAS,EAAE,oBAAC,aAAa,OAAG;SAC5B,CAAC,CAAC;QACH,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,eAAe;YACrB,cAAc,EAAE,MAAM,CAAC,aAAa,CAAC,UAAU;YAC/C,SAAS,EAAE,oBAAC,aAAa,OAAG;SAC5B,CAAC,CAAC;IACJ,CAAC;CACD,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import "./index.less";
|
2
|
-
import { useLayout } from "@voplus/morpho-data";
|
2
|
+
import { useApplicationContext, useLayout } from "@voplus/morpho-data";
|
3
3
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
4
4
|
import React from "react";
|
5
5
|
import { generatePath, useRouteMatch } from "react-router";
|
@@ -17,6 +17,7 @@ import { useTaskListEffect } from "../../../../data/task/hooks";
|
|
17
17
|
const TaskList = (props) => {
|
18
18
|
const match = useRouteMatch();
|
19
19
|
const layout = useLayout();
|
20
|
+
const { user } = useApplicationContext();
|
20
21
|
const documentStore = useDocumentStore();
|
21
22
|
const list = useCreateListDataState({
|
22
23
|
filterDefaults: {
|
@@ -49,30 +50,27 @@ const TaskList = (props) => {
|
|
49
50
|
} },
|
50
51
|
React.createElement(DefaultTaskItem, { id: item.id, memberAlign: "block", connectDragSource: connectDragSource })))) }))));
|
51
52
|
function filters() {
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
let v1 = "";
|
56
|
-
let v2 = "";
|
57
|
-
if (match.params.dueDate !== "today")
|
58
|
-
date = match.params.dueDate;
|
59
|
-
if (match.params.dueDate !== "unscheduled") {
|
60
|
-
v1 = moment().startOf(date).format("YYYY-MM-DD HH:mm:ss");
|
61
|
-
v2 = moment().endOf(date).format("YYYY-MM-DD HH:mm:ss");
|
62
|
-
}
|
63
|
-
else {
|
64
|
-
v1 = moment().add(1, "months").startOf("month").format("YYYY-MM-DD HH:mm:ss");
|
65
|
-
v2 = moment().add(1, "months").endOf("month").format("YYYY-MM-DD HH:mm:ss");
|
66
|
-
}
|
67
|
-
return [
|
68
|
-
{
|
69
|
-
c: "DueDate",
|
70
|
-
o: "between",
|
71
|
-
l: "And",
|
72
|
-
v1: v1,
|
73
|
-
v2: v2,
|
74
|
-
},
|
53
|
+
const filter = [
|
54
|
+
{ c: "Members", o: "contains", l: "And", v1: JSON.stringify([user.info.unit.id]) },
|
55
|
+
{ c: "Status", o: "!=", v1: "Draft", l: "And" }
|
75
56
|
];
|
57
|
+
if (match.params.dueDate) {
|
58
|
+
let date = "day";
|
59
|
+
let v1 = "";
|
60
|
+
let v2 = "";
|
61
|
+
if (match.params.dueDate !== "today")
|
62
|
+
date = match.params.dueDate;
|
63
|
+
if (match.params.dueDate !== "unscheduled") {
|
64
|
+
v1 = moment().startOf(date).format("YYYY-MM-DD HH:mm:ss");
|
65
|
+
v2 = moment().endOf(date).format("YYYY-MM-DD HH:mm:ss");
|
66
|
+
}
|
67
|
+
else {
|
68
|
+
v1 = moment().add(1, "months").startOf("month").format("YYYY-MM-DD HH:mm:ss");
|
69
|
+
v2 = moment().add(1, "months").endOf("month").format("YYYY-MM-DD HH:mm:ss");
|
70
|
+
}
|
71
|
+
filter.push({ c: "DueDate", o: "between", l: "And", v1: v1, v2: v2, });
|
72
|
+
}
|
73
|
+
return filter;
|
76
74
|
}
|
77
75
|
async function moveAfter(id, afterId) {
|
78
76
|
await documentStore.moveAfter(id, afterId);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/Space/components/Tasks/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAgB,SAAS,EAAE,MAAM,qBAAqB,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/Space/components/Tasks/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAgB,qBAAqB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEvF,OAAO,eAAe,MAAM,+DAA+D,CAAC;AAC5F,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AAEtF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,WAAW,MAAM,kDAAkD,CAAC;AAE3E,OAAO,kBAAkB,MAAM,yDAAyD,CAAC;AACzF,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAEhE,MAAM,QAAQ,GAAG,CAA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|
@@ -26,7 +26,7 @@ const MySpace = () => {
|
|
26
26
|
const match = useRouteMatch();
|
27
27
|
const tab = useTabItem();
|
28
28
|
const layout = useLayout();
|
29
|
-
const state = useMemo(() => new State(layout, match.url), []);
|
29
|
+
const state = useMemo(() => new State(layout, match.url, user), []);
|
30
30
|
useEffect(() => {
|
31
31
|
runInAction(() => (tab.title = "My Space"));
|
32
32
|
}, []);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/Space/pages/MySpace/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAiB,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,EAAE,IAAI,EAAY,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAmB,OAAO,EAAY,MAAM,OAAO,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EACN,aAAa,EACb,MAAM,EACN,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,OAAO,GACP,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAExE,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,YAAY,MAAM,+CAA+C,CAAC;AACzE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAG7E,OAAO,aAAa,MAAM,gCAAgC,CAAC;AAE3D,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,OAAO,MAAM,8BAA8B,CAAC;AACnD,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAC3C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