vue-intergrall-plugins 0.0.238 → 0.0.239
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.
|
@@ -3999,7 +3999,7 @@ var script$o = {
|
|
|
3999
3999
|
if (!fileInput) if (!document.querySelector(".toasted.toasted-primary.error")) this.$toasted.global.defaultError();
|
|
4000
4000
|
},
|
|
4001
4001
|
|
|
4002
|
-
isFileValid(type, fileName) {
|
|
4002
|
+
isFileValid(type, fileName, fileType) {
|
|
4003
4003
|
if (type == "img" && !this.fileSettings.imagesExtensions || type == "doc" && !this.fileSettings.docsExtensions) {
|
|
4004
4004
|
this.$toasted.global.defaultInfo({
|
|
4005
4005
|
msg: this.dictionary.sem_extensoes_parametrizadas
|
|
@@ -4010,7 +4010,7 @@ var script$o = {
|
|
|
4010
4010
|
|
|
4011
4011
|
const extensions = type === "img" ? this.fileSettings.imagesExtensions : this.fileSettings.docsExtensions;
|
|
4012
4012
|
const regex = new RegExp("(" + extensions + ")", "i");
|
|
4013
|
-
if (regex.test(fileName)) return true;
|
|
4013
|
+
if (regex.test(fileName) || regex.test(fileType)) return true;
|
|
4014
4014
|
this.hasAnyFile = false;
|
|
4015
4015
|
this.showToastedValidFormats();
|
|
4016
4016
|
return false;
|
|
@@ -4068,7 +4068,7 @@ var script$o = {
|
|
|
4068
4068
|
|
|
4069
4069
|
if (!this.fileSettings.multiple) {
|
|
4070
4070
|
this.file = this.file[0];
|
|
4071
|
-
this.singleFileUpload(type, this.file.name);
|
|
4071
|
+
this.singleFileUpload(type, this.file.name, this.file.type);
|
|
4072
4072
|
} else {
|
|
4073
4073
|
this.multipleFileUpload();
|
|
4074
4074
|
}
|
|
@@ -4107,7 +4107,7 @@ var script$o = {
|
|
|
4107
4107
|
if (!singleFileType) file.invalid = true;
|
|
4108
4108
|
file.imgOrDoc = singleFileType ? singleFileType : "";
|
|
4109
4109
|
|
|
4110
|
-
if (this.isFileValid(file.imgOrDoc, file.name)) {
|
|
4110
|
+
if (this.isFileValid(file.imgOrDoc, file.name, file.type)) {
|
|
4111
4111
|
if (file.imgOrDoc == "img") {
|
|
4112
4112
|
const fileReader = new FileReader();
|
|
4113
4113
|
waitForImageLoad = true;
|
|
@@ -4140,8 +4140,8 @@ var script$o = {
|
|
|
4140
4140
|
if (this.isDoc && !waitForImageLoad) this.emitFileVars();
|
|
4141
4141
|
},
|
|
4142
4142
|
|
|
4143
|
-
singleFileUpload(type, fileName) {
|
|
4144
|
-
if (this.isFileValid(type, fileName)) {
|
|
4143
|
+
singleFileUpload(type, fileName, fileType) {
|
|
4144
|
+
if (this.isFileValid(type, fileName, fileType)) {
|
|
4145
4145
|
const fileReader = new FileReader();
|
|
4146
4146
|
|
|
4147
4147
|
if (type === "img") {
|
|
@@ -4442,7 +4442,7 @@ var __vue_staticRenderFns__$o = [];
|
|
|
4442
4442
|
|
|
4443
4443
|
const __vue_inject_styles__$o = function (inject) {
|
|
4444
4444
|
if (!inject) return;
|
|
4445
|
-
inject("data-v-
|
|
4445
|
+
inject("data-v-0a31a0c7_0", {
|
|
4446
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}",
|
|
4447
4447
|
map: undefined,
|
|
4448
4448
|
media: undefined
|