vue-wiguet-chatweb 0.0.7 → 0.0.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.
- package/dist/components/Chat.vue.d.ts +11 -1
- package/dist/components/Widget.vue.d.ts +6 -0
- package/dist/style.css +1 -1
- package/dist/vue-wiguet-chatweb.js +822 -815
- package/dist/vue-wiguet-chatweb.umd.cjs +5 -5
- package/package.json +1 -1
- package/src/components/Chat.vue +4 -3
- package/src/components/Widget.vue +3 -2
package/package.json
CHANGED
package/src/components/Chat.vue
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
<template>
|
2
2
|
<div class="widget">
|
3
3
|
<div class="header-widget">
|
4
|
-
<
|
5
|
-
<IconClose @click="toggleChat()"/>
|
4
|
+
<h4 class="title-chat">{{ titlePrincipal }}</h4>
|
5
|
+
<IconClose class="pointer" @click="toggleChat()"/>
|
6
6
|
</div>
|
7
7
|
<div class="messages-container" id="messages-container" ref="messagesContainer">
|
8
8
|
<chat-message class="message" v-for="(message, index) in messages" :key="index" :message="message">
|
@@ -16,7 +16,7 @@
|
|
16
16
|
</button>
|
17
17
|
<div class="jl-inputgroup-chat">
|
18
18
|
<input v-model="message" class="jl2-input-chat" required/>
|
19
|
-
<button type="submit">
|
19
|
+
<button type="submit" class="pointer">
|
20
20
|
<IconSend/>
|
21
21
|
</button>
|
22
22
|
</div>
|
@@ -46,6 +46,7 @@ const messages:any = ref([]);
|
|
46
46
|
const virtualHost:any = ref({virtualhost:''});
|
47
47
|
|
48
48
|
const props = defineProps({
|
49
|
+
titlePrincipal:{ type: String,default:'Comunicación en linea para consultas' },
|
49
50
|
toggleChat:{ type: Function, required: true },
|
50
51
|
tokenAuth:{ type: String, required: true },
|
51
52
|
phoneUser:{ type: String, required: true }
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<IconWidget />
|
6
6
|
</div>
|
7
7
|
<div class="chat-box" v-if="isChatBoxVisible">
|
8
|
-
<Chat :toggleChat="toggleChat" :tokenAuth="tokenAuth" :phoneUser="phoneUser" />
|
8
|
+
<Chat :titlePrincipal="titlePrincipal" :toggleChat="toggleChat" :tokenAuth="tokenAuth" :phoneUser="phoneUser" />
|
9
9
|
</div>
|
10
10
|
</div>
|
11
11
|
</div>
|
@@ -23,7 +23,8 @@ const toggleChat = () => {
|
|
23
23
|
|
24
24
|
defineProps({
|
25
25
|
tokenAuth:{ type: String, required: true },
|
26
|
-
phoneUser:{ type: String, required: true }
|
26
|
+
phoneUser:{ type: String, required: true },
|
27
|
+
titlePrincipal:{ type: String }
|
27
28
|
});
|
28
29
|
|
29
30
|
</script>
|