@burh/nuxt-core 1.0.360 → 1.0.362

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.
@@ -0,0 +1,375 @@
1
+ <template>
2
+ <div class="bg-white content-right tabs ">
3
+ <el-tabs
4
+ :class="active"
5
+ class="mt-3 handle-icon-color"
6
+ v-model="active"
7
+ >
8
+ <el-tab-pane name="reports" class="ml-2">
9
+ <span class="tab__icon-pane" slot="label">
10
+ <img
11
+ class="img__icon-pane img__icon--reports"
12
+ src="../../../../assets/images/icons/icon5.svg"
13
+ />
14
+ </span>
15
+
16
+ <p class="notes-title mb-0">Laudo do Candidato</p>
17
+ <div class="line mb-3"></div>
18
+
19
+ <p v-show="!userReportData.annex" class="history-text">
20
+ Nenhum arquivo vinculado a este usuário.
21
+ </p>
22
+
23
+ <div class="archive-content" v-if="userReportData.annex">
24
+ <div @click="openArchive(userReportData.annex)" class="archive-container">
25
+ <div>
26
+ <img class="archive-img" src="../../../../assets/images/icons/icon6.svg" >
27
+ </div>
28
+ <div class="archive-name">
29
+ <span>{{ userReportData.annex.name }}</span>
30
+ </div>
31
+ </div>
32
+ </div>
33
+
34
+ <p class="notes-title mb-0">Comentários Recrutador</p>
35
+ <div class="line mb-3"></div>
36
+
37
+ <p v-show="!userReportData.annex" class="history-text">
38
+ Nenhum comentário vinculado a este usuário.
39
+ </p>
40
+
41
+ <div v-if="userReportData.comment">
42
+ <div class="notes-baloon fullsize">
43
+ <div class="notes-text mx-3 pt-1">
44
+ <p class="mt-3">{{ userReportData.comment.comment }}</p>
45
+ </div>
46
+ <div
47
+ class="d-flex justify-content-end align-items-center mr-3"
48
+ >
49
+ <p class="notes-date">
50
+ {{ userReportData.comment.created_at | convertDate }}
51
+ </p>
52
+ </div>
53
+ </div>
54
+ <div class="notes-owner d-flex mt-2">
55
+ <img
56
+ v-if="userReportData.comment.user.urlAvatar"
57
+ :src="userReportData.comment.user.urlAvatar"
58
+ :alt="userReportData.comment.user.name"
59
+ />
60
+ <div
61
+ v-else
62
+ class="notes-avatar"
63
+ ></div>
64
+ <p class="ml-1">
65
+ {{ userReportData.comment.user.name }}
66
+ </p>
67
+ </div>
68
+ </div>
69
+ </el-tab-pane>
70
+ </el-tabs>
71
+ </div>
72
+ </template>
73
+
74
+ <script>
75
+ import { Tabs, TabPane } from 'element-ui';
76
+
77
+ export default {
78
+ name: 'user-cv-right-side',
79
+ filters: {
80
+ convertDate(data) {
81
+ if (typeof data !== 'string') {
82
+ data = '2020-01-01 12:00:00';
83
+ }
84
+ let d = new Date(data);
85
+ let options = { hour: '2-digit', minute: '2-digit' };
86
+ return d.toLocaleDateString('pt-BR', options);
87
+ }
88
+ },
89
+ components: {
90
+ [Tabs.name]: Tabs,
91
+ [TabPane.name]: TabPane,
92
+ },
93
+ data(){
94
+ return {
95
+ newNote: '',
96
+ newReportNote: '',
97
+ active: 'reports',
98
+ userReportData: [],
99
+ };
100
+ },
101
+ props: {
102
+ userData: Object,
103
+ userFolderId: String || Number,
104
+ },
105
+ mounted() {
106
+ this.getUserFolderData();
107
+ },
108
+ methods: {
109
+ async getUserFolderData() {
110
+ const apiUrl = `${process.env.baseApiUrlV2}/company/buffer/folder/user/${this.userFolderId}`;
111
+
112
+ const data = await this.$axios(apiUrl)
113
+ .then(res => res.data)
114
+ .catch(() => {});
115
+
116
+ if (!data) return;
117
+
118
+ this.mountUserReport(data.data);
119
+ },
120
+
121
+ mountUserReport(userData) {
122
+ const annex = userData.annex[0] || undefined;
123
+ const comment = userData.comments[0] || undefined;
124
+
125
+ this.userReportData = {
126
+ annex,
127
+ comment
128
+ };
129
+ }
130
+ },
131
+ };
132
+ </script>
133
+ <style>
134
+ .el-tabs__nav-wrap::after {
135
+ background: #fff !important;
136
+ }
137
+
138
+ .el-tabs__active-bar {
139
+ width: 30px !important;
140
+ height: 4px !important;
141
+ border-radius: 10px 10px 0px 0px;
142
+ }
143
+ </style>
144
+
145
+ <style lang="scss" scoped>
146
+ @import '@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss';
147
+
148
+ /deep/ .el-tab-pane {
149
+ height: 760px;
150
+ max-height: 760px;
151
+ overflow: hidden;
152
+ overflow-y: auto;
153
+ position: relative;
154
+
155
+ > .notes-title {
156
+ position: sticky;
157
+ position: -webkit-sticky;
158
+ top: 0;
159
+ background: white;
160
+ padding: 10px 0;
161
+ }
162
+
163
+ > .input-container {
164
+ position: sticky;
165
+ position: -webkit-sticky;
166
+ bottom: 0;
167
+ background: white;
168
+ > .input-icon {
169
+ cursor: pointer;
170
+ position: absolute;
171
+ top: 50%;
172
+ right: 30px;
173
+ transform: translateY(-50%);
174
+ color: #c8c8c8;
175
+ }
176
+ }
177
+
178
+ &::-webkit-scrollbar {
179
+ width: 8px;
180
+ }
181
+
182
+ &::-webkit-scrollbar-track {
183
+ background: #f5f5f5;
184
+ }
185
+
186
+ &::-webkit-scrollbar-thumb {
187
+ background: #e9e8e8;
188
+ border-radius: 10px;
189
+ }
190
+
191
+ .archive-content {
192
+ width: 95%;
193
+
194
+ p {
195
+ margin-bottom: 0;
196
+ font-size: 0.875rem;
197
+ padding: .3rem .6rem 0 .6rem;
198
+ }
199
+
200
+ .archive-container {
201
+ display: flex;
202
+ align-items: center;
203
+ padding: 0.5rem 0.5rem 0.438rem;
204
+ cursor: pointer;
205
+ user-select: none;
206
+
207
+ &:hover{
208
+ background-color: #f6f9fc;
209
+ border-radius: 5px;
210
+ }
211
+
212
+ .archive-img {
213
+ background-color: #f5f5f5;
214
+ border-radius: 6px;
215
+ padding: 7px;
216
+ }
217
+
218
+ .archive-name {
219
+ display: flex;
220
+ margin-left: .8rem;
221
+ width: 145%;
222
+ justify-content: space-between !important;
223
+
224
+ .archive-icon {
225
+ margin-left: 1.5rem;
226
+ }
227
+
228
+ p {
229
+ margin: 0;
230
+ padding: 0;
231
+ width: 13rem;
232
+ white-space: nowrap;
233
+ overflow: hidden;
234
+ text-overflow: ellipsis;
235
+ }
236
+ }
237
+
238
+ .upload-container {
239
+ position: sticky;
240
+ position: -webkit-sticky;
241
+ bottom: 0;
242
+ background: white;
243
+ width: 231px;
244
+ }
245
+ }
246
+ }
247
+
248
+ .archive-buttons {
249
+ display: flex;
250
+ margin-top: -1rem;
251
+ width: 95%;
252
+ }
253
+
254
+ .archive-remove {
255
+ width: 90%;
256
+ word-break: break-word;
257
+ }
258
+ }
259
+
260
+ /deep/ .el-tabs__nav-scroll {
261
+ display: flex;
262
+ justify-content: stretch;
263
+ align-items: flex-start;
264
+ }
265
+
266
+ /deep/ .el-tabs__item {
267
+ padding: 0 1.60rem !important;
268
+ }
269
+
270
+ /deep/ .el-tabs__nav {
271
+ width: 100% !important;
272
+ user-select: none;
273
+ }
274
+
275
+ @media (max-width: 1520px) {
276
+ /deep/ .el-tabs__item {
277
+ padding: 0 1.8rem !important;
278
+ }
279
+ }
280
+
281
+ .readmore {
282
+ overflow: hidden;
283
+ text-overflow: ellipsis;
284
+ display: -webkit-box;
285
+ -webkit-line-clamp: 3;
286
+ -webkit-box-orient: vertical;
287
+ }
288
+
289
+ .tab__icon-pane {
290
+ .img__icon-pane {
291
+ background-color: #f5f5f5 !important;
292
+ border-radius: 30%;
293
+ padding: 7px;
294
+ margin-bottom: 1rem;
295
+ }
296
+ }
297
+
298
+ .content-right {
299
+ width: 25%;
300
+ }
301
+
302
+ .notes-title {
303
+ font-size: 14px;
304
+ color: #1d364b;
305
+ font-weight: bold;
306
+ background-color: white;
307
+ z-index: 500;
308
+ }
309
+
310
+ .notes-baloon {
311
+ width: 231px;
312
+ height: auto;
313
+
314
+ background: #eff5fd;
315
+ border-radius: 10px 10px 10px 0px;
316
+
317
+ &.fullsize {
318
+ width: 80%!important;
319
+ min-width: 280px;
320
+ }
321
+ }
322
+
323
+ .notes-text {
324
+ p {
325
+ font-size: 13px;
326
+ color: #62778c;
327
+ }
328
+ }
329
+
330
+ .notes-date {
331
+ font-size: 11px;
332
+ text-align: right;
333
+
334
+ color: #8da2b5;
335
+ top: calc(50% - 17px / 2 - 444.5px);
336
+ }
337
+
338
+ .notes-owner {
339
+ img {
340
+ width: 23px;
341
+ height: 23px;
342
+ border-radius: 50%;
343
+ }
344
+
345
+ .notes-avatar {
346
+ width: 23px;
347
+ height: 23px;
348
+ border-radius: 50%;
349
+ background-color: #adb5bd;
350
+ }
351
+
352
+ p {
353
+ font-size: 13px;
354
+ font-weight: 600;
355
+ text-transform: uppercase;
356
+
357
+ color: #62778c;
358
+ }
359
+ }
360
+
361
+ .line {
362
+ width: 221px;
363
+ height: 0px;
364
+
365
+ border: 1px solid #ececec5c;
366
+ }
367
+
368
+ .history-text {
369
+ font-size: 13px;
370
+ color: #62778c;
371
+ }
372
+ .cursor-disabled {
373
+ cursor: no-drop;
374
+ }
375
+ </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.360",
3
+ "version": "1.0.362",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {