vue-intergrall-plugins 1.1.10 → 1.1.12

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.
Files changed (44) hide show
  1. package/README.md +220 -220
  2. package/dist/vue-intergrall-plugins.esm.js +54 -50
  3. package/dist/vue-intergrall-plugins.min.js +1 -1
  4. package/dist/vue-intergrall-plugins.ssr.js +126 -122
  5. package/package.json +66 -66
  6. package/src/lib-components/Buttons/IconButton.vue +27 -27
  7. package/src/lib-components/Buttons/SimpleButton.vue +140 -140
  8. package/src/lib-components/Cards/Card.vue +490 -490
  9. package/src/lib-components/Cards/CardCheck.vue +35 -35
  10. package/src/lib-components/Cards/CardFile.vue +163 -163
  11. package/src/lib-components/Chat/BtnDownloadAllFiles.vue +36 -36
  12. package/src/lib-components/Chat/BtnEmojis.vue +118 -118
  13. package/src/lib-components/Chat/BtnExpand.vue +17 -17
  14. package/src/lib-components/Chat/BtnFiles.vue +486 -486
  15. package/src/lib-components/Chat/BtnMic.vue +60 -60
  16. package/src/lib-components/Chat/BtnScreenShare.vue +31 -31
  17. package/src/lib-components/Chat/BtnStandardMessages.vue +17 -17
  18. package/src/lib-components/Chat/ExpandTextarea.vue +427 -427
  19. package/src/lib-components/Chat/MultipleFilePreview.vue +291 -291
  20. package/src/lib-components/Chat/Picker.vue +405 -405
  21. package/src/lib-components/Chat/RemainingCharacters.vue +28 -28
  22. package/src/lib-components/Chat/SingleFilePreview.vue +94 -94
  23. package/src/lib-components/Chat/SkeletonPicker.vue +110 -110
  24. package/src/lib-components/Chat/StandardMessages.vue +252 -252
  25. package/src/lib-components/Chat/TextFooter.vue +1007 -1007
  26. package/src/lib-components/Email/EmailExpanded.vue +270 -270
  27. package/src/lib-components/Email/EmailFile.vue +192 -192
  28. package/src/lib-components/Email/EmailFrom.vue +66 -66
  29. package/src/lib-components/Email/EmailItem.vue +937 -933
  30. package/src/lib-components/Email/EmailTo.vue +57 -57
  31. package/src/lib-components/Loader/Loader.vue +78 -78
  32. package/src/lib-components/Messages/AnexoMensagem.vue +415 -415
  33. package/src/lib-components/Messages/CardAttachment.vue +61 -61
  34. package/src/lib-components/Messages/CardMessages.vue +687 -684
  35. package/src/lib-components/Messages/InteratividadeBotoes.vue +199 -199
  36. package/src/lib-components/Messages/InteratividadeContato.vue +32 -32
  37. package/src/lib-components/Messages/InteratividadeContatoItem.vue +213 -213
  38. package/src/lib-components/Messages/InteratividadeFormulario.vue +334 -334
  39. package/src/lib-components/Messages/InteratividadePopup.vue +95 -95
  40. package/src/lib-components/Messages/LinkPreview.vue +176 -176
  41. package/src/lib-components/Scroll/ScrollContent.vue +166 -166
  42. package/src/lib-components/Templates/TemplateGenerator.vue +640 -640
  43. package/src/lib-components/Templates/TemplateMessage.vue +83 -83
  44. 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>