@voplus/morpho-document 7.0.6 → 7.0.7
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/DocumentPageHeadDashboard/index.d.ts +10 -0
- package/es/components/DocumentPageHeadDashboard/index.js +22 -0
- package/es/components/DocumentPageHeadDashboard/index.js.map +1 -0
- package/es/components/TextDefaultView/index.js +5 -21
- package/es/components/TextDefaultView/index.js.map +1 -1
- package/es/components/ViewFrame/index.js +8 -11
- package/es/components/ViewFrame/index.js.map +1 -1
- package/es/controls/DocumentActionButtons/index.d.ts +7 -0
- package/es/controls/DocumentActionButtons/index.js +17 -0
- package/es/controls/DocumentActionButtons/index.js.map +1 -0
- package/es/modules/document-register/pages/DocumentRegisterDefaultView/index.js +3 -20
- package/es/modules/document-register/pages/DocumentRegisterDefaultView/index.js.map +1 -1
- package/es/modules/graph/pages/GraphDefaultView/index.js +6 -19
- package/es/modules/graph/pages/GraphDefaultView/index.js.map +1 -1
- package/es/modules/message-template/pages/MessageTemplateDefaultView/index.js +3 -21
- package/es/modules/message-template/pages/MessageTemplateDefaultView/index.js.map +1 -1
- package/es/modules/page/views/PageDefaultView/index.js +5 -22
- package/es/modules/page/views/PageDefaultView/index.js.map +1 -1
- package/es/views/ExplorerView/ExplorerView2.js +6 -30
- package/es/views/ExplorerView/ExplorerView2.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
declare const DocumentPageHeadDashboard: (props: {
|
|
3
|
+
id: string;
|
|
4
|
+
description?: ReactNode;
|
|
5
|
+
/** DocumentActionButtons 自定义 buttons */
|
|
6
|
+
actionButtons?: ReactNode;
|
|
7
|
+
/** ToolBar 自定义 blankMenu */
|
|
8
|
+
blankMenu?: string[];
|
|
9
|
+
}) => React.JSX.Element;
|
|
10
|
+
export default DocumentPageHeadDashboard;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import DocumentActionButtons from "../../controls/DocumentActionButtons";
|
|
4
|
+
import { faEllipsisVerticalSolid, faFolderOpenSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
5
|
+
import ToolBar from "../../controls/ToolBar/ToolBar2";
|
|
6
|
+
import { useDocument, useMetaStore } from "@voplus/morpho-document-core";
|
|
7
|
+
import DocumentBreadCrumbsPath from "../../components/DocumentBreadCrumbsPath";
|
|
8
|
+
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
9
|
+
const DocumentPageHeadDashboard = (props) => {
|
|
10
|
+
const { id, description, actionButtons, blankMenu } = props;
|
|
11
|
+
const doc = useDocument(id);
|
|
12
|
+
const meta = useMetaStore();
|
|
13
|
+
const [packUp, setPackUp] = useState(false);
|
|
14
|
+
return observe(() => {
|
|
15
|
+
var _a;
|
|
16
|
+
return (React.createElement(PageHeadDashboard, { avatarIcon: doc.name ? meta.getIcon(doc) : React.createElement(FAIcon, { icon: faFolderOpenSolid }), title: (_a = doc.name) !== null && _a !== void 0 ? _a : "Document Title", upAble: true, onPackUp: (up) => setPackUp(up), description: description ? (description) : doc.name ? (React.createElement(DocumentBreadCrumbsPath, { id: id, packUp: packUp })) : ("Organize And Find Your Go-To Folders Effortlessly!"), rightExtra: React.createElement(DocumentActionButtons, { id: id, buttons: actionButtons }), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
|
|
17
|
+
icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }),
|
|
18
|
+
}, blankMenu: packUp ? [] : ["Unlock", "Paste"].concat(blankMenu || []) }) }));
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
export default DocumentPageHeadDashboard;
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources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,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CACd,oBAAC,uBAAuB,IAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,GAAI,CACnD,CAAC,CAAC,CAAC,CACH,oDAAoD,CACpD,EAEF,UAAU,EAAE,oBAAC,qBAAqB,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,aAAa,GAAI,EACrE,QAAQ,EACP,oBAAC,OAAO,IACP,EAAE,EAAE,EAAE,EACN,SAAS,EAAE;oBACV,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,uBAAuB,GAAI;iBAC/C,EACD,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE,CAAC,GACnE,GAEF,CACF,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -1,34 +1,18 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
3
3
|
import TextEditor from "@voplus/morpho-text/es/components/TextEditor2";
|
|
4
|
-
import { useFrame } from "../ViewFrame/ViewFrameContext";
|
|
5
4
|
import DocumentTabs from "../../components/DocumentTabs";
|
|
6
|
-
import { FontAwesomeIcon as FAIcon, faFileLinesSolid, faEllipsisVerticalSolid, } from "@voplus/morpho-ui/es/faIcons";
|
|
7
5
|
import DocumentProperties from "../DocumentProperties";
|
|
8
|
-
import ToolBar from "../../controls/ToolBar/ToolBar2";
|
|
9
6
|
import { Print, Publish } from "../../controls/DocumentMenu/items";
|
|
10
|
-
import { DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-core";
|
|
11
7
|
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
12
8
|
import { observe } from "@voplus/morpho-ui";
|
|
13
|
-
import
|
|
14
|
-
import { useDocument } from "@voplus/morpho-document-core";
|
|
15
|
-
import DocumentBreadCrumbsPath from "../DocumentBreadCrumbsPath";
|
|
16
|
-
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
9
|
+
import DocumentPageHeadDashboard from "../DocumentPageHeadDashboard";
|
|
17
10
|
import "./index.less";
|
|
18
11
|
/** The Text Page component with router parameters support. */
|
|
19
12
|
const TextDefaultView = ({ id }) => {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const [packUp, setPackUp] = useState(false);
|
|
24
|
-
const menuContext = useMemo(() => new DocumentMenuState(id), [id]);
|
|
25
|
-
const doc = useDocument(id, { includes: "path" });
|
|
26
|
-
return observe(() => (React.createElement(DefaultViewLayout, { className: "text-default-view", header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faFileLinesSolid }), title: doc.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(Print, { url: `text/print/${id}` }),
|
|
29
|
-
React.createElement(Publish, null))), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
|
|
30
|
-
icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }),
|
|
31
|
-
}, blankMenu: packUp ? [] : ["Print", "Publish"] }) }), properties: React.createElement("div", { className: "properties-list document-properties-list" },
|
|
13
|
+
return observe(() => (React.createElement(DefaultViewLayout, { className: "text-default-view", header: React.createElement(DocumentPageHeadDashboard, { id: id, actionButtons: React.createElement(React.Fragment, null,
|
|
14
|
+
React.createElement(Print, { url: `text/print/${id}` }),
|
|
15
|
+
React.createElement(Publish, null)), blankMenu: ["Print", "Publish"] }), properties: React.createElement("div", { className: "properties-list document-properties-list" },
|
|
32
16
|
React.createElement(DocumentProperties, { id: id })) },
|
|
33
17
|
React.createElement(DocumentTabs, { id: id, details: React.createElement(Scrollbars, null,
|
|
34
18
|
React.createElement(TextEditor, { id: id })) }))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/TextDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/TextDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,UAAU,MAAM,+CAA+C,CAAC;AACvE,OAAO,YAAY,MAAM,+BAA+B,CAAC;AACzD,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,iBAAiB,MAAM,0DAA0D,CAAC;AACzF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,yBAAyB,MAAM,8BAA8B,CAAC;AACrE,OAAO,cAAc,CAAC;AAEtB,8DAA8D;AAC9D,MAAM,eAAe,GAAG,CAAC,EAAE,EAAE,EAAkB,EAAE,EAAE;IAClD,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,iBAAiB,IACjB,SAAS,EAAC,mBAAmB,EAC7B,MAAM,EACL,oBAAC,yBAAyB,IACzB,EAAE,EAAE,EAAE,EACN,aAAa,EACZ;gBACC,oBAAC,KAAK,IAAC,GAAG,EAAE,cAAc,EAAE,EAAE,GAAI;gBAClC,oBAAC,OAAO,OAAG,CACT,EAEJ,SAAS,EAAE,CAAC,OAAO,EAAE,SAAS,CAAC,GAC9B,EAEH,UAAU,EACT,6BAAK,SAAS,EAAC,0CAA0C;YACxD,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI,CACzB;QAGP,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,OAAO,EACN,oBAAC,UAAU;gBACV,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,GAAI,CACV,GAEb,CACiB,CACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -18,17 +18,14 @@ const ViewFrame = (props) => {
|
|
|
18
18
|
useAutorunEffect(() => {
|
|
19
19
|
runInAction(() => (tab.title = document === null || document === void 0 ? void 0 : document.name));
|
|
20
20
|
});
|
|
21
|
-
return observe(() => {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
: undefined),
|
|
30
|
-
React.createElement("div", { className: "view-frame-context" }, context.ViewComponent))))));
|
|
31
|
-
});
|
|
21
|
+
return observe(() => (React.createElement(ViewFrameContext.Provider, { value: context },
|
|
22
|
+
React.createElement("div", { className: classnames(styles["view-frame"], props.className) },
|
|
23
|
+
React.createElement(AsideContent, { context: asideContext,
|
|
24
|
+
// header={
|
|
25
|
+
// context.header === "ViewFrameHeader" ? context.headerComponent ?? undefined : undefined
|
|
26
|
+
// }
|
|
27
|
+
className: classnames({ "page-hide": !context.isShowHeader }) },
|
|
28
|
+
React.createElement(React.Fragment, null, context.ViewComponent))))));
|
|
32
29
|
};
|
|
33
30
|
export default ViewFrame;
|
|
34
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ViewFrame/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBA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OAAO,EAAE,QAAQ,CAAC,EACzF,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,CAAC,CACrC,CAAC;IAEF,OAAO,CAAC,YAAY,CAAC,GAAG,UAAU,CAAC;IAEnC,gBAAgB,CAAC,GAAG,EAAE;QACrB,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CAAC,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,gBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO;QACxC,6BAAK,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;YAChE,oBAAC,YAAY,IACZ,OAAO,EAAE,YAAY;gBACrB,WAAW;gBACX,2FAA2F;gBAC3F,IAAI;gBACJ,SAAS,EAAE,UAAU,CAAC,EAAE,WAAW,EAAE,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;gBAE7D,0CAAG,OAAO,CAAC,aAAa,CAAI,CASd,CACV,CACqB,CAC5B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { useMemo } from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-core";
|
|
4
|
+
import SubPasteDropdown from "../DocumentMenu/SubPasteDropdown";
|
|
5
|
+
import { Unlock } from "../DocumentMenu/items";
|
|
6
|
+
import { Space } from "antd";
|
|
7
|
+
const DocumentActionButtons = (props) => {
|
|
8
|
+
const { id, buttons } = props;
|
|
9
|
+
const menuContext = useMemo(() => new DocumentMenuState(id), [id]);
|
|
10
|
+
return observe(() => (React.createElement(DocumentMenuContext.Provider, { value: menuContext },
|
|
11
|
+
React.createElement(Space, { className: "menu-buttons" },
|
|
12
|
+
React.createElement(SubPasteDropdown, null),
|
|
13
|
+
React.createElement(Unlock, null),
|
|
14
|
+
buttons))));
|
|
15
|
+
};
|
|
16
|
+
export default DocumentActionButtons;
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controls/DocumentActionButtons/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAa,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,gBAAgB,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAE7B,MAAM,qBAAqB,GAAG,CAAC,KAI9B,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAC9B,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,iBAAiB,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAEnE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,WAAW;QAC/C,oBAAC,KAAK,IAAC,SAAS,EAAC,cAAc;YAC9B,oBAAC,gBAAgB,OAAG;YACpB,oBAAC,MAAM,OAAG;YACT,OAAO,CACD,CACsB,CAC/B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,34 +1,17 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
|
-
import { Space } from "antd";
|
|
4
3
|
import { useDocumentRegister } from "../../../../data/document-register";
|
|
5
|
-
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
6
4
|
import DocumentRegisterProperties from "../../components/DocumentRegisterProperties";
|
|
7
|
-
import { useFrame } from "../../../../components/ViewFrame/ViewFrameContext";
|
|
8
|
-
import { faFileZipperRegular, faEllipsisVerticalSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
9
|
-
import { DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-core";
|
|
10
5
|
import DocumentTabs from "../../../../components/DocumentTabs";
|
|
11
|
-
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
12
|
-
import { Lock, Unlock } from "../../../../controls/DocumentMenu/items";
|
|
13
6
|
import RegisteredDocumentTableList from "../../../registered-document/components/RegisteredDocumentTableList";
|
|
14
7
|
import DocumentRegisterSettings from "../DocumentRegisterSettings";
|
|
15
|
-
import DocumentBreadCrumbsPath from "../../../../components/DocumentBreadCrumbsPath";
|
|
16
8
|
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
9
|
+
import DocumentPageHeadDashboard from "../../../../components/DocumentPageHeadDashboard";
|
|
17
10
|
import "./index.less";
|
|
18
11
|
/** The Document Register component with router parameters support. */
|
|
19
12
|
const DocumentRegisterDefaultView = ({ id }) => {
|
|
20
|
-
const frame = useFrame();
|
|
21
|
-
if (frame)
|
|
22
|
-
frame.header = null;
|
|
23
|
-
const [packUp, setPackUp] = useState(false);
|
|
24
|
-
const menuContext = useMemo(() => new DocumentMenuState(id), [id]);
|
|
25
13
|
const documentRegister = useDocumentRegister(id, { reload: true, includes: "tags,path,types" });
|
|
26
|
-
return observe(() => (React.createElement(DefaultViewLayout, { className: "document-register-default-view", header: React.createElement(
|
|
27
|
-
React.createElement(Space, { className: "menu-buttons" },
|
|
28
|
-
React.createElement(Lock, null),
|
|
29
|
-
React.createElement(Unlock, null))), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
|
|
30
|
-
icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }),
|
|
31
|
-
}, blankMenu: packUp ? [] : ["Lock", "Unlock"] }) }), properties: React.createElement(DocumentRegisterProperties, { id: id }) },
|
|
14
|
+
return observe(() => (React.createElement(DefaultViewLayout, { className: "document-register-default-view", header: React.createElement(DocumentPageHeadDashboard, { id: id }), properties: React.createElement(DocumentRegisterProperties, { id: id }) },
|
|
32
15
|
React.createElement(DocumentTabs, { id: "", active: "Documents", tabItems: [
|
|
33
16
|
{
|
|
34
17
|
key: "Documents",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/document-register/pages/DocumentRegisterDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/document-register/pages/DocumentRegisterDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,0BAA0B,MAAM,6CAA6C,CAAC;AACrF,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,2BAA2B,MAAM,qEAAqE,CAAC;AAC9G,OAAO,wBAAwB,MAAM,6BAA6B,CAAC;AACnE,OAAO,iBAAiB,MAAM,0DAA0D,CAAC;AACzF,OAAO,yBAAyB,MAAM,kDAAkD,CAAC;AACzF,OAAO,cAAc,CAAC;AAEtB,sEAAsE;AACtE,MAAM,2BAA2B,GAAG,CAAC,EAAE,EAAE,EAAkB,EAAE,EAAE;IAC9D,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC,CAAC;IAEhG,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,iBAAiB,IACjB,SAAS,EAAC,gCAAgC,EAC1C,MAAM,EAAE,oBAAC,yBAAyB,IAAC,EAAE,EAAE,EAAE,GAAI,EAC7C,UAAU,EAAE,oBAAC,0BAA0B,IAAC,EAAE,EAAE,EAAE,GAAI;QAElD,oBAAC,YAAY,IACZ,EAAE,EAAC,EAAE,EACL,MAAM,EAAC,WAAW,EAClB,QAAQ,EAAE;gBACT;oBACC,GAAG,EAAE,WAAW;oBAChB,KAAK,EAAE,WAAW;oBAClB,QAAQ,EAAE,oBAAC,2BAA2B,IAAC,kBAAkB,EAAE,EAAE,GAAI;iBACjE;gBACD;oBACC,GAAG,EAAE,UAAU;oBACf,KAAK,EAAE,UAAU;oBACjB,QAAQ,EAAE,oBAAC,wBAAwB,IAAC,EAAE,EAAE,EAAE,GAAI;iBAC9C;aACD,GACA,CACiB,CACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,33 +1,20 @@
|
|
|
1
1
|
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
2
|
-
import { DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-core";
|
|
3
2
|
import GraphProperties from "../../components/GraphProperties";
|
|
4
3
|
import GraphViewer from "../../components/GraphViewer";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { Skeleton, Space } from "antd";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { Skeleton } from "antd";
|
|
8
6
|
import { observe } from "@voplus/morpho-ui";
|
|
9
7
|
import styles from "./index.less";
|
|
10
|
-
import { faDiagramProjectSolid, faEllipsisVerticalSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
11
|
-
import { useFrame } from "../../../../components/ViewFrame/ViewFrameContext";
|
|
12
8
|
import { useDocument } from "@voplus/morpho-document-core";
|
|
13
9
|
import { Publish } from "../../../../controls/DocumentMenu/items";
|
|
14
10
|
import { OpenEditor } from "../../control/GraphMenu/item";
|
|
15
|
-
import
|
|
16
|
-
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
11
|
+
import DocumentPageHeadDashboard from "../../../../components/DocumentPageHeadDashboard";
|
|
17
12
|
/** The Graph Page component with router parameters support. */
|
|
18
13
|
const GraphDefaultView = ({ id }) => {
|
|
19
|
-
const frame = useFrame();
|
|
20
|
-
if (frame)
|
|
21
|
-
frame.header = null;
|
|
22
|
-
const [packUp, setPackUp] = useState(false);
|
|
23
|
-
const menuContext = useMemo(() => new DocumentMenuState(id), [id]);
|
|
24
14
|
const doc = useDocument(id, { includes: "path" });
|
|
25
|
-
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["graph-default-view"], header: React.createElement(
|
|
26
|
-
React.createElement(
|
|
27
|
-
|
|
28
|
-
React.createElement(Publish, null))), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
|
|
29
|
-
icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }),
|
|
30
|
-
}, blankMenu: packUp ? [] : ["OpenEditor", "Publish"] }) }), properties: React.createElement(GraphProperties, { id: id }) },
|
|
15
|
+
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["graph-default-view"], header: React.createElement(DocumentPageHeadDashboard, { id: id, actionButtons: React.createElement(React.Fragment, null,
|
|
16
|
+
React.createElement(OpenEditor, null),
|
|
17
|
+
React.createElement(Publish, null)), blankMenu: ["OpenEditor", "Publish"] }), properties: React.createElement(GraphProperties, { id: id }) },
|
|
31
18
|
React.createElement(Skeleton, { active: true, loading: !doc.loaded },
|
|
32
19
|
React.createElement(GraphViewer, { id: id, autoHeight: true })))));
|
|
33
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/graph/pages/GraphDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,0DAA0D,CAAC;AACzF,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/graph/pages/GraphDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,0DAA0D,CAAC;AACzF,OAAO,eAAe,MAAM,kCAAkC,CAAC;AAC/D,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,yBAAyB,MAAM,kDAAkD,CAAC;AAEzF,+DAA+D;AAC/D,MAAM,gBAAgB,GAAG,CAAC,EAAE,EAAE,EAAkB,EAAE,EAAE;IACnD,MAAM,GAAG,GAAG,WAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;IAElD,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,iBAAiB,IACjB,SAAS,EAAE,MAAM,CAAC,oBAAoB,CAAC,EACvC,MAAM,EACL,oBAAC,yBAAyB,IACzB,EAAE,EAAE,EAAE,EACN,aAAa,EACZ;gBACC,oBAAC,UAAU,OAAG;gBACd,oBAAC,OAAO,OAAG,CACT,EAEJ,SAAS,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC,GACnC,EAEH,UAAU,EAAE,oBAAC,eAAe,IAAC,EAAE,EAAE,EAAE,GAAI;QAEvC,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,CAAC,GAAG,CAAC,MAAM;YACpC,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CACxB,CACQ,CACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,37 +1,19 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import { faCodeRegular, faEllipsisVerticalSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
1
|
+
import React from "react";
|
|
3
2
|
import { observe } from "@voplus/morpho-ui";
|
|
4
3
|
import { useMessageTemplate } from "../../../../data/message-template";
|
|
5
|
-
import { useFrame } from "../../../../components/ViewFrame/ViewFrameContext";
|
|
6
4
|
import MessageTemplateProperties from "../../components/MessageTemplateProperties";
|
|
7
5
|
import MessageTemplateTabs from "../../components/MessageTemplateTabs";
|
|
8
|
-
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
9
|
-
import DocumentBreadCrumbsPath from "../../../../components/DocumentBreadCrumbsPath";
|
|
10
6
|
import { SendPreviewEmail } from "../../controls/MessageTemplateMenu/items";
|
|
11
|
-
import
|
|
12
|
-
import { Space } from "antd";
|
|
7
|
+
import DocumentPageHeadDashboard from "../../../../components/DocumentPageHeadDashboard";
|
|
13
8
|
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
14
|
-
import { DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-core";
|
|
15
|
-
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
16
9
|
import styles from "./index.less";
|
|
17
10
|
/** The MessageTemplate Page component with router parameters support. */
|
|
18
11
|
const MessageTemplateDefaultView = ({ id }) => {
|
|
19
|
-
const frame = useFrame();
|
|
20
|
-
if (frame)
|
|
21
|
-
frame.header = null;
|
|
22
|
-
const menuContext = useMemo(() => new DocumentMenuState(id), [id]);
|
|
23
|
-
const [packUp, setPackUp] = useState(false);
|
|
24
12
|
const messageTemplate = useMessageTemplate(id, {
|
|
25
13
|
reload: true,
|
|
26
14
|
includes: "layout,preview,path",
|
|
27
15
|
});
|
|
28
|
-
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["message-template-default-view"], header: React.createElement(
|
|
29
|
-
React.createElement(Space, { className: "menu-buttons" },
|
|
30
|
-
React.createElement(SendPreviewEmail, null),
|
|
31
|
-
React.createElement(Lock, null),
|
|
32
|
-
React.createElement(Unlock, null))), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
|
|
33
|
-
icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }),
|
|
34
|
-
}, blankMenu: packUp ? [] : ["SendPreviewEmail", "Lock", "Unlock"] }) }), properties: React.createElement(MessageTemplateProperties, { id: id }) },
|
|
16
|
+
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["message-template-default-view"], header: React.createElement(DocumentPageHeadDashboard, { id: id, actionButtons: React.createElement(SendPreviewEmail, null), blankMenu: ["SendPreviewEmail"] }), properties: React.createElement(MessageTemplateProperties, { id: id }) },
|
|
35
17
|
React.createElement(MessageTemplateTabs, { id: id, templateCanEdit: true }))));
|
|
36
18
|
};
|
|
37
19
|
export default MessageTemplateDefaultView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/message-template/pages/MessageTemplateDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/message-template/pages/MessageTemplateDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,yBAAyB,MAAM,4CAA4C,CAAC;AACnF,OAAO,mBAAmB,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,yBAAyB,MAAM,kDAAkD,CAAC;AACzF,OAAO,iBAAiB,MAAM,0DAA0D,CAAC;AACzF,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,yEAAyE;AACzE,MAAM,0BAA0B,GAAG,CAAC,EAAE,EAAE,EAAkB,EAAE,EAAE;IAC7D,MAAM,eAAe,GAAG,kBAAkB,CAAC,EAAE,EAAE;QAC9C,MAAM,EAAE,IAAI;QACZ,QAAQ,EAAE,qBAAqB;KAC/B,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,iBAAiB,IACjB,SAAS,EAAE,MAAM,CAAC,+BAA+B,CAAC,EAClD,MAAM,EACL,oBAAC,yBAAyB,IACzB,EAAE,EAAE,EAAE,EACN,aAAa,EAAE,oBAAC,gBAAgB,OAAG,EACnC,SAAS,EAAE,CAAC,kBAAkB,CAAC,GAC9B,EAEH,UAAU,EAAE,oBAAC,yBAAyB,IAAC,EAAE,EAAE,EAAE,GAAI;QAEjD,oBAAC,mBAAmB,IAAC,EAAE,EAAE,EAAE,EAAE,eAAe,SAAG,CAC5B,CACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -1,30 +1,19 @@
|
|
|
1
|
-
import React, { useEffect, useState
|
|
2
|
-
import { Skeleton
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
|
2
|
+
import { Skeleton } from "antd";
|
|
3
3
|
import { PageContext, PageContextState, usePage } from "../../data";
|
|
4
|
-
import { faEllipsisVerticalSolid, faBookBlankSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
5
4
|
import { useTabItem } from "@voplus/morpho-data";
|
|
6
5
|
import { observe } from "@voplus/morpho-ui";
|
|
7
6
|
import { runInAction } from "mobx";
|
|
8
|
-
import { DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-core";
|
|
9
|
-
import { useFrame } from "../../../../components/ViewFrame/ViewFrameContext";
|
|
10
7
|
import DocumentTabs from "../../../../components/DocumentTabs";
|
|
11
|
-
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
12
8
|
import PageItems from "../../components/PageItems";
|
|
13
|
-
import {
|
|
9
|
+
import { Print } from "../../../../controls/DocumentMenu/items";
|
|
14
10
|
import DocumentProperties from "../../../../components/DocumentProperties";
|
|
15
|
-
import DocumentBreadCrumbsPath from "../../../../components/DocumentBreadCrumbsPath";
|
|
16
|
-
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
17
11
|
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
12
|
+
import DocumentPageHeadDashboard from "../../../../components/DocumentPageHeadDashboard";
|
|
18
13
|
import "./index.less";
|
|
19
14
|
/** The Page Page component with router parameters support. */
|
|
20
15
|
const PageDefaultView = ({ id }) => {
|
|
21
|
-
const frame = useFrame();
|
|
22
|
-
if (frame) {
|
|
23
|
-
frame.header = null;
|
|
24
|
-
}
|
|
25
16
|
const [context] = useState(new PageContextState());
|
|
26
|
-
const menuContext = useMemo(() => new DocumentMenuState(id), [id]);
|
|
27
|
-
const [packUp, setPackUp] = useState(false);
|
|
28
17
|
const page = usePage(id, { reload: true, includes: "tags,versions" });
|
|
29
18
|
const tab = useTabItem();
|
|
30
19
|
useEffect(() => {
|
|
@@ -32,13 +21,7 @@ const PageDefaultView = ({ id }) => {
|
|
|
32
21
|
}, [page === null || page === void 0 ? void 0 : page.name]);
|
|
33
22
|
return observe(() => (React.createElement(PageContext.Provider, { value: context },
|
|
34
23
|
React.createElement(Skeleton, { active: true, loading: !page.loaded },
|
|
35
|
-
React.createElement(DefaultViewLayout, { className: "page-default-view", header: React.createElement(
|
|
36
|
-
React.createElement(Space, { className: "menu-buttons" },
|
|
37
|
-
React.createElement(Print, { url: `page/print/${page.id}` }),
|
|
38
|
-
React.createElement(Lock, null),
|
|
39
|
-
React.createElement(Unlock, null))), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
|
|
40
|
-
icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }),
|
|
41
|
-
}, blankMenu: packUp ? [] : ["Print", "Lock", "Unlock"] }) }), properties: React.createElement("div", { className: "properties-list document-properties-list" },
|
|
24
|
+
React.createElement(DefaultViewLayout, { className: "page-default-view", header: React.createElement(DocumentPageHeadDashboard, { id: id, actionButtons: React.createElement(Print, { url: `page/print/${page.id}` }), blankMenu: ["Print"] }), properties: React.createElement("div", { className: "properties-list document-properties-list" },
|
|
42
25
|
React.createElement(DocumentProperties, { id: id })) },
|
|
43
26
|
React.createElement(DocumentTabs, { id: id, details:
|
|
44
27
|
/* pageItem List */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/page/views/PageDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/page/views/PageDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,SAAS,MAAM,4BAA4B,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AE,EAAE,GAAI,CACzB;gBAGP,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,OAAO;oBACN,mBAAmB;oBACnB,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,CAAC,OAAO,CAAC,MAAM;wBACxC,oBAAC,SAAS,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAI,CACpC,GAEX,CACiB,CACV,CACW,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,CAAC,YAAY,GAAG;IAC9B,MAAM,EAAE,KAAK;CACb,CAAC;AACF,eAAe,eAAe,CAAC"}
|
|
@@ -1,41 +1,17 @@
|
|
|
1
1
|
import DocumentProperties from "../../components/DocumentProperties";
|
|
2
2
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
3
3
|
import DocumentListView from "../../components/DocumentListView/DocumentListView2";
|
|
4
|
-
import React
|
|
5
|
-
import { useFrame } from "../../components/ViewFrame/ViewFrameContext";
|
|
4
|
+
import React from "react";
|
|
6
5
|
import { observe } from "@voplus/morpho-ui";
|
|
7
|
-
import { faEllipsisVerticalSolid, faFolderOpenSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
8
|
-
import ToolBar from "../../controls/ToolBar/ToolBar2";
|
|
9
|
-
import { Lock, Unlock } from "../../controls/DocumentMenu/items";
|
|
10
|
-
import { Space } from "antd";
|
|
11
|
-
import { useDocument, useMetaStore, DocumentMenuContext, DocumentMenuState, } from "@voplus/morpho-document-core";
|
|
12
|
-
import DocumentBreadCrumbsPath from "../../components/DocumentBreadCrumbsPath";
|
|
13
|
-
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
14
6
|
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
15
|
-
import
|
|
7
|
+
import DocumentPageHeadDashboard from "../../components/DocumentPageHeadDashboard";
|
|
16
8
|
import styles from "./index.less";
|
|
17
9
|
const ExplorerView = (props) => {
|
|
18
10
|
const { id } = props;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const [packUp, setPackUp] = useState(false);
|
|
24
|
-
const menuContext = useMemo(() => new DocumentMenuState(id), [id]);
|
|
25
|
-
const doc = useDocument(id);
|
|
26
|
-
return observe(() => {
|
|
27
|
-
var _a;
|
|
28
|
-
return (React.createElement(DefaultViewLayout, { className: styles["document-default-view"], header: React.createElement(PageHeadDashboard, { avatarIcon: doc.name ? meta.getIcon(doc) : React.createElement(FAIcon, { icon: faFolderOpenSolid }), title: (_a = doc.name) !== null && _a !== void 0 ? _a : "Document Title", upAble: true, onPackUp: (up) => setPackUp(up), description: doc.name ? (React.createElement(DocumentBreadCrumbsPath, { id: id, packUp: packUp })) : ("Organize And Find Your Go-To Folders Effortlessly!"), rightExtra: React.createElement(DocumentMenuContext.Provider, { value: menuContext },
|
|
29
|
-
React.createElement(Space, { className: "menu-buttons" },
|
|
30
|
-
React.createElement(SubPasteDropdown, null),
|
|
31
|
-
React.createElement(Lock, null),
|
|
32
|
-
React.createElement(Unlock, null))), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
|
|
33
|
-
icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }),
|
|
34
|
-
}, blankMenu: packUp ? [] : ["Lock", "Unlock", "Paste"] }) }), properties: React.createElement(Scrollbars, { autoHide: true },
|
|
35
|
-
React.createElement("div", { className: "properties-list document-properties-list" },
|
|
36
|
-
React.createElement(DocumentProperties, { id: id }))) },
|
|
37
|
-
React.createElement(DocumentListView, { id: props.id })));
|
|
38
|
-
});
|
|
11
|
+
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["document-default-view"], header: React.createElement(DocumentPageHeadDashboard, { id: id }), properties: React.createElement(Scrollbars, { autoHide: true },
|
|
12
|
+
React.createElement("div", { className: "properties-list document-properties-list" },
|
|
13
|
+
React.createElement(DocumentProperties, { id: id }))) },
|
|
14
|
+
React.createElement(DocumentListView, { id: props.id }))));
|
|
39
15
|
};
|
|
40
16
|
export default ExplorerView;
|
|
41
17
|
//# sourceMappingURL=ExplorerView2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExplorerView2.js","sourceRoot":"","sources":["../../../src/views/ExplorerView/ExplorerView2.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,gBAAgB,MAAM,qDAAqD,CAAC;AACnF,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ExplorerView2.js","sourceRoot":"","sources":["../../../src/views/ExplorerView/ExplorerView2.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,gBAAgB,MAAM,qDAAqD,CAAC;AACnF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,iBAAiB,MAAM,0DAA0D,CAAC;AACzF,OAAO,yBAAyB,MAAM,4CAA4C,CAAC;AACnF,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,YAAY,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC9C,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,iBAAiB,IACjB,SAAS,EAAE,MAAM,CAAC,uBAAuB,CAAC,EAC1C,MAAM,EAAE,oBAAC,yBAAyB,IAAC,EAAE,EAAE,EAAE,GAAI,EAC7C,UAAU,EACT,oBAAC,UAAU,IAAC,QAAQ;YACnB,6BAAK,SAAS,EAAC,0CAA0C;gBACxD,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI,CACzB,CACM;QAGd,oBAAC,gBAAgB,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CACf,CACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|