vue-intergrall-plugins 0.0.224 → 0.0.227

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.
@@ -3567,11 +3567,9 @@ var script$n = {
3567
3567
  ext = ext && ext.startsWith(".") ? ext : ".".concat(ext);
3568
3568
  return ext;
3569
3569
  });
3570
- console.log(arr);
3571
- str = arr.join(","); // str = str && str.endsWith(".,") ? str.slice(0, -1) : str
3570
+ str = arr.join(",");
3572
3571
  }
3573
3572
 
3574
- console.log(str);
3575
3573
  if (this.fileSettings.multiple) return str ? str : "image/*,application/*";
3576
3574
  if (this.isDoc) return str ? str : "application/*";
3577
3575
  return str ? str : "image/*";
@@ -3780,6 +3778,11 @@ var script$n = {
3780
3778
  if (this.isDoc) this.emitFileVars();
3781
3779
  },
3782
3780
  toggleFilePreview: function toggleFilePreview() {
3781
+ if (this.fileSettings.handleFilePreview) {
3782
+ this.emitFileVars();
3783
+ return this.$emit("handle-file-preview");
3784
+ }
3785
+
3783
3786
  this.showFilePreview = !this.showFilePreview;
3784
3787
  if (this.showFilePreview && this.openFiles) this.toggleFiles();
3785
3788
  },
