vue-intergrall-plugins 1.1.58 → 1.1.60

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.
@@ -9095,7 +9095,7 @@ var LinkPreview = __vue_component__$d;var script$7 = {
9095
9095
  LinkPreview: LinkPreview,
9096
9096
  Picker: Picker
9097
9097
  },
9098
- props: ["hasTranscription", "transcriptionText", "transcriptionLoading", "emitContactClick", "smartchannel", "messageIndex", "dictionary", "autor", "origem", "msg", "link", "anexo", "imgAnexo", "tipoDoc", "docAnexo", "nomeArquivo", "audio", "video", "horario", "status", "logo", "msgTooltip", "seq", "mapa", "histMsg", "erro", "msgErro", "origemExterna", "anexos", "dominio", "corMsg", "interatividade", "msgReply", "hasReply", "iniDialogo", "dialogoId", "dialogoOrigem", "expSessao", "referenceSelector", "replyMessage", "isReply", "defaultReplyMessage", "showReplyIcon", "showControlFiles", "showMenu", "id_ext_msg", "tipo_origem"],
9098
+ props: ["hasTranscription", "transcriptionText", "transcriptionLoading", "emitContactClick", "smartchannel", "messageIndex", "dictionary", "autor", "origem", "msg", "link", "anexo", "imgAnexo", "tipoDoc", "docAnexo", "nomeArquivo", "audio", "video", "horario", "status", "logo", "msgTooltip", "seq", "mapa", "histMsg", "erro", "msgErro", "origemExterna", "anexos", "dominio", "corMsg", "interatividade", "msgReply", "hasReply", "iniDialogo", "dialogoId", "dialogoOrigem", "expSessao", "referenceSelector", "replyMessage", "isReply", "defaultReplyMessage", "showReplyIcon", "showControlFiles", "showMenu", "id_ext_msg", "tipo_origem", "message_infos"],
9099
9099
  created: function created() {
9100
9100
  if (!this.$root.$refs.chatMessages) this.$root.$refs.chatMessages = this;
9101
9101
  },
