vue-intergrall-plugins 0.0.505 → 0.0.510

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 (41) hide show
  1. package/README.md +185 -185
  2. package/dist/vue-intergrall-plugins.esm.js +587 -512
  3. package/dist/vue-intergrall-plugins.min.js +1 -1
  4. package/dist/vue-intergrall-plugins.ssr.js +598 -540
  5. package/package.json +67 -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 +429 -429
  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 +36 -36
  12. package/src/lib-components/Chat/BtnEmojis.vue +131 -131
  13. package/src/lib-components/Chat/BtnExpand.vue +17 -17
  14. package/src/lib-components/Chat/BtnFiles.vue +541 -541
  15. package/src/lib-components/Chat/BtnMic.vue +60 -60
  16. package/src/lib-components/Chat/BtnScreenShare.vue +36 -36
  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 +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 +245 -245
  25. package/src/lib-components/Chat/TextFooter.vue +1030 -1030
  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 +442 -442
  30. package/src/lib-components/Messages/CardAttachment.vue +61 -61
  31. package/src/lib-components/Messages/CardMessages.vue +666 -666
  32. package/src/lib-components/Messages/ChatMessages.vue +1082 -1082
  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/Midea/Player.vue +25 -0
  38. package/src/lib-components/Scroll/ScrollContent.vue +166 -166
  39. package/src/lib-components/Templates/TemplateGenerator.vue +576 -576
  40. package/src/lib-components/Templates/TemplateMessage.vue +83 -83
  41. package/src/lib-components/Templates/TemplateSingle.vue +481 -481
