vue-intergrall-plugins 1.1.11 → 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 +52 -48
  3. package/dist/vue-intergrall-plugins.min.js +1 -1
  4. package/dist/vue-intergrall-plugins.ssr.js +125 -121
  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 -687
  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,118 +1,118 @@
1
- <template>
2
- <div class="emoji-text-container" v-clickaway="away">
3
- <div class="emoji-text-btn" @click="toggleEmojiSelection()" v-text="String.fromCodePoint(0x1f61c)"></div>
4
- <transition name="show-y">
5
- <Picker v-show="showEmojis" ref="sm-emoji-picker" @insert-emoji="insertEmoji" />
6
- </transition>
7
- </div>
8
- </template>
9
-
10
- <script>
11
- import Picker from "./Picker";
12
- import Clickaway from '@/directives/clickaway';
13
-
14
- export default {
15
- components: { Picker },
16
- directives: {
17
- clickaway: Clickaway
18
- },
19
- props: {
20
- emojiId: {
21
- type: String,
22
- required: true,
23
- },
24
- biggerTextarea: {
25
- type: Boolean,
26
- default: true,
27
- required: false,
28
- },
29
- small: {
30
- type: Boolean,
31
- default: false,
32
- required: false,
33
- },
34
- up: {
35
- type: Boolean,
36
- default: true,
37
- required: false,
38
- },
39
- down: {
40
- type: Boolean,
41
- default: false,
42
- required: false,
43
- },
44
- left: {
45
- type: Boolean,
46
- default: true,
47
- required: false,
48
- },
49
- },
50
- computed: {
51
- height() {
52
- if (this.small) return 225;
53
- return 325;
54
- },
55
- top() {
56
- if (!this.down) return -(this.height + (!this.biggerTextarea ? 5 : 30));
57
- return 40;
58
- },
59
- },
60
- data() {
61
- return {
62
- showEmojis: false,
63
- };
64
- },
65
- created() {
66
- this.$root.$refs[`etf-${this.emojiId}`] = this;
67
- },
68
- watch: {
69
- showEmojis() {
70
- if (this.showEmojis) this.setPosition("sm-emoji-picker");
71
- },
72
- },
73
- methods: {
74
- setPosition(refId) {
75
- try {
76
- this.$nextTick(() => {
77
- const elem = this.$refs[refId]
78
- ? this.$refs[refId].$el
79
- ? this.$refs[refId].$el
80
- : this.$refs[refId]
81
- : this.$refs[refId]
82
- ? this.$refs[refId]
83
- : false;
84
- if (elem) {
85
- elem.style.position = "absolute";
86
- elem.style.top = `${this.top}px`;
87
- elem.style.left = "0";
88
- elem.style.height = `${this.height}px`;
89
- }
90
- });
91
- } catch (e) {
92
- console.error("Erro ao setar a posicao dos emojis");
93
- console.error(e);
94
- }
95
- },
96
- insertEmoji(emoji) {
97
- this.$emit("insert-emoji", emoji);
98
- },
99
- toggleEmojiSelection() {
100
- this.showEmojis = !this.showEmojis;
101
- },
102
- away() {
103
- this.showEmojis = false;
104
- },
105
- },
106
- };
107
- </script>
108
-
109
- <style>
110
- .emoji-text-container {
111
- position: relative;
112
- }
113
-
114
- .emoji-text-container .emoji-text-btn {
115
- font-size: 19.2px;
116
- cursor: pointer;
117
- }
118
- </style>
1
+ <template>
2
+ <div class="emoji-text-container" v-clickaway="away">
3
+ <div class="emoji-text-btn" @click="toggleEmojiSelection()" v-text="String.fromCodePoint(0x1f61c)"></div>
4
+ <transition name="show-y">
5
+ <Picker v-show="showEmojis" ref="sm-emoji-picker" @insert-emoji="insertEmoji" />
6
+ </transition>
7
+ </div>
8
+ </template>
9
+
10
+ <script>
11
+ import Picker from "./Picker";
12
+ import Clickaway from '@/directives/clickaway';
13
+
14
+ export default {
15
+ components: { Picker },
16
+ directives: {
17
+ clickaway: Clickaway
18
+ },
19
+ props: {
20
+ emojiId: {
21
+ type: String,
22
+ required: true,
23
+ },
24
+ biggerTextarea: {
25
+ type: Boolean,
26
+ default: true,
27
+ required: false,
28
+ },
29
+ small: {
30
+ type: Boolean,
31
+ default: false,
32
+ required: false,
33
+ },
34
+ up: {
35
+ type: Boolean,
36
+ default: true,
37
+ required: false,
38
+ },
39
+ down: {
40
+ type: Boolean,
41
+ default: false,
42
+ required: false,
43
+ },
44
+ left: {
45
+ type: Boolean,
46
+ default: true,
47
+ required: false,
48
+ },
49
+ },
50
+ computed: {
51
+ height() {
52
+ if (this.small) return 225;
53
+ return 325;
54
+ },
55
+ top() {
56
+ if (!this.down) return -(this.height + (!this.biggerTextarea ? 5 : 30));
57
+ return 40;
58
+ },
59
+ },
60
+ data() {
61
+ return {
62
+ showEmojis: false,
63
+ };
64
+ },
65
+ created() {
66
+ this.$root.$refs[`etf-${this.emojiId}`] = this;
67
+ },
68
+ watch: {
69
+ showEmojis() {
70
+ if (this.showEmojis) this.setPosition("sm-emoji-picker");
71
+ },
72
+ },
73
+ methods: {
74
+ setPosition(refId) {
75
+ try {
76
+ this.$nextTick(() => {
77
+ const elem = this.$refs[refId]
78
+ ? this.$refs[refId].$el
79
+ ? this.$refs[refId].$el
80
+ : this.$refs[refId]
81
+ : this.$refs[refId]
82
+ ? this.$refs[refId]
83
+ : false;
84
+ if (elem) {
85
+ elem.style.position = "absolute";
86
+ elem.style.top = `${this.top}px`;
87
+ elem.style.left = "0";
88
+ elem.style.height = `${this.height}px`;
89
+ }
90
+ });
91
+ } catch (e) {
92
+ console.error("Erro ao setar a posicao dos emojis");
93
+ console.error(e);
94
+ }
95
+ },
96
+ insertEmoji(emoji) {
97
+ this.$emit("insert-emoji", emoji);
98
+ },
99
+ toggleEmojiSelection() {
100
+ this.showEmojis = !this.showEmojis;
101
+ },
102
+ away() {
103
+ this.showEmojis = false;
104
+ },
105
+ },
106
+ };
107
+ </script>
108
+
109
+ <style>
110
+ .emoji-text-container {
111
+ position: relative;
112
+ }
113
+
114
+ .emoji-text-container .emoji-text-btn {
115
+ font-size: 19.2px;
116
+ cursor: pointer;
117
+ }
118
+ </style>
@@ -1,17 +1,17 @@
1
- <template>
2
- <div class="text-footer-actions--btn" @click="$emit('expand-textarea')" :title="dictionary.title_expandir_textarea">
3
- <fa-icon :icon="['fas', 'expand-alt']" />
4
- </div>
5
- </template>
6
-
7
- <script>
8
- export default {
9
- props: {
10
- dictionary: {
11
- type: Object,
12
- default: {},
13
- required: false
14
- }
15
- }
16
- }
17
- </script>
1
+ <template>
2
+ <div class="text-footer-actions--btn" @click="$emit('expand-textarea')" :title="dictionary.title_expandir_textarea">
3
+ <fa-icon :icon="['fas', 'expand-alt']" />
4
+ </div>
5
+ </template>
6
+
7
+ <script>
8
+ export default {
9
+ props: {
10
+ dictionary: {
11
+ type: Object,
12
+ default: {},
13
+ required: false
14
+ }
15
+ }
16
+ }
17
+ </script>