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.
@@ -10083,7 +10083,7 @@ var script$7 = {
10083
10083
  LinkPreview,
10084
10084
  Picker
10085
10085
  },
10086
- 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"],
10086
+ 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"],
10087
10087
  created() {
10088
10088
  if (!this.$root.$refs.chatMessages) this.$root.$refs.chatMessages = this;
10089
10089
  },
@@ -10178,6 +10178,7 @@ var script$7 = {
10178
10178
  mounted() {
10179
10179
  if (this.mapa) this.setMap();
10180
10180
  if (this.corMsg) this.setCorMsg();
10181
+ if (this.message_infos) this.setMessageInfos();
10181
10182
  this.validadeUrlToMsg();
10182
10183
  },
10183
10184
  methods: {
@@ -10220,6 +10221,23 @@ var script$7 = {
10220
10221
  if (this.isMenuOpen) this.closeMenu();
10221
10222
  this.isEmojisOpen = !this.isEmojisOpen;
10222
10223
  },
10224
+ setMessageInfos() {
10225
+ try {
10226
+ const {
10227
+ REACTION
10228
+ } = this.message_infos;
10229
+ if (REACTION) {
10230
+ const hexa = REACTION.split("u").slice(1).map(code => `&#x${code};`).join('');
10231
+ const finalEmoji = REACTION.split("u").slice(1).map(code => String.fromCodePoint(parseInt(code, 16))).join('');
10232
+ this.messageReaction = {
10233
+ hexa,
10234
+ finalEmoji
10235
+ };
10236
+ }
10237
+ } catch (err) {
10238
+ console.error("Error setting message infos: ", err);
10239
+ }
10240
+ },
10223
10241
  addReaction(emoji) {
10224
10242
  this.messageReaction = this.messageReaction && this.messageReaction.hexa === emoji.hexa ? "" : {
10225
10243
  hexa: emoji.hexa,
@@ -12094,14 +12112,14 @@ var __vue_render__$1 = function () {
12094
12112
  attrs: {
12095
12113
  "icon": ['fas', _vm.origem === 'outros' ? 'user' : 'headset']
12096
12114
  }
12097
- })], 1)]) : _vm._e(), _vm._v(" "), _vm.customButtons && _vm.customButtons.length ? _c('div', {
12115
+ })], 1)]) : _vm._e(), _vm._v(" "), _c('div', {
12098
12116
  staticClass: "email-custom-buttons",
12099
12117
  on: {
12100
12118
  "click": function ($event) {
12101
12119
  $event.stopPropagation();
12102
12120
  }
12103
12121
  }
12104
- }, _vm._l(_vm.customButtons, function (button, index) {
12122
+ }, [_vm.customButtons && _vm.customButtons.length ? _vm._l(_vm.customButtons, function (button, index) {
12105
12123
  return _c('span', {
12106
12124
  directives: [{
12107
12125
  name: "show",
@@ -12132,7 +12150,22 @@ var __vue_render__$1 = function () {
12132
12150
  "innerHTML": _vm._s(button.svgIcon)
12133
12151
  }
12134
12152
  })], 1);
12135
- }), 0) : _vm._e(), _vm._v(" "), _vm.customActionButtons && _vm.customActionButtons.length && _vm.customActionButtons[0].type === 'ja-spam' ? _c('div', {
12153
+ }) : _vm._e(), _vm._v(" "), _vm.isOpen && _vm.filteredFiles && _vm.filteredFiles.length ? _c('span', {
12154
+ staticClass: "email-clip-anchor cursor-pointer",
12155
+ attrs: {
12156
+ "title": _vm.filteredFiles.length + " anexos"
12157
+ },
12158
+ on: {
12159
+ "click": function ($event) {
12160
+ $event.stopPropagation();
12161
+ return _vm.scrollToAttachments.apply(null, arguments);
12162
+ }
12163
+ }
12164
+ }, [_c('fa-icon', {
12165
+ attrs: {
12166
+ "icon": ['fas', 'paperclip']
12167
+ }
12168
+ })], 1) : _vm._e()], 2), _vm._v(" "), _vm.customActionButtons && _vm.customActionButtons.length && _vm.customActionButtons[0].type === 'ja-spam' ? _c('div', {
12136
12169
  key: _vm.customActionButtons[0].id,
12137
12170
  staticClass: "ja-marcado-spam"
12138
12171
  }, [_c('span', {