@@ -9191,6 +9191,7 @@ var LinkPreview = __vue_component__$d;var script$7 = {
9191
9191
  mounted: function mounted() {
9192
9192
  if (this.mapa) this.setMap();
9193
9193
  if (this.corMsg) this.setCorMsg();
9194
+ if (this.message_infos) this.setMessageInfos();
9194
9195
  this.validadeUrlToMsg();
9195
9196
  },
9196
9197
  methods: {
@@ -9233,6 +9234,25 @@ var LinkPreview = __vue_component__$d;var script$7 = {
9233
9234
  if (this.isMenuOpen) this.closeMenu();
9234
9235
  this.isEmojisOpen = !this.isEmojisOpen;
9235
9236
  },
9237
+ setMessageInfos: function setMessageInfos() {
9238
+ try {
9239
+ var REACTION = this.message_infos.REACTION;
9240
+ if (REACTION) {
9241
+ var hexa = REACTION.split("u").slice(1).map(function (code) {
9242
+ return "&#x".concat(code, ";");
9243
+ }).join('');
9244
+ var finalEmoji = REACTION.split("u").slice(1).map(function (code) {
9245
+ return String.fromCodePoint(parseInt(code, 16));
9246
+ }).join('');
9247
+ this.messageReaction = {
9248
+ hexa: hexa,
9249
+ finalEmoji: finalEmoji
9250
+ };
9251
+ }
9252
+ } catch (err) {
9253
+ console.error("Error setting message infos: ", err);
9254
+ }
9255
+ },
9236
9256
  addReaction: function addReaction(emoji) {
9237
9257
  this.messageReaction = this.messageReaction && this.messageReaction.hexa === emoji.hexa ? "" : {
9238
9258
  hexa: emoji.hexa,
@@ -9891,7 +9911,7 @@ var __vue_inject_styles__$7 = undefined;
9891
9911
  /* scoped */
9892
9912
  var __vue_scope_id__$7 = undefined;
9893
9913
  /* module identifier */
9894
- var __vue_module_identifier__$7 = "data-v-6cdc8014";
9914
+ var __vue_module_identifier__$7 = "data-v-37e8f466";
9895
9915
  /* functional template */
9896
9916
  var __vue_is_functional_template__$7 = false;
9897
9917
  /* style inject */
@@ -11039,7 +11059,7 @@ var __vue_render__$1 = function __vue_render__() {
11039
11059
  attrs: {
11040
11060
  "icon": ['fas', _vm.origem === 'outros' ? 'user' : 'headset']
11041
11061
  }
11042
- })], 1)], 2) : _vm._e(), _vm._ssrNode(" "), _vm.customButtons && _vm.customButtons.length ? _vm._ssrNode("<div class=\"email-custom-buttons\">", "</div>", _vm._l(_vm.customButtons, function (button, index) {
11062
+ })], 1)], 2) : _vm._e(), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-custom-buttons\">", "</div>", [_vm.customButtons && _vm.customButtons.length ? _vm._l(_vm.customButtons, function (button, index) {
11043
11063
  return _c('span', {
11044
11064
  directives: [{
11045
11065
  name: "show",
@@ -11070,7 +11090,11 @@ var __vue_render__$1 = function __vue_render__() {
11070
11090
  "innerHTML": _vm._s(button.svgIcon)
11071
11091
  }
11072
11092
  })], 1);
11073
- }), 0) : _vm._e(), _vm._ssrNode(" "), _vm.customActionButtons && _vm.customActionButtons.length && _vm.customActionButtons[0].type === 'ja-spam' ? _vm._ssrNode("<div class=\"ja-marcado-spam\">", "</div>", [_vm._ssrNode("<span class=\"icon-tittle-ja-spam\">", "</span>", [_c('fa-icon', {
11093
+ }) : _vm._e(), _vm._ssrNode(" "), _vm.isOpen && _vm.filteredFiles && _vm.filteredFiles.length ? _vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.filteredFiles.length + " anexos") + " class=\"email-clip-anchor cursor-pointer\">", "</span>", [_c('fa-icon', {
11094
+ attrs: {
11095
+ "icon": ['fas', 'paperclip']
11096
+ }
11097
+ })], 1) : _vm._e()], 2), _vm._ssrNode(" "), _vm.customActionButtons && _vm.customActionButtons.length && _vm.customActionButtons[0].type === 'ja-spam' ? _vm._ssrNode("<div class=\"ja-marcado-spam\">", "</div>", [_vm._ssrNode("<span class=\"icon-tittle-ja-spam\">", "</span>", [_c('fa-icon', {
11074
11098
  staticStyle: {
11075
11099
  "color": "#FF0000",
11076
11100
  "margin-right": "8px",
@@ -11341,7 +11365,7 @@ var __vue_inject_styles__$1 = undefined;
11341
11365
  /* scoped */
11342
11366
  var __vue_scope_id__$1 = undefined;
11343
11367
  /* module identifier */
11344
- var __vue_module_identifier__$1 = "data-v-3d44a3d6";
11368
+ var __vue_module_identifier__$1 = "data-v-41069ed6";
11345
11369
  /* functional template */
11346
11370
  var __vue_is_functional_template__$1 = false;
11347
11371
  /* style inject */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intergrall-plugins",
3
- "version": "1.1.58",
3
+ "version": "1.1.60",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -11,12 +11,22 @@
11
11
  <fa-icon :icon="['fas', origem === 'outros' ? 'user' : 'headset']" class="email-to-svg" />
12
12
  </span>
13
13
  </div>
14
- <div class="email-custom-buttons" v-if="customButtons && customButtons.length" @click.stop>
15
- <span v-for="(button, index) in customButtons" :key="button.id || index" v-show="button.use"
16
- @click="button.callback ? button.callback(returnParams(button.params)) : $emit(button.emitName, returnParams(button.params))" :class="`${button.customClass || 'menu-mensagem'}`"
17
- v-tippy :content="button.tippyContent">
18
- <fa-icon :icon="['fas', button.icon || 'question-circle']" v-if="!button.svgIcon" />
19
- <span v-else v-html="button.svgIcon" :class="button.svgClass ? button.svgClass : ''"></span>
14
+ <div class="email-custom-buttons" @click.stop>
15
+ <template v-if="customButtons && customButtons.length">
16
+ <span v-for="(button, index) in customButtons" :key="button.id || index" v-show="button.use"
17
+ @click="button.callback ? button.callback(returnParams(button.params)) : $emit(button.emitName, returnParams(button.params))" :class="`${button.customClass || 'menu-mensagem'}`"
18
+ v-tippy :content="button.tippyContent">
19
+ <fa-icon :icon="['fas', button.icon || 'question-circle']" v-if="!button.svgIcon" />
20
+ <span v-else v-html="button.svgIcon" :class="button.svgClass ? button.svgClass : ''"></span>
21
+ </span>
22
+ </template>
23
+ <span
24
+ v-if="isOpen && filteredFiles && filteredFiles.length"
25
+ class="email-clip-anchor cursor-pointer"
26
+ @click.stop="scrollToAttachments"
27
+ :title="`${filteredFiles.length} anexos`"
28
+ >
29
+ <fa-icon :icon="['fas', 'paperclip']" />
20
30
  </span>
21
31
  </div>
22
32
  <div
@@ -97,7 +107,7 @@
97
107
  ><strong>Reenviar</strong>
98
108
  </button>
99
109
  </div>
100
- <div class="header-container">
110
+ <div class="header-container">
101
111
  <div :class="`email-header-content${isOpen ? ' open' : ''}`">
102
112
  <div class="email-header-infos">
103
113
  <template>
@@ -226,6 +226,7 @@ export default {
226
226
  "showMenu",
227
227
  "id_ext_msg",
228
228
  "tipo_origem",
229
+ "message_infos"
229
230
  ],
230
231
  created() {
231
232
  if (!this.$root.$refs.chatMessages) this.$root.$refs.chatMessages = this;
@@ -333,6 +334,7 @@ export default {
333
334
  mounted() {
334
335
  if (this.mapa) this.setMap();
335
336
  if (this.corMsg) this.setCorMsg();
337
+ if(this.message_infos) this.setMessageInfos()
336
338
  this.validadeUrlToMsg();
337
339
  },
338
340
  methods: {
@@ -372,6 +374,20 @@ export default {
372
374
  if (this.isMenuOpen) this.closeMenu();
373
375
  this.isEmojisOpen = !this.isEmojisOpen;
374
376
  },
377
+ setMessageInfos() {
378
+ try {
379
+ const { REACTION } = this.message_infos;
380
+
381
+ if (REACTION) {
382
+ const hexa = REACTION.split("u").slice(1).map(code => `&#x${code};`).join('');
383
+ const finalEmoji = REACTION.split("u").slice(1).map(code => String.fromCodePoint(parseInt(code, 16))).join('');
384
+ this.messageReaction = { hexa, finalEmoji };
385
+ }
386
+
387
+ } catch(err) {
388
+ console.error("Error setting message infos: ", err);
389
+ }
390
+ },
375
391
  addReaction(emoji) {
376
392
  this.messageReaction =
377
393
  this.messageReaction && this.messageReaction.hexa === emoji.hexa