vue-wiguet-chatweb 0.1.32 → 0.1.34
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
package/src/components/Chat.vue
CHANGED
@@ -92,7 +92,7 @@
|
|
92
92
|
class="message-send"
|
93
93
|
@submit.prevent="
|
94
94
|
(event) => {
|
95
|
-
submitMessage();
|
95
|
+
submitMessage({ codigoTipoMensaje: MESSAGE_TYPE_CODES.IMAGEN});
|
96
96
|
dialog.modelValue = false;
|
97
97
|
}
|
98
98
|
"
|
@@ -598,6 +598,10 @@ function onFileSelect() {
|
|
598
598
|
currentDialogView.value = DIALOG_VIEWS.UPLOAD;
|
599
599
|
dialog.title = 'Preparar imagen';
|
600
600
|
dialog.modelValue = true;
|
601
|
+
|
602
|
+
nextTick(()=>{
|
603
|
+
textAreaRef.value?.focus()
|
604
|
+
})
|
601
605
|
}
|
602
606
|
|
603
607
|
// Dialog
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<template>
|
2
2
|
<svg width="87" height="87" viewBox="0 0 87 87" fill="none" xmlns="http://www.w3.org/2000/svg">
|
3
3
|
<g filter="url(#filter0_d_4007_3488)">
|
4
|
-
<path d="M43.5 77C64.2107 77 81 60.2107 81 39.5C81 18.7893 64.2107 2 43.5 2C22.7893 2 6 18.7893 6 39.5C6 60.2107 22.7893 77 43.5 77Z" fill="white" stroke="
|
5
|
-
<path d="M39.705 38.885C40.6908 38.885 41.49 38.0858 41.49 37.1C41.49 36.1142 40.6908 35.315 39.705 35.315C38.7192 35.315 37.92 36.1142 37.92 37.1C37.92 38.0858 38.7192 38.885 39.705 38.885Z" fill="
|
6
|
-
<path d="M45.075 38.885C46.0608 38.885 46.86 38.0858 46.86 37.1C46.86 36.1142 46.0608 35.315 45.075 35.315C44.0892 35.315 43.29 36.1142 43.29 37.1C43.29 38.0858 44.0892 38.885 45.075 38.885Z" fill="
|
7
|
-
<path d="M50.445 38.885C51.4308 38.885 52.23 38.0858 52.23 37.1C52.23 36.1142 51.4308 35.315 50.445 35.315C49.4592 35.315 48.66 36.1142 48.66 37.1C48.66 38.0858 49.4592 38.885 50.445 38.885Z" fill="
|
8
|
-
<path d="M63.27 58.235L58.755 47.78C61.125 44.765 62.415 40.97 62.415 37.175C62.415 26.435 52.665 18.185 41.925 20.12C39.99 19.325 37.98 18.905 35.835 18.905C26.955 18.905 19.785 26.135 19.785 34.955C19.785 38.54 21 41.975 23.145 44.765L18.99 54.44C18.84 54.8 18.915 55.235 19.2 55.445C19.485 55.73 19.92 55.73 20.205 55.595L30.6 50.15C31.89 50.585 33.255 50.87 34.68 50.945C39.48 54.53 45.57 55.25 50.655 53.45L61.905 59.33C62.265 59.48 62.625 59.48 62.91 59.18C63.345 58.97 63.405 58.61 63.27 58.25V58.235ZM51.24 51.71C51.03 51.56 50.745 51.56 50.52 51.635C48.795 52.28 46.935 52.64 45.15 52.64C36.69 52.64 29.61 45.755 29.61 37.1C29.61 29.72 34.845 23.345 42.075 21.845C51.75 19.91 60.705 27.29 60.705 37.1C60.705 40.685 59.415 44.27 57.12 46.985C56.91 47.27 56.835 47.63 56.97 47.915L60.69 56.585L51.24 51.71Z" fill="
|
4
|
+
<path d="M43.5 77C64.2107 77 81 60.2107 81 39.5C81 18.7893 64.2107 2 43.5 2C22.7893 2 6 18.7893 6 39.5C6 60.2107 22.7893 77 43.5 77Z" fill="white" stroke="currentColor" stroke-width="3" stroke-miterlimit="10"/>
|
5
|
+
<path d="M39.705 38.885C40.6908 38.885 41.49 38.0858 41.49 37.1C41.49 36.1142 40.6908 35.315 39.705 35.315C38.7192 35.315 37.92 36.1142 37.92 37.1C37.92 38.0858 38.7192 38.885 39.705 38.885Z" fill="currentColor"/>
|
6
|
+
<path d="M45.075 38.885C46.0608 38.885 46.86 38.0858 46.86 37.1C46.86 36.1142 46.0608 35.315 45.075 35.315C44.0892 35.315 43.29 36.1142 43.29 37.1C43.29 38.0858 44.0892 38.885 45.075 38.885Z" fill="currentColor"/>
|
7
|
+
<path d="M50.445 38.885C51.4308 38.885 52.23 38.0858 52.23 37.1C52.23 36.1142 51.4308 35.315 50.445 35.315C49.4592 35.315 48.66 36.1142 48.66 37.1C48.66 38.0858 49.4592 38.885 50.445 38.885Z" fill="currentColor"/>
|
8
|
+
<path d="M63.27 58.235L58.755 47.78C61.125 44.765 62.415 40.97 62.415 37.175C62.415 26.435 52.665 18.185 41.925 20.12C39.99 19.325 37.98 18.905 35.835 18.905C26.955 18.905 19.785 26.135 19.785 34.955C19.785 38.54 21 41.975 23.145 44.765L18.99 54.44C18.84 54.8 18.915 55.235 19.2 55.445C19.485 55.73 19.92 55.73 20.205 55.595L30.6 50.15C31.89 50.585 33.255 50.87 34.68 50.945C39.48 54.53 45.57 55.25 50.655 53.45L61.905 59.33C62.265 59.48 62.625 59.48 62.91 59.18C63.345 58.97 63.405 58.61 63.27 58.25V58.235ZM51.24 51.71C51.03 51.56 50.745 51.56 50.52 51.635C48.795 52.28 46.935 52.64 45.15 52.64C36.69 52.64 29.61 45.755 29.61 37.1C29.61 29.72 34.845 23.345 42.075 21.845C51.75 19.91 60.705 27.29 60.705 37.1C60.705 40.685 59.415 44.27 57.12 46.985C56.91 47.27 56.835 47.63 56.97 47.915L60.69 56.585L51.24 51.71Z" fill="currentColor"/>
|
9
9
|
</g>
|
10
10
|
<defs>
|
11
11
|
<filter id="filter0_d_4007_3488" x="0.5" y="0.5" width="86" height="86" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
@@ -32,7 +32,7 @@
|
|
32
32
|
<div class="new-message-badge" v-if="newMessages" >
|
33
33
|
{{ newMessages > 9 ? "9+" : newMessages }}
|
34
34
|
</div>
|
35
|
-
<a href="javascript:;" @click="props.tokenAuth.length > 10 && toggleChat()">
|
35
|
+
<a href="javascript:;" @click="props.tokenAuth.length > 10 && toggleChat()" class="btn-primary">
|
36
36
|
<IconWidget />
|
37
37
|
</a>
|
38
38
|
</div>
|
@@ -184,4 +184,13 @@ const props = defineProps({
|
|
184
184
|
top: -4px;
|
185
185
|
z-index: 2;
|
186
186
|
}
|
187
|
+
|
188
|
+
.btn-primary {
|
189
|
+
color: var(--primary-color);
|
190
|
+
&:hover {
|
191
|
+
opacity: .7;
|
192
|
+
}
|
193
|
+
}
|
194
|
+
|
195
|
+
|
187
196
|
</style>
|