@burh/nuxt-core 1.0.21 → 1.0.23

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.
Files changed (42) hide show
  1. package/assets/css/variables.css +3 -0
  2. package/assets/sass/argon-panna.scss +106 -0
  3. package/assets/sass/argon-test-online.scss +106 -0
  4. package/assets/sass/burh-ds/_variables.scss +1 -0
  5. package/assets/sass/burh-ds/organisms/_cards.scss +36 -4
  6. package/assets/sass/burh-ds/variables/_colors-panna.scss +303 -0
  7. package/assets/sass/burh-ds/variables/_colors-test-online.scss +303 -0
  8. package/assets/sass/burh-ds/variables/_colors.scss +0 -1
  9. package/assets/sass/custom/_variables.scss +1 -0
  10. package/components/argon-core/BaseDropdown.vue +1 -1
  11. package/components/argon-core/Modal.vue +1 -1
  12. package/components/burh-ds/Avatar/AvatarLink.vue +24 -18
  13. package/components/burh-ds/Button/ExportButton.vue +3 -8
  14. package/components/burh-ds/Cards/TestCard.vue +181 -0
  15. package/components/burh-ds/Cards/WelcomeCard.vue +48 -42
  16. package/components/burh-ds/Dropdown/AppLinkArea.vue +125 -39
  17. package/components/burh-ds/Dropdown/DropdownItem.vue +21 -16
  18. package/components/burh-ds/Dropdown/DropdownSection.vue +26 -26
  19. package/components/burh-ds/Dropdown/FaqVideoArea.vue +79 -65
  20. package/components/burh-ds/Dropdown/SignOutItem.vue +6 -6
  21. package/components/burh-ds/Dropdown/UserMenuDropdown.vue +54 -48
  22. package/components/burh-ds/Groups/SimpleProductItem.vue +26 -11
  23. package/components/burh-ds/Headings/AppHeader.vue +46 -47
  24. package/components/burh-ds/Headings/StepHeader.vue +95 -51
  25. package/components/burh-ds/Link/DefaultLink.vue +31 -0
  26. package/components/burh-ds/Lists/ListNavLinks.vue +47 -34
  27. package/components/burh-ds/Modals/AppConfigModal.vue +158 -156
  28. package/components/burh-ds/Modals/SendTest.vue +170 -0
  29. package/components/burh-ds/Modals/VideoModal.vue +15 -5
  30. package/components/burh-ds/Navbar/BaseNav.vue +2 -2
  31. package/components/burh-ds/Pagination/NamedPagination.vue +179 -0
  32. package/components/burh-ds/Questions/Question.vue +76 -36
  33. package/components/burh-ds/Questions/QuestionAttach.vue +1 -1
  34. package/components/burh-ds/Questions/QuestionRadio.vue +79 -73
  35. package/components/burh-ds/Questions/QuestionRadioItem.vue +25 -18
  36. package/components/burh-ds/Questions/QuestionText.vue +53 -22
  37. package/components/burh-ds/Tabs/TesteTab.vue +100 -0
  38. package/components/layouts/burh-ds/navbar/AppNavbar.vue +73 -35
  39. package/components/layouts/burh-ds/navbar/BusinessGlobalNavbar.vue +385 -242
  40. package/package.json +2 -2
  41. package/components/burh-ds/Cards/RecentTestCard.vue +0 -51
  42. package/data/ListNavLinksMock.json +0 -113
@@ -1,48 +1,41 @@
1
1
 
2
2
  <template>
3
- <div class="card text-center align-items-center">
4
- <div class="card-body card--content">
5
- <img class="icon" :src="icon">
6
- <h2 class="card-title mb-3 mx-md-5">{{title}}</h2>
7
- <p class="card-text mb-4 text--initial mx-md-5">{{text}}.</p>
8
- <div class="button--area">
9
- <base-button
10
- outline
11
- type="primary"
12
- class="btn--flex btn--app "
13
- >
14
- <nuxt-link class="white-text" :to="link">
15
- {{buttonText}}
16
- </nuxt-link>
17
- </base-button>
18
- </div>
19
- </div>
20
- </div>
3
+ <div class="card text-center align-items-center">
4
+ <div class="card-body card--content">
5
+ <img class="icon" :src="icon">
6
+ <h2 class="card-title mb-3 mx-md-5">{{title}}</h2>
7
+ <p class="card-text mb-4 text--initial mx-md-5" v-html="text" />
8
+ <div class="button--area">
9
+ <base-button
10
+ type="primary"
11
+ @click="$emit('btn-first-click')"
12
+ >
13
+ {{buttonText}}
14
+ </base-button>
15
+ </div>
16
+ </div>
17
+ </div>
21
18
  </template>
