vue-intergrall-plugins 0.0.300 → 0.0.501

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 +818 -427
  3. package/dist/vue-intergrall-plugins.min.js +1 -1
  4. package/dist/vue-intergrall-plugins.ssr.js +788 -457
  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/AudioSpeedControl.vue +60 -0
  12. package/src/lib-components/Chat/BtnDownloadAllFiles.vue +32 -32
  13. package/src/lib-components/Chat/BtnEmojis.vue +131 -125
  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 +405 -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 +458 -385
  31. package/src/lib-components/Messages/CardAttachment.vue +61 -61
  32. package/src/lib-components/Messages/CardMessages.vue +666 -394
  33. package/src/lib-components/Messages/ChatMessages.vue +1077 -573
  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,150 +1,150 @@
1
-
2
- <template>
3
- <transition name="fade">
4
- <div class="btn-rolagem" :class="{'higher' : classeCustomizada}" v-show="visibilidade" @click="rolar()">
5
- <div class="sinalizar-msg-nova" :title="tituloSinalizador" v-show="sinalizar"></div>
6
- <fa-icon :icon="['fas', 'arrow-circle-down']" />
7
- </div>
8
- </transition>
9
- </template>
10
-
11
- <style scoped>
12
- .fade-enter-active, .fade-leave-active {
13
- transition: opacity .3s;
14
- }
15
- .fade-enter, .fade-leave-to {
16
- opacity: 0;
17
- }
18
- </style>
19
-
20
- <script>
21
- export default {
22
- props: {
23
- identificador: {
24
- type: String,
25
- required: true
26
- },
27
- containerSelector: {
28
- type: String,
29
- required: true
30
- },
31
- classeCustomizada: {
32
- type: Boolean,
33
- required: false
34
- },
35
- sinalizar: {
36
- type: Boolean,
37
- required: false
38
- },
39
- tituloSinalizador: {
40
- type: String,
41
- required: false
42
- },
43
- rolarParaMsg: {
44
- type: Boolean,
45
- required: false
46
- },
47
- callbackFn: {
48
- type: Function,
49
- required: false
50
- }
51
- },
52
- created() {
53
- this.$root.$refs[`rc-${this.identificador}`] = this
54
- },
55
- data() {
56
- return {
57
- visibilidade: false,
58
- container: ""
59
- }
60
- },
61
- methods: {
62
- getContainer(){
63
- this.container = document.querySelector(this.containerSelector)
64
- },
65
- rolar(paraCima){
66
- try {
67
- this.getContainer()
68
- if(this.sinalizar && this.callbackFn) this.callbackFn()
69
- let alturaFinal = this.container.scrollHeight
70
- if(this.rolarParaMsg) {
71
- let ultimaMsgContainer = this.container.children[this.container.children.length - 2]
72
- !ultimaMsgContainer.children.length ? ultimaMsgContainer = this.container.children[this.container.children.length - 3] : ''
73
- const ultimaMsg = ultimaMsgContainer.lastElementChild.offsetHeight + 10
74
- alturaFinal -= ultimaMsg
75
- }
76
-
77
- this.container.scroll(0, paraCima ? 0 : alturaFinal)
78
- }catch(e) {
79
- console.error("Nao foi possivel rolar o container")
80
- console.error(e)
81
- }
82
- },
83
- verifyScrollbar(){
84
- try {
85
- this.getContainer()
86
-
87
- this.visibilidade = true
88
-
89
- const posicaoDaBarra = this.container.scrollTop,
90
- tamanhoContainer = this.container.offsetHeight,
91
- tamanhoBarra = this.container.scrollHeight
92
-
93
- if(posicaoDaBarra == (tamanhoBarra - tamanhoContainer)){
94
- if(this.sinalizar) this.$emit("updateKey")
95
- this.visibilidade = false
96
- }else if(parseInt(posicaoDaBarra) + tamanhoContainer == tamanhoBarra || parseInt(posicaoDaBarra) + tamanhoContainer == tamanhoBarra + 1 || parseInt(posicaoDaBarra) + tamanhoContainer == tamanhoBarra - 1){
97
- this.visibilidade = false
98
- }
99
- }catch(e) {
100
- console.error("Ignorando botao de rolagem devido a erro")
101
- console.error(e)
102
- this.visibilidade = false
103
- }
104
- }
105
- }
106
- }
107
- </script>
108
- <style>
109
- .btn-rolagem {
110
- position: absolute;
111
- bottom: 10px;
112
- right: 20px;
113
- }
114
- .btn-rolagem.higher {
115
- bottom: 36px;
116
- }
117
- .btn-rolagem svg{
118
- font-size: 2.4rem;
119
- color: #757575;
120
- transition-duration: 300ms;
121
- transition-property: opacity;
122
- opacity: .8;
123
- cursor: pointer;
124
- }
125
- .btn-rolagem svg:hover{
126
- opacity: 1;
127
- }
128
- .sinalizar-msg-nova{
129
- position: absolute;
130
- top: -10px;
131
- left: -10px;
132
- background-color: #4f772d;
133
- width: 12.5px;
134
- height: 12.5px;
135
- border-radius: 50%;
136
- animation-name: blink;
137
- animation-duration: 1000ms;
138
- animation-direction: alternate;
139
- animation-iteration-count: infinite;
140
- }
141
-
142
- @keyframes blink{
143
- from{
144
- opacity: .8 - .1;
145
- }
146
- to{
147
- opacity: 1;
148
- }
149
- }
150
- </style>
1
+
2
+ <template>
3
+ <transition name="fade">
4
+ <div class="btn-rolagem" :class="{'higher' : classeCustomizada}" v-show="visibilidade" @click="rolar()">
5
+ <div class="sinalizar-msg-nova" :title="tituloSinalizador" v-show="sinalizar"></div>
6
+ <fa-icon :icon="['fas', 'arrow-circle-down']" />
7
+ </div>
8
+ </transition>
9
+ </template>
10
+
11
+ <style scoped>
12
+ .fade-enter-active, .fade-leave-active {
13
+ transition: opacity .3s;
14
+ }
15
+ .fade-enter, .fade-leave-to {
16
+ opacity: 0;
17
+ }
18
+ </style>
19
+
20
+ <script>
21
+ export default {
22
+ props: {
23
+ identificador: {
24
+ type: String,
25
+ required: true
26
+ },
27
+ containerSelector: {
28
+ type: String,
29
+ required: true
30
+ },
31
+ classeCustomizada: {
32
+ type: Boolean,
33
+ required: false
34
+ },
35
+ sinalizar: {
36
+ type: Boolean,
37
+ required: false
38
+ },
39
+ tituloSinalizador: {
40
+ type: String,
41
+ required: false
42
+ },
43
+ rolarParaMsg: {
44
+ type: Boolean,
45
+ required: false
46
+ },
47
+ callbackFn: {
48
+ type: Function,
49
+ required: false
50
+ }
51
+ },
52
+ created() {
53
+ this.$root.$refs[`rc-${this.identificador}`] = this
54
+ },
55
+ data() {
56
+ return {
57
+ visibilidade: false,
58
+ container: ""
59
+ }
60
+ },
61
+ methods: {
62
+ getContainer(){
63
+ this.container = document.querySelector(this.containerSelector)
64
+ },
65
+ rolar(paraCima){
66
+ try {
67
+ this.getContainer()
68
+ if(this.sinalizar && this.callbackFn) this.callbackFn()
69
+ let alturaFinal = this.container.scrollHeight
70
+ if(this.rolarParaMsg) {
71
+ let ultimaMsgContainer = this.container.children[this.container.children.length - 2]
72
+ !ultimaMsgContainer.children.length ? ultimaMsgContainer = this.container.children[this.container.children.length - 3] : ''
73
+ const ultimaMsg = ultimaMsgContainer.lastElementChild.offsetHeight + 10
74
+ alturaFinal -= ultimaMsg
75
+ }
76
+
77
+ this.container.scroll(0, paraCima ? 0 : alturaFinal)
78
+ }catch(e) {
79
+ console.error("Nao foi possivel rolar o container")
80
+ console.error(e)
81
+ }
82
+ },
83
+ verifyScrollbar(){
84
+ try {
85
+ this.getContainer()
86
+
87
+ this.visibilidade = true
88
+
89
+ const posicaoDaBarra = this.container.scrollTop,
90
+ tamanhoContainer = this.container.offsetHeight,
91
+ tamanhoBarra = this.container.scrollHeight
92
+
93
+ if(posicaoDaBarra == (tamanhoBarra - tamanhoContainer)){
94
+ if(this.sinalizar) this.$emit("updateKey")
95
+ this.visibilidade = false
96
+ }else if(parseInt(posicaoDaBarra) + tamanhoContainer == tamanhoBarra || parseInt(posicaoDaBarra) + tamanhoContainer == tamanhoBarra + 1 || parseInt(posicaoDaBarra) + tamanhoContainer == tamanhoBarra - 1){
97
+ this.visibilidade = false
98
+ }
99
+ }catch(e) {
100
+ console.error("Ignorando botao de rolagem devido a erro")
101
+ console.error(e)
102
+ this.visibilidade = false
103
+ }
104
+ }
105
+ }
106
+ }
107
+ </script>
108
+ <style>
109
+ .btn-rolagem {
110
+ position: absolute;
111
+ bottom: 10px;
112
+ right: 20px;
113
+ }
114
+ .btn-rolagem.higher {
115
+ bottom: 36px;
116
+ }
117
+ .btn-rolagem svg{
118
+ font-size: 2.4rem;
119
+ color: #757575;
120
+ transition-duration: 300ms;
121
+ transition-property: opacity;
122
+ opacity: .8;
123
+ cursor: pointer;
124
+ }
125
+ .btn-rolagem svg:hover{
126
+ opacity: 1;
127
+ }
128
+ .sinalizar-msg-nova{
129
+ position: absolute;
130
+ top: -10px;
131
+ left: -10px;
132
+ background-color: #4f772d;
133
+ width: 12.5px;
134
+ height: 12.5px;
135
+ border-radius: 50%;
136
+ animation-name: blink;
137
+ animation-duration: 1000ms;
138
+ animation-direction: alternate;
139
+ animation-iteration-count: infinite;
140
+ }
141
+
142
+ @keyframes blink{
143
+ from{
144
+ opacity: .8 - .1;
145
+ }
146
+ to{
147
+ opacity: 1;
148
+ }
149
+ }
150
+ </style>