@cmstops/pro-compo 0.1.8 → 0.1.9

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 (114) hide show
  1. package/dist/index.css +857 -0
  2. package/dist/index.min.css +1 -1
  3. package/es/appCenter/script/routeMap.d.ts +1 -1
  4. package/es/config.d.ts +1 -1
  5. package/es/config.js +2 -2
  6. package/es/contentModal/component.js +5 -2
  7. package/es/contentModal/components/CompoList/index.js +12 -1
  8. package/es/contentModal/components/storeBox/index.js +1 -1
  9. package/es/index.css +857 -0
  10. package/es/index.d.ts +2 -0
  11. package/es/index.js +2 -0
  12. package/es/index.less +2 -0
  13. package/es/previousVersion/component.d.ts +0 -0
  14. package/es/previousVersion/component.js +378 -0
  15. package/es/previousVersion/index.d.ts +2 -0
  16. package/es/previousVersion/index.js +7 -0
  17. package/es/previousVersion/script/api.d.ts +15 -0
  18. package/es/previousVersion/script/api.js +39 -0
  19. package/es/previousVersion/script/tool.d.ts +6 -0
  20. package/es/previousVersion/script/tool.js +22 -0
  21. package/es/previousVersion/style/css.js +1 -0
  22. package/es/previousVersion/style/index.css +166 -0
  23. package/es/previousVersion/style/index.d.ts +1 -0
  24. package/es/previousVersion/style/index.js +1 -0
  25. package/es/previousVersion/style/index.less +208 -0
  26. package/es/resourceModal/assets/images/unknown.js +2 -0
  27. package/es/resourceModal/assets/selection/null.js +2 -0
  28. package/es/resourceModal/component.js +65 -4
  29. package/es/resourceModal/components/MediaPreviewer/index.d.ts +0 -0
  30. package/es/resourceModal/components/MediaPreviewer/index.js +69 -0
  31. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.d.ts +0 -0
  32. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +111 -0
  33. package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.d.ts +0 -0
  34. package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +85 -0
  35. package/es/resourceModal/components/MediaSelection/MainContent/index.d.ts +0 -0
  36. package/es/resourceModal/components/MediaSelection/MainContent/index.js +171 -0
  37. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.d.ts +0 -0
  38. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +211 -0
  39. package/es/resourceModal/components/MediaSelection/index.d.ts +0 -0
  40. package/es/resourceModal/components/MediaSelection/index.js +272 -0
  41. package/es/resourceModal/script/api.d.ts +8 -0
  42. package/es/resourceModal/script/api.js +30 -0
  43. package/es/resourceModal/script/filter.d.ts +8 -0
  44. package/es/resourceModal/script/filter.js +22 -0
  45. package/es/resourceModal/script/mediaSelection.d.ts +10 -0
  46. package/es/resourceModal/style/DocAiMediaSelected.less +56 -0
  47. package/es/resourceModal/style/FileTypeThumb.less +183 -0
  48. package/es/resourceModal/style/MainContent.less +200 -0
  49. package/es/resourceModal/style/MediaPreviewer.less +71 -0
  50. package/es/resourceModal/style/MediaSelection.less +59 -0
  51. package/es/resourceModal/style/ToolbarSearch.less +40 -0
  52. package/es/resourceModal/style/index.css +514 -3
  53. package/es/resourceModal/style/index.less +16 -3
  54. package/es/selectGategory/component.d.ts +0 -0
  55. package/es/selectGategory/component.js +95 -0
  56. package/es/selectGategory/components/ColumnSelection/index.d.ts +0 -0
  57. package/es/selectGategory/components/ColumnSelection/index.js +273 -0
  58. package/es/selectGategory/index.d.ts +2 -0
  59. package/es/selectGategory/index.js +7 -0
  60. package/es/selectGategory/script/api.d.ts +6 -0
  61. package/es/selectGategory/script/api.js +15 -0
  62. package/es/selectGategory/style/ColumnSelection.less +190 -0
  63. package/es/selectGategory/style/css.js +1 -0
  64. package/es/selectGategory/style/index.css +180 -0
  65. package/es/selectGategory/style/index.d.ts +1 -0
  66. package/es/selectGategory/style/index.js +1 -0
  67. package/es/selectGategory/style/index.less +40 -0
  68. package/es/utils/doc.d.ts +69 -0
  69. package/es/utils/typeMap.js +2 -1
  70. package/lib/config.js +2 -2
  71. package/lib/contentModal/component.js +5 -2
  72. package/lib/contentModal/components/CompoList/index.js +11 -0
  73. package/lib/contentModal/components/storeBox/index.js +1 -1
  74. package/lib/index.css +857 -0
  75. package/lib/index.js +4 -0
  76. package/lib/index.less +2 -0
  77. package/lib/previousVersion/component.js +379 -0
  78. package/lib/previousVersion/index.js +8 -0
  79. package/lib/previousVersion/script/api.js +43 -0
  80. package/lib/previousVersion/script/tool.js +24 -0
  81. package/lib/previousVersion/style/css.js +2 -0
  82. package/lib/previousVersion/style/index.css +166 -0
  83. package/lib/previousVersion/style/index.js +2 -0
  84. package/lib/previousVersion/style/index.less +208 -0
  85. package/lib/resourceModal/assets/images/unknown.js +3 -0
  86. package/lib/resourceModal/assets/selection/null.js +3 -0
  87. package/lib/resourceModal/component.js +64 -3
  88. package/lib/resourceModal/components/MediaPreviewer/index.js +70 -0
  89. package/lib/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +112 -0
  90. package/lib/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +86 -0
  91. package/lib/resourceModal/components/MediaSelection/MainContent/index.js +172 -0
  92. package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +212 -0
  93. package/lib/resourceModal/components/MediaSelection/index.js +273 -0
  94. package/lib/resourceModal/script/api.js +35 -0
  95. package/lib/resourceModal/script/filter.js +25 -0
  96. package/lib/resourceModal/style/DocAiMediaSelected.less +56 -0
  97. package/lib/resourceModal/style/FileTypeThumb.less +183 -0
  98. package/lib/resourceModal/style/MainContent.less +200 -0
  99. package/lib/resourceModal/style/MediaPreviewer.less +71 -0
  100. package/lib/resourceModal/style/MediaSelection.less +59 -0
  101. package/lib/resourceModal/style/ToolbarSearch.less +40 -0
  102. package/lib/resourceModal/style/index.css +514 -3
  103. package/lib/resourceModal/style/index.less +16 -3
  104. package/lib/selectGategory/component.js +96 -0
  105. package/lib/selectGategory/components/ColumnSelection/index.js +274 -0
  106. package/lib/selectGategory/index.js +8 -0
  107. package/lib/selectGategory/script/api.js +18 -0
  108. package/lib/selectGategory/style/ColumnSelection.less +190 -0
  109. package/lib/selectGategory/style/css.js +2 -0
  110. package/lib/selectGategory/style/index.css +180 -0
  111. package/lib/selectGategory/style/index.js +2 -0
  112. package/lib/selectGategory/style/index.less +40 -0
  113. package/lib/utils/typeMap.js +2 -1
  114. package/package.json +2 -2
