vue-intergrall-plugins 0.0.158 → 0.0.161

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.
@@ -3622,7 +3622,7 @@ var script$k = {
3622
3622
  required: true
3623
3623
  },
3624
3624
  file: {
3625
- type: File,
3625
+ type: Array,
3626
3626
  required: true
3627
3627
  },
3628
3628
  fileFormatError: {
@@ -3763,7 +3763,7 @@ var __vue_staticRenderFns__$k = [];
3763
3763
 
3764
3764
  const __vue_inject_styles__$k = function (inject) {
3765
3765
  if (!inject) return;
3766
- inject("data-v-7c17339e_0", {
3766
+ inject("data-v-55cbc293_0", {
3767
3767
  source: ".multiple-file-preview{position:relative;display:flex;flex-direction:column;width:100%;height:100%;max-height:100%;overflow-y:auto;overflow-x:hidden;border-top-left-radius:2.5px;border-top-right-radius:2.5px;transition:background-color 150ms;scrollbar-color:#888 rgba(0,0,0,.2);scrollbar-width:4px}.multiple-file-preview::-webkit-scrollbar{width:4px}.multiple-file-preview::-webkit-scrollbar-track{background-color:rgba(0,0,0,.2)}.multiple-file-preview::-webkit-scrollbar-thumb{transition-duration:.5s;background-color:#222}.multiple-file-preview::-webkit-scrollbar-thumb:hover{background-color:#555}.text-footer-invalid-format{color:#222;padding:10px}.text-footer-invalid-format h3{font-weight:500}.text-footer-invalid-format h4{font-size:.9rem}.text-footer-exclude-file{position:absolute;top:5px;right:5px;cursor:pointer;display:flex;justify-content:center;align-items:center;min-width:1rem;min-height:1rem;background-color:#fff;border-radius:50%}.text-footer-exclude-file svg{transition:color .2s;color:#e9594a}.text-footer-exclude-file svg:hover{color:#e74c3c}.file-preview{display:flex;width:100%;align-items:center;padding:5px 10px;transition:background-color 150ms}.file-preview:hover{background-color:rgba(0,0,0,.1)}.file-title{color:#222;display:flex;align-items:center;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:4px 10px;background-color:#fff;border-radius:30px;display:inline-block}.file-title.red{color:#e74c3c;margin-left:5px}.file-title>svg{margin-right:5px}.small-img{flex:1;margin:0 15px;display:flex;justify-content:center;align-items:center;position:relative}.small-img img{height:40px;cursor:pointer}.small-img .pdf{display:flex;justify-content:center;align-items:center;font-size:30px;color:#e74c3c}.small-img .pdf svg{z-index:1}.small-img .pdf::after{content:\"\";position:absolute;bottom:2px;transform:translateY(2px);width:20px;height:20px;background-color:#fff}.img-container{padding:5px;border-radius:2.5px;background-color:rgba(0,0,0,.15);display:flex;justify-content:center;align-items:center}.delete-file{display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:#fff;min-width:1rem;min-height:1rem;cursor:pointer}.delete-file>svg{font-size:1rem;color:#e74c3c}",
3768
3768
  map: undefined,
3769
3769
  media: undefined
@@ -3823,6 +3823,7 @@ var script$j = {
3823
3823
  data() {
3824
3824
  return {
3825
3825
  file: [],
3826
+ fileSize: 0,
3826
3827
  openFiles: false,
3827
3828
  showFilePreview: false,
3828
3829
  imagePreview: "",
@@ -3860,9 +3861,10 @@ var script$j = {
3860
3861
  },
3861
3862
 
3862
3863
  openSelectFileHandler(type) {
3863
- if (type == "system") {
3864
- this.$emit("open-file-system", true);
3865
- return false;
3864
+ if (type == "system") return this.$emit("open-file-system");
3865
+
3866
+ if (this.fileSettings.multiple) {
3867
+ type = 'both';
3866
3868
  }
3867
3869
 
3868
3870
  const fileInput = document.querySelector(`#${type}-${this.textId}`);
@@ -3894,12 +3896,14 @@ var script$j = {
3894
3896
 
3895
3897
  fileUpload(event, type, externalCall) {
3896
3898
  try {
3899
+ this.fileSize = 0;
3897
3900
  if (this.fileFormatError) this.file = [];
3898
3901
  this.openFiles = false;
3899
3902
  let filesAux = !externalCall ? event.target.files ? event.target.files : event.dataTransfer.files : event;
3900
3903
  this.file = filesAux.length ? filesAux : this.file;
3901
3904
  if (!this.file.length) return;
3902
3905
  this.hasAnyFile = true;
3906
+ this.fileSize = this.file.length;
3903
3907
 
3904
3908
  if (!this.fileSettings.multiple) {
3905
3909
  this.file = this.file[0];
@@ -4048,13 +4052,13 @@ var __vue_render__$j = function () {
4048
4052
  attrs: {
4049
4053
  "name": "fade"
4050
4054
  }
4051
- }, [_vm.file.length ? _c('span', {
4055
+ }, [_vm.fileSize > 0 ? _c('span', {
4052
4056
  staticClass: "files-counter",
4053
4057
  attrs: {
4054
4058
  "title": _vm.dictionary.msg_abrir_anexos
4055
4059
  },
4056
4060
  domProps: {
4057
- "textContent": _vm._s(_vm.file.length)
4061
+ "textContent": _vm._s(_vm.fileSize)
4058
4062
  },
4059
4063
  on: {
4060
4064
  "click": function ($event) {
@@ -4213,7 +4217,7 @@ var __vue_staticRenderFns__$j = [];
4213
4217
 
4214
4218
  const __vue_inject_styles__$j = function (inject) {
4215
4219
  if (!inject) return;
4216
- inject("data-v-d44243ce_0", {
4220
+ inject("data-v-6af671cf_0", {
4217
4221
  source: ".fade-enter-active,.fade-leave-active{transition:opacity .3s}.fade-enter,.fade-leave-to{opacity:0}.files-counter{position:absolute;top:unset;transform:translate(17.5px,-15px);background-color:#888;z-index:1;font-size:.5rem;width:15px;height:15px;border-radius:50%;display:flex;justify-content:center;align-items:center;cursor:pointer;opacity:.9;transition:all .3s;color:#fff;font-weight:900}.files-counter:hover{opacity:1}",
4218
4222
  map: undefined,
4219
4223
  media: undefined
@@ -8327,7 +8331,8 @@ var script$g = {
8327
8331
  formatted_messages_2: [],
8328
8332
  key_2: "",
8329
8333
  formatted_messages_3: [],
8330
- key_3: ""
8334
+ key_3: "",
8335
+ loadingReq: false
8331
8336
  };
8332
8337
  },
8333
8338
 
@@ -8344,19 +8349,45 @@ var script$g = {
8344
8349
  return () => popper.destroy();
8345
8350
  },
8346
8351
 
8352
+ inputSelectKey1() {
8353
+ if (!this.key_1) {
8354
+ if (this.formatted_messages_2.length) this.formatted_messages_2 = [];
8355
+ if (this.key_2) this.key_2 = "";
8356
+ return;
8357
+ }
8358
+
8359
+ this.receiveValueFormattedMessage(this.key_1, 2);
8360
+ },
8361
+
8362
+ inputSelectKey2() {
8363
+ if (!this.key_2) {
8364
+ if (this.formatted_messages_3.length) this.formatted_messages_3 = [];
8365
+ if (this.key_3) this.key_3 = "";
8366
+ return;
8367
+ }
8368
+
8369
+ if (this.formatted_messages_3.length) this.formatted_messages_3 = [];
8370
+ if (this.key_3) this.key_3 = "";
8371
+ this.receiveValueFormattedMessage(`T/${this.key_2}`, 3);
8372
+ },
8373
+
8347
8374
  receiveValueFormattedMessage(cod, selectionIndex) {
8348
8375
  try {
8349
8376
  if (!this.token_cliente) throw new Error("Informe token_cliente como chave na propriedade formattedMessageSettings que ocorre na chamada componente TextFooter ");
8377
+ this.loadingReq = true;
8350
8378
  this.getStandardMessages(cod, this.token_cliente).then(data => {
8379
+ this.loadingReq = false;
8351
8380
  if (data && typeof data == 'string') return this.$toasted.global.emConstrucao({
8352
8381
  msg: data
8353
8382
  });
8354
8383
  if (data) return this.showFormattedMessage(data, selectionIndex);
8355
8384
  this.$toasted.global.defaultError();
8356
8385
  }).catch(e => {
8386
+ this.loadingReq = false;
8357
8387
  console.error("Error in getStandardMessages: ", e);
8358
8388
  });
8359
8389
  } catch (e) {
8390
+ this.loadingReq = false;
8360
8391
  console.error("Error in receiveValueFormattedMessage: ", e);
8361
8392
  }
8362
8393
  },
@@ -8380,7 +8411,7 @@ var script$g = {
8380
8411
  if (this.formatted_messages_2.length == 1) {
8381
8412
  if (this.formatted_messages_2[0].cod) {
8382
8413
  this.key_2 = this.formatted_messages_2[0].cod;
8383
- this.receiveValueFormattedMessage(this.key_2, 3);
8414
+ this.receiveValueFormattedMessage(`T/${this.key_2}`, 3);
8384
8415
  }
8385
8416
  }
8386
8417
  }
@@ -8489,9 +8520,7 @@ var __vue_render__$g = function () {
8489
8520
  }
8490
8521
  },
8491
8522
  on: {
8492
- "input": function ($event) {
8493
- _vm.key_1 ? _vm.receiveValueFormattedMessage(_vm.key_1, 2) : false;
8494
- }
8523
+ "input": _vm.inputSelectKey1
8495
8524
  },
8496
8525
  model: {
8497
8526
  value: _vm.key_1,
@@ -8505,7 +8534,14 @@ var __vue_render__$g = function () {
8505
8534
  "slot": "no-options"
8506
8535
  },
8507
8536
  slot: "no-options"
8508
- }, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])]), _vm._v(" "), _vm.formatted_messages_2.length && _vm.key_1 ? _c('v-select', {
8537
+ }, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])]), _vm._v(" "), _c('div', {
8538
+ staticClass: "transition-selects"
8539
+ }, [_c('transition', {
8540
+ attrs: {
8541
+ "name": "fade",
8542
+ "mode": "out-in"
8543
+ }
8544
+ }, [_vm.formatted_messages_2.length && _vm.key_1 ? _c('div', [_c('v-select', {
8509
8545
  staticClass: "text-footer-v-select",
8510
8546
  style: "background-color: " + _vm.backgroundColor,
8511
8547
  attrs: {
@@ -8518,9 +8554,7 @@ var __vue_render__$g = function () {
8518
8554
  }
8519
8555
  },
8520
8556
  on: {
8521
- "input": function ($event) {
8522
- return _vm.receiveValueFormattedMessage(_vm.key_2, 3);
8523
- }
8557
+ "input": _vm.inputSelectKey2
8524
8558
  },
8525
8559
  model: {
8526
8560
  value: _vm.key_2,
@@ -8534,7 +8568,14 @@ var __vue_render__$g = function () {
8534
8568
  "slot": "no-options"
8535
8569
  },
8536
8570
  slot: "no-options"
8537
- }, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])]) : _vm._e(), _vm._v(" "), _vm.formatted_messages_3.length && _vm.key_2 ? _c('div', {
8571
+ }, [_vm._v(" " + _vm._s(_vm.dictionary.msg_sem_resultados) + " ")])])], 1) : _vm.key_1 && _vm.loadingReq ? _c('div', {
8572
+ staticClass: "loader-select"
8573
+ }, [_c('VueLoader')], 1) : _vm._e()]), _vm._v(" "), _c('transition', {
8574
+ attrs: {
8575
+ "name": "fade",
8576
+ "mode": "out-in"
8577
+ }
8578
+ }, [_vm.formatted_messages_3.length && _vm.key_2 ? _c('div', {
8538
8579
  staticClass: "text-footer-select-03"
8539
8580
  }, [_c('v-select', {
8540
8581
  staticClass: "text-footer-v-select",
@@ -8591,15 +8632,25 @@ var __vue_render__$g = function () {
8591
8632
  attrs: {
8592
8633
  "icon": ['fas', 'file-alt']
8593
8634
  }
8594
- })], 1) : _vm._e()] : _vm._e()], 2) : _vm._e()], 1);
8635
+ })], 1) : _vm._e()] : _vm._e()], 2) : _vm.key_2 && _vm.loadingReq ? _c('div', {
8636
+ staticClass: "loader-select"
8637
+ }, [_c('VueLoader')], 1) : _vm._e()])], 1)], 1);
8595
8638
  };
