@voplus/morpho-document 1.0.0-dev304 → 1.0.0-dev307
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/DocumentUIService.d.ts +2 -1
- package/es/DocumentUIService.js +4 -0
- package/es/DocumentUIService.js.map +1 -1
- package/es/components/DocumentCard/index.d.ts +2 -12
- package/es/components/DocumentCard/index.js +1 -1
- package/es/components/DocumentCard/index.js.map +1 -1
- package/es/components/DocumentCardList/index.d.ts +1 -1
- package/es/components/DocumentCardList/index.js +1 -1
- package/es/components/DocumentCardList/index.js.map +1 -1
- package/es/components/DocumentHeader/index.d.ts +1 -1
- package/es/components/DocumentHeader/index.js +2 -2
- package/es/components/DocumentHeader/index.js.map +1 -1
- package/es/components/DocumentHeader/state.d.ts +1 -55
- package/es/components/DocumentHeader/state.js.map +1 -1
- 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/DocumentList/index.js +1 -1
- package/es/components/DocumentList/index.js.map +1 -1
- package/es/components/DocumentListView/index.js +1 -1
- package/es/components/DocumentListView/index.js.map +1 -1
- package/es/components/DocumentName/index.js +2 -7
- package/es/components/DocumentName/index.js.map +1 -1
- package/es/components/DocumentSelectDialog/index.js +1 -1
- package/es/components/DocumentSelectDialog/index.js.map +1 -1
- package/es/components/DocumentSelectDialog/index.less +1 -1
- package/es/components/DocumentSelectDialog/state.d.ts +2 -0
- package/es/components/DocumentSelectDialog/state.js +4 -0
- package/es/components/DocumentSelectDialog/state.js.map +1 -1
- package/es/components/DocumentSortableTree/index.d.ts +1 -0
- package/es/components/DocumentSortableTree/index.js +22 -10
- 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/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/data/metas/ShortcutMeta.d.ts +1 -0
- package/es/data/metas/ShortcutMeta.js +5 -0
- package/es/data/metas/ShortcutMeta.js.map +1 -1
- package/es/pages/Library/LibraryDefaultView/index.js +4 -1
- 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.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 +10 -12
- 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
|
}
|
|
@@ -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. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/data/contexts/DocumentListContext/index.ts"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/data/contexts/DocumentListContext/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAoB,UAAU,EAAQ,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAElD,MAAM,OAAO,wBAAwB;IAOpC;;OAEG;IACH,YAAmB,OAKlB;QACA,IAAI,OAAO,EAAE;YACZ,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;YACzB,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;YAC7B,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;YACzC,IAAI,CAAC,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC;SACrD;IACF,CAAC;CACD;AAtBY;IAAX,UAAU;sDAAsB;AAwBlC,0CAA0C;AAC1C,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAA2B,IAAW,CAAC,CAAC;AAExF,2DAA2D;AAC3D,MAAM,UAAU,sBAAsB;IACrC,OAAO,UAAU,CAAC,mBAAmB,CAAC,CAAC;AACxC,CAAC"}
|
|
@@ -9,6 +9,7 @@ export declare class ShortcutMeta extends DefaultDocumentTypeMeta {
|
|
|
9
9
|
static TypeName: string;
|
|
10
10
|
constructor(store: DocumentMetaStore);
|
|
11
11
|
get name(): string;
|
|
12
|
+
getRoute(document: IDocument): string;
|
|
12
13
|
getIcon(document: IDocument): JSX.Element;
|
|
13
14
|
getPropertiesView(document: IDocument): JSX.Element;
|
|
14
15
|
getQuickView(document: IDocument, props: QuickViewProps): JSX.Element;
|
|
@@ -12,6 +12,11 @@ export class ShortcutMeta extends DefaultDocumentTypeMeta {
|
|
|
12
12
|
get name() {
|
|
13
13
|
return ShortcutMeta.TypeName;
|
|
14
14
|
}
|
|
15
|
+
getRoute(document) {
|
|
16
|
+
const shortcut = document;
|
|
17
|
+
invariant(shortcut.target, "Shortcut must contains a target.");
|
|
18
|
+
return this.store.getRoute(shortcut.target);
|
|
19
|
+
}
|
|
15
20
|
getIcon(document) {
|
|
16
21
|
return React.createElement(FontAwesomeIcon, { icon: faLink });
|
|
17
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShortcutMeta.js","sourceRoot":"","sources":["../../../src/data/metas/ShortcutMeta.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,SAAS,MAAM,WAAW,CAAC;AAElC,qCAAqC;AACrC,MAAM,OAAO,YAAa,SAAQ,uBAAuB;IAGxD,YAA2B,KAAwB;QAClD,KAAK,EAAE,CAAC;QADkB,UAAK,GAAL,KAAK,CAAmB;IAEnD,CAAC;IAED,IAAW,IAAI;QACd,OAAO,YAAY,CAAC,QAAQ,CAAC;IAC9B,CAAC;IAEM,OAAO,CAAC,QAAmB;QACjC,OAAO,oBAAC,eAAe,IAAC,IAAI,EAAE,MAAM,GAAI,CAAC;IAC1C,CAAC;IAEM,iBAAiB,CAAC,QAAmB;QAC3C,MAAM,QAAQ,GAAG,QAAqB,CAAC;QACvC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,kCAAkC,CAAC,CAAC;QAE/D,OAAO,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,QAAQ,CAAC,MAAa,CAAC,CAAC;IAC7D,CAAC;IAEM,YAAY,CAAC,QAAmB,EAAE,KAAqB;QAC7D,MAAM,QAAQ,GAAG,QAAqB,CAAC;QACvC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,kCAAkC,CAAC,CAAC;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAa,EAAE,KAAK,CAAC,CAAC;IAC/D,CAAC;;
|
|
1
|
+
{"version":3,"file":"ShortcutMeta.js","sourceRoot":"","sources":["../../../src/data/metas/ShortcutMeta.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,SAAS,MAAM,WAAW,CAAC;AAElC,qCAAqC;AACrC,MAAM,OAAO,YAAa,SAAQ,uBAAuB;IAGxD,YAA2B,KAAwB;QAClD,KAAK,EAAE,CAAC;QADkB,UAAK,GAAL,KAAK,CAAmB;IAEnD,CAAC;IAED,IAAW,IAAI;QACd,OAAO,YAAY,CAAC,QAAQ,CAAC;IAC9B,CAAC;IAEM,QAAQ,CAAC,QAAmB;QAClC,MAAM,QAAQ,GAAG,QAAqB,CAAC;QACvC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,kCAAkC,CAAC,CAAC;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAa,CAAC,CAAC;IACpD,CAAC;IAEM,OAAO,CAAC,QAAmB;QACjC,OAAO,oBAAC,eAAe,IAAC,IAAI,EAAE,MAAM,GAAI,CAAC;IAC1C,CAAC;IAEM,iBAAiB,CAAC,QAAmB;QAC3C,MAAM,QAAQ,GAAG,QAAqB,CAAC;QACvC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,kCAAkC,CAAC,CAAC;QAE/D,OAAO,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,QAAQ,CAAC,MAAa,CAAC,CAAC;IAC7D,CAAC;IAEM,YAAY,CAAC,QAAmB,EAAE,KAAqB;QAC7D,MAAM,QAAQ,GAAG,QAAqB,CAAC;QACvC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,kCAAkC,CAAC,CAAC;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAa,EAAE,KAAK,CAAC,CAAC;IAC/D,CAAC;;AA/Ba,qBAAQ,GAAG,UAAU,CAAC"}
|