vue-intergrall-plugins 1.0.86 → 1.0.88

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.
@@ -4,7 +4,8 @@
4
4
  <transition-group name="fade">
5
5
  <Loader v-if="loading" key="mfp-loader" />
6
6
  <template v-else-if="fileFormatError">
7
- <span @click="deleteFile" :title="dictionary.msg_cancelar_anexo" class="text-footer-exclude-file" key="mfp-exlude-file">
7
+ <span @click="deleteFile" :title="dictionary.msg_cancelar_anexo" class="text-footer-exclude-file"
8
+ key="mfp-exlude-file">
8
9
  <fa-icon :icon="['fas', 'times-circle']" />
9
10
  </span>
10
11
  <div class="text-footer-invalid-format" v-if="fileFormatError" key="mfp-invalid-format">
@@ -14,18 +15,17 @@
14
15
  </template>
15
16
  <template v-else>
16
17
  <div class="file-preview" v-for="(singleFile, index) in file" :key="index">
17
- <p class="file-title" :title="!singleFile.invalid ? singleFile.name : `${dictionary.titulo_msg_formato_invalido ? dictionary.titulo_msg_formato_invalido : 'Arquivo invalido'} - ${singleFile.name}`" :class="{'red' : singleFile.invalid}">
18
+ <p class="file-title" :style="`max-width: ${isPdf(singleFile.type) ? '175px' : '75px'}`"
19
+ :title="!singleFile.invalid ? singleFile.name : `${dictionary.titulo_msg_formato_invalido ? dictionary.titulo_msg_formato_invalido : 'Arquivo invalido'} - ${singleFile.name}`"
20
+ :class="{ 'red': singleFile.invalid }">
18
21
  <fa-icon :icon="icon(singleFile.imgOrDoc)" />
19
- {{ !singleFile.invalid ? singleFile.name : `${dictionary.titulo_msg_formato_invalido ? dictionary.titulo_msg_formato_invalido : "Arquivo invalido"} - ${singleFile.name}` }}
22
+ {{ !singleFile.invalid ? singleFile.name : `${dictionary.titulo_msg_formato_invalido ?
23
+ dictionary.titulo_msg_formato_invalido : "Arquivo invalido"} - ${singleFile.name}` }}
20
24
  </p>
21
25
  <div class="small-img">
22
26
  <span class="img-container" v-if="singleFile.imgOrDoc === 'img' && !isPdf(singleFile.type)">
23
- <img
24
- :title="dictionary.titulo_visualizar_img"
25
- :src="singleFile.src"
26
- :alt="dictionary.alt_previa_img"
27
- @click="openImage(singleFile.src)"
28
- />
27
+ <img :title="dictionary.titulo_visualizar_img" :src="singleFile.src" :alt="dictionary.alt_previa_img"
28
+ @click="openImage(singleFile.src)" />
29
29
  </span>
30
30
  <span class="pdf" v-else-if="isPdf(singleFile.type)">
31
31
  <fa-icon :icon="['fas', 'file-pdf']" />
@@ -34,7 +34,8 @@
34
34
  <fa-icon :icon="['fas', 'file-alt']" />
35
35
  </span>
36
36
  </div>
37
- <span @click="deleteSpecificFile(singleFile.name, index)" v-tippy="{placement: 'left'}" :content="dictionary.msg_excluir_anexo" :title="dictionary.msg_excluir_anexo" class="delete-file">
37
+ <span @click="deleteSpecificFile(singleFile.name, index)" v-tippy="{ placement: 'left' }"
38
+ :content="dictionary.msg_excluir_anexo" :title="dictionary.msg_excluir_anexo" class="delete-file">
38
39
  <fa-icon :icon="['fas', 'trash-alt']" />
39
40
  </span>
40
41
  </div>
@@ -56,12 +57,12 @@ export default {
56
57
  }
57
58
  },
58
59
  mounted() {
59
- setTimeout(() => { this.loading = false;}, 500);
60
+ setTimeout(() => { this.loading = false; }, 500);
60
61
  },
