@voplus/morpho-document 1.0.0-dev214 → 1.0.0-dev216
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/AddDocDropdown/index.js +23 -5
- package/es/components/AddDocDropdown/index.js.map +1 -1
- package/es/components/AddDocDropdown/index.less +3 -2
- package/es/components/AddDocDropdown/state.d.ts +1 -0
- package/es/components/AddDocDropdown/state.js +9 -3
- package/es/components/AddDocDropdown/state.js.map +1 -1
- package/es/components/BreadCrumbsHeader/index.d.ts +9 -0
- package/es/components/BreadCrumbsHeader/index.js +30 -0
- package/es/components/BreadCrumbsHeader/index.js.map +1 -0
- package/es/components/BreadCrumbsHeader/index.less +10 -0
- package/es/components/BreadCrumbsHeader/state.d.ts +10 -0
- package/es/components/BreadCrumbsHeader/state.js +34 -0
- package/es/components/BreadCrumbsHeader/state.js.map +1 -0
- package/es/components/DocumentItem/index.js +2 -8
- package/es/components/DocumentItem/index.js.map +1 -1
- package/es/components/DocumentList/Header.d.ts +13 -0
- package/es/components/DocumentList/Header.js +16 -0
- package/es/components/DocumentList/Header.js.map +1 -0
- package/es/components/DocumentList/index.js +35 -29
- package/es/components/DocumentList/index.js.map +1 -1
- package/es/components/DocumentList/index.less +39 -15
- package/es/components/DocumentList/state.d.ts +9 -27
- package/es/components/DocumentList/state.js +20 -115
- package/es/components/DocumentList/state.js.map +1 -1
- package/es/components/DocumentListView/index.d.ts +3 -2
- package/es/components/DocumentListView/index.js +31 -54
- package/es/components/DocumentListView/index.js.map +1 -1
- package/es/components/DocumentListView/state.d.ts +1 -36
- package/es/components/DocumentListView/state.js +1 -100
- package/es/components/DocumentListView/state.js.map +1 -1
- package/es/components/DocumentSortableTree/index.js +32 -4
- package/es/components/DocumentSortableTree/index.js.map +1 -1
- package/es/components/DocumentSortableTree/state.d.ts +7 -6
- package/es/components/DocumentSortableTree/state.js +23 -32
- package/es/components/DocumentSortableTree/state.js.map +1 -1
- package/es/components/DocumentTabs/index.js +2 -4
- package/es/components/DocumentTabs/index.js.map +1 -1
- package/es/components/DocumentTree/index.js +1 -1
- package/es/components/DocumentTree/index.js.map +1 -1
- package/es/components/FileViewer/ImageViewer.js +4 -3
- package/es/components/FileViewer/ImageViewer.js.map +1 -1
- package/es/components/FileViewer/PDFViewer.js +4 -2
- package/es/components/FileViewer/PDFViewer.js.map +1 -1
- package/es/components/FileViewer/Preview.js +12 -10
- package/es/components/FileViewer/Preview.js.map +1 -1
- package/es/components/FileViewer/index.less +33 -0
- package/es/components/Links/index.less +111 -111
- package/es/components/NewDocumentForm/index.d.ts +1 -1
- package/es/components/NewDocumentForm/index.js +10 -3
- package/es/components/NewDocumentForm/index.js.map +1 -1
- package/es/components/NewDocumentForm/index.less +9 -1
- package/es/components/QuickAccessSearch/index.js +5 -4
- package/es/components/QuickAccessSearch/index.js.map +1 -1
- package/es/components/QuickViewDialog/QuickSubTab/index.d.ts +10 -4
- package/es/components/QuickViewDialog/QuickSubTab/index.js +16 -16
- package/es/components/QuickViewDialog/QuickSubTab/index.js.map +1 -1
- package/es/components/QuickViewDialog/QuickSubTab/index.less +7 -19
- package/es/components/QuickViewDialog/index.js +2 -1
- package/es/components/QuickViewDialog/index.js.map +1 -1
- package/es/components/QuickViewDialog/index.less +8 -1
- package/es/components/helper.d.ts +1 -1
- package/es/components/helper.js +4 -0
- package/es/components/helper.js.map +1 -1
- package/es/components/styles/common.less +4 -1
- package/es/controls/filters/DocumentTypeFilter/index.d.ts +3 -0
- package/es/controls/filters/DocumentTypeFilter/index.js +21 -0
- package/es/controls/filters/DocumentTypeFilter/index.js.map +1 -0
- package/es/controls/filters/DocumentTypeFilter/state.d.ts +18 -0
- package/es/controls/filters/DocumentTypeFilter/state.js +57 -0
- package/es/controls/filters/DocumentTypeFilter/state.js.map +1 -0
- package/es/controls/filters/index.d.ts +1 -0
- package/es/controls/filters/index.js +1 -0
- package/es/controls/filters/index.js.map +1 -1
- package/es/data/DocumentStore/hooks/useDocumentListEffect.d.ts +2 -1
- package/es/data/DocumentStore/hooks/useDocumentListEffect.js +2 -2
- package/es/data/DocumentStore/hooks/useDocumentListEffect.js.map +1 -1
- package/es/data/DocumentType.d.ts +3 -1
- package/es/data/DocumentType.js +3 -1
- package/es/data/DocumentType.js.map +1 -1
- package/es/data/metas/ShortcutMeta.js +1 -1
- package/es/data/metas/ShortcutMeta.js.map +1 -1
- package/es/modules/unit/components/ActivityLog/index.d.ts +6 -0
- package/es/modules/unit/components/ActivityLog/index.js +62 -0
- package/es/modules/unit/components/ActivityLog/index.js.map +1 -0
- package/es/modules/unit/components/ActivityLog/index.less +64 -0
- package/es/modules/unit/components/ActivityLog/state.d.ts +14 -0
- package/es/modules/unit/components/ActivityLog/state.js +51 -0
- package/es/modules/unit/components/ActivityLog/state.js.map +1 -0
- package/es/modules/unit/components/BreadCrumbsHeader/index.d.ts +6 -0
- package/es/modules/unit/components/BreadCrumbsHeader/index.js +27 -0
- package/es/modules/unit/components/BreadCrumbsHeader/index.js.map +1 -0
- package/es/modules/unit/components/BreadCrumbsHeader/index.less +10 -0
- package/es/modules/unit/components/BreadCrumbsHeader/state.d.ts +5 -0
- package/es/modules/unit/components/BreadCrumbsHeader/state.js +19 -0
- package/es/modules/unit/components/BreadCrumbsHeader/state.js.map +1 -0
- package/es/modules/unit/components/Members/index.d.ts +4 -0
- package/es/modules/unit/components/Members/index.js +91 -0
- package/es/modules/unit/components/Members/index.js.map +1 -0
- package/es/modules/unit/components/Members/index.less +19 -0
- package/es/modules/unit/components/Members/state.d.ts +18 -0
- package/es/modules/unit/components/Members/state.js +29 -0
- package/es/modules/unit/components/Members/state.js.map +1 -0
- package/es/modules/unit/components/NewUnitForm/index.d.ts +11 -0
- package/es/modules/unit/components/NewUnitForm/index.js +51 -0
- package/es/modules/unit/components/NewUnitForm/index.js.map +1 -0
- package/es/modules/unit/components/NewUnitForm/index.less +33 -0
- package/es/modules/unit/components/NewUnitForm/state.d.ts +22 -0
- package/es/modules/unit/components/NewUnitForm/state.js +49 -0
- package/es/modules/unit/components/NewUnitForm/state.js.map +1 -0
- package/es/modules/unit/components/SortableTreeUnitTheme/index.d.ts +4 -0
- package/es/modules/unit/components/SortableTreeUnitTheme/index.js +23 -0
- package/es/modules/unit/components/SortableTreeUnitTheme/index.js.map +1 -0
- package/es/modules/unit/components/SortableTreeUnitTheme/node-content-renderer.d.ts +3 -0
- package/es/modules/unit/components/SortableTreeUnitTheme/node-content-renderer.js +58 -0
- package/es/modules/unit/components/SortableTreeUnitTheme/node-content-renderer.js.map +1 -0
- package/es/modules/unit/components/SortableTreeUnitTheme/node-content-renderer.less +46 -0
- package/es/modules/unit/components/SortableTreeUnitTheme/tree-node-renderer.d.ts +3 -0
- package/es/modules/unit/components/SortableTreeUnitTheme/tree-node-renderer.js +73 -0
- package/es/modules/unit/components/SortableTreeUnitTheme/tree-node-renderer.js.map +1 -0
- package/es/modules/unit/components/SortableTreeUnitTheme/tree-node-renderer.less +12 -0
- package/es/modules/unit/components/SubUnitList/index.d.ts +5 -0
- package/es/modules/unit/components/SubUnitList/index.js +70 -0
- package/es/modules/unit/components/SubUnitList/index.js.map +1 -0
- package/es/modules/unit/components/SubUnitList/index.less +13 -0
- package/es/modules/unit/components/SubUnitList/state.d.ts +14 -0
- package/es/modules/unit/components/SubUnitList/state.js +21 -0
- package/es/modules/unit/components/SubUnitList/state.js.map +1 -0
- package/es/modules/unit/components/UnitAvatar/index.d.ts +1 -0
- package/es/modules/unit/components/UnitAvatar/index.js +5 -4
- package/es/modules/unit/components/UnitAvatar/index.js.map +1 -1
- package/es/modules/unit/components/UnitAvatar/index.less +2 -3
- package/es/modules/unit/components/UnitDetails/index.js +98 -7
- package/es/modules/unit/components/UnitDetails/index.js.map +1 -1
- package/es/modules/unit/components/UnitDetails/index.less +41 -5
- package/es/modules/unit/components/UnitDetails/state.d.ts +8 -0
- package/es/modules/unit/components/UnitDetails/state.js +24 -0
- package/es/modules/unit/components/UnitDetails/state.js.map +1 -0
- package/es/modules/unit/components/UnitHead/index.d.ts +2 -0
- package/es/modules/unit/components/UnitHead/index.js +31 -7
- package/es/modules/unit/components/UnitHead/index.js.map +1 -1
- package/es/modules/unit/components/UnitHead/index.less +18 -3
- package/es/modules/unit/components/UnitHead/state.d.ts +11 -0
- package/es/modules/unit/components/UnitHead/state.js +8 -0
- package/es/modules/unit/components/UnitHead/state.js.map +1 -0
- package/es/modules/unit/components/UnitItem/DefaultUnitItem.d.ts +4 -0
- package/es/modules/unit/components/UnitItem/DefaultUnitItem.js +29 -0
- package/es/modules/unit/components/UnitItem/DefaultUnitItem.js.map +1 -0
- package/es/modules/unit/components/UnitItem/SubUnitItem.d.ts +4 -0
- package/es/modules/unit/components/UnitItem/SubUnitItem.js +35 -0
- package/es/modules/unit/components/UnitItem/SubUnitItem.js.map +1 -0
- package/es/modules/unit/components/UnitItem/index.less +23 -5
- package/es/modules/unit/components/UnitItem/state.d.ts +20 -0
- package/es/modules/unit/components/UnitItem/state.js +20 -0
- package/es/modules/unit/components/UnitItem/state.js.map +1 -0
- package/es/modules/unit/components/UnitList/index.d.ts +4 -0
- package/es/modules/unit/components/UnitList/index.js +37 -0
- package/es/modules/unit/components/UnitList/index.js.map +1 -0
- package/es/modules/unit/components/UnitList/state.d.ts +15 -0
- package/es/modules/unit/components/UnitList/state.js +31 -0
- package/es/modules/unit/components/UnitList/state.js.map +1 -0
- package/es/modules/unit/components/UnitPropertiesView/index.d.ts +6 -0
- package/es/modules/unit/components/UnitPropertiesView/index.js +22 -0
- package/es/modules/unit/components/UnitPropertiesView/index.js.map +1 -0
- package/es/modules/unit/components/UnitSortableTree/index.d.ts +10 -0
- package/es/modules/unit/components/UnitSortableTree/index.js +54 -0
- package/es/modules/unit/components/UnitSortableTree/index.js.map +1 -0
- package/es/modules/unit/components/UnitSortableTree/state.d.ts +50 -0
- package/es/modules/unit/components/UnitSortableTree/state.js +151 -0
- package/es/modules/unit/components/UnitSortableTree/state.js.map +1 -0
- package/es/modules/unit/components/UnitTabs/index.d.ts +6 -0
- package/es/modules/unit/components/UnitTabs/index.js +29 -0
- package/es/modules/unit/components/UnitTabs/index.js.map +1 -0
- package/es/modules/unit/controls/ContactSelect/index.d.ts +9 -0
- package/es/modules/unit/controls/ContactSelect/index.js +78 -0
- package/es/modules/unit/controls/ContactSelect/index.js.map +1 -0
- package/es/modules/unit/controls/ContactSelect/state.d.ts +23 -0
- package/es/modules/unit/controls/ContactSelect/state.js +43 -0
- package/es/modules/unit/controls/ContactSelect/state.js.map +1 -0
- package/es/modules/unit/controls/QuickDataIcon/UnitTeamsIcon/index.d.ts +6 -0
- package/es/modules/unit/controls/QuickDataIcon/UnitTeamsIcon/index.js +32 -0
- package/es/modules/unit/controls/QuickDataIcon/UnitTeamsIcon/index.js.map +1 -0
- package/es/modules/unit/{components → controls}/QuickDataIcon/index.d.ts +2 -6
- package/es/modules/unit/controls/QuickDataIcon/index.js +36 -0
- package/es/modules/unit/controls/QuickDataIcon/index.js.map +1 -0
- package/es/modules/unit/controls/QuickDataIcon/index.less +0 -0
- package/es/modules/unit/controls/ToolBar/ContactMenu/index.d.ts +13 -0
- package/es/modules/unit/controls/ToolBar/ContactMenu/index.js +59 -0
- package/es/modules/unit/controls/ToolBar/ContactMenu/index.js.map +1 -0
- package/es/modules/unit/controls/ToolBar/ContactMenu/index.less +20 -0
- package/es/modules/unit/controls/ToolBar/ContactMenu/state.d.ts +34 -0
- package/es/modules/unit/controls/ToolBar/ContactMenu/state.js +71 -0
- package/es/modules/unit/controls/ToolBar/ContactMenu/state.js.map +1 -0
- package/es/modules/unit/controls/ToolBar/index.d.ts +12 -0
- package/es/modules/unit/controls/ToolBar/index.js +54 -0
- package/es/modules/unit/controls/ToolBar/index.js.map +1 -0
- package/es/modules/unit/controls/ToolBar/index.less +18 -0
- package/es/modules/unit/controls/ToolBar/state.d.ts +40 -0
- package/es/modules/unit/controls/ToolBar/state.js +50 -0
- package/es/modules/unit/controls/ToolBar/state.js.map +1 -0
- package/es/modules/unit/controls/UnitTypeFilter/index.d.ts +3 -0
- package/es/modules/unit/controls/UnitTypeFilter/index.js +21 -0
- package/es/modules/unit/controls/UnitTypeFilter/index.js.map +1 -0
- package/es/modules/unit/controls/UnitTypeFilter/state.d.ts +18 -0
- package/es/modules/unit/controls/UnitTypeFilter/state.js +63 -0
- package/es/modules/unit/controls/UnitTypeFilter/state.js.map +1 -0
- package/es/modules/unit/data/FileStore/FileContext.d.ts +6 -0
- package/es/modules/unit/data/FileStore/FileContext.js +40 -0
- package/es/modules/unit/data/FileStore/FileContext.js.map +1 -0
- package/es/modules/unit/data/FileStore/index.d.ts +1 -0
- package/es/modules/unit/data/FileStore/index.js +2 -0
- package/es/modules/unit/data/FileStore/index.js.map +1 -0
- package/es/modules/unit/data/StoreContext/index.d.ts +3 -0
- package/es/modules/unit/data/StoreContext/index.js +4 -0
- package/es/modules/unit/data/StoreContext/index.js.map +1 -0
- package/es/modules/unit/data/UnitContext/index.d.ts +20 -0
- package/es/modules/unit/data/UnitContext/index.js +32 -0
- package/es/modules/unit/data/UnitContext/index.js.map +1 -0
- package/es/modules/unit/data/UnitStore.d.ts +103 -0
- package/es/modules/unit/data/UnitStore.js +180 -0
- package/es/modules/unit/data/UnitStore.js.map +1 -0
- package/es/modules/unit/data/hooks.d.ts +25 -0
- package/es/modules/unit/data/hooks.js +91 -0
- package/es/modules/unit/data/hooks.js.map +1 -0
- package/es/modules/unit/data/index.d.ts +3 -0
- package/es/modules/unit/data/index.js +3 -0
- package/es/modules/unit/data/index.js.map +1 -0
- package/es/modules/unit/data/interfaces/IAddress.d.ts +14 -0
- package/es/modules/unit/data/interfaces/IAddress.js +1 -0
- package/es/modules/unit/data/interfaces/IAddress.js.map +1 -0
- package/es/modules/unit/data/interfaces/IEntityName.d.ts +6 -0
- package/es/modules/unit/data/interfaces/IEntityName.js +1 -0
- package/es/modules/unit/data/interfaces/IEntityName.js.map +1 -0
- package/es/modules/unit/data/interfaces/IUnit.d.ts +47 -0
- package/es/modules/unit/data/interfaces/IUnit.js +1 -0
- package/es/modules/unit/data/interfaces/IUnit.js.map +1 -0
- package/es/modules/unit/data/interfaces/index.d.ts +3 -0
- package/es/modules/unit/data/interfaces/index.js +1 -0
- package/es/modules/unit/data/interfaces/index.js.map +1 -0
- package/es/modules/unit/pages/UnitDefaultView/index.d.ts +3 -0
- package/es/modules/unit/pages/UnitDefaultView/index.js +47 -0
- package/es/modules/unit/pages/UnitDefaultView/index.js.map +1 -0
- package/es/modules/unit/pages/UnitDefaultView/index.less +17 -0
- package/es/modules/unit/pages/UnitListView/index.d.ts +3 -0
- package/es/modules/unit/pages/UnitListView/index.js +10 -0
- package/es/modules/unit/pages/UnitListView/index.js.map +1 -0
- package/es/modules/unit/pages/UnitTreeView/index.d.ts +3 -0
- package/es/modules/unit/pages/UnitTreeView/index.js +47 -0
- package/es/modules/unit/pages/UnitTreeView/index.js.map +1 -0
- package/es/modules/unit/pages/UnitTreeView/index.less +31 -0
- package/es/modules/unit/pages/UnitTreeView/state.d.ts +5 -0
- package/es/modules/unit/pages/UnitTreeView/state.js +14 -0
- package/es/modules/unit/pages/UnitTreeView/state.js.map +1 -0
- package/es/pages/TreeViewPage/index.js +27 -20
- package/es/pages/TreeViewPage/index.js.map +1 -1
- package/es/pages/TreeViewPage/index.less +28 -19
- package/es/pages/TreeViewPage/state.d.ts +5 -0
- package/es/pages/TreeViewPage/state.js +14 -0
- package/es/pages/TreeViewPage/state.js.map +1 -0
- package/es/routes.d.ts +18 -0
- package/es/routes.js +40 -1
- package/es/routes.js.map +1 -1
- package/package.json +3 -1
- package/es/controls/DocumentTypeFilter/index.js +0 -54
- package/es/controls/DocumentTypeFilter/index.js.map +0 -1
- package/es/modules/unit/components/QuickDataIcon/UnitTeamsIcon/index.d.ts +0 -14
- package/es/modules/unit/components/QuickDataIcon/UnitTeamsIcon/index.js +0 -28
- package/es/modules/unit/components/QuickDataIcon/UnitTeamsIcon/index.js.map +0 -1
- package/es/modules/unit/components/QuickDataIcon/index.js +0 -45
- package/es/modules/unit/components/QuickDataIcon/index.js.map +0 -1
- package/es/modules/unit/components/UnitItem/index.d.ts +0 -6
- package/es/modules/unit/components/UnitItem/index.js +0 -19
- package/es/modules/unit/components/UnitItem/index.js.map +0 -1
- /package/es/modules/unit/components/{QuickDataIcon → UnitList}/index.less +0 -0
- /package/es/{controls/DocumentTypeFilter/index.d.ts → modules/unit/components/UnitPropertiesView/index.less} +0 -0
- /package/es/modules/unit/{components → controls}/QuickDataIcon/UnitTeamsIcon/index.less +0 -0
|
@@ -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
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
declare const NewDocumentForm: (props: {
|
|
4
4
|
parentId: string;
|
|
5
5
|
className?: string | undefined;
|
|
6
|
-
type?: "text" | "document" | "dashboard" | "task" | "meeting" | "board" | "graph" | "quotation" | undefined;
|
|
6
|
+
type?: "text" | "document" | "dashboard" | "shortcut" | "task" | "meeting" | "board" | "graph" | "quotation" | "invoice" | "journal" | undefined;
|
|
7
7
|
showView?: boolean | undefined;
|
|
8
8
|
onSave?: ((params?: any) => void) | undefined;
|
|
9
9
|
onCancel?: (() => void) | undefined;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Button, Form, Input, Row, Select, Spin } from "@voplus/antd";
|
|
2
2
|
import React, { useEffect, useState } from "react";
|
|
3
|
+
import { useDocumentStore } from "../../data";
|
|
4
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
3
5
|
import { State } from "./state";
|
|
4
6
|
import classnames from "classnames";
|
|
7
|
+
import { faListAlt } from "@fortawesome/pro-light-svg-icons";
|
|
5
8
|
import styles from "./index.less";
|
|
6
9
|
import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
7
|
-
import { useDocumentStore } from "../../data";
|
|
8
10
|
import { useObserver } from "mobx-react-lite";
|
|
9
11
|
/** new document from */
|
|
10
12
|
const NewDocumentForm = (props) => {
|
|
@@ -19,9 +21,12 @@ const NewDocumentForm = (props) => {
|
|
|
19
21
|
return useObserver(() => (React.createElement("div", { className: classnames(styles["new-document-form"], { "sub-document-simply-form": props.type }, props.className) },
|
|
20
22
|
React.createElement(Form, null,
|
|
21
23
|
props.type && (React.createElement(Form.Item, null,
|
|
24
|
+
React.createElement("div", { className: "form-label" }, state.params.type === "document" ? "folder" : state.params.type),
|
|
22
25
|
React.createElement(Spin, { spinning: !!state.loading },
|
|
23
26
|
React.createElement("div", { className: "form-item-layout" },
|
|
24
|
-
React.createElement(Input, { autoFocus: true, value: state.params.name, placeholder: `Add a ${state.params.type === "document" ? "folder" : state.params.type} for this document`, onChange: e => (state.params.name = e.target.value), onPressEnter: () => state.onSubmit(documents), onKeyDown: (e) => state.onKeyDown(e) })
|
|
27
|
+
React.createElement(Input, { autoFocus: true, value: state.params.name, placeholder: `Add a ${state.params.type === "document" ? "folder" : state.params.type} for this document`, onChange: e => (state.params.name = e.target.value), onPressEnter: () => state.onSubmit(documents), onKeyDown: (e) => state.onKeyDown(e) }),
|
|
28
|
+
React.createElement("span", { className: "detailed" },
|
|
29
|
+
React.createElement(FAIcon, { icon: faListAlt, size: "lg" })))))),
|
|
25
30
|
props.showView && (React.createElement(React.Fragment, null,
|
|
26
31
|
React.createElement(Form.Item, null,
|
|
27
32
|
React.createElement("div", { className: "form-item-layout" },
|
|
@@ -33,7 +38,9 @@ const NewDocumentForm = (props) => {
|
|
|
33
38
|
React.createElement(Option, { value: "board" }, "Board"),
|
|
34
39
|
React.createElement(Option, { value: "graph" }, "Graph"),
|
|
35
40
|
React.createElement(Option, { value: "quotation" }, "Quotation"),
|
|
36
|
-
React.createElement(Option, { value: "dashboard" }, "Dashboard")
|
|
41
|
+
React.createElement(Option, { value: "dashboard" }, "Dashboard"),
|
|
42
|
+
React.createElement(Option, { value: "invoice" }, "Invoice"),
|
|
43
|
+
React.createElement(Option, { value: "journal" }, "Journal")),
|
|
37
44
|
React.createElement(Input, { autoFocus: true, value: state.params.name, placeholder: `Add a ${state.params.type === "document" ? "folder" : state.params.type} for this document`, onChange: e => (state.params.name = e.target.value) }))),
|
|
38
45
|
React.createElement(Form.Item, null,
|
|
39
46
|
React.createElement(Row, { justify: "end", className: "margin-top-10" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/NewDocumentForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,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G,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,GAClD,CACG,CACK;gBACZ,oBAAC,IAAI,CAAC,IAAI;oBACT,oBAAC,GAAG,IAAC,OAAO,EAAC,KAAK,EAAC,SAAS,EAAC,eAAe;wBAC3C,oBAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,QAAC,OAAO,EAAE,QAAQ,aAEpC;wBACT,oBAAC,MAAM,IACN,IAAI,EAAC,SAAS,EACd,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,EACxB,SAAS,EAAC,gBAAgB,EAC1B,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,aAGhC,CACJ,CACK,CACI,CACjB,CACK,CACF,CACN,CAAC,CAAC;IAEH,kCAAkC;IAClC,SAAS,QAAQ;QAChB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC5B,IAAI,KAAK,CAAC,QAAQ;YAAE,OAAO,YAAa,CAAC,UAAU,EAAE,CAAC;QAEtD,IAAI,KAAK,CAAC,QAAQ;YAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACtC,CAAC;AACF,CAAC,CAAC;AACF,eAAe,eAAe,CAAC"}
|
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
margin-right: 20px;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
+
.form-label {
|
|
16
|
+
line-height: 24px;
|
|
17
|
+
}
|
|
15
18
|
.ant-form-item {
|
|
16
19
|
margin-bottom: 10px;
|
|
17
20
|
}
|
|
@@ -19,9 +22,14 @@
|
|
|
19
22
|
display: flex;
|
|
20
23
|
justify-content: end;
|
|
21
24
|
}
|
|
25
|
+
.detailed {
|
|
26
|
+
font-size: 20px;
|
|
27
|
+
margin-left: 10px;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}
|
|
22
30
|
}
|
|
23
31
|
&:global(.sub-document-simply-form) {
|
|
24
|
-
flex: none;
|
|
32
|
+
// flex: none;
|
|
25
33
|
padding: 10px 20px 0 20px;
|
|
26
34
|
border-top: #f2f2f2 solid 1px;
|
|
27
35
|
}
|
|
@@ -21,12 +21,13 @@ const QuickAccessSearch = () => {
|
|
|
21
21
|
});
|
|
22
22
|
return useObserver(() => (React.createElement("div", { className: styles["quick-access-search"] },
|
|
23
23
|
React.createElement("div", { className: "obj-search" },
|
|
24
|
-
React.createElement(TimeoutInput, { suffix: React.createElement(SearchOutlined, { style: { color: "lightgray" } }), className: "object-search-input", value: state.keyword, placeholder: "Search...", onChange: e => (state.keyword = e.target.value), onIdle:
|
|
25
|
-
state.loading = true;
|
|
26
|
-
state.filterName = e;
|
|
27
|
-
} })),
|
|
24
|
+
React.createElement(TimeoutInput, { suffix: React.createElement(SearchOutlined, { style: { color: "lightgray" } }), className: "object-search-input", value: state.keyword, placeholder: "Search...", onChange: e => (state.keyword = e.target.value), onIdle: onIdle })),
|
|
28
25
|
React.createElement("div", { className: "obj-list" },
|
|
29
26
|
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, objectType: item.objectType, type: item.type, index: index }))))))));
|
|
27
|
+
function onIdle(e) {
|
|
28
|
+
state.filterName = e;
|
|
29
|
+
state.reset();
|
|
30
|
+
}
|
|
30
31
|
};
|
|
31
32
|
export default QuickAccessSearch;
|
|
32
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/QuickAccessSearch/index.tsx"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,S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-
import React from "react";
|
|
1
|
+
/// <reference types="react" />
|
|
3
2
|
export declare type QuickViewProps = {
|
|
4
3
|
type?: string;
|
|
4
|
+
shape?: boolean;
|
|
5
5
|
showSubTab?: (params?: any) => void;
|
|
6
6
|
};
|
|
7
|
-
declare const QuickSubTab:
|
|
7
|
+
declare const QuickSubTab: {
|
|
8
|
+
(props: QuickViewProps): JSX.Element;
|
|
9
|
+
defaultProps: {
|
|
10
|
+
shape: boolean;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
8
13
|
declare const QuickSubContent: (props: {
|
|
9
14
|
id: string;
|
|
10
15
|
type?: string | undefined;
|
|
11
|
-
|
|
16
|
+
shape?: boolean | undefined;
|
|
17
|
+
className?: string | undefined;
|
|
12
18
|
exclude?: string[] | undefined;
|
|
13
19
|
onCancel?: (() => void) | undefined;
|
|
14
20
|
}) => JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import "./index.less";
|
|
2
1
|
import { Button, Tooltip } from "@voplus/antd";
|
|
3
2
|
import { faComments, faFileAlt, faTimes, faUserChart } from "@fortawesome/pro-light-svg-icons";
|
|
4
3
|
import ActivityLog from "../../ActivityLog";
|
|
@@ -6,27 +5,28 @@ import Comment from "@voplus/morpho-collaboration/es/components/Comment";
|
|
|
6
5
|
import DocumentList from "../../DocumentList";
|
|
7
6
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
8
7
|
import React from "react";
|
|
8
|
+
import classnames from "classnames";
|
|
9
|
+
import styles from "./index.less";
|
|
9
10
|
import { useDocument } from "../../../data";
|
|
10
11
|
import { useObserver } from "mobx-react-lite";
|
|
11
12
|
const QuickSubTab = (props) => {
|
|
12
|
-
const { type, showSubTab } = { ...props };
|
|
13
|
-
return useObserver(() => (React.createElement(
|
|
14
|
-
type !== "Document" && (React.createElement(Tooltip, { title: "Sub-Documents" },
|
|
15
|
-
React.createElement(Button, { onClick: () => showSubTab === null || showSubTab === void 0 ? void 0 : showSubTab("documents") },
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
const { type, shape, showSubTab } = { ...props };
|
|
14
|
+
return useObserver(() => (React.createElement(React.Fragment, null,
|
|
15
|
+
type !== "Document" && (React.createElement(Tooltip, { title: "Sub-Documents" }, shape ? (React.createElement(Button, { shape: "circle", onClick: () => showSubTab === null || showSubTab === void 0 ? void 0 : showSubTab("documents") },
|
|
16
|
+
React.createElement(FAIcon, { icon: faFileAlt }))) : (React.createElement(Button, { icon: React.createElement(FAIcon, { icon: faFileAlt }), onClick: () => showSubTab === null || showSubTab === void 0 ? void 0 : showSubTab("documents") })))),
|
|
17
|
+
React.createElement(Tooltip, { title: "Comments" }, shape ? (React.createElement(Button, { shape: "circle", onClick: () => showSubTab === null || showSubTab === void 0 ? void 0 : showSubTab("comments") },
|
|
18
|
+
React.createElement(FAIcon, { icon: faComments }))) : (React.createElement(Button, { icon: React.createElement(FAIcon, { icon: faComments }), onClick: () => showSubTab === null || showSubTab === void 0 ? void 0 : showSubTab("comments") }))),
|
|
19
|
+
React.createElement(Tooltip, { title: "Activities" }, shape ? (React.createElement(Button, { shape: "circle", onClick: () => showSubTab === null || showSubTab === void 0 ? void 0 : showSubTab("activities") },
|
|
20
|
+
React.createElement(FAIcon, { icon: faUserChart }))) : (React.createElement(Button, { icon: React.createElement(FAIcon, { icon: faUserChart }), onClick: () => showSubTab === null || showSubTab === void 0 ? void 0 : showSubTab("activities") }))))));
|
|
21
|
+
};
|
|
22
|
+
QuickSubTab.defaultProps = {
|
|
23
|
+
shape: true
|
|
23
24
|
};
|
|
24
25
|
const QuickSubContent = (props) => {
|
|
25
|
-
const { type, id, exclude, onCancel } = { ...props };
|
|
26
|
+
const { type, id, shape, exclude, className, onCancel } = { ...props };
|
|
26
27
|
const document = useDocument(props.id);
|
|
27
|
-
return useObserver(() => (React.createElement("div", { className: "quickView-right",
|
|
28
|
-
React.createElement("div", { className: "close-icon" },
|
|
29
|
-
React.createElement(FAIcon, { icon: faTimes, onClick: onCancel })),
|
|
28
|
+
return useObserver(() => (React.createElement("div", { className: classnames(styles["quickView-right"], className) },
|
|
29
|
+
React.createElement("div", { className: "close-icon" }, shape ? (React.createElement(Button, { icon: React.createElement(FAIcon, { icon: faTimes }), onClick: onCancel })) : (React.createElement(FAIcon, { icon: faTimes, onClick: onCancel }))),
|
|
30
30
|
React.createElement("div", { className: "tab-content" },
|
|
31
31
|
type === "documents" && React.createElement(DocumentList, { id: id, exclude: exclude, multiple: true }),
|
|
32
32
|
type === "comments" && React.createElement(Comment, { channelId: document.channelId }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/QuickViewDialog/QuickSubTab/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/QuickViewDialog/QuickSubTab/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAE/F,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,OAAO,MAAM,oDAAoD,CAAC;AACzE,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAQ9C,MAAM,WAAW,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC7C,MAA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,EAAE,QAAQ,SAAG;YAC3E,IAAI,KAAK,UAAU,IAAI,oBAAC,OAAO,IAAC,SAAS,EAAE,QAAQ,CAAC,SAAU,GAAI;YAClE,IAAI,KAAK,YAAY,IAAI,CACzB,6BAAK,SAAS,EAAC,gBAAgB;gBAC9B,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,GAAI,CAClB,CACN,CACI,CACD,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
.quickView-right {
|
|
2
|
+
flex: 1;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
border-left: solid 1px #eeeeee;
|
|
6
|
+
:global {
|
|
7
7
|
.close-icon {
|
|
8
8
|
font-size: 22px;
|
|
9
9
|
text-align: right;
|
|
@@ -18,17 +18,5 @@
|
|
|
18
18
|
padding: 10px 0 0 10px;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
.quickView-subTab {
|
|
23
|
-
display: inline-block;
|
|
24
|
-
text-align: right;
|
|
25
|
-
padding: 10px 15px;
|
|
26
|
-
.ant-btn {
|
|
27
|
-
width: 30px;
|
|
28
|
-
height: 30px;
|
|
29
|
-
border-radius: 50%;
|
|
30
|
-
padding: 0;
|
|
31
|
-
margin-left: 10px;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
21
|
+
}
|
|
34
22
|
}
|
|
@@ -17,7 +17,8 @@ const QuickViewDialog = (props) => {
|
|
|
17
17
|
React.createElement(FAIcon, { icon: faTimes, onClick: props.onCancel })),
|
|
18
18
|
props.header),
|
|
19
19
|
React.createElement("div", { className: "quickView-contents" },
|
|
20
|
-
React.createElement(
|
|
20
|
+
React.createElement("div", { className: "quickView-subTab" },
|
|
21
|
+
React.createElement(QuickSubTab, { type: props.type, showSubTab: (key) => state.showSubTab(key) })),
|
|
21
22
|
props.children)),
|
|
22
23
|
state.subTab && (React.createElement(QuickSubContent, { id: props.id, type: state.key, exclude: props.exclude, onCancel: () => (state.subTab = false) })))))));
|
|
23
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/QuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,uCAAuC,CAAC;AAC1D,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAa9C,MAAM,eAAe,GAAG,CAAC,KAAqB,EAAE,EAAE;IACjD,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEtC,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB,oBAAC,KAAK,CAAC,QAAQ,QACb,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,CACxB,oBAAC,OAAO,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,QAAQ,GAAI,CAC1E,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,IACL,KAAK,EAAE,KAAK,CA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,EAAE,KAAK,CAAC,OAAO,EACtB,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,GACrC,CACF,CACM,CACR,CACe,CACjB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -28,7 +28,14 @@
|
|
|
28
28
|
display: flex;
|
|
29
29
|
flex-direction: column;
|
|
30
30
|
overflow: hidden;
|
|
31
|
-
|
|
31
|
+
.quickView-subTab {
|
|
32
|
+
display: inline-block;
|
|
33
|
+
text-align: right;
|
|
34
|
+
padding: 10px 20px;
|
|
35
|
+
.ant-btn {
|
|
36
|
+
margin-left: 10px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
32
39
|
.quickView-description {
|
|
33
40
|
padding: 10px 15px;
|
|
34
41
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const getTypeIcon: (type: string) => JSX.Element;
|
|
3
|
-
export declare const getRouteByType: (type: string) => "/project" | "/document" | "/files" | "/graphs" | "/text" | "/tasks" | "/boards" | "/meetings" | "/quotations" | "/dashboard" | null;
|
|
3
|
+
export declare const getRouteByType: (type: string) => "/project" | "/document" | "/files" | "/graphs" | "/text" | "/tasks" | "/boards" | "/meetings" | "/quotations" | "/dashboard" | "/invoice" | "/journal" | null;
|
package/es/components/helper.js
CHANGED
|
@@ -41,6 +41,10 @@ export const getRouteByType = (type) => {
|
|
|
41
41
|
return "/quotations";
|
|
42
42
|
case DocumentType.Dashboard:
|
|
43
43
|
return "/dashboard";
|
|
44
|
+
case DocumentType.Invoice:
|
|
45
|
+
return "/invoice";
|
|
46
|
+
case DocumentType.Journal:
|
|
47
|
+
return "/journal";
|
|
44
48
|
default:
|
|
45
49
|
return null;
|
|
46
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helper.js","sourceRoot":"","sources":["../../src/components/helper.tsx"],"names":[],"mappings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AAI;YACrB,OAAO,QAAQ,CAAC;QACjB,KAAK,YAAY,CAAC,KAAK;YACtB,OAAO,SAAS,CAAC;QAClB,KAAK,YAAY,CAAC,IAAI;YACrB,OAAO,OAAO,CAAC;QAChB,KAAK,YAAY,CAAC,IAAI;YACrB,OAAO,QAAQ,CAAC;QACjB,KAAK,YAAY,CAAC,KAAK;YACtB,OAAO,SAAS,CAAC;QAClB,KAAK,YAAY,CAAC,OAAO;YACxB,OAAO,WAAW,CAAC;QACpB,KAAK,YAAY,CAAC,SAAS;YAC1B,OAAO,aAAa,CAAC;QACtB,KAAK,YAAY,CAAC,SAAS;YAC1B,OAAO,YAAY,CAAC;QACrB,KAAK,YAAY,CAAC,OAAO;YACxB,OAAO,UAAU,CAAC;QACnB,KAAK,YAAY,CAAC,OAAO;YACxB,OAAO,UAAU,CAAC;QACnB;YACC,OAAO,IAAI,CAAC;KACb;AACF,CAAC,CAAC"}
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
}
|
|
38
38
|
.module-box {
|
|
39
39
|
height: 100%;
|
|
40
|
-
padding: 10px
|
|
40
|
+
padding: 10px 20px;
|
|
41
41
|
box-sizing: border-box;
|
|
42
42
|
overflow-x: hidden;
|
|
43
43
|
}
|
|
@@ -128,6 +128,9 @@
|
|
|
128
128
|
.margin-right-20 {
|
|
129
129
|
margin-right: 20px;
|
|
130
130
|
}
|
|
131
|
+
.margin-right-30 {
|
|
132
|
+
margin-right: 30px;
|
|
133
|
+
}
|
|
131
134
|
.margin-top-5 {
|
|
132
135
|
margin-top: 5px;
|
|
133
136
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { State } from "./state";
|
|
3
|
+
import classnames from "classnames";
|
|
4
|
+
import { useFilterOptionsContext } from "@voplus/morpho-ui/es/data";
|
|
5
|
+
import { useObserver } from "mobx-react-lite";
|
|
6
|
+
const DocumentTypeFilter = () => {
|
|
7
|
+
/** 引入父組件的 FilterOptionsContextState */
|
|
8
|
+
const context = useFilterOptionsContext();
|
|
9
|
+
/** 尝试从 context 取得 Type, 如果没有的话context会使用第二个factory参数创建一个State. */
|
|
10
|
+
const state = context.getFilterState("Type", () => new State());
|
|
11
|
+
return useObserver(() => (React.createElement("div", null,
|
|
12
|
+
React.createElement("div", { className: "menu-item-title" }, "Types"),
|
|
13
|
+
state.menus.map(item => (React.createElement("div", { key: item.value, className: classnames("filter-menu-item", {
|
|
14
|
+
bold: state.types.has(item.value)
|
|
15
|
+
}), onClick: () => state.changeType(item.value) },
|
|
16
|
+
React.createElement("div", { className: "filter-name" },
|
|
17
|
+
item.icon,
|
|
18
|
+
item.name)))))));
|
|
19
|
+
};
|
|
20
|
+
export default DocumentTypeFilter;
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/controls/filters/DocumentTypeFilter/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,kBAAkB,GAAG,GAAG,EAAE;IAC/B,uCAAuC;IACvC,MAAM,OAAO,GAAG,uBAAuB,EAAE,CAAC;IAE1C,kEAAkE;IAClE,MAAM,KAAK,GAAG,OAAO,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEhE,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB;QACC,6BAAK,SAAS,EAAC,iBAAiB,YAAY;QAC3C,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CACxB,6BACC,GAAG,EAAE,IAAI,CAAC,KAAK,EACf,SAAS,EAAE,UAAU,CAAC,kBAAkB,EAAE;gBACzC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC;aACjC,CAAC,EACF,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC;YAE3C,6BAAK,SAAS,EAAC,aAAa;gBAC1B,IAAI,CAAC,IAAI;gBACT,IAAI,CAAC,IAAI,CACL,CACD,CACN,CAAC,CACG,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FilterOption } from "@voplus/morpho-data";
|
|
3
|
+
import { IFilterState } from "@voplus/morpho-ui/es/data";
|
|
4
|
+
/** TypeFilter的 State, 实现 IFilterState 接口 */
|
|
5
|
+
export declare class State implements IFilterState {
|
|
6
|
+
/** Types of document of filter */
|
|
7
|
+
types: Map<string, boolean>;
|
|
8
|
+
/** Alter document type */
|
|
9
|
+
changeType(value: string): void;
|
|
10
|
+
get menus(): {
|
|
11
|
+
name: string;
|
|
12
|
+
value: string;
|
|
13
|
+
icon: JSX.Element;
|
|
14
|
+
}[];
|
|
15
|
+
/** 视乎State内容,返回正确的FilterOption[]. 在Filter时,Context 会使用此属性replace Context内FilterOption的资料。 */
|
|
16
|
+
get filters(): FilterOption[];
|
|
17
|
+
reset(): void;
|
|
18
|
+
}
|