vue-intergrall-plugins 0.0.236 → 0.0.237
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.
|
@@ -4038,6 +4038,23 @@ var script$n = {
|
|
|
4038
4038
|
const isStackable = this.fileSettings.stackFiles && this.fileSettings.multiple;
|
|
4039
4039
|
this.file = filesAux.length ? isStackable ? this.file.concat(...filesAux) : filesAux : this.file;
|
|
4040
4040
|
if (!this.file.length) return;
|
|
4041
|
+
let sizeInBytes = 0;
|
|
4042
|
+
Array.from(this.file).forEach(file => sizeInBytes += file.size);
|
|
4043
|
+
const sizeInMb = parseFloat((sizeInBytes / (1024 * 1024)).toFixed(2));
|
|
4044
|
+
|
|
4045
|
+
if (sizeInMb == 0) {
|
|
4046
|
+
this.file = [];
|
|
4047
|
+
return this.$toasted.global.defaultInfo({
|
|
4048
|
+
msg: this.dictionary.msg_arquivo_invalido
|
|
4049
|
+
});
|
|
4050
|
+
}
|
|
4051
|
+
|
|
4052
|
+
if (sizeInMb >= 9.5) {
|
|
4053
|
+
this.file = [];
|
|
4054
|
+
return this.$toasted.global.defaultInfo({
|
|
4055
|
+
msg: `Limite de 9.5 MB por arquivo`
|
|
4056
|
+
});
|
|
4057
|
+
}
|
|
4041
4058
|
|
|
4042
4059
|
if (this.file.length > this.fileSettings.max) {
|
|
4043
4060
|
this.file = [];
|
|
@@ -4246,7 +4263,7 @@ var __vue_render__$n = function () {
|
|
|
4246
4263
|
}],
|
|
4247
4264
|
class: "" + (_vm.fileSettings.filePreviewStyle == 2 ? 'files-counter-2' : 'files-counter'),
|
|
4248
4265
|
attrs: {
|
|
4249
|
-
"content": _vm.dictionary.msg_abrir_anexos
|
|
4266
|
+
"content": !_vm.fileSettings.handleFilePreview ? _vm.dictionary.msg_abrir_anexos : _vm.file.length + " anexo(s) selecionado(s)"
|
|
4250
4267
|
},
|
|
4251
4268
|
on: {
|
|
4252
4269
|
"click": function ($event) {
|
|
@@ -4425,7 +4442,7 @@ var __vue_staticRenderFns__$n = [];
|
|
|
4425
4442
|
|
|
4426
4443
|
const __vue_inject_styles__$n = function (inject) {
|
|
4427
4444
|
if (!inject) return;
|
|
4428
|
-
inject("data-v-
|
|
4445
|
+
inject("data-v-6bf709f3_0", {
|
|
4429
4446
|
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}",
|
|
4430
4447
|
map: undefined,
|
|
4431
4448
|
media: undefined
|