@@ -3837,24 +3840,30 @@ var __vue_render__$n = function __vue_render__() {
3837
3840
  return _c('span', {
3838
3841
  staticClass: "text-footer-actions--btn",
3839
3842
  class: {
3840
- 'files-activated': _vm.openFiles || _vm.file.length || _vm.file.name
3843
+ 'files-activated': _vm.openFiles || _vm.file.name
3841
3844
  },
3842
3845
  on: {
3843
3846
  "click": function click($event) {
3844
3847
  return _vm.openFilesByClip();
3845
3848
  }
3846
3849
  }
3847
- }, [_c('transition', {
3850
+ }, [_c('fa-icon', {
3851
+ attrs: {
3852
+ "icon": ['fas', 'paperclip'],
3853
+ "title": _vm.dictionary.title_selecionar_anexo
3854
+ }
3855
+ }), _vm._ssrNode(" "), _c('transition', {
3848
3856
  attrs: {
3849
3857
  "name": "fade"
3850
3858
  }
3851
3859
  }, [_vm.fileSize > 0 ? _c('span', {
3852
- staticClass: "files-counter",
3860
+ directives: [{
3861
+ name: "tippy",
3862
+ rawName: "v-tippy"
3863
+ }],
3864
+ staticClass: "files-counter-2",
3853
3865
  attrs: {
3854
- "title": _vm.dictionary.msg_abrir_anexos
3855
- },
3856
- domProps: {
3857
- "textContent": _vm._s(_vm.fileSize)
3866
+ "content": _vm.dictionary.msg_abrir_anexos
3858
3867
  },
3859
3868
  on: {
3860
3869
  "click": function click($event) {
@@ -3862,12 +3871,11 @@ var __vue_render__$n = function __vue_render__() {
3862
3871
  return _vm.toggleFilePreview.apply(null, arguments);
3863
3872
  }
3864
3873
  }
3865
- }) : _vm._e()]), _vm._ssrNode(" "), _c('fa-icon', {
3874
+ }, [_vm._v("\n Anexos "), _c('fa-icon', {
3866
3875
  attrs: {
3867
- "icon": ['fas', 'paperclip'],
3868
- "title": _vm.dictionary.title_selecionar_anexo
3876
+ "icon": ['fas', 'eye']
3869
3877
  }
3870
- }), _vm._ssrNode(" "), _c('transition', {
3878
+ })], 1) : _vm._e()]), _vm._ssrNode(" "), _c('transition', {
3871
3879
  attrs: {
3872
3880
  "name": "show"
3873
3881
  }
@@ -3998,8 +4006,8 @@ var __vue_staticRenderFns__$n = [];
3998
4006
 
3999
4007
  var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
4000
4008
  if (!inject) return;
4001
- inject("data-v-cc9b8f50_0", {
4002
- 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}",
4009
+ inject("data-v-27fa7bad_0", {
4010
+ 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}.files-counter-2{transform:translate(-15px,28px);opacity:.9;position:absolute;display:flex;justify-content:center;align-items:center;color:#888;font-size:.8rem}.files-counter-2 svg{margin-left:5px}.files-counter-2:hover{opacity:1;text-decoration:underline}",
4003
4011
  map: undefined,
4004
4012
  media: undefined
4005
4013
  });
@@ -4010,7 +4018,7 @@ var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
4010
4018
  var __vue_scope_id__$n = undefined;
4011
4019
  /* module identifier */
4012
4020
 
4013
- var __vue_module_identifier__$n = "data-v-cc9b8f50";
4021
+ var __vue_module_identifier__$n = "data-v-27fa7bad";
4014
4022
  /* functional template */
4015
4023
 
4016
4024
  var __vue_is_functional_template__$n = false;
@@ -8404,7 +8412,8 @@ var script$j = {
8404
8412
  imagesExtensions: "",
8405
8413
  multiple: false,
8406
8414
  systemButton: false,
8407
- max: 3
8415
+ max: 3,
8416
+ handleFilePreview: false
8408
8417
  };
8409
8418
  },
8410
8419
  required: false
@@ -8892,7 +8901,10 @@ var __vue_render__$j = function __vue_render__() {
8892
8901
  "set-file-vars": _vm.setFileVars,
8893
8902
  "open-image": _vm.openImage,
8894
8903
  "open-file-system": _vm.openFileSystem,
8895
- "reset-file-system": _vm.resetFileSystem
8904
+ "reset-file-system": _vm.resetFileSystem,
8905
+ "handle-file-preview": function handleFilePreview($event) {
8906
+ return _vm.$emit('handle-file-preview');
8907
+ }
8896
8908
  }
8897
8909
  }), _vm._ssrNode(" "), _c('BtnExpand', {
8898
8910
  directives: [{
@@ -8943,7 +8955,7 @@ var __vue_staticRenderFns__$j = [];
8943
8955
 
8944
8956
  var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
8945
8957
  if (!inject) return;
8946
- inject("data-v-7d5d938e_0", {
8958
+ inject("data-v-b53ec8ee_0", {
8947
8959
  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}.text-footer-container .text-footer-files-container .files-btn.system{background-color:#49a349;margin-left:5px}.text-footer-container .text-footer-files-container .files-btn.both{font-size:.95rem;background-color:#5555ec;flex-direction:column}.text-footer-container .text-footer-files-container .files-btn.both svg:nth-child(1){transform:translateX(5px)}.text-footer-container .text-footer-files-container .files-btn.both svg:nth-child(2){transform:translateX(-5px)}.text-footer-container .text-footer-preview-container{width:100%;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}",
8948
8960
  map: undefined,
8949
8961
  media: undefined
@@ -8955,7 +8967,7 @@ var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
8955
8967
  var __vue_scope_id__$j = undefined;
8956
8968
  /* module identifier */
8957
8969
 
8958
- var __vue_module_identifier__$j = "data-v-7d5d938e";
8970
+ var __vue_module_identifier__$j = "data-v-b53ec8ee";
8959
8971
  /* functional template */
8960
8972
 
8961
8973
  var __vue_is_functional_template__$j = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intergrall-plugins",
3
- "version": "0.0.224",
3
+ "version": "0.0.227",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -1,9 +1,16 @@
1
1
  <template>
2
- <span class="text-footer-actions--btn" :class="{'files-activated' : openFiles || file.length || file.name}" @click="openFilesByClip()">
2
+ <span class="text-footer-actions--btn" :class="{'files-activated' : openFiles || file.name}" @click="openFilesByClip()"> <!-- || file.length -->
3
+ <!-- <transition name="fade">
4
+ <span v-if="fileSize > 0" @click.stop="toggleFilePreview" v-tippy :content="`Visualizar ${fileSize} arquivo(s)`" class="files-counter">
5
+ {{ fileSize }}
6
+ </span>
7
+ </transition> -->
8
+ <fa-icon :icon="['fas', 'paperclip']" :title="dictionary.title_selecionar_anexo" />
3
9
  <transition name="fade">
4
- <span v-if="fileSize > 0" class="files-counter" v-text="fileSize" @click.stop="toggleFilePreview" :title="dictionary.msg_abrir_anexos"></span>
10
+ <span v-if="fileSize > 0" @click.stop="toggleFilePreview" v-tippy :content="dictionary.msg_abrir_anexos" class="files-counter-2">
11
+ Anexos <fa-icon :icon="['fas', 'eye']" />
12
+ </span>
5
13
  </transition>
6
- <fa-icon :icon="['fas', 'paperclip']" :title="dictionary.title_selecionar_anexo" />
7
14
  <transition name="show">
8
15
  <div v-if="openFiles && hasButtonFiles" class="text-footer-files-container" :class="{'horizontal' : cssStyle.outsideButtons}">
9
16
  <template v-if="!fileSettings.multiple">
@@ -91,6 +98,23 @@
91
98
  .files-counter:hover {
92
99
  opacity: 1
93
100
  }
101
+ .files-counter-2 {
102
+ transform: translate(-15px, 28px);
103
+ opacity: .9;
104
+ position: absolute;
105
+ display: flex;
106
+ justify-content: center;
107
+ align-items: center;
108
+ color: #888;
109
+ font-size: .8rem
110
+ }
111
+ .files-counter-2 svg {
112
+ margin-left: 5px;
113
+ }
114
+ .files-counter-2:hover {
115
+ opacity: 1;
116
+ text-decoration: underline;
117
+ }
94
118
  </style>
95
119
 
96
120
  <script>
@@ -162,11 +186,8 @@ export default {
162
186
  ext = ext && ext.startsWith(".") ? ext : `.${ext}`
163
187
  return ext
164
188
  })
165
- console.log(arr)
166
189
  str = arr.join(",")
167
- // str = str && str.endsWith(".,") ? str.slice(0, -1) : str
168
190
  }
169
- console.log(str)
170
191
  if(this.fileSettings.multiple) return str ? str : "image/*,application/*"
171
192
  if(this.isDoc) return str ? str : "application/*"
172
193
  return str ? str : "image/*"
@@ -332,6 +353,10 @@ export default {
332
353
  if(this.isDoc) this.emitFileVars()
333
354
  },
334
355
  toggleFilePreview() {
356
+ if(this.fileSettings.handleFilePreview) {
357
+ this.emitFileVars()
358
+ return this.$emit("handle-file-preview")
359
+ }
335
360
  this.showFilePreview = !this.showFilePreview
336
361
  if(this.showFilePreview && this.openFiles) this.toggleFiles()
337
362
  },
@@ -69,6 +69,7 @@
69
69
  @open-image="openImage"
70
70
  @open-file-system="openFileSystem"
71
71
  @reset-file-system="resetFileSystem"
72
+ @handle-file-preview="$emit('handle-file-preview')"
72
73
  />
73
74
  <BtnExpand
74
75
  v-show="buttons.hasExpand && !audioFile"
@@ -146,7 +147,7 @@ export default {
146
147
  },
147
148
  fileSettings: {
148
149
  type: Object,
149
- default: () => { return { docsExtensions: "", imagesExtensions: "", multiple: false, systemButton: false, max: 3 } },
150
+ default: () => { return { docsExtensions: "", imagesExtensions: "", multiple: false, systemButton: false, max: 3, handleFilePreview: false } },
150
151
  required: false
151
152
  },
152
153
  textId: {