@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.
Files changed (58) hide show
  1. package/changelog.md +5 -2
  2. package/es/components/DocumentItem/index.js +11 -3
  3. package/es/components/DocumentItem/index.js.map +1 -1
  4. package/es/components/DocumentItem/index.less +25 -57
  5. package/es/components/DocumentName/index.js +2 -7
  6. package/es/components/DocumentName/index.js.map +1 -1
  7. package/es/components/DocumentSelectDialog/index.less +1 -1
  8. package/es/components/DocumentSortableTree/index.d.ts +1 -0
  9. package/es/components/DocumentSortableTree/index.js +21 -9
  10. package/es/components/DocumentSortableTree/index.js.map +1 -1
  11. package/es/components/DocumentSortableTree/index.less +9 -0
  12. package/es/components/DocumentSortableTree/state.d.ts +5 -0
  13. package/es/components/DocumentSortableTree/state.js +10 -6
  14. package/es/components/DocumentSortableTree/state.js.map +1 -1
  15. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.d.ts +1 -0
  16. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.js +11 -7
  17. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.js.map +1 -1
  18. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.less +244 -247
  19. package/es/components/DocumentTabs/index.js +2 -1
  20. package/es/components/DocumentTabs/index.js.map +1 -1
  21. package/es/components/DocumentTabs/index.less +7 -0
  22. package/es/data/contexts/DocumentListContext/index.d.ts +3 -6
  23. package/es/data/contexts/DocumentListContext/index.js +2 -18
  24. package/es/data/contexts/DocumentListContext/index.js.map +1 -1
  25. package/es/pages/Library/LibraryDefaultView/index.js +5 -2
  26. package/es/pages/Library/LibraryDefaultView/index.js.map +1 -1
  27. package/es/pages/Library/LibraryDefaultView/index.less +11 -2
  28. package/es/pages/Page/PageDefaultView/index.less +1 -1
  29. package/es/pages/Page/PageItems/index.js.map +1 -1
  30. package/es/pages/Page/PageItems/index.less +1 -0
  31. package/es/pages/Signature/Envelope/EnvelopeDefaultView/index.js +2 -2
  32. package/es/pages/Signature/Envelope/EnvelopeDefaultView/index.js.map +1 -1
  33. package/es/pages/Signature/Envelope/EnvelopeRecipientView/index.js +14 -9
  34. package/es/pages/Signature/Envelope/EnvelopeRecipientView/index.js.map +1 -1
  35. package/es/pages/Signature/Letter/LetterContentView/index.js +6 -6
  36. package/es/pages/Signature/Letter/LetterContentView/index.js.map +1 -1
  37. package/es/pages/Signature/Letter/LetterContentView/state.d.ts +6 -3
  38. package/es/pages/Signature/Letter/LetterContentView/state.js +11 -3
  39. package/es/pages/Signature/Letter/LetterContentView/state.js.map +1 -1
  40. package/es/pages/Signature/Letter/LetterItem/index.js +12 -3
  41. package/es/pages/Signature/Letter/LetterItem/index.js.map +1 -1
  42. package/es/pages/Signature/Letter/LetterViewer/index.js +4 -3
  43. package/es/pages/Signature/Letter/LetterViewer/index.js.map +1 -1
  44. package/es/pages/Signature/SignatureDialog/index.js +3 -2
  45. package/es/pages/Signature/SignatureDialog/index.js.map +1 -1
  46. package/es/pages/Signature/SignatureTable/index.js +4 -3
  47. package/es/pages/Signature/SignatureTable/index.js.map +1 -1
  48. package/es/pages/Signature/data/EnvelopeContext.js +1 -1
  49. package/es/pages/Signature/data/EnvelopeContext.js.map +1 -1
  50. package/package.json +6 -8
  51. package/es/controls/QuickDataIcon/UserQuickIcon/index.d.ts +0 -14
  52. package/es/controls/QuickDataIcon/UserQuickIcon/index.js +0 -28
  53. package/es/controls/QuickDataIcon/UserQuickIcon/index.js.map +0 -1
  54. package/es/controls/QuickDataIcon/UserQuickIcon/index.less +0 -21
  55. package/es/controls/QuickDataIcon/index.d.ts +0 -21
  56. package/es/controls/QuickDataIcon/index.js +0 -37
  57. package/es/controls/QuickDataIcon/index.js.map +0 -1
  58. package/es/controls/QuickDataIcon/index.less +0 -12
