@voplus/morpho-document 6.0.182 → 6.0.183
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.
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
.document-list-tree {
|
|
4
4
|
:global {
|
|
5
5
|
.ant-tree-treenode {
|
|
6
|
+
.ant-tree-indent:empty ~ .ant-tree-node-content-wrapper {
|
|
7
|
+
font-weight: bold;
|
|
8
|
+
}
|
|
6
9
|
.ant-tree-switcher {
|
|
7
10
|
margin-inline-end: 0;
|
|
8
11
|
}
|
|
@@ -10,7 +13,6 @@
|
|
|
10
13
|
text-align: left;
|
|
11
14
|
}
|
|
12
15
|
.ant-tree-node-content-wrapper {
|
|
13
|
-
font-weight: bold;
|
|
14
16
|
&.ant-tree-node-selected {
|
|
15
17
|
color: @primary-color;
|
|
16
18
|
background: #f0f7ff;
|
|
@@ -1,33 +1,36 @@
|
|
|
1
|
-
import DocumentListView from "../../components/DocumentListView/DocumentListView2";
|
|
2
1
|
import DocumentProperties from "../../components/DocumentProperties";
|
|
3
2
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import DocumentListView from "../../components/DocumentListView/DocumentListView2";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { useFrame } from "../../components/ViewFrame/ViewFrameContext";
|
|
6
|
+
import { useLayout } from "@voplus/morpho-data";
|
|
7
|
+
import { observe } from "@voplus/morpho-ui";
|
|
6
8
|
import { faEllipsisVertical } from "@fortawesome/pro-solid-svg-icons";
|
|
7
9
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
8
10
|
import ToolBar from "../../controls/ToolBar/ToolBar2";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
+
import { useDocument, useMetaStore } from "@voplus/morpho-document-core";
|
|
12
|
+
import BreadCrumbsPath from "@voplus/morpho-ui/es/components/layout/headers/components/BreadCrumbsPath";
|
|
13
|
+
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
14
|
+
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
11
15
|
import "./index.less";
|
|
12
16
|
const ExplorerView = (props) => {
|
|
13
17
|
const { id } = props;
|
|
14
|
-
const
|
|
15
|
-
|
|
18
|
+
const frame = useFrame();
|
|
19
|
+
if (frame)
|
|
20
|
+
frame.header = null;
|
|
21
|
+
const layout = useLayout();
|
|
22
|
+
const metas = useMetaStore();
|
|
16
23
|
const doc = useDocument(id);
|
|
17
|
-
return observe(() =>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
React.createElement(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
{
|
|
26
|
-
|
|
27
|
-
label: "Documents",
|
|
28
|
-
children: React.createElement(DocumentListView, { id: props.id }),
|
|
29
|
-
},
|
|
30
|
-
], headerVisibility: true, tabBarExtraContent: React.createElement(ToolBar, { id: id, moreProps: { icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) } }) })));
|
|
24
|
+
return observe(() => {
|
|
25
|
+
var _a;
|
|
26
|
+
return (React.createElement(DefaultViewLayout, { header: React.createElement(PageHeadDashboard, { avatarIcon: metas.getIcon(doc), title: doc.name, description: React.createElement(BreadCrumbsPath, { path: (_a = doc.path) === null || _a === void 0 ? void 0 : _a.slice(-3), onToPath: (item) => {
|
|
27
|
+
const route = metas.getRoute({ id: item.id, type: item.objectType });
|
|
28
|
+
layout.history.push(`${route}`);
|
|
29
|
+
} }), rightExtra: React.createElement(ToolBar, { id: id, moreProps: { icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) } }) }), properties: React.createElement(Scrollbars, { autoHide: true },
|
|
30
|
+
React.createElement("div", { className: "properties-list document-properties-list" },
|
|
31
|
+
React.createElement(DocumentProperties, { id: id }))) },
|
|
32
|
+
React.createElement(DocumentListView, { id: props.id })));
|
|
33
|
+
});
|
|
31
34
|
};
|
|
32
35
|
export default ExplorerView;
|
|
33
36
|
//# sourceMappingURL=ExplorerView2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExplorerView2.js","sourceRoot":"","sources":["../../../src/views/ExplorerView/ExplorerView2.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
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,QAAQ,EAAE,MAAM,6CAA6C,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,OAAO,MAAM,iCAAiC,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,eAAe,MAAM,2EAA2E,CAAC;AACxG,OAAO,iBAAiB,MAAM,kEAAkE,CAAC;AACjG,OAAO,iBAAiB,MAAM,0DAA0D,CAAC;AACzF,OAAO,cAAc,CAAC;AAEtB,MAAM,YAAY,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC9C,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,IAAI,KAAK;QAAE,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC;IAC/B,MAAM,MAAM,GAAG,SAAS,EAAE,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