vue-intergrall-plugins 0.0.206 → 0.0.207

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.
@@ -11237,6 +11237,10 @@ var script$9 = {
11237
11237
  type: Object,
11238
11238
  required: true
11239
11239
  },
11240
+ anexos: {
11241
+ type: Array,
11242
+ required: false
11243
+ },
11240
11244
  dictionary: {
11241
11245
  type: Object,
11242
11246
  required: true
@@ -11244,12 +11248,29 @@ var script$9 = {
11244
11248
  },
11245
11249
 
11246
11250
  mounted() {
11251
+ console.log(this.anexos);
11252
+
11247
11253
  if (this.validateInterativity()) {
11248
11254
  this.verifyInfoAditional();
11249
11255
  }
11250
11256
  },
11251
11257
 
11252
11258
  methods: {
11259
+ returnCurrentClass(isDoc) {
11260
+ return `fs-2 cursor-pointer ${isDoc == 'pdf' ? 'text-red' : 'text-blue'}`;
11261
+ },
11262
+
11263
+ returnCurrentIcon(isDoc) {
11264
+ return isDoc == 'pdf' ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
11265
+ },
11266
+
11267
+ openFile(url, isImg) {
11268
+ const width = window.innerWidth;
11269
+ const height = window.innerHeight;
11270
+ const options = !isImg ? `width=${width},height=${height}` : "width=auto,height=auto";
11271
+ window.open(url, "card-file", options);
11272
+ },
11273
+
11253
11274
  validateInterativity() {
11254
11275
  try {
11255
11276
  if (this.interatividade.formulario && this.interatividade.formulario.length) {
@@ -11353,7 +11374,64 @@ var __vue_render__$9 = function () {
11353
11374
  "textContent": _vm._s(form.TEXTO)
11354
11375
  }
11355
11376
  }) : _vm._e()])])]);
11356
- }), 0)], 2)] : _vm._e()], 2);
11377
+ }), 0), _vm._v(" "), _c('h3', {
11378
+ staticClass: "m-5 text-bold",
11379
+ domProps: {
11380
+ "textContent": _vm._s("Anexos")
11381
+ }
11382
+ }), _vm._v(" "), _c('div', {
11383
+ staticClass: "d-flex flex-wrap align-items-center"
11384
+ }, _vm._l(_vm.anexos, function (ref, fileIndex) {
11385
+ var name = ref.name;
11386
+ var url = ref.url;
11387
+ var type = ref.type;
11388
+ var mkuDownload = ref.mkuDownload;
11389
+ return _c('div', {
11390
+ key: "file-" + fileIndex,
11391
+ staticClass: "mb-5 mx-5 d-flex"
11392
+ }, [!type ? _c('img', {
11393
+ staticClass: "box-shadow max-w-75px max-h-75px cursor-pointer",
11394
+ attrs: {
11395
+ "src": url,
11396
+ "alt": name,
11397
+ "title": name
11398
+ },
11399
+ on: {
11400
+ "click": function ($event) {
11401
+ return _vm.openFile(url, type);
11402
+ }
11403
+ }
11404
+ }) : _c('fa-icon', {
11405
+ class: _vm.returnCurrentClass(type),
11406
+ attrs: {
11407
+ "icon": _vm.returnCurrentIcon(type),
11408
+ "title": name
11409
+ },
11410
+ on: {
11411
+ "click": function ($event) {
11412
+ return _vm.openFile(url, type);
11413
+ }
11414
+ }
11415
+ }), _vm._v(" "), _c('a', {
11416
+ staticClass: "d-flex align-items-end ml-3 text-dark",
11417
+ attrs: {
11418
+ "href": mkuDownload,
11419
+ "download": "" + name,
11420
+ "target": "_blank",
11421
+ "rel": "noreferrer noopener",
11422
+ "title": "Download " + name
11423
+ }
11424
+ }, [_c('fa-icon', {
11425
+ attrs: {
11426
+ "icon": ['fas', 'download']
11427
+ }
11428
+ })], 1)], 1);
11429
+ }), 0), _vm._v(" "), !_vm.anexos.length ? _c('p', {
11430
+ staticClass: "text-center mb-5",
11431
+ domProps: {
11432
+ "textContent": _vm._s("Sem anexos")
11433
+ }
11434
+ }) : _vm._e()], 2)] : _vm._e()], 2);
11357
11435
  };
11358
11436
 
11359
11437
  var __vue_staticRenderFns__$9 = [];
@@ -11361,8 +11439,8 @@ var __vue_staticRenderFns__$9 = [];
11361
11439
 
