@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,303 @@
1
+ //Burh colors - Main
2
+ $color-default: #13293B;
3
+ $color-default--lighten: #7092A6;
4
+ $color-default--mid-dark: #071E2A;
5
+ $color-default--darken: #0A0C10;
6
+ $color-primary: #8965e0;
7
+ $color-primary--lighten: #81BFEB;
8
+ $color-primary--mid-dark: #0062AE;
9
+ $color-primary--darken: #004483;
10
+ $color-secondary: #FDDF00;
11
+ $color-secondary--lighten: #FAE871;
12
+ $color-secondary--mid-dark: #F9D100;
13
+ $color-secondary--darken: #FFB200;
14
+ $color-light: #ECF1F5;
15
+ $color-light--lighten: #F9F9F9;
16
+ $color-light--mid-dark: #CCD9DF;
17
+ $color-light--darken: #B8C8D3;
18
+ $color-dark: #485863;
19
+ $color-dark--lighten: #768B9A;
20
+ $color-dark--mid-dark: #3B4B56;
21
+ $color-dark--darken: #040405;
22
+
23
+ //Burh colors - Feedback
24
+ $color-info: #2BB3DC;
25
+ $color-info--ligthen: #CAE7F0;
26
+ $color-info--mid-dark: #56BCD5;
27
+ $color-info--darken: #56BCD5;
28
+ $color-success: #4FA86F;
29
+ $color-success--ligthen: #CADEE3;
30
+ $color-success--mid-dark: #7EBD94;
31
+ $color-success--darken: #35824D;
32
+ $color-danger: #DE214B;
33
+ $color-danger--ligthen: #EFC2CE;
34
+ $color-danger--mid-dark: #E88CA4;
35
+ $color-danger--darken: #C50035;
36
+ $color-warning: #E69E33;
37
+ $color-warning--ligthen: #E69E33;
38
+ $color-warning--mid-dark: #DB8E37;
39
+ $color-warning--darken: #E66433;
40
+
41
+ //Burh Colors - Monochrome Scale
42
+ $color-mono-blue: #004484;
43
+ $color-mono-blue-90: #195690;
44
+ $color-mono-blue-80: #33699C;
45
+ $color-mono-blue-70: #4C7BA8;
46
+ $color-mono-blue-60: #668EB5;
47
+ $color-mono-blue-50: #7FA1C1;
48
+ $color-mono-blue-40: #99B4CE;
49
+ $color-mono-blue-30: #B2C6DA;
50
+ $color-mono-blue-20: #CCD9E6;
51
+ $color-mono-blue-10: #E5ECF2;
52
+ $color-mono-dark: #232C30;
53
+ $color-mono-dark-90: #384044;
54
+ $color-mono-dark-80: #4F5659;
55
+ $color-mono-dark-70: #646A6D;
56
+ $color-mono-dark-60: #7B8082;
57
+ $color-mono-dark-50: #909597;
58
+ $color-mono-dark-40: #A7AAAC;
59
+ $color-mono-dark-30: #BCBFC0;
60
+ $color-mono-dark-20: #D3D4D5;
61
+ $color-mono-dark-10: #E8E9EA;
62
+
63
+ //Burh Colors - Social Media
64
+
65
+ //Burh Colors - Base Duotone
66
+ $base-light: #FFFFFF;
67
+ $base-dark: $color-mono-dark;
68
+
69
+
70
+ // Shadows
71
+
72
+ $enable-shadows: true !default;
73
+
74
+
75
+
76
+ // Color system
77
+
78
+ $white: #fff !default;
79
+ $gray-100: #f6f9fc !default;
80
+ $gray-200: #e9ecef !default;
81
+ $gray-300: #dee2e6 !default;
82
+ $gray-400: #ced4da !default;
83
+ $gray-500: #adb5bd !default;
84
+ $gray-600: #8898aa !default; // Line footer color
85
+ $gray-700: #525f7f !default; // Line p color
86
+ $gray-800: #32325d !default; // Line heading color
87
+ $gray-900: #212529 !default;
88
+ $black: #000 !default;
89
+
90
+ $grays: () !default;
91
+ $grays: map-merge((
92
+ "100": $gray-100,
93
+ "200": $gray-200,
94
+ "300": $gray-300,
95
+ "400": $gray-400,
96
+ "500": $gray-500,
97
+ "600": $gray-600,
98
+ "700": $gray-700,
99
+ "800": $gray-800,
100
+ "900": $gray-900
101
+ ), $grays);
102
+
103
+ $blue: #5e72e4 !default;
104
+ $indigo: #5603ad !default;
105
+ $purple: #8965e0 !default;
106
+ $pink: #f3a4b5 !default;
107
+ $red: #f5365c !default;
108
+ $orange: #fb6340 !default;
109
+ $yellow: #ffd600 !default;
110
+ $green: #2dce89 !default;
111
+ $teal: #11cdef !default;
112
+ $cyan: #2bffc6 !default;
113
+
114
+ $colors: () !default;
115
+ $colors: map-merge((
116
+ "blue": $blue,
117
+ "indigo": $indigo,
118
+ "purple": $purple,
119
+ "pink": $pink,
120
+ "red": $red,
121
+ "orange": $orange,
122
+ "yellow": $yellow,
123
+ "green": $green,
124
+ "teal": $teal,
125
+ "cyan": $cyan,
126
+ "white": $white,
127
+ "gray": $gray-600,
128
+ "light": $gray-400,
129
+ "lighter": $gray-200,
130
+ "lightest": lighten($gray-200, 5%),
131
+ "gray-dark": $gray-800
132
+ ), $colors);
133
+
134
+ $default: $color-default!default;
135
+ $primary: $color-primary !default;
136
+ $secondary: $color-secondary !default;
137
+ $success: $color-success !default;
138
+ $info: $color-info !default;
139
+ $warning: $color-warning !default;
140
+ $danger: $color-danger !default;
141
+ $light: $color-light !default;
142
+ $dark: $gray-900 !default;
143
+ $darker: $base-dark;
144
+
145
+ $facebook: #3b5999 !default;
146
+ $twitter: #1da1f2 !default;
147
+ $google-plus: #dd4b39 !default;
148
+ $instagram: #e4405f !default;
149
+ $pinterest: #bd081c !default;
150
+ $youtube: #cd201f !default;
151
+ $slack: #3aaf85 !default;
152
+ $dribbble: #ea4c89 !default;
153
+ $github: #222222 !default;
154
+ $vimeo: #04A0F0 !default;
155
+
156
+ $theme-colors: () !default;
157
+ $theme-colors: map-merge((
158
+ "default": $default,
159
+ "primary": $primary,
160
+ "secondary": $secondary,
161
+ "success": $success,
162
+ "info": $info,
163
+ "warning": $warning,
164
+ "danger": $danger,
165
+ "white": $white,
166
+ "neutral": $white,
167
+ "dark": $dark,
168
+ "darker": $darker,
169
+ ), $theme-colors);
170
+
171
+ $brand-colors: () !default;
172
+ $brand-colors: map-merge((
173
+ "facebook": $facebook,
174
+ "twitter": $twitter,
175
+ "google-plus": $google-plus,
176
+ "instagram": $instagram,
177
+ "pinterest": $pinterest,
178
+ "youtube": $youtube,
179
+ "slack": $slack,
180
+ "dribbble": $dribbble,
181
+ "github": $github,
182
+ "vimeo": $vimeo
183
+ ), $brand-colors);
184
+
185
+ $shape-colors: () !default;
186
+ $shape-colors: map-merge((
187
+ "default": #32325d,
188
+ "primary": #5533ff,
189
+ "secondary": #24b47e,
190
+ "neutral": #e9ecef,
191
+ "blue-gray": #b2cbe1,
192
+ "purple-primary": #555abf,
193
+
194
+ ), $shape-colors);
195
+
196
+ $shapes-primary-colors: () !default;
197
+ $shapes-primary-colors: map-merge((
198
+ "step-1-gradient-bg": #281483,
199
+ "step-2-gradient-bg": #8f6ed5,
200
+ "step-3-gradient-bg": #d782d9,
201
+ "span-1-bg": #53f,
202
+ "span-2-bg": #4553ff,
203
+ "span-3-bg": #4f40ff,
204
+ "span-4-bg": #25ddf5,
205
+ "span-5-bg": #1fa2ff
206
+ ), $shapes-primary-colors);
207
+
208
+ $shapes-default-colors: () !default;
209
+ $shapes-default-colors: map-merge((
210
+ "step-1-gradient-bg": #7795f8,
211
+ "step-2-gradient-bg": #6772e5,
212
+ "step-3-gradient-bg": #555abf,
213
+ "span-1-bg": #7795f8,
214
+ "span-2-bg": #7b9aff,
215
+ "span-3-bg": #6f8ff8,
216
+ "span-4-bg": #76eea7,
217
+ "span-5-bg": #6adaff
218
+ ), $shapes-default-colors);
219
+
220
+ $shapes-light-colors: () !default;
221
+ $shapes-light-colors: map-merge((
222
+ "step-1-gradient-bg": #b2cbe1,
223
+ "step-2-gradient-bg": #f6f9fc,
224
+ "step-3-gradient-bg": #f6f9fc,
225
+ "span-1-bg": #b4cce1,
226
+ "span-2-bg": #c5dbef,
227
+ "span-3-bg": #b9d5ed,
228
+ "span-4-bg": #74e4a2,
229
+ "span-5-bg": #008169
230
+ ), $shapes-light-colors);
231
+
232
+ $shapes-dark-colors: () !default;
233
+ $shapes-dark-colors: map-merge((
234
+ "step-1-gradient-bg": #32325d,
235
+ "step-2-gradient-bg": #32325d,
236
+ "step-3-gradient-bg": #32325d,
237
+ "span-1-bg": #2e2e57,
238
+ "span-2-bg": #2b2b58,
239
+ "span-3-bg": #25254d,
240
+ "span-4-bg": #d782d9,
241
+ "span-5-bg": #008169
242
+ ), $shapes-dark-colors);
243
+
244
+
245
+ // Translucent color variations
246
+ $translucent-color-opacity: .6 !default;
247
+
248
+ // Set a specific jump point for requesting color jumps
249
+ $theme-color-interval: 8% !default;
250
+
251
+ // The yiq lightness value that determines when the lightness of color changes from "dark" to "light". Acceptable values are between 0 and 255.
252
+ $yiq-contrasted-threshold: 200 !default;
253
+
254
+ // Customize the light and dark text colors for use in our YIQ color contrast function.
255
+ $yiq-text-dark: $gray-900 !default;
256
+ $yiq-text-light: $white !default;
257
+
258
+ // Action colors
259
+
260
+ $star-rating-color: $gray-400 !default;
261
+ $star-rating-color-active: $yellow !default;
262
+
263
+ $favorite-color: $yellow !default;
264
+ $like-color: $blue !default;
265
+ $love-color: $red !default;
266
+
267
+
268
+ // Body
269
+
270
+ $body-bg: #f8f9fe !default;
271
+ $body-color: $gray-700 !default;
272
+ $page-bg: $color-mono-dark-30 !default;
273
+ $bg-default: $gray-100;
274
+
275
+
276
+ // Sections
277
+
278
+ $section-colors: () !default;
279
+ $section-colors: map-merge((
280
+ "primary": $body-bg,
281
+ "secondary": $secondary,
282
+ "light": $gray-400,
283
+ "dark": $dark,
284
+ "darker": $darker
285
+ ), $section-colors);
286
+
287
+ // Links
288
+
289
+ $link-color: $primary !default;
290
+ $link-decoration: none !default;
291
+ $link-hover-color: darken($link-color, 15%) !default;
292
+ $link-hover-decoration: none !default;
293
+
294
+
295
+ @mixin generate_backgrounds() {
296
+ @each $key, $color in $colors {
297
+ .bg-#{$key} {
298
+ background-color: $color;
299
+ }
300
+ }
301
+ }
302
+
303
+ @include generate_backgrounds();
@@ -166,7 +166,6 @@ $theme-colors: map-merge((
166
166
  "neutral": $white,
167
167
  "dark": $dark,
168
168
  "darker": $darker,
169
- "test-online": $purple
170
169
  ), $theme-colors);
