vue-intergrall-plugins 0.0.502 → 0.0.504

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intergrall-plugins",
3
- "version": "0.0.502",
3
+ "version": "0.0.504",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -1,7 +1,7 @@
1
1
  <template>
2
- <div
2
+ <div
3
3
  v-if="origin"
4
- :class="[currentClasses]"
4
+ :class="[currentClasses]"
5
5
  :id="`card-${messageIndex ? messageIndex : randomizeValue}`"
6
6
  >
7
7
  <transition name="fade">
@@ -11,26 +11,36 @@
11
11
  <div class="card-header" :style="resizeHeaderCard">
12
12
  <div class="card-author">
13
13
  <fa-icon :icon="currentIcon" />
14
- <p
14
+ <p
15
15
  v-if="author"
16
- class="text-bold"
17
- v-text="`${tratarTextoLongo(author)}`"
18
- :title="author">
19
- </p>
20
- <p
21
- v-if="origin === 'principal' && login"
22
- v-text="`| ${login}`"
23
- :title="login">
24
- </p>
16
+ class="text-bold"
17
+ v-text="`${tratarTextoLongo(author)}`"
18
+ :title="author"
19
+ ></p>
20
+ <p
21
+ v-if="origin === 'principal' && login"
22
+ v-text="`| ${login}`"
23
+ :title="login"
24
+ ></p>
25
25
  </div>
26
26
  <div class="card-right">
27
27
  <div class="card-dates">
