@voplus/morpho-document 6.0.87 → 6.0.88
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/ViewFrame/ViewFrameContext.js +3 -2
- package/es/components/ViewFrame/ViewFrameContext.js.map +1 -1
- package/es/components/ViewFrame/index.js +9 -6
- package/es/components/ViewFrame/index.js.map +1 -1
- package/es/views/ExplorerView/ExplorerView2.d.ts +6 -0
- package/es/views/ExplorerView/ExplorerView2.js +37 -0
- package/es/views/ExplorerView/ExplorerView2.js.map +1 -0
- package/es/views/ExplorerView/index.d.ts +0 -1
- package/es/views/ExplorerView/index.js +4 -33
- package/es/views/ExplorerView/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,8 +4,9 @@ import { createContext, useContext } from "react";
|
|
|
4
4
|
import ViewFrameHeader from "./ViewFrameHeader";
|
|
5
5
|
import PathHeader from "./PathHeader";
|
|
6
6
|
import DocumentTabbedView from "../../views/DocumentTabbedView";
|
|
7
|
-
import ExplorerView from "../../views/ExplorerView";
|
|
7
|
+
import ExplorerView from "../../views/ExplorerView/ExplorerView2";
|
|
8
8
|
import React from "react";
|
|
9
|
+
import { Skeleton } from "antd";
|
|
9
10
|
import TreeView from "../../views/TreeView";
|
|
10
11
|
import { computed } from "mobx";
|
|
11
12
|
export class ViewFrameContextState {
|
|
@@ -110,7 +111,7 @@ export class ViewFrameContextState {
|
|
|
110
111
|
this.header = v ? "ViewFrameHeader" : "PathHeader";
|
|
111
112
|
return v !== null && v !== void 0 ? v : React.createElement(ExplorerView, { id: this.id });
|
|
112
113
|
}
|
|
113
|
-
return null;
|
|
114
|
+
return React.createElement(Skeleton, null);
|
|
114
115
|
}
|
|
115
116
|
}
|
|
116
117
|
get headerComponent() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewFrameContext.js","sourceRoot":"","sources":["../../../src/components/ViewFrame/ViewFrameContext.tsx"],"names":[],"mappings":";AACA,OAAO,EA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=> {
|
|
19
19
|
runInAction(() => (tab.title = document === null || document === void 0 ? void 0 : document.name));
|
|
20
20
|
});
|
|
21
|
-
return observe(() =>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
React.createElement("div", { className: "view-frame-
|
|
21
|
+
return observe(() => {
|
|
22
|
+
var _a, _b;
|
|
23
|
+
return (React.createElement(ViewFrameContext.Provider, { value: context },
|
|
24
|
+
React.createElement("div", { className: classnames(styles["view-frame"], props.className) },
|
|
25
|
+
React.createElement(AsideContent, { context: asideContext, header: context.header === "ViewFrameHeader" ? (_a = context.headerComponent) !== null && _a !== void 0 ? _a : undefined : undefined },
|
|
26
|
+
React.createElement("div", { className: "view-frame-entirety" },
|
|
27
|
+
React.createElement(React.Fragment, null, context.header === "PathHeader" ? (_b = context.headerComponent) !== null && _b !== void 0 ? _b : undefined : undefined),
|
|
28
|
+
React.createElement("div", { className: "view-frame-context" }, context.ViewComponent))))));
|
|
29
|
+
});
|
|
27
30
|
};
|
|
28
31
|
export default ViewFrame;
|
|
29
32
|
//# 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,mBAAmB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,E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G,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CAAC,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,oBAAC,gBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO;YACxC,6BAAK,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;gBAChE,oBAAC,YAAY,IACZ,OAAO,EAAE,YAAY,EACrB,MAAM,EACL,OAAO,CAAC,MAAM,KAAK,iBAAiB,CAAC,CAAC,CAAC,MAAA,OAAO,CAAC,eAAe,mCAAI,SAAS,CAAC,CAAC,CAAC,SAAS;oBAGxF,6BAAK,SAAS,EAAC,qBAAqB;wBACnC,0CACE,OAAO,CAAC,MAAM,KAAK,YAAY,CAAC,CAAC,CAAC,MAAA,OAAO,CAAC,eAAe,mCAAI,SAAS,CAAC,CAAC,CAAC,SAAS,CACjF;wBACH,6BAAK,SAAS,EAAC,oBAAoB,IAAE,OAAO,CAAC,aAAa,CAAO,CAC5D,CACQ,CACV,CACqB,CAC5B,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import DocumentListView from "../../components/DocumentListView/DocumentListView2";
|
|
2
|
+
import DocumentProperties from "../../components/DocumentProperties";
|
|
3
|
+
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
4
|
+
import React, { useState } from "react";
|
|
5
|
+
import { Button } from "antd";
|
|
6
|
+
import NewDocumentForm from "../../components/NewDocumentForm";
|
|
7
|
+
import { observe, useAsideContentContext } from "@voplus/morpho-ui";
|
|
8
|
+
import { faEllipsisVertical } from "@fortawesome/pro-solid-svg-icons";
|
|
9
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
10
|
+
import ToolBar from "../../controls/ToolBar/ToolBar2";
|
|
11
|
+
import DocumentTabs from "../../components/DocumentTabs";
|
|
12
|
+
import { useDocument } from "@voplus/morpho-document-core";
|
|
13
|
+
import "./index.less";
|
|
14
|
+
const ExplorerView = (props) => {
|
|
15
|
+
const { id } = props;
|
|
16
|
+
const asideContext = useAsideContentContext();
|
|
17
|
+
const [activeKey, setActiveKey] = useState();
|
|
18
|
+
const doc = useDocument(id);
|
|
19
|
+
return observe(() => (React.createElement(DocumentTabs, { id: id, active: "Documents", onChange: (key) => setActiveKey(key), tabItems: [
|
|
20
|
+
{
|
|
21
|
+
key: "Properties",
|
|
22
|
+
label: "Properties",
|
|
23
|
+
children: (React.createElement(Scrollbars, { autoHide: true },
|
|
24
|
+
React.createElement("div", { className: "properties-list document-properties-list" },
|
|
25
|
+
React.createElement(DocumentProperties, { id: id })))),
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
key: "Documents",
|
|
29
|
+
label: "Documents",
|
|
30
|
+
children: React.createElement(DocumentListView, { id: props.id }),
|
|
31
|
+
},
|
|
32
|
+
], tabBarExtraContent: React.createElement("div", { className: "doc-tabs-extra-content" },
|
|
33
|
+
activeKey === "Documents" && doc.status !== "Readonly" && (React.createElement(Button, { type: "link", className: "doc-tab-create", onClick: () => asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(NewDocumentForm, { parentId: id }), { span: 12 }) }, "+ Create New")),
|
|
34
|
+
React.createElement(ToolBar, { id: id, moreProps: { icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) } })) })));
|
|
35
|
+
};
|
|
36
|
+
export default ExplorerView;
|
|
37
|
+
//# sourceMappingURL=ExplorerView2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExplorerView2.js","sourceRoot":"","sources":["../../../src/views/ExplorerView/ExplorerView2.tsx"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,qDAAqD,CAAC;AACnF,OAAO,kBAAkB,MAAM,qCAAqC,CAA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GAAG,EAAE,WAAW;gBAChB,KAAK,EAAE,WAAW;gBAClB,QAAQ,EAAE,oBAAC,gBAAgB,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI;aAC5C;SACD,EACD,kBAAkB,EACjB,6BAAK,SAAS,EAAC,wBAAwB;YACrC,SAAS,KAAK,WAAW,IAAI,GAAG,CAAC,MAAM,KAAK,UAAU,IAAI,CAC1D,oBAAC,MAAM,IACN,IAAI,EAAC,MAAM,EACX,SAAS,EAAC,gBAAgB,EAC1B,OAAO,EAAE,GAAG,EAAE,CACb,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,CAAC,oBAAC,eAAe,IAAC,QAAQ,EAAE,EAAE,GAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,mBAIjE,CACT;YACD,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,kBAAkB,GAAI,EAAE,GAAI,CACzE,GAEN,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,37 +1,8 @@
|
|
|
1
|
-
import DocumentListView from "../../components/DocumentListView
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import React, { useState } from "react";
|
|
5
|
-
import { Button } from "antd";
|
|
6
|
-
import NewDocumentForm from "../../components/NewDocumentForm";
|
|
7
|
-
import { observe, useAsideContentContext } from "@voplus/morpho-ui";
|
|
8
|
-
import { faEllipsisVertical } from "@fortawesome/pro-solid-svg-icons";
|
|
9
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
10
|
-
import ToolBar from "../../controls/ToolBar/ToolBar2";
|
|
11
|
-
import DocumentTabs from "../../components/DocumentTabs";
|
|
12
|
-
import { useDocument } from "@voplus/morpho-document-core";
|
|
13
|
-
import "./index.less";
|
|
1
|
+
import DocumentListView from "../../components/DocumentListView";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
14
4
|
const ExplorerView = (props) => {
|
|
15
|
-
|
|
16
|
-
const asideContext = useAsideContentContext();
|
|
17
|
-
const [activeKey, setActiveKey] = useState();
|
|
18
|
-
const doc = useDocument(id);
|
|
19
|
-
return observe(() => (React.createElement(DocumentTabs, { id: id, active: "Documents", onChange: (key) => setActiveKey(key), tabItems: [
|
|
20
|
-
{
|
|
21
|
-
key: "Properties",
|
|
22
|
-
label: "Properties",
|
|
23
|
-
children: (React.createElement(Scrollbars, { autoHide: true },
|
|
24
|
-
React.createElement("div", { className: "properties-list document-properties-list" },
|
|
25
|
-
React.createElement(DocumentProperties, { id: id })))),
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
key: "Documents",
|
|
29
|
-
label: "Documents",
|
|
30
|
-
children: React.createElement(DocumentListView, { id: props.id }),
|
|
31
|
-
},
|
|
32
|
-
], tabBarExtraContent: React.createElement("div", { className: "doc-tabs-extra-content" },
|
|
33
|
-
activeKey === "Documents" && doc.status !== "Readonly" && (React.createElement(Button, { type: "link", className: "doc-tab-create", onClick: () => asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(NewDocumentForm, { parentId: id }), { span: 12 }) }, "+ Create New")),
|
|
34
|
-
React.createElement(ToolBar, { id: id, moreProps: { icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) } })) })));
|
|
5
|
+
return observe(() => React.createElement(DocumentListView, { id: props.id, headerVisible: false }));
|
|
35
6
|
};
|
|
36
7
|
export default ExplorerView;
|
|
37
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/views/ExplorerView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/views/ExplorerView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,mCAAmC,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,YAAY,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC9C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,oBAAC,gBAAgB,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,aAAa,EAAE,KAAK,GAAI,CAAC,CAAC;AAChF,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|