171
170
 
172
171
  $brand-colors: () !default;
@@ -952,6 +952,7 @@ $tooltip-font-size: $font-size-sm !default;
952
952
 
953
953
  $modal-inner-padding: 1.5rem !default;
954
954
 
955
+ $modal-xl: 1100px !default;
955
956
  $modal-lg: 800px !default;
956
957
  $modal-md: 500px !default;
957
958
  $modal-sm: 380px !default;
@@ -2,7 +2,7 @@
2
2
  <component
3
3
  :is="tag"
4
4
  :class="[{ show: isOpen }, `drop${direction}`]"
5
- @click="toggleDropDown"
5
+ @click.stop.propagation="toggleDropDown"
6
6
  v-click-outside="closeDropDown"
7
7
  >
8
8
  <slot name="title-container" :is-open="isOpen">
@@ -69,7 +69,7 @@
69
69
  type: String,
70
70
  description: 'Modal size',
71
71
  validator(value) {
72
- let acceptedValues = ["", "sm", "lg"];
72
+ let acceptedValues = ["", "sm", "lg","xl"];
73
73
  return acceptedValues.indexOf(value) !== -1;
74
74
  },
75
75
  },
@@ -1,23 +1,29 @@
1
1
  <template>
2
- <a href="#" class="">
3
- <div class="media align-items-center">
4
- <span class="avatar avatar-sm rounded-circle">
5
- <img :src="logo">
6
- </span>
7
- <div class="media-body ml-2 d-none d-lg-block">
8
- <span class="mb-0 text-sm font-weight-bold">
9
- {{name}}
10
- </span>
11
- </div>
12
- </div>
13
- </a>
2
+ <span @click="handleClick">
3
+ <div class="media align-items-center">
4
+ <span class="avatar avatar-sm rounded-circle">
5
+ <img :src="logo">
6
+ </span>
7
+ <div class="media-body ml-2 d-none d-lg-block">
8
+ <span class="mb-0 text-sm font-weight-bold">
9
+ {{name}}
10
+ </span>
11
+ </div>
12
+ </div>
13
+ </span>
14
14
  </template>
