@voplus/morpho-document 6.1.26 → 6.1.27
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/components/DocumentDriveItem/index.d.ts +7 -0
- package/es/components/DocumentDriveItem/index.js +36 -0
- package/es/components/DocumentDriveItem/index.js.map +1 -0
- package/es/components/DocumentDriveItem/index.less +38 -0
- package/es/components/DocumentDriveList/index.d.ts +8 -0
- package/es/components/DocumentDriveList/index.js +42 -0
- package/es/components/DocumentDriveList/index.js.map +1 -0
- package/es/components/DocumentDriveList/index.less +26 -0
- package/es/components/DocumentItem/DocumentItem2.d.ts +5 -0
- package/es/components/DocumentItem/DocumentItem2.js +36 -0
- package/es/components/DocumentItem/DocumentItem2.js.map +1 -0
- package/es/components/DocumentItem/index.less +24 -0
- package/es/components/DocumentList/index.js +9 -10
- package/es/components/DocumentList/index.js.map +1 -1
- package/es/components/DocumentProperties/index.js +8 -4
- package/es/components/DocumentProperties/index.js.map +1 -1
- package/es/components/DocumentPropertiesView/index.less +21 -9
- package/es/components/DocumentSelectDialog/index.js +9 -4
- package/es/components/DocumentSelectDialog/index.js.map +1 -1
- package/es/components/DocumentSelectDialog/state.d.ts +2 -0
- package/es/components/DocumentSelectDialog/state.js +18 -0
- package/es/components/DocumentSelectDialog/state.js.map +1 -1
- package/es/components/DocumentTabs/index.less +26 -0
- package/es/components/DocumentTree/index.d.ts +2 -5
- package/es/components/DocumentTree/index.js +4 -7
- package/es/components/DocumentTree/index.js.map +1 -1
- package/es/controls/ToolBar/buttons/Close.js +3 -3
- package/es/controls/ToolBar/buttons/Close.js.map +1 -1
- package/es/controls/ToolBar/buttons/More.d.ts +3 -1
- package/es/controls/ToolBar/buttons/More.js +13 -10
- package/es/controls/ToolBar/buttons/More.js.map +1 -1
- package/es/controls/ToolBar/buttons/Open.d.ts +1 -0
- package/es/controls/ToolBar/buttons/Open.js +6 -4
- package/es/controls/ToolBar/buttons/Open.js.map +1 -1
- package/es/data/message-schedule/types.d.ts +1 -1
- package/es/modules/action-plan/components/ActionPlanListQuickView/index.d.ts +8 -0
- package/es/modules/action-plan/components/ActionPlanListQuickView/index.js +12 -0
- package/es/modules/action-plan/components/ActionPlanListQuickView/index.js.map +1 -0
- package/es/modules/action-plan/components/ActionPlanListQuickView/index.less +11 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplateProperties/index.d.ts +4 -2
- package/es/modules/action-plan-template/components/ActionPlanTemplateProperties/index.js +10 -1
- package/es/modules/action-plan-template/components/ActionPlanTemplateProperties/index.js.map +1 -1
- package/es/modules/action-plan-template/components/ActionPlanTemplateTabs/index.js +7 -1
- package/es/modules/action-plan-template/components/ActionPlanTemplateTabs/index.js.map +1 -1
- package/es/modules/message-schedule/components/MessageScheduleList/index.js +1 -1
- package/es/modules/message-schedule/components/MessageScheduleList/index.js.map +1 -1
- package/es/modules/message-schedule/components/NewMessageScheduleForm/state.d.ts +2 -2
- package/es/modules/message-schedule/components/NewMessageScheduleForm/state.js +1 -1
- package/es/modules/message-schedule/components/NewMessageScheduleForm/state.js.map +1 -1
- package/es/pages/DocumentDrivePage/index.d.ts +6 -0
- package/es/pages/DocumentDrivePage/index.js +67 -0
- package/es/pages/DocumentDrivePage/index.js.map +1 -0
- package/es/pages/DocumentDrivePage/index.less +23 -0
- package/es/pages/DocumentDrivePage/state.d.ts +7 -0
- package/es/pages/DocumentDrivePage/state.js +40 -0
- package/es/pages/DocumentDrivePage/state.js.map +1 -0
- package/es/routes.d.ts +6 -0
- package/es/routes.js +13 -0
- package/es/routes.js.map +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,6 @@ import { Tree } from "antd";
|
|
|
9
9
|
import styles from "./index.less";
|
|
10
10
|
import classnames from "classnames";
|
|
11
11
|
const DocumentTree = (props) => {
|
|
12
|
-
const { drive } = props;
|
|
13
12
|
const meta = useMetaStore();
|
|
14
13
|
const store = useDocumentStore();
|
|
15
14
|
const initTreeData = [
|
|
@@ -20,11 +19,9 @@ const DocumentTree = (props) => {
|
|
|
20
19
|
icon: React.createElement(FAIcon, { icon: faFolderOpen }),
|
|
21
20
|
},
|
|
22
21
|
{ title: "Selected Files", key: "pasteList", isLeaf: true, icon: React.createElement(FAIcon, { icon: faCopy }) },
|
|
23
|
-
{
|
|
24
|
-
title:
|
|
25
|
-
|
|
26
|
-
icon: meta.getIcon(drive),
|
|
27
|
-
},
|
|
22
|
+
...props.orgDocs.map((o) => {
|
|
23
|
+
return { title: o.name, key: o.id, icon: meta.getIcon(o) };
|
|
24
|
+
}),
|
|
28
25
|
];
|
|
29
26
|
const [treeData, setTreeData] = useState(initTreeData);
|
|
30
27
|
const updateTreeData = (list, key, children) => list.map((node) => {
|
|
@@ -56,7 +53,7 @@ const DocumentTree = (props) => {
|
|
|
56
53
|
resolve();
|
|
57
54
|
});
|
|
58
55
|
return observe(() => (React.createElement(Scrollbars, { autoHide: true },
|
|
59
|
-
React.createElement(Tree, { className: classnames(styles["document-list-tree"], props.className), loadData: onLoadData, treeData: treeData, showIcon: true, switcherIcon: React.createElement(DownOutlined, null), onSelect: (selectedKeys) => { var _a; return (_a = props.onSelect) === null || _a === void 0 ? void 0 : _a.call(props, selectedKeys[0]); } }))));
|
|
56
|
+
React.createElement(Tree, { className: classnames(styles["document-list-tree"], props.className), loadData: onLoadData, treeData: treeData, showIcon: true, blockNode: true, switcherIcon: React.createElement(DownOutlined, null), onSelect: (selectedKeys) => { var _a; return (_a = props.onSelect) === null || _a === void 0 ? void 0 : _a.call(props, selectedKeys[0]); } }))));
|
|
60
57
|
};
|
|
61
58
|
export default DocumentTree;
|
|
62
59
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/DocumentTree/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAa,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAA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import {
|
|
2
|
+
import { Tooltip } from "antd";
|
|
3
3
|
import { useAsideContentContext } from "@voplus/morpho-ui";
|
|
4
4
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
5
5
|
import { useQuickAccessContext } from "../../../modules/quick-access/QuickAccessPage/QuickAccessContext";
|
|
6
|
-
import { faXmark } from "@fortawesome/pro-
|
|
6
|
+
import { faXmark } from "@fortawesome/pro-light-svg-icons";
|
|
7
7
|
const Close = (props) => {
|
|
8
8
|
const { size, disabled, action } = props;
|
|
9
9
|
const asideContext = useAsideContentContext();
|
|
10
10
|
const quickAccess = useQuickAccessContext();
|
|
11
11
|
return (React.createElement(Tooltip, { title: "Close Properties View" },
|
|
12
|
-
React.createElement(
|
|
12
|
+
React.createElement("button", { disabled: disabled, onClick: onClick, className: "w-9 h-9 rounded-lg inline-flex items-center justify-center text-slate-500 cursor-pointer transition-all duration-200 hover:border-slate-300 hover:bg-slate-50 hover:text-slate-600", "aria-label": "Sort" },
|
|
13
13
|
React.createElement(FAIcon, { icon: faXmark }))));
|
|
14
14
|
function onClick() {
|
|
15
15
|
var _a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Close.js","sourceRoot":"","sources":["../../../../src/controls/ToolBar/buttons/Close.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"Close.js","sourceRoot":"","sources":["../../../../src/controls/ToolBar/buttons/Close.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAU,OAAO,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,kEAAkE,CAAC;AACzG,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAE3D,MAAM,KAAK,GAAG,CAAC,KAOd,EAAE,EAAE;IACJ,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACzC,MAAM,YAAY,GAAG,sBAAsB,EAAE,CAAC;IAC9C,MAAM,WAAW,GAAG,qBAAqB,EAAE,CAAC;IAE5C,OAAO,CACN,oBAAC,OAAO,IAAC,KAAK,EAAC,uBAAuB;QAIrC,gCACC,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,oLAAoL,gBACnL,MAAM;YAEjB,oBAAC,MAAM,IAAC,IAAI,EAAE,OAAO,GAAI,CACjB,CACA,CACV,CAAC;IACF,SAAS,OAAO;;QACf,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,2DAAI,CAAC;QAE5B,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,EAAE,CAAC;IAChD,CAAC;AACF,CAAC,CAAC;AACF,KAAK,CAAC,YAAY,GAAG;IACpB,IAAI,EAAE,OAAO;CACb,CAAC;AACF,eAAe,KAAK,CAAC"}
|
|
@@ -14,7 +14,9 @@ export type MoreButtonProps = {
|
|
|
14
14
|
/** 关闭Aside */
|
|
15
15
|
closeAside?: boolean;
|
|
16
16
|
/** props of the button for dropdown. */
|
|
17
|
-
buttonProps?: ButtonProps
|
|
17
|
+
buttonProps?: ButtonProps & {
|
|
18
|
+
className?: string;
|
|
19
|
+
};
|
|
18
20
|
/** Icon to be used for dropdown */
|
|
19
21
|
icon?: React.ReactNode;
|
|
20
22
|
placement?: "topLeft" | "topRight" | "bottomLeft" | "bottomCenter" | "bottomRight" | "top" | "bottom";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dropdown } from "antd";
|
|
2
2
|
import { ArchivedMenu, VersionMenu } from "../../DocumentMenu";
|
|
3
3
|
import React, { useRef, useEffect } from "react";
|
|
4
4
|
import { useDocument, useMetaStore } from "@voplus/morpho-document-core";
|
|
5
5
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
6
|
-
import { faEllipsis } from "@fortawesome/pro-
|
|
6
|
+
import { faEllipsis } from "@fortawesome/pro-light-svg-icons";
|
|
7
7
|
import { observe } from "@voplus/morpho-ui";
|
|
8
8
|
import { useToolBarContext } from "../ToolBarState";
|
|
9
9
|
const More = (props) => {
|
|
@@ -19,14 +19,17 @@ const More = (props) => {
|
|
|
19
19
|
if (context.open && ((_a = boxRef.current) === null || _a === void 0 ? void 0 : _a.offsetWidth))
|
|
20
20
|
context.width = (_b = boxRef.current) === null || _b === void 0 ? void 0 : _b.offsetWidth;
|
|
21
21
|
}, [id, context.open, boxRef]);
|
|
22
|
-
return observe(() =>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
return observe(() => {
|
|
23
|
+
var _a, _b;
|
|
24
|
+
return (React.createElement(Dropdown, { open: context.open, onOpenChange: handleOpenChange, placement: props.placement || "bottomRight", dropdownRender: () => {
|
|
25
|
+
var _a, _b, _c, _d, _e, _f;
|
|
26
|
+
return (React.createElement("div", { className: "tool-bar-menu", ref: boxRef }, document.status == "Version" ? (((_a = props.menus) === null || _a === void 0 ? void 0 : _a.version) ? ((_b = props.menus) === null || _b === void 0 ? void 0 : _b.version) : (React.createElement(VersionMenu, { id: id }))) : document.status == "Archived" ? (((_c = props.menus) === null || _c === void 0 ? void 0 : _c.archived) ? ((_d = props.menus) === null || _d === void 0 ? void 0 : _d.archived) : (React.createElement(ArchivedMenu, { id: id }))) : ((_e = props.menus) === null || _e === void 0 ? void 0 : _e.default) ? ((_f = props.menus) === null || _f === void 0 ? void 0 : _f.default) : (meta.getMenu(document, {
|
|
27
|
+
id: id,
|
|
28
|
+
closeAside: closeAside,
|
|
29
|
+
}))));
|
|
30
|
+
} },
|
|
31
|
+
React.createElement("button", { className: (_b = (_a = props.buttonProps) === null || _a === void 0 ? void 0 : _a.className) !== null && _b !== void 0 ? _b : "w-9 h-9 rounded-lg inline-flex items-center justify-center text-slate-500 cursor-pointer transition-all duration-200 hover:border-slate-300 hover:bg-slate-50 hover:text-slate-600", "aria-label": "Sort" }, props.icon)));
|
|
32
|
+
});
|
|
30
33
|
function handleOpenChange(flag) {
|
|
31
34
|
context.open = flag;
|
|
32
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"More.js","sourceRoot":"","sources":["../../../../src/controls/ToolBar/buttons/More.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"More.js","sourceRoot":"","sources":["../../../../src/controls/ToolBar/buttons/More.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,QAAQ,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EAAE,EAAuB,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAGzE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AA8BpD,MAAM,IAAI,GAAG,CAAC,KAAsB,EAAE,EAAE;;IACvC,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAE7B,MAAM,OAAO,GAAG,iBAAiB,EAAE,CAAC;IACpC,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC;IAE5B,MAA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I,CACxB,CACD,CAAC,CAAC,CAAC,CAAA,MAAA,KAAK,CAAC,KAAK,0CAAE,OAAO,EAAC,CAAC,CAAC,CAC1B,MAAA,KAAK,CAAC,KAAK,0CAAE,OAAO,CACpB,CAAC,CAAC,CAAC,CACH,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE;oBACtB,EAAE,EAAE,EAAE;oBACN,UAAU,EAAE,UAAU;iBACtB,CAAC,CACF,CACI,CACN,CAAA;aAAA;YAKD,gCACC,SAAS,EACR,MAAA,MAAA,KAAK,CAAC,WAAW,0CAAE,SAAS,mCAC5B,oLAAoL,gBAE1K,MAAM,IAEhB,KAAK,CAAC,IAAI,CACH,CACC,CACX,CAAA;KAAA,CAAC,CAAC;IAEH,SAAS,gBAAgB,CAAC,IAAa;QACtC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;AACF,CAAC,CAAC;AAEF,IAAI,CAAC,YAAY,GAAG;IACnB,WAAW,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE;IAC/C,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,UAAU,GAAI;CAClC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Tooltip } from "antd";
|
|
2
2
|
import React, { useEffect, useState } from "react";
|
|
3
3
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
-
import { faUpRightFromSquare } from "@fortawesome/pro-
|
|
4
|
+
import { faUpRightFromSquare } from "@fortawesome/pro-light-svg-icons";
|
|
5
5
|
import { runInAction } from "mobx";
|
|
6
6
|
import { useDocumentStore } from "@voplus/morpho-document-core";
|
|
7
7
|
import { useLayout } from "@voplus/morpho-data";
|
|
8
8
|
import { useToolBarContext } from "../ToolBarState";
|
|
9
9
|
const Open = (props) => {
|
|
10
|
-
const { size, disabled, url, action } = props;
|
|
10
|
+
const { size, disabled, url, action, className } = props;
|
|
11
11
|
const layout = useLayout();
|
|
12
12
|
const context = useToolBarContext();
|
|
13
13
|
const [isOffice, setIsOffice] = useState(false);
|
|
@@ -23,7 +23,9 @@ const Open = (props) => {
|
|
|
23
23
|
setIsOffice(store.items.has(context.id) && isOffice(store.items.peek(context.id)));
|
|
24
24
|
}, [context.id]);
|
|
25
25
|
return (React.createElement(Tooltip, { title: isOffice ? "Open in Office Online" : "Open in a new tab" },
|
|
26
|
-
React.createElement(
|
|
26
|
+
React.createElement("button", { disabled: disabled, onClick: onClick, className: className
|
|
27
|
+
? className
|
|
28
|
+
: "w-9 h-9 rounded-lg inline-flex items-center justify-center text-slate-500 cursor-pointer transition-all duration-200 hover:border-slate-300 hover:bg-slate-50 hover:text-slate-600", "aria-label": "Sort" },
|
|
27
29
|
React.createElement(FAIcon, { icon: faUpRightFromSquare }))));
|
|
28
30
|
function onClick(e) {
|
|
29
31
|
e.stopPropagation();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Open.js","sourceRoot":"","sources":["../../../../src/controls/ToolBar/buttons/Open.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Open.js","sourceRoot":"","sources":["../../../../src/controls/ToolBar/buttons/Open.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,OAAO,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,iBAAiB,E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,MAAM,IAAC,IAAI,EAAE,mBAAmB,GAAI,CAC7B,CACA,CACV,CAAC;IAEF,SAAS,OAAO,CAAC,CAA4C;QAC5D,CAAC,CAAC,eAAe,EAAE,CAAC;QACpB,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAI,CAAC,CAAC,CAAC;IACnE,CAAC;AACF,CAAC,CAAC;AACF,IAAI,CAAC,YAAY,GAAG;IACnB,IAAI,EAAE,OAAO;CACb,CAAC;AACF,eAAe,IAAI,CAAC"}
|
|
@@ -7,7 +7,7 @@ export type LoadMessageScheduleOptions = {
|
|
|
7
7
|
includes?: string;
|
|
8
8
|
} & LoadOptions<IMessageSchedule>;
|
|
9
9
|
export type MessageScheduleCreateOptions = {
|
|
10
|
-
|
|
10
|
+
ParentId: string;
|
|
11
11
|
TemplateId: string;
|
|
12
12
|
};
|
|
13
13
|
export type MessageScheduleEditOptions = {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import ActionPlanList from "../ActionPlanList";
|
|
4
|
+
import QuickViewDialog from "../../../../controls/QuickViewDialog";
|
|
5
|
+
import "./index.less";
|
|
6
|
+
const ActionPlanListQuickView = (props) => {
|
|
7
|
+
const { id } = props;
|
|
8
|
+
return observe(() => (React.createElement(QuickViewDialog, { ...props, className: "action-plan-list-quick-view", subButtons: [] },
|
|
9
|
+
React.createElement(ActionPlanList, { parentNodeId: id, headerType: "tool" }))));
|
|
10
|
+
};
|
|
11
|
+
export default ActionPlanListQuickView;
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanListQuickView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,eAAe,MAAM,sCAAsC,CAAC;AACnE,OAAO,cAAc,CAAC;AAEtB,MAAM,uBAAuB,GAAG,CAAC,KAIhC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,eAAe,OAAK,KAAK,EAAE,SAAS,EAAC,6BAA6B,EAAC,UAAU,EAAE,EAAE;QACjF,oBAAC,cAAc,IAAC,YAAY,EAAE,EAAE,EAAE,UAAU,EAAC,MAAM,GAAG,CACrC,CAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { DocumentPropertiesName } from "../../../../components/DocumentProperties";
|
|
3
|
-
export type ActionPlanTemplatePropertiesName = "";
|
|
3
|
+
export type ActionPlanTemplatePropertiesName = "Actions Plans";
|
|
4
4
|
declare const ActionPlanTemplateProperties: {
|
|
5
5
|
(props: {
|
|
6
6
|
id: string;
|
|
@@ -19,7 +19,9 @@ declare const ActionPlanTemplateProperties: {
|
|
|
19
19
|
defaultProps: {
|
|
20
20
|
messagePlanTitle: string;
|
|
21
21
|
documentTitle: string;
|
|
22
|
-
messagePlanProperties:
|
|
22
|
+
messagePlanProperties: {
|
|
23
|
+
name: string;
|
|
24
|
+
}[];
|
|
23
25
|
};
|
|
24
26
|
};
|
|
25
27
|
export default ActionPlanTemplateProperties;
|
|
@@ -1,26 +1,35 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { Button } from "antd";
|
|
2
3
|
import { observe } from "@voplus/morpho-ui";
|
|
3
4
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
5
|
+
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
|
4
6
|
import DocumentProperties from "../../../../components/DocumentProperties";
|
|
7
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
|
5
8
|
import DocumentPropertiesHeader from "../../../../components/DocumentPropertieHeader";
|
|
9
|
+
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
6
10
|
const ActionPlanTemplateProperties = (props) => {
|
|
7
11
|
const { id, headerVisible, messagePlanTitle, documentTitle, messagePlanProperties, documentProperties, } = props;
|
|
8
12
|
const filterPro = messagePlanProperties === null || messagePlanProperties === void 0 ? void 0 : messagePlanProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
9
13
|
/** 加class name 为了方便做integration tests */
|
|
10
14
|
const classId = "message-plan-properties";
|
|
15
|
+
const appContext = useApplicationContext();
|
|
11
16
|
return observe(() => (React.createElement("div", { className: "properties-list" },
|
|
12
17
|
headerVisible && React.createElement(DocumentPropertiesHeader, { id: id }),
|
|
13
18
|
React.createElement(Scrollbars, { autoHide: true },
|
|
19
|
+
React.createElement(PropertiesSection, { title: messagePlanTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => renderProp(i)) }),
|
|
14
20
|
React.createElement(DocumentProperties, { id: id, title: documentTitle, customProperties: documentProperties })))));
|
|
15
21
|
function renderProp(item) {
|
|
16
22
|
switch (item.name) {
|
|
23
|
+
case "Actions Plans":
|
|
24
|
+
return (appContext.host.isTest && (React.createElement(Prop, { label: "Actions Plans (test)" },
|
|
25
|
+
React.createElement(Button, { size: "small" }, "Create"))));
|
|
17
26
|
}
|
|
18
27
|
}
|
|
19
28
|
};
|
|
20
29
|
ActionPlanTemplateProperties.defaultProps = {
|
|
21
30
|
messagePlanTitle: "MESSAGE PLAN PROPERTIES",
|
|
22
31
|
documentTitle: "DOCUMENT PROPERTIES",
|
|
23
|
-
messagePlanProperties: [],
|
|
32
|
+
messagePlanProperties: [{ name: "Actions Plans" }],
|
|
24
33
|
};
|
|
25
34
|
export default ActionPlanTemplateProperties;
|
|
26
35
|
//# sourceMappingURL=index.js.map
|
package/es/modules/action-plan-template/components/ActionPlanTemplateProperties/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan-template/components/ActionPlanTemplateProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan-template/components/ActionPlanTemplateProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,kBAEN,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,wBAAwB,MAAM,gDAAgD,CAAC;AACtF,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAIhF,MAAM,4BAA4B,GAAG,CAAC,KAarC,EAAE,EAAE;IACJ,MAAM,EACL,EAAE,EACF,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACrB,kBAAkB,GAClB,GAAG,KAAK,CAAC;IAEV,MAAM,SAAS,GAAG,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,OAAO,MAAK,KAAK,CAAC,CAAC;IAC7E,yCAAyC;IACzC,MAAM,OAAO,GAAG,yBAAyB,CAAC;IAE1C,MAAM,UAAU,GAAG,qBAAqB,EAAE,CAAC;IAE3C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,iBAAiB;QAC9B,aAAa,IAAI,oBAAC,wBAAwB,IAAC,EAAE,EAAE,EAAE,GAAI;QACtD,oBAAC,UAAU,IAAC,QAAQ;YACnB,oBAAC,iBAAiB,IACjB,KAAK,EAAE,gBAAgB,EACvB,UAAU,EAAE,GAAG,EAAE,CAAC,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,GACrD;YACF,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,kBAAkB,GAAI,CAC9E,CACR,CACN,CAAC,CAAC;IAEH,SAAS,UAAU,CAAC,IAAmE;QACtF,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YACnB,KAAK,eAAe;gBACnB,OAAO,CACN,UAAU,CAAC,IAAI,CAAC,MAAM,IAAI,CACzB,oBAAC,IAAI,IAAC,KAAK,EAAC,sBAAsB;oBACjC,oBAAC,MAAM,IAAC,IAAI,EAAC,OAAO,aAAgB,CAC9B,CACP,CACD,CAAC;QACJ,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,4BAA4B,CAAC,YAAY,GAAG;IAC3C,gBAAgB,EAAE,yBAAyB;IAC3C,aAAa,EAAE,qBAAqB;IACpC,qBAAqB,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;CAClD,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -2,6 +2,7 @@ import React, { useState } from "react";
|
|
|
2
2
|
import { Badge } from "antd";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
4
|
import { useDocumentListEffect } from "@voplus/morpho-document-core";
|
|
5
|
+
import MessageScheduleList from "../../../message-schedule/components/MessageScheduleList";
|
|
5
6
|
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
|
|
6
7
|
import ActionPlanTemplateProperties from "../ActionPlanTemplateProperties";
|
|
7
8
|
import DocumentList from "../../../../components/DocumentList";
|
|
@@ -17,6 +18,11 @@ const ActionPlanTemplateTabs = (props) => {
|
|
|
17
18
|
Filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: id }],
|
|
18
19
|
});
|
|
19
20
|
let items = [
|
|
21
|
+
{
|
|
22
|
+
key: "Actions",
|
|
23
|
+
label: "Actions",
|
|
24
|
+
children: React.createElement(MessageScheduleList, { parentNodeId: id, headerType: "tool", asideable: false }),
|
|
25
|
+
},
|
|
20
26
|
{
|
|
21
27
|
key: "Document",
|
|
22
28
|
label: (React.createElement(React.Fragment, null,
|
|
@@ -41,7 +47,7 @@ const ActionPlanTemplateTabs = (props) => {
|
|
|
41
47
|
label: "Properties",
|
|
42
48
|
children: React.createElement(ActionPlanTemplateProperties, { id: id }),
|
|
43
49
|
});
|
|
44
|
-
return observe(() => (React.createElement(DocumentTabs, { id: id, active: properties ? "Properties" : "
|
|
50
|
+
return observe(() => (React.createElement(DocumentTabs, { id: id, active: properties ? "Properties" : "Actions", tabItems: items, onChange: (key) => setActiveKey(key) })));
|
|
45
51
|
};
|
|
46
52
|
export default ActionPlanTemplateTabs;
|
|
47
53
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan-template/components/ActionPlanTemplateTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,WAAW,MAAM,4DAA4D,CAAC;AACrF,OAAO,4BA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E,OAAO;YACZ,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,oBAAC,KAAK,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,GAAI;SAC3C;KACD,CAAC;IAEF,KAAK,CAAC,UAAU;QACf,KAAK,CAAC,OAAO,CAAC;YACb,GAAG,EAAE,YAAY;YACjB,KAAK,EAAE,YAAY;YACnB,QAAQ,EAAE,oBAAC,4BAA4B,IAAC,EAAE,EAAE,EAAE,GAAI;SAClD,CAAC,CAAC;IAEJ,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan-template/components/ActionPlanTemplateTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,mBAAmB,MAAM,0DAA0D,CAAC;AAC3F,OAAO,WAAW,MAAM,4DAA4D,CAAC;AACrF,OAAO,4BAA4B,MAAM,iCAAiC,CAAC;AAC3E,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,KAAK,MAAM,8BAA8B,CAAC;AAEjD,MAAM,sBAAsB,GAAG,CAAC,KAA2C,EAAE,EAAE;IAC9E,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAEjC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC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AC,OAAO,CAAC;YACb,GAAG,EAAE,YAAY;YACjB,KAAK,EAAE,YAAY;YACnB,QAAQ,EAAE,oBAAC,4BAA4B,IAAC,EAAE,EAAE,EAAE,GAAI;SAClD,CAAC,CAAC;IAEJ,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,EAC7C,QAAQ,EAAE,KAAK,EACf,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,GACnC,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -66,7 +66,7 @@ const MessageScheduleList = (props) => {
|
|
|
66
66
|
add && (React.createElement(NewMessageScheduleFormDialog, { parentNodeId: parentNodeId, onCancel: () => setAdd(false), onSave: () => setAdd(false) })))));
|
|
67
67
|
function filters() {
|
|
68
68
|
let filter = [
|
|
69
|
-
|
|
69
|
+
{ c: "ParentNodeId", o: "=", l: "And", v1: parentNodeId }
|
|
70
70
|
];
|
|
71
71
|
if (filterOptions)
|
|
72
72
|
filter = filterOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/message-schedule/components/MessageScheduleList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAoB,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACnG,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,2DAA2D,CAAC;AAClG,OAAO,EAAE,oBAAoB,EAAE,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AI,CAAC,CAAA,EAAA;gBACxE,oBAAC,mBAAmB,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,CACjB,CACpB,GACA;QACD,GAAG,IAAI,CACP,oBAAC,4BAA4B,IAC5B,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,EAC7B,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,GAC1B,CACF,CACyB,CAC3B,CAAC,CAAC;IAEH,SAAS,OAAO;QACf,IAAI,MAAM,GAAmB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/message-schedule/components/MessageScheduleList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAoB,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACnG,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,2DAA2D,CAAC;AAClG,OAAO,EAAE,oBAAoB,EAAE,MAAM,4EAA4E,CAAC;AAClH,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAC1F,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,sBAAsB,MAAM,2BAA2B,CAAC;AAC/D,OAAO,4BAA4B,MAAM,wDAAwD,CAAC;AAClG,OAAO,iBAAiB,MAAM,wCAAwC,CAAC;AACvE,OAAO,QAAQ,MAAM,0DAA0D,CAAC;AAChF,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,MAAM,MAAM,cAAc,CAAC;A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,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE;SACzD,CAAC;QAEF,IAAI,aAAa;YAAE,MAAM,GAAG,aAAa,CAAC;QAE1C,OAAO,MAAM,CAAC;IACf,CAAC;IAED,SAAS,KAAK,CAAC,YAA0B;QACxC,IAAI,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,MAAK,gBAAgB,EAAE,CAAC;YACrC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;QACd,CAAC;aAAM,CAAC;YACP,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,CAAC,oBAAC,sBAAsB,IAAC,QAAQ,QAAC,YAAY,EAAE,YAAY,GAAI,EAAE;gBACxF,IAAI,EAAE,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,YAAY,EAAC,CAAC,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE;aACnE,CAAC,CAAC;QACJ,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,mBAAmB,CAAC,YAAY,GAAG;IAClC,SAAS,EAAE,mBAAmB;IAC9B,SAAS,EAAE,IAAI;IACf,MAAM,EAAE,IAAI;IACZ,UAAU,EAAE,WAAW;CACvB,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -2,11 +2,11 @@ export declare class State {
|
|
|
2
2
|
private parentId;
|
|
3
3
|
constructor(parentId: string);
|
|
4
4
|
Params: {
|
|
5
|
-
|
|
5
|
+
ParentId: string;
|
|
6
6
|
TemplateId: string;
|
|
7
7
|
};
|
|
8
8
|
params: {
|
|
9
|
-
|
|
9
|
+
ParentId: string;
|
|
10
10
|
TemplateId: string;
|
|
11
11
|
};
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/message-schedule/components/NewMessageScheduleForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClD,MAAM,OAAO,KAAK;IACjB,YAA2B,QAAgB;QAAxB;;;;mBAAQ,QAAQ;WAAQ;QAGpC;;;;mBAAS;gBACf,
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/message-schedule/components/NewMessageScheduleForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClD,MAAM,OAAO,KAAK;IACjB,YAA2B,QAAgB;QAAxB;;;;mBAAQ,QAAQ;WAAQ;QAGpC;;;;mBAAS;gBACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBACvB,UAAU,EAAE,EAAE;aACd;WAAC;QACiB;;;;mBAAS,IAAI,CAAC,MAAM;WAAC;QANvC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAMD;AADmB;IAAlB,UAAU;qCAA6B"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { Menu, Breadcrumb, Input } from "antd";
|
|
4
|
+
import { faFolderOpen, faUser, faBriefcase, faUsers, faCampground, } from "@fortawesome/pro-solid-svg-icons";
|
|
5
|
+
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
6
|
+
import DocumentDriveList from "../../components/DocumentDriveList";
|
|
7
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
8
|
+
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
9
|
+
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
10
|
+
import { State } from "./state";
|
|
11
|
+
import "./index.less";
|
|
12
|
+
const DocumentDrivePage = (props) => {
|
|
13
|
+
const { id } = props;
|
|
14
|
+
const [state] = useState(new State());
|
|
15
|
+
return observe(() => (React.createElement(DefaultViewLayout, { className: "document-drive-page", header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faFolderOpen }), title: "Documents Drive", upAble: true, description: "A Centralized Space for All Document." }), propertiesWidth: "295px", propertiesTitle: "MENU PANEL", properties: React.createElement(Scrollbars, { autoHide: true },
|
|
16
|
+
React.createElement("div", { className: "menu-panel" }, !state.menuKey ? (React.createElement(Menu, { items: [
|
|
17
|
+
{ key: "My", label: "My Files (1)", icon: React.createElement(FAIcon, { icon: faUser }) },
|
|
18
|
+
{
|
|
19
|
+
key: "Workspace",
|
|
20
|
+
label: "Workspace Files (2)",
|
|
21
|
+
icon: React.createElement(FAIcon, { icon: faBriefcase }),
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
key: "Organization",
|
|
25
|
+
label: "Organization Files (10)",
|
|
26
|
+
icon: React.createElement(FAIcon, { icon: faCampground }),
|
|
27
|
+
},
|
|
28
|
+
{ key: "Teams", label: "Teams Files (5)", icon: React.createElement(FAIcon, { icon: faUsers }) },
|
|
29
|
+
], onClick: (e) => state.onMenu(e) })) : (React.createElement("div", { className: "" },
|
|
30
|
+
React.createElement(Breadcrumb, { items: [
|
|
31
|
+
{ title: React.createElement("span", { onClick: () => (state.menuKey = undefined) }, "Menu") },
|
|
32
|
+
{ title: state.menuKey },
|
|
33
|
+
] }),
|
|
34
|
+
React.createElement(Input, { placeholder: `Search in ${state.menuKey}` }),
|
|
35
|
+
React.createElement(Menu, { items: [
|
|
36
|
+
{
|
|
37
|
+
key: "files",
|
|
38
|
+
label: state.menuKey.toUpperCase(),
|
|
39
|
+
type: "group",
|
|
40
|
+
children: [
|
|
41
|
+
{ key: "3", label: "Option 13", icon: React.createElement(FAIcon, { icon: faFolderOpen }) },
|
|
42
|
+
{ key: "4", label: "Option 14", icon: React.createElement(FAIcon, { icon: faFolderOpen }) },
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
key: "access",
|
|
47
|
+
label: `${state.menuKey.toUpperCase()} I HAVE ACCESS`,
|
|
48
|
+
type: "group",
|
|
49
|
+
children: [
|
|
50
|
+
{ key: "13", label: "Option 13", icon: React.createElement(FAIcon, { icon: faFolderOpen }) },
|
|
51
|
+
{ key: "14", label: "Option 14", icon: React.createElement(FAIcon, { icon: faFolderOpen }) },
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
key: "disabled",
|
|
56
|
+
label: `DISABLED ${state.menuKey.toUpperCase()}`,
|
|
57
|
+
type: "group",
|
|
58
|
+
children: [
|
|
59
|
+
{ key: "23", label: "Option 13", icon: React.createElement(FAIcon, { icon: faFolderOpen }) },
|
|
60
|
+
{ key: "24", label: "Option 14", icon: React.createElement(FAIcon, { icon: faFolderOpen }) },
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
], onClick: (e) => state.onFiles(e) }))))) },
|
|
64
|
+
React.createElement(DocumentDriveList, { id: id, asideable: false }))));
|
|
65
|
+
};
|
|
66
|
+
export default DocumentDrivePage;
|
|
67
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/pages/DocumentDrivePage/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,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC/C,OAAO,EACN,YAAY,EACZ,MAAM,EACN,WAAW,EACX,OAAO,EACP,YAAY,GACZ,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,iBAAiB,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,iBAAiB,MA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AW,EAAE,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,YAAY,GAAI,EAAE;6BACvE;yBACD;wBACD;4BACC,GAAG,EAAE,UAAU;4BACf,KAAK,EAAE,YAAY,KAAK,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE;4BAChD,IAAI,EAAE,OAAO;4BACb,QAAQ,EAAE;gCACT,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,YAAY,GAAI,EAAE;gCACvE,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,YAAY,GAAI,EAAE;6BACvE;yBACD;qBACD,EACD,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,GAC/B,CACG,CACN,CACI,CACM;QAGd,oBAAC,iBAAiB,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,GAAI,CAC5B,CACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
:global {
|
|
2
|
+
.document-drive-page {
|
|
3
|
+
.menu-panel {
|
|
4
|
+
padding: 0 15px;
|
|
5
|
+
.ant-menu-item {
|
|
6
|
+
color: #505050;
|
|
7
|
+
padding: 0 12px;
|
|
8
|
+
}
|
|
9
|
+
.ant-menu-item-group-list .ant-menu-item {
|
|
10
|
+
padding-inline: 12px 12px;
|
|
11
|
+
}
|
|
12
|
+
.ant-menu-vertical {
|
|
13
|
+
border-inline-end: none;
|
|
14
|
+
}
|
|
15
|
+
.ant-breadcrumb {
|
|
16
|
+
margin-bottom: 12px;
|
|
17
|
+
.ant-breadcrumb-link {
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { makeObservable, observable, action } from "mobx";
|
|
3
|
+
export class State {
|
|
4
|
+
constructor() {
|
|
5
|
+
Object.defineProperty(this, "menuKey", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
configurable: true,
|
|
8
|
+
writable: true,
|
|
9
|
+
value: void 0
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(this, "fileName", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
configurable: true,
|
|
14
|
+
writable: true,
|
|
15
|
+
value: void 0
|
|
16
|
+
});
|
|
17
|
+
makeObservable(this);
|
|
18
|
+
}
|
|
19
|
+
onMenu(e) {
|
|
20
|
+
this.menuKey = e.key;
|
|
21
|
+
}
|
|
22
|
+
onFiles(e) {
|
|
23
|
+
// this.files = e.key;
|
|
24
|
+
console.log(e, e.domEvent.target.innerText, "---files");
|
|
25
|
+
this.fileName = e.domEvent.target.innerText;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
__decorate([
|
|
29
|
+
observable
|
|
30
|
+
], State.prototype, "menuKey", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
observable
|
|
33
|
+
], State.prototype, "fileName", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
action
|
|
36
|
+
], State.prototype, "onMenu", null);
|
|
37
|
+
__decorate([
|
|
38
|
+
action
|
|
39
|
+
], State.prototype, "onFiles", null);
|
|
40
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../src/pages/DocumentDrivePage/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE1D,MAAM,OAAO,KAAK;IAIjB;QAHmB;;;;;WAAiB;QACjB;;;;;WAAkB;QAGpC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAEc,MAAM,CAAC,CAAM;QAC3B,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,GAAG,CAAC;IACtB,CAAC;IAEc,OAAO,CAAC,CAAM;QAC5B,sBAAsB;QACtB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;QACxD,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC;IAC7C,CAAC;CACD;AAhBmB;IAAlB,UAAU;sCAAyB;AACjB;IAAlB,UAAU;uCAA0B;AAMtB;IAAd,MAAM;mCAEN;AAEc;IAAd,MAAM;oCAIN"}
|
package/es/routes.d.ts
CHANGED
|
@@ -142,6 +142,12 @@ declare const RouteList: {
|
|
|
142
142
|
getUrl: (id: string) => string;
|
|
143
143
|
component: React.JSX.Element;
|
|
144
144
|
};
|
|
145
|
+
ActionPlanDefaultView: {
|
|
146
|
+
route: string;
|
|
147
|
+
tabPattern: RegExp;
|
|
148
|
+
getUrl: (id: string) => string;
|
|
149
|
+
component: React.JSX.Element;
|
|
150
|
+
};
|
|
145
151
|
addRoutes: () => void;
|
|
146
152
|
};
|
|
147
153
|
export default RouteList;
|