@burh/nuxt-core 1.0.472 → 1.0.474
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/README.md +12 -12
- package/assets/images/icons/icon5.svg +3 -3
- package/assets/images/icons/icon6.svg +3 -3
- package/assets/sass/burh-ds/_global.scss +324 -324
- package/assets/sass/burh-ds/content/_interface-spa.scss +306 -306
- package/assets/sass/burh-ds/molecules/_modal.scss +5 -5
- package/components/argon-core/BaseDropdown.vue +114 -114
- package/components/argon-core/LoadingPanel.vue +26 -26
- package/components/burh-ds/Cards/CourseInfoCard.vue +0 -2
- package/components/burh-ds/Cards/FeatureBusinessCard.vue +74 -74
- package/components/burh-ds/Cards/PerformanceCard.vue +81 -81
- package/components/burh-ds/Curriculum/UserCurriculum/UserCvRightSide.vue +2 -1
- package/components/burh-ds/Inputs/SearchInput.vue +88 -88
- package/components/burh-ds/Modals/AddCustomerModal.vue +2 -1
- package/components/burh-ds/Modals/NewUserModal.vue +87 -87
- package/components/burh-ds/Modals/PlanModal.vue +10 -3
- package/components/burh-ds/Modals/SharedModal.vue +7 -7
- package/components/burh-ds/Skeleton/BaseCardUniversity.vue +79 -79
- package/components/burh-ds/Skeleton/BaseCardUser.vue +84 -84
- package/components/burh-ds/Skeleton/Cards.vue +86 -86
- package/components/burh-ds/Skeleton/SkeletonAnimate.vue +146 -146
- package/components/layouts/burh-ds/navbar/PublicNavbar.vue +168 -168
- package/nuxt.config.js +207 -207
- package/package.json +1 -1
- package/plugins/vClickOutside.js +4 -4
|
@@ -1,168 +1,168 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<base-nav
|
|
3
|
-
container-classes="container-fluid container-fluid--bu"
|
|
4
|
-
class="navbar-top border-bottom navbar-expand navbar-animated"
|
|
5
|
-
:class="{'bg-white navbar-light': type === 'default'}"
|
|
6
|
-
data-menu="fixed"
|
|
7
|
-
>
|
|
8
|
-
<div slot="brand" class="navbar-wrapper">
|
|
9
|
-
<nuxt-link class="navbar-brand d-flex" :to="goToPage">
|
|
10
|
-
<img :src="logoTipo || logoFull" class="navbar-brand-img navbar-brand-img--full" alt="BURH: Suas vagas">
|
|
11
|
-
<img :src="logoTipo || logoMini" class="navbar-brand-img navbar-brand-img--mini" alt="BURH: Suas vagas">
|
|
12
|
-
</nuxt-link>
|
|
13
|
-
</div>
|
|
14
|
-
|
|
15
|
-
<!-- Navbar links -->
|
|
16
|
-
<ul v-if="menuOptions != null" class="navbar-nav navbar-nav--menu align-items-center ml-md-auto">
|
|
17
|
-
<li class="nav-item">
|
|
18
|
-
<a class="btn btn-outline-primary btn-sm mb-0 mt-0 mr-4" href="#">
|
|
19
|
-
Entrar
|
|
20
|
-
</a>
|
|
21
|
-
</li>
|
|
22
|
-
<li class="nav-item">
|
|
23
|
-
<a class="btn btn-primary btn-sm mb-0 mt-0" href="#">
|
|
24
|
-
Cadastre-se
|
|
25
|
-
</a>
|
|
26
|
-
</li>
|
|
27
|
-
</ul>
|
|
28
|
-
<slot></slot>
|
|
29
|
-
</base-nav>
|
|
30
|
-
</template>
|
|
31
|
-
<script>
|
|
32
|
-
import { CollapseTransition } from 'vue2-transitions';
|
|
33
|
-
import BaseNav from '@burh/nuxt-core/components/argon-core/Navbar/BaseNav.vue';
|
|
34
|
-
import Modal from '@burh/nuxt-core/components/argon-core/Modal.vue';
|
|
35
|
-
|
|
36
|
-
export default {
|
|
37
|
-
name: 'public-navbar',
|
|
38
|
-
components: {
|
|
39
|
-
CollapseTransition,
|
|
40
|
-
BaseNav,
|
|
41
|
-
Modal
|
|
42
|
-
},
|
|
43
|
-
props: {
|
|
44
|
-
type: {
|
|
45
|
-
type: String,
|
|
46
|
-
default: 'default', // default|light
|
|
47
|
-
description: 'Look of the dashboard navbar. Default (Green) or light (gray)'
|
|
48
|
-
},
|
|
49
|
-
logoMini: {
|
|
50
|
-
type: String,
|
|
51
|
-
default: '/img/brand/burh-isotipo.svg',
|
|
52
|
-
description: 'Logo for scrolled navbar'
|
|
53
|
-
},
|
|
54
|
-
logoFull: {
|
|
55
|
-
type: String,
|
|
56
|
-
default: '/img/brand/burh-imagotipo.svg',
|
|
57
|
-
description: 'Logo for default navbar'
|
|
58
|
-
},
|
|
59
|
-
menuOptions: {
|
|
60
|
-
type: String,
|
|
61
|
-
default: null,
|
|
62
|
-
description: ''
|
|
63
|
-
},
|
|
64
|
-
redirectPage: {
|
|
65
|
-
type: String,
|
|
66
|
-
default: null
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
computed: {
|
|
70
|
-
routeName() {
|
|
71
|
-
const { name } = this.$route;
|
|
72
|
-
return this.capitalizeFirstLetter(name);
|
|
73
|
-
},
|
|
74
|
-
clazz: function() {
|
|
75
|
-
var clzz = 'control-form';
|
|
76
|
-
if (this.focusSearchControl == false) {
|
|
77
|
-
clzz += ' only-text';
|
|
78
|
-
}
|
|
79
|
-
return clzz;
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
data() {
|
|
83
|
-
return {
|
|
84
|
-
activeNotifications: false,
|
|
85
|
-
showMenu: false,
|
|
86
|
-
searchModalVisible: false,
|
|
87
|
-
searchQuery: '',
|
|
88
|
-
menuSearch: '',
|
|
89
|
-
focusSearchControl: false,
|
|
90
|
-
goToPage: '/',
|
|
91
|
-
logoTipo: null,
|
|
92
|
-
};
|
|
93
|
-
},
|
|
94
|
-
methods: {
|
|
95
|
-
capitalizeFirstLetter(string) {
|
|
96
|
-
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
97
|
-
},
|
|
98
|
-
toggleNotificationDropDown() {
|
|
99
|
-
this.activeNotifications = !this.activeNotifications;
|
|
100
|
-
},
|
|
101
|
-
closeDropDown() {
|
|
102
|
-
this.activeNotifications = false;
|
|
103
|
-
},
|
|
104
|
-
toggleSidebar() {
|
|
105
|
-
this.$sidebar.displaySidebar(!this.$sidebar.showSidebar);
|
|
106
|
-
},
|
|
107
|
-
hideSidebar() {
|
|
108
|
-
this.$sidebar.displaySidebar(false);
|
|
109
|
-
},
|
|
110
|
-
handleSCroll (event) {
|
|
111
|
-
let header = document.querySelector('[data-menu="fixed"]');
|
|
112
|
-
let page = document.querySelector('html');
|
|
113
|
-
let screenHeight = window.innerHeight;
|
|
114
|
-
if (window.scrollY > screenHeight && !header.className.includes('navbar-main--mini')) {
|
|
115
|
-
header.classList.add('navbar-main--mini');
|
|
116
|
-
//page.classList.add('menu-fixed');
|
|
117
|
-
} else if (window.scrollY < screenHeight) {
|
|
118
|
-
header.classList.remove('navbar-main--mini');
|
|
119
|
-
//page.classList.remove('menu-fixed');
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
onFocus: function(event) {
|
|
124
|
-
event.target.select();
|
|
125
|
-
this.focusSearchControl = true;
|
|
126
|
-
},
|
|
127
|
-
onBlur: function(event) {
|
|
128
|
-
this.focusSearchControl = false;
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
mounted () {
|
|
132
|
-
this.$bus.$on('change-logo', ({ logo, redirectTo }) => {
|
|
133
|
-
this.goToPage = redirectTo;
|
|
134
|
-
this.logoTipo = logo;
|
|
135
|
-
});
|
|
136
|
-
window.addEventListener('scroll', this.handleSCroll);
|
|
137
|
-
let header = document.querySelector('[data-menu="fixed"]');
|
|
138
|
-
let page = document.querySelector('html');
|
|
139
|
-
|
|
140
|
-
if (header) {
|
|
141
|
-
page.classList.add('menu-fixed');
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
if (this.redirectPage) {
|
|
145
|
-
this.goToPage = this.redirectPage;
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
destroyed () {
|
|
149
|
-
window.removeEventListener('scroll', this.handleSCroll);
|
|
150
|
-
}
|
|
151
|
-
};
|
|
152
|
-
</script>
|
|
153
|
-
<style lang="scss">
|
|
154
|
-
@import "@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss";
|
|
155
|
-
|
|
156
|
-
.navbar {
|
|
157
|
-
.navbar-search-light {
|
|
158
|
-
&--focus {
|
|
159
|
-
box-shadow: 0 0 .5rem 0 darken($primary, 20%);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
.navbar-search-dark {
|
|
163
|
-
&--focus {
|
|
164
|
-
box-shadow: 0 0 2rem 0 $primary;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<base-nav
|
|
3
|
+
container-classes="container-fluid container-fluid--bu"
|
|
4
|
+
class="navbar-top border-bottom navbar-expand navbar-animated"
|
|
5
|
+
:class="{'bg-white navbar-light': type === 'default'}"
|
|
6
|
+
data-menu="fixed"
|
|
7
|
+
>
|
|
8
|
+
<div slot="brand" class="navbar-wrapper">
|
|
9
|
+
<nuxt-link class="navbar-brand d-flex" :to="goToPage">
|
|
10
|
+
<img :src="logoTipo || logoFull" class="navbar-brand-img navbar-brand-img--full" alt="BURH: Suas vagas">
|
|
11
|
+
<img :src="logoTipo || logoMini" class="navbar-brand-img navbar-brand-img--mini" alt="BURH: Suas vagas">
|
|
12
|
+
</nuxt-link>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<!-- Navbar links -->
|
|
16
|
+
<ul v-if="menuOptions != null" class="navbar-nav navbar-nav--menu align-items-center ml-md-auto">
|
|
17
|
+
<li class="nav-item">
|
|
18
|
+
<a class="btn btn-outline-primary btn-sm mb-0 mt-0 mr-4" href="#">
|
|
19
|
+
Entrar
|
|
20
|
+
</a>
|
|
21
|
+
</li>
|
|
22
|
+
<li class="nav-item">
|
|
23
|
+
<a class="btn btn-primary btn-sm mb-0 mt-0" href="#">
|
|
24
|
+
Cadastre-se
|
|
25
|
+
</a>
|
|
26
|
+
</li>
|
|
27
|
+
</ul>
|
|
28
|
+
<slot></slot>
|
|
29
|
+
</base-nav>
|
|
30
|
+
</template>
|
|
31
|
+
<script>
|
|
32
|
+
import { CollapseTransition } from 'vue2-transitions';
|
|
33
|
+
import BaseNav from '@burh/nuxt-core/components/argon-core/Navbar/BaseNav.vue';
|
|
34
|
+
import Modal from '@burh/nuxt-core/components/argon-core/Modal.vue';
|
|
35
|
+
|
|
36
|
+
export default {
|
|
37
|
+
name: 'public-navbar',
|
|
38
|
+
components: {
|
|
39
|
+
CollapseTransition,
|
|
40
|
+
BaseNav,
|
|
41
|
+
Modal
|
|
42
|
+
},
|
|
43
|
+
props: {
|
|
44
|
+
type: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: 'default', // default|light
|
|
47
|
+
description: 'Look of the dashboard navbar. Default (Green) or light (gray)'
|
|
48
|
+
},
|
|
49
|
+
logoMini: {
|
|
50
|
+
type: String,
|
|
51
|
+
default: '/img/brand/burh-isotipo.svg',
|
|
52
|
+
description: 'Logo for scrolled navbar'
|
|
53
|
+
},
|
|
54
|
+
logoFull: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: '/img/brand/burh-imagotipo.svg',
|
|
57
|
+
description: 'Logo for default navbar'
|
|
58
|
+
},
|
|
59
|
+
menuOptions: {
|
|
60
|
+
type: String,
|
|
61
|
+
default: null,
|
|
62
|
+
description: ''
|
|
63
|
+
},
|
|
64
|
+
redirectPage: {
|
|
65
|
+
type: String,
|
|
66
|
+
default: null
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
computed: {
|
|
70
|
+
routeName() {
|
|
71
|
+
const { name } = this.$route;
|
|
72
|
+
return this.capitalizeFirstLetter(name);
|
|
73
|
+
},
|
|
74
|
+
clazz: function() {
|
|
75
|
+
var clzz = 'control-form';
|
|
76
|
+
if (this.focusSearchControl == false) {
|
|
77
|
+
clzz += ' only-text';
|
|
78
|
+
}
|
|
79
|
+
return clzz;
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
data() {
|
|
83
|
+
return {
|
|
84
|
+
activeNotifications: false,
|
|
85
|
+
showMenu: false,
|
|
86
|
+
searchModalVisible: false,
|
|
87
|
+
searchQuery: '',
|
|
88
|
+
menuSearch: '',
|
|
89
|
+
focusSearchControl: false,
|
|
90
|
+
goToPage: '/',
|
|
91
|
+
logoTipo: null,
|
|
92
|
+
};
|
|
93
|
+
},
|
|
94
|
+
methods: {
|
|
95
|
+
capitalizeFirstLetter(string) {
|
|
96
|
+
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
97
|
+
},
|
|
98
|
+
toggleNotificationDropDown() {
|
|
99
|
+
this.activeNotifications = !this.activeNotifications;
|
|
100
|
+
},
|
|
101
|
+
closeDropDown() {
|
|
102
|
+
this.activeNotifications = false;
|
|
103
|
+
},
|
|
104
|
+
toggleSidebar() {
|
|
105
|
+
this.$sidebar.displaySidebar(!this.$sidebar.showSidebar);
|
|
106
|
+
},
|
|
107
|
+
hideSidebar() {
|
|
108
|
+
this.$sidebar.displaySidebar(false);
|
|
109
|
+
},
|
|
110
|
+
handleSCroll (event) {
|
|
111
|
+
let header = document.querySelector('[data-menu="fixed"]');
|
|
112
|
+
let page = document.querySelector('html');
|
|
113
|
+
let screenHeight = window.innerHeight;
|
|
114
|
+
if (window.scrollY > screenHeight && !header.className.includes('navbar-main--mini')) {
|
|
115
|
+
header.classList.add('navbar-main--mini');
|
|
116
|
+
//page.classList.add('menu-fixed');
|
|
117
|
+
} else if (window.scrollY < screenHeight) {
|
|
118
|
+
header.classList.remove('navbar-main--mini');
|
|
119
|
+
//page.classList.remove('menu-fixed');
|
|
120
|
+
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
onFocus: function(event) {
|
|
124
|
+
event.target.select();
|
|
125
|
+
this.focusSearchControl = true;
|
|
126
|
+
},
|
|
127
|
+
onBlur: function(event) {
|
|
128
|
+
this.focusSearchControl = false;
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
mounted () {
|
|
132
|
+
this.$bus.$on('change-logo', ({ logo, redirectTo }) => {
|
|
133
|
+
this.goToPage = redirectTo;
|
|
134
|
+
this.logoTipo = logo;
|
|
135
|
+
});
|
|
136
|
+
window.addEventListener('scroll', this.handleSCroll);
|
|
137
|
+
let header = document.querySelector('[data-menu="fixed"]');
|
|
138
|
+
let page = document.querySelector('html');
|
|
139
|
+
|
|
140
|
+
if (header) {
|
|
141
|
+
page.classList.add('menu-fixed');
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
if (this.redirectPage) {
|
|
145
|
+
this.goToPage = this.redirectPage;
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
destroyed () {
|
|
149
|
+
window.removeEventListener('scroll', this.handleSCroll);
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
</script>
|
|
153
|
+
<style lang="scss">
|
|
154
|
+
@import "@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss";
|
|
155
|
+
|
|
156
|
+
.navbar {
|
|
157
|
+
.navbar-search-light {
|
|
158
|
+
&--focus {
|
|
159
|
+
box-shadow: 0 0 .5rem 0 darken($primary, 20%);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
.navbar-search-dark {
|
|
163
|
+
&--focus {
|
|
164
|
+
box-shadow: 0 0 2rem 0 $primary;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
</style>
|