vue-element-ui-x 1.0.42-beta → 1.0.51

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 (90) hide show
  1. package/lib/index.common.js +1 -1
  2. package/lib/index.esm.js +1 -1
  3. package/lib/index.js +20 -17
  4. package/lib/index.umd.js +1 -1
  5. package/lib/mixins/index.js +20 -17
  6. package/package.json +5 -5
  7. package/src/components/Attachments/index.js +0 -8
  8. package/src/components/Attachments/src/main.vue +0 -529
  9. package/src/components/Bubble/index.js +0 -6
  10. package/src/components/Bubble/src/main.vue +0 -288
  11. package/src/components/BubbleList/index.js +0 -8
  12. package/src/components/BubbleList/src/loading.vue +0 -75
  13. package/src/components/BubbleList/src/main.vue +0 -444
  14. package/src/components/Conversations/index.js +0 -8
  15. package/src/components/Conversations/src/components/item.vue +0 -350
  16. package/src/components/Conversations/src/main.vue +0 -587
  17. package/src/components/FilesCard/index.js +0 -8
  18. package/src/components/FilesCard/src/fileSvg/audio.vue +0 -38
  19. package/src/components/FilesCard/src/fileSvg/changeFileName.bat +0 -18
  20. package/src/components/FilesCard/src/fileSvg/code.vue +0 -35
  21. package/src/components/FilesCard/src/fileSvg/database.vue +0 -94
  22. package/src/components/FilesCard/src/fileSvg/excel.vue +0 -38
  23. package/src/components/FilesCard/src/fileSvg/file.vue +0 -40
  24. package/src/components/FilesCard/src/fileSvg/image.vue +0 -40
  25. package/src/components/FilesCard/src/fileSvg/index.js +0 -46
  26. package/src/components/FilesCard/src/fileSvg/link.vue +0 -54
  27. package/src/components/FilesCard/src/fileSvg/mark.vue +0 -38
  28. package/src/components/FilesCard/src/fileSvg/pdf.vue +0 -38
  29. package/src/components/FilesCard/src/fileSvg/ppt.vue +0 -38
  30. package/src/components/FilesCard/src/fileSvg/three.vue +0 -38
  31. package/src/components/FilesCard/src/fileSvg/txt.vue +0 -38
  32. package/src/components/FilesCard/src/fileSvg/unknown.vue +0 -54
  33. package/src/components/FilesCard/src/fileSvg/video.vue +0 -38
  34. package/src/components/FilesCard/src/fileSvg/word.vue +0 -38
  35. package/src/components/FilesCard/src/fileSvg/zip.vue +0 -38
  36. package/src/components/FilesCard/src/main.vue +0 -403
  37. package/src/components/FilesCard/src/options.js +0 -18
  38. package/src/components/Prompts/index.js +0 -8
  39. package/src/components/Prompts/src/main.vue +0 -248
  40. package/src/components/Sender/index.js +0 -8
  41. package/src/components/Sender/src/components/ClearButton.vue +0 -28
  42. package/src/components/Sender/src/components/Loading.vue +0 -53
  43. package/src/components/Sender/src/components/LoadingButton.vue +0 -37
  44. package/src/components/Sender/src/components/SendButton.vue +0 -26
  45. package/src/components/Sender/src/components/SpeechButton.vue +0 -24
  46. package/src/components/Sender/src/components/SpeechLoading.vue +0 -87
  47. package/src/components/Sender/src/components/SpeechLoadingButton.vue +0 -41
  48. package/src/components/Sender/src/main.vue +0 -803
  49. package/src/components/Thinking/index.js +0 -8
  50. package/src/components/Thinking/src/main.vue +0 -199
  51. package/src/components/ThoughtChain/index.js +0 -8
  52. package/src/components/ThoughtChain/src/main.vue +0 -291
  53. package/src/components/Typewriter/index.js +0 -8
  54. package/src/components/Typewriter/src/main.vue +0 -255
  55. package/src/components/Welcome/index.js +0 -8
  56. package/src/components/Welcome/src/main.vue +0 -151
  57. package/src/index.js +0 -104
  58. package/src/locale/index.js +0 -97
  59. package/src/locale/lang/ar.js +0 -18
  60. package/src/locale/lang/de.js +0 -18
  61. package/src/locale/lang/en.js +0 -18
  62. package/src/locale/lang/es.js +0 -18
  63. package/src/locale/lang/fr.js +0 -18
  64. package/src/locale/lang/index.js +0 -62
  65. package/src/locale/lang/it.js +0 -18
  66. package/src/locale/lang/ja.js +0 -18
  67. package/src/locale/lang/ko.js +0 -18
  68. package/src/locale/lang/pt-br.js +0 -18
  69. package/src/locale/lang/ru-RU.js +0 -18
  70. package/src/locale/lang/zh-CN.js +0 -18
  71. package/src/locale/lang/zh-TW.js +0 -18
  72. package/src/locale/mixin.js +0 -9
  73. package/src/mixins/index.js +0 -49
  74. package/src/mixins/recordMixin.js +0 -117
  75. package/src/mixins/sendMixin.js +0 -450
  76. package/src/mixins/streamMixin.js +0 -497
  77. package/src/styles/Attachments.scss +0 -236
  78. package/src/styles/Bubble.scss +0 -158
  79. package/src/styles/BubbleList.scss +0 -148
  80. package/src/styles/Conversations.scss +0 -283
  81. package/src/styles/FilesCard.scss +0 -222
  82. package/src/styles/Prompts.scss +0 -197
  83. package/src/styles/Sender.scss +0 -211
  84. package/src/styles/Thinking.scss +0 -142
  85. package/src/styles/ThoughtChain.scss +0 -113
  86. package/src/styles/Typewriter.scss +0 -66
  87. package/src/styles/Welcome.scss +0 -283
  88. package/src/theme/var.scss +0 -183
  89. package/src/utils/index.js +0 -199
  90. package/src/utils/scrollDetector.js +0 -34