15
15
  <script>
16
16
  export default {
17
- name: "avatar-link",
18
- props: {
19
- logo: String,
20
- name: String
21
- }
22
- }
17
+ name: 'avatar-link',
18
+ props: {
19
+ logo: String,
20
+ name: String,
21
+ data: Object
22
+ },
23
+ methods: {
24
+ handleClick(e) {
25
+ this.$emit('avatar-click', e);
26
+ }
27
+ }
28
+ };
23
29
  </script>
@@ -1,13 +1,8 @@
1
1
  <template>
2
- <base-dropdown :hasToggle="false">
3
- <base-button slot="title-container" outline type="primary" class="dropdown-toggle">
4
- {{buttonName}}
2
+ <base-button outline type="primary" class="dropdown-toggle">
3
+ Exportar Excel
4
+ <i class="fas fa-file-excel text-success ml-2" aria-hidden="true"></i>
5
5
  </base-button>
6
- <a v-for="(options, index) in exportOptions" :key="index" @click="$emit('exportar')" class="dropdown-item" href="#">
7
- <i class="pr-2" :class="options.icon"></i>
8
- {{options.option}}
9
- </a>
10
- </base-dropdown>
11
6
  </template>
12
7
  <script>
13
8
  export default {
@@ -0,0 +1,181 @@
1
+ <template>
2
+ <div class="column">
3
+ <div class="card card-app" @click.prevent="$emit('test-click')">
4
+ <base-dropdown class="top-right custom" v-if="showMenu">
5
+ <i slot="title-container"
6
+ class="fa fa-ellipsis-h custom"
7
+ aria-hidden="true"
8
+ />
9
+ <li class="dropdown-item d-flex align-items-center w-100" @click="sendTest">
10
+ <i class="fa fa-paper-plane" aria-hidden="true" />
11
+ <span>
12
+ Enviar teste
13
+ </span>
14
+ </li>
15
+ <li class="dropdown-item d-flex align-items-center w-100" @click="viewTest">
16
+ <i class="fa fa-eye" aria-hidden="true" />
17
+ <span>
18
+ Visualizar teste
19
+ </span>
20
+ </li>
21
+ <li class="dropdown-item d-flex align-items-center w-100" @click="viewAnsweredTests">
22
+ <i class="fa fa-file" aria-hidden="true" />
23
+ <span>
24
+ Respostas recebidas
25
+ </span>
26
+ </li>
27
+ <li v-if="isDefault" class="dropdown-item d-flex align-items-center w-100" @click="exportExcel(id)">
28
+ <i class="fa fa-arrow-circle-down" aria-hidden="true" />
29
+ <span>
30
+ Exportar Respostas
31
+ </span>
32
+ </li>
33
+ <li class="dropdown-item d-flex align-items-center w-100" @click="copyTest">
34
+ <i class="fa fa-clone" aria-hidden="true" />
35
+ <span>
36
+ Fazer uma cópia
37
+ </span>
38
+ </li>
39
+ <li v-if="isDefault" class="dropdown-item d-flex align-items-center w-100" @click="openRenameEditor">
40
+ <i class="fa fa-pen" aria-hidden="true" />
41
+ <span>
42
+ Renomear teste
43
+ </span>
44
+ </li>
45
+ <li v-if="isDefault" class="dropdown-item d-flex align-items-center w-100" @click="deleteTest(id)">
46
+ <i class="fa fa-trash" aria-hidden="true" />
47
+ <span>
48
+ Apagar teste
49
+ </span>
50
+ </li>
51
+ </base-dropdown>
52
+ <img
53
+ v-if="icon === ''"
54
+ class="card__image"
55
+ :src="image"
56
+ :alt="`Icone para ${text}`"
57
+ >
58
+ <i
59
+ v-else
60
+ :class="icon"
61
+ class="card__icon"
62
+ />
63
+ </div>
64
+ <input
65
+ class="w-100"
66
+ v-if="showNameEditor"
67
+ v-model="newName"
68
+ @keyup.enter="renameTest"
69
+ @blur="renameTest"
70
+ ref="teste"
71
+ />
72
+ <span v-else class="card-title w-100 text-center">{{text}}</span>
73
+ </div>
74
+ </template>
75
+ <script>
76
+ import BaseDropdown from '../../argon-core/BaseDropdown.vue';
77
+
78
+ export default {
79
+ name: 'test-card',
80
+ components: {
81
+ BaseDropdown,
82
+ },
83
+ props:{
84
+ link: String,
85
+ text: String,
86
+ image: String,
87
+ id: Number,
88
+ icon: {
89
+ type: String,
90
+ default: ''
91
+ },
92
+ showMenu: {
93
+ type: Boolean,
94
+ default: false,
95
+ description: 'Defines if option menu is visible'
96
+ },
97
+ isDefault: {
98
+ type: Boolean,
99
+ default: false,
100
+ }
101
+ },
102
+ methods: {
103
+ sendTest(e) {
104
+ this.$emit('send-test');
105
+ },
106
+ viewTest(e) {
107
+ this.$emit('view-test');
108
+ },
109
+ viewAnsweredTests(e) {
110
+ this.$emit('answers-test');
111
+ },
112
+ copyTest(e) {
113
+ this.$emit('copy-test');
114
+ },
115
+ openRenameEditor() {
116
+ this.showNameEditor = true;
117
+
118
+ this.$nextTick()
119
+ .then(() => this.$refs.teste.focus()
120
+ )
121
+ },
122
+ focusInput() {
123
+ this.$refs.teste.$el.focus();
124
+ },
125
+ renameTest() {
126
+ const rename = {
127
+ id: this.id,
128
+ name: this.newName
129
+ };
130
+ this.$emit('rename-test', rename);
131
+ this.showNameEditor = false;
132
+ },
133
+ deleteTest(id) {
134
+ this.$emit('delete-test', id);
135
+ },
136
+ exportExcel(id) {
137
+ this.$emit('export-excel', id);
138
+ }
139
+ },
140
+ data() {
141
+ return {
142
+ showNameEditor: false,
143
+ newName: this.text,
144
+ };
145
+ }
146
+ };
147
+ </script>
148
+ <style lang="scss" scoped>
149
+ @import "@burh/nuxt-core/assets/sass/argon-test-online";
150
+ .column {
151
+ display: flex;
152
+ flex-direction: column;
153
+ justify-content: center;
154
+ align-items: center;
155
+ position: relative;
156
+ &:hover {
157
+ .custom {
158
+ display: block;
159
+ }
160
+ }
161
+ }
162
+
163
+ .custom {
164
+ color: #ffffff;
165
+ background-color: #8192a6;
166
+ border-radius: 15%;
167
+ font-size: 1.25rem;
168
+ padding: .25rem .5rem;
169
+ display: none;
170
+ &:hover {
171
+ cursor: pointer;
172
+ }
173
+ }
174
+
175
+ .top-right {
176
+ right: .5rem;
177
+ position: absolute;
178
+ top: .5rem;
179
+ z-index: 100;
180
+ }
181
+ </style>