8596
8639
 
8597
8640
  var __vue_staticRenderFns__$g = [];
8598
8641
  /* style */
8599
8642
 
8600
- const __vue_inject_styles__$g = undefined;
8643
+ const __vue_inject_styles__$g = function (inject) {
8644
+ if (!inject) return;
8645
+ inject("data-v-9fe38344_0", {
8646
+ source: ".transition-selects{min-height:80px;display:flex;flex-direction:column;width:100%}.loader-select{position:relative;min-height:35px;background:#fff;width:100%;border:1px solid #ccc;border-radius:5px;z-index:1}",
8647
+ map: undefined,
8648
+ media: undefined
8649
+ });
8650
+ };
8601
8651
  /* scoped */
8602
8652
 
8653
+
8603
8654
  const __vue_scope_id__$g = undefined;
8604
8655
  /* module identifier */
8605
8656
 
@@ -8607,8 +8658,6 @@ const __vue_module_identifier__$g = undefined;
8607
8658
  /* functional template */
8608
8659
 
8609
8660
  const __vue_is_functional_template__$g = false;
8610
- /* style inject */
8611
-
8612
8661
  /* style inject SSR */
8613
8662
 
8614
8663
  /* style inject shadow dom */
@@ -8616,7 +8665,7 @@ const __vue_is_functional_template__$g = false;
8616
8665
  const __vue_component__$n = /*#__PURE__*/normalizeComponent({
8617
8666
  render: __vue_render__$g,
8618
8667
  staticRenderFns: __vue_staticRenderFns__$g
8619
- }, __vue_inject_styles__$g, __vue_script__$g, __vue_scope_id__$g, __vue_is_functional_template__$g, __vue_module_identifier__$g, false, undefined, undefined, undefined);
8668
+ }, __vue_inject_styles__$g, __vue_script__$g, __vue_scope_id__$g, __vue_is_functional_template__$g, __vue_module_identifier__$g, false, createInjector, undefined, undefined);
8620
8669
 
