@burh/nuxt-core 1.0.404 → 1.0.405

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 (455) hide show
  1. package/.ebignore +25 -25
  2. package/.elasticbeanstalk/config.yml +18 -18
  3. package/.eslintrc.json +39 -39
  4. package/.gitlab-ci.yml +16 -16
  5. package/.vscode/settings.json +10 -10
  6. package/CHANGELOG.md +2 -2
  7. package/README.md +22 -22
  8. package/app.html +8 -8
  9. package/assets/css/font-awesome/css/font-awesome.css +2337 -2337
  10. package/assets/css/font-awesome/css/font-awesome.min.css +4 -4
  11. package/assets/css/font-awesome/fonts/fontawesome-webfont.svg +2671 -2671
  12. package/assets/css/nucleo/css/nucleo-svg.css +134 -134
  13. package/assets/css/nucleo/css/nucleo.css +572 -572
  14. package/assets/css/nucleo/fonts/nucleo-icons.svg +312 -312
  15. package/assets/css/variables.css +2 -2
  16. package/assets/images/burhCv.svg +6 -6
  17. package/assets/images/facebookCv.svg +3 -3
  18. package/assets/images/icons/facebook.svg +14 -14
  19. package/assets/images/icons/historicCv.svg +3 -3
  20. package/assets/images/icons/icon3.svg +3 -3
  21. package/assets/images/icons/icon4.svg +3 -3
  22. package/assets/images/icons/linkedin.svg +14 -14
  23. package/assets/images/icons/notesCv.svg +3 -3
  24. package/assets/images/icons/twitter.svg +14 -14
  25. package/assets/images/icons/whatsapp.svg +14 -14
  26. package/assets/images/linkedinCv.svg +3 -3
  27. package/assets/images/webCv.svg +4 -4
  28. package/assets/sass/argon.scss +104 -104
  29. package/assets/sass/burh-ds/_components.scss +142 -142
  30. package/assets/sass/burh-ds/_functions.scss +29 -29
  31. package/assets/sass/burh-ds/_helpers.scss +18 -18
  32. package/assets/sass/burh-ds/_mixins.scss +17 -17
  33. package/assets/sass/burh-ds/_transitions.scss +12 -12
  34. package/assets/sass/burh-ds/_utilities.scss +31 -31
  35. package/assets/sass/burh-ds/_variables.scss +963 -963
  36. package/assets/sass/burh-ds/_vendors.scss +38 -38
  37. package/assets/sass/burh-ds/atoms/_badge.scss +5 -5
  38. package/assets/sass/burh-ds/atoms/_buttons.scss +222 -222
  39. package/assets/sass/burh-ds/atoms/_forms.scss +416 -416
  40. package/assets/sass/burh-ds/atoms/_tables.scss +31 -31
  41. package/assets/sass/burh-ds/atoms/_type.scss +147 -147
  42. package/assets/sass/burh-ds/mixins/_badge.scss +37 -37
  43. package/assets/sass/burh-ds/mixins/_breakpoints.scss +39 -39
  44. package/assets/sass/burh-ds/mixins/_grid-framework.scss +66 -66
  45. package/assets/sass/burh-ds/mixins/_grid.scss +51 -51
  46. package/assets/sass/burh-ds/molecules/_box.scss +282 -282
  47. package/assets/sass/burh-ds/molecules/_breadcrumb.scss +8 -8
  48. package/assets/sass/burh-ds/molecules/_modal.scss +175 -175
  49. package/assets/sass/burh-ds/molecules/_navbar.scss +262 -262
  50. package/assets/sass/burh-ds/molecules/_notifications.scss +1 -1
  51. package/assets/sass/burh-ds/molecules/_steps-profile.scss +67 -67
  52. package/assets/sass/burh-ds/molecules/_testimonial.scss +53 -53
  53. package/assets/sass/burh-ds/organisms/_banner.scss +51 -51
  54. package/assets/sass/burh-ds/organisms/_cards.scss +228 -228
  55. package/assets/sass/burh-ds/organisms/_carousel.scss +113 -113
  56. package/assets/sass/burh-ds/organisms/_footer.scss +115 -115
  57. package/assets/sass/burh-ds/organisms/_profile-bar.scss +130 -130
  58. package/assets/sass/burh-ds/organisms/_search.scss +17 -17
  59. package/assets/sass/burh-ds/organisms/_subheader.scss +773 -773
  60. package/assets/sass/burh-ds/organisms/_tabs-setting.scss +123 -123
  61. package/assets/sass/burh-ds/organisms/banners/_banner.scss +62 -62
  62. package/assets/sass/burh-ds/organisms/cards/_featured-company.scss +17 -17
  63. package/assets/sass/burh-ds/organisms/cards/_opportunity.scss +16 -16
  64. package/assets/sass/burh-ds/pages/_error.scss +124 -124
  65. package/assets/sass/burh-ds/pages/_jobs.scss +424 -424
  66. package/assets/sass/burh-ds/pages/_testes.scss +350 -350
  67. package/assets/sass/burh-ds/variables/_colors.scss +350 -350
  68. package/assets/sass/burh-ds/variables/_global_settings.scss +39 -39
  69. package/assets/sass/core/alerts/_alert-dismissible.scss +48 -48
  70. package/assets/sass/core/alerts/_alert-notify.scss +47 -47
  71. package/assets/sass/core/alerts/_alert.scss +49 -49
  72. package/assets/sass/core/avatars/_avatar-group.scss +22 -22
  73. package/assets/sass/core/avatars/_avatar.scss +59 -59
  74. package/assets/sass/core/badges/_badge-circle.scss +29 -29
  75. package/assets/sass/core/badges/_badge-dot.scss +42 -42
  76. package/assets/sass/core/badges/_badge-floating.scss +18 -18
  77. package/assets/sass/core/badges/_badge.scss +67 -67
  78. package/assets/sass/core/breadcrumbs/_breadcrumb.scss +42 -42
  79. package/assets/sass/core/buttons/_button-brand.scss +12 -12
  80. package/assets/sass/core/buttons/_button-group.scss +79 -79
  81. package/assets/sass/core/buttons/_button-icon.scss +92 -92
  82. package/assets/sass/core/buttons/_button.scss +90 -90
  83. package/assets/sass/core/cards/_card-animations.scss +10 -10
  84. package/assets/sass/core/cards/_card-blockquote.scss +17 -17
  85. package/assets/sass/core/cards/_card-money.scss +27 -27
  86. package/assets/sass/core/cards/_card-pricing.scss +26 -26
  87. package/assets/sass/core/cards/_card-profile.scss +49 -49
  88. package/assets/sass/core/cards/_card-stats.scss +16 -16
  89. package/assets/sass/core/cards/_card.scss +70 -70
  90. package/assets/sass/core/charts/_chart.scss +69 -69
  91. package/assets/sass/core/close/_close.scss +47 -47
  92. package/assets/sass/core/collapse/_accordion.scss +38 -38
  93. package/assets/sass/core/content/_main-content.scss +17 -17
  94. package/assets/sass/core/custom-forms/_custom-checkbox.scss +47 -47
  95. package/assets/sass/core/custom-forms/_custom-control.scss +58 -58
  96. package/assets/sass/core/custom-forms/_custom-form.scss +45 -45
  97. package/assets/sass/core/custom-forms/_custom-radio.scss +38 -38
  98. package/assets/sass/core/custom-forms/_custom-toggle.scss +122 -122
  99. package/assets/sass/core/dropdowns/_dropdown.scss +89 -89
  100. package/assets/sass/core/footers/_footer.scss +159 -159
  101. package/assets/sass/core/forms/_form-extend.scss +38 -38
  102. package/assets/sass/core/forms/_form-validation.scss +78 -78
  103. package/assets/sass/core/forms/_form.scss +125 -125
  104. package/assets/sass/core/forms/_input-group.scss +136 -136
  105. package/assets/sass/core/grid/_grid.scss +31 -31
  106. package/assets/sass/core/headers/_header.scss +7 -7
  107. package/assets/sass/core/icons/_icon-actions.scss +57 -57
  108. package/assets/sass/core/icons/_icon-shape.scss +48 -48
  109. package/assets/sass/core/icons/_icon.scss +88 -88
  110. package/assets/sass/core/list-groups/_list-check.scss +52 -52
  111. package/assets/sass/core/list-groups/_list-group.scss +46 -46
  112. package/assets/sass/core/maps/_map.scss +10 -10
  113. package/assets/sass/core/masks/_mask.scss +33 -33
  114. package/assets/sass/core/medias/_media-comment.scss +33 -33
  115. package/assets/sass/core/medias/_media.scss +3 -3
  116. package/assets/sass/core/mixins/_alert.scss +22 -22
  117. package/assets/sass/core/mixins/_background-variant.scss +30 -30
  118. package/assets/sass/core/mixins/_badge.scss +12 -12
  119. package/assets/sass/core/mixins/_buttons.scss +105 -105
  120. package/assets/sass/core/mixins/_custom-forms.scss +47 -47
  121. package/assets/sass/core/mixins/_forms.scss +127 -127
  122. package/assets/sass/core/mixins/_icon.scss +10 -10
  123. package/assets/sass/core/mixins/_modals.scss +25 -25
  124. package/assets/sass/core/mixins/_popover.scss +35 -35
  125. package/assets/sass/core/modals/_modal.scss +31 -31
  126. package/assets/sass/core/navbars/_navbar-collapse.scss +37 -37
  127. package/assets/sass/core/navbars/_navbar-dropdown.scss +121 -121
  128. package/assets/sass/core/navbars/_navbar-floating.scss +17 -17
  129. package/assets/sass/core/navbars/_navbar-search.scss +216 -216
  130. package/assets/sass/core/navbars/_navbar-top.scss +58 -58
  131. package/assets/sass/core/navbars/_navbar-vertical.scss +507 -507
  132. package/assets/sass/core/navbars/_navbar.scss +368 -368
  133. package/assets/sass/core/navs/_nav-pills.scss +66 -66
  134. package/assets/sass/core/navs/_nav.scss +33 -33
  135. package/assets/sass/core/paginations/_pagination.scss +49 -49
  136. package/assets/sass/core/popovers/_popover.scss +21 -21
  137. package/assets/sass/core/progresses/_progress.scss +89 -89
  138. package/assets/sass/core/reboot/_reboot.scss +13 -13
  139. package/assets/sass/core/sections/_nucleo-icons.scss +117 -117
  140. package/assets/sass/core/separators/_separator.scss +54 -54
  141. package/assets/sass/core/shortcuts/_shortcut.scss +30 -30
  142. package/assets/sass/core/tables/_table-actions.scss +25 -25
  143. package/assets/sass/core/tables/_table-sortable.scss +28 -28
  144. package/assets/sass/core/tables/_table.scss +153 -153
  145. package/assets/sass/core/timeline/_timeline.scss +182 -182
  146. package/assets/sass/core/type/_article.scss +22 -22
  147. package/assets/sass/core/type/_display.scss +14 -14
  148. package/assets/sass/core/type/_heading.scss +65 -65
  149. package/assets/sass/core/type/_type.scss +27 -27
  150. package/assets/sass/core/utilities/_backgrounds.scss +51 -51
  151. package/assets/sass/core/utilities/_blurable.scss +37 -37
  152. package/assets/sass/core/utilities/_floating.scss +64 -64
  153. package/assets/sass/core/utilities/_helper.scss +18 -18
  154. package/assets/sass/core/utilities/_image.scss +9 -9
  155. package/assets/sass/core/utilities/_opacity.scss +35 -35
  156. package/assets/sass/core/utilities/_overflow.scss +11 -11
  157. package/assets/sass/core/utilities/_position.scss +25 -25
  158. package/assets/sass/core/utilities/_shadows.scss +28 -28
  159. package/assets/sass/core/utilities/_sizing.scss +7 -7
  160. package/assets/sass/core/utilities/_spacing.scss +107 -107
  161. package/assets/sass/core/utilities/_text.scss +49 -49
  162. package/assets/sass/core/utilities/_transform.scss +13 -13
  163. package/assets/sass/core/vendors/_bootstrap-datepicker.scss +279 -279
  164. package/assets/sass/core/vendors/_bootstrap-tagsinput.scss +67 -67
  165. package/assets/sass/core/vendors/_chartjs.scss +22 -22
  166. package/assets/sass/core/vendors/_dropzone.scss +74 -74
  167. package/assets/sass/core/vendors/_element-checkbox.scss +26 -26
  168. package/assets/sass/core/vendors/_element-tables.scss +61 -61
  169. package/assets/sass/core/vendors/_flatpickr.scss +72 -72
  170. package/assets/sass/core/vendors/_fullcalendar.scss +256 -256
  171. package/assets/sass/core/vendors/_headroom.scss +25 -25
  172. package/assets/sass/core/vendors/_lavalamp.scss +157 -157
  173. package/assets/sass/core/vendors/_nouislider.scss +413 -413
  174. package/assets/sass/core/vendors/_quill.scss +280 -280
  175. package/assets/sass/core/vendors/_scrollbar.scss +949 -949
  176. package/assets/sass/core/vendors/_select.scss +70 -70
  177. package/assets/sass/core/vendors/_sweet-alert-2.scss +22 -22
  178. package/assets/sass/core/vendors/_tags.scss +32 -32
  179. package/assets/sass/core/vendors/_vectormap.scss +16 -16
  180. package/assets/sass/custom/_components.scss +142 -142
  181. package/assets/sass/custom/_functions.scss +29 -29
  182. package/assets/sass/custom/_mixins.scss +15 -15
  183. package/assets/sass/custom/_transitions.scss +12 -12
  184. package/assets/sass/custom/_utilities.scss +31 -31
  185. package/assets/sass/custom/_variables.scss +1077 -1077
  186. package/assets/sass/custom/_vendors.scss +38 -38
  187. package/components/argon-core/Badge.vue +56 -56
  188. package/components/argon-core/Banners/Banner.vue +28 -28
  189. package/components/argon-core/Banners/BannerItem.vue +13 -13
  190. package/components/argon-core/BaseAlert.vue +74 -74
  191. package/components/argon-core/BaseButton.vue +81 -81
  192. package/components/argon-core/BaseHeader.vue +21 -21
  193. package/components/argon-core/BasePagination.vue +172 -172
  194. package/components/argon-core/BaseProgress.vue +121 -121
  195. package/components/argon-core/BaseSlider.vue +96 -96
  196. package/components/argon-core/BaseSwitch.vue +46 -46
  197. package/components/argon-core/BaseTable.vue +70 -70
  198. package/components/argon-core/Breadcrumb/Breadcrumb.vue +26 -26
  199. package/components/argon-core/Breadcrumb/BreadcrumbItem.vue +16 -16
  200. package/components/argon-core/Breadcrumb/RouteBreadcrumb.vue +45 -45
  201. package/components/argon-core/ButtonCheckbox.vue +39 -39
  202. package/components/argon-core/ButtonRadioGroup.vue +47 -47
  203. package/components/argon-core/Cards/Card.vue +71 -71
  204. package/components/argon-core/Cards/OpportunityCard.vue +39 -39
  205. package/components/argon-core/Cards/StatsCard.vue +49 -49
  206. package/components/argon-core/Charts/BarChart.js +30 -30
  207. package/components/argon-core/Charts/DoughnutChart.js +30 -30
  208. package/components/argon-core/Charts/LineChart.js +30 -30
  209. package/components/argon-core/Charts/PieChart.js +30 -30
  210. package/components/argon-core/Charts/config.js +491 -491
  211. package/components/argon-core/Charts/globalOptionsMixin.js +7 -7
  212. package/components/argon-core/Charts/optionHelpers.js +10 -10
  213. package/components/argon-core/CloseButton.vue +35 -35
  214. package/components/argon-core/Collapse/Collapse.vue +84 -84
  215. package/components/argon-core/Collapse/CollapseItem.vue +91 -91
  216. package/components/argon-core/Feed/Comment.vue +50 -50
  217. package/components/argon-core/Inputs/BaseCheckbox.vue +79 -79
  218. package/components/argon-core/Inputs/BaseInput.vue +242 -242
  219. package/components/argon-core/Inputs/BaseRadio.vue +68 -68
  220. package/components/argon-core/Inputs/DropzoneFileUpload.vue +138 -138
  221. package/components/argon-core/Inputs/DropzoneVideoUpload.vue +138 -138
  222. package/components/argon-core/Inputs/FileInput.vue +54 -54
  223. package/components/argon-core/Inputs/HtmlEditor.vue +105 -105
  224. package/components/argon-core/Inputs/IconCheckbox.vue +45 -45
  225. package/components/argon-core/Inputs/TagsInput.vue +100 -100
  226. package/components/argon-core/Modal.vue +183 -183
  227. package/components/argon-core/Navbar/BaseNav.vue +122 -122
  228. package/components/argon-core/Navbar/NavbarProgress.vue +19 -19
  229. package/components/argon-core/Navbar/NavbarProgressItem.vue +17 -17
  230. package/components/argon-core/Navbar/NavbarToggleButton.vue +21 -21
  231. package/components/argon-core/NavbarToggleButton.vue +29 -29
  232. package/components/argon-core/NotificationPlugin/Notification.vue +207 -207
  233. package/components/argon-core/NotificationPlugin/Notifications.vue +55 -55
  234. package/components/argon-core/NotificationPlugin/index.js +66 -66
  235. package/components/argon-core/SidebarPlugin/SideBar.vue +119 -119
  236. package/components/argon-core/SidebarPlugin/SidebarItem.vue +184 -184
  237. package/components/argon-core/SidebarPlugin/index.js +79 -79
  238. package/components/argon-core/Tabs/Tab.vue +33 -33
  239. package/components/argon-core/Tabs/Tabs.vue +170 -170
  240. package/components/argon-core/Timeline/TimeLine.vue +17 -17
  241. package/components/argon-core/Timeline/TimeLineItem.vue +30 -30
  242. package/components/argon-core/WorldMap/AsyncWorldMap.vue +28 -28
  243. package/components/argon-core/WorldMap/WorldMap.vue +127 -127
  244. package/components/argon-core/index.js +82 -82
  245. package/components/burh-ds/Avatar/AvatarLink.vue +40 -40
  246. package/components/burh-ds/Avatar/BusinessAvatar.vue +38 -38
  247. package/components/burh-ds/Banners/BannerHero.vue +23 -23
  248. package/components/burh-ds/Banners/BannerItem.vue +14 -14
  249. package/components/burh-ds/Button/ExportButton.vue +20 -20
  250. package/components/burh-ds/Button/SwitchStateButton.vue +165 -165
  251. package/components/burh-ds/Capsules/SearchSlug.vue +860 -860
  252. package/components/burh-ds/Capsules/UserProfile.vue +1938 -1938
  253. package/components/burh-ds/Cards/CampaignCard.vue +40 -40
  254. package/components/burh-ds/Cards/CompanyCard.vue +39 -39
  255. package/components/burh-ds/Cards/CourseInfoCard.vue +72 -72
  256. package/components/burh-ds/Cards/FunctionalityItem.vue +35 -35
  257. package/components/burh-ds/Cards/OpportunityCard.vue +115 -115
  258. package/components/burh-ds/Cards/PerformanceItem.vue +65 -65
  259. package/components/burh-ds/Cards/PlanCard.vue +192 -192
  260. package/components/burh-ds/Cards/ProductCard.vue +142 -142
  261. package/components/burh-ds/Cards/PurchaseCard.vue +58 -58
  262. package/components/burh-ds/Cards/PurchaseCardSimple.vue +58 -58
  263. package/components/burh-ds/Cards/TestCard.vue +192 -192
  264. package/components/burh-ds/Cards/TrainingCard.vue +151 -151
  265. package/components/burh-ds/Cards/WelcomeCard.vue +106 -106
  266. package/components/burh-ds/Carousel/FeedCarousel.vue +47 -47
  267. package/components/burh-ds/Carousel/ImageCarousel.vue +111 -111
  268. package/components/burh-ds/Collapse/DefaultCollapse.vue +70 -70
  269. package/components/burh-ds/Crop/Crop.vue +121 -121
  270. package/components/burh-ds/Curriculum/UserCurriculum/UpgradePlan.vue +74 -74
  271. package/components/burh-ds/Curriculum/UserCurriculum/UserCvLeftSide.vue +516 -516
  272. package/components/burh-ds/Curriculum/UserCurriculum/UserCvMiddle.vue +599 -512
  273. package/components/burh-ds/Curriculum/UserCurriculum/UserCvRightSide.vue +819 -819
  274. package/components/burh-ds/Curriculum/UserCurriculum/index.vue +249 -249
  275. package/components/burh-ds/Dropdown/AppLinkArea.vue +132 -132
  276. package/components/burh-ds/Dropdown/DropdownItem.vue +26 -26
  277. package/components/burh-ds/Dropdown/DropdownSection.vue +38 -38
  278. package/components/burh-ds/Dropdown/FaqVideoArea.vue +88 -88
  279. package/components/burh-ds/Dropdown/SignOutItem.vue +11 -11
  280. package/components/burh-ds/Dropdown/UserMenuDropdown.vue +63 -63
  281. package/components/burh-ds/FeaturedCompanies/FeaturedCompanies.vue +11 -11
  282. package/components/burh-ds/FeaturedCompanies/FeaturedCompanyCard.vue +16 -16
  283. package/components/burh-ds/Filters/FilterWithDropdown.vue +248 -248
  284. package/components/burh-ds/Groups/ProductItem.vue +62 -62
  285. package/components/burh-ds/Groups/SimpleProductItem.vue +145 -129
  286. package/components/burh-ds/Headings/BaseHeader.vue +24 -24
  287. package/components/burh-ds/Headings/Profile.vue +66 -66
  288. package/components/burh-ds/Headings/ProfileHeader.vue +105 -105
  289. package/components/burh-ds/Headings/SettingsHeader.vue +48 -48
  290. package/components/burh-ds/Headings/StepHeader.vue +122 -122
  291. package/components/burh-ds/Input/AutoComplete.vue +136 -136
  292. package/components/burh-ds/Inputs/BaseCheckbox.vue +73 -73
  293. package/components/burh-ds/Inputs/BaseSwitch.vue +43 -43
  294. package/components/burh-ds/Inputs/BaseSwitchSecondary.vue +84 -84
  295. package/components/burh-ds/Inputs/DoubleInputWithIcon.vue +100 -100
  296. package/components/burh-ds/Inputs/HtmlEditor.vue +64 -64
  297. package/components/burh-ds/InterfaceSpa/InterfaceSpa.vue +83 -83
  298. package/components/burh-ds/Jobs/JobDetail.vue +432 -432
  299. package/components/burh-ds/Jobs/JobDetailDesign.vue +151 -151
  300. package/components/burh-ds/Jobs/JobDetailEmpty.vue +27 -27
  301. package/components/burh-ds/Labels/LabelContextIcon.vue +58 -58
  302. package/components/burh-ds/Link/DefaultLink.vue +30 -30
  303. package/components/burh-ds/Lists/ListAvatarCheckbox.vue +157 -157
  304. package/components/burh-ds/Lists/ListNavLinks.vue +54 -54
  305. package/components/burh-ds/Lists/VagasSimple.vue +404 -404
  306. package/components/burh-ds/Loadings/Basics.vue +80 -80
  307. package/components/burh-ds/Loadings/InfiniteLoading.vue +21 -21
  308. package/components/burh-ds/Loadings/LoadingFullPage.vue +68 -68
  309. package/components/burh-ds/Loadings/NewLoading.vue +119 -119
  310. package/components/burh-ds/Loads/LoadingBar.vue +83 -83
  311. package/components/burh-ds/Modals/AddCustomerModal.vue +527 -527
  312. package/components/burh-ds/Modals/AddMember.vue +301 -301
  313. package/components/burh-ds/Modals/AddRoleModal.vue +185 -185
  314. package/components/burh-ds/Modals/AppConfigModal.vue +390 -390
  315. package/components/burh-ds/Modals/CourseMessageModal.vue +66 -66
  316. package/components/burh-ds/Modals/DocsModal.vue +111 -111
  317. package/components/burh-ds/Modals/DropzoneModal.vue +123 -123
  318. package/components/burh-ds/Modals/InviteToRole.vue +272 -272
  319. package/components/burh-ds/Modals/MobileModal.vue +65 -65
  320. package/components/burh-ds/Modals/ModalTests.vue +167 -167
  321. package/components/burh-ds/Modals/PlanModal.vue +286 -286
  322. package/components/burh-ds/Modals/RequestModal.vue +281 -281
  323. package/components/burh-ds/Modals/SendCourse.vue +369 -369
  324. package/components/burh-ds/Modals/SendDisc.vue +230 -230
  325. package/components/burh-ds/Modals/SendTest.vue +369 -349
  326. package/components/burh-ds/Modals/ShareModal.vue +228 -228
  327. package/components/burh-ds/Modals/SmsModal.vue +327 -327
  328. package/components/burh-ds/Modals/SubModal.vue +41 -41
  329. package/components/burh-ds/Modals/UniversityAccessModal.vue +133 -133
  330. package/components/burh-ds/Modals/VideoModal.vue +80 -80
  331. package/components/burh-ds/Modals/WhatsappModal.vue +143 -143
  332. package/components/burh-ds/Navbar/BaseNav.vue +132 -132
  333. package/components/burh-ds/Notifications/Notification.vue +215 -215
  334. package/components/burh-ds/Notifications/Notifications.vue +55 -55
  335. package/components/burh-ds/Notifications/index.js +66 -66
  336. package/components/burh-ds/Pagination/NamedPagination.vue +176 -176
  337. package/components/burh-ds/Questions/Question.vue +183 -183
  338. package/components/burh-ds/Questions/QuestionAttach.vue +13 -13
  339. package/components/burh-ds/Questions/QuestionRadio.vue +122 -122
  340. package/components/burh-ds/Questions/QuestionRadioItem.vue +83 -83
  341. package/components/burh-ds/Questions/QuestionText.vue +66 -66
  342. package/components/burh-ds/Questions/index.js +13 -13
  343. package/components/burh-ds/Skeleton/BaseCardTest.vue +51 -51
  344. package/components/burh-ds/Skeleton/BaseTraining.vue +29 -29
  345. package/components/burh-ds/Skeleton/BufferFolderSkeleton.vue +41 -41
  346. package/components/burh-ds/Skeleton/BufferUserSkeleton.vue +142 -142
  347. package/components/burh-ds/Skeleton/Home.vue +100 -100
  348. package/components/burh-ds/Skeleton/RecruitmentCard.vue +203 -169
  349. package/components/burh-ds/Tabs/Tab.vue +56 -56
  350. package/components/burh-ds/Tabs/Tabs.vue +188 -188
  351. package/components/burh-ds/Video/MuxVideo.vue +39 -39
  352. package/components/burh-ds/index.js +20 -20
  353. package/components/layouts/argon/Content.vue +17 -17
  354. package/components/layouts/argon/navbar/BlankLayout.vue +61 -61
  355. package/components/layouts/argon/navbar/DashboardNavbar.vue +307 -307
  356. package/components/layouts/burh-ds/ContentFooter.vue +45 -45
  357. package/components/layouts/burh-ds/footer/FooterSimple.vue +20 -20
  358. package/components/layouts/burh-ds/footer/ProductsFooter.vue +330 -330
  359. package/components/layouts/burh-ds/footer/StatusFooter.vue +105 -105
  360. package/components/layouts/burh-ds/footer/StoreFooter.vue +54 -54
  361. package/components/layouts/burh-ds/navbar/AppNavbar.vue +97 -97
  362. package/components/layouts/burh-ds/navbar/BusinessGlobalNavbar.vue +435 -435
  363. package/components/layouts/burh-ds/navbar/CarreirasNavbar.vue +363 -363
  364. package/components/layouts/burh-ds/navbar/CompanyGlobalNavbar.vue +244 -244
  365. package/components/layouts/burh-ds/navbar/EmpresasNavbar.vue +374 -374
  366. package/components/layouts/burh-ds/navbar/EmpresasNavbarLogado.vue +388 -388
  367. package/components/layouts/burh-ds/navbar/GlobalNavbar.vue +535 -535
  368. package/components/layouts/burh-ds/navbar/MobileNavbar.vue +431 -431
  369. package/components/layouts/burh-ds/navbar/SimpleNavbar.vue +129 -129
  370. package/components/layouts/burh-ds/navbar/UserNavbar.vue +346 -346
  371. package/components/layouts/burh-ds/navbar/UserNavbarLogin.vue +253 -253
  372. package/components/pages/UserProfile/EditProfileForm.vue +142 -142
  373. package/components/pages/UserProfile/UserCard.vue +61 -61
  374. package/components/pages/dashboard/ActivityFeed.vue +102 -102
  375. package/components/pages/dashboard/LightTable.vue +194 -194
  376. package/components/pages/dashboard/PageVisitsTable.vue +107 -107
  377. package/components/pages/dashboard/ProgressTrackList.vue +82 -82
  378. package/components/pages/dashboard/SocialTrafficTable.vue +101 -101
  379. package/components/pages/dashboard/TaskList.vue +56 -56
  380. package/components/pages/dashboard/UserList.vue +72 -72
  381. package/components/pages/forms/BrowserDefaultsValidation.vue +106 -106
  382. package/components/pages/forms/CustomStylesValidation.vue +130 -130
  383. package/components/pages/forms/ServerSideValidation.vue +128 -128
  384. package/components/pages/register/FailedRegistration.vue +29 -29
  385. package/components/pages/register/SuccessfulRegistration.vue +29 -29
  386. package/components/tables/PaginatedTables/clientPaginationMixin.js +86 -86
  387. package/components/tables/RegularTables/CheckboxColoredTable.vue +112 -112
  388. package/components/tables/RegularTables/CheckboxTable.vue +101 -101
  389. package/components/tables/RegularTables/DarkTable.vue +114 -114
  390. package/components/tables/RegularTables/InlineActionsTable.vue +94 -94
  391. package/components/tables/RegularTables/LightTable.vue +117 -117
  392. package/components/tables/RegularTables/StripedTable.vue +94 -94
  393. package/components/tables/RegularTables/TranslucentTable.vue +114 -114
  394. package/components/tables/projects.js +75 -75
  395. package/components/tables/users.js +42 -42
  396. package/components/tables/users2.js +474 -474
  397. package/components/widgets/CalendarWidget.vue +119 -119
  398. package/components/widgets/CreditCard.vue +66 -66
  399. package/components/widgets/MembersCard.vue +99 -99
  400. package/components/widgets/PaypalCard.vue +45 -45
  401. package/components/widgets/ProgressTrackList.vue +76 -76
  402. package/components/widgets/StatsCards.vue +70 -70
  403. package/components/widgets/TaskList.vue +67 -67
  404. package/components/widgets/TimelineCard.vue +66 -66
  405. package/components/widgets/VectorMapCard.vue +139 -139
  406. package/components/widgets/VisaCard.vue +51 -51
  407. package/data/ListVideoLinksMock.json +21 -21
  408. package/dictionary.js +38 -38
  409. package/environment.env.md +34 -34
  410. package/eslint.config.json +12 -12
  411. package/layouts/AuthLayout.vue +191 -191
  412. package/layouts/BurhCarreirasLayout.vue +63 -63
  413. package/layouts/BurhEmpresasLayout.vue +64 -64
  414. package/layouts/BurhNoHeader.vue +63 -63
  415. package/layouts/BurhPublicLayout.vue +67 -67
  416. package/layouts/BurhUserLayout.vue +231 -231
  417. package/layouts/DashboardLayout.vue +226 -226
  418. package/layouts/error.vue +119 -119
  419. package/metadata.json +30 -30
  420. package/middleware/README.md +8 -8
  421. package/middleware/decodeUrl.js +8 -8
  422. package/middleware/maintenance.js +9 -9
  423. package/middleware/new-account.js +6 -6
  424. package/middleware/redirect.js +13 -13
  425. package/middleware/user-agent-error.js +28 -28
  426. package/package.json +114 -114
  427. package/plugins/README.md +7 -7
  428. package/plugins/analytics/ga.js +28 -28
  429. package/plugins/auth/auth.js +210 -210
  430. package/plugins/axios.js +32 -32
  431. package/plugins/carousel/owl-carousel.js +3 -3
  432. package/plugins/crop/crop.js +4 -4
  433. package/plugins/dashboard/dashboard-plugin.js +29 -29
  434. package/plugins/dashboard/directives/click-outside.js +15 -15
  435. package/plugins/dashboard/eventBus.js +1 -1
  436. package/plugins/dashboard/globalComponents.js +41 -41
  437. package/plugins/dashboard/globalDirectives.js +7 -7
  438. package/plugins/dom/loader.js +76 -76
  439. package/plugins/localstorage.js +20 -20
  440. package/plugins/location/location.js +41 -41
  441. package/plugins/pagination/pagination.js +3 -3
  442. package/plugins/qrcode/qrcode.js +4 -4
  443. package/plugins/router.js +8 -8
  444. package/plugins/social-media/fb-sdk.js +44 -44
  445. package/plugins/social-media/share-link-facebook.js +32 -32
  446. package/plugins/social-media/share-link-linkedin.js +30 -30
  447. package/plugins/social-media/share-link-twitter.js +30 -30
  448. package/plugins/social-media/share-link-whatsapp.js +31 -31
  449. package/polyfills.js +96 -96
  450. package/util/common.js +189 -189
  451. package/util/cookie.js +28 -28
  452. package/util/dom.js +63 -63
  453. package/util/getPrefixes.js +12 -12
  454. package/util/request.js +46 -46
  455. package/util/throttle.js +15 -15
