@touchvue/chat 1.0.0-beta.47 → 1.0.0-beta.49
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/es/package.json.css +1 -1
- package/es/package.json.mjs +1 -1
- package/es/packages/components/touchchat/component/FileContent.vue2.mjs +6 -1
- package/es/packages/components/touchchat/component/FileContent.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/component/PDFFile.vue2.mjs +7 -1
- package/es/packages/components/touchchat/component/PDFFile.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/component/QuoteContent.vue2.mjs +19 -8
- package/es/packages/components/touchchat/component/QuoteContent.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/component/UploadView.vue2.mjs +51 -14
- package/es/packages/components/touchchat/component/UploadView.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/component/VideoFile.vue.mjs +7 -0
- package/es/packages/components/touchchat/component/VideoFile.vue.mjs.map +1 -0
- package/es/packages/components/touchchat/component/VideoFile.vue2.mjs +33 -0
- package/es/packages/components/touchchat/component/VideoFile.vue2.mjs.map +1 -0
- package/es/packages/components/touchchat/src/AiChat/AiMessage.vue2.mjs +39 -1
- package/es/packages/components/touchchat/src/AiChat/AiMessage.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/Chat/types.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/Chat/useChat.mjs +10 -5
- package/es/packages/components/touchchat/src/AiChat/Chat/useChat.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/Chat/useSSE.mjs +50 -88
- package/es/packages/components/touchchat/src/AiChat/Chat/useSSE.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/ChatInput.vue2.mjs +10 -1
- package/es/packages/components/touchchat/src/AiChat/ChatInput.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue2.mjs +41 -0
- package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/TouchChat.vue2.mjs +47 -13
- package/es/packages/components/touchchat/src/AiChat/TouchChat.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/TouchHistory.vue2.mjs +6 -0
- package/es/packages/components/touchchat/src/AiChat/TouchHistory.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/src/index.vue2.mjs +17 -3
- package/es/packages/components/touchchat/src/index.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/src/types/a2a.mjs.map +1 -1
- package/es/packages/components/touchchat/utils/a2aService.mjs +18 -12
- package/es/packages/components/touchchat/utils/a2aService.mjs.map +1 -1
- package/lib/package.json.css +1 -1
- package/lib/package.json.js +1 -1
- package/lib/packages/components/touchchat/component/FileContent.vue2.js +6 -1
- package/lib/packages/components/touchchat/component/FileContent.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/component/PDFFile.vue2.js +7 -1
- package/lib/packages/components/touchchat/component/PDFFile.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/component/QuoteContent.vue2.js +18 -7
- package/lib/packages/components/touchchat/component/QuoteContent.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/component/UploadView.vue2.js +50 -13
- package/lib/packages/components/touchchat/component/UploadView.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/component/VideoFile.vue.js +11 -0
- package/lib/packages/components/touchchat/component/VideoFile.vue.js.map +1 -0
- package/lib/packages/components/touchchat/component/VideoFile.vue2.js +37 -0
- package/lib/packages/components/touchchat/component/VideoFile.vue2.js.map +1 -0
- package/lib/packages/components/touchchat/src/AiChat/AiMessage.vue2.js +39 -1
- package/lib/packages/components/touchchat/src/AiChat/AiMessage.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/Chat/types.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/Chat/useChat.js +10 -5
- package/lib/packages/components/touchchat/src/AiChat/Chat/useChat.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/Chat/useSSE.js +50 -88
- package/lib/packages/components/touchchat/src/AiChat/Chat/useSSE.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/ChatInput.vue2.js +10 -1
- package/lib/packages/components/touchchat/src/AiChat/ChatInput.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue2.js +41 -0
- package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/TouchChat.vue2.js +46 -12
- package/lib/packages/components/touchchat/src/AiChat/TouchChat.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/TouchHistory.vue2.js +6 -0
- package/lib/packages/components/touchchat/src/AiChat/TouchHistory.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/src/index.vue2.js +16 -2
- package/lib/packages/components/touchchat/src/index.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/src/types/a2a.js.map +1 -1
- package/lib/packages/components/touchchat/utils/a2aService.js +18 -12
- package/lib/packages/components/touchchat/utils/a2aService.js.map +1 -1
- package/package.json +1 -1
- package/theme/components/index.css +67 -0
- package/theme/font/iconfont.woff +0 -0
- package/theme/font/iconfont.woff2 +0 -0
- package/theme/index.css +67 -0
- package/theme/skin/default.css +67 -0
|
@@ -290,6 +290,22 @@
|
|
|
290
290
|
opacity: 0;
|
|
291
291
|
overflow: hidden;
|
|
292
292
|
}
|
|
293
|
+
.touchchat-ai-may-like {
|
|
294
|
+
margin-top: 0.5em;
|
|
295
|
+
display: flex;
|
|
296
|
+
flex-direction: column;
|
|
297
|
+
gap: 0.4em;
|
|
298
|
+
}
|
|
299
|
+
.touchchat-ai-may-like .touchchat-ai-may-like-item {
|
|
300
|
+
display: inline-block;
|
|
301
|
+
cursor: pointer;
|
|
302
|
+
background-color: #ededed;
|
|
303
|
+
padding: 0.5em 0.8em;
|
|
304
|
+
border-radius: 0.8em;
|
|
305
|
+
}
|
|
306
|
+
.touchchat-ai-may-like .touchchat-ai-may-like-item:hover {
|
|
307
|
+
background-color: #d6d6d6;
|
|
308
|
+
}
|
|
293
309
|
@keyframes loading {
|
|
294
310
|
0% {
|
|
295
311
|
transform: rotate(0deg);
|
|
@@ -776,6 +792,47 @@
|
|
|
776
792
|
flex-direction: column;
|
|
777
793
|
gap: 1em;
|
|
778
794
|
}
|
|
795
|
+
.touchchat-dialog-content .touchchat-list-box {
|
|
796
|
+
display: flex;
|
|
797
|
+
}
|
|
798
|
+
.touchchat-dialog-content .touchchat-list-box .touchchat-list-check {
|
|
799
|
+
padding: 0 1em;
|
|
800
|
+
}
|
|
801
|
+
.touchchat-dialog-content .touchchat-list-box .touchchat-list-check input[type='checkbox'] {
|
|
802
|
+
appearance: none;
|
|
803
|
+
-webkit-appearance: none;
|
|
804
|
+
width: 16px;
|
|
805
|
+
height: 16px;
|
|
806
|
+
border: 1px solid #ccc;
|
|
807
|
+
border-radius: 3px;
|
|
808
|
+
cursor: pointer;
|
|
809
|
+
position: relative;
|
|
810
|
+
}
|
|
811
|
+
.touchchat-dialog-content .touchchat-list-box .touchchat-list-check input[type='checkbox']:checked {
|
|
812
|
+
background-color: #409eff;
|
|
813
|
+
border-color: #409eff;
|
|
814
|
+
}
|
|
815
|
+
.touchchat-dialog-content .touchchat-list-box .touchchat-list-check input[type='checkbox']:checked::after {
|
|
816
|
+
content: '';
|
|
817
|
+
position: absolute;
|
|
818
|
+
top: 50%;
|
|
819
|
+
left: 50%;
|
|
820
|
+
width: 4px;
|
|
821
|
+
height: 7px;
|
|
822
|
+
border: solid #fff;
|
|
823
|
+
/* 加粗线条 */
|
|
824
|
+
border-width: 0 2.5px 2.5px 0;
|
|
825
|
+
transform: translate(-50%, -65%) rotate(45deg);
|
|
826
|
+
}
|
|
827
|
+
.touchchat-dialog-content .touchchat-list-box .touchchat-list-content {
|
|
828
|
+
flex: 1;
|
|
829
|
+
}
|
|
830
|
+
.touchchat-dialog-content .touchchat-list-box .touchchat-list-content.status-select {
|
|
831
|
+
background-color: #eee;
|
|
832
|
+
}
|
|
833
|
+
.touchchat-dialog-content .touchchat-list-box .touchchat-list-content.select-mode * {
|
|
834
|
+
pointer-events: none;
|
|
835
|
+
}
|
|
779
836
|
.touchchat-dialog-withDraw {
|
|
780
837
|
text-align: center;
|
|
781
838
|
color: #868686;
|
|
@@ -889,6 +946,8 @@ table.touchchat-table tr:hover {
|
|
|
889
946
|
--user-read-content: '\ea42';
|
|
890
947
|
--user-is-read-content: '\e63c';
|
|
891
948
|
--quote-close-fill-content: '\e724';
|
|
949
|
+
--ai-may-like-item-icon-content: '\e72c';
|
|
950
|
+
--ai-may-like-item-icon-color: #000;
|
|
892
951
|
}
|
|
893
952
|
.touchchat-action-item {
|
|
894
953
|
position: relative;
|
|
@@ -947,6 +1006,14 @@ table.touchchat-table tr:hover {
|
|
|
947
1006
|
.touchchat-action-item.value-close-fill {
|
|
948
1007
|
--action-icon-content: var(--quote-close-fill-content);
|
|
949
1008
|
}
|
|
1009
|
+
.touchchat-action-item.value-right-arrow {
|
|
1010
|
+
--action-icon-content: var(--ai-may-like-item-icon-content);
|
|
1011
|
+
color: var(--ai-may-like-item-icon-color);
|
|
1012
|
+
}
|
|
1013
|
+
.touchchat-action-item.value-right-arrow:hover {
|
|
1014
|
+
background-color: transparent;
|
|
1015
|
+
color: var(--ai-may-like-item-icon-color);
|
|
1016
|
+
}
|
|
950
1017
|
.touchchat-action-item.value-good.is-on {
|
|
951
1018
|
--action-icon-content: var(--action-good-on-content);
|
|
952
1019
|
color: var(--action-good-on-color);
|
package/theme/font/iconfont.woff
CHANGED
|
Binary file
|
|
Binary file
|
package/theme/index.css
CHANGED
|
@@ -293,6 +293,22 @@
|
|
|
293
293
|
opacity: 0;
|
|
294
294
|
overflow: hidden;
|
|
295
295
|
}
|
|
296
|
+
.touchchat-ai-may-like {
|
|
297
|
+
margin-top: 0.5em;
|
|
298
|
+
display: flex;
|
|
299
|
+
flex-direction: column;
|
|
300
|
+
gap: 0.4em;
|
|
301
|
+
}
|
|
302
|
+
.touchchat-ai-may-like .touchchat-ai-may-like-item {
|
|
303
|
+
display: inline-block;
|
|
304
|
+
cursor: pointer;
|
|
305
|
+
background-color: #ededed;
|
|
306
|
+
padding: 0.5em 0.8em;
|
|
307
|
+
border-radius: 0.8em;
|
|
308
|
+
}
|
|
309
|
+
.touchchat-ai-may-like .touchchat-ai-may-like-item:hover {
|
|
310
|
+
background-color: #d6d6d6;
|
|
311
|
+
}
|
|
296
312
|
@keyframes loading {
|
|
297
313
|
0% {
|
|
298
314
|
transform: rotate(0deg);
|
|
@@ -779,6 +795,47 @@
|
|
|
779
795
|
flex-direction: column;
|
|
780
796
|
gap: 1em;
|
|
781
797
|
}
|
|
798
|
+
.touchchat-dialog-content .touchchat-list-box {
|
|
799
|
+
display: flex;
|
|
800
|
+
}
|
|
801
|
+
.touchchat-dialog-content .touchchat-list-box .touchchat-list-check {
|
|
802
|
+
padding: 0 1em;
|
|
803
|
+
}
|
|
804
|
+
.touchchat-dialog-content .touchchat-list-box .touchchat-list-check input[type='checkbox'] {
|
|
805
|
+
appearance: none;
|
|
806
|
+
-webkit-appearance: none;
|
|
807
|
+
width: 16px;
|
|
808
|
+
height: 16px;
|
|
809
|
+
border: 1px solid #ccc;
|
|
810
|
+
border-radius: 3px;
|
|
811
|
+
cursor: pointer;
|
|
812
|
+
position: relative;
|
|
813
|
+
}
|
|
814
|
+
.touchchat-dialog-content .touchchat-list-box .touchchat-list-check input[type='checkbox']:checked {
|
|
815
|
+
background-color: #409eff;
|
|
816
|
+
border-color: #409eff;
|
|
817
|
+
}
|
|
818
|
+
.touchchat-dialog-content .touchchat-list-box .touchchat-list-check input[type='checkbox']:checked::after {
|
|
819
|
+
content: '';
|
|
820
|
+
position: absolute;
|
|
821
|
+
top: 50%;
|
|
822
|
+
left: 50%;
|
|
823
|
+
width: 4px;
|
|
824
|
+
height: 7px;
|
|
825
|
+
border: solid #fff;
|
|
826
|
+
/* 加粗线条 */
|
|
827
|
+
border-width: 0 2.5px 2.5px 0;
|
|
828
|
+
transform: translate(-50%, -65%) rotate(45deg);
|
|
829
|
+
}
|
|
830
|
+
.touchchat-dialog-content .touchchat-list-box .touchchat-list-content {
|
|
831
|
+
flex: 1;
|
|
832
|
+
}
|
|
833
|
+
.touchchat-dialog-content .touchchat-list-box .touchchat-list-content.status-select {
|
|
834
|
+
background-color: #eee;
|
|
835
|
+
}
|
|
836
|
+
.touchchat-dialog-content .touchchat-list-box .touchchat-list-content.select-mode * {
|
|
837
|
+
pointer-events: none;
|
|
838
|
+
}
|
|
782
839
|
.touchchat-dialog-withDraw {
|
|
783
840
|
text-align: center;
|
|
784
841
|
color: #868686;
|
|
@@ -892,6 +949,8 @@ table.touchchat-table tr:hover {
|
|
|
892
949
|
--user-read-content: '\ea42';
|
|
893
950
|
--user-is-read-content: '\e63c';
|
|
894
951
|
--quote-close-fill-content: '\e724';
|
|
952
|
+
--ai-may-like-item-icon-content: '\e72c';
|
|
953
|
+
--ai-may-like-item-icon-color: #000;
|
|
895
954
|
}
|
|
896
955
|
.touchchat-action-item {
|
|
897
956
|
position: relative;
|
|
@@ -950,6 +1009,14 @@ table.touchchat-table tr:hover {
|
|
|
950
1009
|
.touchchat-action-item.value-close-fill {
|
|
951
1010
|
--action-icon-content: var(--quote-close-fill-content);
|
|
952
1011
|
}
|
|
1012
|
+
.touchchat-action-item.value-right-arrow {
|
|
1013
|
+
--action-icon-content: var(--ai-may-like-item-icon-content);
|
|
1014
|
+
color: var(--ai-may-like-item-icon-color);
|
|
1015
|
+
}
|
|
1016
|
+
.touchchat-action-item.value-right-arrow:hover {
|
|
1017
|
+
background-color: transparent;
|
|
1018
|
+
color: var(--ai-may-like-item-icon-color);
|
|
1019
|
+
}
|
|
953
1020
|
.touchchat-action-item.value-good.is-on {
|
|
954
1021
|
--action-icon-content: var(--action-good-on-content);
|
|
955
1022
|
color: var(--action-good-on-color);
|
package/theme/skin/default.css
CHANGED
|
@@ -293,6 +293,22 @@
|
|
|
293
293
|
opacity: 0;
|
|
294
294
|
overflow: hidden;
|
|
295
295
|
}
|
|
296
|
+
.touchchat-ai-may-like {
|
|
297
|
+
margin-top: 0.5em;
|
|
298
|
+
display: flex;
|
|
299
|
+
flex-direction: column;
|
|
300
|
+
gap: 0.4em;
|
|
301
|
+
}
|
|
302
|
+
.touchchat-ai-may-like .touchchat-ai-may-like-item {
|
|
303
|
+
display: inline-block;
|
|
304
|
+
cursor: pointer;
|
|
305
|
+
background-color: #ededed;
|
|
306
|
+
padding: 0.5em 0.8em;
|
|
307
|
+
border-radius: 0.8em;
|
|
308
|
+
}
|
|
309
|
+
.touchchat-ai-may-like .touchchat-ai-may-like-item:hover {
|
|
310
|
+
background-color: #d6d6d6;
|
|
311
|
+
}
|
|
296
312
|
@keyframes loading {
|
|
297
313
|
0% {
|
|
298
314
|
transform: rotate(0deg);
|
|
@@ -779,6 +795,47 @@
|
|
|
779
795
|
flex-direction: column;
|
|
780
796
|
gap: 1em;
|
|
781
797
|
}
|
|
798
|
+
.touchchat-dialog-content .touchchat-list-box {
|
|
799
|
+
display: flex;
|
|
800
|
+
}
|
|
801
|
+
.touchchat-dialog-content .touchchat-list-box .touchchat-list-check {
|
|
802
|
+
padding: 0 1em;
|
|
803
|
+
}
|
|
804
|
+
.touchchat-dialog-content .touchchat-list-box .touchchat-list-check input[type='checkbox'] {
|
|
805
|
+
appearance: none;
|
|
806
|
+
-webkit-appearance: none;
|
|
807
|
+
width: 16px;
|
|
808
|
+
height: 16px;
|
|
809
|
+
border: 1px solid #ccc;
|
|
810
|
+
border-radius: 3px;
|
|
811
|
+
cursor: pointer;
|
|
812
|
+
position: relative;
|
|
813
|
+
}
|
|
814
|
+
.touchchat-dialog-content .touchchat-list-box .touchchat-list-check input[type='checkbox']:checked {
|
|
815
|
+
background-color: #409eff;
|
|
816
|
+
border-color: #409eff;
|
|
817
|
+
}
|
|
818
|
+
.touchchat-dialog-content .touchchat-list-box .touchchat-list-check input[type='checkbox']:checked::after {
|
|
819
|
+
content: '';
|
|
820
|
+
position: absolute;
|
|
821
|
+
top: 50%;
|
|
822
|
+
left: 50%;
|
|
823
|
+
width: 4px;
|
|
824
|
+
height: 7px;
|
|
825
|
+
border: solid #fff;
|
|
826
|
+
/* 加粗线条 */
|
|
827
|
+
border-width: 0 2.5px 2.5px 0;
|
|
828
|
+
transform: translate(-50%, -65%) rotate(45deg);
|
|
829
|
+
}
|
|
830
|
+
.touchchat-dialog-content .touchchat-list-box .touchchat-list-content {
|
|
831
|
+
flex: 1;
|
|
832
|
+
}
|
|
833
|
+
.touchchat-dialog-content .touchchat-list-box .touchchat-list-content.status-select {
|
|
834
|
+
background-color: #eee;
|
|
835
|
+
}
|
|
836
|
+
.touchchat-dialog-content .touchchat-list-box .touchchat-list-content.select-mode * {
|
|
837
|
+
pointer-events: none;
|
|
838
|
+
}
|
|
782
839
|
.touchchat-dialog-withDraw {
|
|
783
840
|
text-align: center;
|
|
784
841
|
color: #868686;
|
|
@@ -892,6 +949,8 @@ table.touchchat-table tr:hover {
|
|
|
892
949
|
--user-read-content: '\ea42';
|
|
893
950
|
--user-is-read-content: '\e63c';
|
|
894
951
|
--quote-close-fill-content: '\e724';
|
|
952
|
+
--ai-may-like-item-icon-content: '\e72c';
|
|
953
|
+
--ai-may-like-item-icon-color: #000;
|
|
895
954
|
}
|
|
896
955
|
.touchchat-action-item {
|
|
897
956
|
position: relative;
|
|
@@ -950,6 +1009,14 @@ table.touchchat-table tr:hover {
|
|
|
950
1009
|
.touchchat-action-item.value-close-fill {
|
|
951
1010
|
--action-icon-content: var(--quote-close-fill-content);
|
|
952
1011
|
}
|
|
1012
|
+
.touchchat-action-item.value-right-arrow {
|
|
1013
|
+
--action-icon-content: var(--ai-may-like-item-icon-content);
|
|
1014
|
+
color: var(--ai-may-like-item-icon-color);
|
|
1015
|
+
}
|
|
1016
|
+
.touchchat-action-item.value-right-arrow:hover {
|
|
1017
|
+
background-color: transparent;
|
|
1018
|
+
color: var(--ai-may-like-item-icon-color);
|
|
1019
|
+
}
|
|
953
1020
|
.touchchat-action-item.value-good.is-on {
|
|
954
1021
|
--action-icon-content: var(--action-good-on-content);
|
|
955
1022
|
color: var(--action-good-on-color);
|