@burh/nuxt-core 1.0.293 → 1.0.295
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/assets/sass/burh-ds/atoms/_buttons.scss +11 -8
- package/assets/sass/burh-ds/variables/_colors.scss +14 -14
- package/assets/sass/custom/_variables.scss +684 -742
- package/components/argon-core/BaseProgress.vue +1 -1
- package/components/argon-core/Charts/config.js +1 -1
- package/components/burh-ds/Collapse/DefaultCollapse.vue +1 -1
- package/components/burh-ds/Curriculum/UserCurriculum/UserCvMiddle.vue +21 -3
- package/components/burh-ds/Headings/AppHeader.vue +2 -2
- package/components/burh-ds/Lists/VagasSimple.vue +1 -1
- package/components/burh-ds/Loadings/LoadingFullPage.vue +1 -1
- package/components/burh-ds/Loads/LoadingBar.vue +1 -1
- package/components/burh-ds/Modals/MobileModal.vue +1 -1
- package/components/layouts/burh-ds/footer/ProductsFooter.vue +1 -1
- package/package.json +1 -1
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
<h5 class="font-weight-bold mt-4 ml-3">Contatos</h5>
|
|
62
62
|
<div class="ml-3 info-text">
|
|
63
63
|
<span v-if="userData.email != null">Email: {{userData.email}}</span><br>
|
|
64
|
-
<span v-if="userData.user_contact.cellphone != null">Celular: {{userData.user_contact.cellphone}}</span><br>
|
|
65
|
-
<span v-if="userData.user_contact.phone != null">Telefone: {{userData.user_contact.phone}}</span>
|
|
64
|
+
<span v-if="userData.user_contact.cellphone != null && userData.user_contact.cellphone.length > 1 ">Celular: {{phoneMask(userData.user_contact.cellphone)}}</span><br>
|
|
65
|
+
<span v-if="userData.user_contact.phone != null && userData.user_contact.phone.length > 1">Telefone: {{phoneMask(userData.user_contact.phone)}}</span>
|
|
66
66
|
</div>
|
|
67
67
|
|
|
68
68
|
<!-- EDUCAÇÃO -->
|
|
@@ -187,9 +187,11 @@
|
|
|
187
187
|
|
|
188
188
|
<script>
|
|
189
189
|
import getPrefixes from '~/util/getPrefixes.js';
|
|
190
|
+
import { mask } from 'vue-the-mask';
|
|
190
191
|
|
|
191
192
|
export default {
|
|
192
193
|
name: 'user-cv-middle',
|
|
194
|
+
directives: { mask },
|
|
193
195
|
props: {
|
|
194
196
|
userData: Object,
|
|
195
197
|
tools: {
|
|
@@ -253,6 +255,22 @@ export default {
|
|
|
253
255
|
}
|
|
254
256
|
},
|
|
255
257
|
methods: {
|
|
258
|
+
phoneMask(v) {
|
|
259
|
+
|
|
260
|
+
let r = v.replace(/\D/g, '');
|
|
261
|
+
r = r.replace(/^0/, '');
|
|
262
|
+
|
|
263
|
+
if (r.length > 11) {
|
|
264
|
+
r = r.replace(/^(\d\d)(\d{5})(\d{4}).*/, '($1) $2-$3');
|
|
265
|
+
} else if (r.length > 7) {
|
|
266
|
+
r = r.replace(/^(\d\d)(\d{5})(\d{0,4}).*/, '($1) $2-$3');
|
|
267
|
+
} else if (r.length > 2) {
|
|
268
|
+
r = r.replace(/^(\d\d)(\d{0,5})/, '($1) $2');
|
|
269
|
+
} else if (v.trim() !== '') {
|
|
270
|
+
r = r.replace(/^(\d*)/, '($1');
|
|
271
|
+
}
|
|
272
|
+
return r;
|
|
273
|
+
},
|
|
256
274
|
highlightText(search, text) {
|
|
257
275
|
if (search.length < 2) return text;
|
|
258
276
|
|
|
@@ -435,7 +453,7 @@ export default {
|
|
|
435
453
|
border: none;
|
|
436
454
|
margin-top: 15px;
|
|
437
455
|
|
|
438
|
-
background: #
|
|
456
|
+
background: #5865F2;
|
|
439
457
|
border-radius: 16px;
|
|
440
458
|
color: #fff;
|
|
441
459
|
|
|
@@ -102,7 +102,7 @@ export default {
|
|
|
102
102
|
font-weight: 400;
|
|
103
103
|
text-align: center;
|
|
104
104
|
background-color: rgba(29, 161, 241, 0.1);
|
|
105
|
-
color: #
|
|
105
|
+
color: #5865F2;
|
|
106
106
|
}
|
|
107
107
|
</style>
|
|
108
108
|
<style lang="scss">
|
|
@@ -140,7 +140,7 @@ export default {
|
|
|
140
140
|
border: 2px solid transparent;
|
|
141
141
|
transition: border-color 0.5s;
|
|
142
142
|
&--active {
|
|
143
|
-
border-color: #
|
|
143
|
+
border-color: #5865F2;
|
|
144
144
|
z-index: 10;
|
|
145
145
|
}
|
|
146
146
|
}
|