@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
@@ -0,0 +1,200 @@
1
+ .simple-resources {
2
+ .arco-scrollbar {
3
+ height: 100%;
4
+
5
+ .dialog-media-selection-scroll {
6
+ height: 100%;
7
+ overflow: auto;
8
+
9
+ .file-wrap {
10
+ .folder-list {
11
+ display: flex;
12
+ flex-wrap: wrap;
13
+ padding-left: 20px;
14
+
15
+ .folder-item {
16
+ width: 20%;
17
+ cursor: pointer;
18
+
19
+ .wrap {
20
+ margin: 0 20px 10px 0;
21
+ background: #fff;
22
+ border: 1px solid #ebeef5;
23
+ border-radius: 4px;
24
+
25
+ &:hover,
26
+ &.active {
27
+ background: #ecf2ff;
28
+
29
+ .thumb {
30
+ border-color: #4886ff;
31
+ transition: ease-out 0.3s;
32
+ }
33
+
34
+ h4 {
35
+ color: #1a67d2;
36
+ }
37
+ }
38
+
39
+ .thumb {
40
+ height: 46px;
41
+ overflow: hidden;
42
+ font-size: 0;
43
+ background: url('../assets/selection/folder.png') no-repeat 13px
44
+ center;
45
+ background-size: 17px auto;
46
+ border: solid 2px transparent;
47
+ border-radius: 4px;
48
+ }
49
+
50
+ h4 {
51
+ margin: 0;
52
+ padding-left: 43px;
53
+ overflow: hidden;
54
+ color: #000;
55
+ font-weight: normal;
56
+ font-size: 14px;
57
+ line-height: 42px;
58
+ white-space: nowrap;
59
+ text-overflow: ellipsis;
60
+ word-wrap: normal;
61
+ opacity: 0.85;
62
+ }
63
+ }
64
+ }
65
+ }
66
+
67
+ .file-list {
68
+ display: flex;
69
+ flex-wrap: wrap;
70
+ padding-left: 20px;
71
+
72
+ .item {
73
+ position: relative;
74
+ width: 20%;
75
+ overflow: hidden;
76
+ cursor: pointer;
77
+
78
+ .move-action {
79
+ opacity: 0.5;
80
+ }
81
+
82
+ .shadow-wrap {
83
+ position: relative;
84
+ margin: 0 20px 18px 0;
85
+ overflow: hidden;
86
+ background: #fff;
87
+ border: 1px solid #ebeef5;
88
+ border-radius: 4px;
89
+
90
+ &:hover {
91
+ box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.1);
92
+ }
93
+
94
+ &.active {
95
+ border: 2px solid #4886ff;
96
+
97
+ h4 {
98
+ color: #1a67d2;
99
+ }
100
+ }
101
+
102
+ .transcoding-in-progress {
103
+ position: absolute;
104
+ top: 0;
105
+ display: flex;
106
+ align-items: center;
107
+ justify-content: center;
108
+ width: 100%;
109
+ height: 100%;
110
+ color: floralwhite;
111
+ background: rgba(0, 0, 0, 0.3);
112
+ }
113
+
114
+ .thumb-wrap {
115
+ position: relative;
116
+ width: 100%;
117
+ background: url('../assets/selection/picBg.png');
118
+ }
119
+
120
+ h4,
121
+ p {
122
+ margin-top: 4px;
123
+ margin-bottom: 2px;
124
+ padding: 0 10px;
125
+ overflow: hidden;
126
+ color: rgba(0, 0, 0, 0.85);
127
+ font-size: 14px;
128
+ white-space: nowrap;
129
+ text-overflow: ellipsis;
130
+ word-wrap: normal;
131
+
132
+ i,
133
+ svg {
134
+ margin-right: 4px;
135
+ color: #e75258;
136
+ font-size: 16px;
137
+ vertical-align: middle;
138
+ }
139
+
140
+ svg {
141
+ margin-right: 4px;
142
+ font-size: 16px;
143
+ vertical-align: middle;
144
+ }
145
+
146
+ span {
147
+ vertical-align: middle;
148
+ }
149
+ }
150
+
151
+ p {
152
+ margin-bottom: 4px;
153
+ font-weight: normal;
154
+ font-size: 12px;
155
+ line-height: 1em;
156
+ opacity: 0.65;
157
+ }
158
+ }
159
+ }
160
+
161
+ &::after {
162
+ height: 50px;
163
+ }
164
+ }
165
+
166
+ .load_more_title {
167
+ display: flex;
168
+ align-items: center;
169
+ justify-content: center;
170
+ width: 100%;
171
+ height: 40px;
172
+
173
+ .loadmore_tips,
174
+ .nomore_tips {
175
+ color: #949494;
176
+ }
177
+ }
178
+
179
+ .null-file {
180
+ position: absolute;
181
+ top: 50%;
182
+ left: 50%;
183
+ transform: translate(-50%, -70%);
184
+
185
+ .null-pic {
186
+ display: block;
187
+ width: 30%;
188
+ margin: 20px auto;
189
+ }
190
+
191
+ p {
192
+ color: #a2a3a7;
193
+ font-size: 14px;
194
+ text-align: center;
195
+ }
196
+ }
197
+ }
198
+ }
199
+ }
200
+ }
@@ -0,0 +1,71 @@
1
+ .media-previewer {
2
+ position: fixed;
3
+ top: 0;
4
+ left: 0;
5
+ z-index: 100;
6
+ width: 100%;
7
+ height: 100%;
8
+ background-color: rgba(0, 0, 0, 0.3);
9
+
10
+ .viewer-close {
11
+ position: absolute;
12
+ top: 36px;
13
+ right: 36px;
14
+ z-index: 99999;
15
+ display: flex;
16
+ align-items: center;
17
+ justify-content: center;
18
+ width: 32px;
19
+ height: 32px;
20
+ color: #fff;
21
+ font-size: 14px;
22
+ line-height: 32px;
23
+ text-align: center;
24
+ background: rgba(0, 0, 0, 0.5);
25
+ border-radius: 50%;
26
+ cursor: pointer;
27
+ }
28
+
29
+ .viewer-canvas {
30
+ display: -webkit-box;
31
+ display: flex;
32
+ align-items: center;
33
+ justify-content: center;
34
+ width: 100%;
35
+ height: 100%;
36
+ -webkit-box-pack: center;
37
+ -webkit-box-align: center;
38
+
39
+ .video {
40
+ z-index: 101;
41
+ width: 1000px;
42
+ max-height: 90vh;
43
+ object-fit: contain;
44
+ overflow: clip;
45
+ overflow-clip-margin: content-box;
46
+ }
47
+
48
+ .audio {
49
+ width: 400px;
50
+ height: 54px;
51
+ }
52
+
53
+ .other {
54
+ display: flex;
55
+ flex-direction: column;
56
+ align-items: center;
57
+ width: 240px;
58
+ height: 200px;
59
+
60
+ img {
61
+ width: 100%;
62
+ height: 100%;
63
+ }
64
+
65
+ .text {
66
+ color: #fff;
67
+ font-size: 18px;
68
+ }
69
+ }
70
+ }
71
+ }
@@ -0,0 +1,59 @@
1
+ .media-selection {
2
+ width: 100%;
3
+ height: 100%;
4
+ // 禁止浏览器选中文字
5
+ -webkit-user-select: none;
6
+ -moz-user-select: none;
7
+
8
+ .media-selection-section {
9
+ width: 100%;
10
+ height: 100%;
11
+
12
+ .components-title {
13
+ display: flex;
14
+ align-items: center;
15
+ justify-content: space-between;
16
+ height: 40px;
17
+
18
+ .media-tabs {
19
+ width: 100%;
20
+ min-width: 350px;
21
+ margin-top: 15px;
22
+
23
+ .arco-tabs-nav-tab {
24
+ padding-left: 5px;
25
+ }
26
+ }
27
+ }
28
+
29
+ .resources {
30
+ .simple-resources {
31
+ height: 100%;
32
+
33
+ .directory-breadcrumb {
34
+ display: flex;
35
+ align-items: center;
36
+ justify-content: space-between;
37
+
38
+ .tool-search-box {
39
+ width: 100%;
40
+ padding: 10px 20px 20px;
41
+
42
+ .back {
43
+ margin-right: 10px;
44
+ }
45
+ }
46
+ }
47
+
48
+ .breadcrumb {
49
+ margin: 10px 20px;
50
+ font-size: 14px;
51
+
52
+ .breadcrumbItem {
53
+ cursor: pointer;
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
59
+ }
@@ -0,0 +1,40 @@
1
+ .toolbar-search-container {
2
+ width: 100%;
3
+
4
+ .top-container {
5
+ display: flex;
6
+
7
+ .filter-content {
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: space-between;
11
+ width: 100%;
12
+
13
+ .filter-item {
14
+ width: auto;
15
+ margin-right: 10px;
16
+ }
17
+ }
18
+ }
19
+ }
20
+
21
+ .keywordsSelection {
22
+ display: flex;
23
+ justify-content: space-between;
24
+ width: 100%;
25
+ padding-top: 10px;
26
+
27
+ .selection-item {
28
+ padding: 8px 20px;
29
+
30
+ &:hover {
31
+ cursor: pointer;
32
+ }
33
+
34
+ &.active {
35
+ color: #3a65ff;
36
+ background: #f2f3f8;
37
+ border-radius: 15px;
38
+ }
39
+ }
40
+ }