vue-intergrall-plugins 0.0.228 → 0.0.231
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.
|
@@ -3604,8 +3604,11 @@ var MultipleFilePreview = __vue_component__$w;var script$n = {
|
|
|
3604
3604
|
}
|
|
3605
3605
|
|
|
3606
3606
|
this.externalFilesAux = Array.from(this.externalFiles);
|
|
3607
|
+
var allNames = this.file.map(function (file) {
|
|
3608
|
+
return file.name;
|
|
3609
|
+
});
|
|
3607
3610
|
this.externalFilesAux.forEach(function (files) {
|
|
3608
|
-
_this.file.push(files);
|
|
3611
|
+
if (!allNames.includes(files.name)) _this.file.push(files);
|
|
3609
3612
|
});
|
|
3610
3613
|
this.fileSize = this.file.length;
|
|
3611
3614
|
this.multipleFileUpload();
|
|
@@ -3613,6 +3616,8 @@ var MultipleFilePreview = __vue_component__$w;var script$n = {
|
|
|
3613
3616
|
},
|
|
3614
3617
|
methods: {
|
|
3615
3618
|
openFilesByClip: function openFilesByClip() {
|
|
3619
|
+
if (this.fileSettings.handleFileClick) return this.$emit("handle-file-click");
|
|
3620
|
+
|
|
3616
3621
|
if (this.fileSettings.multiple && !this.hasButtonFiles) {
|
|
3617
3622
|
return this.openSelectFileHandler('both');
|
|
3618
3623
|
}
|
|
@@ -3626,6 +3631,7 @@ var MultipleFilePreview = __vue_component__$w;var script$n = {
|
|
|
3626
3631
|
this.openFiles = !this.openFiles;
|
|
3627
3632
|
},
|
|
3628
3633
|
openSelectFileHandler: function openSelectFileHandler(type) {
|
|
3634
|
+
if (this.fileSettings.handleFileClick) return this.$emit("handle-file-click");
|
|
3629
3635
|
if (type == "system") return this.$emit("open-file-system");
|
|
3630
3636
|
|
|
3631
3637
|
if (this.fileSettings.multiple) {
|
|
@@ -3796,6 +3802,8 @@ var MultipleFilePreview = __vue_component__$w;var script$n = {
|
|
|
3796
3802
|
if (this.isDoc) this.emitFileVars();
|
|
3797
3803
|
},
|
|
3798
3804
|
toggleFilePreview: function toggleFilePreview() {
|
|
3805
|
+
if (this.fileSettings.handleFileClick) return this.$emit("handle-file-click");
|
|
3806
|
+
|
|
3799
3807
|
if (this.fileSettings.handleFilePreview) {
|
|
3800
3808
|
this.emitFileVars();
|
|
3801
3809
|
return this.$emit("handle-file-preview");
|
|
@@ -4024,7 +4032,7 @@ var __vue_staticRenderFns__$n = [];
|
|
|
4024
4032
|
|
|
4025
4033
|
var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
4026
4034
|
if (!inject) return;
|
|
4027
|
-
inject("data-v-
|
|
4035
|
+
inject("data-v-42569faa_0", {
|
|
4028
4036
|
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}",
|
|
4029
4037
|
map: undefined,
|
|
4030
4038
|
media: undefined
|
|
@@ -4036,7 +4044,7 @@ var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
|
4036
4044
|
var __vue_scope_id__$n = undefined;
|
|
4037
4045
|
/* module identifier */
|
|
4038
4046
|
|
|
4039
|
-
var __vue_module_identifier__$n = "data-v-
|
|
4047
|
+
var __vue_module_identifier__$n = "data-v-42569faa";
|
|
4040
4048
|
/* functional template */
|
|
4041
4049
|
|
|
4042
4050
|
var __vue_is_functional_template__$n = false;
|
|
@@ -8433,7 +8441,8 @@ var script$j = {
|
|
|
8433
8441
|
max: 3,
|
|
8434
8442
|
handleFilePreview: false,
|
|
8435
8443
|
filePreviewStyle: 1,
|
|
8436
|
-
stackFiles: false
|
|
8444
|
+
stackFiles: false,
|
|
8445
|
+
handleFileClick: false
|
|
8437
8446
|
};
|
|
8438
8447
|
},
|
|
8439
8448
|
required: false
|
|
@@ -8462,7 +8471,7 @@ var script$j = {
|
|
|
8462
8471
|
},
|
|
8463
8472
|
externalFiles: {
|
|
8464
8473
|
type: Array,
|
|
8465
|
-
|
|
8474
|
+
required: false
|
|
8466
8475
|
}
|
|
8467
8476
|
},
|
|
8468
8477
|
data: function data() {
|
|
@@ -8924,6 +8933,9 @@ var __vue_render__$j = function __vue_render__() {
|
|
|
8924
8933
|
"reset-file-system": _vm.resetFileSystem,
|
|
8925
8934
|
"handle-file-preview": function handleFilePreview($event) {
|
|
8926
8935
|
return _vm.$emit('handle-file-preview');
|
|
8936
|
+
},
|
|
8937
|
+
"handle-file-click": function handleFileClick($event) {
|
|
8938
|
+
return _vm.$emit('handle-file-click');
|
|
8927
8939
|
}
|
|
8928
8940
|
}
|
|
8929
8941
|
}), _vm._ssrNode(" "), _c('BtnExpand', {
|
|
@@ -8975,7 +8987,7 @@ var __vue_staticRenderFns__$j = [];
|
|
|
8975
8987
|
|
|
8976
8988
|
var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
|
|
8977
8989
|
if (!inject) return;
|
|
8978
|
-
inject("data-v-
|
|
8990
|
+
inject("data-v-c92a2410_0", {
|
|
8979
8991
|
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}",
|
|
8980
8992
|
map: undefined,
|
|
8981
8993
|
media: undefined
|
|
@@ -8987,7 +8999,7 @@ var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
|
|
|
8987
8999
|
var __vue_scope_id__$j = undefined;
|
|
8988
9000
|
/* module identifier */
|
|
8989
9001
|
|
|
8990
|
-
var __vue_module_identifier__$j = "data-v-
|
|
9002
|
+
var __vue_module_identifier__$j = "data-v-c92a2410";
|
|
8991
9003
|
/* functional template */
|
|
8992
9004
|
|
|
8993
9005
|
var __vue_is_functional_template__$j = false;
|
package/package.json
CHANGED
|
@@ -206,8 +206,9 @@ export default {
|
|
|
206
206
|
return this.$toasted.global.defaultInfo({ msg: `Limite de ${this.fileSettings.max} arquivos` })
|
|
207
207
|
}
|
|
208
208
|
this.externalFilesAux = Array.from(this.externalFiles)
|
|
209
|
+
const allNames = this.file.map(file => file.name)
|
|
209
210
|
this.externalFilesAux.forEach(files => {
|
|
210
|
-
this.file.push(files)
|
|
211
|
+
if(!allNames.includes(files.name)) this.file.push(files)
|
|
211
212
|
});
|
|
212
213
|
this.fileSize = this.file.length
|
|
213
214
|
this.multipleFileUpload()
|
|
@@ -215,6 +216,7 @@ export default {
|
|
|
215
216
|
},
|
|
216
217
|
methods: {
|
|
217
218
|
openFilesByClip(){
|
|
219
|
+
if(this.fileSettings.handleFileClick) return this.$emit("handle-file-click")
|
|
218
220
|
if(this.fileSettings.multiple && !this.hasButtonFiles){
|
|
219
221
|
return this.openSelectFileHandler('both')
|
|
220
222
|
}
|
|
@@ -227,6 +229,7 @@ export default {
|
|
|
227
229
|
this.openFiles = !this.openFiles
|
|
228
230
|
},
|
|
229
231
|
openSelectFileHandler(type) {
|
|
232
|
+
if(this.fileSettings.handleFileClick) return this.$emit("handle-file-click")
|
|
230
233
|
if(type == "system") return this.$emit("open-file-system")
|
|
231
234
|
if(this.fileSettings.multiple){ type = 'both' }
|
|
232
235
|
const fileInput = document.querySelector(`#${type}-${this.textId}`)
|
|
@@ -357,6 +360,7 @@ export default {
|
|
|
357
360
|
if(this.isDoc) this.emitFileVars()
|
|
358
361
|
},
|
|
359
362
|
toggleFilePreview() {
|
|
363
|
+
if(this.fileSettings.handleFileClick) return this.$emit("handle-file-click")
|
|
360
364
|
if(this.fileSettings.handleFilePreview) {
|
|
361
365
|
this.emitFileVars()
|
|
362
366
|
return this.$emit("handle-file-preview")
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
@open-file-system="openFileSystem"
|
|
71
71
|
@reset-file-system="resetFileSystem"
|
|
72
72
|
@handle-file-preview="$emit('handle-file-preview')"
|
|
73
|
+
@handle-file-click="$emit('handle-file-click')"
|
|
73
74
|
/>
|
|
74
75
|
<BtnExpand
|
|
75
76
|
v-show="buttons.hasExpand && !audioFile"
|
|
@@ -147,7 +148,7 @@ export default {
|
|
|
147
148
|
},
|
|
148
149
|
fileSettings: {
|
|
149
150
|
type: Object,
|
|
150
|
-
default: () => { return { docsExtensions: "", imagesExtensions: "", multiple: false, systemButton: false, max: 3, handleFilePreview: false, filePreviewStyle: 1, stackFiles: false } },
|
|
151
|
+
default: () => { return { docsExtensions: "", imagesExtensions: "", multiple: false, systemButton: false, max: 3, handleFilePreview: false, filePreviewStyle: 1, stackFiles: false, handleFileClick: false } },
|
|
151
152
|
required: false
|
|
152
153
|
},
|
|
153
154
|
textId: {
|
|
@@ -174,7 +175,7 @@ export default {
|
|
|
174
175
|
},
|
|
175
176
|
externalFiles: {
|
|
176
177
|
type: Array,
|
|
177
|
-
|
|
178
|
+
required: false
|
|
178
179
|
}
|
|
179
180
|
},
|
|
180
181
|
data() {
|