vue-intergrall-plugins 0.0.286 → 0.0.287

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 +502 -398
  3. package/dist/vue-intergrall-plugins.min.js +1 -1
  4. package/dist/vue-intergrall-plugins.ssr.js +521 -433
  5. package/package.json +65 -65
  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/AudioSpeedControl.vue +60 -0
  12. package/src/lib-components/Chat/BtnDownloadAllFiles.vue +32 -32
  13. package/src/lib-components/Chat/BtnEmojis.vue +124 -124
  14. package/src/lib-components/Chat/BtnExpand.vue +17 -17
  15. package/src/lib-components/Chat/BtnFiles.vue +415 -415
  16. package/src/lib-components/Chat/BtnMic.vue +60 -60
  17. package/src/lib-components/Chat/BtnScreenShare.vue +32 -32
  18. package/src/lib-components/Chat/BtnStandardMessages.vue +17 -17
  19. package/src/lib-components/Chat/ExpandTextarea.vue +410 -410
  20. package/src/lib-components/Chat/MultipleFilePreview.vue +266 -266
  21. package/src/lib-components/Chat/Picker.vue +368 -368
  22. package/src/lib-components/Chat/RemainingCharacters.vue +28 -28
  23. package/src/lib-components/Chat/SingleFilePreview.vue +94 -94
  24. package/src/lib-components/Chat/SkeletonPicker.vue +110 -110
  25. package/src/lib-components/Chat/StandardMessages.vue +245 -245
  26. package/src/lib-components/Chat/TextFooter.vue +1075 -817
  27. package/src/lib-components/Email/EmailFile.vue +125 -125
  28. package/src/lib-components/Email/EmailItem.vue +185 -185
  29. package/src/lib-components/Loader/Loader.vue +78 -78
  30. package/src/lib-components/Messages/AnexoMensagem.vue +459 -385
  31. package/src/lib-components/Messages/CardAttachment.vue +61 -61
  32. package/src/lib-components/Messages/CardMessages.vue +460 -460
  33. package/src/lib-components/Messages/ChatMessages.vue +715 -715
  34. package/src/lib-components/Messages/InteratividadeBotoes.vue +165 -165
  35. package/src/lib-components/Messages/InteratividadeFormulario.vue +392 -392
  36. package/src/lib-components/Messages/InteratividadePopup.vue +88 -88
  37. package/src/lib-components/Messages/LinkPreview.vue +163 -163
  38. package/src/lib-components/Scroll/ScrollContent.vue +150 -150
  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,125 +1,125 @@
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
- >
8
- </div>
9
- <transition name="show-y">
10
- <Picker v-show="showEmojis" ref="sm-emoji-picker" @insert-emoji="insertEmoji" />
11
- </transition>
12
- </div>
13
- </template>
14
-
15
- <script>
16
-
17
- import Picker from "./Picker"
18
- import { mixin as clickaway } from 'vue-clickaway'
19
-
20
- export default {
21
- components: { Picker },
22
- mixins: [ clickaway ],
23
- props: {
24
- emojiId: {
25
- type: String,
26
- required: true
27
- },
28
- biggerTextarea: {
29
- type: Boolean,
30
- default: true,
31
- required: false
32
- },
33
- small: {
34
- type: Boolean,
35
- default: false,
36
- required: false
37
- },
38
- up: {
39
- type: Boolean,
40
- default: true,
41
- required: false
42
- },
43
- down: {
44
- type: Boolean,
45
- default: false,
46
- required: false
47
- },
48
- left: {
49
- type: Boolean,
50
- default: true,
51
- required: false
52
- }
53
- },
54
- computed: {
55
- height() {
56
- if(this.small) return 225
57
- return 325
58
- },
59
- top() {
60
- if(!this.down) return -(this.height + (!this.biggerTextarea ? 5 : 30) )
61
- return 40
62
- }
63
- },
64
- data(){
65
- return{
66
- showEmojis: false
67
- }
68
- },
69
- created() {
70
- this.$root.$refs[`etf-${this.emojiId}`] = this
71
- },
72
- watch: {
73
- showEmojis() {
74
- if(this.showEmojis) this.setPosition("sm-emoji-picker")
75
- }
76
- },
77
- methods: {
78
- setPosition(refId) {
79
- try {
80
- this.$nextTick(() => {
81
- const elem = this.$refs[refId] ? this.$refs[refId].$el ? this.$refs[refId].$el : this.$refs[refId] : this.$refs[refId] ? this.$refs[refId] : false
82
- if(elem){
83
- elem.style.position = "absolute"
84
- elem.style.top = `${this.top}px`
85
- elem.style.left = "0"
86
- elem.style.height = `${this.height}px`
87
- }
88
- })
89
- }catch(e) {
90
- console.error("Erro ao setar a posicao dos emojis")
91
- console.error(e)
92
- }
93
- },
94
- insertEmoji(emoji) {
95
- this.$emit("insert-emoji", emoji)
96
- },
97
- toggleEmojiSelection() {
98
- this.showEmojis = !this.showEmojis
99
- },
100
- away() {
101
- this.showEmojis = false
102
- }
103
- }
104
- }
105
- </script>
106
-
107
- <style>
108
- .show-y-enter-active,
109
- .show-y-leave-enter {
110
- opacity: 1;
111
- transform: translateY(0);
112
- transition: all 200ms linear;
113
- }
114
- .show-y-enter,
115
- .show-y-leave-to {
116
- opacity: 0;
117
- transform: translateY(5%);
118
- }
119
-
120
- .emoji-text-container {
121
- position: relative; }
122
- .emoji-text-container .emoji-text-btn {
123
- font-size: 1.2rem;
124
- cursor: pointer; }
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
+ >
8
+ </div>
9
+ <transition name="show-y">
10
+ <Picker v-show="showEmojis" ref="sm-emoji-picker" @insert-emoji="insertEmoji" />
11
+ </transition>
12
+ </div>
13
+ </template>
14
+
15
+ <script>
16
+
17
+ import Picker from "./Picker"
18
+ import { mixin as clickaway } from 'vue-clickaway'
19
+
20
+ export default {
21
+ components: { Picker },
22
+ mixins: [ clickaway ],
23
+ props: {
24
+ emojiId: {
25
+ type: String,
26
+ required: true
27
+ },
28
+ biggerTextarea: {
29
+ type: Boolean,
30
+ default: true,
31
+ required: false
32
+ },
33
+ small: {
34
+ type: Boolean,
35
+ default: false,
36
+ required: false
37
+ },
38
+ up: {
39
+ type: Boolean,
40
+ default: true,
41
+ required: false
42
+ },
43
+ down: {
44
+ type: Boolean,
45
+ default: false,
46
+ required: false
47
+ },
48
+ left: {
49
+ type: Boolean,
50
+ default: true,
51
+ required: false
52
+ }
53
+ },
54
+ computed: {
55
+ height() {
56
+ if(this.small) return 225
57
+ return 325
58
+ },
59
+ top() {
60
+ if(!this.down) return -(this.height + (!this.biggerTextarea ? 5 : 30) )
61
+ return 40
62
+ }
63
+ },
64
+ data(){
65
+ return{
66
+ showEmojis: false
67
+ }
68
+ },
69
+ created() {
70
+ this.$root.$refs[`etf-${this.emojiId}`] = this
71
+ },
72
+ watch: {
73
+ showEmojis() {
74
+ if(this.showEmojis) this.setPosition("sm-emoji-picker")
75
+ }
76
+ },
77
+ methods: {
78
+ setPosition(refId) {
79
+ try {
80
+ this.$nextTick(() => {
81
+ const elem = this.$refs[refId] ? this.$refs[refId].$el ? this.$refs[refId].$el : this.$refs[refId] : this.$refs[refId] ? this.$refs[refId] : false
82
+ if(elem){
83
+ elem.style.position = "absolute"
84
+ elem.style.top = `${this.top}px`
85
+ elem.style.left = "0"
86
+ elem.style.height = `${this.height}px`
87
+ }
88
+ })
89
+ }catch(e) {
90
+ console.error("Erro ao setar a posicao dos emojis")
91
+ console.error(e)
92
+ }
93
+ },
94
+ insertEmoji(emoji) {
95
+ this.$emit("insert-emoji", emoji)
96
+ },
97
+ toggleEmojiSelection() {
98
+ this.showEmojis = !this.showEmojis
99
+ },
100
+ away() {
101
+ this.showEmojis = false
102
+ }
103
+ }
104
+ }
105
+ </script>
106
+
107
+ <style>
108
+ .show-y-enter-active,
109
+ .show-y-leave-enter {
110
+ opacity: 1;
111
+ transform: translateY(0);
112
+ transition: all 200ms linear;
113
+ }
114
+ .show-y-enter,
115
+ .show-y-leave-to {
116
+ opacity: 0;
117
+ transform: translateY(5%);
118
+ }
119
+
120
+ .emoji-text-container {
121
+ position: relative; }
122
+ .emoji-text-container .emoji-text-btn {
123
+ font-size: 1.2rem;
124
+ cursor: pointer; }
125
125
  </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>