vue-intergrall-plugins 0.0.275 → 0.0.280

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 (40) hide show
  1. package/README.md +185 -185
  2. package/dist/vue-intergrall-plugins.esm.js +63 -59
  3. package/dist/vue-intergrall-plugins.min.js +1 -1
  4. package/dist/vue-intergrall-plugins.ssr.js +130 -126
  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 +412 -412
  9. package/src/lib-components/Cards/CardCheck.vue +35 -35
  10. package/src/lib-components/Cards/CardFile.vue +157 -157
  11. package/src/lib-components/Chat/BtnDownloadAllFiles.vue +32 -32
  12. package/src/lib-components/Chat/BtnEmojis.vue +124 -124
  13. package/src/lib-components/Chat/BtnExpand.vue +17 -17
  14. package/src/lib-components/Chat/BtnFiles.vue +415 -415
  15. package/src/lib-components/Chat/BtnMic.vue +60 -60
  16. package/src/lib-components/Chat/BtnScreenShare.vue +32 -32
  17. package/src/lib-components/Chat/BtnStandardMessages.vue +17 -17
  18. package/src/lib-components/Chat/ExpandTextarea.vue +410 -410
  19. package/src/lib-components/Chat/MultipleFilePreview.vue +266 -266
  20. package/src/lib-components/Chat/Picker.vue +368 -368
  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 +245 -245
  25. package/src/lib-components/Chat/TextFooter.vue +817 -817
  26. package/src/lib-components/Email/EmailFile.vue +125 -125
  27. package/src/lib-components/Email/EmailItem.vue +185 -185
  28. package/src/lib-components/Loader/Loader.vue +78 -78
  29. package/src/lib-components/Messages/AnexoMensagem.vue +385 -366
  30. package/src/lib-components/Messages/CardAttachment.vue +61 -61
  31. package/src/lib-components/Messages/CardMessages.vue +393 -393
  32. package/src/lib-components/Messages/ChatMessages.vue +573 -573
  33. package/src/lib-components/Messages/InteratividadeBotoes.vue +165 -165
  34. package/src/lib-components/Messages/InteratividadeFormulario.vue +392 -392
  35. package/src/lib-components/Messages/InteratividadePopup.vue +88 -88
  36. package/src/lib-components/Messages/LinkPreview.vue +163 -163
  37. package/src/lib-components/Scroll/ScrollContent.vue +150 -150
  38. package/src/lib-components/Templates/TemplateGenerator.vue +576 -576
  39. package/src/lib-components/Templates/TemplateMessage.vue +83 -83
  40. 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>