vue-intergrall-plugins 0.0.205 → 0.0.208

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.
@@ -9740,37 +9740,39 @@ var script$f = {
9740
9740
  if (index === "components" && Array.isArray(this.selectedTemplate[index])) {
9741
9741
  const arrComponents = this.selectedTemplate[index];
9742
9742
  arrComponents.map(component => {
9743
- component.parameters.map(message => {
9744
- message.currentText = message.text;
9745
- let keyIndex = 0;
9743
+ if (component && component.parameters && component.parameters.length) {
9744
+ component.parameters.map(message => {
9745
+ message.currentText = message.text;
9746
+ let keyIndex = 0;
9746
9747
 
9747
- while (keyIndex < keys.length) {
9748
- const varName = `{{${keys[keyIndex]}}}`;
9748
+ while (keyIndex < keys.length) {
9749
+ const varName = `{{${keys[keyIndex]}}}`;
9749
9750
 
9750
- if (message.text.indexOf(varName) != -1) {
9751
- /**Gerando os obejetos de parametros da notifica??o para o component */
9752
- if (component.type === "header") {
9753
- this.selectedTemplate['parameters'][component.type] = {}; //Header s? pode ter uma vari?vel
9751
+ if (message.text.indexOf(varName) != -1) {
9752
+ /**Gerando os obejetos de parametros da notificacao para o component */
9753
+ if (component.type === "header") {
9754
+ this.selectedTemplate['parameters'][component.type] = {}; //Header s? pode ter uma vari?vel
9754
9755
 
9755
- this.selectedTemplate['parameters'][component.type] = {
9756
- tipo: "text",
9757
- text: values[keyIndex]
9758
- };
9759
- } else if (!this.selectedTemplate['parameters'][component.type]) {
9760
- this.selectedTemplate['parameters'][component.type] = new Array();
9761
- } //Aplicando valores das v?riaveis dentro dos outros componentes com execess?o do header
9756
+ this.selectedTemplate['parameters'][component.type] = {
9757
+ tipo: "text",
9758
+ text: values[keyIndex]
9759
+ };
9760
+ } else if (!this.selectedTemplate['parameters'][component.type]) {
9761
+ this.selectedTemplate['parameters'][component.type] = new Array();
9762
+ } //Aplicando valores das v?riaveis dentro dos outros componentes com execess?o do header
9762
9763
 
9763
9764
 
9764
- if (this.selectedTemplate['parameters'][component.type] && component.type !== 'header') {
9765
- this.selectedTemplate['parameters'][component.type].push(values[keyIndex]);
9765
+ if (this.selectedTemplate['parameters'][component.type] && component.type !== 'header') {
9766
+ this.selectedTemplate['parameters'][component.type].push(values[keyIndex]);
9767
+ }
9768
+
9769
+ message.currentText = message.currentText.replace(varName, values[keyIndex]);
9766
9770
  }
9767
9771
 
9768
- message.currentText = message.currentText.replace(varName, values[keyIndex]);
9772
+ keyIndex++;
9769
9773
  }
9770
-
9771
- keyIndex++;
9772
- }
9773
- });
9774
+ });
9775
+ }
9774
9776
  });
9775
9777
  }
9776
9778
  }
@@ -9868,7 +9870,7 @@ var __vue_staticRenderFns__$f = [];
9868
9870
 
9869
9871
  const __vue_inject_styles__$f = function (inject) {
9870
9872
  if (!inject) return;
9871
- inject("data-v-1c24c23b_0", {
9873
+ inject("data-v-0b0bc59a_0", {
9872
9874
  source: "*{box-sizing:border-box}.toasted svg{margin-right:10px}.d-none{display:none}ul{list-style-type:none}h1,h2,h3,h4,p{margin:0;padding:0}.tg-container{width:100%;max-width:800px;display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto}.tg-options{width:100%;display:flex}.tg-options.column{flex-direction:column}.tg-options h4{margin-right:5px}.tg-select{flex:1;height:34px;overflow:hidden}.tg-select .vs__dropdown-toggle{background-color:#fff;height:34px;overflow:hidden;display:flex;align-items:center}.tg-select .vs__selected-options{height:34px;overflow:hidden}.tg-select .vs__selected-options>span{white-space:nowrap;text-overflow:ellipsis;flex:1}.tg-select .vs__selected-options>input{flex-grow:0}.vs__dropdown-option{transition:background-color 150ms;white-space:normal}.vs__dropdown-option:nth-child(odd){background-color:#f1f1f1}.vs__dropdown-option--highlight,.vs__dropdown-option--selected,.vs__dropdown-option:active,.vs__dropdown-option:focus,.vs__dropdown-option:hover{background-color:#5897fb!important;color:#fff}.tg-component{width:100%}.ts-container{width:100%;display:flex;justify-content:space-between}.ts-content{--border-color:#CCC;--background-color:#DFF0D8;--input-background-color:#FFF;--input-border-default:#007BFF;--input-border-error:#E74C3C;--placeholder-color:#BBB;flex:2;font-size:.7rem;padding:10px 0}.ts-content footer,.ts-content header,.ts-content section{padding:3px 5px;background-color:var(--background-color)}.ts-content header,.ts-content section{border-right:1px solid var(--border-color);border-left:1px solid var(--border-color)}.ts-content header{border-top-left-radius:2.5px;border-top-right-radius:2.5px;border-top:1px solid var(--border-color)}.ts-content header{font-weight:550}.ts-content section{line-height:25px}.ts-content section.margin-bottom{border-bottom-left-radius:2.5px;border-bottom-right-radius:2.5px;border-bottom:1px solid var(--border-color)}.ts-content footer{border:1px solid var(--border-color);border-top:unset;border-bottom-left-radius:2.5px;border-bottom-right-radius:2.5px}.ts-content input{border:1px solid transparent;outline:0;font-size:.8rem;padding:2.5px 5px;background-color:var(--input-background-color)}.ts-content input::placeholder{color:var(--placeholder-color)}.ts-content input.active,.ts-content input:focus{border:1px solid var(--input-border-default)}.ts-content input.invalid{border:1px solid var(--input-border-error)!important}.ts-content__var{display:inline-block;position:relative}.ts-dropdown{margin:0;padding:0;position:absolute;top:19px;left:0;background:#eee;width:100%;z-index:1;transition:all 150ms;visibility:hidden;opacity:0;list-style-type:none;border:1px solid #444;border-top:unset}.ts-dropdown li{width:100%;opacity:.9;cursor:pointer;font-weight:550;padding:2px 5px;transition:background-color 150ms}.ts-dropdown li:focus,.ts-dropdown li:focus-within,.ts-dropdown li:hover{opacity:1;background-color:#555;color:#fff}.ts-dropdown.visible{visibility:visible;opacity:1}.tg-btn{width:40%;display:flex;justify-content:center;align-items:center}.tg-btn button{outline:unset;border:unset;display:block;min-width:180px;height:35px;padding:0 10px;font-weight:500;background-color:#007bff;color:#fff;transition-duration:.3s;user-select:none;cursor:pointer;box-shadow:inset 0 -2px rgba(0,0,0,.2);opacity:.9;border-radius:2.5px}.tg-btn button>svg{margin-right:5px;color:#003166}.tg-btn button:hover{opacity:1}.tg-btn button:active{opacity:1;box-shadow:inset 0 -1px rgba(0,0,0,.2);-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-o-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.tg-btn button:active{opacity:1;box-shadow:inset 0 -1px rgba(0,0,0,.2);-webkit-transform:translateY(1px);-moz-transform:translateY(1px);-o-transform:translateY(1px);-ms-transform:translateY(1px);transform:translateY(1px)}.tg-btn button:active,.tg-btn button:focus{outline:unset}.tg-btn.small-btn{width:auto;margin-left:5px}.tg-btn.small-btn svg{margin-right:0}.tg-btn.small-btn button{min-width:35px;width:35px;padding:0;display:flex;justify-content:center;align-items:center}.tm-container{border:1px solid var(--border-color);border-radius:2.5px;display:flex}",
9873
9875
  map: undefined,
9874
9876
  media: undefined
@@ -11235,9 +11237,17 @@ var script$9 = {
11235
11237
  type: Object,
11236
11238
  required: true
11237
11239
  },
11240
+ dominio: {
11241
+ type: String,
11242
+ required: true
11243
+ },
11238
11244
  dictionary: {
11239
11245
  type: Object,
11240
11246
  required: true
11247
+ },
11248
+ anexos: {
11249
+ type: Array,
11250
+ required: false
11241
11251
  }
11242
11252
  },
11243
11253
 
@@ -11248,6 +11258,23 @@ var script$9 = {
11248
11258
  },
11249
11259
 
11250
11260
  methods: {
11261
+ returnCurrentClass(isDoc) {
11262
+ return `fs-2 cursor-pointer ${isDoc == 'pdf' ? 'text-red' : 'text-blue'}`;
11263
+ },
11264
+
11265
+ returnCurrentIcon(isDoc) {
11266
+ return isDoc == 'pdf' ? ['fas', 'file-pdf'] : ['fas', 'file-alt'];
11267
+ },
11268
+
11269
+ openFile(url, isImg) {
11270
+ const width = window.innerWidth;
11271
+ const height = window.innerHeight;
11272
+ const options = !isImg ? `width=${width},height=${height}` : "width=auto,height=auto";
11273
+ let urlformatted = `${this.dominio}/callcenter/docs.php?mku=${url}`;
11274
+ console.log(urlformatted);
11275
+ window.open(urlformatted, "card-file", options);
11276
+ },
11277
+
11251
11278
  validateInterativity() {
11252
11279
  try {
11253
11280
  if (this.interatividade.formulario && this.interatividade.formulario.length) {
@@ -11351,7 +11378,64 @@ var __vue_render__$9 = function () {
11351
11378
  "textContent": _vm._s(form.TEXTO)
11352
11379
  }
11353
11380
  }) : _vm._e()])])]);
11354
- }), 0)], 2)] : _vm._e()], 2);
11381
+ }), 0), _vm._v(" "), _c('h3', {
11382
+ staticClass: "m-5 text-bold",
11383
+ domProps: {
11384
+ "textContent": _vm._s("Anexos")
11385
+ }
11386
+ }), _vm._v(" "), _c('div', {
11387
+ staticClass: "d-flex flex-wrap align-items-center"
11388
+ }, _vm._l(_vm.anexos, function (ref, fileIndex) {
11389
+ var name = ref.name;
11390
+ var type = ref.type;
11391
+ var mkuDownload = ref.mkuDownload;
11392
+ var mku = ref.mku;
11393
+ return _c('div', {
11394
+ key: "file-" + fileIndex,
11395
+ staticClass: "mb-5 mx-5 d-flex"
11396
+ }, [!type ? _c('img', {
11397
+ staticClass: "box-shadow max-w-75px max-h-75px cursor-pointer",
11398
+ attrs: {
11399
+ "src": _vm.dominio + "/callcenter/docs.php?mku=" + mku,
11400
+ "alt": name,
11401
+ "title": name
11402
+ },
11403
+ on: {
11404
+ "click": function ($event) {
11405
+ return _vm.openFile(mku, type);
11406
+ }
11407
+ }
11408
+ }) : _c('fa-icon', {
11409
+ class: _vm.returnCurrentClass(type),
11410
+ attrs: {
11411
+ "icon": _vm.returnCurrentIcon(type),
11412
+ "title": name
11413
+ },
11414
+ on: {
11415
+ "click": function ($event) {
11416
+ return _vm.openFile(mku, type);
11417
+ }
11418
+ }
11419
+ }), _vm._v(" "), _c('a', {
11420
+ staticClass: "d-flex align-items-end ml-3 text-dark",
11421
+ attrs: {
11422
+ "href": _vm.dominio + "/callcenter/docs.php?mku=" + mkuDownload,
11423
+ "download": "" + name,
11424
+ "target": "_blank",
11425
+ "rel": "noreferrer noopener",
11426
+ "title": "Download " + name
11427
+ }
11428
+ }, [_c('fa-icon', {
11429
+ attrs: {
11430
+ "icon": ['fas', 'download']
11431
+ }
11432
+ })], 1)], 1);
11433
+ }), 0), _vm._v(" "), !_vm.anexos.length ? _c('p', {
11434
+ staticClass: "text-center mb-5",
11435
+ domProps: {
11436
+ "textContent": _vm._s("Sem anexos")
11437
+ }
11438
+ }) : _vm._e()], 2)] : _vm._e()], 2);
11355
11439
  };
