@voplus/morpho-document 1.0.0-dev201 → 1.0.0-dev203
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/index.less +64 -64
- package/es/components/DocumentList/index.js +14 -3
- package/es/components/DocumentList/index.js.map +1 -1
- package/es/components/DocumentList/state.js +7 -9
- package/es/components/DocumentList/state.js.map +1 -1
- package/es/components/DocumentListView/index.js +11 -2
- package/es/components/DocumentListView/index.js.map +1 -1
- package/es/components/DocumentListView/state.d.ts +1 -1
- package/es/components/DocumentListView/state.js +7 -9
- package/es/components/DocumentListView/state.js.map +1 -1
- package/es/components/DocumentName/index.js +7 -2
- package/es/components/DocumentName/index.js.map +1 -1
- package/es/components/DocumentSelectDialog/index.js +5 -2
- package/es/components/DocumentSelectDialog/index.js.map +1 -1
- package/es/components/DocumentSelectDialog/index.less +3 -0
- package/es/components/DocumentSortableTree/index.d.ts +7 -1
- package/es/components/DocumentSortableTree/index.js +12 -2
- package/es/components/DocumentSortableTree/index.js.map +1 -1
- package/es/components/DocumentSortableTree/state.d.ts +6 -0
- package/es/components/DocumentSortableTree/state.js.map +1 -1
- package/es/components/FileExplorerTheme/index.d.ts +3 -0
- package/es/components/FileExplorerTheme/index.js +22 -0
- package/es/components/FileExplorerTheme/index.js.map +1 -0
- package/es/components/FileExplorerTheme/node-content-renderer.d.ts +3 -0
- package/es/components/FileExplorerTheme/node-content-renderer.js +80 -0
- package/es/components/FileExplorerTheme/node-content-renderer.js.map +1 -0
- package/es/components/FileExplorerTheme/node-content-renderer.less +332 -0
- package/es/components/FileExplorerTheme/tree-node-renderer.d.ts +3 -0
- package/es/components/FileExplorerTheme/tree-node-renderer.js +21 -0
- package/es/components/FileExplorerTheme/tree-node-renderer.js.map +1 -0
- package/es/components/FileExplorerTheme/tree-node-renderer.less +4 -0
- package/es/components/Links/index.less +111 -111
- package/es/components/QuickAccessSearch/ObjectItem/index.d.ts +1 -1
- package/es/components/QuickAccessSearch/ObjectItem/index.js +2 -2
- package/es/components/QuickAccessSearch/ObjectItem/index.js.map +1 -1
- package/es/components/QuickAccessSearch/index.js +6 -16
- package/es/components/QuickAccessSearch/index.js.map +1 -1
- package/es/components/QuickAccessSearch/state.d.ts +2 -4
- package/es/components/QuickAccessSearch/state.js +3 -8
- package/es/components/QuickAccessSearch/state.js.map +1 -1
- package/es/components/SortableTreeDocumentTheme/index.d.ts +2 -2
- package/es/components/SortableTreeDocumentTheme/index.js +2 -2
- package/es/components/SortableTreeDocumentTheme/index.js.map +1 -1
- package/es/components/VersionsModal/index.js.map +1 -1
- package/es/data/ObjectStore/hooks.d.ts +7 -0
- package/es/data/ObjectStore/hooks.js +19 -0
- package/es/data/ObjectStore/hooks.js.map +1 -0
- package/es/data/ObjectStore/index.d.ts +1 -0
- package/es/data/ObjectStore/index.js +2 -0
- package/es/data/ObjectStore/index.js.map +1 -0
- package/es/data/index.d.ts +1 -0
- package/es/data/index.js +1 -0
- package/es/data/index.js.map +1 -1
- package/es/data/interfaces/IObject.d.ts +11 -0
- package/es/data/interfaces/IObject.js +1 -0
- package/es/data/interfaces/IObject.js.map +1 -0
- package/es/data/interfaces/index.d.ts +1 -0
- package/es/modules/unit/components/QuickDataIcon/UnitTeamsIcon/index.d.ts +14 -0
- package/es/modules/unit/components/QuickDataIcon/UnitTeamsIcon/index.js +28 -0
- package/es/modules/unit/components/QuickDataIcon/UnitTeamsIcon/index.js.map +1 -0
- package/es/modules/unit/components/QuickDataIcon/UnitTeamsIcon/index.less +21 -0
- package/es/modules/unit/components/QuickDataIcon/index.d.ts +25 -0
- package/es/modules/unit/components/QuickDataIcon/index.js +45 -0
- package/es/modules/unit/components/QuickDataIcon/index.js.map +1 -0
- package/es/modules/unit/components/QuickDataIcon/index.less +0 -0
- package/es/modules/unit/components/UnitAvatar/index.d.ts +15 -0
- package/es/modules/unit/components/UnitAvatar/index.js +29 -0
- package/es/modules/unit/components/UnitAvatar/index.js.map +1 -0
- package/es/modules/unit/components/UnitAvatar/index.less +8 -0
- package/es/modules/unit/components/UnitDetails/index.d.ts +5 -0
- package/es/modules/unit/components/UnitDetails/index.js +14 -0
- package/es/modules/unit/components/UnitDetails/index.js.map +1 -0
- package/es/modules/unit/components/UnitDetails/index.less +5 -0
- package/es/modules/unit/components/UnitHead/index.d.ts +5 -0
- package/es/modules/unit/components/UnitHead/index.js +14 -0
- package/es/modules/unit/components/UnitHead/index.js.map +1 -0
- package/es/modules/unit/components/UnitHead/index.less +11 -0
- package/es/modules/unit/components/UnitItem/index.d.ts +6 -0
- package/es/modules/unit/components/UnitItem/index.js +19 -0
- package/es/modules/unit/components/UnitItem/index.js.map +1 -0
- package/es/modules/unit/components/UnitItem/index.less +19 -0
- package/es/pages/TreeViewPage/index.js +1 -1
- package/es/pages/TreeViewPage/index.js.map +1 -1
- package/package.json +3 -3
- package/es/components/QuickAccessSearch/ObjectList/index.d.ts +0 -5
- package/es/components/QuickAccessSearch/ObjectList/index.js +0 -42
- package/es/components/QuickAccessSearch/ObjectList/index.js.map +0 -1
- package/es/components/QuickAccessSearch/ObjectList/index.less +0 -10
- package/es/components/QuickAccessSearch/ObjectList/state.d.ts +0 -40
- package/es/components/QuickAccessSearch/ObjectList/state.js +0 -61
- package/es/components/QuickAccessSearch/ObjectList/state.js.map +0 -1
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
-
.reference-view {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
height: 100%;
|
|
6
|
-
:global {
|
|
7
|
-
.reference-header {
|
|
8
|
-
display: flex;
|
|
9
|
-
margin: 5px 20px 0 20px;
|
|
10
|
-
.multiple-remove {
|
|
11
|
-
font-weight: 600;
|
|
12
|
-
color: #000;
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
.ant-btn {
|
|
15
|
-
padding: 0 10px 0 0;
|
|
16
|
-
font-size: 16px;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
.multiple-remove-btn {
|
|
20
|
-
.ant-btn {
|
|
21
|
-
padding: 0 10px;
|
|
22
|
-
font-style: italic;
|
|
23
|
-
}
|
|
24
|
-
.del-btn {
|
|
25
|
-
color: #ff4d4f;
|
|
26
|
-
&:hover {
|
|
27
|
-
color: #ff7875;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
.cancel-btn {
|
|
31
|
-
color: #666;
|
|
32
|
-
&:hover {
|
|
33
|
-
color: @primary-color;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
.plus-icon {
|
|
38
|
-
display: inline-block;
|
|
39
|
-
padding: 4px;
|
|
40
|
-
margin-left: 10px;
|
|
41
|
-
font-size: 13px;
|
|
42
|
-
line-height: 1px;
|
|
43
|
-
background: #1abc9c;
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
.reference-view-page {
|
|
48
|
-
display: block;
|
|
49
|
-
}
|
|
50
|
-
.reference-item {
|
|
51
|
-
display: flex;
|
|
52
|
-
position: relative;
|
|
53
|
-
justify-content: space-between;
|
|
54
|
-
align-items: center;
|
|
55
|
-
padding: 5px 20px;
|
|
56
|
-
&:hover {
|
|
57
|
-
cursor: pointer;
|
|
58
|
-
.reference-item-content {
|
|
59
|
-
opacity: 0.4;
|
|
60
|
-
}
|
|
61
|
-
.reference-status-none {
|
|
62
|
-
display: none;
|
|
63
|
-
}
|
|
64
|
-
.hover-operate-icon {
|
|
65
|
-
display: block;
|
|
66
|
-
opacity: 1;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
.reference-item-content {
|
|
70
|
-
flex: 1;
|
|
71
|
-
color: #000;
|
|
72
|
-
font-weight: 500;
|
|
73
|
-
.reference-content {
|
|
74
|
-
display: flex;
|
|
75
|
-
flex: 1;
|
|
76
|
-
.type-icon {
|
|
77
|
-
font-size: 15px;
|
|
78
|
-
padding-right: 10px;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
.task-item-name.task-item-name_done {
|
|
82
|
-
color: #a8a8a8;
|
|
83
|
-
}
|
|
84
|
-
.task-control {
|
|
85
|
-
display: flex;
|
|
86
|
-
align-items: center;
|
|
87
|
-
padding: 5px 0;
|
|
88
|
-
font-size: 13px;
|
|
89
|
-
color: #444;
|
|
90
|
-
font-weight: normal;
|
|
91
|
-
> span + span {
|
|
92
|
-
margin-left: 15px;
|
|
93
|
-
}
|
|
94
|
-
.svg-inline--fa {
|
|
95
|
-
margin-right: 5px;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.hover-operate-icon {
|
|
101
|
-
display: none;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
.ant-empty {
|
|
105
|
-
font-size: 12px;
|
|
106
|
-
.ant-empty-image {
|
|
107
|
-
height: 35px;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
+
.reference-view {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
height: 100%;
|
|
6
|
+
:global {
|
|
7
|
+
.reference-header {
|
|
8
|
+
display: flex;
|
|
9
|
+
margin: 5px 20px 0 20px;
|
|
10
|
+
.multiple-remove {
|
|
11
|
+
font-weight: 600;
|
|
12
|
+
color: #000;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
.ant-btn {
|
|
15
|
+
padding: 0 10px 0 0;
|
|
16
|
+
font-size: 16px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
.multiple-remove-btn {
|
|
20
|
+
.ant-btn {
|
|
21
|
+
padding: 0 10px;
|
|
22
|
+
font-style: italic;
|
|
23
|
+
}
|
|
24
|
+
.del-btn {
|
|
25
|
+
color: #ff4d4f;
|
|
26
|
+
&:hover {
|
|
27
|
+
color: #ff7875;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
.cancel-btn {
|
|
31
|
+
color: #666;
|
|
32
|
+
&:hover {
|
|
33
|
+
color: @primary-color;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.plus-icon {
|
|
38
|
+
display: inline-block;
|
|
39
|
+
padding: 4px;
|
|
40
|
+
margin-left: 10px;
|
|
41
|
+
font-size: 13px;
|
|
42
|
+
line-height: 1px;
|
|
43
|
+
background: #1abc9c;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
.reference-view-page {
|
|
48
|
+
display: block;
|
|
49
|
+
}
|
|
50
|
+
.reference-item {
|
|
51
|
+
display: flex;
|
|
52
|
+
position: relative;
|
|
53
|
+
justify-content: space-between;
|
|
54
|
+
align-items: center;
|
|
55
|
+
padding: 5px 20px;
|
|
56
|
+
&:hover {
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
.reference-item-content {
|
|
59
|
+
opacity: 0.4;
|
|
60
|
+
}
|
|
61
|
+
.reference-status-none {
|
|
62
|
+
display: none;
|
|
63
|
+
}
|
|
64
|
+
.hover-operate-icon {
|
|
65
|
+
display: block;
|
|
66
|
+
opacity: 1;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
.reference-item-content {
|
|
70
|
+
flex: 1;
|
|
71
|
+
color: #000;
|
|
72
|
+
font-weight: 500;
|
|
73
|
+
.reference-content {
|
|
74
|
+
display: flex;
|
|
75
|
+
flex: 1;
|
|
76
|
+
.type-icon {
|
|
77
|
+
font-size: 15px;
|
|
78
|
+
padding-right: 10px;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
.task-item-name.task-item-name_done {
|
|
82
|
+
color: #a8a8a8;
|
|
83
|
+
}
|
|
84
|
+
.task-control {
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
padding: 5px 0;
|
|
88
|
+
font-size: 13px;
|
|
89
|
+
color: #444;
|
|
90
|
+
font-weight: normal;
|
|
91
|
+
> span + span {
|
|
92
|
+
margin-left: 15px;
|
|
93
|
+
}
|
|
94
|
+
.svg-inline--fa {
|
|
95
|
+
margin-right: 5px;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.hover-operate-icon {
|
|
101
|
+
display: none;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
.ant-empty {
|
|
105
|
+
font-size: 12px;
|
|
106
|
+
.ant-empty-image {
|
|
107
|
+
height: 35px;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -6,8 +6,8 @@ import { useObserver } from "mobx-react-lite";
|
|
|
6
6
|
const ObjectItem = (props) => {
|
|
7
7
|
const { id, type, index } = { ...props };
|
|
8
8
|
return useObserver(() => (React.createElement(React.Fragment, null,
|
|
9
|
-
type === "
|
|
10
|
-
type === "
|
|
9
|
+
type === "Document" && (React.createElement(DocumentName, { id: id, showIcon: true, showTags: false, status: false, quickView: false, className: "docment-item-name" })),
|
|
10
|
+
type === "Unit" && React.createElement(AvatarItem, { id: id, index: index }))));
|
|
11
11
|
};
|
|
12
12
|
export default ObjectItem;
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/QuickAccessSearch/ObjectItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,UAAU,MAAM,6BAA6B,CAAC;AACrD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,UAAU,GAAG,CAAC,KAInB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,KAAK,EAAE,CAAC;IACzC,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB,oBAAC,KAAK,CAAC,QAAQ;QACb,IAAI,KAAK,UAAU,IAAI,CACvB,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,QAAQ,QACR,QAAQ,EAAE,KAAK,EACf,MAAM,EAAE,KAAK,EACb,SAAS,EAAE,KAAK,EAChB,SAAS,EAAE,mBAAmB,GAC7B,CACF;QACA,IAAI,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/QuickAccessSearch/ObjectItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,UAAU,MAAM,6BAA6B,CAAC;AACrD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,UAAU,GAAG,CAAC,KAInB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,KAAK,EAAE,CAAC;IACzC,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB,oBAAC,KAAK,CAAC,QAAQ;QACb,IAAI,KAAK,UAAU,IAAI,CACvB,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,QAAQ,QACR,QAAQ,EAAE,KAAK,EACf,MAAM,EAAE,KAAK,EACb,SAAS,EAAE,KAAK,EAChB,SAAS,EAAE,mBAAmB,GAC7B,CACF;QACA,IAAI,KAAK,MAAM,IAAI,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,GAAI,CACxC,CACjB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,35 +1,25 @@
|
|
|
1
|
-
import { useContactListEffect } from "@voplus/morpho-org";
|
|
2
|
-
import { useDocumentListEffect } from "../../data";
|
|
3
1
|
import React, { useState } from "react";
|
|
4
2
|
import { Input } from "@voplus/antd";
|
|
5
3
|
import ObjectItem from "./ObjectItem";
|
|
6
|
-
import
|
|
4
|
+
import PageListView from "@voplus/morpho-ui/es/controls/PageListView";
|
|
7
5
|
import { State } from "./state";
|
|
8
6
|
import styles from "./index.less";
|
|
7
|
+
import { useObjectListEffect } from "../../data/ObjectStore";
|
|
9
8
|
import { useObserver } from "mobx-react-lite";
|
|
10
9
|
const QuickAccessSearch = () => {
|
|
11
10
|
const [state] = useState(new State());
|
|
12
|
-
|
|
13
|
-
state.
|
|
11
|
+
useObjectListEffect(list => {
|
|
12
|
+
state.lists = list || [];
|
|
14
13
|
state.loading = false;
|
|
15
14
|
}, {
|
|
16
15
|
Filters: state.filters,
|
|
17
|
-
Page: { Page: state.page, PageSize:
|
|
18
|
-
});
|
|
19
|
-
useContactListEffect(list => {
|
|
20
|
-
state.contactList =
|
|
21
|
-
list.filter(item => item.name.toLowerCase().includes(state.filterName)) || [];
|
|
22
|
-
state.loading = false;
|
|
23
|
-
}, {
|
|
24
|
-
Filters: state.filters
|
|
16
|
+
Page: { Page: state.page, PageSize: 10 }
|
|
25
17
|
});
|
|
26
18
|
return useObserver(() => (React.createElement("div", { className: styles["quick-access-search"] },
|
|
27
19
|
React.createElement("div", { className: "obj-search" },
|
|
28
20
|
React.createElement(Input.Search, { value: state.keyword, autoFocus: true, placeholder: "Search...", onSearch: searchByKeWord, onChange: e => searchByKeWord(e.target.value) })),
|
|
29
21
|
React.createElement("div", { className: "obj-list" },
|
|
30
|
-
React.createElement(
|
|
31
|
-
contactList.map((item, index) => (React.createElement(ObjectItem, { key: item.id, id: item.id, type: "contact", index: index }))),
|
|
32
|
-
list.map((item, index) => (React.createElement(ObjectItem, { key: item.id, id: item.id, type: "document", index: index }))))))))));
|
|
22
|
+
React.createElement(PageListView, { data: state.lists, loading: state.loading, loadMore: () => state.loadData(), page: state.page, pageSize: 20 }, (list) => list.map((item, index) => (React.createElement(ObjectItem, { key: item.id, id: item.id, type: item.objectType, index: index }))))))));
|
|
33
23
|
/** 搜索关键字 */
|
|
34
24
|
function searchByKeWord(keyWord) {
|
|
35
25
|
state.keyword = keyWord;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/QuickAccessSearch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/QuickAccessSearch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,iBAAiB,GAAG,GAAG,EAAE;IAC9B,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEtC,mBAAmB,CAClB,IAAI,CAAC,EAAE;QACN,KAAK,CAAC,KAAK,GAAG,IAAI,IAAI,EAAE,CAAC;QACzB,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;IACvB,CAAC,EACD;QACC,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE;KACxC,CACD,CAAC;IAEF,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB,6BAAK,SAAS,EAAE,MAAM,CAAC,qBAAqB,C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AC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IDocument } from "../../data";
|
|
1
|
+
import { IObject } from "../../data";
|
|
3
2
|
export declare class State {
|
|
4
3
|
keyword: string;
|
|
5
|
-
|
|
6
|
-
contactList: IContact[];
|
|
4
|
+
lists: IObject[];
|
|
7
5
|
loading: boolean;
|
|
8
6
|
page: number;
|
|
9
7
|
/** documentlist filter name */
|
|
@@ -3,8 +3,7 @@ import { action, computed, observable } from "mobx";
|
|
|
3
3
|
export class State {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.keyword = "";
|
|
6
|
-
this.
|
|
7
|
-
this.contactList = [];
|
|
6
|
+
this.lists = [];
|
|
8
7
|
this.loading = true;
|
|
9
8
|
this.page = 1;
|
|
10
9
|
/** documentlist filter name */
|
|
@@ -14,8 +13,7 @@ export class State {
|
|
|
14
13
|
}
|
|
15
14
|
/** reset */
|
|
16
15
|
reset() {
|
|
17
|
-
this.
|
|
18
|
-
this.contactList = [];
|
|
16
|
+
this.lists = [];
|
|
19
17
|
this.page = 1;
|
|
20
18
|
this.loading = true;
|
|
21
19
|
}
|
|
@@ -41,10 +39,7 @@ __decorate([
|
|
|
41
39
|
], State.prototype, "keyword", void 0);
|
|
42
40
|
__decorate([
|
|
43
41
|
observable
|
|
44
|
-
], State.prototype, "
|
|
45
|
-
__decorate([
|
|
46
|
-
observable
|
|
47
|
-
], State.prototype, "contactList", void 0);
|
|
42
|
+
], State.prototype, "lists", void 0);
|
|
48
43
|
__decorate([
|
|
49
44
|
observable
|
|
50
45
|
], State.prototype, "loading", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../src/components/QuickAccessSearch/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"state.js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OR"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "react-sortable-tree/style.css";
|
|
2
2
|
import { ThemeProps } from "react-sortable-tree";
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
declare const SortableTreeDocumentTheme: ThemeProps;
|
|
4
|
+
export default SortableTreeDocumentTheme;
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
import "react-sortable-tree/style.css";
|
|
13
13
|
import nodeContentRenderer from "./node-content-renderer";
|
|
14
14
|
import treeNodeRenderer from "./tree-node-renderer";
|
|
15
|
-
const
|
|
15
|
+
const SortableTreeDocumentTheme = {
|
|
16
16
|
nodeContentRenderer,
|
|
17
17
|
treeNodeRenderer,
|
|
18
18
|
scaffoldBlockPxWidth: 44,
|
|
19
19
|
rowHeight: 80,
|
|
20
20
|
slideRegionSize: 50
|
|
21
21
|
};
|
|
22
|
-
export default
|
|
22
|
+
export default SortableTreeDocumentTheme;
|
|
23
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/SortableTreeDocumentTheme/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;AAEvC,OAAO,+BAA+B,CAAC;AAGvC,OAAO,mBAAmB,MAAM,yBAAyB,CAAC;AAC1D,OAAO,gBAAgB,MAAM,sBAAsB,CAAC;AAEpD,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/SortableTreeDocumentTheme/index.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,EAAE;AACF,8BAA8B;AAC9B,mCAAmC;AACnC,kDAAkD;AAClD,0CAA0C;AAC1C,qCAAqC;AACrC,sEAAsE;AACtE,oCA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AAC,CAAC;IAChD,CAAC;IAED,SAAS,eAAe,CAAC,OAAgB;QACxC,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC;IAC7B,CAAC;IAED,SAAS,WAAW,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAO;QAC1C,IAAI,GAAG,KAAK,cAAc,EAAE;YAC3B,KAAK,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAAC;YAChC,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC;SAC1B;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LoadDocumentListOptions } from "../DocumentStore";
|
|
2
|
+
import { IObject } from "../interfaces";
|
|
3
|
+
/** React hook to retrieve a list of object
|
|
4
|
+
* @param effect - Effect callback to be ran after successful retrieved the list. Loading will be ignored if effect is null.
|
|
5
|
+
* @param options - Optional task list loading options.
|
|
6
|
+
*/
|
|
7
|
+
export declare const useObjectListEffect: (effect: (list: IObject[]) => void | null, options?: LoadDocumentListOptions | undefined) => void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { RequestBuilder } from "@voplus/api";
|
|
2
|
+
import { useDocumentStore } from "../DocumentStore";
|
|
3
|
+
import { useDeepDepEffect } from "@voplus/morpho-data";
|
|
4
|
+
/** React hook to retrieve a list of object
|
|
5
|
+
* @param effect - Effect callback to be ran after successful retrieved the list. Loading will be ignored if effect is null.
|
|
6
|
+
* @param options - Optional task list loading options.
|
|
7
|
+
*/
|
|
8
|
+
export const useObjectListEffect = (effect, options) => {
|
|
9
|
+
options = options ? options : {};
|
|
10
|
+
const store = useDocumentStore();
|
|
11
|
+
useDeepDepEffect(() => {
|
|
12
|
+
loadObjectList().then(effect);
|
|
13
|
+
async function loadObjectList() {
|
|
14
|
+
const r = await store.endpoint.post("/api/object", new RequestBuilder().json(options ? options : { Filters: [] }));
|
|
15
|
+
return (await r.json());
|
|
16
|
+
}
|
|
17
|
+
}, [options]);
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data/ObjectStore/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAA2B,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAG7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAClC,MAAwC,EACxC,OAAiC,EAChC,EAAE;IACH,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA8B,CAAC;IAC9D,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IAEjC,gBAAgB,CAAC,GAAG,EAAE;QACrB,cAAc,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC9B,KAAK,UAAU,cAAc;YAC5B,MAAM,CAAC,GAAG,MAAM,KAAK,CAAC,QAAQ,CAAC,IAAI,CAClC,aAAa,EACb,IAAI,cAAc,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAC9D,CAAC;YACF,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAc,CAAC;QACtC,CAAC;IACF,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;AACf,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./hooks";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/ObjectStore/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
package/es/data/index.d.ts
CHANGED
package/es/data/index.js
CHANGED
package/es/data/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/data/index.ts"],"names":[],"mappings":"AACA,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/data/index.ts"],"names":[],"mappings":"AACA,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=IObject.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IObject.js","sourceRoot":"","sources":["../../../src/data/interfaces/IObject.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import { Popover } from "@voplus/antd";
|
|
3
|
+
import AvatarItem from "../../../../../components/AvatarList/AvatarItem";
|
|
4
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { faUsers } from "@fortawesome/pro-light-svg-icons";
|
|
7
|
+
const colorList = ["#765FEE", "#fe4066", "#FFC832", "#FF8F5E", "#3AC43A", "#FFC832"];
|
|
8
|
+
const UserQuickIcon = (props) => {
|
|
9
|
+
const { users } = props;
|
|
10
|
+
const setName = (name) => {
|
|
11
|
+
let str = "";
|
|
12
|
+
name.split(" ").forEach(r => {
|
|
13
|
+
str += r.substr(0, 1);
|
|
14
|
+
});
|
|
15
|
+
return str;
|
|
16
|
+
};
|
|
17
|
+
return (React.createElement(React.Fragment, null, !!(users && users.length) ? (React.createElement(Popover, { placement: "bottom", title: "Readers", content: React.createElement(React.Fragment, null, users.map((user, index) => (React.createElement(AvatarItem, { id: user.id, key: user.id, index: index })))) },
|
|
18
|
+
React.createElement("span", { className: "user-quick-icon" },
|
|
19
|
+
React.createElement(FAIcon, { icon: faUsers }),
|
|
20
|
+
users.length))) : (React.createElement("span", { className: "user-quick-icon" },
|
|
21
|
+
React.createElement(FAIcon, { icon: faUsers }),
|
|
22
|
+
"0"))));
|
|
23
|
+
};
|
|
24
|
+
UserQuickIcon.defaultProps = {
|
|
25
|
+
users: []
|
|
26
|
+
};
|
|
27
|
+
export default UserQuickIcon;
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/unit/components/QuickDataIcon/UnitTeamsIcon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAU,OAAO,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,UAAU,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAE3D,MAAM,SAAS,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;AAErF,MAAM,aAAa,GAAG,CAAC,KAAgD,EAAE,EAAE;IAC1E,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAExB,MAAM,OAAO,GAAG,CAAC,IAAY,EAAE,EAAE;QAChC,IAAI,GAAG,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;YAC3B,GAAG,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACvB,CAAC,CAAC,CAAC;QACH,OAAO,GAAG,CAAC;IACZ,CAAC,CAAC;IAEF,OAAO,CACN,oBAAC,KAAK,CAAC,QAAQ,QACb,CAAC,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAC5B,oBAAC,OAAO,IACP,SAAS,EAAC,QAAQ,EAClB,KAAK,EAAC,SAAS,EACf,OAAO,EACN,oBAAC,KAAK,CAAC,QAAQ,QACb,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC3B,oBAAC,UAAU,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,KAAK,GAAI,CACvD,CAAC,CACc;QAGlB,8BAAM,SAAS,EAAC,iBAAiB;YAChC,oBAAC,MAAM,IAAC,IAAI,EAAE,OAAO,GAAI;YACxB,KAAK,CAAC,MAAM,CACP,CACE,CACV,CAAC,CAAC,CAAC,CACH,8BAAM,SAAS,EAAC,iBAAiB;QAChC,oBAAC,MAAM,IAAC,IAAI,EAAE,OAAO,GAAI;YACnB,CACP,CACe,CACjB,CAAC;AACH,CAAC,CAAC;AACF,aAAa,CAAC,YAAY,GAAG;IAC5B,KAAK,EAAE,EAAE;CACT,CAAC;AACF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
+
:global {
|
|
3
|
+
.user-quick-icon {
|
|
4
|
+
.svg-inline--fa {
|
|
5
|
+
margin-right: 5px;
|
|
6
|
+
}
|
|
7
|
+
:hover {
|
|
8
|
+
color: @primary-color;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
.user-quick-Avatar {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
.ant-avatar {
|
|
15
|
+
margin-right: 8px;
|
|
16
|
+
}
|
|
17
|
+
& + .user-quick-Avatar {
|
|
18
|
+
padding-top: 10px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./index.less";
|
|
3
|
+
import { IContact } from "@voplus/morpho-org";
|
|
4
|
+
export interface IData extends IContact {
|
|
5
|
+
/** Number of task */
|
|
6
|
+
taskNumbers?: number;
|
|
7
|
+
/** Number of incomplete of task */
|
|
8
|
+
incompleteTaskNumbers?: number;
|
|
9
|
+
documents?: number;
|
|
10
|
+
comments?: number;
|
|
11
|
+
users?: number;
|
|
12
|
+
}
|
|
13
|
+
declare const QuickDataIcon: {
|
|
14
|
+
(props: {
|
|
15
|
+
id: string;
|
|
16
|
+
includes?: string | undefined;
|
|
17
|
+
tip?: boolean | undefined;
|
|
18
|
+
onClick?: (() => void) | undefined;
|
|
19
|
+
}): JSX.Element;
|
|
20
|
+
defaultProps: {
|
|
21
|
+
tip: boolean;
|
|
22
|
+
includes: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export default QuickDataIcon;
|