vue-intergrall-plugins 1.0.41 → 1.0.42

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.
@@ -10249,6 +10249,9 @@ var script = {
10249
10249
  isClosedClass: {
10250
10250
  type: String,
10251
10251
  default: 'bg-light-gray-2'
10252
+ },
10253
+ refKey: {
10254
+ type: String
10252
10255
  }
10253
10256
  },
10254
10257
  data: function data() {
@@ -10294,6 +10297,7 @@ var script = {
10294
10297
  },
10295
10298
  mounted: function mounted() {
10296
10299
  this.updateIframeContent();
10300
+ if (this.refKey) this.$root.$refs["".concat(refKey)] = this;
10297
10301
  },
10298
10302
  methods: {
10299
10303
  updateIframeContent: function updateIframeContent() {
@@ -10316,8 +10320,8 @@ var script = {
10316
10320
  var emailParent = _this2.$refs.emailIframeParent;
10317
10321
  if (iframe && emailParent) {
10318
10322
  var doc = iframe.contentDocument || iframe.contentWindow.document;
10319
- iframe.style.height = "".concat(doc.documentElement.offsetHeight < 1000 ? doc.documentElement.offsetHeight : 1000, "px");
10320
- emailParent.style.minHeight = "".concat(doc.documentElement.offsetHeight < 1000 ? doc.documentElement.offsetHeight : 1000, "px");
10323
+ iframe.style.height = "".concat(doc.documentElement.offsetHeight, "px");
10324
+ emailParent.style.minHeight = "".concat(doc.documentElement.offsetHeight, "px");
10321
10325
  }
10322
10326
  });
10323
10327
  },
@@ -10360,7 +10364,7 @@ var __vue_render__ = function __vue_render__() {
10360
10364
  var _c = _vm._self._c || _h;
10361
10365
  return _c('div', {
10362
10366
  class: ['email-item box-shadow', _vm.isOpen ? _vm.isOpenClass : _vm.isClosedClass]
10363
- }, [_vm._ssrNode("<p" + _vm._ssrAttr("title", _vm.htmlEntityToEmoji(_vm.replaceUnicodeWithEmoji(_vm.assunto)) || '(Sem assunto)') + " class=\"email-subject\" data-v-4c7ad756>" + _vm._ssrEscape("\n " + _vm._s(_vm.htmlEntityToEmoji(_vm.replaceUnicodeWithEmoji(_vm.tratarTextoLongo(_vm.assunto, 30))) || '(Sem assunto)') + "\n ") + "</p> "), _vm._ssrNode("<div class=\"email-header\" data-v-4c7ad756>", "</div>", [_vm._ssrNode("<div class=\"email-header-content\" data-v-4c7ad756>", "</div>", [_vm._ssrNode("<div class=\"email-header-infos\" data-v-4c7ad756>", "</div>", [_vm.from && _vm.from.length ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-4c7ad756>", "</div>", _vm._l(_vm.from, function (sender, index) {
10367
+ }, [_vm._ssrNode("<p" + _vm._ssrAttr("title", _vm.htmlEntityToEmoji(_vm.replaceUnicodeWithEmoji(_vm.assunto)) || '(Sem assunto)') + " class=\"email-subject\" data-v-261c6a5a>" + _vm._ssrEscape("\n " + _vm._s(_vm.htmlEntityToEmoji(_vm.replaceUnicodeWithEmoji(_vm.tratarTextoLongo(_vm.assunto, 30))) || '(Sem assunto)') + "\n ") + "</p> "), _vm._ssrNode("<div class=\"email-header\" data-v-261c6a5a>", "</div>", [_vm._ssrNode("<div class=\"email-header-content\" data-v-261c6a5a>", "</div>", [_vm._ssrNode("<div class=\"email-header-infos\" data-v-261c6a5a>", "</div>", [_vm.from && _vm.from.length ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-261c6a5a>", "</div>", _vm._l(_vm.from, function (sender, index) {
10364
10368
  return _c('EmailFrom', {
10365
10369
  key: "from-" + index,
10366
10370
  attrs: {
@@ -10369,7 +10373,7 @@ var __vue_render__ = function __vue_render__() {
10369
10373
  "showMail": _vm.isOpen
10370
10374
  }
10371
10375
  });
10372
- }), 1)] : _vm._e(), _vm._ssrNode(" "), _vm.para && _vm.para.length && _vm.isOpen ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-4c7ad756>", "</div>", [_vm._l(_vm.para, function (recipient, index) {
10376
+ }), 1)] : _vm._e(), _vm._ssrNode(" "), _vm.para && _vm.para.length && _vm.isOpen ? [_vm._ssrNode("<div class=\"email-to-from-container\" data-v-261c6a5a>", "</div>", [_vm._l(_vm.para, function (recipient, index) {
10373
10377
  return _c('EmailTo', {
10374
10378
  key: "to-" + index,
10375
10379
  attrs: {
@@ -10378,7 +10382,7 @@ var __vue_render__ = function __vue_render__() {
10378
10382
  "showMail": _vm.para.length === 1
10379
10383
  }
10380
10384
  });
10381
- }), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-to-btn\" data-v-4c7ad756>", "</div>", [_c('fa-icon', {
10385
+ }), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"email-to-btn\" data-v-261c6a5a>", "</div>", [_c('fa-icon', {
10382
10386
  attrs: {
10383
10387
  "icon": ['fas', 'caret-down']
10384
10388
  }
@@ -10398,14 +10402,14 @@ var __vue_render__ = function __vue_render__() {
10398
10402
  }
10399
10403
  }
10400
10404
  }, [_vm._ssrNode(_vm._ssrList(_vm.mailInfos, function (info, index) {
10401
- return "<li class=\"email-info\" data-v-4c7ad756><span data-v-4c7ad756>" + _vm._ssrEscape(_vm._s(info.label)) + "</span>" + _vm._ssrEscape("\n " + _vm._s(info.value) + "\n ") + "</li>";
10402
- }))]) : _vm._e()], 2)] : _vm._e()], 2)]), _vm._ssrNode(" "), _vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.formattedDate) + " class=\"email-date\" data-v-4c7ad756>", "</span>", [_c('fa-icon', {
10405
+ return "<li class=\"email-info\" data-v-261c6a5a><span data-v-261c6a5a>" + _vm._ssrEscape(_vm._s(info.label)) + "</span>" + _vm._ssrEscape("\n " + _vm._s(info.value) + "\n ") + "</li>";
10406
+ }))]) : _vm._e()], 2)] : _vm._e()], 2)]), _vm._ssrNode(" "), _vm._ssrNode("<span" + _vm._ssrAttr("title", _vm.formattedDate) + " class=\"email-date\" data-v-261c6a5a>", "</span>", [_c('fa-icon', {
10403
10407
  attrs: {
10404
10408
  "icon": ['fas', 'calendar']
10405
10409
  }
10406
10410
  }), _vm._ssrNode(_vm._ssrEscape("\n " + _vm._s(_vm.formattedDate) + "\n "))], 2), _vm._ssrNode(" " + (_vm.isOpen ? "<span" + _vm._ssrClass(null, ['email-actions box-shadow', {
10407
10411
  active: _vm.actionsOpen
10408
- }]) + " data-v-4c7ad756><span data-v-4c7ad756></span> <span data-v-4c7ad756></span> <span data-v-4c7ad756></span></span>" : "<!---->") + " "), _vm.actionsOpen && _vm.isOpen ? _c('ul', {
10412
+ }]) + " data-v-261c6a5a><span data-v-261c6a5a></span> <span data-v-261c6a5a></span> <span data-v-261c6a5a></span></span>" : "<!---->") + " "), _vm.actionsOpen && _vm.isOpen ? _c('ul', {
10409
10413
  directives: [{
10410
10414
  name: "clickaway",
10411
10415
  rawName: "v-clickaway",
@@ -10418,7 +10422,7 @@ var __vue_render__ = function __vue_render__() {
10418
10422
  $event.stopPropagation();
10419
10423
  }
10420
10424
  }
10421
- }, [_vm._ssrNode("<li class=\"email-action\" data-v-4c7ad756>" + _vm._ssrEscape("\n " + _vm._s(!_vm.openMessage ? 'Visualizar' : 'Esconder') + " texto do e-mail\n ") + "</li>")]) : _vm._e()], 2), _vm._ssrNode(" "), _c('transition', {
10425
+ }, [_vm._ssrNode("<li class=\"email-action\" data-v-261c6a5a>" + _vm._ssrEscape("\n " + _vm._s(!_vm.openMessage ? 'Visualizar' : 'Esconder') + " texto do e-mail\n ") + "</li>")]) : _vm._e()], 2), _vm._ssrNode(" "), _c('transition', {
10422
10426
  attrs: {
10423
10427
  "name": "show-y-top"
10424
10428
  }
@@ -10430,7 +10434,7 @@ var __vue_render__ = function __vue_render__() {
10430
10434
  staticClass: "email-html"
10431
10435
  }), _vm._v(" "), _vm.openMessage ? _c('span', {
10432
10436
  staticClass: "email-raw"
10433
- }, [_vm._v(_vm._s(_vm.mensagem))]) : _vm._e()]) : _vm._e()]), _vm._ssrNode(" "), _vm.anexos && _vm.anexos.length ? _vm._ssrNode("<div class=\"email-files\" data-v-4c7ad756>", "</div>", _vm._l(_vm.anexos, function (anexo, index) {
10437
+ }, [_vm._v(_vm._s(_vm.mensagem))]) : _vm._e()]) : _vm._e()]), _vm._ssrNode(" "), _vm.anexos && _vm.anexos.length ? _vm._ssrNode("<div class=\"email-files\" data-v-261c6a5a>", "</div>", _vm._l(_vm.anexos, function (anexo, index) {
10434
10438
  return _c('EmailFile', {
10435
10439
  key: index,
10436
10440
  attrs: {
@@ -10445,20 +10449,20 @@ var __vue_staticRenderFns__ = [];
10445
10449
  /* style */
10446
10450
  var __vue_inject_styles__ = function __vue_inject_styles__(inject) {
10447
10451
  if (!inject) return;
10448
- inject("data-v-4c7ad756_0", {
10449
- source: ".show-y-top-enter-active[data-v-4c7ad756],.show-y-top-leave-enter[data-v-4c7ad756]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-4c7ad756],.show-y-top-leave-to[data-v-4c7ad756]{opacity:0;transform:translateY(-2%)}",
10452
+ inject("data-v-261c6a5a_0", {
10453
+ source: ".show-y-top-enter-active[data-v-261c6a5a],.show-y-top-leave-enter[data-v-261c6a5a]{opacity:1;transform:translateY(0);transition:all .2s linear}.show-y-top-enter[data-v-261c6a5a],.show-y-top-leave-to[data-v-261c6a5a]{opacity:0;transform:translateY(-2%)}",
10450
10454
  map: undefined,
10451
10455
  media: undefined
10452
- }), inject("data-v-4c7ad756_1", {
10453
- source: ".bg-dark-white-2{background-color:#f7f7f7}.bg-light-gray-2{background-color:#d8d8d8}.email-item{flex:1;margin:0 0 10px 0;color:#222;min-height:60px;display:flex;flex-wrap:wrap;padding:10px;border-radius:5px;transition:all 150ms ease-in-out;max-width:100%;width:100%}.email-header{width:100%;display:flex;align-items:center;justify-content:space-between;cursor:pointer;border-top-right-radius:5px;border-top-left-radius:5px;position:relative;overflow:hidden}.email-header-content{display:flex;align-items:center;margin:10px;flex:1;min-width:250px}.email-header-infos{display:flex;flex-direction:column;flex:1}.email-subject{margin:0 0 5px 0;font-weight:700;font-size:.95rem;cursor:pointer}.email-date{--width:245px;font-size:.8rem;margin-right:10px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;min-width:var(--width);width:var(--width);max-width:var(--width)}.email-content{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100%;padding:15px;background-color:#fff;position:relative;max-width:100%}.email-actions{align-self:flex-end;display:flex;border-radius:10px;cursor:pointer;align-items:center;justify-content:center;gap:3px;padding:5px 7px;background-color:#ddd;position:absolute;right:5px;top:5px;z-index:1}.email-actions.active{background-color:#dfdfdf}.email-actions>span{width:4px;height:4px;background-color:#222;border-radius:50%}.email-actions-list{position:absolute;right:45px;width:250px;top:5px;margin:0;list-style-type:none;padding:0;border-radius:5px;z-index:1}.email-action{background-color:#dfdfdf;padding:5px 10px;cursor:pointer;transition:background-color 150ms ease-in-out;font-size:.9rem;user-select:none}.email-action:nth-child(1){border-top-left-radius:5px;border-top-right-radius:5px}.email-action:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.email-action:hover{background-color:#ccc}.email-html{width:100%;max-width:100%;padding:10px;border:none;max-height:1000px;overflow:auto}.email-raw{width:100%;max-width:100%;font-size:.9rem;color:#222}.email-files{display:flex;gap:10px;flex-wrap:wrap;width:100%}.email-header-content,.email-header-infos{max-width:100%;overflow:hidden}.email-to-from-container{margin-bottom:10px;max-width:100%;display:flex;flex-wrap:wrap;flex:1;gap:5px}.email-to-from-container:last-child{margin-bottom:0}.email-to-btn{padding:0 5px;font-size:.9rem;cursor:pointer;color:#666}.email-to-infos{position:absolute;bottom:-300px;border:1px solid #ccc;z-index:2;padding:10px;background-color:#fff;height:300px;max-height:300px;overflow-y:auto;overflow-x:hidden;width:300px;display:flex;flex-direction:column;gap:5px;margin:0;cursor:default}.email-info{width:100%;font-size:.8rem}.email-info>span{font-size:.75rem;color:gray;margin-left:5px}",
10456
+ }), inject("data-v-261c6a5a_1", {
10457
+ source: ".bg-dark-white-2{background-color:#f7f7f7}.bg-light-gray-2{background-color:#d8d8d8}.email-item{flex:1;margin:0 0 10px 0;color:#222;min-height:60px;display:flex;flex-wrap:wrap;padding:10px;border-radius:5px;transition:all 150ms ease-in-out;max-width:100%;width:100%}.email-header{width:100%;display:flex;align-items:center;justify-content:space-between;cursor:pointer;border-top-right-radius:5px;border-top-left-radius:5px;position:relative;overflow:hidden}.email-header-content{display:flex;align-items:center;margin:10px;flex:1;min-width:250px}.email-header-infos{display:flex;flex-direction:column;flex:1}.email-subject{margin:0 0 5px 0;font-weight:700;font-size:.95rem;cursor:pointer}.email-date{--width:245px;font-size:.8rem;margin-right:10px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;min-width:var(--width);width:var(--width);max-width:var(--width)}.email-content{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100%;background-color:#fff;position:relative;max-width:100%}.email-actions{align-self:flex-end;display:flex;border-radius:10px;cursor:pointer;align-items:center;justify-content:center;gap:3px;padding:5px 7px;background-color:#ddd;position:absolute;right:5px;top:5px;z-index:1}.email-actions.active{background-color:#dfdfdf}.email-actions>span{width:4px;height:4px;background-color:#222;border-radius:50%}.email-actions-list{position:absolute;right:45px;width:250px;top:5px;margin:0;list-style-type:none;padding:0;border-radius:5px;z-index:1}.email-action{background-color:#dfdfdf;padding:5px 10px;cursor:pointer;transition:background-color 150ms ease-in-out;font-size:.9rem;user-select:none}.email-action:nth-child(1){border-top-left-radius:5px;border-top-right-radius:5px}.email-action:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.email-action:hover{background-color:#ccc}.email-html{width:100%;min-width:300px;max-width:100%;border:none;overflow:auto}.email-raw{width:100%;max-width:100%;padding:15px;font-size:.9rem;color:#222}.email-files{display:flex;gap:10px;flex-wrap:wrap;width:100%}.email-header-content,.email-header-infos{max-width:100%;overflow:hidden}.email-to-from-container{margin-bottom:10px;max-width:100%;display:flex;flex-wrap:wrap;flex:1;gap:5px}.email-to-from-container:last-child{margin-bottom:0}.email-to-btn{padding:0 5px;font-size:.9rem;cursor:pointer;color:#666}.email-to-infos{position:absolute;bottom:-300px;border:1px solid #ccc;z-index:2;padding:10px;background-color:#fff;height:300px;max-height:300px;overflow-y:auto;overflow-x:hidden;width:300px;display:flex;flex-direction:column;gap:5px;margin:0;cursor:default}.email-info{width:100%;font-size:.8rem}.email-info>span{font-size:.75rem;color:gray;margin-left:5px}",
10454
10458
  map: undefined,
10455
10459
  media: undefined
10456
10460
  });
10457
10461
  };
10458
10462
  /* scoped */
10459
- var __vue_scope_id__ = "data-v-4c7ad756";
10463
+ var __vue_scope_id__ = "data-v-261c6a5a";
10460
10464
  /* module identifier */
10461
- var __vue_module_identifier__ = "data-v-4c7ad756";
10465
+ var __vue_module_identifier__ = "data-v-261c6a5a";
10462
10466
  /* functional template */
10463
10467
  var __vue_is_functional_template__ = false;
10464
10468
  /* style inject shadow dom */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intergrall-plugins",
3
- "version": "1.0.41",
3
+ "version": "1.0.42",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -124,6 +124,9 @@ export default {
124
124
  isClosedClass: {
125
125
  type: String,
126
126
  default: 'bg-light-gray-2'
127
+ },
128
+ refKey: {
129
+ type: String,
127
130
  }
128
131
  },
129
132
  data() {
@@ -173,6 +176,8 @@ export default {
173
176
  },
174
177
  mounted() {
175
178
  this.updateIframeContent();
179
+
180
+ if (this.refKey) this.$root.$refs[`${refKey}`] = this
176
181
  },
177
182
  methods: {
178
183
  updateIframeContent() {
@@ -193,8 +198,8 @@ export default {
193
198
  const emailParent = this.$refs.emailIframeParent
194
199
  if (iframe && emailParent) {
195
200
  const doc = iframe.contentDocument || iframe.contentWindow.document;
196
- iframe.style.height = `${doc.documentElement.offsetHeight < 1000 ? doc.documentElement.offsetHeight : 1000}px`;
197
- emailParent.style.minHeight = `${doc.documentElement.offsetHeight < 1000 ? doc.documentElement.offsetHeight : 1000}px`
201
+ iframe.style.height = `${doc.documentElement.offsetHeight}px`;
202
+ emailParent.style.minHeight = `${doc.documentElement.offsetHeight}px`
198
203
  }
199
204
  });
200
205
  },
@@ -319,7 +324,6 @@ export default {
319
324
  align-items: center;
320
325
  justify-content: flex-start;
321
326
  width: 100%;
322
- padding: 15px;
323
327
  background-color: #FFF;
324
328
  position: relative;
325
329
  max-width: 100%;
@@ -389,16 +393,16 @@ export default {
389
393
 
390
394
  .email-html {
391
395
  width: 100%;
396
+ min-width: 300px;
392
397
  max-width: 100%;
393
- padding: 10px;
394
398
  border: none;
395
- max-height: 1000px;
396
399
  overflow: auto;
397
400
  }
398
401
 
399
402
  .email-raw {
400
403
  width: 100%;
401
404
  max-width: 100%;
405
+ padding: 15px;
402
406
  font-size: .9rem;
403
407
  color: #222;
404
408
  }