vue-intergrall-plugins 0.0.1085 → 1.0.0

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 (37) hide show
  1. package/README.md +13 -5
  2. package/dist/vue-intergrall-plugins.min.js +1 -1
  3. package/package.json +70 -62
  4. package/src/lib-components/Buttons/IconButton.vue +27 -0
  5. package/src/lib-components/Buttons/SimpleButton.vue +140 -0
  6. package/src/lib-components/Cards/Card.vue +429 -0
  7. package/src/lib-components/Cards/CardCheck.vue +35 -0
  8. package/src/lib-components/Cards/CardFile.vue +157 -0
  9. package/src/lib-components/Chat/AudioSpeedControl.vue +60 -0
  10. package/src/lib-components/Chat/BtnDownloadAllFiles.vue +36 -0
  11. package/src/lib-components/Chat/BtnEmojis.vue +51 -45
  12. package/src/lib-components/Chat/BtnFiles.vue +408 -131
  13. package/src/lib-components/Chat/BtnScreenShare.vue +36 -0
  14. package/src/lib-components/Chat/BtnStandardMessages.vue +17 -0
  15. package/src/lib-components/Chat/ExpandTextarea.vue +5 -6
  16. package/src/lib-components/Chat/MultipleFilePreview.vue +40 -22
  17. package/src/lib-components/Chat/Picker.vue +185 -149
  18. package/src/lib-components/Chat/SingleFilePreview.vue +28 -7
  19. package/src/lib-components/Chat/StandardMessages.vue +245 -0
  20. package/src/lib-components/Chat/TextFooter.vue +791 -451
  21. package/src/lib-components/Email/EmailFile.vue +126 -0
  22. package/src/lib-components/Email/EmailItem.vue +186 -0
  23. package/src/lib-components/Loader/Loader.vue +6 -1
  24. package/src/lib-components/Messages/AnexoMensagem.vue +442 -0
  25. package/src/lib-components/Messages/CardAttachment.vue +61 -0
  26. package/src/lib-components/Messages/CardMessages.vue +666 -0
  27. package/src/lib-components/Messages/ChatMessages.vue +1082 -0
  28. package/src/lib-components/Messages/InteratividadeBotoes.vue +165 -0
  29. package/src/lib-components/Messages/InteratividadeFormulario.vue +392 -0
  30. package/src/lib-components/Messages/InteratividadePopup.vue +89 -0
  31. package/src/lib-components/Messages/LinkPreview.vue +189 -0
  32. package/src/lib-components/Scroll/ScrollContent.vue +166 -0
  33. package/src/lib-components/Templates/TemplateGenerator.vue +187 -50
  34. package/src/lib-components/Templates/TemplateMessage.vue +12 -1
  35. package/src/lib-components/Templates/TemplateSingle.vue +232 -13
  36. package/dist/vue-intergrall-plugins.esm.js +0 -5693
  37. package/dist/vue-intergrall-plugins.ssr.js +0 -5033
@@ -4,8 +4,7 @@
4
4
  class="emoji-text-btn"
5
5
  @click="toggleEmojiSelection()"
6
6
  v-text="String.fromCodePoint(0x1f61c)"
7
- >
8
- </div>
7
+ ></div>
9
8
  <transition name="show-y">
10
9
  <Picker v-show="showEmojis" ref="sm-emoji-picker" @insert-emoji="insertEmoji" />
11
10
  </transition>
@@ -13,95 +12,100 @@
13
12
  </template>
14
13
 
15
14
  <script>
16
-
17
- import Picker from "./Picker"
18
- import { mixin as clickaway } from 'vue-clickaway'
15
+ import Picker from "./Picker";
16
+ import { mixin as clickaway } from "vue-clickaway";
19
17
 
20
18
  export default {
21
19
  components: { Picker },
22
- mixins: [ clickaway ],
20
+ mixins: [clickaway],
23
21
  props: {
24
22
  emojiId: {
25
23
  type: String,
26
- required: true
24
+ required: true,
27
25
  },
28
26
  biggerTextarea: {
29
27
  type: Boolean,
30
28
  default: true,
31
- required: false
29
+ required: false,
32
30
  },
33
31
  small: {
34
32
  type: Boolean,
35
33
  default: false,
36
- required: false
34
+ required: false,
37
35
  },
38
36
  up: {
39
37
  type: Boolean,
40
38
  default: true,
41
- required: false
39
+ required: false,
42
40
  },
43
41
  down: {
44
42
  type: Boolean,
45
43
  default: false,
46
- required: false
44
+ required: false,
47
45
  },
48
46
  left: {
49
47
  type: Boolean,
50
48
  default: true,
51
- required: false
52
- }
49
+ required: false,
50
+ },
53
51
  },
54
52
  computed: {
55
53
  height() {
56
- if(this.small) return 225
57
- return 325
54
+ if (this.small) return 225;
55
+ return 325;
58
56
  },
59
57
  top() {
60
- if(!this.down) return -(this.height + (!this.biggerTextarea ? 5 : 30) )
61
- return 40
62
- }
58
+ if (!this.down) return -(this.height + (!this.biggerTextarea ? 5 : 30));
59
+ return 40;
60
+ },
63
61
  },
64
- data(){
65
- return{
66
- showEmojis: false
67
- }
62
+ data() {
63
+ return {
64
+ showEmojis: false,
65
+ };
68
66
  },
69
67
  created() {
70
- this.$root.$refs[`etf-${this.emojiId}`] = this
68
+ this.$root.$refs[`etf-${this.emojiId}`] = this;
71
69
  },
72
70
  watch: {
73
71
  showEmojis() {
74
- if(this.showEmojis) this.setPosition("sm-emoji-picker")
75
- }
72
+ if (this.showEmojis) this.setPosition("sm-emoji-picker");
73
+ },
76
74
  },
77
75
  methods: {
78
76
  setPosition(refId) {
79
77
  try {
80
78
  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`
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`;
87
91
  }
88
- })
89
- }catch(e) {
90
- console.error("Erro ao setar a posicao dos emojis")
91
- console.error(e)
92
+ });
93
+ } catch (e) {
94
+ console.error("Erro ao setar a posicao dos emojis");
95
+ console.error(e);
92
96
  }
93
97
  },
94
98
  insertEmoji(emoji) {
95
- this.$emit("insert-emoji", emoji)
99
+ this.$emit("insert-emoji", emoji);
96
100
  },
97
101
  toggleEmojiSelection() {
98
- this.showEmojis = !this.showEmojis
102
+ this.showEmojis = !this.showEmojis;
99
103
  },
100
104
  away() {
101
- this.showEmojis = false
102
- }
103
- }
104
- }
105
+ this.showEmojis = false;
106
+ },
107
+ },
108
+ };
105
109
  </script>
106
110
 
107
111
  <style>
@@ -118,8 +122,10 @@ export default {
118
122
  }
119
123
 
120
124
  .emoji-text-container {
121
- position: relative; }
125
+ position: relative;
126
+ }
122
127
  .emoji-text-container .emoji-text-btn {
123
- font-size: 1.2rem;
124
- cursor: pointer; }
125
- </style>
128
+ font-size: 19.2px;
129
+ cursor: pointer;
130
+ }
131
+ </style>