vue-wiguet-chatweb 0.1.23 → 0.1.24
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/App.vue.d.ts +2 -0
- package/dist/components/Chat.vue.d.ts +16 -6
- package/dist/components/ChatMessage.vue.d.ts +12 -0
- package/dist/components/DangerIcon.vue.d.ts +1 -1
- package/dist/components/IconAttach.vue.d.ts +2 -0
- package/dist/components/IconChat.vue.d.ts +1 -1
- package/dist/components/IconClose.vue.d.ts +1 -1
- package/dist/components/IconSend.vue.d.ts +1 -1
- package/dist/components/IconTelegram.vue.d.ts +1 -1
- package/dist/components/IconWhatsApp.vue.d.ts +1 -1
- package/dist/components/IconWidget.vue.d.ts +1 -1
- package/dist/components/Loader.vue.d.ts +1 -1
- package/dist/components/LoadingComponent.vue.d.ts +21 -0
- package/dist/components/MessageList.vue.d.ts +12 -6
- package/dist/components/ODialog/IPropsDialog.d.ts +6 -0
- package/dist/components/ODialog/IPropsSidebar.d.ts +14 -0
- package/dist/components/ODialog/ODialog.vue.d.ts +26 -0
- package/dist/components/Widget.vue.d.ts +10 -6
- package/dist/components/sidebar/SidebarHeader.vue.d.ts +36 -0
- package/dist/dto/app.dto.d.ts +9 -1
- package/dist/hooks/useMobile.d.ts +3 -0
- package/dist/index.d.ts +1 -1
- package/dist/store/config.d.ts +1 -1
- package/dist/store/index.d.ts +1 -4
- package/dist/style.css +1 -1
- package/dist/vue-wiguet-chatweb.js +3296 -2622
- package/dist/vue-wiguet-chatweb.umd.cjs +17 -7
- package/package.json +7 -7
- package/src/components/Chat.vue +147 -53
- package/src/components/IconAttach.vue +24 -0
- package/src/components/IconSend.vue +1 -1
- package/src/components/LoadingComponent.vue +111 -0
- package/src/components/MessageList.vue +22 -4
- package/src/components/ODialog/IPropsDialog.ts +10 -0
- package/src/components/ODialog/IPropsSidebar.ts +17 -0
- package/src/components/ODialog/ODialog.vue +82 -0
- package/src/components/sidebar/SidebarHeader.vue +40 -0
@@ -0,0 +1,40 @@
|
|
1
|
+
<template>
|
2
|
+
<header class="flex justify-between items-center border-b-2 p-2 pl-4 pb-0">
|
3
|
+
<slot name="content">
|
4
|
+
<span class="text-gray-500 dark:text-gray-200 text-xl font-roboto font-medium">
|
5
|
+
{{ props.title }}
|
6
|
+
</span>
|
7
|
+
</slot>
|
8
|
+
<Button
|
9
|
+
icon="pi pi-times"
|
10
|
+
severity="secondary"
|
11
|
+
text
|
12
|
+
rounded
|
13
|
+
aria-label="Cancel"
|
14
|
+
@click="props.closeFn"
|
15
|
+
>
|
16
|
+
<template #icon>
|
17
|
+
<IconClose />
|
18
|
+
</template>
|
19
|
+
</Button>
|
20
|
+
</header>
|
21
|
+
</template>
|
22
|
+
|
23
|
+
<script setup lang="ts">
|
24
|
+
import Button from 'primevue/button';
|
25
|
+
import IconClose from '../IconClose.vue';
|
26
|
+
import { PropType } from 'vue';
|
27
|
+
|
28
|
+
const props = defineProps({
|
29
|
+
closeFn: {
|
30
|
+
type: Function as PropType<(event: Event) => void>,
|
31
|
+
required: true,
|
32
|
+
},
|
33
|
+
title: {
|
34
|
+
type: String,
|
35
|
+
required: false,
|
36
|
+
},
|
37
|
+
});
|
38
|
+
</script>
|
39
|
+
|
40
|
+
<style scoped></style>
|