@voplus/morpho-document 1.0.0-dev274 → 1.0.0-dev277
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/ActivityLog/ActivityLog2/index.d.ts +3 -0
- package/es/components/ActivityLog/ActivityLog2/index.js +5 -4
- package/es/components/ActivityLog/ActivityLog2/index.js.map +1 -1
- package/es/components/ActivityLog/ActivityLog2/index.less +36 -58
- package/es/components/DocumentCard/index.js +1 -1
- package/es/components/DocumentCard/index.js.map +1 -1
- package/es/components/DocumentHeader/index.js +1 -1
- package/es/components/DocumentHeader/index.js.map +1 -1
- package/es/components/DocumentItem/index.js +1 -1
- package/es/components/DocumentItem/index.js.map +1 -1
- package/es/components/DocumentList/index.js +2 -2
- package/es/components/DocumentList/index.js.map +1 -1
- package/es/components/DocumentList/index.less +3 -0
- package/es/components/DocumentTabs/index.d.ts +2 -0
- package/es/components/DocumentTabs/index.js +4 -3
- package/es/components/DocumentTabs/index.js.map +1 -1
- package/es/components/ExtraDataCardList/index.d.ts +5 -0
- package/es/components/ExtraDataCardList/index.js +38 -0
- package/es/components/ExtraDataCardList/index.js.map +1 -0
- package/es/components/Links/index.less +111 -111
- package/es/components/QuickAccessSearch/ObjectItem/index.js +2 -2
- package/es/components/QuickAccessSearch/ObjectItem/index.js.map +1 -1
- package/es/controls/ToolBar/ToolBar2.js +2 -2
- package/es/controls/ToolBar/ToolBar2.js.map +1 -1
- package/es/controls/ToolBar/ToolBarState.d.ts +13 -4
- package/es/controls/ToolBar/ToolBarState.js +10 -1
- package/es/controls/ToolBar/ToolBarState.js.map +1 -1
- package/es/controls/ToolBar/buttons/More.d.ts +2 -2
- package/es/controls/ToolBar/buttons/More.js +2 -2
- package/es/controls/ToolBar/buttons/More.js.map +1 -1
- package/es/controls/ToolBar/menus/Access.js +3 -3
- package/es/controls/ToolBar/menus/Access.js.map +1 -1
- package/es/controls/ToolBar/menus/Delete.js +1 -0
- package/es/controls/ToolBar/menus/Delete.js.map +1 -1
- package/es/controls/ToolBar/menus/Lock.js +1 -0
- package/es/controls/ToolBar/menus/Lock.js.map +1 -1
- package/es/controls/ToolBar/menus/Move.js +1 -0
- package/es/controls/ToolBar/menus/Move.js.map +1 -1
- package/es/controls/ToolBar/menus/OpenReferenceView.js +5 -3
- package/es/controls/ToolBar/menus/OpenReferenceView.js.map +1 -1
- package/es/controls/ToolBar/menus/OpenTreeView.js +1 -0
- package/es/controls/ToolBar/menus/OpenTreeView.js.map +1 -1
- package/es/controls/ToolBar/menus/Paste.js +1 -0
- package/es/controls/ToolBar/menus/Paste.js.map +1 -1
- package/es/controls/ToolBar/menus/Publish.js +3 -3
- package/es/controls/ToolBar/menus/Publish.js.map +1 -1
- package/es/controls/ToolBar/menus/PublishLock.js +3 -3
- package/es/controls/ToolBar/menus/PublishLock.js.map +1 -1
- package/es/controls/ToolBar/menus/Revert.js +3 -0
- package/es/controls/ToolBar/menus/Revert.js.map +1 -1
- package/es/modules/unit/components/ChangeUserPassword/index.d.ts +6 -0
- package/es/modules/unit/components/ChangeUserPassword/index.js +37 -0
- package/es/modules/unit/components/ChangeUserPassword/index.js.map +1 -0
- package/es/modules/unit/components/ChangeUserPassword/index.less +13 -0
- package/es/modules/unit/components/ContactUserInfoView/index.d.ts +3 -0
- package/es/modules/unit/components/ContactUserInfoView/index.js +40 -0
- package/es/modules/unit/components/ContactUserInfoView/index.js.map +1 -0
- package/es/modules/unit/components/ContactUserInfoView/index.less +20 -0
- package/es/modules/unit/components/ContactUserInfoView/state.d.ts +5 -0
- package/es/modules/unit/components/ContactUserInfoView/state.js +14 -0
- package/es/modules/unit/components/ContactUserInfoView/state.js.map +1 -0
- package/es/modules/unit/components/Members/index.js +14 -25
- package/es/modules/unit/components/Members/index.js.map +1 -1
- package/es/modules/unit/components/NewUnitForm/index.d.ts +1 -1
- package/es/modules/unit/components/SubUnitList/index.d.ts +6 -2
- package/es/modules/unit/components/SubUnitList/index.js +17 -20
- package/es/modules/unit/components/SubUnitList/index.js.map +1 -1
- package/es/modules/unit/components/SubUnitList/index.less +10 -4
- package/es/modules/unit/components/SubUnitList/state.d.ts +15 -0
- package/es/modules/unit/components/SubUnitList/state.js +36 -1
- package/es/modules/unit/components/SubUnitList/state.js.map +1 -1
- package/es/modules/unit/components/UnitItem/Item.d.ts +17 -0
- package/es/modules/unit/components/UnitItem/Item.js +24 -0
- package/es/modules/unit/components/UnitItem/Item.js.map +1 -0
- package/es/modules/unit/components/UnitItem/index.js +43 -0
- package/es/modules/unit/components/UnitItem/index.js.map +1 -0
- package/es/modules/unit/components/UnitItem/index.less +17 -9
- package/es/modules/unit/components/UnitItem/state.d.ts +2 -2
- package/es/modules/unit/components/UnitItem/state.js.map +1 -1
- package/es/modules/unit/components/UnitList/index.js +4 -4
- package/es/modules/unit/components/UnitList/index.js.map +1 -1
- package/es/modules/unit/components/UnitName/index.d.ts +5 -0
- package/es/modules/unit/components/UnitName/index.js +20 -0
- package/es/modules/unit/components/UnitName/index.js.map +1 -0
- package/es/modules/unit/components/UnitSortableTree/index.js +4 -5
- package/es/modules/unit/components/UnitSortableTree/index.js.map +1 -1
- package/es/modules/unit/components/UnitSortableTree/themes/FileExplorerTheme/index.d.ts +3 -0
- package/es/modules/unit/components/UnitSortableTree/themes/FileExplorerTheme/index.js +22 -0
- package/es/modules/unit/components/UnitSortableTree/themes/FileExplorerTheme/index.js.map +1 -0
- package/es/modules/unit/components/UnitSortableTree/themes/FileExplorerTheme/node-content-renderer.js +82 -0
- package/es/modules/unit/components/UnitSortableTree/themes/FileExplorerTheme/node-content-renderer.js.map +1 -0
- package/es/modules/unit/components/UnitSortableTree/themes/FileExplorerTheme/node-content-renderer.less +316 -0
- package/es/modules/unit/components/UnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.js +21 -0
- package/es/modules/unit/components/UnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.js.map +1 -0
- package/es/modules/unit/components/UnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.less +4 -0
- package/es/modules/unit/components/UnitSortableTree/themes/SortableTreeUnitTheme/index.js.map +1 -0
- package/es/modules/unit/components/UnitSortableTree/themes/SortableTreeUnitTheme/node-content-renderer.d.ts +3 -0
- package/es/modules/unit/components/{SortableTreeUnitTheme → UnitSortableTree/themes/SortableTreeUnitTheme}/node-content-renderer.js +2 -2
- package/es/modules/unit/components/UnitSortableTree/themes/SortableTreeUnitTheme/node-content-renderer.js.map +1 -0
- package/es/modules/unit/components/{SortableTreeUnitTheme → UnitSortableTree/themes/SortableTreeUnitTheme}/node-content-renderer.less +0 -1
- package/es/modules/unit/components/UnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.d.ts +3 -0
- package/es/modules/unit/components/UnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.js.map +1 -0
- package/es/modules/unit/components/UnitTabs/index.js +5 -2
- package/es/modules/unit/components/UnitTabs/index.js.map +1 -1
- package/es/modules/unit/components/UnitsSelectDialog/index.d.ts +9 -0
- package/es/modules/unit/components/UnitsSelectDialog/index.js +35 -0
- package/es/modules/unit/components/UnitsSelectDialog/index.js.map +1 -0
- package/es/modules/unit/components/UnitsSelectDialog/index.less +36 -0
- package/es/modules/unit/components/UnitsSelectDialog/state.d.ts +34 -0
- package/es/modules/unit/components/UnitsSelectDialog/state.js +73 -0
- package/es/modules/unit/components/UnitsSelectDialog/state.js.map +1 -0
- package/es/modules/unit/controls/QuickDataIcon/index.less +12 -0
- package/es/modules/unit/data/UserStore.d.ts +33 -0
- package/es/modules/unit/data/UserStore.js +53 -0
- package/es/modules/unit/data/UserStore.js.map +1 -0
- package/es/modules/unit/data/hooks/useUserInfo.d.ts +6 -0
- package/es/modules/unit/data/hooks/useUserInfo.js +12 -0
- package/es/modules/unit/data/hooks/useUserInfo.js.map +1 -0
- package/es/modules/unit/data/interfaces/IUnit.d.ts +2 -0
- package/es/modules/unit/data/interfaces/IUserInfo.d.ts +12 -0
- package/es/modules/unit/data/interfaces/IUserInfo.js +1 -0
- package/es/modules/unit/data/interfaces/IUserInfo.js.map +1 -0
- package/es/modules/unit/data/interfaces/index.d.ts +1 -0
- package/es/modules/unit/data/interfaces/index.js +1 -0
- package/es/modules/unit/data/interfaces/index.js.map +1 -1
- package/es/modules/unit/pages/UnitTreeView/index.js +1 -1
- package/es/modules/unit/pages/UnitTreeView/index.js.map +1 -1
- package/es/pages/Page/PageTextItem/index.js +1 -1
- package/es/pages/Page/PageTextItem/index.js.map +1 -1
- package/package.json +1 -1
- package/es/modules/unit/components/SortableTreeUnitTheme/index.js.map +0 -1
- package/es/modules/unit/components/SortableTreeUnitTheme/node-content-renderer.js.map +0 -1
- package/es/modules/unit/components/SortableTreeUnitTheme/tree-node-renderer.js.map +0 -1
- package/es/modules/unit/components/UnitItem/DefaultUnitItem.d.ts +0 -4
- package/es/modules/unit/components/UnitItem/DefaultUnitItem.js +0 -29
- package/es/modules/unit/components/UnitItem/DefaultUnitItem.js.map +0 -1
- package/es/modules/unit/components/UnitItem/SubUnitItem.js +0 -45
- package/es/modules/unit/components/UnitItem/SubUnitItem.js.map +0 -1
- /package/es/modules/unit/components/UnitItem/{SubUnitItem.d.ts → index.d.ts} +0 -0
- /package/es/modules/unit/components/{SortableTreeUnitTheme → UnitSortableTree/themes/FileExplorerTheme}/node-content-renderer.d.ts +0 -0
- /package/es/modules/unit/components/{SortableTreeUnitTheme → UnitSortableTree/themes/FileExplorerTheme}/tree-node-renderer.d.ts +0 -0
- /package/es/modules/unit/components/{SortableTreeUnitTheme → UnitSortableTree/themes/SortableTreeUnitTheme}/index.d.ts +0 -0
- /package/es/modules/unit/components/{SortableTreeUnitTheme → UnitSortableTree/themes/SortableTreeUnitTheme}/index.js +0 -0
- /package/es/modules/unit/components/{SortableTreeUnitTheme → UnitSortableTree/themes/SortableTreeUnitTheme}/tree-node-renderer.js +0 -0
- /package/es/modules/unit/components/{SortableTreeUnitTheme → UnitSortableTree/themes/SortableTreeUnitTheme}/tree-node-renderer.less +0 -0
|
@@ -1,15 +1,23 @@
|
|
|
1
|
-
.unit-item {
|
|
1
|
+
.unit-item-content {
|
|
2
2
|
flex: 1;
|
|
3
|
-
color: #333;
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
position: relative;
|
|
7
|
-
padding: 10px 0;
|
|
8
|
-
margin: 0 20px;
|
|
9
|
-
border-bottom: 1px solid #d9d9d9;
|
|
10
3
|
:global {
|
|
4
|
+
.unit-item {
|
|
5
|
+
flex: 1;
|
|
6
|
+
color: #333;
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
position: relative;
|
|
10
|
+
padding: 10px 0;
|
|
11
|
+
margin: 0 20px;
|
|
12
|
+
border-bottom: 1px solid #d9d9d9;
|
|
13
|
+
}
|
|
14
|
+
.unit-detail{
|
|
15
|
+
flex: 1;
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
}
|
|
11
19
|
.unit-item_box {
|
|
12
|
-
flex:1;
|
|
20
|
+
flex: 1;
|
|
13
21
|
display: flex;
|
|
14
22
|
align-items: center;
|
|
15
23
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ConnectDragSource } from "react-dnd";
|
|
2
1
|
import { IUnit } from "../../data";
|
|
3
2
|
export declare type UnitItemProps = {
|
|
4
3
|
/** unit item id */
|
|
@@ -6,13 +5,14 @@ export declare type UnitItemProps = {
|
|
|
6
5
|
/** unit item parentId */
|
|
7
6
|
parentId?: string;
|
|
8
7
|
index?: number;
|
|
8
|
+
/** "detail" 详情| "sub" sub列表| "select" 文件选择对话盒| "tree" UnitSortableTree */
|
|
9
9
|
type?: string;
|
|
10
10
|
reload?: boolean;
|
|
11
11
|
multiple?: boolean;
|
|
12
|
-
connectDragSource?: ConnectDragSource;
|
|
13
12
|
onExpand?: () => void;
|
|
14
13
|
onReload?: () => void;
|
|
15
14
|
className?: string;
|
|
15
|
+
onSelectUnit?: (params?: any) => void;
|
|
16
16
|
};
|
|
17
17
|
export declare class State {
|
|
18
18
|
contact: IUnit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/UnitItem/state.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/UnitItem/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAkBlC,MAAM,OAAO,KAAK;IAAlB;QAEC,0BAA0B;QACP,aAAQ,GAAG,KAAK,CAAC;QACpC,6BAA6B;QACV,YAAO,GAAG,KAAK,CAAC;IACpC,CAAC;CAAA;AALY;IAAX,UAAU;sCAAuB;AAEtB;IAAX,UAAU;uCAAyB;AAExB;IAAX,UAAU;sCAAwB"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { DocumentStatusFilter, FlagFilter } from "../../../../controls/filters";
|
|
2
1
|
import { useAutoUpdateUnitListData, useUnitListEffect } from "../../data";
|
|
3
2
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
4
3
|
import React, { useState } from "react";
|
|
5
4
|
import { State } from "./state";
|
|
6
5
|
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
|
7
6
|
import NewUnitForm from "../NewUnitForm";
|
|
8
|
-
import UnitItem from "../UnitItem
|
|
7
|
+
import UnitItem from "../UnitItem";
|
|
9
8
|
import UnitPropertiesView from "../UnitPropertiesView";
|
|
9
|
+
import UnitTypeFilter from "../../controls/UnitTypeFilter";
|
|
10
10
|
import { useObserver } from "mobx-react-lite";
|
|
11
11
|
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
12
12
|
const UnitList = (props) => {
|
|
@@ -28,10 +28,10 @@ const UnitList = (props) => {
|
|
|
28
28
|
return useObserver(() => (React.createElement(ListDataContext.Provider, { value: list },
|
|
29
29
|
React.createElement(ListView, { renderId: parentId, headerProps: {
|
|
30
30
|
filterViewProps: {
|
|
31
|
-
columns: [React.createElement(
|
|
31
|
+
columns: [React.createElement(UnitTypeFilter, { key: "Type" })]
|
|
32
32
|
},
|
|
33
33
|
sortable: false
|
|
34
|
-
}, formViewTitle: "Add Unit", formView: React.createElement(NewUnitForm, { parentId: "c896a84e-b31a-4d10-a181-5d34a21b172d" }), propertiesView: (id) => React.createElement(UnitPropertiesView, { id: id }), renderItem: ({ item, index, connectDragSource }) => (React.createElement(UnitItem, { id: item.id, index: index, reload: !!readonly })) }))));
|
|
34
|
+
}, formViewTitle: "Add Unit", formView: React.createElement(NewUnitForm, { parentId: "c896a84e-b31a-4d10-a181-5d34a21b172d" }), propertiesView: (id) => React.createElement(UnitPropertiesView, { id: id }), renderItem: ({ item, index, connectDragSource }) => (React.createElement(UnitItem, { id: item.id, index: index, reload: !!readonly, type: "detail" })) }))));
|
|
35
35
|
};
|
|
36
36
|
export default UnitList;
|
|
37
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/UnitList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/UnitList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAiB,MAAM,SAAS,CAAC;AAE/C,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,cAAc,MA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,sCAAsC,GAAG,EACzE,cAAc,EAAE,CAAC,EAAU,EAAE,EAAE,CAAC,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI,EAC9D,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,iBAAiB,EAAO,EAAE,EAAE,CAAC,CACxD,oBAAC,QAAQ,IACR,EAAE,EAAE,IAAI,CAAC,EAAE,EACX,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,CAAC,CAAC,QAAQ,EAClB,IAAI,EAAC,QAAQ,GAEZ,CACF,GACA,CACwB,CAC3B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { faSitemap, faUser, faUserAlt, faUsers } from "@fortawesome/pro-light-svg-icons";
|
|
2
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { useObserver } from "mobx-react-lite";
|
|
5
|
+
import { useUnit } from "../../data";
|
|
6
|
+
import { useUnitContext } from "../../data/UnitContext";
|
|
7
|
+
const UnitName = (props) => {
|
|
8
|
+
const { id } = props;
|
|
9
|
+
const contact = useUnit(id, { reload: false });
|
|
10
|
+
const store = useUnitContext();
|
|
11
|
+
return useObserver(() => (React.createElement("div", { className: "file-document-name", onClick: () => { var _a; return (_a = store.onUnitSelected) === null || _a === void 0 ? void 0 : _a.call(store, contact.id); } },
|
|
12
|
+
React.createElement("div", { className: "file-type" },
|
|
13
|
+
contact.type === "Organization" && React.createElement(FAIcon, { icon: faSitemap }),
|
|
14
|
+
contact.type === "Team" && React.createElement(FAIcon, { icon: faUsers }),
|
|
15
|
+
contact.type === "Account" && React.createElement(FAIcon, { icon: faUserAlt }),
|
|
16
|
+
contact.type === "User" && React.createElement(FAIcon, { icon: faUser })),
|
|
17
|
+
React.createElement("div", { className: "file-name" }, contact.name))));
|
|
18
|
+
};
|
|
19
|
+
export default UnitName;
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/UnitName/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAEzF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,QAAQ,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC1C,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,OAAO,GAAG,OAAO,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAC/C,MAAM,KAAK,GAAG,cAAc,EAAE,CAAC;IAE/B,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB,6BAAK,SAAS,EAAE,oBAAoB,EAAE,OAAO,EAAE,GAAG,EAAE,wBAAC,KAAK,CAAC,cAAc,+CAApB,KAAK,EAAkB,OAAO,CAAC,EAAE,IAAC;QACtF,6BAAK,SAAS,EAAC,WAAW;YACxB,OAAO,CAAC,IAAI,KAAK,cAAc,IAAI,oBAAC,MAAM,IAAC,IAAI,EAAE,SAAS,GAAI;YAC9D,OAAO,CAAC,IAAI,KAAK,MAAM,IAAI,oBAAC,MAAM,IAAC,IAAI,EAAE,OAAO,GAAI;YACpD,OAAO,CAAC,IAAI,KAAK,SAAS,IAAI,oBAAC,MAAM,IAAC,IAAI,EAAE,SAAS,GAAI;YACzD,OAAO,CAAC,IAAI,KAAK,MAAM,IAAI,oBAAC,MAAM,IAAC,IAAI,EAAE,MAAM,GAAI,CAC/C;QACN,6BAAK,SAAS,EAAC,WAAW,IAAE,OAAO,CAAC,IAAI,CAAO,CAC1C,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -2,9 +2,9 @@ import { useOnDeleteUnit, useOnNewUnit, useUnit, useUnitListEffect, useUnitStore
|
|
|
2
2
|
import React, { useEffect, useState } from "react";
|
|
3
3
|
import { State } from "./state";
|
|
4
4
|
import { UnitContext, UnitContextState } from "../../data/UnitContext";
|
|
5
|
-
import
|
|
5
|
+
import Panable from "@voplus/morpho-ui/es/controls/Panable";
|
|
6
6
|
import SortableTree from "react-sortable-tree";
|
|
7
|
-
import SortableTreeUnitTheme from "
|
|
7
|
+
import SortableTreeUnitTheme from "./themes/SortableTreeUnitTheme";
|
|
8
8
|
import { useObserver } from "mobx-react-lite";
|
|
9
9
|
const UnitSortableTree = (props) => {
|
|
10
10
|
const { theme, canDrag } = props;
|
|
@@ -16,7 +16,7 @@ const UnitSortableTree = (props) => {
|
|
|
16
16
|
/** 根文件 */
|
|
17
17
|
const root = useUnit(props.id);
|
|
18
18
|
useObserver(() => {
|
|
19
|
-
if (root.id && !state.treeData.length) {
|
|
19
|
+
if (root.id && root.loaded && !state.treeData.length) {
|
|
20
20
|
// if (root.documents! > 0) {
|
|
21
21
|
root.children = state.treeChildren;
|
|
22
22
|
// }
|
|
@@ -40,7 +40,6 @@ const UnitSortableTree = (props) => {
|
|
|
40
40
|
});
|
|
41
41
|
useOnNewUnit((s, unit) => {
|
|
42
42
|
var _a, _b;
|
|
43
|
-
console.log("useOnNewUnit--tree", unit.id, unit.name);
|
|
44
43
|
state.editTreeData(state.treeData, unit.parentNodeId);
|
|
45
44
|
if (!((_a = state.treeNodeChildren) === null || _a === void 0 ? void 0 : _a.children)) {
|
|
46
45
|
state.treeNodeChildren.children = [unit];
|
|
@@ -60,7 +59,7 @@ const UnitSortableTree = (props) => {
|
|
|
60
59
|
/** isVirtualized={false} 可以解决滚动时,重新渲染UnitItem组件
|
|
61
60
|
* 设置为false可禁用虚拟化。默认为true。注意:拖动时自动滚动以及滚动到searchFocusOffset都将被禁用。*/
|
|
62
61
|
return useObserver(() => (React.createElement(UnitContext.Provider, { value: options },
|
|
63
|
-
React.createElement(
|
|
62
|
+
React.createElement(Panable, { scroll: true },
|
|
64
63
|
React.createElement(SortableTree, { isVirtualized: false, treeData: state.treeData, onChange: (val) => state.updateTreeData(val), getNodeKey: ({ node }) => node.id, onVisibilityToggle: (val) => state.onVisibilityToggle(val), onMoveNode: (val) => state.onMoveNode(val), canDrop: ({ nextPath }) => ((nextPath === null || nextPath === void 0 ? void 0 : nextPath.length) > 1 ? true : false), canNodeHaveChildren: (node) => state.toHaveChildren(node), canDrag: canDrag, theme: theme })))));
|
|
65
64
|
};
|
|
66
65
|
UnitSortableTree.defaultProps = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/UnitSortableTree/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGN,eAAe,EACf,YAAY,EACZ,OAAO,EACP,iBAAiB,EACjB,YAAY,EACZ,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,KAAK,EAAyB,MAAM,SAAS,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/UnitSortableTree/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGN,eAAe,EACf,YAAY,EACZ,OAAO,EACP,iBAAiB,EACjB,YAAY,EACZ,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,E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R,QAAQ,CAAE,MAAM,IAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,EAChE,mBAAmB,EAAE,CAAC,IAAS,EAAE,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,EAC9D,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,GACX,CACO,CACY,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,gBAAgB,CAAC,YAAY,GAAG;IAC/B,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,qBAAqB;CAC5B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Can override the following:
|
|
2
|
+
//
|
|
3
|
+
// style: PropTypes.shape({}),
|
|
4
|
+
// innerStyle: PropTypes.shape({}),
|
|
5
|
+
// reactVirtualizedListProps: PropTypes.shape({}),
|
|
6
|
+
// scaffoldBlockPxWidth: PropTypes.number,
|
|
7
|
+
// slideRegionSize: PropTypes.number,
|
|
8
|
+
// rowHeight: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
|
|
9
|
+
// treeNodeRenderer: PropTypes.func,
|
|
10
|
+
// nodeContentRenderer: PropTypes.func,
|
|
11
|
+
// placeholderRenderer: PropTypes.func,
|
|
12
|
+
import nodeContentRenderer from "./node-content-renderer";
|
|
13
|
+
import treeNodeRenderer from "./tree-node-renderer";
|
|
14
|
+
const FileExplorerTheme = {
|
|
15
|
+
nodeContentRenderer,
|
|
16
|
+
treeNodeRenderer,
|
|
17
|
+
scaffoldBlockPxWidth: 25,
|
|
18
|
+
rowHeight: 25,
|
|
19
|
+
slideRegionSize: 50
|
|
20
|
+
};
|
|
21
|
+
export default FileExplorerTheme;
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/unit/components/UnitSortableTree/themes/FileExplorerTheme/index.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,EAAE;AACF,8BAA8B;AAC9B,mCAAmC;AACnC,kDAAkD;AAClD,0CAA0C;AAC1C,qCAAqC;AACrC,sEAAsE;AACtE,oCAAoC;AACpC,uCAAuC;AACvC,uCAAuC;AAGvC,OAAO,mBAAmB,MAAM,yBAAyB,CAAC;AAC1D,OAAO,gBAAgB,MAAM,sBAAsB,CAAC;AAEpD,MAAM,iBAAiB,GAAe;IACrC,mBAAmB;IACnB,gBAAgB;IAChB,oBAAoB,EAAE,EAAE;IACxB,SAAS,EAAE,EAAE;IACb,eAAe,EAAE,EAAE;CACnB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { faChevronRight, faSitemap } from "@fortawesome/pro-light-svg-icons";
|
|
2
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { Spin } from "@voplus/antd";
|
|
5
|
+
import UnitName from "../../../UnitName";
|
|
6
|
+
import classnames from "classnames";
|
|
7
|
+
import styles from "./node-content-renderer.less";
|
|
8
|
+
import { useUnitContext } from "../../../../data/UnitContext";
|
|
9
|
+
function isDescendant(older, younger) {
|
|
10
|
+
return (!!older.children &&
|
|
11
|
+
typeof older.children !== "function" &&
|
|
12
|
+
older.children.some((child) => child === younger || isDescendant(child, younger)));
|
|
13
|
+
}
|
|
14
|
+
const FileThemeNodeContentRenderer = (props) => {
|
|
15
|
+
const { scaffoldBlockPxWidth, toggleChildrenVisibility, connectDragPreview, connectDragSource, isDragging, canDrop, canDrag, node, title, draggedNode, path, treeIndex, isSearchMatch, isSearchFocus, icons, buttons, className, style, didDrop, lowerSiblingCounts, listIndex, swapFrom, swapLength, swapDepth, treeId, // Not needed, but preserved for other renderers
|
|
16
|
+
isOver, // Not needed, but preserved for other renderers
|
|
17
|
+
parentNode, // Needed for dndManager
|
|
18
|
+
rowDirection, ...otherProps } = props;
|
|
19
|
+
const store = useUnitContext();
|
|
20
|
+
const isDraggedDescendant = draggedNode && isDescendant(draggedNode, node);
|
|
21
|
+
const isLandingPadActive = !didDrop && isDragging;
|
|
22
|
+
// Construct the scaffold representing the structure of the tree
|
|
23
|
+
const scaffold = [];
|
|
24
|
+
lowerSiblingCounts.forEach((lowerSiblingCount, i) => {
|
|
25
|
+
scaffold.push(React.createElement("div", { key: `pre_${1 + i}`, style: { width: scaffoldBlockPxWidth }, className: "lineBlock" }));
|
|
26
|
+
if (treeIndex !== listIndex && i === swapDepth) {
|
|
27
|
+
// This row has been shifted, and is at the depth of
|
|
28
|
+
// the line pointing to the new destination
|
|
29
|
+
let highlightLineClass = "";
|
|
30
|
+
if (listIndex === swapFrom + swapLength - 1) {
|
|
31
|
+
// This block is on the bottom (target) line
|
|
32
|
+
// This block points at the target block (where the row will go when released)
|
|
33
|
+
highlightLineClass = "highlightBottomLeftCorner";
|
|
34
|
+
}
|
|
35
|
+
else if (treeIndex === swapFrom) {
|
|
36
|
+
// This block is on the top (source) line
|
|
37
|
+
highlightLineClass = "highlightTopLeftCorner";
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
// This block is between the bottom and top
|
|
41
|
+
highlightLineClass = "highlightLineVertical";
|
|
42
|
+
}
|
|
43
|
+
scaffold.push(React.createElement("div", { key: `highlight_${1 + i}`, style: {
|
|
44
|
+
width: scaffoldBlockPxWidth,
|
|
45
|
+
left: scaffoldBlockPxWidth * i
|
|
46
|
+
}, className: classnames("absoluteLineBlock", "highlightLineClass") }));
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
const nodeContent = (React.createElement("div", Object.assign({ className: styles["file-explorer-theme"] }, otherProps),
|
|
50
|
+
toggleChildrenVisibility && node.children && node.children.length > 0 && (React.createElement("button", { type: "button", className: node.expanded ? "collapseButton" : "expandButton", style: {
|
|
51
|
+
left: (lowerSiblingCounts.length - 0.7) * scaffoldBlockPxWidth
|
|
52
|
+
}, onClick: () => toggleChildrenVisibility({
|
|
53
|
+
node,
|
|
54
|
+
path,
|
|
55
|
+
treeIndex
|
|
56
|
+
}) },
|
|
57
|
+
React.createElement("span", { className: "arrows" },
|
|
58
|
+
React.createElement(FAIcon, { icon: faChevronRight })))),
|
|
59
|
+
node.childrenListLoading && node.expanded && (React.createElement("div", { className: "doc-spin", style: {
|
|
60
|
+
left: (lowerSiblingCounts.length - 0.7) * scaffoldBlockPxWidth
|
|
61
|
+
} },
|
|
62
|
+
React.createElement(Spin, { size: "small" }))),
|
|
63
|
+
React.createElement("div", { className: classnames("rowWrapper", !canDrag ? "rowWrapperDragDisabled" : "") }, connectDragPreview(React.createElement("div", { style: { display: "flex" } },
|
|
64
|
+
scaffold,
|
|
65
|
+
React.createElement("div", { className: classnames("row", {
|
|
66
|
+
rowLandingPad: isLandingPadActive,
|
|
67
|
+
rowCancelPad: isLandingPadActive && !canDrop,
|
|
68
|
+
rowSearchMatch: isSearchMatch,
|
|
69
|
+
rowSearchFocus: isSearchFocus
|
|
70
|
+
}, className), style: {
|
|
71
|
+
opacity: isDraggedDescendant ? 0.5 : 1,
|
|
72
|
+
...style
|
|
73
|
+
} },
|
|
74
|
+
React.createElement("div", { className: classnames("rowContents", { rowContentsDragDisabled: !canDrag }) },
|
|
75
|
+
React.createElement("div", { className: "rowLabel" }, node.id === "" ? (React.createElement("div", { className: "file-document-name", onClick: () => { var _a; return (_a = store === null || store === void 0 ? void 0 : store.onUnitSelected) === null || _a === void 0 ? void 0 : _a.call(store, node.id); } },
|
|
76
|
+
React.createElement("div", { className: "file-type" },
|
|
77
|
+
React.createElement(FAIcon, { icon: faSitemap })),
|
|
78
|
+
React.createElement("div", { className: "file-name" }, node.name))) : (React.createElement(UnitName, { id: node.id }))))))))));
|
|
79
|
+
return canDrag ? connectDragSource(nodeContent, { dropEffect: "copy" }) : nodeContent;
|
|
80
|
+
};
|
|
81
|
+
export default FileThemeNodeContentRenderer;
|
|
82
|
+
//# sourceMappingURL=node-content-renderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-content-renderer.js","sourceRoot":"","sources":["../../../../../../../src/modules/unit/components/UnitSortableTree/themes/FileExplorerTheme/node-content-renderer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAE7E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AACzC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,8BAA8B,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,SAAS,YAAY,CAAC,KAAU,EAAE,OAAY;IAC7C,OAAO,CACN,CAAC,CAAC,KAAK,CAAC,QAAQ;QAChB,OAAO,KAAK,CAAC,QAAQ,KAAK,UAAU;QACpC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,KAAK,OAAO,IAAI,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CACtF,CAAC;AACH,CAAC;AAED,MAAM,4BAA4B,GAAiB,CAAC,KAAwB,EAAE,EAAE;IAC/E,MAAM,EACL,oBAAoB,EACpB,wBAAwB,EACxB,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,EACV,OAAO,EACP,OAAO,EACP,IAAI,EACJ,KAAK,EACL,WAAW,EACX,IAAI,EACJ,SAAS,EACT,aAAa,EACb,aAAa,EACb,KAAK,EACL,OAAO,EACP,SAAS,EACT,KAAK,EACL,OAAO,EACP,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,SAAS,EACT,MAAM,EAAE,gDAAgD;IACxD,MAAM,EAAE,gDA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aAAa;oBAC7B,cAAc,EAAE,aAAa;iBAC7B,EACD,SAAS,CACT,EACD,KAAK,EAAE;oBACN,OAAO,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;oBACtC,GAAG,KAAK;iBACR;gBAED,6BAAK,SAAS,EAAE,UAAU,CAAC,aAAa,EAAE,EAAE,uBAAuB,EAAE,CAAC,OAAO,EAAE,CAAC;oBAC/E,6BAAK,SAAS,EAAC,UAAU,IACvB,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CACjB,6BACC,SAAS,EAAE,oBAAoB,EAC/B,OAAO,EAAE,GAAG,EAAE,wBAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,cAAc,+CAArB,KAAK,EAAmB,IAAI,CAAC,EAAE,IAAC;wBAE/C,6BAAK,SAAS,EAAC,WAAW;4BACzB,oBAAC,MAAM,IAAC,IAAI,EAAE,SAAS,GAAI,CACtB;wBACN,6BAAK,SAAS,EAAC,WAAW,IAAE,IAAI,CAAC,IAAI,CAAO,CACvC,CACN,CAAC,CAAC,CAAC,CACH,oBAAC,QAAQ,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,CACzB,CACI,CACD,CACD,CACD,CACN,CACI,CACD,CACN,CAAC;IAEF,OAAO,OAAO,CAAC,CAAC,CAAC,iBAAiB,CAAC,WAAW,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;AACvF,CAAC,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
.file-explorer-theme {
|
|
2
|
+
height: 100%;
|
|
3
|
+
:global {
|
|
4
|
+
.doc-spin {
|
|
5
|
+
z-index: 2;
|
|
6
|
+
position: absolute;
|
|
7
|
+
top: 50%;
|
|
8
|
+
width: 30px;
|
|
9
|
+
height: 30px;
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
transform: translate3d(-50%, -50%, 0);
|
|
14
|
+
}
|
|
15
|
+
.collapseButton,
|
|
16
|
+
.expandButton {
|
|
17
|
+
appearance: none;
|
|
18
|
+
border: none;
|
|
19
|
+
background: transparent;
|
|
20
|
+
padding: 0;
|
|
21
|
+
z-index: 2;
|
|
22
|
+
position: absolute;
|
|
23
|
+
top: 45%;
|
|
24
|
+
width: 30px;
|
|
25
|
+
height: 30px;
|
|
26
|
+
transform: translate3d(-50%, -50%, 0);
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
.arrows {
|
|
29
|
+
display: inline-block;
|
|
30
|
+
font-size: 10px;
|
|
31
|
+
transform: translate3d(50%, 0, 0) rotateZ(90deg);
|
|
32
|
+
}
|
|
33
|
+
&:focus {
|
|
34
|
+
outline: none;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.expandButton .arrows {
|
|
38
|
+
display: inline-block;
|
|
39
|
+
font-size: 10px;
|
|
40
|
+
transform: translate3d(50%, 0, 0);
|
|
41
|
+
}
|
|
42
|
+
.rowWrapper {
|
|
43
|
+
height: 100%;
|
|
44
|
+
box-sizing: border-box;
|
|
45
|
+
// cursor: move;
|
|
46
|
+
&:hover {
|
|
47
|
+
opacity: 0.7;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:active {
|
|
51
|
+
opacity: 1;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
.rowWrapperDragDisabled {
|
|
55
|
+
cursor: default;
|
|
56
|
+
}
|
|
57
|
+
.row {
|
|
58
|
+
height: 100%;
|
|
59
|
+
white-space: nowrap;
|
|
60
|
+
display: flex;
|
|
61
|
+
position: relative;
|
|
62
|
+
|
|
63
|
+
& > * {
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The outline of where the element will go if dropped, displayed while dragging
|
|
70
|
+
*/
|
|
71
|
+
.rowLandingPad {
|
|
72
|
+
border: none;
|
|
73
|
+
box-shadow: none;
|
|
74
|
+
outline: none;
|
|
75
|
+
|
|
76
|
+
* {
|
|
77
|
+
opacity: 0 !important;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&::before {
|
|
81
|
+
background-color: lightblue;
|
|
82
|
+
border: 2px dotted black;
|
|
83
|
+
content: "";
|
|
84
|
+
position: absolute;
|
|
85
|
+
top: 0;
|
|
86
|
+
right: 0;
|
|
87
|
+
bottom: 0;
|
|
88
|
+
left: 0;
|
|
89
|
+
z-index: -1;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Alternate appearance of the landing pad when the dragged location is invalid
|
|
95
|
+
*/
|
|
96
|
+
.rowCancelPad {
|
|
97
|
+
// @extend .rowLandingPad;
|
|
98
|
+
|
|
99
|
+
&::before {
|
|
100
|
+
background-color: #e6a8ad;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Nodes matching the search conditions are highlighted
|
|
106
|
+
*/
|
|
107
|
+
.rowSearchMatch {
|
|
108
|
+
box-shadow: inset 0 -7px 7px -3px #0080ff;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* The node that matches the search conditions and is currently focused
|
|
113
|
+
*/
|
|
114
|
+
.rowSearchFocus {
|
|
115
|
+
box-shadow: inset 0 -7px 7px -3px #fc6421;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// %rowItem {
|
|
119
|
+
// display: inline-block;
|
|
120
|
+
// vertical-align: middle;
|
|
121
|
+
// }
|
|
122
|
+
|
|
123
|
+
.rowContents {
|
|
124
|
+
// @extend %rowItem;
|
|
125
|
+
position: relative;
|
|
126
|
+
height: 100%;
|
|
127
|
+
flex: 1 0 auto;
|
|
128
|
+
display: flex;
|
|
129
|
+
align-items: center;
|
|
130
|
+
justify-content: space-between;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.rowLabel {
|
|
134
|
+
// @extend %rowItem;
|
|
135
|
+
display: flex;
|
|
136
|
+
flex: 0 1 auto;
|
|
137
|
+
padding-right: 20px;
|
|
138
|
+
// .doc-spin{
|
|
139
|
+
// padding-right: 6px;
|
|
140
|
+
// }
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.file-document-name {
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
.file-type {
|
|
147
|
+
display: flex;
|
|
148
|
+
align-items: center;
|
|
149
|
+
width: 22px;
|
|
150
|
+
}
|
|
151
|
+
.file-name {
|
|
152
|
+
display: inline-block;
|
|
153
|
+
color: #000;
|
|
154
|
+
font-size: 15px;
|
|
155
|
+
font-weight: 500;
|
|
156
|
+
z-index: 100;
|
|
157
|
+
cursor: pointer;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
// .rowToolbar {
|
|
162
|
+
// // @extend %rowItem;
|
|
163
|
+
// flex: 0 1 auto;
|
|
164
|
+
// display: flex;
|
|
165
|
+
// }
|
|
166
|
+
|
|
167
|
+
.toolbarButton {
|
|
168
|
+
// @extend %rowItem;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Line for under a node with children
|
|
173
|
+
*/
|
|
174
|
+
.lineChildren {
|
|
175
|
+
height: 100%;
|
|
176
|
+
display: inline-block;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* ==========================================================================
|
|
180
|
+
Scaffold
|
|
181
|
+
|
|
182
|
+
Line-overlaid blocks used for showing the tree structure
|
|
183
|
+
========================================================================== */
|
|
184
|
+
.lineBlock {
|
|
185
|
+
height: 100%;
|
|
186
|
+
position: relative;
|
|
187
|
+
display: inline-block;
|
|
188
|
+
flex: 0 0 auto;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.absoluteLineBlock {
|
|
192
|
+
// @extend .lineBlock;
|
|
193
|
+
position: absolute;
|
|
194
|
+
top: 0;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/* Highlight line for pointing to dragged row destination
|
|
198
|
+
========================================================================== */
|
|
199
|
+
// $highlight-color: #36c2f6;
|
|
200
|
+
// $highlight-line-size: 6px; // Make it an even number for clean rendering
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* +--+--+
|
|
204
|
+
* | | |
|
|
205
|
+
* | | |
|
|
206
|
+
* | | |
|
|
207
|
+
* +--+--+
|
|
208
|
+
*/
|
|
209
|
+
.highlightLineVertical {
|
|
210
|
+
z-index: 3;
|
|
211
|
+
|
|
212
|
+
&::before {
|
|
213
|
+
position: absolute;
|
|
214
|
+
content: "";
|
|
215
|
+
// background-color: $highlight-color;
|
|
216
|
+
// width: $highlight-line-size;
|
|
217
|
+
// margin-left: $highlight-line-size / -2;
|
|
218
|
+
left: 50%;
|
|
219
|
+
top: 0;
|
|
220
|
+
height: 100%;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
// @keyframes arrow-pulse {
|
|
224
|
+
// $base-multiplier: 10;
|
|
225
|
+
// 0% {
|
|
226
|
+
// transform: translate(0, 0);
|
|
227
|
+
// opacity: 0;
|
|
228
|
+
// }
|
|
229
|
+
// 30% {
|
|
230
|
+
// transform: translate(0, 30% * $base-multiplier);
|
|
231
|
+
// opacity: 1;
|
|
232
|
+
// }
|
|
233
|
+
// 70% {
|
|
234
|
+
// transform: translate(0, 70% * $base-multiplier);
|
|
235
|
+
// opacity: 1;
|
|
236
|
+
// }
|
|
237
|
+
// 100% {
|
|
238
|
+
// transform: translate(0, 100% * $base-multiplier);
|
|
239
|
+
// opacity: 0;
|
|
240
|
+
// }
|
|
241
|
+
// }
|
|
242
|
+
|
|
243
|
+
&::after {
|
|
244
|
+
content: "";
|
|
245
|
+
position: absolute;
|
|
246
|
+
height: 0;
|
|
247
|
+
// margin-left: -1 * $highlight-line-size / 2;
|
|
248
|
+
left: 50%;
|
|
249
|
+
top: 0;
|
|
250
|
+
// border-left: $highlight-line-size / 2 solid transparent;
|
|
251
|
+
// border-right: $highlight-line-size / 2 solid transparent;
|
|
252
|
+
// border-top: $highlight-line-size / 2 solid white;
|
|
253
|
+
animation: arrow-pulse 1s infinite linear both;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* +-----+
|
|
259
|
+
* | |
|
|
260
|
+
* | +--+
|
|
261
|
+
* | | |
|
|
262
|
+
* +--+--+
|
|
263
|
+
*/
|
|
264
|
+
.highlightTopLeftCorner {
|
|
265
|
+
&::before {
|
|
266
|
+
z-index: 3;
|
|
267
|
+
content: "";
|
|
268
|
+
position: absolute;
|
|
269
|
+
// border-top: solid $highlight-line-size $highlight-color;
|
|
270
|
+
// border-left: solid $highlight-line-size $highlight-color;
|
|
271
|
+
box-sizing: border-box;
|
|
272
|
+
// height: calc(50% + #{$highlight-line-size / 2});
|
|
273
|
+
// top: 50%;
|
|
274
|
+
// margin-top: $highlight-line-size / -2;
|
|
275
|
+
// right: 0;
|
|
276
|
+
// width: calc(50% + #{$highlight-line-size / 2});
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* +--+--+
|
|
282
|
+
* | | |
|
|
283
|
+
* | | |
|
|
284
|
+
* | +->|
|
|
285
|
+
* +-----+
|
|
286
|
+
*/
|
|
287
|
+
.highlightBottomLeftCorner {
|
|
288
|
+
// $arrow-size: 7px;
|
|
289
|
+
z-index: 3;
|
|
290
|
+
|
|
291
|
+
&::before {
|
|
292
|
+
content: "";
|
|
293
|
+
position: absolute;
|
|
294
|
+
// border-bottom: solid $highlight-line-size $highlight-color;
|
|
295
|
+
// border-left: solid $highlight-line-size $highlight-color;
|
|
296
|
+
box-sizing: border-box;
|
|
297
|
+
// height: calc(100% + #{$highlight-line-size / 2});
|
|
298
|
+
// top: 0;
|
|
299
|
+
// right: $arrow-size;
|
|
300
|
+
// width: calc(50% - #{$arrow-size - ($highlight-line-size / 2)});
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
&::after {
|
|
304
|
+
content: "";
|
|
305
|
+
position: absolute;
|
|
306
|
+
height: 0;
|
|
307
|
+
right: 0;
|
|
308
|
+
top: 100%;
|
|
309
|
+
// margin-top: -1 * $arrow-size;
|
|
310
|
+
// border-top: $arrow-size solid transparent;
|
|
311
|
+
// border-bottom: $arrow-size solid transparent;
|
|
312
|
+
// border-left: $arrow-size solid $highlight-color;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
package/es/modules/unit/components/UnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { Children, cloneElement } from "react";
|
|
2
|
+
import styles from "./tree-node-renderer.less";
|
|
3
|
+
const FileThemeTreeNodeRenderer = (props) => {
|
|
4
|
+
const { children, listIndex, swapFrom, swapLength, swapDepth, scaffoldBlockPxWidth, lowerSiblingCounts, connectDropTarget, isOver, draggedNode, canDrop, treeIndex, treeId, // Delete from otherProps
|
|
5
|
+
getPrevRow, // Delete from otherProps
|
|
6
|
+
node, // Delete from otherProps
|
|
7
|
+
path, // Delete from otherProps
|
|
8
|
+
rowDirection, ...otherProps } = props;
|
|
9
|
+
return connectDropTarget(React.createElement("div", Object.assign({}, otherProps, { className: styles.node }), Children.map(children, child => cloneElement(child, {
|
|
10
|
+
isOver,
|
|
11
|
+
canDrop,
|
|
12
|
+
draggedNode,
|
|
13
|
+
lowerSiblingCounts,
|
|
14
|
+
listIndex,
|
|
15
|
+
swapFrom,
|
|
16
|
+
swapLength,
|
|
17
|
+
swapDepth
|
|
18
|
+
}))));
|
|
19
|
+
};
|
|
20
|
+
export default FileThemeTreeNodeRenderer;
|
|
21
|
+
//# sourceMappingURL=tree-node-renderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree-node-renderer.js","sourceRoot":"","sources":["../../../../../../../src/modules/unit/components/UnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAa,YAAY,EAAE,MAAM,OAAO,CAAC;AAIjE,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAE/C,MAAM,yBAAyB,GAAiB,CAAC,KAAwB,EAAE,EAAE;IAC5E,MAAM,EACL,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,MAAM,EACN,WAAW,EACX,OAAO,EACP,SAAS,EACT,MAAM,EAAE,yBAAyB;IACjC,UAAU,EAAE,yBAAyB;IACrC,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE,yBAAyB;IAC/B,YAAY,EACZ,GAAG,UAAU,EACb,GAAG,KAAK,CAAC;IACV,OAAO,iBAAiB,CACvB,6CAAS,UAAU,IAAE,SAAS,EAAE,MAAM,CAAC,IAAI,KACzC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,CAC/B,YAAY,CAAC,KAAK,EAAE;QACnB,MAAM;QACN,OAAO;QACP,WAAW;QACX,kBAAkB;QAClB,SAAS;QACT,QAAQ;QACR,UAAU;QACV,SAAS;KACT,CAAC,CACF,CACI,CACN,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|