8621
8670
  var StandardMessages = __vue_component__$n;
8622
8671
 
@@ -8929,8 +8978,8 @@ var script$f = {
8929
8978
  this.$emit("open-image", imagePreview);
8930
8979
  },
8931
8980
 
8932
- openFileSystem(status) {
8933
- this.$emit("open-file-system", status);
8981
+ openFileSystem() {
8982
+ this.$emit("open-file-system");
8934
8983
  },
8935
8984
 
8936
8985
  setAudio(audioObj) {
@@ -9317,7 +9366,7 @@ var __vue_staticRenderFns__$f = [];
9317
9366
 
9318
9367
  const __vue_inject_styles__$f = function (inject) {
9319
9368
  if (!inject) return;
9320
- inject("data-v-6d9479b5_0", {
9369
+ inject("data-v-26af6246_0", {
9321
9370
  source: ".toasted svg{margin-right:10px}.d-none{display:none}ul{list-style-type:none}.text-footer-container{display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;position:relative}.text-footer-container .text-footer{min-height:48px;box-shadow:0 3px 7px -2px rgba(0,0,0,.45);position:relative;display:flex;justify-content:center;align-items:center;border:1px solid #ccc;padding:5px 2px 5px 5px;border-radius:5px}.text-footer-container .text-footer.full{width:100%}.text-footer-container .text-footer.almostFull{width:95%}.text-footer-container .text-footer.medium{width:75%}.text-footer-container.bigger .text-footer{height:80px}.text-footer-container.bigger .text-footer>textarea{font-size:.875rem;height:75px;max-height:75px;min-height:75px}.text-footer-container textarea{margin:0 5px;border:unset;flex:1;resize:none;min-height:30px;max-height:60px;font-size:.875rem;font-family:inherit;background:inherit}.text-footer-container textarea:focus{outline:unset}.text-footer-container textarea::placeholder{font-size:.75rem}.text-footer-container .text-footer-audio{flex:1;display:flex;justify-content:center;align-items:center}.text-footer-container audio{flex:1;outline:unset;width:auto;height:38px}.text-footer-container .delete-audio{display:flex;justify-content:center;align-items:center;color:#e74c3c;transition:background .3s;border-radius:50%;font-size:1rem;padding:10px;cursor:pointer;margin:0 5px;width:31px;height:31px}.text-footer-container .delete-audio:hover{background-color:rgba(208,0,0,.2)}.text-footer-container .max-characters{font-size:.575rem;z-index:1;color:#444;position:relative;top:30px;left:-30px}.text-footer-container .max-characters.no-width{width:0}.text-footer-container .text-footer-actions{display:flex}.text-footer-container .text-footer-actions.outside-buttons{display:flex;align-items:center;justify-content:flex-end;position:absolute;top:-42px;right:2px;background-color:#ddd;box-shadow:inset 0 -10px 5px -11px rgba(0,0,0,.5)}.text-footer-container .text-footer-actions .text-footer-actions--btn{display:flex;justify-content:center;align-items:center;color:#777;border-radius:50%;transition:background .3s;padding:10px;font-size:1rem;width:36px;height:36px;cursor:pointer;margin-right:2.5px}.text-footer-container .text-footer-actions .text-footer-actions--btn:last-child{margin-right:unset}.text-footer-container .text-footer-actions .text-footer-actions--btn:hover{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.files-activated{background-color:rgba(0,0,0,.1)}.text-footer-container .text-footer-actions .text-footer-actions--btn.audio-activated{background-color:rgba(208,0,0,.7);color:#fff}.text-footer-container .text-footer-actions .text-footer-actions--btn.left-button{position:absolute;left:0}.text-footer-container .text-footer-hsm-container{margin:12px 0 7px 0}.text-footer-container .text-footer-hsm-container.full{width:100%}.text-footer-container .text-footer-hsm-container.almostFull{width:95%}.text-footer-container .text-footer-hsm-container.medium{width:75%}.text-footer-container .text-footer-hsm-container .text-footer-v-select{border-radius:5px;margin-bottom:5px}.text-footer-container .text-footer-hsm-container .text-footer-select-03{display:flex;align-items:center;flex:1;width:100%}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer-v-select{flex:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03{transition-duration:.3s;user-select:none;cursor:pointer;box-shadow:inset 0 -3px rgba(0,0,0,.2);opacity:.9;border-radius:2.5px;display:flex;justify-content:center;align-items:center;margin-left:5px;margin-bottom:5px;background-color:#f7fe72;width:32px;height:32px}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03:hover{opacity:1}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03: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)}.text-footer-container .text-footer-hsm-container .text-footer-select-03 .text-footer--btn-select-03 svg{font-size:1rem}.text-footer-container .text-footer-files-container{position:absolute;right:0;top:-55px;padding:5px;background-color:rgba(0,0,0,.4);border-radius:5px;display:flex;align-items:center;justify-content:space-between;z-index:1}.text-footer-container .text-footer-files-container.horizontal{right:-55px;flex-direction:column}.text-footer-container .text-footer-files-container .files-btn{transition-duration:.3s;transition-property:opacity;opacity:.8;cursor:pointer;display:flex;justify-content:center;align-items:center;border-radius:10px;padding:3px;width:40px;height:40px;font-size:1rem;color:#fff}.text-footer-container .text-footer-files-container .files-btn:hover{opacity:1}.text-footer-container .text-footer-files-container .files-btn svg{color:#fff}.text-footer-container .text-footer-files-container .files-btn.images{background-color:#9575cd;margin-right:5px}.text-footer-container .text-footer-files-container .files-btn.images.margin-bottom{margin-right:unset;margin-bottom:5px}.text-footer-container .text-footer-files-container .files-btn.docs{background-color:#7986cb;margin-right:5px}.text-footer-container .text-footer-files-container .files-btn.system{background-color:#49a349}.text-footer-container .text-footer-preview-container{cursor:default;position:absolute;left:0;background-color:#f1f1f1;border:2px solid #ccc;border-bottom:unset;border-top-left-radius:2.5px;border-top-right-radius:2.5px}.text-footer-container .text-footer-preview-container.isDoc{top:-50px;width:100%;height:45px}.text-footer-container .text-footer-preview-container.isImg,.text-footer-container .text-footer-preview-container.isMultiple{top:-205px;width:100%;height:200px}.text-footer-container .text-footer-preview-container.isImg .text-footer-image-preview{height:170px}.text-footer-container .text-footer-preview-container.isError{top:-80px;width:100%;height:75px}.text-footer-container .text-footer-alt{margin-top:-12px;width:100%;padding:0 10px}.text-footer-container .text-footer-alt .text-footer-out-session{margin-top:12px}.text-footer-container .text-footer-alt .text-footer-sem-24h{font-size:.8rem;text-align:right;font-weight:600;letter-spacing:-.5px;color:#dd7f0c;margin-top:5px;position:absolute;right:0}.text-footer-container .text-footer-alt .sem-templates{margin-top:10px;font-size:.8rem;text-align:right;font-weight:600;letter-spacing:-.5px;color:#921e12}.text-footer-container .text-footer-alt .text-footer-templates{position:relative;width:100%}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection{width:100%;display:flex;align-items:center}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection h4{margin-right:5px}.text-footer-container .text-footer-alt .text-footer-templates .text-footer-group-selection .sm__select{flex:1}.vs__dropdown-menu{font-size:.85rem!important}.emoji-mart-anchor,.emoji-mart-emoji span{cursor:pointer!important}.emoji-mart{z-index:2!important}.emoji-mart-scroll{overflow-x:hidden}",
9322
9371
  map: undefined,
9323
9372
  media: undefined