61
62
  watch: {
62
63
  file() {
63
- if(!this.ignoreNextUpdate) {
64
- if(this.loadingTimeout) clearTimeout(this.loadingTimeout);
64
+ if (!this.ignoreNextUpdate) {
65
+ if (this.loadingTimeout) clearTimeout(this.loadingTimeout);
65
66
  this.loading = true;
66
67
  this.loadingTimeout = setTimeout(() => { this.loading = false; }, 500);
67
68
  this.ignoreNextUpdate = true
@@ -87,7 +88,7 @@ export default {
87
88
  this.$emit("open-image", image);
88
89
  },
89
90
  icon(imgOrDoc) {
90
- if(!imgOrDoc) return ['fas', 'times-circle'];
91
+ if (!imgOrDoc) return ['fas', 'times-circle'];
91
92
  return imgOrDoc == 'doc' ? ['fas', 'file-alt'] : ['fas', 'image'];
92
93
  },
93
94
  isPdf(type) {
@@ -98,169 +99,193 @@ export default {
98
99
  </script>
99
100
 
100
101
  <style>
101
- .multiple-file-preview {
102
- position: relative;
103
- display: flex;
104
- flex-direction: column;
105
- width: 100%;
106
- height: 100%;
107
- max-height: 100%;
108
- overflow-y: auto;
109
- overflow-x: hidden;
110
- border-top-left-radius: 2.5px;
111
- border-top-right-radius: 2.5px;
112
- transition: background-color 150ms;
113
- scrollbar-color: #888 rgba(0, 0, 0, 0.2);
114
- scrollbar-width: 4px;
115
- }
116
- .multiple-file-preview::-webkit-scrollbar{
117
- width: 4px;
118
- }
102
+ .multiple-file-preview {
103
+ position: relative;
104
+ display: flex;
105
+ flex-direction: column;
106
+ width: 100%;
107
+ height: 100%;
108
+ max-height: 100%;
109
+ overflow-y: auto;
110
+ overflow-x: hidden;
111
+ border-top-left-radius: 2.5px;
112
+ border-top-right-radius: 2.5px;
113
+ transition: background-color 150ms;
114
+ scrollbar-color: #888 rgba(0, 0, 0, 0.2);
115
+ scrollbar-width: 4px;
116
+ }
119
117
 
120
- .multiple-file-preview .close-icon {
121
- color: #E74C3C;
122
- cursor: pointer;
123
- opacity: .9;
124
- transition: opacity 300ms;
125
- }
126
- .multiple-file-preview .close-icon:hover {
127
- opacity: 1;
128
- }
118
+ .multiple-file-preview::-webkit-scrollbar {
119
+ width: 4px;
120
+ }
129
121
 
130
- .multiple-file-preview::-webkit-scrollbar-track{
131
- background-color: rgba(0, 0, 0, 0.2);
132
- }
122
+ .multiple-file-preview .close-icon {
123
+ color: #E74C3C;
124
+ cursor: pointer;
125
+ opacity: .9;
126
+ transition: opacity 300ms;
127
+ }
133
128
 
134
- .multiple-file-preview::-webkit-scrollbar-thumb{
135
- transition-duration: .5s;
136
- background-color: #222
137
- }
129
+ .multiple-file-preview .close-icon:hover {
130
+ opacity: 1;
131
+ }
138
132
 
139
- .multiple-file-preview::-webkit-scrollbar-thumb:hover{
140
- background-color: #555
141
- }
133
+ .multiple-file-preview::-webkit-scrollbar-track {
134
+ background-color: rgba(0, 0, 0, 0.2);
135
+ }
142
136
 
143
- .text-footer-invalid-format {
144
- color: #222;
145
- padding: 10px;
146
- }
147
- .text-footer-invalid-format h3 {
148
- text-overflow: ellipsis;
149
- overflow: hidden;
150
- font-weight: 500;
151
- }
152
- .text-footer-invalid-format h4 {
153
- text-overflow: ellipsis;
154
- overflow: hidden;
155
- font-size: 14.4px;
156
- }
137
+ .multiple-file-preview::-webkit-scrollbar-thumb {
138
+ transition-duration: .5s;
139
+ background-color: #222
140
+ }
157
141
 
158
- .text-footer-exclude-file {
159
- position: absolute;
160
- top: 5px;
161
- right: 5px;
162
- cursor: pointer;
163
- display: flex;
164
- justify-content: center;
165
- align-items: center;
166
- min-width: 16px;
167
- min-height: 16px;
168
- background-color: #FFF;
169
- border-radius: 50%;
170
- }
171
- .text-footer-exclude-file svg {
172
- transition: color 200ms;
173
- color: #e9594a;
174
- }
175
- .text-footer-exclude-file svg:hover {
176
- color: #E74C3C;
177
- }
142
+ .multiple-file-preview::-webkit-scrollbar-thumb:hover {
143
+ background-color: #555
144
+ }
178
145
 
179
- .file-preview {
180
- display: flex;
181
- width: 100%;
182
- align-items: center;
183
- padding: 5px 10px;
184
- transition: background-color 150ms;
185
- }
186
- .file-preview:hover {
187
- background-color: rgba(0, 0, 0, .1)
188
- }
146
+ .text-footer-invalid-format {
147
+ color: #222;
148
+ padding: 10px;
149
+ }
189
150
 
190
- .file-title {
191
- color: #222;
192
- display: flex;
193
- align-items: center;
194
- white-space: nowrap;
195
- text-overflow: ellipsis;
196
- overflow: hidden;
197
- padding: 4px 10px;
198
- background-color: #FFF;
199
- border-radius: 30px;
200
- display: inline-block;
201
- }
202
- .file-title.red {
203
- color: #E74C3C;
204
- margin-right: 5px;
205
- }
206
- .file-title > svg {
207
- margin-right: 5px;
208
- color: #333;
209
- }
151
+ .text-footer-invalid-format h3 {
152
+ text-overflow: ellipsis;
153
+ overflow: hidden;
154
+ font-weight: 500;
155
+ }
210
156
 
211
- .small-img {
212
- flex: 1;
213
- margin: 0 15px;
214
- display: flex;
215
- justify-content: center;
216
- align-items: center;
217
- position: relative;
218
- }
219
- .small-img img {
220
- height: 40px;
221
- cursor: pointer;
222
- }
223
- .small-img .pdf, .small-img .doc {
224
- display: flex;
225
- justify-content: center;
226
- align-items: center;
227
- font-size: 30px;
228
- }
229
- .small-img .pdf {
230
- color: #E74C3C;
231
- }
232
- .small-img .doc {
233
- color: #006bc9;
234
- }
235
- .small-img .pdf svg, .small-img .doc svg{
236
- z-index: 1;
237
- }
238
- .small-img .pdf::after, .small-img .doc::after {
239
- content: "";
240
- position: absolute;
241
- bottom: 2px;
242
- transform: translateY(2px);
243
- width: 20px;
244
- height: 20px;
245
- background-color: #FFF;
246
- }
247
- .img-container {
248
- padding: 5px;
249
- border-radius: 2.5px;
250
- background-color: rgba(0, 0, 0, .15);
251
- display: flex;
252
- justify-content: center;
253
- align-items: center;
254
- }
157
+ .text-footer-invalid-format h4 {
158
+ text-overflow: ellipsis;
159
+ overflow: hidden;
160
+ font-size: 14.4px;
161
+ }
255
162
 
256
- .delete-file {
257
- display: flex;
258
- justify-content: center;
259
- align-items: center;
260
- cursor: pointer;
261
- }
262
- .delete-file > svg {
263
- font-size: 16px;
264
- color: #E74C3C;
265
- }
163
+ .text-footer-exclude-file {
164
+ position: absolute;
165
+ top: 5px;
166
+ right: 5px;
167
+ cursor: pointer;
168
+ display: flex;
169
+ justify-content: center;
170
+ align-items: center;
171
+ min-width: 16px;
172
+ min-height: 16px;
173
+ background-color: #FFF;
174
+ border-radius: 50%;
175
+ }
176
+
177
+ .text-footer-exclude-file svg {
178
+ transition: color 200ms;
179
+ color: #e9594a;
180
+ }
181
+
182
+ .text-footer-exclude-file svg:hover {
183
+ color: #E74C3C;
184
+ }
185
+
186
+ .file-preview {
187
+ display: flex;
188
+ width: calc(100% - 20px);
189
+ align-items: center;
190
+ padding: 5px 10px;
191
+ transition: background-color 150ms;
192
+ }
193
+
194
+ .file-preview:hover {
195
+ background-color: rgba(0, 0, 0, .1)
196
+ }
197
+
198
+ .file-title {
199
+ color: #222;
200
+ display: flex;
201
+ align-items: center;
202
+ white-space: nowrap;
203
+ text-overflow: ellipsis;
204
+ overflow: hidden;
205
+ padding: 4px 10px;
206
+ background-color: #FFF;
207
+ border-radius: 30px;
208
+ display: inline-block;
209
+ max-width: 75px;
210
+ }
211
+
212
+ .file-title.red {
213
+ color: #E74C3C;
214
+ margin-right: 5px;
215
+ }
216
+
217
+ .file-title>svg {
218
+ margin-right: 5px;
219
+ color: #333;
220
+ }
221
+
222
+ .small-img {
223
+ flex: 1;
224
+ margin: 0 15px;
225
+ display: flex;
226
+ justify-content: center;
227
+ align-items: center;
228
+ position: relative;
229
+ }
230
+
231
+ .small-img img {
232
+ width: 100%;
233
+ height: 100%;
234
+ max-height: 40px;
235
+ max-width: 100px;
236
+ cursor: pointer;
237
+ }
238
+
239
+ .small-img .pdf,
240
+ .small-img .doc {
241
+ display: flex;
242
+ justify-content: center;
243
+ align-items: center;
244
+ font-size: 30px;
245
+ }
246
+
247
+ .small-img .pdf {
248
+ color: #E74C3C;
249
+ }
250
+
251
+ .small-img .doc {
252
+ color: #006bc9;
253
+ }
254
+
255
+ .small-img .pdf svg,
256
+ .small-img .doc svg {
257
+ z-index: 1;
258
+ }
259
+
260
+ .small-img .pdf::after,
261
+ .small-img .doc::after {
262
+ content: "";
263
+ position: absolute;
264
+ bottom: 2px;
265
+ transform: translateY(2px);
266
+ width: 20px;
267
+ height: 20px;
268
+ background-color: #FFF;
269
+ }
270
+
271
+ .img-container {
272
+ padding: 5px;
273
+ border-radius: 2.5px;
274
+ background-color: rgba(0, 0, 0, .15);
275
+ display: flex;
276
+ justify-content: center;
277
+ align-items: center;
278
+ }
279
+
280
+ .delete-file {
281
+ display: flex;
282
+ justify-content: center;
283
+ align-items: center;
284
+ cursor: pointer;
285
+ }
286
+
287
+ .delete-file>svg {
288
+ font-size: 16px;
289
+ color: #E74C3C;
290
+ }
266
291
  </style>
@@ -901,11 +901,11 @@ export default {
901
901
  transform: translateX(-5px);
902
902
  }
903
903
 
904
- .text-footer-container .text-footer-preview-container {
904
+ .text-footer-container .old-footer-preview-container {
905
905
  width: 100%;
906
906
  cursor: default;
907
907
  position: absolute;
908
- left: 0;
908
+ right: 0;
909
909
  background-color: #f1f1f1;
910
910
  border: 2px solid #ccc;
911
911
  border-bottom: unset;
@@ -913,25 +913,25 @@ export default {
913
913
  border-top-right-radius: 2.5px;
914
914
  }
915
915
 
916
- .text-footer-container .text-footer-preview-container.isDoc {
916
+ .text-footer-container .old-footer-preview-container.isDoc {
917
917
  top: -50px;
918
918
  width: 100%;
919
919
  height: 45px;
920
920
  }
921
921
 
922
- .text-footer-container .text-footer-preview-container.isImg,
923
- .text-footer-container .text-footer-preview-container.isMultiple {
922
+ .text-footer-container .old-footer-preview-container.isImg,
923
+ .text-footer-container .old-footer-preview-container.isMultiple {
924
924
  top: -205px;
925
925
  width: 100%;
926
926
  height: 200px;
927
- min-width: 200px;
927
+ min-width: 300px;
928
928
  }
929
929
 
930
- .text-footer-container .text-footer-preview-container.isImg .text-footer-image-preview {
930
+ .text-footer-container .old-footer-preview-container.isImg .text-footer-image-preview {
931
931
  height: 170px;
932
932
  }
933
933
 
934
- .text-footer-container .text-footer-preview-container.isError {
934
+ .text-footer-container .old-footer-preview-container.isError {
935
935
  top: -80px;
936
936
  width: 100%;
937
937
  height: 75px;