vue-intergrall-plugins 0.0.294 → 0.0.296

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.
@@ -206,7 +206,7 @@
206
206
  <!-- Autor da mensagem -->
207
207
  <span class="autor-mensagem" v-html="autor"></span>
208
208
  <!-- Menu de opcoes da mensagem -->
209
- <div class="menu-primario" :class="origem" v-if="showMenu">
209
+ <div class="menu-primario" :class="origem" v-if="hasAnyMenu">
210
210
  <!-- <span class="menu-mensagem" @click="toggleIsMenuOpen" v-tippy :content="dictionary.tit_mais_msg">
211
211
  <fa-icon :icon="['fas', 'chevron-down']" />
212
212
  </span> -->
@@ -215,6 +215,7 @@
215
215
  @click="responderMensagemHandler"
216
216
  v-tippy
217
217
  :content="dictionary.tit_responder_msg"
218
+ v-if="showMenu.reply"
218
219
  >
219
220
  <fa-icon :icon="['fas', 'reply']" />
220
221
  </span>
@@ -223,6 +224,7 @@
223
224
  @click="reagirMensagemHandler"
224
225
  v-tippy
225
226
  :content="dictionary.tit_reagir_msg"
227
+ v-if="showMenu.reaction"
226
228
  >
227
229
  <fa-icon :icon="['fas', 'smile']" />
228
230
  </span>
@@ -236,10 +238,10 @@
236
238
  </div>
237
239
  <transition name="fade" mode="out-in" v-if="isMenuOpen">
238
240
  <ul class="menu-flutuante" :class="origem" v-on-clickaway="closeMenu">
239
- <li @click="responderMensagemHandler">
241
+ <li @click="responderMensagemHandler" v-if="showMenu.reply">
240
242
  <span> {{ dictionary.tit_responder_msg }} </span>
241
243
  </li>
242
- <li @click="reagirMensagemHandler">
244
+ <li @click="reagirMensagemHandler" v-if="showMenu.reaction">
243
245
  <span> {{ dictionary.tit_reagir_msg }} </span>
244
246
  </li>
245
247
  </ul>
@@ -405,6 +407,13 @@ export default {
405
407
  this.reply = "reply reply-with-2-icons";
406
408
  return false;
407
409
  },
410
+ hasAnyMenu() {
411
+ if (!this.showMenu || typeof this.showMenu !== "object") return false;
412
+ for (let key in this.showMenu) {
413
+ if (this.showMenu.hasOwnProperty(key) && this.showMenu[key] === true) return true;
414
+ }
415
+ return false;
416
+ },
408
417
  },
409
418
  mounted() {
410
419
  if (this.mapa) this.setMap();
@@ -452,8 +461,8 @@ export default {
452
461
  this.isEmojisOpen = false;
453
462
  this.$emit("reagir-mensagem", {
454
463
  emoji,
455
- seq,
456
- id_ext_msg,
464
+ seq: this.seq,
465
+ id_ext_msg: this.id_ext_msg,
457
466
  hasEmojiReaction: this.messageReaction ? true : false,
458
467
  });
459
468
  },
@@ -991,13 +1000,36 @@ export default {
991
1000
  .emoji-message-container {
992
1001
  position: absolute;
993
1002
  top: 0;
994
- left: 0;
995
- right: 0;
1003
+ z-index: 1;
1004
+ width: 300px;
1005
+ height: 250px;
996
1006
  }
1007
+ /* .emoji-message-container {
1008
+ z-index: 1;
1009
+ overflow: hidden;
1010
+ width: 300px;
1011
+ height: 250px;
1012
+
1013
+ >.sm-emoji-picker {
1014
+ position: relative;
1015
+ width: 300px;
1016
+ height: 250px;
1017
+ }
1018
+ }
1019
+
1020
+ .mensagem .reaction {
1021
+ $size: 1.8em;
1022
+ width: $size;
1023
+ height: $size;
1024
+ min-width: $size;
1025
+ min-height: $size;
1026
+ max-width: $size;
1027
+ max-height: $size;
1028
+ } */
997
1029
 
998
1030
  .emoji-message-container .sm-emoji-picker {
999
- height: 200px;
1000
- width: 90% !important;
1031
+ width: 300px;
1032
+ height: 250px;
1001
1033
  }
1002
1034
  .emoji-message-container .sm-emoji-picker .sm-emoji-header {
1003
1035
  overflow-x: auto;
@@ -1014,6 +1046,10 @@ export default {
1014
1046
  background-color: rgba(100, 100, 100, 0.4);
1015
1047
  padding: 5px;
1016
1048
  font-size: 1.3em;
1049
+ min-width: 1.8em;
1050
+ min-height: 1.8em;
1051
+ max-width: 1.8em;
1052
+ max-height: 1.8em;
1017
1053
  }
1018
1054
 
1019
1055
  .reaction > span {