@@ -1,4 +1,515 @@
1
- .tooltip-button {
2
- height: auto;
3
- padding: 20px;
1
+ .media-selection {
2
+ width: 100%;
3
+ height: 100%;
4
+ -webkit-user-select: none;
5
+ -moz-user-select: none;
6
+ }
7
+ .media-selection .media-selection-section {
8
+ width: 100%;
9
+ height: 100%;
10
+ }
11
+ .media-selection .media-selection-section .components-title {
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: space-between;
15
+ height: 40px;
16
+ }
17
+ .media-selection .media-selection-section .components-title .media-tabs {
18
+ width: 100%;
19
+ min-width: 350px;
20
+ margin-top: 15px;
21
+ }
22
+ .media-selection .media-selection-section .components-title .media-tabs .arco-tabs-nav-tab {
23
+ padding-left: 5px;
24
+ }
25
+ .media-selection .media-selection-section .resources .simple-resources {
26
+ height: 100%;
27
+ }
28
+ .media-selection .media-selection-section .resources .simple-resources .directory-breadcrumb {
29
+ display: flex;
30
+ align-items: center;
31
+ justify-content: space-between;
32
+ }
33
+ .media-selection .media-selection-section .resources .simple-resources .directory-breadcrumb .tool-search-box {
34
+ width: 100%;
35
+ padding: 10px 20px 20px;
36
+ }
37
+ .media-selection .media-selection-section .resources .simple-resources .directory-breadcrumb .tool-search-box .back {
38
+ margin-right: 10px;
39
+ }
40
+ .media-selection .media-selection-section .resources .simple-resources .breadcrumb {
41
+ margin: 10px 20px;
42
+ font-size: 14px;
43
+ }
44
+ .media-selection .media-selection-section .resources .simple-resources .breadcrumb .breadcrumbItem {
45
+ cursor: pointer;
46
+ }
47
+ .doc-ai-media-selected {
48
+ height: 100%;
49
+ }
50
+ .doc-ai-media-selected .arco-scrollbar {
51
+ height: 100%;
52
+ }
53
+ .doc-ai-media-selected .arco-scrollbar .doc-ai-media-selected-scrollbar {
54
+ height: 100%;
55
+ overflow: auto;
56
+ }
57
+ .doc-ai-media-selected .arco-scrollbar .doc-ai-media-selected-scrollbar .thumb_type {
58
+ margin: 20px 0 10px 20px;
59
+ }
60
+ .doc-ai-media-selected .arco-scrollbar .doc-ai-media-selected-scrollbar .thumb-list {
61
+ display: flex;
62
+ flex-wrap: wrap;
63
+ align-items: center;
64
+ margin-left: 18px;
65
+ }
66
+ .doc-ai-media-selected .arco-scrollbar .doc-ai-media-selected-scrollbar .thumb-list .thumb-wrap {
67
+ width: 20%;
68
+ height: 100px;
69
+ margin-bottom: 20px;
70
+ }
71
+ .doc-ai-media-selected .arco-scrollbar .doc-ai-media-selected-scrollbar .thumb-list .thumb-wrap .thumb-item {
72
+ height: 100%;
73
+ margin-right: 20px;
74
+ }
75
+ .doc-ai-media-selected .arco-scrollbar .doc-ai-media-selected-scrollbar .thumb-list .thumb-wrap .thumb-item .pic {
76
+ position: relative;
77
+ width: 100%;
78
+ height: 100%;
79
+ overflow: hidden;
80
+ border: solid 3px transparent;
81
+ border-radius: 4px;
82
+ }
83
+ .doc-ai-media-selected .arco-scrollbar .doc-ai-media-selected-scrollbar .thumb-list .thumb-wrap .thumb-item .pic.active {
84
+ border: solid 3px #4886ff;
85
+ border-radius: 4px;
86
+ }
87
+ .doc-ai-media-selected .arco-scrollbar .doc-ai-media-selected-scrollbar .thumb-list .thumb-wrap .thumb-item .pic img {
88
+ display: block;
89
+ width: 100%;
90
+ height: 100%;
91
+ object-fit: cover;
92
+ }
93
+ .toolbar-search-container {
94
+ width: 100%;
95
+ }
96
+ .toolbar-search-container .top-container {
97
+ display: flex;
98
+ }
99
+ .toolbar-search-container .top-container .filter-content {
100
+ display: flex;
101
+ align-items: center;
102
+ justify-content: space-between;
103
+ width: 100%;
104
+ }
105
+ .toolbar-search-container .top-container .filter-content .filter-item {
106
+ width: auto;
107
+ margin-right: 10px;
108
+ }
109
+ .keywordsSelection {
110
+ display: flex;
111
+ justify-content: space-between;
112
+ width: 100%;
113
+ padding-top: 10px;
114
+ }
115
+ .keywordsSelection .selection-item {
116
+ padding: 8px 20px;
117
+ }
118
+ .keywordsSelection .selection-item:hover {
119
+ cursor: pointer;
120
+ }
121
+ .keywordsSelection .selection-item.active {
122
+ color: #3a65ff;
123
+ background: #f2f3f8;
124
+ border-radius: 15px;
125
+ }
126
+ .simple-resources .arco-scrollbar {
127
+ height: 100%;
128
+ }
129
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll {
130
+ height: 100%;
131
+ overflow: auto;
132
+ }
133
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .folder-list {
134
+ display: flex;
135
+ flex-wrap: wrap;
136
+ padding-left: 20px;
137
+ }
138
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .folder-list .folder-item {
139
+ width: 20%;
140
+ cursor: pointer;
141
+ }
142
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .folder-list .folder-item .wrap {
143
+ margin: 0 20px 10px 0;
144
+ background: #fff;
145
+ border: 1px solid #ebeef5;
146
+ border-radius: 4px;
147
+ }
148
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .folder-list .folder-item .wrap:hover,
149
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .folder-list .folder-item .wrap.active {
150
+ background: #ecf2ff;
151
+ }
152
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .folder-list .folder-item .wrap:hover .thumb,
153
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .folder-list .folder-item .wrap.active .thumb {
154
+ border-color: #4886ff;
155
+ transition: ease-out 0.3s;
156
+ }
157
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .folder-list .folder-item .wrap:hover h4,
158
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .folder-list .folder-item .wrap.active h4 {
159
+ color: #1a67d2;
160
+ }
161
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .folder-list .folder-item .wrap .thumb {
162
+ height: 46px;
163
+ overflow: hidden;
164
+ font-size: 0;
165
+ background: url('../assets/selection/folder.png') no-repeat 13px center;
166
+ background-size: 17px auto;
167
+ border: solid 2px transparent;
168
+ border-radius: 4px;
169
+ }
170
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .folder-list .folder-item .wrap h4 {
171
+ margin: 0;
172
+ padding-left: 43px;
173
+ overflow: hidden;
174
+ color: #000;
175
+ font-weight: normal;
176
+ font-size: 14px;
177
+ line-height: 42px;
178
+ white-space: nowrap;
179
+ text-overflow: ellipsis;
180
+ word-wrap: normal;
181
+ opacity: 0.85;
182
+ }
183
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .file-list {
184
+ display: flex;
185
+ flex-wrap: wrap;
186
+ padding-left: 20px;
187
+ }
188
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .file-list .item {
189
+ position: relative;
190
+ width: 20%;
191
+ overflow: hidden;
192
+ cursor: pointer;
193
+ }
194
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .file-list .item .move-action {
195
+ opacity: 0.5;
196
+ }
197
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .file-list .item .shadow-wrap {
198
+ position: relative;
199
+ margin: 0 20px 18px 0;
200
+ overflow: hidden;
201
+ background: #fff;
202
+ border: 1px solid #ebeef5;
203
+ border-radius: 4px;
204
+ }
205
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .file-list .item .shadow-wrap:hover {
206
+ box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.1);
207
+ }
208
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .file-list .item .shadow-wrap.active {
209
+ border: 2px solid #4886ff;
210
+ }
211
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .file-list .item .shadow-wrap.active h4 {
212
+ color: #1a67d2;
213
+ }
214
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .file-list .item .shadow-wrap .transcoding-in-progress {
215
+ position: absolute;
216
+ top: 0;
217
+ display: flex;
218
+ align-items: center;
219
+ justify-content: center;
220
+ width: 100%;
221
+ height: 100%;
222
+ color: floralwhite;
223
+ background: rgba(0, 0, 0, 0.3);
224
+ }
225
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .file-list .item .shadow-wrap .thumb-wrap {
226
+ position: relative;
227
+ width: 100%;
228
+ background: url('../assets/selection/picBg.png');
229
+ }
230
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .file-list .item .shadow-wrap h4,
231
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .file-list .item .shadow-wrap p {
232
+ margin-top: 4px;
233
+ margin-bottom: 2px;
234
+ padding: 0 10px;
235
+ overflow: hidden;
236
+ color: rgba(0, 0, 0, 0.85);
237
+ font-size: 14px;
238
+ white-space: nowrap;
239
+ text-overflow: ellipsis;
240
+ word-wrap: normal;
241
+ }
242
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .file-list .item .shadow-wrap h4 i,
243
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .file-list .item .shadow-wrap p i,
244
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .file-list .item .shadow-wrap h4 svg,
245
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .file-list .item .shadow-wrap p svg {
246
+ margin-right: 4px;
247
+ color: #e75258;
248
+ font-size: 16px;
249
+ vertical-align: middle;
250
+ }
251
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .file-list .item .shadow-wrap h4 svg,
252
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .file-list .item .shadow-wrap p svg {
253
+ margin-right: 4px;
254
+ font-size: 16px;
255
+ vertical-align: middle;
256
+ }
257
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .file-list .item .shadow-wrap h4 span,
258
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .file-list .item .shadow-wrap p span {
259
+ vertical-align: middle;
260
+ }
261
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .file-list .item .shadow-wrap p {
262
+ margin-bottom: 4px;
263
+ font-weight: normal;
264
+ font-size: 12px;
265
+ line-height: 1em;
266
+ opacity: 0.65;
267
+ }
268
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .file-list::after {
269
+ height: 50px;
270
+ }
271
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .load_more_title {
272
+ display: flex;
273
+ align-items: center;
274
+ justify-content: center;
275
+ width: 100%;
276
+ height: 40px;
277
+ }
278
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .load_more_title .loadmore_tips,
279
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .load_more_title .nomore_tips {
280
+ color: #949494;
281
+ }
282
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .null-file {
283
+ position: absolute;
284
+ top: 50%;
285
+ left: 50%;
286
+ transform: translate(-50%, -70%);
287
+ }
288
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .null-file .null-pic {
289
+ display: block;
290
+ width: 30%;
291
+ margin: 20px auto;
292
+ }
293
+ .simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .null-file p {
294
+ color: #a2a3a7;
295
+ font-size: 14px;
296
+ text-align: center;
297
+ }
298
+ .file-type-thumb {
299
+ position: relative;
300
+ width: 100%;
301
+ }
302
+ .file-type-thumb:hover .mask {
303
+ display: flex;
304
+ }
305
+ .file-type-thumb .mask {
306
+ position: absolute;
307
+ top: 0;
308
+ display: none;
309
+ align-items: center;
310
+ justify-content: center;
311
+ width: 100%;
312
+ height: 100%;
313
+ color: #eaeaea;
314
+ font-size: 18px;
315
+ background: rgba(0, 0, 0, 0.3);
316
+ }
317
+ .file-type-thumb .mask i {
318
+ display: inline-block;
319
+ cursor: pointer;
320
+ }
321
+ .file-type-thumb .mask i:active {
322
+ opacity: 0.4;
323
+ }
324
+ .file-type-thumb .mask .half {
325
+ display: flex;
326
+ align-items: center;
327
+ justify-content: center;
328
+ width: 48%;
329
+ height: 100%;
330
+ }
331
+ .file-type-thumb .mask .half:hover {
332
+ cursor: pointer;
333
+ opacity: 0.7;
334
+ }
335
+ .file-type-thumb .mask .el-divider {
336
+ margin: 0;
337
+ opacity: 0.4;
338
+ }
339
+ .file-type-thumb .transparent {
340
+ position: absolute;
341
+ top: 0;
342
+ width: 100%;
343
+ height: 100%;
344
+ }
345
+ .file-type-thumb .transparent:hover {
346
+ cursor: pointer;
347
+ }
348
+ .file-type-thumb .pic {
349
+ width: 100%;
350
+ padding-top: 56.25%;
351
+ background-color: #fff;
352
+ background-image: url('../assets/images/unknown.png');
353
+ background-repeat: no-repeat;
354
+ background-repeat: repeat-x;
355
+ background-position: top;
356
+ background-size: cover;
357
+ }
358
+ .file-type-thumb .pic:hover {
359
+ transform: scale(1.02);
360
+ transition: ease-out 0.4s;
361
+ }
362
+ .file-type-thumb .audio {
363
+ background-image: url('../assets/images/music.png') !important;
364
+ }
365
+ .file-type-thumb .audio.doc {
366
+ background-image: url('../assets/images/draf.png') !important;
367
+ }
368
+ .file-type-thumb .project {
369
+ background-image: url('../assets/images/project1.png') !important;
370
+ }
371
+ .file-type-thumb .doc {
372
+ background-image: url('../assets/images/draf.png');
373
+ }
374
+ .file-type-thumb .link {
375
+ background-image: url('../assets/images/link.png');
376
+ }
377
+ .file-type-thumb .sp_topic {
378
+ background-image: url('../assets/images/link.png');
379
+ }
380
+ .file-type-thumb .live {
381
+ background-image: url('../assets/images/live.png');
382
+ }
383
+ .file-type-thumb .pdf {
384
+ background-image: url('../assets/images/pdf.png') !important;
385
+ }
386
+ .file-type-thumb .officeexcel {
387
+ background-image: url('../assets/images/excel.png') !important;
388
+ }
389
+ .file-type-thumb .officeppt {
390
+ background-image: url('../assets/images/ppt.png') !important;
391
+ }
392
+ .file-type-thumb .zip {
393
+ background-image: url('../assets/images/zip.png') !important;
394
+ }
395
+ .file-type-thumb .rar {
396
+ background-image: url('../assets/images/rar.png') !important;
397
+ }
398
+ .file-type-thumb .txt {
399
+ background-image: url('../assets/images/txt.png') !important;
400
+ }
401
+ .file-type-thumb .exe {
402
+ background-image: url('../assets/images/exe.png') !important;
403
+ }
404
+ .file-type-thumb .html {
405
+ background-image: url('../assets/images/html.png') !important;
406
+ }
407
+ .file-type-thumb .officedoc {
408
+ background-image: url('../assets/images/word.png') !important;
409
+ }
410
+ .file-type-thumb .wechat {
411
+ background-image: url('../assets/images/wechat.png') !important;
412
+ }
413
+ .file-type-thumb .h5 {
414
+ background-image: url('../assets/images/h5.png') !important;
415
+ }
416
+ .file-type-thumb .ad {
417
+ background-image: url('../assets/images/ad.png') !important;
418
+ }
419
+ .file-type-thumb .booklink {
420
+ background-image: url('../assets/images/booklink.png') !important;
421
+ }
422
+ .file-type-thumb .activity {
423
+ background-image: url('../assets/images/activity.png') !important;
424
+ }
425
+ .file-type-thumb .svideo {
426
+ background-image: url('../assets/images/svideo.png') !important;
427
+ }
428
+ .file-type-thumb .cloud_lottery {
429
+ background-image: url('../assets/images/cloud_lottery.png') !important;
430
+ }
431
+ .file-type-thumb .cloud_form {
432
+ background-image: url('../assets/images/cloud_form.png') !important;
433
+ }
434
+ .file-type-thumb .illegal-media-warning {
435
+ position: absolute;
436
+ top: 0;
437
+ width: 100%;
438
+ height: 100%;
439
+ background-color: rgba(0, 0, 0, 0.65);
440
+ background-image: url('../assets/images/unknown.png');
441
+ background-repeat: no-repeat;
442
+ background-position: center;
443
+ background-size: 30%;
444
+ }
445
+ .media-previewer {
446
+ position: fixed;
447
+ top: 0;
448
+ left: 0;
449
+ z-index: 100;
450
+ width: 100%;
451
+ height: 100%;
452
+ background-color: rgba(0, 0, 0, 0.3);
453
+ }
454
+ .media-previewer .viewer-close {
455
+ position: absolute;
456
+ top: 36px;
457
+ right: 36px;
458
+ z-index: 99999;
459
+ display: flex;
460
+ align-items: center;
461
+ justify-content: center;
462
+ width: 32px;
463
+ height: 32px;
464
+ color: #fff;
465
+ font-size: 14px;
466
+ line-height: 32px;
467
+ text-align: center;
468
+ background: rgba(0, 0, 0, 0.5);
469
+ border-radius: 50%;
470
+ cursor: pointer;
471
+ }
472
+ .media-previewer .viewer-canvas {
473
+ display: -webkit-box;
474
+ display: flex;
475
+ align-items: center;
476
+ justify-content: center;
477
+ width: 100%;
478
+ height: 100%;
479
+ -webkit-box-pack: center;
480
+ -webkit-box-align: center;
481
+ }
482
+ .media-previewer .viewer-canvas .video {
483
+ z-index: 101;
484
+ width: 1000px;
485
+ max-height: 90vh;
486
+ object-fit: contain;
487
+ overflow: clip;
488
+ overflow-clip-margin: content-box;
489
+ }
490
+ .media-previewer .viewer-canvas .audio {
491
+ width: 400px;
492
+ height: 54px;
493
+ }
494
+ .media-previewer .viewer-canvas .other {
495
+ display: flex;
496
+ flex-direction: column;
497
+ align-items: center;
498
+ width: 240px;
499
+ height: 200px;
500
+ }
501
+ .media-previewer .viewer-canvas .other img {
502
+ width: 100%;
503
+ height: 100%;
504
+ }
505
+ .media-previewer .viewer-canvas .other .text {
506
+ color: #fff;
507
+ font-size: 18px;
508
+ }
509
+ .select-resources-modal-wrapper .arco-modal-header {
510
+ border-bottom: none;
511
+ }
512
+ .select-resources-modal-body {
513
+ height: 70vh;
514
+ padding: 0;
4
515
  }