@@ -1,131 +1,131 @@
1
- <template>
2
- <div class="emoji-text-container" v-on-clickaway="away">
3
- <div
4
- class="emoji-text-btn"
5
- @click="toggleEmojiSelection()"
6
- v-text="String.fromCodePoint(0x1f61c)"
7
- ></div>
8
- <transition name="show-y">
9
- <Picker v-show="showEmojis" ref="sm-emoji-picker" @insert-emoji="insertEmoji" />
10
- </transition>
11
- </div>
12
- </template>
13
-
14
- <script>
15
- import Picker from "./Picker";
16
- import { mixin as clickaway } from "vue-clickaway";
17
-
18
- export default {
19
- components: { Picker },
20
- mixins: [clickaway],
21
- props: {
22
- emojiId: {
23
- type: String,
24
- required: true,
25
- },
26
- biggerTextarea: {
27
- type: Boolean,
28
- default: true,
29
- required: false,
30
- },
31
- small: {
32
- type: Boolean,
33
- default: false,
34
- required: false,
35
- },
36
- up: {
37
- type: Boolean,
38
- default: true,
39
- required: false,
40
- },
41
- down: {
42
- type: Boolean,
43
- default: false,
44
- required: false,
45
- },
46
- left: {
47
- type: Boolean,
48
- default: true,
49
- required: false,
50
- },
51
- },
52
- computed: {
53
- height() {
54
- if (this.small) return 225;
55
- return 325;
56
- },
57
- top() {
58
- if (!this.down) return -(this.height + (!this.biggerTextarea ? 5 : 30));
59
- return 40;
60
- },
61
- },
62
- data() {
63
- return {
64
- showEmojis: false,
65
- };
66
- },
67
- created() {
68
- this.$root.$refs[`etf-${this.emojiId}`] = this;
69
- },
70
- watch: {
71
- showEmojis() {
72
- if (this.showEmojis) this.setPosition("sm-emoji-picker");
73
- },
74
- },
75
- methods: {
76
- setPosition(refId) {
77
- try {
78
- this.$nextTick(() => {
79
- const elem = this.$refs[refId]
80
- ? this.$refs[refId].$el
81
- ? this.$refs[refId].$el
82
- : this.$refs[refId]
83
- : this.$refs[refId]
84
- ? this.$refs[refId]
85
- : false;
86
- if (elem) {
87
- elem.style.position = "absolute";
88
- elem.style.top = `${this.top}px`;
89
- elem.style.left = "0";
90
- elem.style.height = `${this.height}px`;
91
- }
92
- });
93
- } catch (e) {
94
- console.error("Erro ao setar a posicao dos emojis");
95
- console.error(e);
96
- }
97
- },
98
- insertEmoji(emoji) {
99
- this.$emit("insert-emoji", emoji);
100
- },
101
- toggleEmojiSelection() {
102
- this.showEmojis = !this.showEmojis;
103
- },
104
- away() {
105
- this.showEmojis = false;
106
- },
107
- },
108
- };
109
- </script>
110
-
111
- <style>
112
- .show-y-enter-active,
113
- .show-y-leave-enter {
114
- opacity: 1;
115
- transform: translateY(0);
116
- transition: all 200ms linear;
117
- }
118
- .show-y-enter,
119
- .show-y-leave-to {
120
- opacity: 0;
121
- transform: translateY(5%);
122
- }
123
-
124
- .emoji-text-container {
125
- position: relative;
126
- }
127
- .emoji-text-container .emoji-text-btn {
128
- font-size: 19.2px;
129
- cursor: pointer;
130
- }
131
- </style>
1
+ <template>
2
+ <div class="emoji-text-container" v-on-clickaway="away">
3
+ <div
4
+ class="emoji-text-btn"
5
+ @click="toggleEmojiSelection()"
6
+ v-text="String.fromCodePoint(0x1f61c)"
7
+ ></div>
8
+ <transition name="show-y">
9
+ <Picker v-show="showEmojis" ref="sm-emoji-picker" @insert-emoji="insertEmoji" />
10
+ </transition>
11
+ </div>
12
+ </template>
13
+
14
+ <script>
15
+ import Picker from "./Picker";
16
+ import { mixin as clickaway } from "vue-clickaway";
17
+
18
+ export default {
19
+ components: { Picker },
20
+ mixins: [clickaway],
21
+ props: {
22
+ emojiId: {
23
+ type: String,
24
+ required: true,
25
+ },
26
+ biggerTextarea: {
27
+ type: Boolean,
28
+ default: true,
29
+ required: false,
30
+ },
31
+ small: {
32
+ type: Boolean,
33
+ default: false,
34
+ required: false,
35
+ },
36
+ up: {
37
+ type: Boolean,
38
+ default: true,
39
+ required: false,
40
+ },
41
+ down: {
42
+ type: Boolean,
43
+ default: false,
44
+ required: false,
45
+ },
46
+ left: {
47
+ type: Boolean,
48
+ default: true,
49
+ required: false,
50
+ },
51
+ },
52
+ computed: {
53
+ height() {
54
+ if (this.small) return 225;
55
+ return 325;
56
+ },
57
+ top() {
58
+ if (!this.down) return -(this.height + (!this.biggerTextarea ? 5 : 30));
59
+ return 40;
60
+ },
61
+ },
62
+ data() {
63
+ return {
64
+ showEmojis: false,
65
+ };
66
+ },
67
+ created() {
68
+ this.$root.$refs[`etf-${this.emojiId}`] = this;
69
+ },
70
+ watch: {
71
+ showEmojis() {
72
+ if (this.showEmojis) this.setPosition("sm-emoji-picker");
73
+ },
74
+ },
75
+ methods: {
76
+ setPosition(refId) {
77
+ try {
78
+ this.$nextTick(() => {
79
+ const elem = this.$refs[refId]
80
+ ? this.$refs[refId].$el
81
+ ? this.$refs[refId].$el
82
+ : this.$refs[refId]
83
+ : this.$refs[refId]
84
+ ? this.$refs[refId]
85
+ : false;
86
+ if (elem) {
87
+ elem.style.position = "absolute";
88
+ elem.style.top = `${this.top}px`;
89
+ elem.style.left = "0";
90
+ elem.style.height = `${this.height}px`;
91
+ }
92
+ });
93
+ } catch (e) {
94
+ console.error("Erro ao setar a posicao dos emojis");
95
+ console.error(e);
96
+ }
97
+ },
98
+ insertEmoji(emoji) {
99
+ this.$emit("insert-emoji", emoji);
100
+ },
101
+ toggleEmojiSelection() {
102
+ this.showEmojis = !this.showEmojis;
103
+ },
104
+ away() {
105
+ this.showEmojis = false;
106
+ },
107
+ },
108
+ };
109
+ </script>
110
+
111
+ <style>
112
+ .show-y-enter-active,
113
+ .show-y-leave-enter {
114
+ opacity: 1;
115
+ transform: translateY(0);
116
+ transition: all 200ms linear;
117
+ }
118
+ .show-y-enter,
119
+ .show-y-leave-to {
120
+ opacity: 0;
121
+ transform: translateY(5%);
122
+ }
123
+
124
+ .emoji-text-container {
125
+ position: relative;
126
+ }
127
+ .emoji-text-container .emoji-text-btn {
128
+ font-size: 19.2px;
129
+ cursor: pointer;
130
+ }
131
+ </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>