@@ -1,390 +1,390 @@
1
- <template>
2
- <modal
3
- :show.sync="openModal"
4
- modalContentClasses="container-fluid"
5
- headerClasses="row px-4 pt-5"
6
- bodyClasses="row px-4"
7
- size="lg"
8
- class="modal"
9
- >
10
- <template slot="">
11
- <div class="pl-3 mt-5 text-right">
12
- <h2 class="display-4">{{ title }}</h2>
13
- </div>
14
- </template>
15
-
16
- <validation-observer ref="appConfigModal" tag="div">
17
- <validation-provider
18
- tag="div"
19
- class="col-12 mt-5"
20
- :vid="`name`"
21
- name="name"
22
- rules="required"
23
- v-slot="{ errors }"
24
- >
25
- <base-input
26
- :label="name"
27
- :placeholder="inputPlaceholders.firstInput"
28
- required
29
- v-model="configInfo.title"
30
- :error="errors[0]"
31
- :valid="errors.length ? true : false"
32
- >
33
- </base-input>
34
- </validation-provider>
35
-
36
- <div class="col-12 mb-4">
37
- <label for="description" class="form-control-label">{{
38
- textAreaTitle
39
- }}</label>
40
- <textarea
41
- id="description"
42
- class="form-control"
43
- :placeholder="inputPlaceholders.secondInput"
44
- v-model="configInfo.textarea"
45
- ></textarea>
46
- </div>
47
-
48
- <div
49
- class="col-12 mb-4 d-flex flex-column"
50
- v-if="!isCourse && categories && categories.length"
51
- >
52
- <label for="category" class="form-control-label"
53
- >Categoria</label
54
- >
55
- <el-select
56
- filterable
57
- class="select-danger"
58
- id="category"
59
- :empty="'Nenhuma categoria foi encontrada'"
60
- v-model="configInfo.category"
61
- :placeholder="''"
62
- >
63
- <el-option
64
- v-for="(category, index) in categories"
65
- :key="category.id"
66
- :label="category.name"
67
- :value="category.id"
68
- :selected="index == 0 && configInfo.category == null"
69
- >
70
- </el-option>
71
- </el-select>
72
- </div>
73
-
74
- <div class="col-12 mb-4" v-if="isCourse">
75
- <base-input
76
- v-mask="['##:##:##']"
77
- :label="'Carga horária'"
78
- :placeholder="inputPlaceholders.thirdInput"
79
- v-model="configInfo.workload"
80
- ></base-input>
81
- </div>
82
-
83
- <slot name="testes"></slot>
84
-
85
- <slot name="nota"></slot>
86
-
87
- <slot name="email"></slot>
88
-
89
- <div class="col-12 mb-4">
90
- <label class="mb-0 form-control-label mb-3">{{
91
- buttonAreaTitle
92
- }}</label>
93
-
94
- <div class="row">
95
- <div
96
- class="col-6 col-lg-3"
97
- v-for="(buttons, index) in buttons"
98
- :key="index"
99
- >
100
- <button
101
- role="button"
102
- class="tag tag-outline-primary d-block w-100 buttons"
103
- :id="'button-' + buttons.id"
104
- :value="buttons.value"
105
- :class="
106
- buttons.id == currentSelectedButton
107
- ? 'active'
108
- : ''
109
- "
110
- @click="timeSelection(buttons.id)"
111
- >
112
- <i
113
- v-if="buttons.id == currentSelectedButton"
114
- class="fas fa-check mr-1"
115
- ></i>
116
- <small>{{ buttons.time }}</small>
117
- </button>
118
- </div>
119
- </div>
120
- </div>
121
- <div class="col-12 d-flex pb-4">
122
- <base-button
123
- size="md"
124
- type="primary"
125
- role="button"
126
- @click="sendConfig()"
127
- class="ml-auto"
128
- :disabled="!configInfo.title"
129
- >{{ configAppButton }}
130
- </base-button>
131
- </div>
132
- </validation-observer>
133
-
134
- <span class="tool tool-close" @click="$emit('close-modal')">
135
- Fechar
136
- <font-awesome-icon
137
- :icon="['fas', 'times']"
138
- class="text-white ml-1"
139
- />
140
- </span>
141
- </modal>
142
- </template>
143
- <script>
144
- import { mask } from 'vue-the-mask';
145
- import { Select, Option } from 'element-ui';
146
- export default {
147
- components: {
148
- [Select.name]: Select,
149
- [Option.name]: Option
150
- },
151
- directives: { mask },
152
- data() {
153
- return {
154
- configInfo: {
155
- title: this.titleValue,
156
- textarea: this.textAreaValue,
157
- selectedTime: '',
158
- workload: this.workloadValue,
159
- category: this.testCategories
160
- },
161
- currentSelectedButton: String,
162
- value: ''
163
- };
164
- },
165
- model: {
166
- prop: 'show'
167
- },
168
- props: {
169
- isCourse: {
170
- type: Boolean,
171
- default: false
172
- },
173
- inputPlaceholders: {
174
- type: Object,
175
- default: () => ({
176
- firstInput: 'Insira o nome do teste',
177
- secondInput: 'Insira a descrição do teste',
178
- thirdInput: 'Insira a carga horária do curso'
179
- })
180
- },
181
- show: {
182
- type: Boolean,
183
- default: false
184
- },
185
- name: {
186
- type: String,
187
- default: 'Nome'
188
- },
189
- defaultButtonSelected: {
190
- type: Number,
191
- default: 6
192
- },
193
- testId: {
194
- type: Number,
195
- default: null
196
- },
197
- buttons: {
198
- type: Array,
199
- default: () => [
200
- { id: '1', time: '5 minutos', value: '00:05:00' },
201
- { id: '2', time: '10 minutos', value: '00:10:00' },
202
- { id: '3', time: '15 minutos', value: '00:15:00' },
203
- { id: '4', time: '30 minutos', value: '00:30:00' },
204
- { id: '5', time: '45 minutos', value: '00:45:00' },
205
- { id: '6', time: '60 minutos', value: '01:00:00' },
206
- { id: '7', time: '2 horas', value: '02:00:00' },
207
- { id: '8', time: '8 horas', value: '08:00:00' }
208
- ],
209
- description: 'Botoes de tempo'
210
- },
211
- title: {
212
- type: String,
213
- default: 'Criar Teste',
214
- description: 'Titulo do Modal'
215
- },
216
- workloadTitle: {
217
- type: String,
218
- default: 'Carga horária',
219
- description:
220
- 'Carga horária do curso, apenas se o modal for usado para a pagina de cursos'
221
- },
222
- textAreaTitle: {
223
- type: String,
224
- default: 'Descrição',
225
- description: 'Titulo da text area'
226
- },
227
- buttonAreaTitle: {
228
- type: String,
229
- default: 'Tempo Limite',
230
- description: 'Titulo da area de botões'
231
- },
232
- configAppButton: {
233
- type: String,
234
- default: 'Salvar',
235
- description: 'Botão de envio'
236
- },
237
- titleValue: {
238
- type: String,
239
- default: ''
240
- },
241
- textAreaValue: {
242
- type: String,
243
- default: ''
244
- },
245
- workloadValue: {
246
- type: String,
247
- default: '00:00:00'
248
- },
249
- time: {
250
- type: String,
251
- default: ''
252
- },
253
- testCategories: {
254
- type: Number,
255
- default: null
256
- },
257
- categories: {
258
- type: Array,
259
- default: () => []
260
- }
261
- },
262
- watch: {
263
- titleValue(newValue) {
264
- this.configInfo.title = newValue;
265
- },
266
- textAreaValue(newValue) {
267
- this.configInfo.textarea = newValue;
268
- },
269
- workloadValue(newValue) {
270
- this.configInfo.workload = newValue;
271
- },
272
- time(newValue) {
273
- this.configInfo.selectedTime = newValue;
274
- },
275
- testCategories(newValue) {
276
- this.configInfo.category = newValue;
277
- },
278
- show(value) {
279
- const isCategoryInitialized = this.configInfo.category
280
- ? true
281
- : false;
282
- if (value && !this.isCourse && !isCategoryInitialized) {
283
- this.configInfo.category = this.categories[0].id;
284
- }
285
- }
286
- },
287
- mounted() {
288
- this.loadTime();
289
- },
290
- computed: {
291
- openModal: {
292
- get() {
293
- return this.show;
294
- },
295
- set(show) {
296
- this.$emit('input', show);
297
- }
298
- }
299
- },
300
- methods: {
301
- loadTime() {
302
- let time = this.buttons.find(e => e.value === this.time);
303
- if (time != null) {
304
- this.currentSelectedButton = time.id;
305
- this.configInfo.selectedTime = this.time;
306
- } else {
307
- time = this.buttons.find(
308
- e => e.id == this.defaultButtonSelected
309
- );
310
- this.currentSelectedButton = time.id;
311
- this.configInfo.selectedTime = time.value;
312
- }
313
- },
314
- timeSelection(buttonId) {
315
- let btn = document.getElementById('button-' + buttonId);
316
- this.configInfo.selectedTime = btn.value;
317
- this.currentSelectedButton = buttonId;
318
- },
319
- async sendConfig() {
320
- const pass = await this.$refs.appConfigModal.validate();
321
- if (!pass) {
322
- return;
323
- }
324
- let config;
325
- if (!this.isCourse) {
326
- config = {
327
- title: this.configInfo.title,
328
- textarea: this.configInfo.textarea,
329
- selectedTime: this.configInfo.selectedTime,
330
- category: this.configInfo.category
331
- };
332
- } else if (this.isCourse) {
333
- config = {
334
- title: this.configInfo.title,
335
- textarea: this.configInfo.textarea,
336
- selectedTime: this.configInfo.selectedTime,
337
- workload: this.configInfo.workload
338
- };
339
- }
340
- this.$emit('send-config-info', config);
341
- this.openModal = false;
342
- }
343
- }
344
- };
345
- </script>
346
- <style lang="scss">
347
- @import 'node_modules/@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss';
348
-
349
- .fixed-button {
350
- .btn {
351
- font-size: 0.775rem;
352
- @media screen and (max-width: 992px) {
353
- &:last-child {
354
- margin-right: 1rem !important;
355
- }
356
- }
357
- width: 10rem;
358
- }
359
- }
360
-
361
- .buttons:focus {
362
- outline: 0;
363
- }
364
-
365
- .tool {
366
- position: absolute;
367
- top: 1rem;
368
- z-index: 10;
369
- color: $primary;
370
- cursor: pointer;
371
-
372
- &-close {
373
- position: absolute;
374
- width: 88px;
375
- height: 27px;
376
- right: 7px;
377
- top: 7px;
378
- display: flex;
379
- justify-content: center;
380
- align-items: center;
381
-
382
- font-size: 11px;
383
-
384
- font-weight: 500;
385
- background: rgba(0, 0, 0, 0.2);
386
- border-radius: 17.5px;
387
- color: #fff;
388
- }
389
- }
390
- </style>
1
+ <template>
2
+ <modal
3
+ :show.sync="openModal"
4
+ modalContentClasses="container-fluid"
5
+ headerClasses="row px-4 pt-5"
6
+ bodyClasses="row px-4"
7
+ size="lg"
8
+ class="modal"
9
+ >
10
+ <template slot="">
11
+ <div class="pl-3 mt-5 text-right">
12
+ <h2 class="display-4">{{ title }}</h2>
13
+ </div>
14
+ </template>
15
+
16
+ <validation-observer ref="appConfigModal" tag="div">
17
+ <validation-provider
18
+ tag="div"
19
+ class="col-12 mt-5"
20
+ :vid="`name`"
21
+ name="name"
22
+ rules="required"
23
+ v-slot="{ errors }"
24
+ >
25
+ <base-input
26
+ :label="name"
27
+ :placeholder="inputPlaceholders.firstInput"
28
+ required
29
+ v-model="configInfo.title"
30
+ :error="errors[0]"
31
+ :valid="errors.length ? true : false"
32
+ >
33
+ </base-input>
34
+ </validation-provider>
35
+
36
+ <div class="col-12 mb-4">
37
+ <label for="description" class="form-control-label">{{
38
+ textAreaTitle
39
+ }}</label>
40
+ <textarea
41
+ id="description"
42
+ class="form-control"
43
+ :placeholder="inputPlaceholders.secondInput"
44
+ v-model="configInfo.textarea"
45
+ ></textarea>
46
+ </div>
47
+
48
+ <div
49
+ class="col-12 mb-4 d-flex flex-column"
50
+ v-if="!isCourse && categories && categories.length"
51
+ >
52
+ <label for="category" class="form-control-label"
53
+ >Categoria</label
54
+ >
55
+ <el-select
56
+ filterable
57
+ class="select-danger"
58
+ id="category"
59
+ :empty="'Nenhuma categoria foi encontrada'"
60
+ v-model="configInfo.category"
61
+ :placeholder="''"
62
+ >
63
+ <el-option
64
+ v-for="(category, index) in categories"
65
+ :key="category.id"
66
+ :label="category.name"
67
+ :value="category.id"
68
+ :selected="index == 0 && configInfo.category == null"
69
+ >
70
+ </el-option>
71
+ </el-select>
72
+ </div>
73
+
74
+ <div class="col-12 mb-4" v-if="isCourse">
75
+ <base-input
76
+ v-mask="['##:##:##']"
77
+ :label="'Carga horária'"
78
+ :placeholder="inputPlaceholders.thirdInput"
79
+ v-model="configInfo.workload"
80
+ ></base-input>
81
+ </div>
82
+
83
+ <slot name="testes"></slot>
84
+
85
+ <slot name="nota"></slot>
86
+
87
+ <slot name="email"></slot>
88
+
89
+ <div class="col-12 mb-4">
90
+ <label class="mb-0 form-control-label mb-3">{{
91
+ buttonAreaTitle
92
+ }}</label>
93
+
94
+ <div class="row">
95
+ <div
96
+ class="col-6 col-lg-3"
97
+ v-for="(buttons, index) in buttons"
98
+ :key="index"
99
+ >
100
+ <button
101
+ role="button"
102
+ class="tag tag-outline-primary d-block w-100 buttons"
103
+ :id="'button-' + buttons.id"
104
+ :value="buttons.value"
105
+ :class="
106
+ buttons.id == currentSelectedButton
107
+ ? 'active'
108
+ : ''
109
+ "
110
+ @click="timeSelection(buttons.id)"
111
+ >
112
+ <i
113
+ v-if="buttons.id == currentSelectedButton"
114
+ class="fas fa-check mr-1"
115
+ ></i>
116
+ <small>{{ buttons.time }}</small>
117
+ </button>
118
+ </div>
119
+ </div>
120
+ </div>
121
+ <div class="col-12 d-flex pb-4">
122
+ <base-button
123
+ size="md"
124
+ type="primary"
125
+ role="button"
126
+ @click="sendConfig()"
127
+ class="ml-auto"
128
+ :disabled="!configInfo.title"
129
+ >{{ configAppButton }}
130
+ </base-button>
131
+ </div>
132
+ </validation-observer>
133
+
134
+ <span class="tool tool-close" @click="$emit('close-modal')">
135
+ Fechar
136
+ <font-awesome-icon
137
+ :icon="['fas', 'times']"
138
+ class="text-white ml-1"
139
+ />
140
+ </span>
141
+ </modal>
142
+ </template>
143
+ <script>
144
+ import { mask } from 'vue-the-mask';
145
+ import { Select, Option } from 'element-ui';
146
+ export default {
147
+ components: {
148
+ [Select.name]: Select,
149
+ [Option.name]: Option
150
+ },
151
+ directives: { mask },
152
+ data() {
153
+ return {
154
+ configInfo: {
155
+ title: this.titleValue,
156
+ textarea: this.textAreaValue,
157
+ selectedTime: '',
158
+ workload: this.workloadValue,
159
+ category: this.testCategories
160
+ },
161
+ currentSelectedButton: String,
162
+ value: ''
163
+ };
164
+ },
165
+ model: {
166
+ prop: 'show'
167
+ },
168
+ props: {
169
+ isCourse: {
170
+ type: Boolean,
171
+ default: false
172
+ },
173
+ inputPlaceholders: {
174
+ type: Object,
175
+ default: () => ({
176
+ firstInput: 'Insira o nome do teste',
177
+ secondInput: 'Insira a descrição do teste',
178
+ thirdInput: 'Insira a carga horária do curso'
179
+ })
180
+ },
181
+ show: {
182
+ type: Boolean,
183
+ default: false
184
+ },
185
+ name: {
186
+ type: String,
187
+ default: 'Nome'
188
+ },
189
+ defaultButtonSelected: {
190
+ type: Number,
191
+ default: 6
192
+ },
193
+ testId: {
194
+ type: Number,
195
+ default: null
196
+ },
197
+ buttons: {
198
+ type: Array,
199
+ default: () => [
200
+ { id: '1', time: '5 minutos', value: '00:05:00' },
201
+ { id: '2', time: '10 minutos', value: '00:10:00' },
202
+ { id: '3', time: '15 minutos', value: '00:15:00' },
203
+ { id: '4', time: '30 minutos', value: '00:30:00' },
204
+ { id: '5', time: '45 minutos', value: '00:45:00' },
205
+ { id: '6', time: '60 minutos', value: '01:00:00' },
206
+ { id: '7', time: '2 horas', value: '02:00:00' },
207
+ { id: '8', time: '8 horas', value: '08:00:00' }
208
+ ],
209
+ description: 'Botoes de tempo'
210
+ },
211
+ title: {
212
+ type: String,
213
+ default: 'Criar Teste',
214
+ description: 'Titulo do Modal'
215
+ },
216
+ workloadTitle: {
217
+ type: String,
218
+ default: 'Carga horária',
219
+ description:
220
+ 'Carga horária do curso, apenas se o modal for usado para a pagina de cursos'
221
+ },
222
+ textAreaTitle: {
223
+ type: String,
224
+ default: 'Descrição',
225
+ description: 'Titulo da text area'
226
+ },
227
+ buttonAreaTitle: {
228
+ type: String,
229
+ default: 'Tempo Limite',
230
+ description: 'Titulo da area de botões'
231
+ },
232
+ configAppButton: {
233
+ type: String,
234
+ default: 'Salvar',
235
+ description: 'Botão de envio'
236
+ },
237
+ titleValue: {
238
+ type: String,
239
+ default: ''
240
+ },
241
+ textAreaValue: {
242
+ type: String,
243
+ default: ''
244
+ },
245
+ workloadValue: {
246
+ type: String,
247
+ default: '00:00:00'
248
+ },
249
+ time: {
250
+ type: String,
251
+ default: ''
252
+ },
253
+ testCategories: {
254
+ type: Number,
255
+ default: null
256
+ },
257
+ categories: {
258
+ type: Array,
259
+ default: () => []
260
+ }
261
+ },
262
+ watch: {
263
+ titleValue(newValue) {
264
+ this.configInfo.title = newValue;
265
+ },
266
+ textAreaValue(newValue) {
267
+ this.configInfo.textarea = newValue;
268
+ },
269
+ workloadValue(newValue) {
270
+ this.configInfo.workload = newValue;
271
+ },
272
+ time(newValue) {
273
+ this.configInfo.selectedTime = newValue;
274
+ },
275
+ testCategories(newValue) {
276
+ this.configInfo.category = newValue;
277
+ },
278
+ show(value) {
279
+ const isCategoryInitialized = this.configInfo.category
280
+ ? true
281
+ : false;
282
+ if (value && !this.isCourse && !isCategoryInitialized) {
283
+ this.configInfo.category = this.categories[0].id;
284
+ }
285
+ }
286
+ },
287
+ mounted() {
288
+ this.loadTime();
289
+ },
290
+ computed: {
291
+ openModal: {
292
+ get() {
293
+ return this.show;
294
+ },
295
+ set(show) {
296
+ this.$emit('input', show);
297
+ }
298
+ }
299
+ },
300
+ methods: {
301
+ loadTime() {
302
+ let time = this.buttons.find(e => e.value === this.time);
303
+ if (time != null) {
304
+ this.currentSelectedButton = time.id;
305
+ this.configInfo.selectedTime = this.time;
306
+ } else {
307
+ time = this.buttons.find(
308
+ e => e.id == this.defaultButtonSelected
309
+ );
310
+ this.currentSelectedButton = time.id;
311
+ this.configInfo.selectedTime = time.value;
312
+ }
313
+ },
314
+ timeSelection(buttonId) {
315
+ let btn = document.getElementById('button-' + buttonId);
316
+ this.configInfo.selectedTime = btn.value;
317
+ this.currentSelectedButton = buttonId;
318
+ },
319
+ async sendConfig() {
320
+ const pass = await this.$refs.appConfigModal.validate();
321
+ if (!pass) {
322
+ return;
323
+ }
324
+ let config;
325
+ if (!this.isCourse) {
326
+ config = {
327
+ title: this.configInfo.title,
328
+ textarea: this.configInfo.textarea,
329
+ selectedTime: this.configInfo.selectedTime,
330
+ category: this.configInfo.category
331
+ };
332
+ } else if (this.isCourse) {
333
+ config = {
334
+ title: this.configInfo.title,
335
+ textarea: this.configInfo.textarea,
336
+ selectedTime: this.configInfo.selectedTime,
337
+ workload: this.configInfo.workload
338
+ };
339
+ }
340
+ this.$emit('send-config-info', config);
341
+ this.openModal = false;
342
+ }
343
+ }
344
+ };
345
+ </script>
346
+ <style lang="scss">
347
+ @import 'node_modules/@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss';
348
+
349
+ .fixed-button {
350
+ .btn {
351
+ font-size: 0.775rem;
352
+ @media screen and (max-width: 992px) {
353
+ &:last-child {
354
+ margin-right: 1rem !important;
355
+ }
356
+ }
357
+ width: 10rem;
358
+ }
359
+ }
360
+
361
+ .buttons:focus {
362
+ outline: 0;
363
+ }
364
+
365
+ .tool {
366
+ position: absolute;
367
+ top: 1rem;
368
+ z-index: 10;
369
+ color: $primary;
370
+ cursor: pointer;
371
+
372
+ &-close {
373
+ position: absolute;
374
+ width: 88px;
375
+ height: 27px;
376
+ right: 7px;
377
+ top: 7px;
378
+ display: flex;
379
+ justify-content: center;
380
+ align-items: center;
381
+
382
+ font-size: 11px;
383
+
384
+ font-weight: 500;
385
+ background: rgba(0, 0, 0, 0.2);
386
+ border-radius: 17.5px;
387
+ color: #fff;
388
+ }
389
+ }
390
+ </style>