@burh/nuxt-core 1.0.284 → 1.0.286

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.
@@ -178,16 +178,15 @@
178
178
  <div class="teste-block">
179
179
  <span
180
180
  class="font-weight-normal mt-2 d-block"
181
- @click="$emit('open-contact', isLocked)"
182
- >Data de atualização:
183
- <template v-if="isLocked">
181
+ v-if="!isLocked"
182
+ >Data de atualização: {{$moment(userData.updated_at).format('DD/MM/YYYY H:mm')}}
183
+ <!-- <template v-if="isLocked" @click="$emit('open-contact', isLocked)">
184
184
  <i class="fa fa-lock"></i>
185
185
  </template>
186
186
  <template v-else>
187
187
  {{$moment(userData.updated_at).format('DD/MM/YYYY H:mm')}}
188
- </template>
188
+ </template> -->
189
189
  </span>
190
- <!-- isLocked ? (<i class="fa fa-lock"></i>) : $moment(userData.updated_at).format('DD/MM/YYYY H:mm') -->
191
190
  </div>
192
191
  </div>
193
192
 
@@ -1,406 +1,406 @@
1
1
  <template>
2
- <div class="bg-white content-middle">
3
- <!-- FERRAMENTAS -->
4
- <div class="tools mt-3">
5
- <button
6
- @click="
7
- isLocked && tool.event !== 'share'
8
- ? $emit('open-contact')
9
- : $emit(tool.event)
10
- "
11
- class="ml-3 burh-color"
12
- :class="{
13
- 'disabled-button': isLocked && tool.event !== 'share'
14
- }"
15
- v-for="(tool, index) in tools"
16
- :key="index"
17
- >
18
- <i
19
- v-show="isLocked && tool.event !== 'share'"
20
- class="fas fa-lock mr-1"
21
- ></i>
22
- {{ tool.name }}
23
- </button>
24
- </div>
25
-
26
- <!-- SOBRE -->
27
- <div class="about content-block mt-5 ml-3 mr-3">
28
- <h5 class="font-weight-bold">Sobre</h5>
29
- <p
30
- id="USER_ABOUT"
31
- class="mb-0"
32
- :class="
33
- !wordIsLesserThan(
34
- userData.user_complementary_information.about
35
- ) && 'readmore'
36
- "
37
- v-html="
38
- highlightText(
39
- search,
40
- userData.user_complementary_information.about
41
- )
42
- "
43
- ></p>
44
- <a
45
- href="#"
46
- aria-label="expandir conteudo"
47
- v-show="
48
- userData.user_complementary_information.about &&
49
- !wordIsLesserThan(
50
- userData.user_complementary_information.about
51
- )
52
- "
53
- @click.prevent.stop="toggleReadMore($event, 'USER_ABOUT')"
54
- >Ler mais</a
55
- >
56
-
57
- <p v-show="!userData.user_complementary_information.about" class="">
58
- Nenhuma informação adicionada
59
- </p>
60
- </div>
61
-
62
- <!-- EDUCAÇÃO -->
63
- <h5 class="font-weight-bold mt-4 ml-3">Educação</h5>
64
- <div class="no-info ml-3" v-show="userData.user_education.length === 0">
65
- <p>
66
- Nenhuma informação adicionada
67
- </p>
68
- </div>
69
- <div
70
- class="education ml-3"
71
- v-show="userData.user_education.length > 0"
72
- v-for="(edu, index) in userData.user_education"
73
- :key="index"
74
- >
75
- <p
76
- class="sub-title"
77
- v-html="highlightText(search, edu.formation)"
78
- ></p>
79
- <p class="info-text">{{ edu.institution }}</p>
80
- <span class="info-text">
81
- {{ edu.start_month }}/{{ edu.start_year }} -
82
- {{ treatEndDate(edu.end_month, edu.end_year) }}
83
- {{ getTime(false, edu) }}
84
- {{
85
- edu.user_education_period
86
- ? '-' + edu.user_education_period.name
87
- : ''
88
- }} </span
89
- ><br />
90
- <span
91
- class="info-text"
92
- v-html="
93
- highlightText(
94
- search,
95
- edu.formation_level_id | formationLevel
96
- )
97
- "
98
- ></span>
99
- </div>
100
-
101
- <!-- EXPERIÊNCIAS -->
102
- <h5 class="font-weight-bold mt-4 ml-3">Experiência</h5>
103
- <div
104
- class="no-info ml-3"
105
- v-show="userData.user_experience.length === 0"
106
- >
107
- <p>
108
- Nenhuma informação adicionada
109
- </p>
110
- </div>
111
- <div
112
- v-show="userData.user_experience.length > 0"
113
- class="experience ml-3 mr-3"
114
- v-for="(exp, index) in userData.user_experience"
115
- :key="`experience-${index}`"
116
- >
117
- <p
118
- class="sub-title"
119
- v-html="highlightText(search, exp.job_title)"
120
- ></p>
121
- <p
122
- class="info-text"
123
- v-html="
124
- highlightText(search, `${exp.company}, ${exp.location}`)
125
- "
126
- ></p>
127
- <span class="info-text">
128
- {{ exp.start_month }}/{{ exp.start_year }} -
129
- {{ treatEndDate(exp.end_month, exp.end_year) }}
130
- {{ getTime(true, exp) }}
131
- </span>
132
-
133
- <p
134
- :id="`USER_EXPERIENCE-${index}`"
135
- class="description mt-4 mb-0"
136
- :class="!wordIsLesserThan(exp.description) && 'readmore'"
137
- v-html="highlightText(search, exp.description)"
138
- ></p>
139
-
140
- <a
141
- href="#"
142
- aria-label="expandir conteudo"
143
- v-show="!wordIsLesserThan(exp.description)"
144
- @click.prevent.stop="
145
- toggleReadMore($event, `USER_EXPERIENCE-${index}`)
146
- "
147
- >Ler mais</a
148
- ><br /><br />
149
- </div>
150
-
151
- <!-- CURSOS -->
152
- <h5 class="font-weight-bold mt-1 ml-3">Cursos Complementares</h5>
153
- <div class="no-info ml-3" v-show="userData.user_course.length === 0">
154
- <p>
155
- Nenhuma informação adicionada
156
- </p>
157
- </div>
158
- <div
159
- v-show="userData.user_course.length > 0"
160
- class="courses ml-3"
161
- v-for="(cou, index) in userData.user_course"
162
- :key="`course-${index}`"
163
- >
164
- <p
165
- class="sub-title"
166
- v-html="highlightText(search, cou.institution)"
167
- ></p>
168
- <p
169
- class="info-text mb-3"
170
- v-html="
171
- highlightText(
172
- search,
173
- `${cou.name} - ${cou.end_year || ''} ${getTime(
174
- false,
175
- cou
176
- )}`
177
- )
178
- "
179
- >
180
- {{ cou.name }} - {{ cou.end_year }}
181
- {{ getTime(false, cou) }}
182
- </p>
183
- </div>
184
- </div>
2
+ <div class="bg-white content-middle">
3
+ <!-- FERRAMENTAS -->
4
+ <div class="tools mt-3">
5
+ <button
6
+ @click="
7
+ isLocked && tool.event !== 'share'
8
+ ? $emit('open-contact')
9
+ : $emit(tool.event)
10
+ "
11
+ class="ml-3 burh-color"
12
+ :class="{
13
+ 'disabled-button': isLocked && tool.event !== 'share'
14
+ }"
15
+ v-for="(tool, index) in tools"
16
+ :key="index"
17
+ >
18
+ <i
19
+ v-show="isLocked && tool.event !== 'share'"
20
+ class="fas fa-lock mr-1"
21
+ ></i>
22
+ {{ tool.name }}
23
+ </button>
24
+ </div>
25
+
26
+ <!-- SOBRE -->
27
+ <div class="about content-block mt-5 ml-3 mr-3">
28
+ <h5 class="font-weight-bold">Sobre</h5>
29
+ <p
30
+ id="USER_ABOUT"
31
+ class="mb-0"
32
+ :class="
33
+ !wordIsLesserThan(
34
+ userData.user_complementary_information.about
35
+ ) && 'readmore'
36
+ "
37
+ v-html="
38
+ highlightText(
39
+ search,
40
+ userData.user_complementary_information.about
41
+ )
42
+ "
43
+ ></p>
44
+ <a
45
+ href="#"
46
+ aria-label="expandir conteudo"
47
+ v-show="
48
+ userData.user_complementary_information.about &&
49
+ !wordIsLesserThan(
50
+ userData.user_complementary_information.about
51
+ )
52
+ "
53
+ @click.prevent.stop="toggleReadMore($event, 'USER_ABOUT')"
54
+ >Ler mais</a
55
+ >
56
+
57
+ <p v-show="!userData.user_complementary_information.about" class="">
58
+ Nenhuma informação adicionada
59
+ </p>
60
+ </div>
61
+
62
+ <!-- EDUCAÇÃO -->
63
+ <h5 class="font-weight-bold mt-4 ml-3">Educação</h5>
64
+ <div class="no-info ml-3" v-show="userData.user_education.length === 0">
65
+ <p>
66
+ Nenhuma informação adicionada
67
+ </p>
68
+ </div>
69
+ <div
70
+ class="education ml-3"
71
+ v-show="userData.user_education.length > 0"
72
+ v-for="(edu, index) in userData.user_education"
73
+ :key="index"
74
+ >
75
+ <p
76
+ class="sub-title"
77
+ v-html="highlightText(search, edu.formation)"
78
+ ></p>
79
+ <p class="info-text">{{ edu.institution }}</p>
80
+ <span class="info-text">
81
+ {{ edu.start_month }}/{{ edu.start_year }} -
82
+ {{ treatEndDate(edu.end_month, edu.end_year) }}
83
+ {{ getTime(false, edu) }}
84
+ {{
85
+ edu.user_education_period
86
+ ? '-' + edu.user_education_period.name
87
+ : ''
88
+ }} </span
89
+ ><br />
90
+ <span
91
+ class="info-text"
92
+ v-html="
93
+ highlightText(
94
+ search,
95
+ edu.formation_level_id | formationLevel
96
+ )
97
+ "
98
+ ></span>
99
+ </div>
100
+
101
+ <!-- EXPERIÊNCIAS -->
102
+ <h5 class="font-weight-bold mt-4 ml-3">Experiência</h5>
103
+ <div
104
+ class="no-info ml-3"
105
+ v-show="userData.user_experience.length === 0"
106
+ >
107
+ <p>
108
+ Nenhuma informação adicionada
109
+ </p>
110
+ </div>
111
+ <div
112
+ v-show="userData.user_experience.length > 0"
113
+ class="experience ml-3 mr-3"
114
+ v-for="(exp, index) in userData.user_experience"
115
+ :key="`experience-${index}`"
116
+ >
117
+ <p
118
+ class="sub-title"
119
+ v-html="highlightText(search, exp.job_title)"
120
+ ></p>
121
+ <p
122
+ class="info-text"
123
+ v-html="
124
+ highlightText(search, `${exp.company}, ${exp.location}`)
125
+ "
126
+ ></p>
127
+ <span class="info-text">
128
+ {{ exp.start_month }}/{{ exp.start_year }} -
129
+ {{ treatEndDate(exp.end_month, exp.end_year) }}
130
+ {{ getTime(true, exp) }}
131
+ </span>
132
+
133
+ <p
134
+ :id="`USER_EXPERIENCE-${index}`"
135
+ class="description mt-4 mb-0"
136
+ :class="!wordIsLesserThan(exp.description) && 'readmore'"
137
+ v-html="highlightText(search, exp.description)"
138
+ ></p>
139
+
140
+ <a
141
+ href="#"
142
+ aria-label="expandir conteudo"
143
+ v-show="!wordIsLesserThan(exp.description)"
144
+ @click.prevent.stop="
145
+ toggleReadMore($event, `USER_EXPERIENCE-${index}`)
146
+ "
147
+ >Ler mais</a
148
+ ><br /><br />
149
+ </div>
150
+
151
+ <!-- CURSOS -->
152
+ <h5 class="font-weight-bold mt-1 ml-3">Cursos Complementares</h5>
153
+ <div class="no-info ml-3" v-show="userData.user_course.length === 0">
154
+ <p>
155
+ Nenhuma informação adicionada
156
+ </p>
157
+ </div>
158
+ <div
159
+ v-show="userData.user_course.length > 0"
160
+ class="courses ml-3"
161
+ v-for="(cou, index) in userData.user_course"
162
+ :key="`course-${index}`"
163
+ >
164
+ <p
165
+ class="sub-title"
166
+ v-html="highlightText(search, cou.institution)"
167
+ ></p>
168
+ <p
169
+ class="info-text mb-3"
170
+ v-html="
171
+ highlightText(
172
+ search,
173
+ `${cou.name} - ${cou.end_year || ''} ${getTime(
174
+ false,
175
+ cou
176
+ )}`
177
+ )
178
+ "
179
+ >
180
+ {{ cou.name }} - {{ cou.end_year }}
181
+ {{ getTime(false, cou) }}
182
+ </p>
183
+ </div>
184
+ </div>
185
185
  </template>