28
- <div
29
- v-if="date"
30
- class="card-date"
31
- :title="`${dictionary.data_criacao}: ${origin === 'outros' ? formataTimezoneData(date) : returnFormataDataHora(date)}`"
28
+ <div
29
+ v-if="date"
30
+ class="card-date"
31
+ :title="`${dictionary.data_criacao}: ${
32
+ origin === 'outros'
33
+ ? formataTimezoneData(date)
34
+ : returnFormataDataHora(date)
35
+ }`"
32
36
  >
33
- <span v-text="origin === 'outros' ? formataTimezoneData(date) : returnFormataDataHora(date)"></span>
37
+ <span
38
+ v-text="
39
+ origin === 'outros'
40
+ ? formataTimezoneData(date)
41
+ : returnFormataDataHora(date)
42
+ "
43
+ ></span>
34
44
  </div>
35
45
  </div>
36
46
  <div v-if="hasExpand" class="card-expand" @click="cardExpand()">
@@ -38,12 +48,13 @@
38
48
  </div>
39
49
  </div>
40
50
  </div>
41
- <p
51
+ <p
42
52
  v-if="chipInfos.cod && chipInfos.desc"
43
- class="card-chip"
44
- :class="[chipInfosClasses]"
45
- v-text="`${chipInfos.desc} (${chipInfos.cod})`" :title="`${chipInfos.desc} (${chipInfos.cod})`">
46
- </p>
53
+ class="card-chip"
54
+ :class="[chipInfosClasses]"
55
+ v-text="`${chipInfos.desc} (${chipInfos.cod})`"
56
+ :title="`${chipInfos.desc} (${chipInfos.cod})`"
57
+ ></p>
47
58
  <p class="card-message" v-html="formattedMessage"></p>
48
59
  <div class="card-footer">
49
60
  <template v-if="files && files.length">
@@ -51,8 +62,8 @@
51
62
  <CardFile :file="file" :dictionary="dictionary" :domain="domain" />
52
63
  </div>
53
64
  </template>
54
- <CardCheck
55
- v-if="messageStatus"
65
+ <CardCheck
66
+ v-if="messageStatus"
56
67
  :messageStatus="messageStatus"
57
68
  :hasReply="hasReply"
58
69
  :replyMessage="replyMessage"
@@ -65,137 +76,138 @@
65
76
  </template>
66
77
 
67
78
  <script>
68
- import { textoLongo } from "@/mixins/formatarTexto"
69
- import { formataTimezoneData, formataDataHora } from "../../services/textFormatting"
70
- import CardFile from "./CardFile"
71
- import CardCheck from "./CardCheck"
79
+ import { textoLongo } from "@/mixins/formatarTexto";
80
+ import { formataTimezoneData, formataDataHora } from "../../services/textFormatting";
81
+ import CardFile from "./CardFile";
82
+ import CardCheck from "./CardCheck";
72
83
 
73
84
  export default {
74
85
  components: { CardFile, CardCheck },
75
86
  props: {
76
87
  dictionary: {
77
88
  type: Object,
78
- required: true
89
+ required: true,
79
90
  },
80
91
  messageIndex: {
81
92
  type: [Number, String],
82
- required: true
93
+ required: true,
83
94
  },
84
95
  domain: {
85
96
  type: String,
86
- required: true
97
+ required: true,
87
98
  },
88
99
  hasExpand: {
89
100
  type: Boolean,
90
101
  required: false,
91
- default: true
102
+ default: true,
92
103
  },
93
104
  origin: {
94
105
  type: String,
95
- required: true
106
+ required: true,
96
107
  },
97
108
  author: {
98
- type: String
109
+ type: String,
99
110
  },
100
111
  login: {
101
- type: String
112
+ type: String,
102
113
  },
103
114
  message: {
104
- type: String
115
+ type: String,
105
116
  },
106
117
  files: {
107
- type: Array
118
+ type: Array,
108
119
  },
109
120
  date: {
110
- type: String
121
+ type: String,
111
122
  },
112
123
  chipInfos: {
113
- type: Object
124
+ type: Object,
114
125
  },
115
126
  newMessage: {
116
- type: Boolean
127
+ type: Boolean,
117
128
  },
118
129
  hasReply: {
119
- type: Boolean
130
+ type: Boolean,
120
131
  },
121
132
  replyMessage: {
122
- type: String
133
+ type: String,
123
134
  },
124
135
  messageStatus: {
125
- type: String
136
+ type: String,
126
137
  },
127
138
  tooltipContent: {
128
- type: String
139
+ type: String,
129
140
  },
130
141
  resizeCard: {
131
142
  type: Boolean,
132
143
  required: false,
133
- default: false
144
+ default: false,
134
145
  },
135
146
  },
136
- data(){
147
+ data() {
137
148
  return {
138
- styleCard: ''
139
- }
149
+ styleCard: "",
150
+ };
140
151
  },
141
152
  mixins: [textoLongo],
142
153
  computed: {
143
154
  randomizeValue() {
144
- return `${(Math.floor(Math.random() * 7770))}${Date.now()}`
155
+ return `${Math.floor(Math.random() * 7770)}${Date.now()}`;
145
156
  },
146
157
  formattedMessage() {
147
- if(this.message) {
148
- const regex = /(\n|\r|&nbsp;)/g
149
- if(regex.test(this.message)) return this.message.replace(regex, "<br>")
158
+ if (this.message) {
159
+ const regex = /(\n|\r|&nbsp;)/g;
160
+ if (regex.test(this.message)) return this.message.replace(regex, "<br>");
150
161
  }
151
- return this.message
162
+ return this.message;
152
163
  },
153
164
  currentIcon() {
154
- return this.origin === "outros" ? ['fas', 'user'] : ['fas', 'headset']
165
+ return this.origin === "outros" ? ["fas", "user"] : ["fas", "headset"];
155
166
  },
156
167
  currentClasses() {
157
- return `${this.origin === "outros" ? "card-cli" : "card-ope"} ${this.newMessage ? "newMessage" : ""}`
168
+ return `${this.origin === "outros" ? "card-cli" : "card-ope"} ${
169
+ this.newMessage ? "newMessage" : ""
170
+ }`;
158
171
  },
159
172
  chipInfosClasses() {
160
- if(!this.chipInfos || !this.chipInfos.cod) return ""
161
- const { cod } = this.chipInfos
162
- switch(cod) {
173
+ if (!this.chipInfos || !this.chipInfos.cod) return "";
174
+ const { cod } = this.chipInfos;
175
+ switch (cod) {
163
176
  case 9:
164
177
  case "9":
165
178
  case 8:
166
179
  case "8":
167
- return "red"
180
+ return "red";
168
181
  case 3:
169
182
  case "3":
170
183
  case 6:
171
184
  case "6":
172
- return "yellow"
185
+ return "yellow";
173
186
  default:
174
- return ""
187
+ return "";
175
188
  }
176
189
  },
177
- resizeHeaderCard(){
178
- if(this.resizeCard){
179
- this.styleCard = "flex-direction: column;"
190
+ resizeHeaderCard() {
191
+ if (this.resizeCard) {
192
+ this.styleCard = "flex-direction: column;";
193
+ } else {
194
+ this.styleCard = "flex-direction: row;";
180
195
  }
181
- else {
182
- this.styleCard = "flex-direction: row;"
183
- }
184
- return this.styleCard
196
+ return this.styleCard;
185
197
  },
186
198
  },
187
199
  methods: {
188
200
  formataTimezoneData(timezoneData) {
189
- return formataTimezoneData(timezoneData)
201
+ return formataTimezoneData(timezoneData);
190
202
  },
191
203
  returnFormataDataHora(dataHora) {
192
- return formataDataHora(dataHora, false, false, this.dictionary)
204
+ return formataDataHora(dataHora, false, false, this.dictionary);
193
205
  },
194
206
  cardExpand() {
195
- this.$emit("card-expand", this.$props)
196
- }
197
- }
198
- }
207
+ this.$emit("card-expand", this.$props);
208
+ },
209
+ },
210
+ };
199
211
  </script>
200
212
 
201
213
  <style>
@@ -207,14 +219,16 @@ export default {
207
219
  .fade-leave-to {
208
220
  opacity: 0;
209
221
  }
210
-
211
- .card-cli, .card-ope {
222
+
223
+ .card-cli,
224
+ .card-ope {
212
225
  display: flex;
213
226
  width: 95%;
214
227
  margin: 5px 0;
215
228
  position: relative;
216
229
  }
217
- .card-cli.newMessage, .card-ope.newMessage {
230
+ .card-cli.newMessage,
231
+ .card-ope.newMessage {
218
232
  margin-top: 30px;
219
233
  }
220
234
 
@@ -226,14 +240,13 @@ export default {
226
240
  justify-content: center;
227
241
  align-items: center;
228
242
  margin: 2.5px 0;
229
- background-color: lighten(#FFF249, 15)
243
+ background-color: lighten(#fff249, 15);
230
244
  }
231
245
 
232
246
  .card-cli .card {
233
- border-left: 3px solid #90B823;
247
+ border-left: 3px solid #90b823;
234
248
  }
235
249
 
236
-
237
250
  .card-ope {
238
251
  align-self: flex-end;
239
252
  background-color: lighten(#007535, 72);
@@ -243,7 +256,7 @@ export default {
243
256
  }
244
257
 
245
258
  .card {
246
- background-color: rgba(255, 255, 255, .9);
259
+ background-color: rgba(255, 255, 255, 0.9);
247
260
  overflow: hidden;
248
261
  width: 100%;
249
262
  padding: 2.5px 5px;
@@ -260,7 +273,7 @@ export default {
260
273
  justify-content: space-between;
261
274
  }
262
275
  .card-header svg {
263
- font-size: 1rem
276
+ font-size: 16px;
264
277
  }
265
278
 
266
279
  .card-author {
@@ -280,7 +293,7 @@ export default {
280
293
  display: flex;
281
294
  flex-direction: column;
282
295
  margin-right: 10px;
283
- font-size: .9rem
296
+ font-size: 14.4px;
284
297
  }
285
298
 
286
299
  .card-date {
@@ -304,7 +317,7 @@ export default {
304
317
  align-items: center;
305
318
  margin: 2.5px;
306
319
  cursor: pointer;
307
- opacity: .8;
320
+ opacity: 0.8;
308
321
  transition: opacity 150ms;
309
322
  }
310
323
  .card-expand:hover {
@@ -319,15 +332,14 @@ export default {
319
332
  min-height: 25px;
320
333
  }
321
334
 
322
-
323
335
  .card-chip {
324
- font-size: .8rem;
336
+ font-size: 12.8px;
325
337
  width: fit-content;
326
338
  border-radius: 15px;
327
339
  transition: all 150ms ease-in-out;
328
340
  padding: 2.5px 7px;
329
341
  color: rgb(31, 105, 193);
330
- background-color: rgba(207, 216, 244, .6);
342
+ background-color: rgba(207, 216, 244, 0.6);
331
343
  margin-bottom: 5px;
332
344
  }
333
345
  .card-chip:hover {
@@ -335,24 +347,24 @@ export default {
335
347
  }
336
348
  .card-chip.orange {
337
349
  color: #e14924;
338
- background-color: rgba(228, 92, 58, .15);
350
+ background-color: rgba(228, 92, 58, 0.15);
339
351
  }
340
352
  .card-chip.orange:hover {
341
- background-color: rgba(228, 92, 58, .2);
353
+ background-color: rgba(228, 92, 58, 0.2);
342
354
  }
343
355
  .card-chip.yellow {
344
356
  color: #f4a304;
345
- background-color: rgba(252, 191, 73, .15);
357
+ background-color: rgba(252, 191, 73, 0.15);
346
358
  }
347
359
  .card-chip.yellow:hover {
348
- background-color: rgba(252, 191, 73, .2);
360
+ background-color: rgba(252, 191, 73, 0.2);
349
361
  }
350
362
  .card-chip.red {
351
363
  color: rgb(231, 76, 60);
352
- background-color: rgba(231, 76, 60, .2);
364
+ background-color: rgba(231, 76, 60, 0.2);
353
365
  }
354
366
  .card-chip.red:hover {
355
- background-color: rgba(231, 76, 60, .25);
367
+ background-color: rgba(231, 76, 60, 0.25);
356
368
  }
357
369
 
358
370
  .card-file {
@@ -369,45 +381,49 @@ export default {
369
381
  position: absolute;
370
382
  right: 30px;
371
383
  bottom: 5px;
372
- font-size: .6rem;
384
+ font-size: 9.6px;
373
385
  color: #67a332;
374
- width: .9rem;
375
- height: .9rem;
386
+ width: 14.4px;
387
+ height: 14.4px;
376
388
  display: flex;
377
389
  justify-content: center;
378
390
  align-items: center;
379
391
  border-radius: 50%;
380
- background-color: #FFF;
392
+ background-color: #fff;
381
393
  }
382
394
  .card-reply svg {
383
395
  margin-top: -1px;
384
396
  margin-right: -1px;
385
- }
397
+ }
386
398
 
387
- .card-check{
399
+ .card-check {
388
400
  position: absolute;
389
401
  bottom: 5px;
390
402
  right: 5px;
391
403
  cursor: pointer;
392
- font-size: 0.7rem;
404
+ font-size: 11.2px;
393
405
  }
394
406
  .card-check svg {
395
- font-size: 0.8rem;
407
+ font-size: 12.8px;
396
408
  }
397
- .card-check.seen, .card-check.seen svg{
398
- color: #006DAA
409
+ .card-check.seen,
410
+ .card-check.seen svg {
411
+ color: #006daa;
399
412
  }
400
- .card-check.green, .card-check.green svg{
401
- color: #4f772d
413
+ .card-check.green,
414
+ .card-check.green svg {
415
+ color: #4f772d;
402
416
  }
403
- .card-check.red, .card-check.red svg{
404
- color: #ba181b
417
+ .card-check.red,
418
+ .card-check.red svg {
419
+ color: #ba181b;
405
420
  }
406
- .card-check.gray, .card-check.gray svg{
407
- color: #999
421
+ .card-check.gray,
422
+ .card-check.gray svg {
423
+ color: #999;
408
424
  }
409
- .card-check.black, .card-check.black svg{
410
- color: #666
425
+ .card-check.black,
426
+ .card-check.black svg {
427
+ color: #666;
411
428
  }
412
-
413
- </style>
429
+ </style>
@@ -1,5 +1,9 @@
1
1
  <template>
2
- <div class="text-footer-actions--btn" @click="$emit('click-trigger')" :title="dictionary.msg_baixar_todos_anexos">
2
+ <div
3
+ class="text-footer-actions--btn"
4
+ @click="$emit('click-trigger')"
5
+ :title="dictionary.msg_baixar_todos_anexos"
6
+ >
3
7
  <span class="multiplos">
4
8
  <fa-icon :icon="['fas', 'download']" />
5
9
  <fa-icon :icon="['fas', 'paperclip']" class="small" />
@@ -8,15 +12,15 @@
8
12
  </template>
9
13
 
10
14
  <style scoped>
11
- .multiplos {
12
- display: flex;
13
- }
14
- .multiplos svg {
15
- font-size: .95rem
16
- }
17
- .multiplos svg.small {
18
- font-size: .7rem!important;
19
- }
15
+ .multiplos {
16
+ display: flex;
17
+ }
18
+ .multiplos svg {
19
+ font-size: 15.2px;
20
+ }
21
+ .multiplos svg.small {
22
+ font-size: 11.2px !important;
23
+ }
20
24
  </style>
21
25
 
22
26
  <script>
@@ -25,8 +29,8 @@ export default {
25
29
  dictionary: {
26
30
  type: Object,
27
31
  default: {},
28
- required: false
29
- }
30
- }
31
- }
32
+ required: false,
33
+ },
34
+ },
35
+ };
32
36
  </script>
@@ -125,7 +125,7 @@ export default {
125
125
  position: relative;
126
126
  }
127
127
  .emoji-text-container .emoji-text-btn {
128
- font-size: 1.2rem;
128
+ font-size: 19.2px;
129
129
  cursor: pointer;
130
130
  }
131
131
  </style>