11356
11440
 
11357
11441
  var __vue_staticRenderFns__$9 = [];
@@ -11359,8 +11443,8 @@ var __vue_staticRenderFns__$9 = [];
11359
11443
 
11360
11444
  const __vue_inject_styles__$9 = function (inject) {
11361
11445
  if (!inject) return;
11362
- inject("data-v-7c3f68fa_0", {
11363
- 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}",
11446
+ inject("data-v-8dbb0508_0", {
11447
+ source: ".show-x-enter-active[data-v-8dbb0508],.show-x-leave-enter[data-v-8dbb0508]{opacity:1;transform:translateX(0);transition:all .2s linear}.show-x-enter[data-v-8dbb0508],.show-x-leave-to[data-v-8dbb0508]{opacity:0;transform:translateX(5%)}.divisor-form-info-aditional[data-v-8dbb0508]{display:flex;align-items:center;justify-content:space-around}.info-aditional[data-v-8dbb0508]{border-bottom:1px solid #ccc;width:49%}.interatividade-form-header[data-v-8dbb0508]{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-8dbb0508]{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-8dbb0508]{margin:10px 0}.interatividade-titulo-form[data-v-8dbb0508]{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-8dbb0508]{overflow:hidden;max-width:100%;margin:0;padding:0}.interatividade-lista[data-v-8dbb0508]{width:100%;min-width:200px;border-radius:15px;background-color:#fff;color:#333;margin:10px 0}.interatividade-lista-conteudo[data-v-8dbb0508]{padding:10px;border-bottom:1px solid #d7d7d7}.interatividade-lista-titulo[data-v-8dbb0508]{font-weight:700;font-size:1.2em;margin-bottom:10px}.interatividade-lista-rodape[data-v-8dbb0508]{color:#818181;margin-top:5px}.interatividade-lista-link[data-v-8dbb0508]{width:100%;text-align:center;padding:10px;color:#006eff;cursor:pointer;transition:color .2s ease-in-out}.interatividade-lista-link[data-v-8dbb0508]:hover{color:#00628f}.text-blue[data-v-8dbb0508]{color:#294ed3}.text-red[data-v-8dbb0508]{color:#e74c3c}.text-dark[data-v-8dbb0508]{color:#333}.ml-3[data-v-8dbb0508]{margin-left:3px}.fs-2[data-v-8dbb0508]{font-size:2rem}.flex-wrap[data-v-8dbb0508]{-ms-flex-wrap:wrap;flex-wrap:wrap}.align-items-center[data-v-8dbb0508]{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.d-flex[data-v-8dbb0508]{display:-webkit-box;display:-ms-flexbox;display:flex}.align-items-end[data-v-8dbb0508]{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.text-bold[data-v-8dbb0508]{font-weight:700}.m-5[data-v-8dbb0508]{margin:5px}.mb-5[data-v-8dbb0508]{margin-bottom:5px}.mx-5[data-v-8dbb0508]{margin-left:5px;margin-right:5px}.cursor-pointer[data-v-8dbb0508]{cursor:pointer}",
11364
11448
  map: undefined,
11365
11449
  media: undefined
11366
11450
  });
@@ -11368,7 +11452,7 @@ const __vue_inject_styles__$9 = function (inject) {
11368
11452
  /* scoped */
11369
11453
 
11370
11454
 
11371
- const __vue_scope_id__$9 = "data-v-7c3f68fa";
11455
+ const __vue_scope_id__$9 = "data-v-8dbb0508";
11372
11456
  /* module identifier */
11373
11457
 
11374
11458
  const __vue_module_identifier__$9 = undefined;
@@ -12708,6 +12792,8 @@ var __vue_render__$3 = function () {
12708
12792
  }, [_vm.interatividade && _vm.validateInterativity() ? _c('InteratividadeFormulario', {
12709
12793
  attrs: {
12710
12794
  "interatividade": _vm.interatividade,
12795
+ "dominio": _vm.dominio,
12796
+ "anexos": _vm.anexos,
12711
12797
  "dictionary": _vm.dictionary
12712
12798
  }
12713
12799
  }) : _c('div', {
@@ -12973,7 +13059,7 @@ var __vue_staticRenderFns__$3 = [];
12973
13059
 
12974
13060
  const __vue_inject_styles__$3 = function (inject) {
12975
13061
  if (!inject) return;
12976
- inject("data-v-257d4492_0", {
13062
+ inject("data-v-dded57e0_0", {
12977
13063
  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}",
12978
13064
  map: undefined,
12979
13065
  media: undefined