@voplus/morpho-workspace 7.0.7 → 7.0.9
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/modules/board/pages/BoardPage/index.js +0 -4
- package/es/modules/board/pages/BoardPage/index.js.map +1 -1
- package/es/modules/meeting/pages/MeetingDefaultView/index.js +3 -22
- package/es/modules/meeting/pages/MeetingDefaultView/index.js.map +1 -1
- package/es/modules/meeting/pages/MeetingListView/index.js +5 -19
- package/es/modules/meeting/pages/MeetingListView/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskDefaultView/index.js +3 -25
- package/es/modules/tasks/pages/TaskDefaultView/index.js.map +1 -1
- package/es/modules/work/pages/WorkDefaultView/index.js +6 -27
- package/es/modules/work/pages/WorkDefaultView/index.js.map +1 -1
- package/package.json +1 -2
|
@@ -4,17 +4,13 @@ import { useBoard } from "../../../../data/board";
|
|
|
4
4
|
import { observe } from "@voplus/morpho-ui";
|
|
5
5
|
import { useParams } from "react-router-dom";
|
|
6
6
|
import { useTabItem } from "@voplus/morpho-data";
|
|
7
|
-
import { useFrame } from "@voplus/morpho-document/es/components/ViewFrame/ViewFrameContext";
|
|
8
7
|
import PathHeader from "@voplus/morpho-document/es/components/ViewFrame/PathHeader";
|
|
9
8
|
import { runInAction } from "mobx";
|
|
10
9
|
import "./index.less";
|
|
11
10
|
const BoardPage = (props) => {
|
|
12
11
|
const params = useParams();
|
|
13
|
-
const frame = useFrame();
|
|
14
12
|
const id = props.id || params.id || "";
|
|
15
13
|
const board = useBoard(id);
|
|
16
|
-
if (frame)
|
|
17
|
-
frame.header = null;
|
|
18
14
|
/** set tab title */
|
|
19
15
|
const tab = useTabItem();
|
|
20
16
|
useEffect(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/pages/BoardPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE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K,CAAC,IAAI,mCAAI,UAAU,CAAC;QACtD,CAAC,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,YAAY;QAC1B,6BAAK,SAAS,EAAC,oBAAoB;YAClC,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,GAAI;YACtB,oBAAC,SAAS,IAAC,EAAE,EAAE,EAAE,GAAI,CAChB,CACD,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,34 +1,15 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import { Space } from "antd";
|
|
1
|
+
import React from "react";
|
|
3
2
|
import { observe } from "@voplus/morpho-ui";
|
|
4
3
|
import { useMeeting } from "../../../../data/meeting";
|
|
5
|
-
import
|
|
6
|
-
import { Publish } from "@voplus/morpho-document/es/controls/DocumentMenu/items";
|
|
7
|
-
import { faEllipsisVerticalSolid, faCalendarDaySolid } from "@voplus/morpho-ui/es/faIcons";
|
|
8
|
-
import { DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-core";
|
|
9
|
-
import { useFrame } from "@voplus/morpho-document/es/components/ViewFrame/ViewFrameContext";
|
|
10
|
-
import DocumentBreadCrumbsPath from "@voplus/morpho-document/es/components/DocumentBreadCrumbsPath";
|
|
11
|
-
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
12
|
-
import SubPasteDropdown from "@voplus/morpho-document/es/controls/DocumentMenu/SubPasteDropdown";
|
|
4
|
+
import DocumentPageHeadDashboard from "@voplus/morpho-document/es/components/DocumentPageHeadDashboard";
|
|
13
5
|
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
14
|
-
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
15
6
|
import MeetingProperties from "../../components/MeetingProperties";
|
|
16
7
|
import MeetingTabs from "../../components/MeetingTabs";
|
|
17
8
|
import styles from "./index.less";
|
|
18
9
|
/** The meeting Page component with router parameters support. */
|
|
19
10
|
const MeetingDefaultView = ({ id }) => {
|
|
20
|
-
const [packUp, setPackUp] = useState(false);
|
|
21
|
-
const frame = useFrame();
|
|
22
|
-
if (frame)
|
|
23
|
-
frame.header = null;
|
|
24
11
|
const meeting = useMeeting(id, { reload: true, includes: "tags,task-number-reports,path" });
|
|
25
|
-
|
|
26
|
-
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["meeting-default-view"], header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faCalendarDaySolid }), title: meeting.name, upAble: true, onPackUp: (up) => setPackUp(up), description: React.createElement(DocumentBreadCrumbsPath, { id: id, packUp: packUp }), rightExtra: React.createElement(DocumentMenuContext.Provider, { value: menuContext },
|
|
27
|
-
React.createElement(Space, { className: "menu-buttons" },
|
|
28
|
-
React.createElement(SubPasteDropdown, null),
|
|
29
|
-
React.createElement(Publish, null))), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
|
|
30
|
-
icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }),
|
|
31
|
-
}, blankMenu: packUp ? [] : ["Publish", "Paste"] }) }), properties: React.createElement(MeetingProperties, { id: id, defaultView: true }) },
|
|
12
|
+
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["meeting-default-view"], header: React.createElement(DocumentPageHeadDashboard, { id: id }), properties: React.createElement(MeetingProperties, { id: id, defaultView: true }) },
|
|
32
13
|
React.createElement(MeetingTabs, { id: id }))));
|
|
33
14
|
};
|
|
34
15
|
export default MeetingDefaultView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/pages/MeetingDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/pages/MeetingDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,yBAAyB,MAAM,iEAAiE,CAAC;AACxG,OAAO,iBAAiB,MAAM,0DAA0D,CAAC;AACzF,OAAO,iBAAiB,MAAM,oCAAoC,CAAC;AACnE,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,iEAAiE;AACjE,MAAM,kBAAkB,GAAG,CAAC,EAAE,EAAE,EAAkB,EAAE,EAAE;IACrD,MAAM,OAAO,GAAG,UAAU,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,+BAA+B,EAAE,CAAC,CAAC;IAE5F,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,iBAAiB,IACjB,SAAS,EAAE,MAAM,CAAC,sBAAsB,CAAC,EACzC,MAAM,EAAE,oBAAC,yBAAyB,IAAC,EAAE,EAAE,EAAE,GAAI,EAC7C,UAAU,EAAE,oBAAC,iBAAiB,IAAC,EAAE,EAAE,EAAE,EAAE,WAAW,SAAG;QAErD,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,GAAI,CACJ,CACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,40 +1,26 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { observe, useAutorunEffect } from "@voplus/morpho-ui";
|
|
3
3
|
import { useTabItem } from "@voplus/morpho-data";
|
|
4
|
-
import { useFrame } from "@voplus/morpho-document/es/components/ViewFrame/ViewFrameContext";
|
|
5
|
-
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
6
4
|
import MeetingList from "../../components/MeetingList";
|
|
7
5
|
import DocumentProperties from "@voplus/morpho-document/es/components/DocumentProperties";
|
|
6
|
+
import DocumentPageHeadDashboard from "@voplus/morpho-document/es/components/DocumentPageHeadDashboard";
|
|
8
7
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
9
|
-
import { useDocument, useMetaStore
|
|
10
|
-
import {
|
|
11
|
-
import { Lock, Unlock } from "@voplus/morpho-document/es/controls/DocumentMenu/items";
|
|
12
|
-
import { FontAwesomeIcon as FAIcon, faEllipsisVerticalSolid, faCalendarDaySolid, } from "@voplus/morpho-ui/es/faIcons";
|
|
8
|
+
import { useDocument, useMetaStore } from "@voplus/morpho-document-core";
|
|
9
|
+
import { FontAwesomeIcon as FAIcon, faCalendarDaySolid } from "@voplus/morpho-ui/es/faIcons";
|
|
13
10
|
import DocumentBreadCrumbsPath from "@voplus/morpho-document/es/components/DocumentBreadCrumbsPath";
|
|
14
|
-
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
15
11
|
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
16
12
|
/** The Meeting Page component with router parameters support. */
|
|
17
13
|
const MeetingListView = ({ id }) => {
|
|
18
14
|
const tab = useTabItem();
|
|
19
|
-
const frame = useFrame();
|
|
20
15
|
const metas = useMetaStore();
|
|
21
16
|
const document = useDocument(id, { includes: "path" });
|
|
22
|
-
if (frame)
|
|
23
|
-
frame.header = null;
|
|
24
|
-
const [packUp, setPackUp] = useState(false);
|
|
25
|
-
const menuContext = useMemo(() => new DocumentMenuState(id), [id]);
|
|
26
17
|
useAutorunEffect(() => {
|
|
27
18
|
var _a;
|
|
28
19
|
tab.title = (_a = document === null || document === void 0 ? void 0 : document.name) !== null && _a !== void 0 ? _a : "Meetings";
|
|
29
20
|
});
|
|
30
21
|
return observe(() => {
|
|
31
22
|
var _a;
|
|
32
|
-
return (React.createElement(DefaultViewLayout, { className: "document-list-view", header: React.createElement(
|
|
33
|
-
React.createElement(Space, { className: "menu-buttons" },
|
|
34
|
-
React.createElement(Lock, null),
|
|
35
|
-
React.createElement(Unlock, null))), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
|
|
36
|
-
icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }),
|
|
37
|
-
}, blankMenu: packUp ? [] : ["Lock", "Unlock"] }) }), properties: React.createElement(Scrollbars, { autoHide: true },
|
|
23
|
+
return (React.createElement(DefaultViewLayout, { className: "document-list-view", header: React.createElement(DocumentPageHeadDashboard, { id: id, avatarIcon: document.name ? metas.getIcon(document) : React.createElement(FAIcon, { icon: faCalendarDaySolid }), title: (_a = document.name) !== null && _a !== void 0 ? _a : "Meeting", description: document.name ? (React.createElement(DocumentBreadCrumbsPath, { id: id, packUp: false })) : ("View all your meetings in one streamlined dashboard.") }), properties: React.createElement(Scrollbars, { autoHide: true },
|
|
38
24
|
React.createElement("div", { className: "properties-list document-properties-list" },
|
|
39
25
|
React.createElement(DocumentProperties, { id: id }))) },
|
|
40
26
|
React.createElement(MeetingList, { parentId: id })));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/pages/MeetingListView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/pages/MeetingListView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,kBAAkB,MAAM,0DAA0D,CAAC;AAC1F,OAAO,yBAAyB,MAAM,iEAAiE,CAAC;AACxG,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD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AAK,SAAS,EAAC,0CAA0C;oBACxD,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI,CACzB,CACM;YAGd,oBAAC,WAAW,IAAC,QAAQ,EAAE,EAAE,GAAI,CACV,CACpB,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,eAAe,CAAC"}
|
|
@@ -1,36 +1,14 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import { Space } from "antd";
|
|
1
|
+
import React from "react";
|
|
3
2
|
import { observe } from "@voplus/morpho-ui";
|
|
4
3
|
import { Delegate } from "../../controls/TaskMenu/items";
|
|
5
|
-
import
|
|
6
|
-
import { faEllipsisVerticalSolid, faListCheckSolid } from "@voplus/morpho-ui/es/faIcons";
|
|
7
|
-
import { Lock, Unlock } from "@voplus/morpho-document/es/controls/DocumentMenu/items";
|
|
8
|
-
import { useFrame } from "@voplus/morpho-document/es/components/ViewFrame/ViewFrameContext";
|
|
9
|
-
import { useTask, DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-core";
|
|
10
|
-
import DocumentBreadCrumbsPath from "@voplus/morpho-document/es/components/DocumentBreadCrumbsPath";
|
|
11
|
-
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
12
|
-
import SubPasteDropdown from "@voplus/morpho-document/es/controls/DocumentMenu/SubPasteDropdown";
|
|
4
|
+
import DocumentPageHeadDashboard from "@voplus/morpho-document/es/components/DocumentPageHeadDashboard";
|
|
13
5
|
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
14
|
-
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
15
6
|
import TaskProperties from "../../components/TaskProperties";
|
|
16
7
|
import TaskTabs from "../../components/TaskTabs";
|
|
17
8
|
import styles from "./index.less";
|
|
18
9
|
/** The Task Page component with router parameters support. */
|
|
19
10
|
const TaskDefaultView = ({ id }) => {
|
|
20
|
-
|
|
21
|
-
const frame = useFrame();
|
|
22
|
-
if (frame)
|
|
23
|
-
frame.header = null;
|
|
24
|
-
const task = useTask(id, { includes: "path" });
|
|
25
|
-
const menuContext = useMemo(() => new DocumentMenuState(id), [id]);
|
|
26
|
-
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["task-default-view"], header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faListCheckSolid }), title: task.name, upAble: true, onPackUp: (up) => setPackUp(up), description: React.createElement(DocumentBreadCrumbsPath, { id: id, packUp: packUp }), rightExtra: React.createElement(DocumentMenuContext.Provider, { value: menuContext },
|
|
27
|
-
React.createElement(Space, { className: "menu-buttons" },
|
|
28
|
-
React.createElement(SubPasteDropdown, null),
|
|
29
|
-
React.createElement(Delegate, null),
|
|
30
|
-
React.createElement(Lock, null),
|
|
31
|
-
React.createElement(Unlock, null))), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
|
|
32
|
-
icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }),
|
|
33
|
-
}, blankMenu: packUp ? [] : ["Delegate", "Lock", "Unlock", "Paste"] }) }), properties: React.createElement(TaskProperties, { id: id }) },
|
|
11
|
+
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["task-default-view"], header: React.createElement(DocumentPageHeadDashboard, { id: id, actionButtons: React.createElement(Delegate, null), blankMenu: ["Delegate"] }), properties: React.createElement(TaskProperties, { id: id }) },
|
|
34
12
|
React.createElement(TaskTabs, { id: id }))));
|
|
35
13
|
};
|
|
36
14
|
export default TaskDefaultView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/pages/TaskDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/pages/TaskDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,yBAAyB,MAAM,iEAAiE,CAAC;AACxG,OAAO,iBAAiB,MAAM,0DAA0D,CAAC;AACzF,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAC7D,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AACjD,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,8DAA8D;AAC9D,MAAM,eAAe,GAAG,CAAC,EAAE,EAAE,EAAkB,EAAE,EAAE;IAClD,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,iBAAiB,IACjB,SAAS,EAAE,MAAM,CAAC,mBAAmB,CAAC,EACtC,MAAM,EACL,oBAAC,yBAAyB,IAAC,EAAE,EAAE,EAAE,EAAE,aAAa,EAAE,oBAAC,QAAQ,OAAG,EAAE,SAAS,EAAE,CAAC,UAAU,CAAC,GAAI,EAE5F,UAAU,EAAE,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAG,GAAI;QAEvC,oBAAC,QAAQ,IAAC,EAAE,EAAE,EAAE,GAAI,CACD,CACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,38 +1,17 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import { Space } from "antd";
|
|
1
|
+
import React from "react";
|
|
3
2
|
import { observe } from "@voplus/morpho-ui";
|
|
4
|
-
import { useWork } from "../../../../data/work";
|
|
5
3
|
import { Accept, Reject, Send } from "../../controls/WorkMenu/item";
|
|
6
|
-
import
|
|
7
|
-
import { DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-core";
|
|
8
|
-
import { Lock, Unlock } from "@voplus/morpho-document/es/controls/DocumentMenu/items";
|
|
9
|
-
import { useFrame } from "@voplus/morpho-document/es/components/ViewFrame/ViewFrameContext";
|
|
10
|
-
import DocumentBreadCrumbsPath from "@voplus/morpho-document/es/components/DocumentBreadCrumbsPath";
|
|
11
|
-
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
12
|
-
import SubPasteDropdown from "@voplus/morpho-document/es/controls/DocumentMenu/SubPasteDropdown";
|
|
4
|
+
import DocumentPageHeadDashboard from "@voplus/morpho-document/es/components/DocumentPageHeadDashboard";
|
|
13
5
|
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
14
|
-
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
15
6
|
import WorksProperties from "../../components/WorksProperties";
|
|
16
7
|
import WorkTabs from "../../components/WorkTabs";
|
|
17
8
|
import styles from "./index.less";
|
|
18
9
|
/** The Work Page component with router parameters support. */
|
|
19
10
|
const WorkDefaultView = ({ id }) => {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const menuContext = useMemo(() => new DocumentMenuState(id), [id]);
|
|
25
|
-
const work = useWork(id, { includes: "path" });
|
|
26
|
-
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["work-default-view"], header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faBriefcaseSolid }), title: work.name, upAble: true, onPackUp: (up) => setPackUp(up), description: React.createElement(DocumentBreadCrumbsPath, { id: id, packUp: packUp }), rightExtra: React.createElement(DocumentMenuContext.Provider, { value: menuContext },
|
|
27
|
-
React.createElement(Space, { className: "menu-buttons" },
|
|
28
|
-
React.createElement(SubPasteDropdown, null),
|
|
29
|
-
React.createElement(Accept, null),
|
|
30
|
-
React.createElement(Reject, null),
|
|
31
|
-
React.createElement(Send, null),
|
|
32
|
-
React.createElement(Lock, null),
|
|
33
|
-
React.createElement(Unlock, null))), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
|
|
34
|
-
icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }),
|
|
35
|
-
}, blankMenu: packUp ? [] : ["Accept", "Reject", "Send", "Lock", "Unlock", "Paste"] }) }), properties: React.createElement(WorksProperties, { id: id }) },
|
|
11
|
+
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["work-default-view"], header: React.createElement(DocumentPageHeadDashboard, { id: id, actionButtons: React.createElement(React.Fragment, null,
|
|
12
|
+
React.createElement(Accept, null),
|
|
13
|
+
React.createElement(Reject, null),
|
|
14
|
+
React.createElement(Send, null)), blankMenu: ["Accept", "Reject", "Send"] }), properties: React.createElement(WorksProperties, { id: id }) },
|
|
36
15
|
React.createElement(WorkTabs, { id: id }))));
|
|
37
16
|
};
|
|
38
17
|
export default WorkDefaultView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/pages/WorkDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/pages/WorkDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,yBAAyB,MAAM,iEAAiE,CAAC;AACxG,OAAO,iBAAiB,MAAM,0DAA0D,CAAC;AACzF,OAAO,eAAe,MAAM,kCAAkC,CAAC;AAC/D,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AACjD,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,8DAA8D;AAC9D,MAAM,eAAe,GAAG,CAAC,EAAE,EAAE,EAAkB,EAAE,EAAE;IAClD,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,iBAAiB,IACjB,SAAS,EAAE,MAAM,CAAC,mBAAmB,CAAC,EACtC,MAAM,EACL,oBAAC,yBAAyB,IACzB,EAAE,EAAE,EAAE,EACN,aAAa,EACZ;gBACC,oBAAC,MAAM,OAAG;gBACV,oBAAC,MAAM,OAAG;gBACV,oBAAC,IAAI,OAAG,CACN,EAEJ,SAAS,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,GACtC,EAEH,UAAU,EAAE,oBAAC,eAAe,IAAC,EAAE,EAAE,EAAG,GAAI;QAExC,oBAAC,QAAQ,IAAC,EAAE,EAAE,EAAE,GAAI,CACD,CACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voplus/morpho-workspace",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.9",
|
|
4
4
|
"description": "morpho workspace module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@antv/g2": "4.x",
|
|
36
35
|
"@fullcalendar/core": "6.x",
|
|
37
36
|
"@fullcalendar/daygrid": "6.x",
|
|
38
37
|
"@fullcalendar/interaction": "6.x",
|