@@ -1,158 +0,0 @@
1
- @import '../theme/var.scss';
2
-
3
- .el-x-bubble {
4
- display: flex;
5
- gap: var(--el-x-bubble-avatar-placeholder-gap);
6
- }
7
-
8
- .el-x-bubble-avatar-size {
9
- ::v-deep .el-avatar {
10
- width: var(--el-x-bubble-avatar-placeholder-width) !important;
11
- height: var(--el-x-bubble-avatar-placeholder-height) !important;
12
- }
13
- }
14
-
15
- .el-x-bubble-avatar-placeholder {
16
- width: var(--el-x-bubble-avatar-placeholder-width) !important;
17
- height: var(--el-x-bubble-avatar-placeholder-height) !important;
18
- }
19
-
20
- .el-x-bubble-start {
21
- .el-x-bubble-content-wrapper {
22
- .el-x-bubble-content-corner {
23
- border-start-start-radius: $--el-x-border-radius-base - 2px;
24
- }
25
- }
26
- }
27
-
28
- .el-x-bubble-end {
29
- justify-content: end;
30
- flex-direction: row-reverse;
31
-
32
- .el-x-bubble-content-wrapper {
33
- align-items: flex-end;
34
-
35
- .el-x-bubble-content-corner {
36
- border-start-end-radius: $--el-x-border-radius-base - 2px;
37
- }
38
- }
39
- }
40
-
41
- .el-x-bubble-no-style {
42
- .el-x-bubble-content-wrapper {
43
- .el-x-bubble-content {
44
- background-color: transparent;
45
- padding: 0;
46
- }
47
- }
48
- }
49
-
50
- .el-x-bubble-content-wrapper {
51
- flex: auto;
52
- display: flex;
53
- flex-direction: column;
54
- align-items: flex-start;
55
- min-width: 0;
56
- max-width: 100%;
57
-
58
- .el-x-bubble-header,
59
- .el-x-bubble-content,
60
- .el-x-bubble-footer {
61
- font-size: $--el-x-font-size-base;
62
- color: $--el-x-text-color-primary;
63
- line-height: $--el-x-font-line-height-primary;
64
- }
65
-
66
- // .el-x-bubble-header {
67
- // margin-bottom: var();
68
- // }
69
-
70
- .el-x-bubble-content {
71
- background-color: $--el-x-fill-color;
72
- padding: $--el-x-padding-md $--el-x-padding-lg;
73
- border-radius: $--el-x-border-radius-base + 4px;
74
- position: relative;
75
- box-sizing: border-box;
76
- min-width: 0;
77
- max-width: var(--bubble-content-max-width);
78
- color: $--el-x-text-color-primary;
79
- font-size: $--el-x-font-size-base;
80
- line-height: $--el-x-font-line-height-primary;
81
- // min-height: calc(#{$--el-x-padding-md} * 2 + #{$--el-x-font-line-height-primary} * #{$--el-x-font-size-base} );
82
- word-break: break-word;
83
-
84
- // 打字器没有内容时候展示高度
85
- .no-content {
86
- // height: 16px;
87
- height: 0;
88
- }
89
- }
90
-
91
- // 气泡圆角
92
- .el-x-bubble-content-round {
93
- border-radius: $--el-x-border-radius-round;
94
- }
95
-
96
- // 气泡样式
97
- .el-x-bubble-content-filled {
98
- background-color: $--el-x-fill-color;
99
- }
100
-
101
- .el-x-bubble-content-borderless {
102
- background-color: $--el-x-fill-color;
103
- border: $--el-x-border-width solid $--el-x-border-color;
104
- }
105
-
106
- .el-x-bubble-content-outlined {
107
- background: none;
108
- border: $--el-x-border-width solid $--el-x-border-color;
109
- }
110
-
111
- .el-x-bubble-content-shadow {
112
- background: none;
113
- // box-shadow: var(--el-box-shadow-tertiary);
114
- box-shadow: $--el-x-box-shadow-base;
115
- }
116
-
117
- .el-x-bubble-content-loading {
118
- width: fit-content;
119
-
120
- .el-x-bubble-loading-wrap {
121
- display: flex;
122
- justify-content: center;
123
- align-items: center;
124
- // height: 16px;
125
- /* 盒子高度 */
126
- gap: 5px;
127
- }
128
-
129
- .dot {
130
- width: 5px;
131
- height: 5px;
132
- background-color: $--color-primary;
133
- /* 点的颜色 */
134
- border-radius: 50%;
135
- /* 圆形 */
136
- animation: wave 1s infinite ease-in-out;
137
- /* 动画 */
138
- }
139
-
140
- /* 波浪动画 */
141
- @keyframes wave {
142
-
143
- 0%,
144
- 100% {
145
- transform: translateY(-2px);
146
- }
147
-
148
- 50% {
149
- transform: translateY(2px);
150
- /* 上下波动 */
151
- }
152
- }
153
- }
154
-
155
- .el-x-bubble-footer {
156
- margin-top: $--el-x-padding-sm;
157
- }
158
- }
@@ -1,148 +0,0 @@
1
- @import '../theme/var.scss';
2
-
3
- .el-x-bubble-list {
4
- display: flex;
5
- flex-direction: column;
6
- gap: 16px;
7
- min-height: 0;
8
- max-height: var(--el-x-bubble-list-max-height);
9
- overflow: auto;
10
- scroll-behavior: smooth;
11
-
12
- position: relative;
13
-
14
- &::-webkit-scrollbar {
15
- width: 6px;
16
- height: 8px;
17
- }
18
-
19
- &::-webkit-scrollbar-thumb {
20
- background: transparent;
21
- background-color: #0003;
22
- border-radius: 10px;
23
- transition: background-color 0.2s ease-in-out;
24
- }
25
-
26
- &::-webkit-scrollbar-track {
27
- border-radius: 10px;
28
- background: transparent;
29
- }
30
-
31
- &:hover {
32
- &::-webkit-scrollbar-thumb {
33
- background: #c1c1c1;
34
- }
35
-
36
- &::-webkit-scrollbar-thumb:hover {
37
- background: #a8a8a8;
38
- }
39
- }
40
-
41
- &.always-scrollbar {
42
- &::-webkit-scrollbar-thumb {
43
- background: #c1c1c1;
44
- }
45
-
46
- &:hover::-webkit-scrollbar-thumb {
47
- background: #a8a8a8;
48
- }
49
- }
50
- }
51
-
52
- @supports (scrollbar-color: auto) {
53
- .el-x-bubble-list {
54
- scrollbar-color: transparent transparent;
55
- scrollbar-width: thin;
56
-
57
- &:hover {
58
- scrollbar-color: #c1c1c1 transparent;
59
- }
60
-
61
- &.always-scrollbar {
62
- scrollbar-color: #c1c1c1 transparent;
63
- }
64
- }
65
- }
66
-
67
- .el-x-bubble-list-default-back-button {
68
- position: sticky;
69
- user-select: none;
70
- cursor: pointer;
71
- width: 40px;
72
- height: 40px;
73
- padding: 10px;
74
- box-sizing: border-box;
75
- display: flex;
76
- align-items: center;
77
- justify-content: center;
78
- background-color: #ffffff;
79
- border-radius: 50%;
80
- box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.02), 0 6px 10px 0 rgba(47, 53, 64, 0.1);
81
- transition: all 0.3s ease;
82
- z-index: 100;
83
-
84
- &:hover {
85
- transform: translateY(-1px);
86
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
87
- }
88
-
89
- .el-x-bubble-list-back-to-bottom-icon {
90
- font-size: var(--el-x-bubble-list-btn-size);
91
- position: relative;
92
-
93
- .back-to-bottom-loading-svg-bg {
94
- position: absolute;
95
- font-size: calc(var(--el-x-bubble-list-btn-size) + 26px);
96
- animation: is-loading 1s infinite linear;
97
- width: 40px;
98
- height: 40px;
99
- }
100
-
101
- @keyframes is-loading {
102
- 0% {
103
- transform: rotate(0deg);
104
- }
105
-
106
- 100% {
107
- transform: rotate(360deg);
108
- }
109
- }
110
- }
111
-
112
- .back-to-bottom-loading-svg-bg {
113
- position: absolute;
114
- font-size: calc(var(--el-x-bubble-list-btn-size) + 26px);
115
- animation: is-loading 1s infinite linear;
116
- width: 40px;
117
- height: 40px;
118
- }
119
-
120
- @keyframes is-loading {
121
- 0% {
122
- transform: rotate(0deg);
123
- }
124
-
125
- 100% {
126
- transform: rotate(360deg);
127
- }
128
- }
129
- }
130
-
131
- .el-x-bubble-list-back-to-bottom-solt {
132
- position: sticky;
133
- user-select: none;
134
- cursor: initial;
135
- width: fit-content;
136
- height: fit-content;
137
- padding: 0;
138
- box-sizing: border-box;
139
- display: flex;
140
- align-items: center;
141
- justify-content: center;
142
- box-shadow: initial;
143
-
144
- &:hover {
145
- transform: translateY(0px);
146
- box-shadow: initial;
147
- }
148
- }
@@ -1,283 +0,0 @@
1
- .el-x-conversations-container {
2
- display: flex;
3
- flex-direction: column;
4
- height: 100%;
5
- position: relative;
6
- width: fit-content;
7
- box-sizing: border-box;
8
- overflow: hidden;
9
- box-shadow: 0 1px 3px rgba(0, 0, 0, .1)
10
- }
11
-
12
- .el-x-conversations-list {
13
- list-style: none;
14
- margin: 0;
15
- padding: 0;
16
- flex: 1;
17
- display: flex;
18
- flex-direction: column;
19
- box-sizing: border-box
20
- }
21
-
22
- .el-x-conversations-scroll-wrapper {
23
- flex: 1;
24
- overflow: hidden;
25
- position: relative
26
- }
27
-
28
- .el-x-conversations-scroll-wrapper::after {
29
- content: "";
30
- position: absolute;
31
- top: 0;
32
- right: 0;
33
- width: 8px;
34
- height: 100%;
35
- background-color: rgba(0, 0, 0, 0);
36
- pointer-events: none
37
- }
38
-
39
- .el-x-conversations-load-more {
40
- display: flex;
41
- width: calc(100% - 20px);
42
- padding: 14px 10px;
43
- justify-content: center;
44
- align-items: center;
45
- font-size: 12px;
46
- gap: 3px;
47
- color: #909399;
48
- background-color: var(--conversation-list-auto-bg-color, #fff);
49
- margin-right: 20px;
50
- border-radius: 8px;
51
- height: auto;
52
- min-height: var(--conversation-label-height, 20px);
53
- box-sizing: border-box
54
- }
55
-
56
- .el-x-conversations-load-more-is-loading {
57
- margin-top: 2px;
58
- animation: spinloading 2s linear infinite
59
- }
60
-
61
- @keyframes spinloading {
62
- 0% {
63
- transform: rotate(0deg)
64
- }
65
-
66
- 100% {
67
- transform: rotate(360deg)
68
- }
69
- }
70
-
71
- .scroll-content {
72
- min-height: 100%
73
- }
74
-
75
- .loading-more {
76
- text-align: center;
77
- padding: 10px 0;
78
- color: #909399;
79
- font-size: 14px
80
- }
81
-
82
- .el-x-conversation-group {
83
- position: relative
84
- }
85
-
86
- .el-x-conversation-group:last-child {
87
- margin-bottom: 0
88
- }
89
-
90
- .el-x-conversation-group .el-x-conversation-group-title {
91
- font-size: 14px;
92
- color: #909399;
93
- padding: 8px 0;
94
- font-weight: 500;
95
- margin-bottom: 4px;
96
- border-radius: 4px;
97
- border-top-left-radius: 0px;
98
- border-top-right-radius: 0px;
99
- width: calc(100% - 10px);
100
- box-sizing: border-box
101
- }
102
-
103
- .el-x-conversation-group .sticky-title {
104
- position: sticky;
105
- top: 0;
106
- z-index: 20;
107
- background-color: var(--conversation-list-auto-bg-color, #fff)
108
- }
109
-
110
- .el-x-conversation-group .active-sticky {
111
- z-index: 10
112
- }
113
-
114
- .el-x-conversation-group .el-x-conversation-group-items {
115
- padding-top: 0
116
- }
117
-
118
- .scroll-to-top-btn {
119
- position: absolute;
120
- right: 16px;
121
- bottom: 16px;
122
- z-index: 99;
123
- opacity: .8;
124
- transition: opacity .3s
125
- }
126
-
127
- .scroll-to-top-btn:hover {
128
- opacity: 1
129
- }
130
-
131
- .el-x-conversation-item {
132
- padding: 14px 10px;
133
- margin-right: 20px;
134
- border-radius: 8px;
135
- cursor: pointer;
136
- transition: background-color .2s ease
137
- }
138
-
139
- .el-x-conversation-item+.el-x-conversation-item {
140
- margin-top: 4px
141
- }
142
-
143
- .el-x-conversation-item.disabled {
144
- opacity: .5;
145
- cursor: not-allowed;
146
- color: #c0c4cc
147
- }
148
-
149
- .el-x-conversation-item.active {
150
- background-color: #f0f0f0
151
- }
152
-
153
- .el-x-conversation-item.hovered,
154
- .el-x-conversation-item:hover {
155
- background-color: #f0f0f0
156
- }
157
-
158
- .el-x-conversation-item.menu-opened {
159
- background-color: #f0f0f0
160
- }
161
-
162
- .el-x-conversation-content {
163
- display: flex;
164
- align-items: center;
165
- height: var(--conversation-label-height, 20px)
166
- }
167
-
168
- .el-x-conversation-content .el-x-conversation-prefix-icon {
169
- margin-right: 8px;
170
- display: flex;
171
- justify-content: center;
172
- align-items: center
173
- }
174
-
175
- .el-x-conversation-content .el-x-conversation-content-main {
176
- flex: 1;
177
- display: flex;
178
- align-items: center;
179
- position: relative;
180
- overflow: hidden
181
- }
182
-
183
- .el-x-conversation-content .el-x-conversation-label-container {
184
- flex: 1;
185
- display: flex;
186
- justify-content: space-between;
187
- align-items: center;
188
- overflow: hidden
189
- }
190
-
191
- .el-x-conversation-content .el-x-conversation-label {
192
- font-size: 14px;
193
- color: #303133;
194
- position: relative;
195
- white-space: nowrap
196
- }
197
-
198
- .el-x-conversation-content .el-x-conversation-label.text-gradient {
199
- mask-image: linear-gradient(to right, black 60%, transparent 100%);
200
- -webkit-mask-image: linear-gradient(to right, black 60%, transparent 100%)
201
- }
202
-
203
- .el-x-conversation-content .el-x-conversation-timestamp {
204
- font-size: 14px;
205
- color: #909399;
206
- margin-left: 8px
207
- }
208
-
209
- .el-x-conversation-content .el-x-conversation-suffix-icon {
210
- margin-left: 8px;
211
- display: flex;
212
- justify-content: center;
213
- align-items: center
214
- }
215
-
216
- .el-x-conversation-content .el-x-conversation-dropdown-more {
217
- justify-self: center;
218
- height: 100%;
219
- display: flex;
220
- align-items: center
221
- }
222
-
223
- .el-x-conversation-content .el-x-conversation-dropdown-more-icon {
224
- font-size: 16px;
225
- padding: 2px;
226
- border-radius: 5px
227
- }
228
-
229
- .el-x-conversation-content .el-x-conversation-dropdown-more-icon:hover {
230
- background-color: #d3d3d3
231
- }
232
-
233
- .el-x-conversation-content .el-x-conversation-menu {
234
- margin-left: 8px;
235
- display: flex;
236
- align-items: center;
237
- opacity: 0;
238
- transition: opacity .2s ease
239
- }
240
-
241
- .hovered .el-x-conversation-content .el-x-conversation-menu,
242
- .active .el-x-conversation-content .el-x-conversation-menu {
243
- opacity: 1
244
- }
245
-
246
- .el-x-conversation-dropdown-menu {
247
- max-height: 300px;
248
- overflow-y: auto
249
- }
250
-
251
- .el-x-conversations-scrollbar {
252
- height: 100%;
253
- overflow-y: auto
254
- }
255
-
256
- .el-x-conversations-scrollbar::-webkit-scrollbar {
257
- width: 6px
258
- }
259
-
260
- .el-x-conversations-scrollbar::-webkit-scrollbar-thumb {
261
- background-color: rgba(0, 0, 0, 0);
262
- border-radius: 3px;
263
- transition: background-color .3s ease
264
- }
265
-
266
- .el-x-conversations-scrollbar::-webkit-scrollbar-track {
267
- background-color: rgba(0, 0, 0, 0)
268
- }
269
-
270
- .el-x-conversations-scrollbar:hover::-webkit-scrollbar-thumb {
271
- background-color: #e0e0e0
272
- }
273
-
274
- @supports(scrollbar-width: thin) {
275
- .el-x-conversations-scrollbar {
276
- scrollbar-width: thin;
277
- scrollbar-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0)
278
- }
279
-
280
- .el-x-conversations-scrollbar:hover {
281
- scrollbar-color: #e0e0e0 rgba(0, 0, 0, 0)
282
- }
283
- }