vue-intergrall-plugins 0.0.255 → 0.0.257
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.
|
@@ -3723,10 +3723,10 @@ var MultipleFilePreview = __vue_component__$y;var script$p = {
|
|
|
3723
3723
|
});
|
|
3724
3724
|
}
|
|
3725
3725
|
|
|
3726
|
-
if (sizeInMb >=
|
|
3726
|
+
if (sizeInMb >= 15) {
|
|
3727
3727
|
this.file = [];
|
|
3728
3728
|
return this.$toasted.global.defaultInfo({
|
|
3729
|
-
msg: "Limite de
|
|
3729
|
+
msg: "Limite de 15 MB por arquivo"
|
|
3730
3730
|
});
|
|
3731
3731
|
}
|
|
3732
3732
|
|
|
@@ -4080,7 +4080,7 @@ var __vue_staticRenderFns__$p = [];
|
|
|
4080
4080
|
|
|
4081
4081
|
var __vue_inject_styles__$p = function __vue_inject_styles__(inject) {
|
|
4082
4082
|
if (!inject) return;
|
|
4083
|
-
inject("data-v-
|
|
4083
|
+
inject("data-v-0a2392ca_0", {
|
|
4084
4084
|
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}",
|
|
4085
4085
|
map: undefined,
|
|
4086
4086
|
media: undefined
|
|
@@ -4092,7 +4092,7 @@ var __vue_inject_styles__$p = function __vue_inject_styles__(inject) {
|
|
|
4092
4092
|
var __vue_scope_id__$p = undefined;
|
|
4093
4093
|
/* module identifier */
|
|
4094
4094
|
|
|
4095
|
-
var __vue_module_identifier__$p = "data-v-
|
|
4095
|
+
var __vue_module_identifier__$p = "data-v-0a2392ca";
|
|
4096
4096
|
/* functional template */
|
|
4097
4097
|
|
|
4098
4098
|
var __vue_is_functional_template__$p = false;
|
|
@@ -9435,6 +9435,11 @@ var script$h = {
|
|
|
9435
9435
|
dictionary: {
|
|
9436
9436
|
type: Object,
|
|
9437
9437
|
required: true
|
|
9438
|
+
},
|
|
9439
|
+
selectInitial: {
|
|
9440
|
+
type: Boolean,
|
|
9441
|
+
required: false,
|
|
9442
|
+
default: true
|
|
9438
9443
|
}
|
|
9439
9444
|
},
|
|
9440
9445
|
data: function data() {
|
|
@@ -9446,7 +9451,7 @@ var script$h = {
|
|
|
9446
9451
|
},
|
|
9447
9452
|
mounted: function mounted() {
|
|
9448
9453
|
this.setTemplateOptions();
|
|
9449
|
-
this.selectIfIsUnique();
|
|
9454
|
+
if (this.selectInitial) this.selectIfIsUnique();
|
|
9450
9455
|
this.selectIfHasContact24h();
|
|
9451
9456
|
},
|
|
9452
9457
|
methods: {
|
|
@@ -9672,7 +9677,7 @@ var __vue_staticRenderFns__$h = [];
|
|
|
9672
9677
|
|
|
9673
9678
|
var __vue_inject_styles__$h = function __vue_inject_styles__(inject) {
|
|
9674
9679
|
if (!inject) return;
|
|
9675
|
-
inject("data-v-
|
|
9680
|
+
inject("data-v-37a18a28_0", {
|
|
9676
9681
|
source: "*{box-sizing:border-box}.toasted svg{margin-right:10px}.d-none{display:none}ul{list-style-type:none}h1,h2,h3,h4,p{margin:0;padding:0}.tg-container{width:100%;max-width:800px;display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto}.tg-options{width:100%;display:flex}.tg-options.column{flex-direction:column}.tg-options h4{margin-right:5px}.tg-select{flex:1;height:34px;overflow:hidden}.tg-select .vs__dropdown-toggle{background-color:#fff;height:34px;overflow:hidden;display:flex;align-items:center}.tg-select .vs__selected-options{height:34px;overflow:hidden}.tg-select .vs__selected-options>span{white-space:nowrap;text-overflow:ellipsis;flex:1}.tg-select .vs__selected-options>input{flex-grow:0}.vs__dropdown-option.vs__dropdown-option--selected{background-color:#1a5fad!important;color:#fff}.vs__dropdown-menu li{padding:10px 15px}.vs__dropdown-option{transition:background-color 150ms;white-space:normal}.vs__dropdown-option:nth-child(odd){background-color:#f1f1f1}.vs__dropdown-option--highlight,.vs__dropdown-option--selected,.vs__dropdown-option:active,.vs__dropdown-option:focus,.vs__dropdown-option:hover{background-color:#5897fb!important;color:#fff}.tg-component{width:100%}.ts-container{width:100%;display:flex;justify-content:space-between}.ts-content{--border-color:#CCC;--background-color:#DFF0D8;--input-background-color:#FFF;--input-border-default:#007BFF;--input-border-error:#E74C3C;--placeholder-color:#BBB;flex:2;font-size:.7rem;padding:10px 0}.ts-content footer,.ts-content header,.ts-content section{padding:3px 5px;background-color:var(--background-color)}.ts-content header,.ts-content section{border-right:1px solid var(--border-color);border-left:1px solid var(--border-color)}.ts-content header{border-top-left-radius:2.5px;border-top-right-radius:2.5px;border-top:1px solid var(--border-color)}.ts-content header{font-weight:550}.ts-content section{line-height:25px}.ts-content section.margin-bottom{border-bottom-left-radius:2.5px;border-bottom-right-radius:2.5px;border-bottom:1px solid var(--border-color)}.ts-content footer{border:1px solid var(--border-color);border-top:unset;border-bottom-left-radius:2.5px;border-bottom-right-radius:2.5px}.ts-content input{border:1px solid transparent;outline:0;font-size:.8rem;padding:2.5px 5px;background-color:var(--input-background-color)}.ts-content input::placeholder{color:var(--placeholder-color)}.ts-content input.active,.ts-content input:focus{border:1px solid var(--input-border-default)}.ts-content input.invalid{border:1px solid var(--input-border-error)!important}.ts-content__var{display:inline-block;position:relative}.ts-dropdown{margin:0;padding:0;position:absolute;top:19px;left:0;background:#eee;width:100%;z-index:1;transition:all 150ms;visibility:hidden;opacity:0;list-style-type:none;border:1px solid #444;border-top:unset}.ts-dropdown li{width:100%;opacity:.9;cursor:pointer;font-weight:550;padding:2px 3px;font-size:.8rem;transition:background-color 150ms}.ts-dropdown li:focus,.ts-dropdown li:focus-within,.ts-dropdown li:hover{opacity:1;background-color:#555;color:#fff}.ts-dropdown.visible{visibility:visible;opacity:1}.tg-btn{width:40%;display:flex;justify-content:center;align-items:center}.tg-btn button{border:unset;display:block;min-width:180px;height:35px;padding:0 10px;font-weight:500;background-color:#007bff;color:#fff;transition:transform .3s ease-in-out;user-select:none;cursor:pointer;box-shadow:inset 0 -2px rgba(0,0,0,.2);opacity:.9;border-radius:2.5px}.tg-btn button>svg{margin-right:5px;color:#003166}.tg-btn button:hover{opacity:1}.tg-btn button: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)}.tg-btn button: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)}.tg-btn button:active,.tg-btn button:focus{outline:2px solid #000}.tg-btn.small-btn{width:auto;margin:0 5px}.tg-btn.small-btn svg{margin-right:0}.tg-btn.small-btn button{min-width:35px;width:35px;padding:0;display:flex;justify-content:center;align-items:center}.tm-container{border:1px solid var(--border-color);border-radius:2.5px;display:flex}",
|
|
9677
9682
|
map: undefined,
|
|
9678
9683
|
media: undefined
|
|
@@ -9684,7 +9689,7 @@ var __vue_inject_styles__$h = function __vue_inject_styles__(inject) {
|
|
|
9684
9689
|
var __vue_scope_id__$h = undefined;
|
|
9685
9690
|
/* module identifier */
|
|
9686
9691
|
|
|
9687
|
-
var __vue_module_identifier__$h = "data-v-
|
|
9692
|
+
var __vue_module_identifier__$h = "data-v-37a18a28";
|
|
9688
9693
|
/* functional template */
|
|
9689
9694
|
|
|
9690
9695
|
var __vue_is_functional_template__$h = false;
|
|
@@ -10118,15 +10123,21 @@ var __vue_component__$n = __vue_component__$m;var textoLongo = {
|
|
|
10118
10123
|
var type = anexos.type,
|
|
10119
10124
|
mku = anexos.mku,
|
|
10120
10125
|
name = anexos.name;
|
|
10121
|
-
|
|
10122
|
-
|
|
10123
|
-
|
|
10124
|
-
|
|
10125
|
-
|
|
10126
|
-
|
|
10127
|
-
|
|
10128
|
-
|
|
10129
|
-
|
|
10126
|
+
var ignoreMku = false;
|
|
10127
|
+
|
|
10128
|
+
if (!type || !mku || !name) {
|
|
10129
|
+
if (anexos.anexo) {
|
|
10130
|
+
ignoreMku = true;
|
|
10131
|
+
imgAnexo = anexos.imgAnexo ? anexos.imgAnexo : '';
|
|
10132
|
+
tipoDoc = anexos.tipoDoc ? anexos.tipoDoc : '';
|
|
10133
|
+
docAnexo = anexos.docAnexo ? anexos.docAnexo : '';
|
|
10134
|
+
nomeArquivo = anexos.nomeArquivo ? anexos.nomeArquivo : '';
|
|
10135
|
+
audio = anexos.audio ? anexos.audio : false;
|
|
10136
|
+
} else {
|
|
10137
|
+
return anexos;
|
|
10138
|
+
}
|
|
10139
|
+
}
|
|
10140
|
+
|
|
10130
10141
|
var tipoAnexo = regexAnexos.exec(type);
|
|
10131
10142
|
tipoAnexo = !tipoAnexo ? type : tipoAnexo[1];
|
|
10132
10143
|
if (type === "application/octet-stream") audio = true;
|
|
@@ -10136,8 +10147,11 @@ var __vue_component__$n = __vue_component__$m;var textoLongo = {
|
|
|
10136
10147
|
case "jpg":
|
|
10137
10148
|
case "png":
|
|
10138
10149
|
case "jpeg":
|
|
10139
|
-
|
|
10140
|
-
|
|
10150
|
+
if (!ignoreMku) {
|
|
10151
|
+
imgAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mku);
|
|
10152
|
+
nomeArquivo = name;
|
|
10153
|
+
}
|
|
10154
|
+
|
|
10141
10155
|
break;
|
|
10142
10156
|
|
|
10143
10157
|
case "audio/ogg":
|
|
@@ -10158,8 +10172,11 @@ var __vue_component__$n = __vue_component__$m;var textoLongo = {
|
|
|
10158
10172
|
tipoDoc = "audio/mpeg";
|
|
10159
10173
|
}
|
|
10160
10174
|
|
|
10161
|
-
|
|
10162
|
-
|
|
10175
|
+
if (!ignoreMku) {
|
|
10176
|
+
docAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mku);
|
|
10177
|
+
nomeArquivo = name;
|
|
10178
|
+
}
|
|
10179
|
+
|
|
10163
10180
|
audio = true;
|
|
10164
10181
|
break;
|
|
10165
10182
|
|
|
@@ -10174,15 +10191,22 @@ var __vue_component__$n = __vue_component__$m;var textoLongo = {
|
|
|
10174
10191
|
tipoDoc = "video/webm";
|
|
10175
10192
|
}
|
|
10176
10193
|
|
|
10177
|
-
|
|
10178
|
-
|
|
10194
|
+
if (!ignoreMku) {
|
|
10195
|
+
docAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mku);
|
|
10196
|
+
nomeArquivo = name;
|
|
10197
|
+
}
|
|
10198
|
+
|
|
10179
10199
|
video = true;
|
|
10180
10200
|
break;
|
|
10181
10201
|
|
|
10182
10202
|
default:
|
|
10183
10203
|
tipoDoc = type;
|
|
10184
|
-
|
|
10185
|
-
|
|
10204
|
+
|
|
10205
|
+
if (!ignoreMku) {
|
|
10206
|
+
docAnexo = "".concat(dominio, "/callcenter/docs.php?mku=").concat(mku);
|
|
10207
|
+
nomeArquivo = name;
|
|
10208
|
+
}
|
|
10209
|
+
|
|
10186
10210
|
break;
|
|
10187
10211
|
}
|
|
10188
10212
|
|
package/package.json
CHANGED
|
@@ -274,9 +274,9 @@ export default {
|
|
|
274
274
|
this.file = []
|
|
275
275
|
return this.$toasted.global.defaultInfo({ msg: this.dictionary.msg_arquivo_invalido })
|
|
276
276
|
}
|
|
277
|
-
if(sizeInMb >=
|
|
277
|
+
if(sizeInMb >= 15) {
|
|
278
278
|
this.file = []
|
|
279
|
-
return this.$toasted.global.defaultInfo({ msg: `Limite de
|
|
279
|
+
return this.$toasted.global.defaultInfo({ msg: `Limite de 15 MB por arquivo` })
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
if(this.file.length > this.fileSettings.max) {
|
|
@@ -73,6 +73,11 @@
|
|
|
73
73
|
dictionary: {
|
|
74
74
|
type: Object,
|
|
75
75
|
required: true
|
|
76
|
+
},
|
|
77
|
+
selectInitial: {
|
|
78
|
+
type: Boolean,
|
|
79
|
+
required: false,
|
|
80
|
+
default: true
|
|
76
81
|
}
|
|
77
82
|
},
|
|
78
83
|
data() {
|
|
@@ -84,7 +89,7 @@
|
|
|
84
89
|
},
|
|
85
90
|
mounted() {
|
|
86
91
|
this.setTemplateOptions()
|
|
87
|
-
this.selectIfIsUnique()
|
|
92
|
+
if(this.selectInitial) this.selectIfIsUnique()
|
|
88
93
|
this.selectIfHasContact24h()
|
|
89
94
|
},
|
|
90
95
|
methods: {
|