@@ -1,4 +1,17 @@
1
- .tooltip-button {
2
- height: auto;
3
- padding: 20px;
1
+ @import './MediaSelection.less';
2
+ @import './DocAiMediaSelected.less';
3
+ @import './ToolbarSearch.less';
4
+ @import './MainContent.less';
5
+ @import './FileTypeThumb.less';
6
+ @import './MediaPreviewer.less';
7
+
8
+ .select-resources-modal-wrapper {
9
+ .arco-modal-header {
10
+ border-bottom: none;
11
+ }
12
+ }
13
+
14
+ .select-resources-modal-body {
15
+ height: 70vh;
16
+ padding: 0;
4
17
  }
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ var vue = require("vue");
3
+ var webVue = require("@arco-design/web-vue");
4
+ var config = require("../config.js");
5
+ var index = require("./components/ColumnSelection/index.js");
6
+ const _hoisted_1 = { class: "form-view" };
7
+ const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("div", { class: "item-title big" }, "\u540C\u65F6\u53D1\u5E03\u81F3", -1);
8
+ const _sfc_main = vue.defineComponent({
9
+ ...{ name: "selectGategory" },
10
+ __name: "component",
11
+ props: {
12
+ repository_id: {},
13
+ visible: { type: Boolean },
14
+ base_api: {},
15
+ columnData: {},
16
+ columnWithData: {}
17
+ },
18
+ emits: ["update:visible", "submit"],
19
+ setup(__props, { emit }) {
20
+ const props = __props;
21
+ const BASE_API = props.base_api || config.DEFAULT_BASE_API;
22
+ const selectColumnData = vue.ref([]);
23
+ const selectColumnWithData = vue.ref([]);
24
+ const visible = vue.computed({
25
+ get() {
26
+ return props.visible;
27
+ },
28
+ set(value) {
29
+ setVisible(value);
30
+ }
31
+ });
32
+ const setVisible = (bool) => {
33
+ emit("update:visible", bool);
34
+ };
35
+ const handleOk = () => {
36
+ if (!selectColumnData.value.length) {
37
+ webVue.Message.warning("\u63D0\u4EA4\u524D\u8BF7\u9009\u62E9\u53D1\u5E03\u81F3\u4F4D\u7F6E");
38
+ return;
39
+ }
40
+ const data = [selectColumnData.value, selectColumnWithData.value];
41
+ emit("submit", JSON.parse(JSON.stringify(data)));
42
+ handleCancel();
43
+ };
44
+ const handleCancel = () => {
45
+ selectColumnData.value = [];
46
+ selectColumnWithData.value = [];
47
+ setVisible(false);
48
+ };
49
+ vue.onMounted(() => {
50
+ if (props.columnData) {
51
+ selectColumnData.value = props.columnData;
52
+ }
53
+ if (props.columnWithData) {
54
+ selectColumnWithData.value = props.columnWithData;
55
+ }
56
+ });
57
+ return (_ctx, _cache) => {
58
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Modal), {
59
+ visible: visible.value,
60
+ width: "500px",
61
+ "mask-closable": false,
62
+ "title-align": "start",
63
+ "unmount-on-close": "",
64
+ "modal-class": "add-category-modal-wrapper",
65
+ onOk: handleOk,
66
+ onCancel: handleCancel
67
+ }, {
68
+ title: vue.withCtx(() => [
69
+ vue.createTextVNode("\u53D1\u5E03\u81F3")
70
+ ]),
71
+ default: vue.withCtx(() => [
72
+ vue.createElementVNode("div", _hoisted_1, [
73
+ vue.createVNode(index, {
74
+ selectColumnData: selectColumnData.value,
75
+ "onUpdate:selectColumnData": _cache[0] || (_cache[0] = ($event) => selectColumnData.value = $event),
76
+ "add-text": "\u8BBE\u7F6E\u53D1\u5E03\u81F3\u680F\u76EE",
77
+ repository_id: _ctx.repository_id,
78
+ base_api: vue.unref(BASE_API)
79
+ }, null, 8, ["selectColumnData", "repository_id", "base_api"]),
80
+ _hoisted_2,
81
+ vue.createVNode(index, {
82
+ selectColumnWithData: selectColumnWithData.value,
83
+ "onUpdate:selectColumnWithData": _cache[1] || (_cache[1] = ($event) => selectColumnWithData.value = $event),
84
+ "add-text": "\u8BBE\u7F6E\u540C\u6B65\u53D1\u5E03\u81F3\u680F\u76EE",
85
+ multiple: true,
86
+ repository_id: _ctx.repository_id,
87
+ base_api: vue.unref(BASE_API)
88
+ }, null, 8, ["selectColumnWithData", "repository_id", "base_api"])
89
+ ])
90
+ ]),
91
+ _: 1
92
+ }, 8, ["visible"]);
93
+ };
94
+ }
95
+ });
96
+ module.exports = _sfc_main;