@webitel/ui-chats 0.1.12 → 0.1.13
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/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<wt-
|
|
2
|
+
<wt-button
|
|
3
|
+
:size="size"
|
|
3
4
|
icon="attach"
|
|
5
|
+
variant="outlined"
|
|
4
6
|
color="secondary"
|
|
5
|
-
:size="size"
|
|
6
7
|
rounded
|
|
7
8
|
wide
|
|
8
9
|
@click="attachFilesInputRef!.click()"
|
|
@@ -17,18 +18,18 @@
|
|
|
17
18
|
</template>
|
|
18
19
|
|
|
19
20
|
<script setup lang="ts">
|
|
20
|
-
import {
|
|
21
|
-
import { ComponentSize } from
|
|
22
|
-
import { inject, useTemplateRef } from
|
|
21
|
+
import { WtButton } from '@webitel/ui-sdk/components';
|
|
22
|
+
import { ComponentSize } from '@webitel/ui-sdk/enums';
|
|
23
|
+
import { inject, useTemplateRef } from 'vue';
|
|
23
24
|
|
|
24
|
-
import { ChatAction } from
|
|
25
|
+
import { ChatAction } from '../../enums/ChatAction.enum';
|
|
25
26
|
|
|
26
|
-
const size = inject<ComponentSize>(
|
|
27
|
+
const size = inject<ComponentSize>('size');
|
|
27
28
|
|
|
28
29
|
const emit =
|
|
29
30
|
defineEmits<(e: typeof ChatAction.AttachFiles, files: File[]) => void>();
|
|
30
31
|
|
|
31
|
-
const attachFilesInputRef = useTemplateRef(
|
|
32
|
+
const attachFilesInputRef = useTemplateRef('attachFilesInput');
|
|
32
33
|
|
|
33
34
|
const handleAttachmentInputChange = (event: Event) => {
|
|
34
35
|
const files = (event.target as HTMLInputElement).files;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<wt-
|
|
3
|
-
icon="chat-send"
|
|
4
|
-
color="accent"
|
|
2
|
+
<wt-button
|
|
5
3
|
:size="size"
|
|
4
|
+
icon="chat-send"
|
|
5
|
+
color="secondary"
|
|
6
|
+
variant="outlined"
|
|
6
7
|
rounded
|
|
7
8
|
wide
|
|
8
9
|
@click="emit(ChatAction.SendMessage)"
|
|
@@ -10,12 +11,13 @@
|
|
|
10
11
|
</template>
|
|
11
12
|
|
|
12
13
|
<script setup lang="ts">
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
14
|
+
import { WtButton } from '@webitel/ui-sdk/components';
|
|
15
|
+
import { ComponentSize } from '@webitel/ui-sdk/enums';
|
|
16
|
+
import { inject } from 'vue';
|
|
15
17
|
|
|
16
|
-
import { ChatAction } from
|
|
18
|
+
import { ChatAction } from '../../enums/ChatAction.enum';
|
|
17
19
|
|
|
18
|
-
const size = inject<ComponentSize>(
|
|
20
|
+
const size = inject<ComponentSize>('size');
|
|
19
21
|
|
|
20
22
|
const emit = defineEmits<(e: typeof ChatAction.SendMessage) => void>();
|
|
21
23
|
</script>
|