vue-intergrall-plugins 0.0.227 → 0.0.230
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.
|
@@ -54,10 +54,22 @@ function _slicedToArray(arr, i) {
|
|
|
54
54
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
function _toConsumableArray(arr) {
|
|
58
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function _arrayWithoutHoles(arr) {
|
|
62
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
63
|
+
}
|
|
64
|
+
|
|
57
65
|
function _arrayWithHoles(arr) {
|
|
58
66
|
if (Array.isArray(arr)) return arr;
|
|
59
67
|
}
|
|
60
68
|
|
|
69
|
+
function _iterableToArray(iter) {
|
|
70
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
71
|
+
}
|
|
72
|
+
|
|
61
73
|
function _iterableToArrayLimit(arr, i) {
|
|
62
74
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
63
75
|
|
|
@@ -105,6 +117,10 @@ function _arrayLikeToArray(arr, len) {
|
|
|
105
117
|
return arr2;
|
|
106
118
|
}
|
|
107
119
|
|
|
120
|
+
function _nonIterableSpread() {
|
|
121
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
122
|
+
}
|
|
123
|
+
|
|
108
124
|
function _nonIterableRest() {
|
|
109
125
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
110
126
|
}var top = 'top';
|
|
@@ -3497,8 +3513,7 @@ var __vue_component__$w = /*#__PURE__*/normalizeComponent({
|
|
|
3497
3513
|
staticRenderFns: __vue_staticRenderFns__$o
|
|
3498
3514
|
}, __vue_inject_styles__$o, __vue_script__$o, __vue_scope_id__$o, __vue_is_functional_template__$o, __vue_module_identifier__$o, false, undefined, createInjectorSSR, undefined);
|
|
3499
3515
|
|
|
3500
|
-
var MultipleFilePreview = __vue_component__$w
|
|
3501
|
-
var script$n = {
|
|
3516
|
+
var MultipleFilePreview = __vue_component__$w;var script$n = {
|
|
3502
3517
|
components: {
|
|
3503
3518
|
SingleFilePreview: SingleFilePreview,
|
|
3504
3519
|
MultipleFilePreview: MultipleFilePreview
|
|
@@ -3598,6 +3613,8 @@ var script$n = {
|
|
|
3598
3613
|
},
|
|
3599
3614
|
methods: {
|
|
3600
3615
|
openFilesByClip: function openFilesByClip() {
|
|
3616
|
+
if (this.fileSettings.handleFileClick) return this.$emit("handle-file-click");
|
|
3617
|
+
|
|
3601
3618
|
if (this.fileSettings.multiple && !this.hasButtonFiles) {
|
|
3602
3619
|
return this.openSelectFileHandler('both');
|
|
3603
3620
|
}
|
|
@@ -3611,6 +3628,7 @@ var script$n = {
|
|
|
3611
3628
|
this.openFiles = !this.openFiles;
|
|
3612
3629
|
},
|
|
3613
3630
|
openSelectFileHandler: function openSelectFileHandler(type) {
|
|
3631
|
+
if (this.fileSettings.handleFileClick) return this.$emit("handle-file-click");
|
|
3614
3632
|
if (type == "system") return this.$emit("open-file-system");
|
|
3615
3633
|
|
|
3616
3634
|
if (this.fileSettings.multiple) {
|
|
@@ -3651,11 +3669,14 @@ var script$n = {
|
|
|
3651
3669
|
},
|
|
3652
3670
|
fileUpload: function fileUpload(event, type, externalCall) {
|
|
3653
3671
|
try {
|
|
3672
|
+
var _this$file;
|
|
3673
|
+
|
|
3654
3674
|
this.fileSize = 0;
|
|
3655
3675
|
if (this.fileFormatError) this.file = [];
|
|
3656
3676
|
this.openFiles = false;
|
|
3657
3677
|
var filesAux = !externalCall ? event.target.files ? event.target.files : event.dataTransfer.files : event;
|
|
3658
|
-
|
|
3678
|
+
var isStackable = this.fileSettings.stackFiles && this.fileSettings.multiple;
|
|
3679
|
+
this.file = filesAux.length ? isStackable ? (_this$file = this.file).concat.apply(_this$file, _toConsumableArray(filesAux)) : filesAux : this.file;
|
|
3659
3680
|
if (!this.file.length) return;
|
|
3660
3681
|
|
|
3661
3682
|
if (this.file.length > this.fileSettings.max) {
|
|
@@ -3778,6 +3799,8 @@ var script$n = {
|
|
|
3778
3799
|
if (this.isDoc) this.emitFileVars();
|
|
3779
3800
|
},
|
|
3780
3801
|
toggleFilePreview: function toggleFilePreview() {
|
|
3802
|
+
if (this.fileSettings.handleFileClick) return this.$emit("handle-file-click");
|
|
3803
|
+
|
|
3781
3804
|
if (this.fileSettings.handleFilePreview) {
|
|
3782
3805
|
this.emitFileVars();
|
|
3783
3806
|
return this.$emit("handle-file-preview");
|
|
@@ -3861,7 +3884,7 @@ var __vue_render__$n = function __vue_render__() {
|
|
|
3861
3884
|
name: "tippy",
|
|
3862
3885
|
rawName: "v-tippy"
|
|
3863
3886
|
}],
|
|
3864
|
-
|
|
3887
|
+
class: "" + (_vm.fileSettings.filePreviewStyle == 2 ? 'files-counter-2' : 'files-counter'),
|
|
3865
3888
|
attrs: {
|
|
3866
3889
|
"content": _vm.dictionary.msg_abrir_anexos
|
|
3867
3890
|
},
|
|
@@ -3871,11 +3894,11 @@ var __vue_render__$n = function __vue_render__() {
|
|
|
3871
3894
|
return _vm.toggleFilePreview.apply(null, arguments);
|
|
3872
3895
|
}
|
|
3873
3896
|
}
|
|
3874
|
-
}, [_vm._v("\n Anexos "), _c('fa-icon', {
|
|
3897
|
+
}, [_vm.fileSettings.filePreviewStyle == 1 ? [_vm._v("\n " + _vm._s(_vm.fileSize) + "\n ")] : [_vm._v("\n Anexos "), _c('fa-icon', {
|
|
3875
3898
|
attrs: {
|
|
3876
3899
|
"icon": ['fas', 'eye']
|
|
3877
3900
|
}
|
|
3878
|
-
})],
|
|
3901
|
+
})]], 2) : _vm._e()]), _vm._ssrNode(" "), _c('transition', {
|
|
3879
3902
|
attrs: {
|
|
3880
3903
|
"name": "show"
|
|
3881
3904
|
}
|
|
@@ -4006,7 +4029,7 @@ var __vue_staticRenderFns__$n = [];
|
|
|
4006
4029
|
|
|
4007
4030
|
var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
4008
4031
|
if (!inject) return;
|
|
4009
|
-
inject("data-v-
|
|
4032
|
+
inject("data-v-30b9703f_0", {
|
|
4010
4033
|
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}",
|
|
4011
4034
|
map: undefined,
|
|
4012
4035
|
media: undefined
|
|
@@ -4018,7 +4041,7 @@ var __vue_inject_styles__$n = function __vue_inject_styles__(inject) {
|
|
|
4018
4041
|
var __vue_scope_id__$n = undefined;
|
|
4019
4042
|
/* module identifier */
|
|
4020
4043
|
|
|
4021
|
-
var __vue_module_identifier__$n = "data-v-
|
|
4044
|
+
var __vue_module_identifier__$n = "data-v-30b9703f";
|
|
4022
4045
|
/* functional template */
|
|
4023
4046
|
|
|
4024
4047
|
var __vue_is_functional_template__$n = false;
|
|
@@ -8413,7 +8436,10 @@ var script$j = {
|
|
|
8413
8436
|
multiple: false,
|
|
8414
8437
|
systemButton: false,
|
|
8415
8438
|
max: 3,
|
|
8416
|
-
handleFilePreview: false
|
|
8439
|
+
handleFilePreview: false,
|
|
8440
|
+
filePreviewStyle: 1,
|
|
8441
|
+
stackFiles: false,
|
|
8442
|
+
handleFileClick: false
|
|
8417
8443
|
};
|
|
8418
8444
|
},
|
|
8419
8445
|
required: false
|
|
@@ -8904,6 +8930,9 @@ var __vue_render__$j = function __vue_render__() {
|
|
|
8904
8930
|
"reset-file-system": _vm.resetFileSystem,
|
|
8905
8931
|
"handle-file-preview": function handleFilePreview($event) {
|
|
8906
8932
|
return _vm.$emit('handle-file-preview');
|
|
8933
|
+
},
|
|
8934
|
+
"handle-file-click": function handleFileClick($event) {
|
|
8935
|
+
return _vm.$emit('handle-file-click');
|
|
8907
8936
|
}
|
|
8908
8937
|
}
|
|
8909
8938
|
}), _vm._ssrNode(" "), _c('BtnExpand', {
|
|
@@ -8955,7 +8984,7 @@ var __vue_staticRenderFns__$j = [];
|
|
|
8955
8984
|
|
|
8956
8985
|
var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
|
|
8957
8986
|
if (!inject) return;
|
|
8958
|
-
inject("data-v-
|
|
8987
|
+
inject("data-v-feffc6a0_0", {
|
|
8959
8988
|
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}",
|
|
8960
8989
|
map: undefined,
|
|
8961
8990
|
media: undefined
|
|
@@ -8967,7 +8996,7 @@ var __vue_inject_styles__$j = function __vue_inject_styles__(inject) {
|
|
|
8967
8996
|
var __vue_scope_id__$j = undefined;
|
|
8968
8997
|
/* module identifier */
|
|
8969
8998
|
|
|
8970
|
-
var __vue_module_identifier__$j = "data-v-
|
|
8999
|
+
var __vue_module_identifier__$j = "data-v-feffc6a0";
|
|
8971
9000
|
/* functional template */
|
|
8972
9001
|
|
|
8973
9002
|
var __vue_is_functional_template__$j = false;
|
package/package.json
CHANGED
|
@@ -7,8 +7,13 @@
|
|
|
7
7
|
</transition> -->
|
|
8
8
|
<fa-icon :icon="['fas', 'paperclip']" :title="dictionary.title_selecionar_anexo" />
|
|
9
9
|
<transition name="fade">
|
|
10
|
-
<span v-if="fileSize > 0" @click.stop="toggleFilePreview" v-tippy :content="dictionary.msg_abrir_anexos" class="files-counter-2">
|
|
11
|
-
|
|
10
|
+
<span v-if="fileSize > 0" @click.stop="toggleFilePreview" v-tippy :content="dictionary.msg_abrir_anexos" :class="`${fileSettings.filePreviewStyle == 2 ? 'files-counter-2' : 'files-counter'}`">
|
|
11
|
+
<template v-if="fileSettings.filePreviewStyle == 1">
|
|
12
|
+
{{ fileSize }}
|
|
13
|
+
</template>
|
|
14
|
+
<template v-else>
|
|
15
|
+
Anexos <fa-icon :icon="['fas', 'eye']" />
|
|
16
|
+
</template>
|
|
12
17
|
</span>
|
|
13
18
|
</transition>
|
|
14
19
|
<transition name="show">
|
|
@@ -210,6 +215,7 @@ export default {
|
|
|
210
215
|
},
|
|
211
216
|
methods: {
|
|
212
217
|
openFilesByClip(){
|
|
218
|
+
if(this.fileSettings.handleFileClick) return this.$emit("handle-file-click")
|
|
213
219
|
if(this.fileSettings.multiple && !this.hasButtonFiles){
|
|
214
220
|
return this.openSelectFileHandler('both')
|
|
215
221
|
}
|
|
@@ -222,6 +228,7 @@ export default {
|
|
|
222
228
|
this.openFiles = !this.openFiles
|
|
223
229
|
},
|
|
224
230
|
openSelectFileHandler(type) {
|
|
231
|
+
if(this.fileSettings.handleFileClick) return this.$emit("handle-file-click")
|
|
225
232
|
if(type == "system") return this.$emit("open-file-system")
|
|
226
233
|
if(this.fileSettings.multiple){ type = 'both' }
|
|
227
234
|
const fileInput = document.querySelector(`#${type}-${this.textId}`)
|
|
@@ -255,14 +262,13 @@ export default {
|
|
|
255
262
|
if(this.fileFormatError) this.file = []
|
|
256
263
|
this.openFiles = false
|
|
257
264
|
const filesAux = !externalCall ? event.target.files ? event.target.files : event.dataTransfer.files : event
|
|
258
|
-
|
|
259
|
-
|
|
265
|
+
const isStackable = this.fileSettings.stackFiles && this.fileSettings.multiple
|
|
266
|
+
this.file = filesAux.length ? isStackable ? this.file.concat(...filesAux) : filesAux : this.file
|
|
260
267
|
if(!this.file.length) return
|
|
261
268
|
if(this.file.length > this.fileSettings.max) {
|
|
262
269
|
this.file = []
|
|
263
270
|
return this.$toasted.global.defaultInfo({ msg: `Limite de ${this.fileSettings.max} arquivos` })
|
|
264
271
|
}
|
|
265
|
-
|
|
266
272
|
this.hasAnyFile = true
|
|
267
273
|
this.fileSize = this.file.length
|
|
268
274
|
if(!this.fileSettings.multiple) {
|
|
@@ -353,6 +359,7 @@ export default {
|
|
|
353
359
|
if(this.isDoc) this.emitFileVars()
|
|
354
360
|
},
|
|
355
361
|
toggleFilePreview() {
|
|
362
|
+
if(this.fileSettings.handleFileClick) return this.$emit("handle-file-click")
|
|
356
363
|
if(this.fileSettings.handleFilePreview) {
|
|
357
364
|
this.emitFileVars()
|
|
358
365
|
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 } },
|
|
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: {
|