11362
11440
  const __vue_inject_styles__$9 = function (inject) {
11363
11441
  if (!inject) return;
11364
- inject("data-v-7c3f68fa_0", {
11365
- source: ".show-x-enter-active[data-v-7c3f68fa],.show-x-leave-enter[data-v-7c3f68fa]{opacity:1;transform:translateX(0);transition:all .2s linear}.show-x-enter[data-v-7c3f68fa],.show-x-leave-to[data-v-7c3f68fa]{opacity:0;transform:translateX(5%)}.divisor-form-info-aditional[data-v-7c3f68fa]{display:flex;align-items:center;justify-content:space-around}.info-aditional[data-v-7c3f68fa]{border-bottom:1px solid #ccc;width:49%}.interatividade-form-header[data-v-7c3f68fa]{background-color:#efefef;margin-top:5px;border-top-right-radius:10px;border-top-left-radius:10px;padding-left:10px;padding-right:10px;padding-top:5px;padding-bottom:5px;justify-content:space-between;display:flex;color:#333;font-weight:700;font-size:.9rem}.interatividade-form-body[data-v-7c3f68fa]{padding:0 10px;background:#fff;border-right:1px solid #efefef;border-left:1px solid #efefef;border-bottom-left-radius:10px;border-bottom-right-radius:10px;padding-bottom:10px}.interatividade[data-v-7c3f68fa]{margin:10px 0}.interatividade-titulo-form[data-v-7c3f68fa]{white-space:nowrap;text-overflow:ellipsis;font-weight:700;overflow:hidden;max-width:100%;margin:0;padding:0;padding-top:5px}.interatividade-description-form[data-v-7c3f68fa]{overflow:hidden;max-width:100%;margin:0;padding:0}.interatividade-lista[data-v-7c3f68fa]{width:100%;min-width:200px;border-radius:15px;background-color:#fff;color:#333;margin:10px 0}.interatividade-lista-conteudo[data-v-7c3f68fa]{padding:10px;border-bottom:1px solid #d7d7d7}.interatividade-lista-titulo[data-v-7c3f68fa]{font-weight:700;font-size:1.2em;margin-bottom:10px}.interatividade-lista-rodape[data-v-7c3f68fa]{color:#818181;margin-top:5px}.interatividade-lista-link[data-v-7c3f68fa]{width:100%;text-align:center;padding:10px;color:#006eff;cursor:pointer;transition:color .2s ease-in-out}.interatividade-lista-link[data-v-7c3f68fa]:hover{color:#00628f}",
11442
+ inject("data-v-0f484580_0", {
11443
+ source: ".show-x-enter-active[data-v-0f484580],.show-x-leave-enter[data-v-0f484580]{opacity:1;transform:translateX(0);transition:all .2s linear}.show-x-enter[data-v-0f484580],.show-x-leave-to[data-v-0f484580]{opacity:0;transform:translateX(5%)}.divisor-form-info-aditional[data-v-0f484580]{display:flex;align-items:center;justify-content:space-around}.info-aditional[data-v-0f484580]{border-bottom:1px solid #ccc;width:49%}.interatividade-form-header[data-v-0f484580]{background-color:#efefef;margin-top:5px;border-top-right-radius:10px;border-top-left-radius:10px;padding-left:10px;padding-right:10px;padding-top:5px;padding-bottom:5px;justify-content:space-between;display:flex;color:#333;font-weight:700;font-size:.9rem}.interatividade-form-body[data-v-0f484580]{padding:0 10px;background:#fff;border-right:1px solid #efefef;border-left:1px solid #efefef;border-bottom-left-radius:10px;border-bottom-right-radius:10px;padding-bottom:10px}.interatividade[data-v-0f484580]{margin:10px 0}.interatividade-titulo-form[data-v-0f484580]{white-space:nowrap;text-overflow:ellipsis;font-weight:700;overflow:hidden;max-width:100%;margin:0;padding:0;padding-top:5px}.interatividade-description-form[data-v-0f484580]{overflow:hidden;max-width:100%;margin:0;padding:0}.interatividade-lista[data-v-0f484580]{width:100%;min-width:200px;border-radius:15px;background-color:#fff;color:#333;margin:10px 0}.interatividade-lista-conteudo[data-v-0f484580]{padding:10px;border-bottom:1px solid #d7d7d7}.interatividade-lista-titulo[data-v-0f484580]{font-weight:700;font-size:1.2em;margin-bottom:10px}.interatividade-lista-rodape[data-v-0f484580]{color:#818181;margin-top:5px}.interatividade-lista-link[data-v-0f484580]{width:100%;text-align:center;padding:10px;color:#006eff;cursor:pointer;transition:color .2s ease-in-out}.interatividade-lista-link[data-v-0f484580]:hover{color:#00628f}.text-blue[data-v-0f484580]{color:#294ed3}.text-red[data-v-0f484580]{color:#e74c3c}.text-dark[data-v-0f484580]{color:#333}.ml-3[data-v-0f484580]{margin-left:3px}.fs-2[data-v-0f484580]{font-size:2rem}.flex-wrap[data-v-0f484580]{-ms-flex-wrap:wrap;flex-wrap:wrap}.align-items-center[data-v-0f484580]{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.d-flex[data-v-0f484580]{display:-webkit-box;display:-ms-flexbox;display:flex}.align-items-end[data-v-0f484580]{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.text-bold[data-v-0f484580]{font-weight:700}.m-5[data-v-0f484580]{margin:5px}.mb-5[data-v-0f484580]{margin-bottom:5px}.mx-5[data-v-0f484580]{margin-left:5px;margin-right:5px}.cursor-pointer[data-v-0f484580]{cursor:pointer}",
11366
11444
  map: undefined,
11367
11445
  media: undefined
11368
11446
  });
@@ -11370,7 +11448,7 @@ const __vue_inject_styles__$9 = function (inject) {
11370
11448
  /* scoped */
11371
11449
 
11372
11450
 
11373
- const __vue_scope_id__$9 = "data-v-7c3f68fa";
11451
+ const __vue_scope_id__$9 = "data-v-0f484580";
11374
11452
  /* module identifier */
11375
11453
 
11376
11454
  const __vue_module_identifier__$9 = undefined;
@@ -12710,6 +12788,7 @@ var __vue_render__$3 = function () {
12710
12788
  }, [_vm.interatividade && _vm.validateInterativity() ? _c('InteratividadeFormulario', {
12711
12789
  attrs: {
12712
12790
  "interatividade": _vm.interatividade,
12791
+ "anexos": _vm.anexos,
12713
12792
  "dictionary": _vm.dictionary
12714
12793
  }
12715
12794
  }) : _c('div', {
@@ -12975,7 +13054,7 @@ var __vue_staticRenderFns__$3 = [];
12975
13054
 
12976
13055
  const __vue_inject_styles__$3 = function (inject) {
12977
13056
  if (!inject) return;
12978
- inject("data-v-257d4492_0", {
13057
+ inject("data-v-7621b8ba_0", {
12979
13058
  source: ":root{--message-color:#373737}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}.mensagem{padding:14px 7px;border-radius:2.5px;min-width:150px;min-height:60px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;max-width:80%;margin-bottom:10px;font-size:.85rem;word-break:break-word}.mensagem.mapa{width:100%}.mensagem.hist-msg{animation:show 1s}.mensagem a{margin-right:5px;font-weight:550;color:inherit;text-decoration:none}.mensagem a:hover{text-decoration:underline}.message p{white-space:pre-wrap}.mensagem-anexo a,.mensagem-div-mapa a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.reply{cursor:pointer;position:absolute;right:53px;bottom:5px;font-size:.6rem;color:#67a332;width:.9rem;height:.9rem;display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:#fff}.reply svg{margin-top:-1px;margin-right:-1px}.reply-with-2-icons{right:30px}.check{cursor:pointer;position:absolute;right:10px;bottom:2px;font-size:.7rem}.check.visualizado,.check.visualizado svg{color:#006daa}.check.verde,.check.verde svg{color:#4f772d}.check.vermelho,.check.vermelho svg{color:#ba181b}.check.cinza,.check.cinza svg{color:#999}.check.preto,.check.preto svg{color:#666}.star{cursor:pointer;position:absolute;right:30px;bottom:2px;font-size:.4rem;width:11.2px}.default-stick-size{width:180px;height:auto}.horario-envio{margin-right:15px;font-size:.7rem;position:absolute;left:10px;bottom:2px}.autor-mensagem{position:absolute;font-size:.6rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:90%;font-weight:700;top:2px}.mensagem__principal{width:100%;display:flex;justify-content:flex-end}.mensagem__principal>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid var(--message-color);bottom:5px;right:-10px;transform:rotate(-90deg)}.mensagem__principal>.mensagem{background-color:var(--message-color);color:#fff}.mensagem__principal>.mensagem .horario-envio{color:#fff}.mensagem__principal>.mensagem .autor-mensagem{right:5px;color:#fff}.mensagem__outros{width:100%;display:flex}.mensagem__outros>.mensagem{background-color:#fff;color:#333}.mensagem__outros>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #fff;bottom:5px;left:-10px;transform:rotate(90deg)}.mensagem__outros>.autor-mensagem{left:5px;color:#333}.mensagem-div-mapa{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;margin-bottom:5px}.msg-mapa{width:100%;min-height:225px;height:100%;box-sizing:initial}.msg-mapa img{max-width:none!important}.info-mapa{list-style-type:none}.info-mapa li.title{font-size:.85em}.info-mapa li.address,.info-mapa li.url{font-size:.7em}.info-mapa li.url{font-size:.7em}.tooltip-list{margin:0;padding:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}",
12980
13059
  map: undefined,
12981
13060
  media: undefined