186
186
 
187
187
  <script>
188
188
  import getPrefixes from '~/util/getPrefixes.js';
189
189
 
190
190
  export default {
191
- name: 'user-cv-middle',
192
- props: {
193
- userData: Object,
194
- tools: {
195
- type: Array,
196
- default: () => []
197
- },
198
- search: {
199
- type: String,
200
- default: ''
201
- }
202
- },
203
- filters: {
204
- formationLevel(id) {
205
- const typeFormation = {
206
- 1: 'Ensino Médio',
207
- 2: 'Ensino Técnico',
208
- 3: 'Graduação',
209
- 4: 'Pós-Graduação',
210
- 5: 'Mestrado',
211
- 6: 'Doutorado'
212
- };
213
-
214
- return typeFormation[id] || '-';
215
- }
216
- },
217
- data() {
218
- return {
219
- isLocked: !this.companyHasProduct(
220
- this.$store.state.loja.showableProducts['INTERACAO_USUARIO']
221
- )
222
- };
223
- },
224
- mounted() {
225
- this.userData.user_experience = this.filterByDate(
226
- this.userData.user_experience,
227
- 'old'
228
- );
229
- this.userData.user_education = this.filterByDate(
230
- this.userData.user_education,
231
- 'old'
232
- );
233
- this.userData.user_course = this.filterByDate(
234
- this.userData.user_course,
235
- 'old'
236
- );
237
- },
238
- watch: {
239
- userData() {
240
- this.userData.user_experience = this.filterByDate(
241
- this.userData.user_experience,
242
- 'old'
243
- );
244
- this.userData.user_education = this.filterByDate(
245
- this.userData.user_education,
246
- 'old'
247
- );
248
- this.userData.user_course = this.filterByDate(
249
- this.userData.user_course,
250
- 'old'
251
- );
252
- }
253
- },
254
- methods: {
255
- highlightText(search, text) {
256
- if (search.length < 2) return text;
257
-
258
- const regex = new RegExp(search.toLowerCase(), 'gmi');
259
- return String(text || '').replace(
260
- regex,
261
- `<span class="search-highlight">${search}</span>`
262
- );
263
- },
264
- filterByDate(data, by = 'new') {
265
- let sortedArray = data.sort((a, b) => {
266
- a = [
267
- a.start_month,
268
- a.start_year,
269
- a.end_month || 12,
270
- a.end_year || 9999
271
- ];
272
-
273
- b = [
274
- b.start_month,
275
- b.start_year,
276
- b.end_month || 12,
277
- b.end_year || 9999
278
- ];
279
-
280
- // Primeiro filtro -> chaves: 0 e 1 -> Filtro por data de inicio
281
- // Segundo filtro -> chaves: 2 e 3 -> Filtro por data de termino (subir não concluídos para primeiros)
282
-
283
- let byStart;
284
- let byEnd;
285
-
286
- switch (by) {
287
- case 'old':
288
- byStart =
191
+ name: 'user-cv-middle',
192
+ props: {
193
+ userData: Object,
194
+ tools: {
195
+ type: Array,
196
+ default: () => []
197
+ },
198
+ search: {
199
+ type: String,
200
+ default: ''
201
+ }
202
+ },
203
+ filters: {
204
+ formationLevel(id) {
205
+ const typeFormation = {
206
+ 1: 'Ensino Médio',
207
+ 2: 'Ensino Técnico',
208
+ 3: 'Graduação',
209
+ 4: 'Pós-Graduação',
210
+ 5: 'Mestrado',
211
+ 6: 'Doutorado'
212
+ };
213
+
214
+ return typeFormation[id] || '-';
215
+ }
216
+ },
217
+ data() {
218
+ return {
219
+ isLocked: !this.companyHasProduct(
220
+ this.$store.state.loja.showableProducts['INTERACAO_USUARIO']
221
+ )
222
+ };
223
+ },
224
+ mounted() {
225
+ this.userData.user_experience = this.filterByDate(
226
+ this.userData.user_experience,
227
+ 'old'
228
+ );
229
+ this.userData.user_education = this.filterByDate(
230
+ this.userData.user_education,
231
+ 'old'
232
+ );
233
+ this.userData.user_course = this.filterByDate(
234
+ this.userData.user_course,
235
+ 'old'
236
+ );
237
+ },
238
+ watch: {
239
+ userData() {
240
+ this.userData.user_experience = this.filterByDate(
241
+ this.userData.user_experience,
242
+ 'old'
243
+ );
244
+ this.userData.user_education = this.filterByDate(
245
+ this.userData.user_education,
246
+ 'old'
247
+ );
248
+ this.userData.user_course = this.filterByDate(
249
+ this.userData.user_course,
250
+ 'old'
251
+ );
252
+ }
253
+ },
254
+ methods: {
255
+ highlightText(search, text) {
256
+ if (search.length < 2) return text;
257
+
258
+ const regex = new RegExp(search.toLowerCase(), 'gmi');
259
+ return String(text || '').replace(
260
+ regex,
261
+ `<span class="search-highlight">${search}</span>`
262
+ );
263
+ },
264
+ filterByDate(data, by = 'new') {
265
+ let sortedArray = data.sort((a, b) => {
266
+ a = [
267
+ a.start_month,
268
+ a.start_year,
269
+ a.end_month || 12,
270
+ a.end_year || 9999
271
+ ];
272
+
273
+ b = [
274
+ b.start_month,
275
+ b.start_year,
276
+ b.end_month || 12,
277
+ b.end_year || 9999
278
+ ];
279
+
280
+ // Primeiro filtro -> chaves: 0 e 1 -> Filtro por data de inicio
281
+ // Segundo filtro -> chaves: 2 e 3 -> Filtro por data de termino (subir não concluídos para primeiros)
282
+
283
+ let byStart;
284
+ let byEnd;
285
+
286
+ switch (by) {
287
+ case 'old':
288
+ byStart =
289
289
  new Date(a[1], a[0], 1).getTime() -
290
290
  new Date(b[1], b[0], 1).getTime();
291
- byEnd =
291
+ byEnd =
292
292
  new Date(b[3], b[2], 1).getTime() -
293
293
  new Date(a[3], a[2], 1).getTime();
294
- break;
294
+ break;
295
295
 
296
- default:
297
- byStart =
296
+ default:
297
+ byStart =
298
298
  new Date(b[1], b[0], 1).getTime() -
299
299
  new Date(a[1], a[0], 1).getTime();
300
- byEnd =
300
+ byEnd =
301
301
  new Date(b[3], b[2], 1).getTime() -
302
302
  new Date(a[3], a[2], 1).getTime();
303
- break;
304
- }
305
-
306
- return byEnd - byStart;
307
- });
308
-
309
- return sortedArray;
310
- },
311
- toggleReadMore(event, id) {
312
- const element = document.getElementById(id);
313
- element.classList.toggle('readmore');
314
- event.target.innerText == 'Ler mais'
315
- ? (event.target.innerText = 'Esconder')
316
- : (event.target.innerText = 'Ler mais');
317
- },
318
- getTime(
319
- isExperience,
320
- { start_year = null, end_year = null, start_month, end_month },
321
- textHappening = 'Cursando'
322
- ) {
323
- const isHappening = !end_month && !end_year;
324
-
325
- if (isHappening) {
326
- return isExperience === true ? 'Atualmente' : textHappening;
327
- }
328
-
329
- const dateInitial = this.$moment(
330
- ['1', start_month.toString(), start_year.toString()],
331
- 'DD/MM/YYYY'
332
- );
333
- const dateDone = this.$moment(
334
- ['1', end_month.toString(), end_year.toString()],
335
- 'DD/MM/YYYY'
336
- );
337
- const diffDuration = this.$moment.duration(
338
- dateDone.diff(dateInitial)
339
- );
340
- const years = diffDuration.years();
341
- const months = diffDuration.months();
342
-
343
- if (years) {
344
- return years > 1 ? `(${years} anos)` : `(${years} ano)`;
345
- }
346
-
347
- return months > 1
348
- ? `(${months} meses)`
349
- : months == 1
350
- ? `(${months} mês)`
351
- : '';
352
- },
353
- languageLevel(level) {
354
- switch (parseInt(level)) {
355
- case 1:
356
- return 'Iniciante';
357
- case 2:
358
- return 'Elementar';
359
- case 3:
360
- return 'Pré-intermediário';
361
- case 4:
362
- return 'Intermediário';
363
- case 5:
364
- return 'Intermediário Superior';
365
- case 6:
366
- return 'Avançado';
367
- case 7:
368
- return 'Fluente';
369
- default:
370
- return '';
371
- }
372
- },
373
- treatPhone(phone) {
374
- if (phone) {
375
- if (phone == '0' || phone.length < 9 || !phone) {
376
- return 'não cadastrado';
377
- }
378
- }
379
-
380
- return phone;
381
- },
382
- treatCellphone(cellphone) {
383
- if (cellphone) {
384
- if (cellphone == '0' || cellphone.length < 11 || !cellphone) {
385
- return 'não cadastrado';
386
- }
387
- }
388
-
389
- return cellphone;
390
- },
391
- handleGetPrefixes(name = '') {
392
- return getPrefixes(name);
393
- },
394
- treatEndDate(end_month, end_year) {
395
- if (end_month && end_year) {
396
- return `${end_month}/${end_year}`;
397
- }
398
- return '';
399
- },
400
- wordIsLesserThan(word, value = 300) {
401
- return word && word.length < value;
402
- }
403
- }
303
+ break;
304
+ }
305
+
306
+ return byEnd - byStart;
307
+ });
308
+
309
+ return sortedArray;
310
+ },
311
+ toggleReadMore(event, id) {
312
+ const element = document.getElementById(id);
313
+ element.classList.toggle('readmore');
314
+ event.target.innerText == 'Ler mais'
315
+ ? (event.target.innerText = 'Esconder')
316
+ : (event.target.innerText = 'Ler mais');
317
+ },
318
+ getTime(
319
+ isExperience,
320
+ { start_year = null, end_year = null, start_month, end_month },
321
+ textHappening = 'Cursando'
322
+ ) {
323
+ const isHappening = !end_month && !end_year;
324
+
325
+ if (isHappening) {
326
+ return isExperience === true ? 'Atualmente' : textHappening;
327
+ }
328
+
329
+ const dateInitial = this.$moment(
330
+ ['1', start_month.toString(), start_year.toString()],
331
+ 'DD/MM/YYYY'
332
+ );
333
+ const dateDone = this.$moment(
334
+ ['1', end_month.toString(), end_year.toString()],
335
+ 'DD/MM/YYYY'
336
+ );
337
+ const diffDuration = this.$moment.duration(
338
+ dateDone.diff(dateInitial)
339
+ );
340
+ const years = diffDuration.years();
341
+ const months = diffDuration.months();
342
+
343
+ if (years) {
344
+ return years > 1 ? `(${years} anos)` : `(${years} ano)`;
345
+ }
346
+
347
+ return months > 1
348
+ ? `(${months} meses)`
349
+ : months == 1
350
+ ? `(${months} mês)`
351
+ : '';
352
+ },
353
+ languageLevel(level) {
354
+ switch (parseInt(level)) {
355
+ case 1:
356
+ return 'Iniciante';
357
+ case 2:
358
+ return 'Elementar';
359
+ case 3:
360
+ return 'Pré-intermediário';
361
+ case 4:
362
+ return 'Intermediário';
363
+ case 5:
364
+ return 'Intermediário Superior';
365
+ case 6:
366
+ return 'Avançado';
367
+ case 7:
368
+ return 'Fluente';
369
+ default:
370
+ return '';
371
+ }
372
+ },
373
+ treatPhone(phone) {
374
+ if (phone) {
375
+ if (phone == '0' || phone.length < 9 || !phone) {
376
+ return 'não cadastrado';
377
+ }
378
+ }
379
+
380
+ return phone;
381
+ },
382
+ treatCellphone(cellphone) {
383
+ if (cellphone) {
384
+ if (cellphone == '0' || cellphone.length < 11 || !cellphone) {
385
+ return 'não cadastrado';
386
+ }
387
+ }
388
+
389
+ return cellphone;
390
+ },
391
+ handleGetPrefixes(name = '') {
392
+ return getPrefixes(name);
393
+ },
394
+ treatEndDate(end_month, end_year) {
395
+ if (end_month && end_year) {
396
+ return `${end_month}/${end_year}`;
397
+ }
398
+ return '';
399
+ },
400
+ wordIsLesserThan(word, value = 300) {
401
+ return word && word.length < value;
402
+ }
403
+ }
404
404
  };
405
405
  </script>
406
406
 
@@ -19,15 +19,15 @@
19
19
  </span>
20
20
 
21
21
  <div class="recruitment__card__info">
22
- <p class="recruitment__card__info__text">
22
+ <div class="recruitment__card__info__text">
23
23
  <skeleton-animate class="skeleton-mb" :width="120" :height="15" />
24
- </p>
25
- <p class="recruitment__card__info__text">
24
+ </div>
25
+ <div class="recruitment__card__info__text">
26
26
  <skeleton-animate class="skeleton-mb" :width="120" :height="15" />
27
- </p>
28
- <p class="recruitment__card__info__text">
29
- <skeleton-animate :width="120" :height="15" />
30
- </p>
27
+ </div>
28
+ <div class="recruitment__card__info__text">
29
+ <skeleton-animate class="skeleton-mb" :width="120" :height="15" />
30
+ </div>
31
31
  </div>
32
32
  </div>
33
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.284",
3
+ "version": "1.0.286",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {