vue-intergrall-plugins 1.1.90 → 1.2.0
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 +220 -220
- package/dist/dist/vue-intergrall-plugins.css +1 -1
- package/dist/vue-intergrall-plugins.esm.js +193 -78
- package/dist/vue-intergrall-plugins.min.js +7 -7
- package/dist/vue-intergrall-plugins.ssr.js +245 -136
- package/package.json +61 -61
- 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 +490 -490
- package/src/lib-components/Cards/CardCheck.vue +35 -35
- package/src/lib-components/Cards/CardFile.vue +163 -163
- package/src/lib-components/Chat/BtnDownloadAllFiles.vue +36 -36
- package/src/lib-components/Chat/BtnEmojis.vue +118 -118
- package/src/lib-components/Chat/BtnExpand.vue +17 -17
- package/src/lib-components/Chat/BtnFiles.vue +486 -486
- package/src/lib-components/Chat/BtnMic.vue +60 -60
- package/src/lib-components/Chat/BtnScreenShare.vue +31 -31
- package/src/lib-components/Chat/BtnStandardMessages.vue +17 -17
- package/src/lib-components/Chat/ExpandTextarea.vue +427 -427
- package/src/lib-components/Chat/MultipleFilePreview.vue +291 -291
- package/src/lib-components/Chat/Picker.vue +525 -525
- 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 +252 -252
- package/src/lib-components/Chat/TextFooter.vue +1007 -1007
- package/src/lib-components/Email/EmailExpanded.vue +270 -270
- package/src/lib-components/Email/EmailFile.vue +192 -192
- package/src/lib-components/Email/EmailFrom.vue +66 -66
- package/src/lib-components/Email/EmailItem.vue +867 -850
- package/src/lib-components/Email/EmailTo.vue +64 -64
- package/src/lib-components/Loader/Loader.vue +78 -78
- package/src/lib-components/Messages/AnexoMensagem.vue +534 -497
- package/src/lib-components/Messages/CardAttachment.vue +61 -61
- package/src/lib-components/Messages/CardMessages.vue +687 -687
- package/src/lib-components/Messages/InteratividadeBotoes.vue +197 -197
- package/src/lib-components/Messages/InteratividadeContato.vue +32 -32
- package/src/lib-components/Messages/InteratividadeContatoItem.vue +235 -235
- package/src/lib-components/Messages/InteratividadeFormulario.vue +334 -334
- package/src/lib-components/Messages/InteratividadePopup.vue +95 -95
- package/src/lib-components/Messages/LinkPreview.vue +176 -176
- package/src/lib-components/Scroll/ScrollContent.vue +166 -166
- package/src/lib-components/Templates/TemplateGenerator.vue +640 -640
- package/src/lib-components/Templates/TemplateMessage.vue +83 -83
- package/src/lib-components/Templates/TemplateSingle.vue +478 -478
|
@@ -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>
|