@voplus/morpho-document 1.0.0-dev303 → 1.0.0-dev305
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/changelog.md +5 -2
- package/es/components/DocumentItem/index.js +11 -3
- package/es/components/DocumentItem/index.js.map +1 -1
- package/es/components/DocumentItem/index.less +25 -57
- package/es/components/DocumentName/index.js +2 -7
- package/es/components/DocumentName/index.js.map +1 -1
- package/es/components/DocumentSelectDialog/index.less +1 -1
- package/es/components/DocumentSortableTree/index.d.ts +1 -0
- package/es/components/DocumentSortableTree/index.js +21 -9
- package/es/components/DocumentSortableTree/index.js.map +1 -1
- package/es/components/DocumentSortableTree/index.less +9 -0
- package/es/components/DocumentSortableTree/state.d.ts +5 -0
- package/es/components/DocumentSortableTree/state.js +10 -6
- package/es/components/DocumentSortableTree/state.js.map +1 -1
- package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.d.ts +1 -0
- package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.js +11 -7
- package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.js.map +1 -1
- package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.less +244 -247
- package/es/components/DocumentTabs/index.js +2 -1
- package/es/components/DocumentTabs/index.js.map +1 -1
- package/es/components/DocumentTabs/index.less +7 -0
- package/es/data/contexts/DocumentListContext/index.d.ts +3 -6
- package/es/data/contexts/DocumentListContext/index.js +2 -18
- package/es/data/contexts/DocumentListContext/index.js.map +1 -1
- package/es/pages/Library/LibraryDefaultView/index.js +5 -2
- package/es/pages/Library/LibraryDefaultView/index.js.map +1 -1
- package/es/pages/Library/LibraryDefaultView/index.less +11 -2
- package/es/pages/Page/PageDefaultView/index.less +1 -1
- package/es/pages/Page/PageItems/index.js.map +1 -1
- package/es/pages/Page/PageItems/index.less +1 -0
- package/es/pages/Signature/Envelope/EnvelopeDefaultView/index.js +2 -2
- package/es/pages/Signature/Envelope/EnvelopeDefaultView/index.js.map +1 -1
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/index.js +14 -9
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/index.js.map +1 -1
- package/es/pages/Signature/Letter/LetterContentView/index.js +6 -6
- package/es/pages/Signature/Letter/LetterContentView/index.js.map +1 -1
- package/es/pages/Signature/Letter/LetterContentView/state.d.ts +6 -3
- package/es/pages/Signature/Letter/LetterContentView/state.js +11 -3
- package/es/pages/Signature/Letter/LetterContentView/state.js.map +1 -1
- package/es/pages/Signature/Letter/LetterItem/index.js +12 -3
- package/es/pages/Signature/Letter/LetterItem/index.js.map +1 -1
- package/es/pages/Signature/Letter/LetterViewer/index.js +4 -3
- package/es/pages/Signature/Letter/LetterViewer/index.js.map +1 -1
- package/es/pages/Signature/SignatureDialog/index.js +3 -2
- package/es/pages/Signature/SignatureDialog/index.js.map +1 -1
- package/es/pages/Signature/SignatureTable/index.js +4 -3
- package/es/pages/Signature/SignatureTable/index.js.map +1 -1
- package/es/pages/Signature/data/EnvelopeContext.js +1 -1
- package/es/pages/Signature/data/EnvelopeContext.js.map +1 -1
- package/package.json +6 -8
- package/es/controls/QuickDataIcon/UserQuickIcon/index.d.ts +0 -14
- package/es/controls/QuickDataIcon/UserQuickIcon/index.js +0 -28
- package/es/controls/QuickDataIcon/UserQuickIcon/index.js.map +0 -1
- package/es/controls/QuickDataIcon/UserQuickIcon/index.less +0 -21
- package/es/controls/QuickDataIcon/index.d.ts +0 -21
- package/es/controls/QuickDataIcon/index.js +0 -37
- package/es/controls/QuickDataIcon/index.js.map +0 -1
- package/es/controls/QuickDataIcon/index.less +0 -12
package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.less
CHANGED
|
@@ -1,326 +1,323 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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);
|
|
1
|
+
:global {
|
|
2
|
+
.explorer-theme-node {
|
|
3
|
+
&:hover {
|
|
4
|
+
background: #f5f5f5;
|
|
14
5
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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;
|
|
6
|
+
&.active {
|
|
7
|
+
background: #1ea7fd;
|
|
8
|
+
svg,
|
|
9
|
+
.file-name {
|
|
10
|
+
color: white;
|
|
35
11
|
}
|
|
36
12
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
background-color: #f5f5f5;
|
|
13
|
+
:global {
|
|
14
|
+
.doc-spin {
|
|
15
|
+
z-index: 2;
|
|
16
|
+
position: absolute;
|
|
17
|
+
top: 50%;
|
|
18
|
+
width: 30px;
|
|
19
|
+
height: 30px;
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
transform: translate3d(-50%, -50%, 0);
|
|
49
24
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
25
|
+
.collapseButton,
|
|
26
|
+
.expandButton {
|
|
27
|
+
appearance: none;
|
|
28
|
+
border: none;
|
|
29
|
+
background: transparent;
|
|
30
|
+
padding: 0;
|
|
31
|
+
z-index: 2;
|
|
32
|
+
position: absolute;
|
|
33
|
+
top: 45%;
|
|
34
|
+
width: 30px;
|
|
35
|
+
height: 30px;
|
|
36
|
+
transform: translate3d(-50%, -50%, 0);
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
.arrows {
|
|
39
|
+
display: inline-block;
|
|
40
|
+
font-size: 10px;
|
|
41
|
+
transform: translate3d(50%, 0, 0) rotateZ(90deg);
|
|
42
|
+
}
|
|
43
|
+
&:focus {
|
|
44
|
+
outline: none;
|
|
45
|
+
}
|
|
54
46
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
display: flex;
|
|
63
|
-
position: relative;
|
|
64
|
-
|
|
65
|
-
& > * {
|
|
47
|
+
.expandButton .arrows {
|
|
48
|
+
display: inline-block;
|
|
49
|
+
font-size: 10px;
|
|
50
|
+
transform: translate3d(50%, 0, 0);
|
|
51
|
+
}
|
|
52
|
+
.rowWrapper {
|
|
53
|
+
height: 100%;
|
|
66
54
|
box-sizing: border-box;
|
|
67
55
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
background-color: #f5f5f5;
|
|
56
|
+
.rowWrapperDragDisabled {
|
|
57
|
+
cursor: default;
|
|
71
58
|
}
|
|
59
|
+
.row {
|
|
60
|
+
height: 100%;
|
|
61
|
+
white-space: nowrap;
|
|
62
|
+
display: flex;
|
|
63
|
+
position: relative;
|
|
72
64
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
65
|
+
& > * {
|
|
66
|
+
box-sizing: border-box;
|
|
67
|
+
}
|
|
76
68
|
}
|
|
77
|
-
}
|
|
78
69
|
|
|
79
|
-
|
|
70
|
+
/**
|
|
80
71
|
* The outline of where the element will go if dropped, displayed while dragging
|
|
81
72
|
*/
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
73
|
+
.rowLandingPad {
|
|
74
|
+
border: none;
|
|
75
|
+
box-shadow: none;
|
|
76
|
+
outline: none;
|
|
86
77
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
78
|
+
* {
|
|
79
|
+
opacity: 0 !important;
|
|
80
|
+
}
|
|
90
81
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
82
|
+
&::before {
|
|
83
|
+
background-color: lightblue;
|
|
84
|
+
border: 2px dotted black;
|
|
85
|
+
content: "";
|
|
86
|
+
position: absolute;
|
|
87
|
+
top: 0;
|
|
88
|
+
right: 0;
|
|
89
|
+
bottom: 0;
|
|
90
|
+
left: 0;
|
|
91
|
+
z-index: -1;
|
|
92
|
+
}
|
|
101
93
|
}
|
|
102
|
-
}
|
|
103
94
|
|
|
104
|
-
|
|
95
|
+
/**
|
|
105
96
|
* Alternate appearance of the landing pad when the dragged location is invalid
|
|
106
97
|
*/
|
|
107
|
-
|
|
108
|
-
|
|
98
|
+
.rowCancelPad {
|
|
99
|
+
// @extend .rowLandingPad;
|
|
109
100
|
|
|
110
|
-
|
|
111
|
-
|
|
101
|
+
&::before {
|
|
102
|
+
background-color: #e6a8ad;
|
|
103
|
+
}
|
|
112
104
|
}
|
|
113
|
-
}
|
|
114
105
|
|
|
115
|
-
|
|
106
|
+
/**
|
|
116
107
|
* Nodes matching the search conditions are highlighted
|
|
117
108
|
*/
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
109
|
+
.rowSearchMatch {
|
|
110
|
+
box-shadow: inset 0 -7px 7px -3px #0080ff;
|
|
111
|
+
}
|
|
121
112
|
|
|
122
|
-
|
|
113
|
+
/**
|
|
123
114
|
* The node that matches the search conditions and is currently focused
|
|
124
115
|
*/
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
116
|
+
.rowSearchFocus {
|
|
117
|
+
box-shadow: inset 0 -7px 7px -3px #fc6421;
|
|
118
|
+
}
|
|
128
119
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
120
|
+
// %rowItem {
|
|
121
|
+
// display: inline-block;
|
|
122
|
+
// vertical-align: middle;
|
|
123
|
+
// }
|
|
133
124
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
125
|
+
.rowContents {
|
|
126
|
+
// @extend %rowItem;
|
|
127
|
+
position: relative;
|
|
128
|
+
height: 100%;
|
|
129
|
+
flex: 1 0 auto;
|
|
130
|
+
display: flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
justify-content: space-between;
|
|
133
|
+
}
|
|
143
134
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
// padding-right: 6px;
|
|
151
|
-
// }
|
|
152
|
-
}
|
|
135
|
+
.rowLabel {
|
|
136
|
+
// @extend %rowItem;
|
|
137
|
+
display: flex;
|
|
138
|
+
flex: 0 1 auto;
|
|
139
|
+
padding-right: 20px;
|
|
140
|
+
}
|
|
153
141
|
|
|
154
|
-
|
|
155
|
-
display: flex;
|
|
156
|
-
align-items: center;
|
|
157
|
-
.file-type {
|
|
142
|
+
.file-document-name {
|
|
158
143
|
display: flex;
|
|
159
144
|
align-items: center;
|
|
160
|
-
|
|
145
|
+
.file-type {
|
|
146
|
+
display: flex;
|
|
147
|
+
align-items: center;
|
|
148
|
+
width: 22px;
|
|
149
|
+
}
|
|
150
|
+
.file-name {
|
|
151
|
+
display: inline-block;
|
|
152
|
+
color: #000;
|
|
153
|
+
font-size: 15px;
|
|
154
|
+
font-weight: 500;
|
|
155
|
+
z-index: 100;
|
|
156
|
+
cursor: pointer;
|
|
157
|
+
}
|
|
161
158
|
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
159
|
+
|
|
160
|
+
.file-tree-item {
|
|
161
|
+
padding: 0;
|
|
162
|
+
margin: 0;
|
|
163
|
+
&::before {
|
|
164
|
+
border-bottom: none;
|
|
165
|
+
}
|
|
169
166
|
}
|
|
170
|
-
}
|
|
171
167
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
168
|
+
// .rowToolbar {
|
|
169
|
+
// // @extend %rowItem;
|
|
170
|
+
// flex: 0 1 auto;
|
|
171
|
+
// display: flex;
|
|
172
|
+
// }
|
|
177
173
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
174
|
+
.toolbarButton {
|
|
175
|
+
// @extend %rowItem;
|
|
176
|
+
}
|
|
181
177
|
|
|
182
|
-
|
|
178
|
+
/**
|
|
183
179
|
* Line for under a node with children
|
|
184
180
|
*/
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
181
|
+
.lineChildren {
|
|
182
|
+
height: 100%;
|
|
183
|
+
display: inline-block;
|
|
184
|
+
}
|
|
189
185
|
|
|
190
|
-
|
|
186
|
+
/* ==========================================================================
|
|
191
187
|
Scaffold
|
|
192
188
|
|
|
193
189
|
Line-overlaid blocks used for showing the tree structure
|
|
194
190
|
========================================================================== */
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
191
|
+
.lineBlock {
|
|
192
|
+
height: 100%;
|
|
193
|
+
position: relative;
|
|
194
|
+
display: inline-block;
|
|
195
|
+
flex: 0 0 auto;
|
|
196
|
+
}
|
|
201
197
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
198
|
+
.absoluteLineBlock {
|
|
199
|
+
// @extend .lineBlock;
|
|
200
|
+
position: absolute;
|
|
201
|
+
top: 0;
|
|
202
|
+
}
|
|
207
203
|
|
|
208
|
-
|
|
204
|
+
/* Highlight line for pointing to dragged row destination
|
|
209
205
|
========================================================================== */
|
|
210
|
-
|
|
211
|
-
|
|
206
|
+
// $highlight-color: #36c2f6;
|
|
207
|
+
// $highlight-line-size: 6px; // Make it an even number for clean rendering
|
|
212
208
|
|
|
213
|
-
|
|
209
|
+
/**
|
|
214
210
|
* +--+--+
|
|
215
211
|
* | | |
|
|
216
212
|
* | | |
|
|
217
213
|
* | | |
|
|
218
214
|
* +--+--+
|
|
219
215
|
*/
|
|
220
|
-
|
|
221
|
-
|
|
216
|
+
.highlightLineVertical {
|
|
217
|
+
z-index: 3;
|
|
222
218
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
219
|
+
&::before {
|
|
220
|
+
position: absolute;
|
|
221
|
+
content: "";
|
|
222
|
+
// background-color: $highlight-color;
|
|
223
|
+
// width: $highlight-line-size;
|
|
224
|
+
// margin-left: $highlight-line-size / -2;
|
|
225
|
+
left: 50%;
|
|
226
|
+
top: 0;
|
|
227
|
+
height: 100%;
|
|
228
|
+
}
|
|
233
229
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
230
|
+
// @keyframes arrow-pulse {
|
|
231
|
+
// $base-multiplier: 10;
|
|
232
|
+
// 0% {
|
|
233
|
+
// transform: translate(0, 0);
|
|
234
|
+
// opacity: 0;
|
|
235
|
+
// }
|
|
236
|
+
// 30% {
|
|
237
|
+
// transform: translate(0, 30% * $base-multiplier);
|
|
238
|
+
// opacity: 1;
|
|
239
|
+
// }
|
|
240
|
+
// 70% {
|
|
241
|
+
// transform: translate(0, 70% * $base-multiplier);
|
|
242
|
+
// opacity: 1;
|
|
243
|
+
// }
|
|
244
|
+
// 100% {
|
|
245
|
+
// transform: translate(0, 100% * $base-multiplier);
|
|
246
|
+
// opacity: 0;
|
|
247
|
+
// }
|
|
248
|
+
// }
|
|
253
249
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
250
|
+
&::after {
|
|
251
|
+
content: "";
|
|
252
|
+
position: absolute;
|
|
253
|
+
height: 0;
|
|
254
|
+
// margin-left: -1 * $highlight-line-size / 2;
|
|
255
|
+
left: 50%;
|
|
256
|
+
top: 0;
|
|
257
|
+
// border-left: $highlight-line-size / 2 solid transparent;
|
|
258
|
+
// border-right: $highlight-line-size / 2 solid transparent;
|
|
259
|
+
// border-top: $highlight-line-size / 2 solid white;
|
|
260
|
+
animation: arrow-pulse 1s infinite linear both;
|
|
261
|
+
}
|
|
265
262
|
}
|
|
266
|
-
}
|
|
267
263
|
|
|
268
|
-
|
|
264
|
+
/**
|
|
269
265
|
* +-----+
|
|
270
266
|
* | |
|
|
271
267
|
* | +--+
|
|
272
268
|
* | | |
|
|
273
269
|
* +--+--+
|
|
274
270
|
*/
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
271
|
+
.highlightTopLeftCorner {
|
|
272
|
+
&::before {
|
|
273
|
+
z-index: 3;
|
|
274
|
+
content: "";
|
|
275
|
+
position: absolute;
|
|
276
|
+
// border-top: solid $highlight-line-size $highlight-color;
|
|
277
|
+
// border-left: solid $highlight-line-size $highlight-color;
|
|
278
|
+
box-sizing: border-box;
|
|
279
|
+
// height: calc(50% + #{$highlight-line-size / 2});
|
|
280
|
+
// top: 50%;
|
|
281
|
+
// margin-top: $highlight-line-size / -2;
|
|
282
|
+
// right: 0;
|
|
283
|
+
// width: calc(50% + #{$highlight-line-size / 2});
|
|
284
|
+
}
|
|
288
285
|
}
|
|
289
|
-
}
|
|
290
286
|
|
|
291
|
-
|
|
287
|
+
/**
|
|
292
288
|
* +--+--+
|
|
293
289
|
* | | |
|
|
294
290
|
* | | |
|
|
295
291
|
* | +->|
|
|
296
292
|
* +-----+
|
|
297
293
|
*/
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
294
|
+
.highlightBottomLeftCorner {
|
|
295
|
+
// $arrow-size: 7px;
|
|
296
|
+
z-index: 3;
|
|
301
297
|
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
298
|
+
&::before {
|
|
299
|
+
content: "";
|
|
300
|
+
position: absolute;
|
|
301
|
+
// border-bottom: solid $highlight-line-size $highlight-color;
|
|
302
|
+
// border-left: solid $highlight-line-size $highlight-color;
|
|
303
|
+
box-sizing: border-box;
|
|
304
|
+
// height: calc(100% + #{$highlight-line-size / 2});
|
|
305
|
+
// top: 0;
|
|
306
|
+
// right: $arrow-size;
|
|
307
|
+
// width: calc(50% - #{$arrow-size - ($highlight-line-size / 2)});
|
|
308
|
+
}
|
|
313
309
|
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
310
|
+
&::after {
|
|
311
|
+
content: "";
|
|
312
|
+
position: absolute;
|
|
313
|
+
height: 0;
|
|
314
|
+
right: 0;
|
|
315
|
+
top: 100%;
|
|
316
|
+
// margin-top: -1 * $arrow-size;
|
|
317
|
+
// border-top: $arrow-size solid transparent;
|
|
318
|
+
// border-bottom: $arrow-size solid transparent;
|
|
319
|
+
// border-left: $arrow-size solid $highlight-color;
|
|
320
|
+
}
|
|
324
321
|
}
|
|
325
322
|
}
|
|
326
323
|
}
|
|
@@ -3,6 +3,7 @@ import ActivityLog from "../ActivityLog/ActivityLog2";
|
|
|
3
3
|
import DocumentList from "../DocumentList";
|
|
4
4
|
import Links from "../Links";
|
|
5
5
|
import { Tabs } from "@voplus/antd";
|
|
6
|
+
import styles from "./index.less";
|
|
6
7
|
import { useDocument } from "@voplus/morpho-document-core";
|
|
7
8
|
import { useObserver } from "mobx-react-lite";
|
|
8
9
|
const DocumentTabs = (props) => {
|
|
@@ -13,7 +14,7 @@ const DocumentTabs = (props) => {
|
|
|
13
14
|
useEffect(() => {
|
|
14
15
|
setActiveKey(details ? "Details" : docTab ? "Document" : "Activities");
|
|
15
16
|
}, [props.id]);
|
|
16
|
-
return useObserver(() => (React.createElement(Tabs, { activeKey: activeKey, onChange: onChange },
|
|
17
|
+
return useObserver(() => (React.createElement(Tabs, { activeKey: activeKey, onChange: onChange, className: styles.element },
|
|
17
18
|
details && (React.createElement(Tabs.TabPane, { tab: "Details", key: "Details" }, details)),
|
|
18
19
|
docTab && (React.createElement(Tabs.TabPane, { tab: "Document", key: "Document" }, activeKey === "Document" && (React.createElement(DocumentList, { id: id, exclude: props.exclude, parentName: document.name, multiple: true })))),
|
|
19
20
|
isActivities && (React.createElement(Tabs.TabPane, { tab: "Activities", key: "Activities" }, activeKey === "Activities" && React.createElement(ActivityLog, { id: id }))),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/DocumentTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE9D,O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AE,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,SAAG,CACpF,CACa,CACf;QACA,YAAY,IAAI,CAChB,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,YAAY,EAAC,GAAG,EAAC,YAAY,IAC7C,SAAS,KAAK,YAAY,IAAI,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,GAAI,CACxC,CACf;QACD,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,OAAO,EAAC,GAAG,EAAC,OAAO,IACnC,SAAS,KAAK,OAAO,IAAI,oBAAC,KAAK,IAAC,EAAE,EAAE,EAAE,GAAI,CAC7B,CACT,CACP,CAAC,CAAC;IAEH,YAAY;IACZ,SAAS,QAAQ,CAAC,SAAiB;QAClC,YAAY,CAAC,SAAS,CAAC,CAAC;IACzB,CAAC;AACF,CAAC,CAAC;AAEF,YAAY,CAAC,YAAY,GAAG;IAC3B,MAAM,EAAE,IAAI;IACZ,YAAY,EAAE,IAAI;CAClB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare class DocumentListContextState {
|
|
3
3
|
type?: string;
|
|
4
|
+
/** active?: string (文件id) 在DocumentSortableTree-FileExplorerTheme需要用到,显示点击当前的item的active效果 */
|
|
5
|
+
active?: string;
|
|
4
6
|
onDriveClick?: (params?: any) => void;
|
|
5
7
|
onDocumentSelected?: (params?: any) => void;
|
|
6
8
|
/** Construct a new DocumentListContextState
|
|
@@ -8,15 +10,10 @@ export declare class DocumentListContextState {
|
|
|
8
10
|
*/
|
|
9
11
|
constructor(options?: {
|
|
10
12
|
type?: string;
|
|
13
|
+
active?: string;
|
|
11
14
|
onDriveClick?: (params?: any) => void;
|
|
12
15
|
onDocumentSelected?: (params?: any) => void;
|
|
13
16
|
});
|
|
14
|
-
/** Retrieve a clean ListOptionsObject */
|
|
15
|
-
get listOptions(): {
|
|
16
|
-
Type: string | undefined;
|
|
17
|
-
DriveClick: ((params?: any) => void) | undefined;
|
|
18
|
-
DocumentSelected: ((params?: any) => void) | undefined;
|
|
19
|
-
};
|
|
20
17
|
}
|
|
21
18
|
/** React context for ListContextState. */
|
|
22
19
|
export declare const DocumentListContext: import("react").Context<DocumentListContextState>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import {
|
|
2
|
+
import { observable } from "mobx";
|
|
3
3
|
import { createContext, useContext } from "react";
|
|
4
4
|
export class DocumentListContextState {
|
|
5
5
|
/** Construct a new DocumentListContextState
|
|
@@ -8,31 +8,15 @@ export class DocumentListContextState {
|
|
|
8
8
|
constructor(options) {
|
|
9
9
|
if (options) {
|
|
10
10
|
this.type = options.type;
|
|
11
|
+
this.active = options.active;
|
|
11
12
|
this.onDriveClick = options.onDriveClick;
|
|
12
13
|
this.onDocumentSelected = options.onDocumentSelected;
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
|
-
/** Retrieve a clean ListOptionsObject */
|
|
16
|
-
get listOptions() {
|
|
17
|
-
return {
|
|
18
|
-
Type: toJS(this.type),
|
|
19
|
-
DriveClick: toJS(this.onDriveClick),
|
|
20
|
-
DocumentSelected: toJS(this.onDocumentSelected)
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
16
|
}
|
|
24
17
|
__decorate([
|
|
25
18
|
observable
|
|
26
19
|
], DocumentListContextState.prototype, "type", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
observable
|
|
29
|
-
], DocumentListContextState.prototype, "onDriveClick", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
observable
|
|
32
|
-
], DocumentListContextState.prototype, "onDocumentSelected", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
computed
|
|
35
|
-
], DocumentListContextState.prototype, "listOptions", null);
|
|
36
20
|
/** React context for ListContextState. */
|
|
37
21
|
export const DocumentListContext = createContext(null);
|
|
38
22
|
/** React hook to retrieve the nearest ListContextState. */
|