22
19
  <script>
23
20
  export default {
24
- name: 'welcome-card',
25
- components: {
21
+ name: 'welcome-card',
22
+ components: {
23
+ },
24
+ props:{
25
+ icon: String,
26
+ title: {
27
+ type: String,
28
+ default: 'Aqui vai um título'
29
+ },
30
+ text: {
31
+ type: String,
32
+ default: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse convallis vel tellus viverra pulvinar. Mauris in augue neque. Proin molestie lectus lectus, at semper enim suscipit id. odo colaborador tem um perfil de comportamento e competências. O Profiler é uma ferramenta completa para você identificar cada uma delas e assim formar equipes mais produtivas.'
33
+ },
34
+ buttonText: {
35
+ type: String
36
+ },
26
37
  },
27
- props:{
28
- icon: String,
29
- title: {
30
- type: String,
31
- default: 'Aqui vai um título'
32
- },
33
- text: {
34
- type: String,
35
- default: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse convallis vel tellus viverra pulvinar. Mauris in augue neque. Proin molestie lectus lectus, at semper enim suscipit id. odo colaborador tem um perfil de comportamento e competências. O Profiler é uma ferramenta completa para você identificar cada uma delas e assim formar equipes mais produtivas.'
36
- },
37
- buttonText: {
38
- type: String
39
- },
40
- link: {
41
- type: String,
42
- default: "/"
43
- }
44
- }
45
- }
38
+ };
46
39
  </script>
47
40
 
48
41
  <style lang="scss">
@@ -52,8 +45,11 @@ export default {
52
45
  text-align: initial;
53
46
  }