@@ -1,326 +1,323 @@
1
- .file-explorer-theme {
2
- height: 100%;
3
- :global {
4
- .doc-spin {
5
- z-index: 2;
6
- position: absolute;
7
- top: 50%;
8
- width: 30px;
9
- height: 30px;
10
- display: flex;
11
- align-items: center;
12
- justify-content: center;
13
- transform: translate3d(-50%, -50%, 0);
1
+ :global {
2
+ .explorer-theme-node {
3
+ &:hover {
4
+ background: #f5f5f5;
14
5
  }
15
- .collapseButton,
16
- .expandButton {
17
- appearance: none;
18
- border: none;
19
- background: transparent;
20
- padding: 0;
21
- z-index: 2;
22
- position: absolute;
23
- top: 45%;
24
- width: 30px;
25
- height: 30px;
26
- transform: translate3d(-50%, -50%, 0);
27
- cursor: pointer;
28
- .arrows {
29
- display: inline-block;
30
- font-size: 10px;
31
- transform: translate3d(50%, 0, 0) rotateZ(90deg);
32
- }
33
- &:focus {
34
- outline: none;
6
+ &.active {
7
+ background: #1ea7fd;
8
+ svg,
9
+ .file-name {
10
+ color: white;
35
11
  }
36
12
  }
37
- .expandButton .arrows {
38
- display: inline-block;
39
- font-size: 10px;
40
- transform: translate3d(50%, 0, 0);
41
- }
42
- .rowWrapper {
43
- height: 100%;
44
- box-sizing: border-box;
45
- // cursor: move;
46
- &:hover {
47
- // opacity: 0.7;
48
- 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
- &:active {
52
- // opacity: 1;
53
- background-color: #1ea7fd;
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
- .rowWrapperDragDisabled {
57
- cursor: default;
58
- }
59
- .row {
60
- height: 100%;
61
- white-space: nowrap;
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
- &:hover {
69
- // opacity: 0.7;
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
- &:active {
74
- // opacity: 1;
75
- background-color: #1ea7fd;
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
- .rowLandingPad {
83
- border: none;
84
- box-shadow: none;
85
- outline: none;
73
+ .rowLandingPad {
74
+ border: none;
75
+ box-shadow: none;
76
+ outline: none;
86
77
 
87
- * {
88
- opacity: 0 !important;
89
- }
78
+ * {
79
+ opacity: 0 !important;
80
+ }
90
81
 
91
- &::before {
92
- background-color: lightblue;
93
- border: 2px dotted black;
94
- content: "";
95
- position: absolute;
96
- top: 0;
97
- right: 0;
98
- bottom: 0;
99
- left: 0;
100
- z-index: -1;
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
- .rowCancelPad {
108
- // @extend .rowLandingPad;
98
+ .rowCancelPad {
99
+ // @extend .rowLandingPad;
109
100
 
110
- &::before {
111
- background-color: #e6a8ad;
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
- .rowSearchMatch {
119
- box-shadow: inset 0 -7px 7px -3px #0080ff;
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
- .rowSearchFocus {
126
- box-shadow: inset 0 -7px 7px -3px #fc6421;
127
- }
116
+ .rowSearchFocus {
117
+ box-shadow: inset 0 -7px 7px -3px #fc6421;
118
+ }
128
119
 
129
- // %rowItem {
130
- // display: inline-block;
131
- // vertical-align: middle;
132
- // }
120
+ // %rowItem {
121
+ // display: inline-block;
122
+ // vertical-align: middle;
123
+ // }
133
124
 
134
- .rowContents {
135
- // @extend %rowItem;
136
- position: relative;
137
- height: 100%;
138
- flex: 1 0 auto;
139
- display: flex;
140
- align-items: center;
141
- justify-content: space-between;
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
- .rowLabel {
145
- // @extend %rowItem;
146
- display: flex;
147
- flex: 0 1 auto;
148
- padding-right: 20px;
149
- // .doc-spin{
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
- .file-document-name {
155
- display: flex;
156
- align-items: center;
157
- .file-type {
142
+ .file-document-name {
158
143
  display: flex;
159
144
  align-items: center;
160
- width: 22px;
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
- .file-name {
163
- display: inline-block;
164
- color: #000;
165
- font-size: 15px;
166
- font-weight: 500;
167
- z-index: 100;
168
- cursor: pointer;
159
+
160
+ .file-tree-item {
161
+ padding: 0;
162
+ margin: 0;
163
+ &::before {
164
+ border-bottom: none;
165
+ }
169
166
  }
170
- }
171
167
 
172
- // .rowToolbar {
173
- // // @extend %rowItem;
174
- // flex: 0 1 auto;
175
- // display: flex;
176
- // }
168
+ // .rowToolbar {
169
+ // // @extend %rowItem;
170
+ // flex: 0 1 auto;
171
+ // display: flex;
172
+ // }
177
173
 
178
- .toolbarButton {
179
- // @extend %rowItem;
180
- }
174
+ .toolbarButton {
175
+ // @extend %rowItem;
176
+ }
181
177
 
182
- /**
178
+ /**
183
179
  * Line for under a node with children
184
180
  */
185
- .lineChildren {
186
- height: 100%;
187
- display: inline-block;
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
- .lineBlock {
196
- height: 100%;
197
- position: relative;
198
- display: inline-block;
199
- flex: 0 0 auto;
200
- }
191
+ .lineBlock {
192
+ height: 100%;
193
+ position: relative;
194
+ display: inline-block;
195
+ flex: 0 0 auto;
196
+ }
201
197
 
202
- .absoluteLineBlock {
203
- // @extend .lineBlock;
204
- position: absolute;
205
- top: 0;
206
- }
198
+ .absoluteLineBlock {
199
+ // @extend .lineBlock;
200
+ position: absolute;
201
+ top: 0;
202
+ }
207
203
 
208
- /* Highlight line for pointing to dragged row destination
204
+ /* Highlight line for pointing to dragged row destination
209
205
  ========================================================================== */
210
- // $highlight-color: #36c2f6;
211
- // $highlight-line-size: 6px; // Make it an even number for clean rendering
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
- .highlightLineVertical {
221
- z-index: 3;
216
+ .highlightLineVertical {
217
+ z-index: 3;
222
218
 
223
- &::before {
224
- position: absolute;
225
- content: "";
226
- // background-color: $highlight-color;
227
- // width: $highlight-line-size;
228
- // margin-left: $highlight-line-size / -2;
229
- left: 50%;
230
- top: 0;
231
- height: 100%;
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
- // @keyframes arrow-pulse {
235
- // $base-multiplier: 10;
236
- // 0% {
237
- // transform: translate(0, 0);
238
- // opacity: 0;
239
- // }
240
- // 30% {
241
- // transform: translate(0, 30% * $base-multiplier);
242
- // opacity: 1;
243
- // }
244
- // 70% {
245
- // transform: translate(0, 70% * $base-multiplier);
246
- // opacity: 1;
247
- // }
248
- // 100% {
249
- // transform: translate(0, 100% * $base-multiplier);
250
- // opacity: 0;
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
- &::after {
255
- content: "";
256
- position: absolute;
257
- height: 0;
258
- // margin-left: -1 * $highlight-line-size / 2;
259
- left: 50%;
260
- top: 0;
261
- // border-left: $highlight-line-size / 2 solid transparent;
262
- // border-right: $highlight-line-size / 2 solid transparent;
263
- // border-top: $highlight-line-size / 2 solid white;
264
- animation: arrow-pulse 1s infinite linear both;
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
- .highlightTopLeftCorner {
276
- &::before {
277
- z-index: 3;
278
- content: "";
279
- position: absolute;
280
- // border-top: solid $highlight-line-size $highlight-color;
281
- // border-left: solid $highlight-line-size $highlight-color;
282
- box-sizing: border-box;
283
- // height: calc(50% + #{$highlight-line-size / 2});
284
- // top: 50%;
285
- // margin-top: $highlight-line-size / -2;
286
- // right: 0;
287
- // width: calc(50% + #{$highlight-line-size / 2});
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
- .highlightBottomLeftCorner {
299
- // $arrow-size: 7px;
300
- z-index: 3;
294
+ .highlightBottomLeftCorner {
295
+ // $arrow-size: 7px;
296
+ z-index: 3;
301
297
 
302
- &::before {
303
- content: "";
304
- position: absolute;
305
- // border-bottom: solid $highlight-line-size $highlight-color;
306
- // border-left: solid $highlight-line-size $highlight-color;
307
- box-sizing: border-box;
308
- // height: calc(100% + #{$highlight-line-size / 2});
309
- // top: 0;
310
- // right: $arrow-size;
311
- // width: calc(50% - #{$arrow-size - ($highlight-line-size / 2)});
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
- &::after {
315
- content: "";
316
- position: absolute;
317
- height: 0;
318
- right: 0;
319
- top: 100%;
320
- // margin-top: -1 * $arrow-size;
321
- // border-top: $arrow-size solid transparent;
322
- // border-bottom: $arrow-size solid transparent;
323
- // border-left: $arrow-size solid $highlight-color;
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,OAAO,WAAW,MAAM,6BAA6B,CAAC;AACtD,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,YAAY,GAAG,CAAC,KAMrB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;IACpD,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC;IACjC,2BAA2B;IAC3B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CACzC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY,CACxD,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACd,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAA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AC,SAAS,EAAC,GAAG,EAAC,SAAS,IACvC,OAAO,CACM,CACf;QACA,MAAM,IAAI,CACV,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,UAAU,EAAC,GAAG,EAAC,UAAU,IACzC,SAAS,KAAK,UAAU,IAAI,CAC5B,oBAAC,YAAY,IAAC,EAAE,EAAE,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"}
@@ -0,0 +1,7 @@
1
+ .element {
2
+ :global {
3
+ .ant-tabs-nav {
4
+ padding-left: 20px;
5
+ }
6
+ }
7
+ }
@@ -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 { computed, observable, toJS } from "mobx";
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. */