@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
@@ -0,0 +1,100 @@
1
+ <template>
2
+ <li class="tab tab-primary" :class="active && 'tab--active'"
3
+ @click="$emit('tab-click')">
4
+ <span class="tab__title" :class="tabTitleClass">{{title}}</span>
5
+ <span v-if="icon > 0" class="tab__icon" :class="tabIconClass">{{icon}}</span>
6
+ </li>
7
+ </template>
8
+ <script>
9
+ export default {
10
+ name: "teste-tab",
11
+ props: {
12
+ title: {
13
+ type: String,
14
+ default: 'Testes',
15
+ description: 'Title for tab',
16
+ },
17
+ icon: {
18
+ type: Number,
19
+ default: 0,
20
+ description: 'Number for tab icon',
21
+ },
22
+ active: {
23
+ type: Boolean,
24
+ default: false,
25
+ description: 'Define if tab is active',
26
+ },
27
+ tabIconClass: {
28
+ type: String,
29
+ default: '',
30
+ description: 'Define css class for tab\'s icon',
31
+ },
32
+ tabTitleClass: {
33
+ type: String,
34
+ default: '',
35
+ description: 'Define css class for tab\'s title',
36
+ },
37
+ link: {
38
+ type: String,
39
+ default: '/',
40
+ description: 'Define nuxt-link link',
41
+ }
42
+ },
43
+ methods: {
44
+ redirect(link){
45
+ this.$router.push(link)
46
+ }
47
+ }
48
+ };
49
+ </script>
50
+ <style lang="scss">
51
+ @import "@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss";
52
+
53
+ .tab {
54
+ position: relative;
55
+ padding: .75rem 3rem;
56
+ margin: 0 1rem;
57
+
58
+ &:hover {
59
+ cursor: pointer;
60
+ .tab__title, .tab__icon {
61
+ color: $primary;
62
+ }
63
+ }
64
+
65
+ &__title {
66
+ color: #3C4858;
67
+ font-weight: 600;
68
+ }
69
+
70
+ &__icon {
71
+ color: #ffffff;
72
+ border-radius: 50% !important;
73
+ background-color: #3C4858;;
74
+ padding: 0 .4rem;
75
+ font-weight: bold;
76
+ }
77
+ }
78
+
79
+ .tab--active {
80
+ .tab__title {
81
+ color:$primary;
82
+ }
83
+
84
+ .tab__icon {
85
+ background-color: $primary;
86
+ color: #FFF
87
+ }
88
+ }
89
+
90
+ .tab--active::after {
91
+ content:'';
92
+ position:absolute;
93
+ bottom:0;
94
+ left:0;
95
+ right:0;
96
+ background: $primary;
97
+ height: 5px;
98
+ border-radius:5px 5px 0px 0px;
99
+ }
100
+ </style>
@@ -1,25 +1,46 @@
1
1
  <template>
2
- <base-nav
3
- container-classes="container-class-layout"
4
- class="border-bottom navbar-animated navbar-horizontal"
5
- expand="lg"
6
- type="white"
7
- >
8
- <avatar-link
9
- slot="brand"
10
- :logo="brand"
11
- :name="brandName"
12
- class="row pl-4 nav-link"
13
- />
14
- <app-link-area class="hover" />
15
- <user-menu-dropdown
16
- :text="userMenuText"
17
- :userAvatar="currentUser.avatar"
18
- :userName="currentUser.name"
19
- :companyLogo="currentCompany.logo"
20
- :companyName="currentCompany.name"
21
- />
22
- </base-nav>
2
+ <base-nav
3
+ container-classes="container-fluid container-fluid--bu"
4
+ class="border-bottom navbar-animated navbar-horizontal"
5
+ expand="lg"
6
+ type="white"
7
+ >
8
+ <div style="display: flex; " slot="brand">
9
+ <avatar-link
10
+ :logo="brand"
11
+ :name="brandName"
12
+ class="row pl-4 nav-link cursor-pointer"
13
+ @avatar-click="redirectIndex"
14
+ />
15
+ <slot name="brand-center" />
16
+ </div>
17
+
18
+ <app-link-area
19
+ v-if="currentUser != null"
20
+ :showableProducts="showableProducts"
21
+ :activeProducts="activeProducts"
22
+ :apps="gridApps"
23
+ />
24
+ <user-menu-dropdown
25
+ :text="userMenuText"
26
+ :userAvatar="currentUser.avatar"
27
+ :userName="currentUser.name"
28
+ :companies="currentUser.companies"
29
+ :companyLogo="currentCompany.logo"
30
+ :companyName="currentCompany.name"
31
+ >
32
+ <avatar-link
33
+ slot="companies"
34
+ v-for="company in currentUser.companies"
35
+ :key="company.name"
36
+ :logo="company.logo"
37
+ :name="company.name"
38
+ class="dropdown-item"
39
+ :data="company"
40
+ @avatar-click="handleAvatarClick(company)"
41
+ />
42
+ </user-menu-dropdown>
43
+ </base-nav>
23
44
  </template>
24
45
  <script>
25
46
  import BaseNav from '@burh/nuxt-core/components/burh-ds/Navbar/BaseNav.vue';
@@ -28,20 +49,37 @@ import AppLinkArea from '@burh/nuxt-core/components/burh-ds/Dropdown/AppLinkArea
28
49
  import AvatarLink from '@burh/nuxt-core/components/burh-ds/Avatar/AvatarLink.vue';
29
50
 
30
51
  export default {
31
- components: {
32
- BaseNav,
33
- UserMenuDropdown,
34
- AppLinkArea,
35
- AvatarLink
36
- },
37
- props: {
38
- currentUser: Object,
39
- currentCompany: Object,
40
- userMenuText: Object,
41
- brand: String,
42
- brandName: String
43
- }
44
- }
52
+ components: {
53
+ BaseNav,
54
+ UserMenuDropdown,
55
+ AppLinkArea,
56
+ AvatarLink
57
+ },
58
+ props: {
59
+ currentUser: Object,
60
+ currentCompany: Object,
61
+ userMenuText: Object,
62
+ brand: String,
63
+ brandName: String,
64
+ showableProducts: Object,
65
+ activeProducts: Array,
66
+ gridApps: Array,
67
+ indexRoute: String,
68
+ },
69
+ data() {
70
+ return {
71
+ console: console
72
+ };
73
+ },
74
+ methods: {
75
+ handleAvatarClick(company) {
76
+ this.$emit('company-click', company);
77
+ },
78
+ redirectIndex() {
79
+ this.$router.push(this.indexRoute);
80
+ }
81
+ }
82
+ };
45
83
  </script>
46
84
  <style lang="scss">
47
85
  .container-class-layout {