54
47
  .card--content{
48
+ display: flex;
49
+ flex-direction: column;
50
+ align-items: center;
55
51
  @media screen and (min-width:768px){
56
- width: 50%;
52
+
57
53
  }
58
54
  .button--area{
59
55
  @media screen and (max-width:768px){
@@ -71,6 +67,8 @@ export default {
71
67
  }
72
68
  }
73
69
  .card-title{
70
+ width: 30%;
71
+ font-weight: 600;
74
72
  @media screen and (max-width:768px){
75
73
  padding-left: 1.5rem;
76
74
  padding-right: 1.5rem;
@@ -80,6 +78,7 @@ export default {
80
78
 
81
79
  .card-text {
82
80
  text-align: center;
81
+ width: 55%;
83
82
  color: $gray-900;
84
83
  }
85
84
 
@@ -90,11 +89,18 @@ export default {
90
89
  }
91
90
 
92
91
  .btn--app {
93
- background-color: $violet;
94
- border-color: $violet;
92
+ background-color: $violet !important;
93
+ border-color: $violet !important;
94
+ &:hover {
95
+ background-color: darken($violet, 10%) !important;
96
+ border-color: darken($violet, 10%) !important;
97
+ }
95
98
  }
96
99
 
97
100
  .white-text {
98
101
  color: #ffffff;
102
+ &:hover {
103
+ color: #ffffff;
104
+ }
99
105
  }
100
106
  </style>
@@ -1,46 +1,132 @@
1
1
  <template>
2
- <base-dropdown menu-on-right
3
- class="mr-2"
4
- tag="span"
5
- title-tag="a"
6
- >
7
- <i
8
- href="#"
9
- class="fas fa-th display-4"
10
- @click.prevent
11
- slot="title-container"
12
- />
13
- <ul class="px-3">
14
- <li class="w-50 d-inline-block text-wrap text-center" v-for="(links, index) in links" :key="index">
15
- <img :src=links.img :alt="links.name" class="dropdown-item">
16
- <a href="#" class="small">{{links.name}}</a>
17
- </li>
18
- </ul>
19
- </base-dropdown>
2
+ <base-dropdown menu-on-right
3
+ class="mr-3"
4
+ tag="span"
5
+ title-tag="a"
6
+ >
7
+ <i
8
+ href="#"
9
+ class="fas fa-th display-4"
10
+ @click.prevent
11
+ slot="title-container"
12
+ />
13
+ <ul class="px-3">
14
+ <li
15
+ class="w-50 d-inline-block text-wrap text-center align-top list-item"
16
+ v-for="app in apps"
17
+ :key="app.name">
18
+ <default-link :link="app.validated ? app.link : '/planos'" class="small d-block">
19
+ <img
20
+ :src="app.img"
21
+ :alt="app.name"
22
+ class="dropdown-item" >
23
+ <span>{{app.name}}</span>
24
+ <badge class="badgeClass" v-if="!app.validated">Habilitar</badge>
25
+ </default-link>
26
+ </li>
27
+ </ul>
28
+ </base-dropdown>
20
29
  </template>
21
30
  <script>
31
+ import DefaultLink from '../Link/DefaultLink';
32
+
22
33
  export default {
23
- props:{
24
- links: {
25
- type: Array,
26
- default:() => {
27
- return [
28
- {id: 1, name:'Busca', img:'img/icons/colorfull-icons/busca.svg'},
29
- {id: 2, name:'Recrutamento', img:'img/icons/colorfull-icons/recrutamento.svg'},
30
- {id: 3, name:'Desempenho', img: 'img/icons/colorfull-icons/indicadores.svg'},
31
- {id: 4, name:'Universidades', img:'img/icons/colorfull-icons/universidades.svg'},
32
- {id: 5, name:'DISC Profiler', img:'img/icons/colorfull-icons/DISC.svg'},
33
- {id: 6, name:'Teste de Proêficiencia', img:'img/icons/colorfull-icons/proficiencia.svg'},
34
- {id: 7, name:'SMS', img:'img/icons/colorfull-icons/SMS.svg'},
35
- {id: 8, name:'Trabalhe Conosco', img:'img/icons/colorfull-icons/carreiras.svg'}
36
- ];
37
- }
38
- }
39
- }
40
- }
34
+ components: {
35
+ DefaultLink
36
+ },
37
+ props:{
38
+ hasEnableBadge: Boolean,
39
+ showableProducts: Object,
40
+ activeProducts: Array,
41
+ apps: Array,
42
+ // apps: Array
43
+ },
44
+ methods: {
45
+ companyHasProduct(productId) {
46
+ const product = this.activeProducts.find( e => e.product_id == productId);
47
+
48
+ if (product) {
49
+ const isProductLeft = product.quantity_used < product.quantity;
50
+
51
+ return product.quantity ? isProductLeft : true;
52
+ }
53
+ return false;
54
+ }
55
+ },
56
+ data() {
57
+ return {
58
+ // apps: [
59
+ // {
60
+ // name: 'Busca',
61
+ // img: 'img/icons/colorfull-icons/busca.svg',
62
+ // indexableName: 'BUSCA',
63
+ // validated: true,
64
+ // link: 'https://business.burh.com.br/app/search'
65
+ // },
66
+ // {
67
+ // name: 'Recrutamento',
68
+ // img: 'img/icons/colorfull-icons/recrutamento.svg',
69
+ // indexableName: 'RECRUTAMENTO',
70
+ // validated: true,
71
+ // link: 'https://business.burh.com.br/burh/vagas'
72
+ // },
73
+ // {
74
+ // name: 'Indicadores',
75
+ // img: 'img/icons/colorfull-icons/indicadores.svg',
76
+ // indexableName: 'RELATORIO_DE_DESEMPENHO',
77
+ // validated: this.companyHasProduct(this.showableProducts['RELATORIO_DE_DESEMPENHO']),
78
+ // link: 'https://business.burh.com.br/apps/analytics'
79
+ // },
80
+ // {
81
+ // name: 'Universidades',
82
+ // img: 'img/icons/colorfull-icons/universidades.svg',
83
+ // indexableName: 'UNIVERSIDADES',
84
+ // validated: true,
85
+ // link: 'https://business.burh.com.br/app/university'
86
+ // },
87
+ // {
88
+ // name: 'Teste Profiler DISC',
89
+ // img: 'img/icons/colorfull-icons/DISC.svg',
90
+ // indexableName: 'TESTE_DISC',
91
+ // validated: this.companyHasProduct(this.showableProducts['TESTE_DISC']),
92
+ // link: 'https://business.burh.com.br/app/profiler'
93
+ // },
94
+ // {
95
+ // name: 'Teste de Proficiência',
96
+ // img: 'img/icons/colorfull-icons/proficiencia.svg',
97
+ // indexableName: 'TESTE_PROFICIENCIA',
98
+ // validated: this.companyHasProduct(this.showableProducts['TESTE_PROFICIENCIA']),
99
+ // link: 'https://business.burh.com.br/app/fluenglish'
100
+ // },
101
+ // {
102
+ // name: 'SMS',
103
+ // img: 'img/icons/colorfull-icons/SMS.svg',
104
+ // indexableName: 'SMS',
105
+ // validated: this.companyHasProduct(this.showableProducts['SMS']),
106
+ // link: 'https://business.burh.com.br/burh/apps/sms'
107
+ // },
108
+ // {
109
+ // name: 'Página Carreiras',
110
+ // img: 'img/icons/colorfull-icons/carreiras.svg',
111
+ // indexableName: 'TRABALHE_CONOSCO',
112
+ // validated: this.companyHasProduct(this.showableProducts['TRABALHE_CONOSCO']),
113
+ // link: '/'
114
+ // },
115
+ // ]
116
+ };
117
+ }
118
+ };
41
119
  </script>
42
120
  <style lang="scss" scoped>
43
- .height-100 {
44
- height: 10rem;
45
- }
121
+ .height-100 {
122
+ height: 10rem;
123
+ }
124
+
125
+ // .badgeClass {
126
+ // margin-left: 3rem;
127
+ // }
128
+
129
+ .list-item {
130
+ max-width: 100px;
131
+ }
46
132
  </style>
@@ -1,21 +1,26 @@
1
1
  <template>
2
- <li class="dropdown-item d-flex align-items-center w-100">
3
- <span>
4
- {{text}}
5
- </span>
6
- <badge v-if="status === 'NOVO'" rounded type="primary" class="ml-auto">Novo</badge>
7
- </li>
2
+ <a :href="link" class="link">
3
+ <li class="dropdown-item d-flex align-items-center w-100">
4
+ <span>
5
+ {{text}}
6
+ </span>
7
+ <badge v-if="status === 'NOVO'" rounded type="primary" class="ml-auto">Novo</badge>
8
+ </li>
9
+ </a>
8
10
  </template>
9
11
  <script>
10
12
  export default {
11
- name: "dropdown-item",
12
- props: {
13
- link: {
14
- type: String,
15
- default: "/"
16
- },
17
- text: String,
18
- status: String
19
- },
20
- }
13
+ name: 'dropdown-item',
14
+ props: {
15
+ link: {
16
+ type: String,
17
+ default: '/'
18
+ },
19
+ text: String,
20
+ status: String
21
+ },
22
+
23
+ mounted() {
24
+ },
25
+ };
21
26
  </script>
@@ -1,34 +1,34 @@
1
1
  <template>
2
- <div>
3
- <hr class="dropdown-divider">
4
- <h6 class="dropdown-header" v-if="title">
5
- <span class="aria-text">Funcionalidades,</span>
6
- <span>{{title}}</span>
7
- </h6>
8
- <ul>
9
- <dropdown-item
10
- v-for="item in items"
11
- :key="item.description"
12
- :text="item.description"
13
- :link="item.link"
14
- :status="item.status"
15
- />
16
- </ul>
17
- </div>
2
+ <div>
3
+ <hr class="dropdown-divider">
4
+ <h6 class="dropdown-header" v-if="title">
5
+ <span class="aria-text">Funcionalidades,</span>
6
+ <span>{{title}}</span>
7
+ </h6>
8
+ <ul>
9
+ <dropdown-item
10
+ v-for="item in items"
11
+ :key="item.description"
12
+ :text="item.description"
13
+ :link="item.link"
14
+ :status="item.status"
15
+ />
16
+ </ul>
17
+ </div>
18
18
  </template>
19
19
  <script>
20
- import DropdownItem from './DropdownItem'
20
+ import DropdownItem from './DropdownItem';
21
21
 
22
22
  export default {
23
- name: "dropdown-section",
24
- components: {
25
- DropdownItem
26
- },
27
- props: {
28
- title: String,
29
- items: Array
30
- }
31
- }
23
+ name: 'dropdown-section',
24
+ components: {
25
+ DropdownItem
26
+ },
27
+ props: {
28
+ title: String,
29
+ items: Array
30
+ }
31
+ };
32
32
  </script>
33
33
  <style lang="scss" scoped>
34
34
  ul {
@@ -1,74 +1,88 @@
1
1
  <template>
2
- <base-dropdown menu-on-right
3
- class="nav-item mr-2"
4
- tag="span"
5
- title-tag="a"
6
- title-classes="nav-link pr-0">
7
- <i
8
- href="#"
9
- class="fas fa-question-circle display-4"
10
- @click.prevent
11
- slot="title-container"
12
- />
2
+ <base-dropdown menu-on-right
3
+ class="nav-item mr-3"
4
+ tag="span"
5
+ title-tag="a"
6
+ title-classes="nav-link pr-0">
7
+ <i
8
+ href="#"
9
+ class="fas fa-question-circle display-4"
10
+ @click.prevent
11
+ slot="title-container"
12
+ />
13
13
 
14
- <template>
15
- <h6 class="dropdown-header">{{faqheader}}</h6>
16
- <div class="dropdown-divider"></div>
17
- <template>
18
- <ul class="pl-0">
19
- <li class="col-12 nav-link pt-1 d-flex dropdown-item"
20
- v-for="(videos, index) in videos" :key="index"
21
- v-on:click="openModalVideo(videos)"
22
- >
23
- <img src="/img/icons/iconfinder-youtube2.svg" alt="youtube">
24
- <span class="dropdown-item">{{videos.title}}</span>
25
- </li>
26
- </ul>
27
- </template>
28
- <div class="dropdown-divider"></div>
29
- <h6 class="dropdown-header">{{faqfooter}}</h6>
30
- </template>
14
+ <template>
15
+ <h6 class="dropdown-header">{{faqheader}}</h6>
16
+ <div class="dropdown-divider"></div>
17
+ <template>
18
+ <ul class="pl-0">
19
+ <li class="col-12 nav-link pt-1 d-flex dropdown-item"
20
+ v-for="(videos, index) in videos" :key="index"
21
+ v-on:click="openModalVideo(videos)"
22
+ >
23
+ <img src="/img/icons/iconfinder-youtube2.svg" alt="youtube">
24
+ <span class="dropdown-item">{{videos.title}}</span>
25
+ </li>
26
+ </ul>
27
+ </template>
28
+ <div class="dropdown-divider"></div>
29
+ <h6 class="dropdown-header">
30
+ <span>Ainda tem dúvidas?</span><br>
31
+ <span>Fale conosco pelo <a class="chat-text">chat</a></span>
32
+ </h6>
33
+ </template>
31
34
 
32
- </base-dropdown>
35
+ </base-dropdown>
33
36
  </template>
34
37
  <script>
35
38
  export default {
36
- data(){
37
- return{
39
+ data(){
40
+ return{
38
41
 
39
- }
40
- },
41
- mounted(){
42
+ };
43
+ },
44
+ mounted(){
42
45
 
43
- },
44
- methods:{
45
- openModalVideo(link){
46
- let videolink = link;
47
- this.$emit('open-video-modal', videolink)
48
- }
49
- },
50
- props:{
51
- faqheader:{
52
- type: String,
53
- default: 'Central de Suporte',
54
- description: 'Titulo do dropdown'
55
- },
56
- videos:{
57
- type: Array,
58
- default: () =>[{
59
- title: String,
60
- link: String
61
- }],
62
- description: 'Titulo e link dos videos'
63
- },
64
- faqfooter:{
65
- type: String,
66
- default: 'Ainda tem duvidas? Fale conosco pelo chat',
67
- description: 'Footer do dropdown'
68
- },
69
- method: {
70
- type: Function
71
- }
72
- }
73
- }
46
+ },
47
+ methods:{
48
+ openModalVideo(link){
49
+ let videolink = link;
50
+ this.$emit('open-video-modal', videolink);
51
+ }
52
+ },
53
+ props:{
54
+ faqheader:{
55
+ type: String,
56
+ default: 'Central de Suporte',
57
+ description: 'Titulo do dropdown'
58
+ },
59
+ videos:{
60
+ type: Array,
61
+ default: () =>[{
62
+ title: String,
63
+ link: String
64
+ }],
65
+ description: 'Titulo e link dos videos'
66
+ },
67
+ faqfooterTitle:{
68
+ type: String,
69
+ default: 'Ainda tem duvidas?',
70
+ description: 'Footer do dropdown'
71
+ },
72
+ faqfooterDescription:{
73
+ type: String,
74
+ default: 'Fale conosco pelo <a>chat</a>',
75
+ description: 'Footer do dropdown'
76
+ },
77
+ method: {
78
+ type: Function
79
+ }
80
+ }
81
+ };
74
82
  </script>
83
+
84
+ <style lang="scss">
85
+ .dropdown-header {
86
+ text-align: center;
87
+ }
88
+ </style>
@@ -1,11 +1,11 @@
1
1
  <template>
2
- <li class="dropdown-item d-flex align-items-center w-100">
3
- <font-awesome-icon :icon="['fas','door-open']"/>
4
- <span>Sair</span>
5
- </li>
2
+ <li class="dropdown-item d-flex align-items-center w-100" @click="$emit('logout')">
3
+ <font-awesome-icon :icon="['fas','door-open']"/>
4
+ <span>Sair</span>
5
+ </li>
6
6
  </template>
7
7
  <script>
8
8
  export default {
9
- name: "sign-out-item"
10
- }
9
+ name: 'sign-out-item'
10
+ };
11
11
  </script>