vue-intergrall-plugins 0.0.286 → 0.0.287
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/README.md +185 -185
- package/dist/vue-intergrall-plugins.esm.js +502 -398
- package/dist/vue-intergrall-plugins.min.js +1 -1
- package/dist/vue-intergrall-plugins.ssr.js +521 -433
- package/package.json +65 -65
- package/src/lib-components/Buttons/IconButton.vue +27 -27
- package/src/lib-components/Buttons/SimpleButton.vue +140 -140
- package/src/lib-components/Cards/Card.vue +412 -412
- package/src/lib-components/Cards/CardCheck.vue +35 -35
- package/src/lib-components/Cards/CardFile.vue +157 -157
- package/src/lib-components/Chat/AudioSpeedControl.vue +60 -0
- package/src/lib-components/Chat/BtnDownloadAllFiles.vue +32 -32
- package/src/lib-components/Chat/BtnEmojis.vue +124 -124
- package/src/lib-components/Chat/BtnExpand.vue +17 -17
- package/src/lib-components/Chat/BtnFiles.vue +415 -415
- package/src/lib-components/Chat/BtnMic.vue +60 -60
- package/src/lib-components/Chat/BtnScreenShare.vue +32 -32
- package/src/lib-components/Chat/BtnStandardMessages.vue +17 -17
- package/src/lib-components/Chat/ExpandTextarea.vue +410 -410
- package/src/lib-components/Chat/MultipleFilePreview.vue +266 -266
- package/src/lib-components/Chat/Picker.vue +368 -368
- package/src/lib-components/Chat/RemainingCharacters.vue +28 -28
- package/src/lib-components/Chat/SingleFilePreview.vue +94 -94
- package/src/lib-components/Chat/SkeletonPicker.vue +110 -110
- package/src/lib-components/Chat/StandardMessages.vue +245 -245
- package/src/lib-components/Chat/TextFooter.vue +1075 -817
- package/src/lib-components/Email/EmailFile.vue +125 -125
- package/src/lib-components/Email/EmailItem.vue +185 -185
- package/src/lib-components/Loader/Loader.vue +78 -78
- package/src/lib-components/Messages/AnexoMensagem.vue +459 -385
- package/src/lib-components/Messages/CardAttachment.vue +61 -61
- package/src/lib-components/Messages/CardMessages.vue +460 -460
- package/src/lib-components/Messages/ChatMessages.vue +715 -715
- package/src/lib-components/Messages/InteratividadeBotoes.vue +165 -165
- package/src/lib-components/Messages/InteratividadeFormulario.vue +392 -392
- package/src/lib-components/Messages/InteratividadePopup.vue +88 -88
- package/src/lib-components/Messages/LinkPreview.vue +163 -163
- package/src/lib-components/Scroll/ScrollContent.vue +150 -150
- package/src/lib-components/Templates/TemplateGenerator.vue +576 -576
- package/src/lib-components/Templates/TemplateMessage.vue +83 -83
- package/src/lib-components/Templates/TemplateSingle.vue +481 -481
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="ts-container">
|
|
3
|
-
<div class="ts-content">
|
|
4
|
-
<section :class="{'tm-container custom-box-shadow-bottom' : hasButton}">
|
|
5
|
-
<TextFooter
|
|
6
|
-
:textId="'var_1'"
|
|
7
|
-
width="full"
|
|
8
|
-
:openEmojisFrom="'top'"
|
|
9
|
-
:smallEmojis="true"
|
|
10
|
-
@final-message="preencherMensagem"
|
|
11
|
-
:placeholderMessage="'Escreva sua mensagem'"
|
|
12
|
-
:ignoreHideTextarea="true"
|
|
13
|
-
:dictionary="dictionary"
|
|
14
|
-
ref="text-footer-template-message"
|
|
15
|
-
></TextFooter>
|
|
16
|
-
<div class="tg-btn" :class="{'small-btn' : iconButton}" v-if="hasButton">
|
|
17
|
-
<button @click="sendMessage">
|
|
18
|
-
<template v-if="!iconButton"> {{ dictionary.btn_contatar_clientes }} </template>
|
|
19
|
-
<fa-icon v-else :icon="['fas', 'paper-plane']" />
|
|
20
|
-
</button>
|
|
21
|
-
</div>
|
|
22
|
-
</section>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
</template>
|
|
26
|
-
|
|
27
|
-
<script>
|
|
28
|
-
import TextFooter from "../Chat/TextFooter"
|
|
29
|
-
|
|
30
|
-
export default {
|
|
31
|
-
components: { TextFooter },
|
|
32
|
-
data() {
|
|
33
|
-
return {
|
|
34
|
-
message: ""
|
|
35
|
-
};
|
|
36
|
-
},
|
|
37
|
-
props: {
|
|
38
|
-
hasButton: {
|
|
39
|
-
type: Boolean,
|
|
40
|
-
required: false
|
|
41
|
-
},
|
|
42
|
-
iconButton: {
|
|
43
|
-
type: Boolean,
|
|
44
|
-
required: false
|
|
45
|
-
},
|
|
46
|
-
dictionary: {
|
|
47
|
-
type: Object,
|
|
48
|
-
required: true
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
mounted() {
|
|
52
|
-
this.initFocus()
|
|
53
|
-
},
|
|
54
|
-
methods: {
|
|
55
|
-
initFocus() {
|
|
56
|
-
this.$nextTick(() => {
|
|
57
|
-
if(this.$refs["text-footer-template-message"] && this.$refs["text-footer-template-message"].$el) {
|
|
58
|
-
this.$refs["text-footer-template-message"].$el.querySelector("textarea").focus()
|
|
59
|
-
}
|
|
60
|
-
})
|
|
61
|
-
},
|
|
62
|
-
sendMessage() {
|
|
63
|
-
this.$emit('click-trigger')
|
|
64
|
-
},
|
|
65
|
-
preencherMensagem (mensagem) {
|
|
66
|
-
this.message = mensagem
|
|
67
|
-
this.$emit("final-message", mensagem)
|
|
68
|
-
},
|
|
69
|
-
toggleClass() {
|
|
70
|
-
const elem = this.$refs[`float-container-1`]
|
|
71
|
-
? this.$refs[`float-container-1`][0]
|
|
72
|
-
: false;
|
|
73
|
-
if (elem) {
|
|
74
|
-
if (elem.children[1] && elem.children[1].value) {
|
|
75
|
-
elem.classList.add("active");
|
|
76
|
-
} else {
|
|
77
|
-
elem.classList.toggle("active");
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="ts-container">
|
|
3
|
+
<div class="ts-content">
|
|
4
|
+
<section :class="{'tm-container custom-box-shadow-bottom' : hasButton}">
|
|
5
|
+
<TextFooter
|
|
6
|
+
:textId="'var_1'"
|
|
7
|
+
width="full"
|
|
8
|
+
:openEmojisFrom="'top'"
|
|
9
|
+
:smallEmojis="true"
|
|
10
|
+
@final-message="preencherMensagem"
|
|
11
|
+
:placeholderMessage="'Escreva sua mensagem'"
|
|
12
|
+
:ignoreHideTextarea="true"
|
|
13
|
+
:dictionary="dictionary"
|
|
14
|
+
ref="text-footer-template-message"
|
|
15
|
+
></TextFooter>
|
|
16
|
+
<div class="tg-btn" :class="{'small-btn' : iconButton}" v-if="hasButton">
|
|
17
|
+
<button @click="sendMessage">
|
|
18
|
+
<template v-if="!iconButton"> {{ dictionary.btn_contatar_clientes }} </template>
|
|
19
|
+
<fa-icon v-else :icon="['fas', 'paper-plane']" />
|
|
20
|
+
</button>
|
|
21
|
+
</div>
|
|
22
|
+
</section>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</template>
|
|
26
|
+
|
|
27
|
+
<script>
|
|
28
|
+
import TextFooter from "../Chat/TextFooter"
|
|
29
|
+
|
|
30
|
+
export default {
|
|
31
|
+
components: { TextFooter },
|
|
32
|
+
data() {
|
|
33
|
+
return {
|
|
34
|
+
message: ""
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
props: {
|
|
38
|
+
hasButton: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
required: false
|
|
41
|
+
},
|
|
42
|
+
iconButton: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
required: false
|
|
45
|
+
},
|
|
46
|
+
dictionary: {
|
|
47
|
+
type: Object,
|
|
48
|
+
required: true
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
mounted() {
|
|
52
|
+
this.initFocus()
|
|
53
|
+
},
|
|
54
|
+
methods: {
|
|
55
|
+
initFocus() {
|
|
56
|
+
this.$nextTick(() => {
|
|
57
|
+
if(this.$refs["text-footer-template-message"] && this.$refs["text-footer-template-message"].$el) {
|
|
58
|
+
this.$refs["text-footer-template-message"].$el.querySelector("textarea").focus()
|
|
59
|
+
}
|
|
60
|
+
})
|
|
61
|
+
},
|
|
62
|
+
sendMessage() {
|
|
63
|
+
this.$emit('click-trigger')
|
|
64
|
+
},
|
|
65
|
+
preencherMensagem (mensagem) {
|
|
66
|
+
this.message = mensagem
|
|
67
|
+
this.$emit("final-message", mensagem)
|
|
68
|
+
},
|
|
69
|
+
toggleClass() {
|
|
70
|
+
const elem = this.$refs[`float-container-1`]
|
|
71
|
+
? this.$refs[`float-container-1`][0]
|
|
72
|
+
: false;
|
|
73
|
+
if (elem) {
|
|
74
|
+
if (elem.children[1] && elem.children[1].value) {
|
|
75
|
+
elem.classList.add("active");
|
|
76
|
+
} else {
|
|
77
|
+
elem.classList.toggle("active");
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
</script>
|