@burh/nuxt-core 1.0.252 → 1.0.254

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 (457) 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/CHANGELOG.md +2 -2
  6. package/README.md +22 -22
  7. package/app.html +8 -8
  8. package/assets/css/font-awesome/css/font-awesome.css +2337 -2337
  9. package/assets/css/font-awesome/css/font-awesome.min.css +4 -4
  10. package/assets/css/font-awesome/fonts/fontawesome-webfont.svg +2671 -2671
  11. package/assets/css/nucleo/css/nucleo-svg.css +134 -134
  12. package/assets/css/nucleo/css/nucleo.css +572 -572
  13. package/assets/css/nucleo/fonts/nucleo-icons.svg +312 -312
  14. package/assets/css/variables.css +2 -2
  15. package/assets/images/burhCv.svg +6 -6
  16. package/assets/images/facebookCv.svg +3 -3
  17. package/assets/images/icons/facebook.svg +14 -14
  18. package/assets/images/icons/historicCv.svg +3 -3
  19. package/assets/images/icons/icon3.svg +3 -3
  20. package/assets/images/icons/icon4.svg +3 -3
  21. package/assets/images/icons/linkedin.svg +14 -14
  22. package/assets/images/icons/notesCv.svg +3 -3
  23. package/assets/images/icons/twitter.svg +14 -14
  24. package/assets/images/icons/whatsapp.svg +14 -14
  25. package/assets/images/linkedinCv.svg +3 -3
  26. package/assets/images/webCv.svg +4 -4
  27. package/assets/sass/argon.scss +104 -104
  28. package/assets/sass/burh-ds/_components.scss +142 -142
  29. package/assets/sass/burh-ds/_functions.scss +29 -29
  30. package/assets/sass/burh-ds/_global.scss +318 -318
  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 +218 -218
  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/content/_interface-spa.scss +309 -309
  43. package/assets/sass/burh-ds/content/_main-content.scss +26 -26
  44. package/assets/sass/burh-ds/mixins/_badge.scss +37 -37
  45. package/assets/sass/burh-ds/mixins/_breakpoints.scss +39 -39
  46. package/assets/sass/burh-ds/mixins/_grid-framework.scss +66 -66
  47. package/assets/sass/burh-ds/mixins/_grid.scss +51 -51
  48. package/assets/sass/burh-ds/molecules/_box.scss +282 -282
  49. package/assets/sass/burh-ds/molecules/_breadcrumb.scss +8 -8
  50. package/assets/sass/burh-ds/molecules/_modal.scss +175 -175
  51. package/assets/sass/burh-ds/molecules/_navbar.scss +262 -262
  52. package/assets/sass/burh-ds/molecules/_notifications.scss +1 -1
  53. package/assets/sass/burh-ds/molecules/_steps-profile.scss +67 -67
  54. package/assets/sass/burh-ds/molecules/_testimonial.scss +53 -53
  55. package/assets/sass/burh-ds/organisms/_banner.scss +51 -51
  56. package/assets/sass/burh-ds/organisms/_cards.scss +228 -228
  57. package/assets/sass/burh-ds/organisms/_carousel.scss +113 -113
  58. package/assets/sass/burh-ds/organisms/_footer.scss +115 -115
  59. package/assets/sass/burh-ds/organisms/_profile-bar.scss +130 -130
  60. package/assets/sass/burh-ds/organisms/_search.scss +17 -17
  61. package/assets/sass/burh-ds/organisms/_subheader.scss +773 -773
  62. package/assets/sass/burh-ds/organisms/_tabs-setting.scss +123 -123
  63. package/assets/sass/burh-ds/organisms/banners/_banner.scss +62 -62
  64. package/assets/sass/burh-ds/organisms/cards/_featured-company.scss +17 -17
  65. package/assets/sass/burh-ds/organisms/cards/_opportunity.scss +16 -16
  66. package/assets/sass/burh-ds/pages/_error.scss +124 -124
  67. package/assets/sass/burh-ds/pages/_jobs.scss +424 -424
  68. package/assets/sass/burh-ds/pages/_testes.scss +350 -350
  69. package/assets/sass/burh-ds/variables/_colors.scss +350 -350
  70. package/assets/sass/burh-ds/variables/_global_settings.scss +39 -39
  71. package/assets/sass/core/alerts/_alert-dismissible.scss +48 -48
  72. package/assets/sass/core/alerts/_alert-notify.scss +47 -47
  73. package/assets/sass/core/alerts/_alert.scss +49 -49
  74. package/assets/sass/core/avatars/_avatar-group.scss +22 -22
  75. package/assets/sass/core/avatars/_avatar.scss +59 -59
  76. package/assets/sass/core/badges/_badge-circle.scss +29 -29
  77. package/assets/sass/core/badges/_badge-dot.scss +42 -42
  78. package/assets/sass/core/badges/_badge-floating.scss +18 -18
  79. package/assets/sass/core/badges/_badge.scss +67 -67
  80. package/assets/sass/core/breadcrumbs/_breadcrumb.scss +42 -42
  81. package/assets/sass/core/buttons/_button-brand.scss +12 -12
  82. package/assets/sass/core/buttons/_button-group.scss +79 -79
  83. package/assets/sass/core/buttons/_button-icon.scss +92 -92
  84. package/assets/sass/core/buttons/_button.scss +90 -90
  85. package/assets/sass/core/cards/_card-animations.scss +10 -10
  86. package/assets/sass/core/cards/_card-blockquote.scss +17 -17
  87. package/assets/sass/core/cards/_card-money.scss +27 -27
  88. package/assets/sass/core/cards/_card-pricing.scss +26 -26
  89. package/assets/sass/core/cards/_card-profile.scss +49 -49
  90. package/assets/sass/core/cards/_card-stats.scss +16 -16
  91. package/assets/sass/core/cards/_card.scss +70 -70
  92. package/assets/sass/core/charts/_chart.scss +69 -69
  93. package/assets/sass/core/close/_close.scss +47 -47
  94. package/assets/sass/core/collapse/_accordion.scss +38 -38
  95. package/assets/sass/core/content/_main-content.scss +17 -17
  96. package/assets/sass/core/custom-forms/_custom-checkbox.scss +47 -47
  97. package/assets/sass/core/custom-forms/_custom-control.scss +58 -58
  98. package/assets/sass/core/custom-forms/_custom-form.scss +45 -45
  99. package/assets/sass/core/custom-forms/_custom-radio.scss +38 -38
  100. package/assets/sass/core/custom-forms/_custom-toggle.scss +122 -122
  101. package/assets/sass/core/dropdowns/_dropdown.scss +89 -89
  102. package/assets/sass/core/footers/_footer.scss +159 -159
  103. package/assets/sass/core/forms/_form-extend.scss +38 -38
  104. package/assets/sass/core/forms/_form-validation.scss +78 -78
  105. package/assets/sass/core/forms/_form.scss +125 -125
  106. package/assets/sass/core/forms/_input-group.scss +136 -136
  107. package/assets/sass/core/grid/_grid.scss +31 -31
  108. package/assets/sass/core/headers/_header.scss +7 -7
  109. package/assets/sass/core/icons/_icon-actions.scss +57 -57
  110. package/assets/sass/core/icons/_icon-shape.scss +48 -48
  111. package/assets/sass/core/icons/_icon.scss +88 -88
  112. package/assets/sass/core/list-groups/_list-check.scss +52 -52
  113. package/assets/sass/core/list-groups/_list-group.scss +46 -46
  114. package/assets/sass/core/maps/_map.scss +10 -10
  115. package/assets/sass/core/masks/_mask.scss +33 -33
  116. package/assets/sass/core/medias/_media-comment.scss +33 -33
  117. package/assets/sass/core/medias/_media.scss +3 -3
  118. package/assets/sass/core/mixins/_alert.scss +22 -22
  119. package/assets/sass/core/mixins/_background-variant.scss +30 -30
  120. package/assets/sass/core/mixins/_badge.scss +12 -12
  121. package/assets/sass/core/mixins/_buttons.scss +105 -105
  122. package/assets/sass/core/mixins/_custom-forms.scss +47 -47
  123. package/assets/sass/core/mixins/_forms.scss +127 -127
  124. package/assets/sass/core/mixins/_icon.scss +10 -10
  125. package/assets/sass/core/mixins/_modals.scss +25 -25
  126. package/assets/sass/core/mixins/_popover.scss +35 -35
  127. package/assets/sass/core/modals/_modal.scss +31 -31
  128. package/assets/sass/core/navbars/_navbar-collapse.scss +37 -37
  129. package/assets/sass/core/navbars/_navbar-dropdown.scss +121 -121
  130. package/assets/sass/core/navbars/_navbar-floating.scss +17 -17
  131. package/assets/sass/core/navbars/_navbar-search.scss +216 -216
  132. package/assets/sass/core/navbars/_navbar-top.scss +58 -58
  133. package/assets/sass/core/navbars/_navbar-vertical.scss +507 -507
  134. package/assets/sass/core/navbars/_navbar.scss +368 -368
  135. package/assets/sass/core/navs/_nav-pills.scss +66 -66
  136. package/assets/sass/core/navs/_nav.scss +33 -33
  137. package/assets/sass/core/paginations/_pagination.scss +49 -49
  138. package/assets/sass/core/popovers/_popover.scss +21 -21
  139. package/assets/sass/core/progresses/_progress.scss +89 -89
  140. package/assets/sass/core/reboot/_reboot.scss +13 -13
  141. package/assets/sass/core/sections/_nucleo-icons.scss +117 -117
  142. package/assets/sass/core/separators/_separator.scss +54 -54
  143. package/assets/sass/core/shortcuts/_shortcut.scss +30 -30
  144. package/assets/sass/core/tables/_table-actions.scss +25 -25
  145. package/assets/sass/core/tables/_table-sortable.scss +28 -28
  146. package/assets/sass/core/tables/_table.scss +153 -153
  147. package/assets/sass/core/timeline/_timeline.scss +182 -182
  148. package/assets/sass/core/type/_article.scss +22 -22
  149. package/assets/sass/core/type/_display.scss +14 -14
  150. package/assets/sass/core/type/_heading.scss +65 -65
  151. package/assets/sass/core/type/_type.scss +27 -27
  152. package/assets/sass/core/utilities/_backgrounds.scss +51 -51
  153. package/assets/sass/core/utilities/_blurable.scss +37 -37
  154. package/assets/sass/core/utilities/_floating.scss +64 -64
  155. package/assets/sass/core/utilities/_helper.scss +18 -18
  156. package/assets/sass/core/utilities/_image.scss +9 -9
  157. package/assets/sass/core/utilities/_opacity.scss +35 -35
  158. package/assets/sass/core/utilities/_overflow.scss +11 -11
  159. package/assets/sass/core/utilities/_position.scss +25 -25
  160. package/assets/sass/core/utilities/_shadows.scss +28 -28
  161. package/assets/sass/core/utilities/_sizing.scss +7 -7
  162. package/assets/sass/core/utilities/_spacing.scss +107 -107
  163. package/assets/sass/core/utilities/_text.scss +49 -49
  164. package/assets/sass/core/utilities/_transform.scss +13 -13
  165. package/assets/sass/core/vendors/_bootstrap-datepicker.scss +279 -279
  166. package/assets/sass/core/vendors/_bootstrap-tagsinput.scss +67 -67
  167. package/assets/sass/core/vendors/_chartjs.scss +22 -22
  168. package/assets/sass/core/vendors/_dropzone.scss +74 -74
  169. package/assets/sass/core/vendors/_element-checkbox.scss +26 -26
  170. package/assets/sass/core/vendors/_element-tables.scss +61 -61
  171. package/assets/sass/core/vendors/_flatpickr.scss +72 -72
  172. package/assets/sass/core/vendors/_fullcalendar.scss +256 -256
  173. package/assets/sass/core/vendors/_headroom.scss +25 -25
  174. package/assets/sass/core/vendors/_lavalamp.scss +157 -157
  175. package/assets/sass/core/vendors/_nouislider.scss +413 -413
  176. package/assets/sass/core/vendors/_quill.scss +280 -280
  177. package/assets/sass/core/vendors/_scrollbar.scss +949 -949
  178. package/assets/sass/core/vendors/_select.scss +70 -70
  179. package/assets/sass/core/vendors/_sweet-alert-2.scss +22 -22
  180. package/assets/sass/core/vendors/_tags.scss +32 -32
  181. package/assets/sass/core/vendors/_vectormap.scss +16 -16
  182. package/assets/sass/custom/_components.scss +142 -142
  183. package/assets/sass/custom/_functions.scss +29 -29
  184. package/assets/sass/custom/_mixins.scss +15 -15
  185. package/assets/sass/custom/_transitions.scss +12 -12
  186. package/assets/sass/custom/_utilities.scss +31 -31
  187. package/assets/sass/custom/_variables.scss +1135 -1135
  188. package/assets/sass/custom/_vendors.scss +38 -38
  189. package/components/argon-core/Badge.vue +56 -56
  190. package/components/argon-core/Banners/Banner.vue +28 -28
  191. package/components/argon-core/Banners/BannerItem.vue +13 -13
  192. package/components/argon-core/BaseAlert.vue +74 -74
  193. package/components/argon-core/BaseButton.vue +81 -81
  194. package/components/argon-core/BaseDropdown.vue +114 -114
  195. package/components/argon-core/BaseHeader.vue +21 -21
  196. package/components/argon-core/BasePagination.vue +172 -172
  197. package/components/argon-core/BaseProgress.vue +121 -121
  198. package/components/argon-core/BaseSlider.vue +96 -96
  199. package/components/argon-core/BaseSwitch.vue +46 -46
  200. package/components/argon-core/BaseTable.vue +70 -70
  201. package/components/argon-core/Breadcrumb/Breadcrumb.vue +26 -26
  202. package/components/argon-core/Breadcrumb/BreadcrumbItem.vue +16 -16
  203. package/components/argon-core/Breadcrumb/RouteBreadcrumb.vue +45 -45
  204. package/components/argon-core/ButtonCheckbox.vue +39 -39
  205. package/components/argon-core/ButtonRadioGroup.vue +47 -47
  206. package/components/argon-core/Cards/Card.vue +71 -71
  207. package/components/argon-core/Cards/OpportunityCard.vue +39 -39
  208. package/components/argon-core/Cards/StatsCard.vue +49 -49
  209. package/components/argon-core/Charts/BarChart.js +30 -30
  210. package/components/argon-core/Charts/DoughnutChart.js +30 -30
  211. package/components/argon-core/Charts/LineChart.js +30 -30
  212. package/components/argon-core/Charts/PieChart.js +30 -30
  213. package/components/argon-core/Charts/config.js +491 -491
  214. package/components/argon-core/Charts/globalOptionsMixin.js +7 -7
  215. package/components/argon-core/Charts/optionHelpers.js +10 -10
  216. package/components/argon-core/CloseButton.vue +35 -35
  217. package/components/argon-core/Collapse/Collapse.vue +84 -84
  218. package/components/argon-core/Collapse/CollapseItem.vue +91 -91
  219. package/components/argon-core/Feed/Comment.vue +50 -50
  220. package/components/argon-core/Inputs/BaseCheckbox.vue +79 -79
  221. package/components/argon-core/Inputs/BaseInput.vue +221 -221
  222. package/components/argon-core/Inputs/BaseRadio.vue +68 -68
  223. package/components/argon-core/Inputs/DropzoneFileUpload.vue +127 -127
  224. package/components/argon-core/Inputs/FileInput.vue +54 -54
  225. package/components/argon-core/Inputs/HtmlEditor.vue +105 -105
  226. package/components/argon-core/Inputs/IconCheckbox.vue +45 -45
  227. package/components/argon-core/Inputs/TagsInput.vue +100 -100
  228. package/components/argon-core/LoadingPanel.vue +25 -25
  229. package/components/argon-core/Modal.vue +152 -152
  230. package/components/argon-core/Navbar/BaseNav.vue +122 -122
  231. package/components/argon-core/Navbar/NavbarProgress.vue +19 -19
  232. package/components/argon-core/Navbar/NavbarProgressItem.vue +17 -17
  233. package/components/argon-core/Navbar/NavbarToggleButton.vue +21 -21
  234. package/components/argon-core/NavbarToggleButton.vue +29 -29
  235. package/components/argon-core/NotificationPlugin/Notification.vue +207 -207
  236. package/components/argon-core/NotificationPlugin/Notifications.vue +55 -55
  237. package/components/argon-core/NotificationPlugin/index.js +66 -66
  238. package/components/argon-core/SidebarPlugin/SideBar.vue +119 -119
  239. package/components/argon-core/SidebarPlugin/SidebarItem.vue +184 -184
  240. package/components/argon-core/SidebarPlugin/index.js +79 -79
  241. package/components/argon-core/Tabs/Tab.vue +33 -33
  242. package/components/argon-core/Tabs/Tabs.vue +170 -170
  243. package/components/argon-core/Timeline/TimeLine.vue +17 -17
  244. package/components/argon-core/Timeline/TimeLineItem.vue +30 -30
  245. package/components/argon-core/WorldMap/AsyncWorldMap.vue +28 -28
  246. package/components/argon-core/WorldMap/WorldMap.vue +127 -127
  247. package/components/argon-core/index.js +82 -82
  248. package/components/burh-ds/Avatar/AvatarLink.vue +29 -29
  249. package/components/burh-ds/Avatar/BusinessAvatar.vue +38 -38
  250. package/components/burh-ds/Banners/BannerHero.vue +23 -23
  251. package/components/burh-ds/Banners/BannerItem.vue +14 -14
  252. package/components/burh-ds/Button/ExportButton.vue +20 -20
  253. package/components/burh-ds/Button/SwitchStateButton.vue +165 -165
  254. package/components/burh-ds/Capsules/SearchSlug.vue +860 -860
  255. package/components/burh-ds/Capsules/UserProfile.vue +1938 -1938
  256. package/components/burh-ds/Cards/CampaignCard.vue +40 -40
  257. package/components/burh-ds/Cards/CompanyCard.vue +39 -39
  258. package/components/burh-ds/Cards/CourseInfoCard.vue +74 -74
  259. package/components/burh-ds/Cards/FeatureBusinessCard.vue +74 -73
  260. package/components/burh-ds/Cards/FunctionalityItem.vue +35 -35
  261. package/components/burh-ds/Cards/OpportunityCard.vue +115 -115
  262. package/components/burh-ds/Cards/PerformanceCard.vue +81 -81
  263. package/components/burh-ds/Cards/PerformanceItem.vue +65 -65
  264. package/components/burh-ds/Cards/PlanCard.vue +192 -192
  265. package/components/burh-ds/Cards/ProductCard.vue +142 -142
  266. package/components/burh-ds/Cards/PurchaseCard.vue +58 -58
  267. package/components/burh-ds/Cards/PurchaseCardSimple.vue +58 -58
  268. package/components/burh-ds/Cards/RecruitmentCard.vue +196 -196
  269. package/components/burh-ds/Cards/RecruitmentUserCard.vue +230 -230
  270. package/components/burh-ds/Cards/TestCard.vue +189 -189
  271. package/components/burh-ds/Cards/TrainingCard.vue +151 -151
  272. package/components/burh-ds/Cards/WelcomeCard.vue +106 -106
  273. package/components/burh-ds/Carousel/FeedCarousel.vue +47 -47
  274. package/components/burh-ds/Carousel/ImageCarousel.vue +106 -106
  275. package/components/burh-ds/Collapse/DefaultCollapse.vue +70 -70
  276. package/components/burh-ds/Crop/Crop.vue +121 -121
  277. package/components/burh-ds/Curriculum/UserCurriculum/UserCvLeftSide.vue +437 -437
  278. package/components/burh-ds/Curriculum/UserCurriculum/UserCvMiddle.vue +473 -473
  279. package/components/burh-ds/Curriculum/UserCurriculum/UserCvRightSide.vue +584 -584
  280. package/components/burh-ds/Curriculum/UserCurriculum/index.vue +245 -245
  281. package/components/burh-ds/Dropdown/AppLinkArea.vue +132 -132
  282. package/components/burh-ds/Dropdown/DropdownItem.vue +26 -26
  283. package/components/burh-ds/Dropdown/DropdownSection.vue +38 -38
  284. package/components/burh-ds/Dropdown/FaqVideoArea.vue +88 -88
  285. package/components/burh-ds/Dropdown/SignOutItem.vue +11 -11
  286. package/components/burh-ds/Dropdown/UserMenuDropdown.vue +63 -63
  287. package/components/burh-ds/FeaturedCompanies/FeaturedCompanies.vue +11 -11
  288. package/components/burh-ds/FeaturedCompanies/FeaturedCompanyCard.vue +16 -16
  289. package/components/burh-ds/Groups/ProductItem.vue +62 -62
  290. package/components/burh-ds/Groups/SimpleProductItem.vue +130 -130
  291. package/components/burh-ds/Headings/AppHeader.vue +138 -138
  292. package/components/burh-ds/Headings/BaseHeader.vue +24 -24
  293. package/components/burh-ds/Headings/Profile.vue +66 -66
  294. package/components/burh-ds/Headings/ProfileHeader.vue +105 -105
  295. package/components/burh-ds/Headings/SettingsHeader.vue +48 -48
  296. package/components/burh-ds/Headings/StepHeader.vue +122 -122
  297. package/components/burh-ds/Input/AutoComplete.vue +136 -136
  298. package/components/burh-ds/Inputs/BaseCheckbox.vue +73 -73
  299. package/components/burh-ds/Inputs/BaseSwitch.vue +43 -43
  300. package/components/burh-ds/Inputs/BaseSwitchSecondary.vue +84 -84
  301. package/components/burh-ds/Inputs/DoubleInputWithIcon.vue +100 -100
  302. package/components/burh-ds/Inputs/HtmlEditor.vue +72 -72
  303. package/components/burh-ds/Inputs/SearchInput.vue +64 -64
  304. package/components/burh-ds/InterfaceSpa/InterfaceSpa.vue +83 -83
  305. package/components/burh-ds/Jobs/JobDetail.vue +432 -432
  306. package/components/burh-ds/Jobs/JobDetailDesign.vue +151 -151
  307. package/components/burh-ds/Jobs/JobDetailEmpty.vue +27 -27
  308. package/components/burh-ds/Labels/LabelContextIcon.vue +58 -58
  309. package/components/burh-ds/Link/DefaultLink.vue +30 -30
  310. package/components/burh-ds/Lists/ListAvatarCheckbox.vue +157 -157
  311. package/components/burh-ds/Lists/ListNavLinks.vue +54 -54
  312. package/components/burh-ds/Lists/VagasSimple.vue +404 -404
  313. package/components/burh-ds/Loadings/Basics.vue +80 -80
  314. package/components/burh-ds/Loadings/InfiniteLoading.vue +21 -21
  315. package/components/burh-ds/Loadings/LoadingFullPage.vue +68 -68
  316. package/components/burh-ds/Loadings/NewLoading.vue +119 -119
  317. package/components/burh-ds/Modals/AppConfigModal.vue +390 -390
  318. package/components/burh-ds/Modals/CourseMessageModal.vue +66 -66
  319. package/components/burh-ds/Modals/DocsModal.vue +111 -111
  320. package/components/burh-ds/Modals/DropzoneModal.vue +123 -123
  321. package/components/burh-ds/Modals/MobileModal.vue +65 -65
  322. package/components/burh-ds/Modals/ModalTests.vue +167 -167
  323. package/components/burh-ds/Modals/PlanModal.vue +286 -286
  324. package/components/burh-ds/Modals/RequestModal.vue +281 -281
  325. package/components/burh-ds/Modals/SendCourse.vue +234 -234
  326. package/components/burh-ds/Modals/SendDisc.vue +194 -194
  327. package/components/burh-ds/Modals/SendTest.vue +349 -349
  328. package/components/burh-ds/Modals/ShareModal.vue +228 -228
  329. package/components/burh-ds/Modals/SharedModal.vue +270 -270
  330. package/components/burh-ds/Modals/SmsModal.vue +319 -319
  331. package/components/burh-ds/Modals/SubModal.vue +41 -41
  332. package/components/burh-ds/Modals/UniversityAccessModal.vue +134 -134
  333. package/components/burh-ds/Modals/VideoModal.vue +80 -80
  334. package/components/burh-ds/Modals/WhatsappModal.vue +143 -143
  335. package/components/burh-ds/Navbar/BaseNav.vue +132 -132
  336. package/components/burh-ds/Notifications/Notification.vue +215 -215
  337. package/components/burh-ds/Notifications/Notifications.vue +55 -55
  338. package/components/burh-ds/Notifications/index.js +66 -66
  339. package/components/burh-ds/Pagination/NamedPagination.vue +176 -176
  340. package/components/burh-ds/Questions/Question.vue +183 -183
  341. package/components/burh-ds/Questions/QuestionAttach.vue +13 -13
  342. package/components/burh-ds/Questions/QuestionRadio.vue +122 -122
  343. package/components/burh-ds/Questions/QuestionRadioItem.vue +83 -83
  344. package/components/burh-ds/Questions/QuestionText.vue +66 -66
  345. package/components/burh-ds/Questions/index.js +13 -13
  346. package/components/burh-ds/Skeleton/Cards.vue +133 -133
  347. package/components/burh-ds/Skeleton/Home.vue +149 -149
  348. package/components/burh-ds/Tabs/Tab.vue +56 -56
  349. package/components/burh-ds/Tabs/Tabs.vue +188 -188
  350. package/components/burh-ds/Tabs/TesteTab.vue +106 -106
  351. package/components/burh-ds/index.js +20 -20
  352. package/components/layouts/argon/Content.vue +17 -17
  353. package/components/layouts/argon/navbar/BlankLayout.vue +61 -61
  354. package/components/layouts/argon/navbar/DashboardNavbar.vue +307 -307
  355. package/components/layouts/burh-ds/ContentFooter.vue +45 -45
  356. package/components/layouts/burh-ds/footer/FooterSimple.vue +20 -20
  357. package/components/layouts/burh-ds/footer/ProductsFooter.vue +354 -255
  358. package/components/layouts/burh-ds/footer/StatusFooter.vue +105 -105
  359. package/components/layouts/burh-ds/footer/StoreFooter.vue +54 -54
  360. package/components/layouts/burh-ds/navbar/AppNavbar.vue +90 -90
  361. package/components/layouts/burh-ds/navbar/BusinessGlobalNavbar.vue +435 -435
  362. package/components/layouts/burh-ds/navbar/CarreirasNavbar.vue +363 -363
  363. package/components/layouts/burh-ds/navbar/CompanyGlobalNavbar.vue +244 -244
  364. package/components/layouts/burh-ds/navbar/EmpresasNavbar.vue +374 -374
  365. package/components/layouts/burh-ds/navbar/EmpresasNavbarLogado.vue +388 -388
  366. package/components/layouts/burh-ds/navbar/GlobalNavbar.vue +535 -535
  367. package/components/layouts/burh-ds/navbar/MobileNavbar.vue +431 -431
  368. package/components/layouts/burh-ds/navbar/PublicNavbar.vue +160 -160
  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/environment.js +220 -220
  411. package/eslint.config.json +12 -12
  412. package/layouts/AuthLayout.vue +191 -191
  413. package/layouts/BurhCarreirasLayout.vue +63 -63
  414. package/layouts/BurhEmpresasLayout.vue +64 -64
  415. package/layouts/BurhNoHeader.vue +63 -63
  416. package/layouts/BurhPublicLayout.vue +67 -67
  417. package/layouts/BurhUserLayout.vue +231 -231
  418. package/layouts/DashboardLayout.vue +226 -226
  419. package/layouts/error.vue +119 -119
  420. package/metadata.json +30 -30
  421. package/middleware/README.md +8 -8
  422. package/middleware/decodeUrl.js +8 -8
  423. package/middleware/maintenance.js +9 -9
  424. package/middleware/new-account.js +6 -6
  425. package/middleware/redirect.js +13 -13
  426. package/middleware/user-agent-error.js +28 -28
  427. package/nuxt.config.js +206 -206
  428. package/package.json +111 -111
  429. package/plugins/README.md +7 -7
  430. package/plugins/analytics/ga.js +28 -28
  431. package/plugins/auth/auth.js +210 -210
  432. package/plugins/axios.js +32 -32
  433. package/plugins/carousel/owl-carousel.js +3 -3
  434. package/plugins/crop/crop.js +4 -4
  435. package/plugins/dashboard/dashboard-plugin.js +29 -29
  436. package/plugins/dashboard/directives/click-outside.js +15 -15
  437. package/plugins/dashboard/eventBus.js +1 -1
  438. package/plugins/dashboard/globalComponents.js +41 -41
  439. package/plugins/dashboard/globalDirectives.js +7 -7
  440. package/plugins/dom/loader.js +76 -76
  441. package/plugins/localstorage.js +20 -20
  442. package/plugins/location/location.js +41 -41
  443. package/plugins/pagination/pagination.js +3 -3
  444. package/plugins/qrcode/qrcode.js +4 -4
  445. package/plugins/router.js +8 -8
  446. package/plugins/social-media/fb-sdk.js +44 -44
  447. package/plugins/social-media/share-link-facebook.js +32 -32
  448. package/plugins/social-media/share-link-linkedin.js +30 -30
  449. package/plugins/social-media/share-link-twitter.js +30 -30
  450. package/plugins/social-media/share-link-whatsapp.js +31 -31
  451. package/polyfills.js +96 -96
  452. package/util/common.js +189 -189
  453. package/util/cookie.js +28 -28
  454. package/util/dom.js +63 -63
  455. package/util/getPrefixes.js +12 -12
  456. package/util/request.js +46 -46
  457. package/util/throttle.js +15 -15
@@ -1,584 +1,584 @@
1
- <template>
2
- <div class="bg-white content-right tabs ">
3
- <el-tabs
4
- :class="active"
5
- class="mt-3 ml-4 handle-icon-color"
6
- v-model="active"
7
- >
8
- <el-tab-pane class="history" name="history">
9
- <span class="tab__icon-pane" slot="label">
10
- <img
11
- class="img__icon-pane img__icon--history"
12
- src="../../../../assets/images/icons/historicCv.svg"
13
- />
14
- </span>
15
- <p class="notes-title mb-0">Histórico com sua empresa</p>
16
- <div class="line mb-3"></div>
17
-
18
- <div
19
- class="mt-3"
20
- v-for="(item, index) in orderByDate(companyHistory())"
21
- :key="index"
22
- >
23
- <p class="history-text mb-0">
24
- {{ item.text }}
25
- </p>
26
- <span>{{ item.date | convertDate }}</span>
27
- </div>
28
- <p v-show="companyHistory().length === 0" class="history-text">
29
- Histórico vazio.
30
- </p>
31
- </el-tab-pane>
32
-
33
- <el-tab-pane name="notes" v-if="isNotesActived">
34
- <span class="tab__icon-pane" slot="label">
35
- <img
36
- class="img__icon-pane img__icon--notes"
37
- src="../../../../assets/images/icons/notesCv.svg"
38
- />
39
- </span>
40
- <p class="notes-title mb-0">Notas da equipe</p>
41
- <div class="line mb-3"></div>
42
- <div
43
- v-show="notes.length > 0"
44
- v-for="(note, index) in notes.slice(0, 5)"
45
- :key="index"
46
- >
47
- <div class="notes-baloon">
48
- <div class="notes-text ml-3 pt-1">
49
- <p class="mt-3">{{ note.text }}</p>
50
- </div>
51
- <div
52
- class="d-flex justify-content-end align-items-center mr-3"
53
- >
54
- <p class="notes-date">
55
- {{ note.created_at | convertDate }}
56
- </p>
57
- </div>
58
- </div>
59
- <div class="notes-owner d-flex mt-2">
60
- <img
61
- v-show="note.user.urlAvatar"
62
- :src="note.user.urlAvatar"
63
- :alt="note.user.name"
64
- />
65
- <div
66
- v-show="!note.user.urlAvatar"
67
- class="notes-avatar"
68
- ></div>
69
- <p class="ml-1">
70
- {{ note.user.name }}
71
- </p>
72
- </div>
73
- </div>
74
- <div class="notes-text" v-show="notes.length === 0">
75
- <p>Nenhuma nota criada.</p>
76
- </div>
77
-
78
- <div class="input-container">
79
- <input
80
- class="notes-new pl-4 mt-3 mb-3 form-rounded"
81
- type="text"
82
- placeholder="Escrever anotação"
83
- v-model="newNote"
84
- @change="$emit('new-note', newNote, userData.id)"
85
- v-on:change="cleatInput()"
86
- />
87
- <i
88
- @click="
89
- newNote.length > 0 &&
90
- $emit('new-note', newNote, userData.id)
91
- "
92
- class="fas fa-paper-plane input-icon"
93
- ></i>
94
- </div>
95
- </el-tab-pane>
96
-
97
- <el-tab-pane name="documents">
98
- <span class="tab__icon-pane" slot="label">
99
- <img
100
- class="img__icon-pane img__icon--documents"
101
- src="../../../../assets/images/icons/icon3.svg"
102
- />
103
- </span>
104
- <p class="notes-title mb-0">Documentos anexados</p>
105
- <div class="line mb-3"></div>
106
-
107
- <div class="archive-content">
108
- <div v-for="(item, index) in archives" :key="index">
109
- <div @click="openArchive(item)" class="archive-container">
110
- <div>
111
- <img class="archive-img" src="../../../../assets/images/icons/icon3.svg" >
112
- </div>
113
- <div class="archive-name">
114
- <p>
115
- <span>{{item.name}}</span>
116
- <div class="archive-icon">
117
- <i @click.stop.prevent="openRemoveSection(item, (index+1))" class="far fa-trash-alt"></i>
118
- </div>
119
- </p>
120
- </div>
121
- </div>
122
- <div v-if="hasRemove && hasRemove == (index+1)" class="archive-remove">
123
- <p>Você tem certeza que deseja apagar este arquivo?</p>
124
- <div class="d-flex">
125
- <base-button
126
- @click="removeArchive(currentRemoveItem, index)"
127
- size="sm"
128
- class="btn-outline-primary col-6 p-1"
129
- >
130
- Apagar
131
- </base-button>
132
- <base-button
133
- @click="hasRemove = false"
134
- size="sm"
135
- class="btn-outline-danger col-6 p-1"
136
- >
137
- Cancelar
138
- </base-button>
139
- </div>
140
- </div>
141
- </div>
142
-
143
- </div>
144
- <div class="notes-text" v-show="archives == null">
145
- <p>Nenhum arquvio anexado.</p>
146
- </div>
147
-
148
- <div class="input-container">
149
- <div class="mt-5">
150
-
151
- <dropzone-file-upload
152
- disabled
153
- @error="showMessageError"
154
- ref="Mydropzone"
155
- :options="dropzoneOptions"
156
- v-model="fileToUpload"
157
- />
158
- </div>
159
-
160
- <div class="archive-buttons">
161
- <base-button @click="saveImage" size="sm" class="btn-outline-primary btn-rounded col-12">Salvar</base-button>
162
- </div>
163
- </div>
164
- </el-tab-pane>
165
-
166
- <el-tab-pane :disabled="true">
167
- <span class="tab__icon-pane cursor-disabled" slot="label">
168
- <img
169
- class="img__icon-pane"
170
- src="../../../../assets/images/icons/icon4.svg"
171
- />
172
- </span>
173
- </el-tab-pane>
174
- </el-tabs>
175
- </div>
176
- </template>
177
-
178
- <script>
179
- import { Tabs, TabPane } from 'element-ui';
180
- import DropzoneFileUpload from '@burh/nuxt-core/components/argon-core/Inputs/DropzoneFileUpload.vue';
181
- import swal from 'sweetalert2';
182
-
183
- export default {
184
- name: 'user-cv-right-side',
185
- filters: {
186
- convertDate(data) {
187
- if (typeof data !== 'string') {
188
- data = '2020-01-01 12:00:00';
189
- }
190
- let d = new Date(data);
191
- let options = { hour: '2-digit', minute: '2-digit' };
192
- return d.toLocaleDateString('pt-BR', options);
193
- }
194
- },
195
- watch:{
196
- fileToUpload(value){
197
- if(value.length > 0 && value[0].accepted) {
198
- this.isError = false;
199
- }
200
- }
201
- },
202
- components: {
203
- [Tabs.name]: Tabs,
204
- [TabPane.name]: TabPane,
205
- DropzoneFileUpload,
206
- },
207
- data(){
208
- return {
209
- newNote: '',
210
- active: this.activeName,
211
- hasRemove: null,
212
- isError: true,
213
- currentRemoveItem: null,
214
- fileToUpload: [],
215
- dropzoneOptions: {
216
- maxFilesize: 0.2,
217
- dictFileTooBig:'Seu arquivo é poderoso demais (Máximo 200kb).',
218
- dictDefaultMessage: 'Clique ou arraste seu arquivo aqui.',
219
- dictInvalidFileType: 'Arquivo invalido.',
220
- dictMaxFilesExceeded: 'Não é permitido mais de um arquivo por vez.',
221
- acceptedFiles: 'image/*, application/pdf',
222
- }
223
- };
224
- },
225
- props: {
226
- archives: Array,
227
- userData: Object,
228
- notes: Array,
229
- activeName: String,
230
- isNotesActived: {
231
- type: Boolean,
232
- default: true
233
- },
234
- },
235
- mounted() {
236
- this.companyHistory();
237
- },
238
- methods: {
239
- openRemoveSection(item, index) {
240
- this.hasRemove = index;
241
- this.currentRemoveItem = item;
242
- },
243
-
244
- showToast(type, title){
245
- const Toast = swal.mixin({
246
- toast: true,
247
- position: 'top-end',
248
- showConfirmButton: false,
249
- timer: 3100,
250
- });
251
-
252
- return Toast.fire({
253
- type: type,
254
- title: title
255
- });
256
- },
257
-
258
- showMessageError(file, message) {
259
- this.isError = true;
260
- this.$refs.Mydropzone.removeAllFiles();
261
-
262
- if (file.status !== 'canceled'){
263
- this.showToast('error', message);
264
- }
265
- },
266
-
267
- openArchive(item) {
268
- window.open(item.annex_url, '_blank');
269
- },
270
-
271
- saveImage(){
272
- if (!this.isError) {
273
- this.$emit('save-archive', this.fileToUpload[0], this.userData.id);
274
- this.$refs.Mydropzone.removeAllFiles();
275
- this.showToast('success', 'Arquivo enviado com sucesso.');
276
-
277
- } else {
278
- if (this.fileToUpload.length > 0) {
279
- this.showToast('error', 'Arquivo invalido.');
280
- } else {
281
- this.showToast('warning', 'Selecione um arquivo.');
282
- }
283
- }
284
- },
285
-
286
- removeArchive(archive, index){
287
- console.log(archive)
288
- this.$emit('remove-archive', archive.user_id, archive.id, archive.company_id, index);
289
- this.hasRemove = null;
290
- },
291
-
292
- cleatInput() {
293
- this.newNote = '';
294
- },
295
- companyHistory() {
296
- let sms = this.userData.company_sms.map(x => ({
297
- date: x.created_at,
298
- text: 'Recebeu um SMS'
299
- }));
300
- let tests = this.userData.tests.map(x => ({
301
- date: x.finished_at,
302
- text: `Finalizou o teste ${x.test.name.toUpperCase()}`
303
- }));
304
- let discs = this.userData.solides.map(x => ({
305
- date: x.end,
306
- text: 'Realizou um teste DISC'
307
- }));
308
-
309
- return sms.concat(tests, discs);
310
- },
311
- orderByDate(data) {
312
- let sortedArray = data.sort((a, b) => {
313
- a = a.date || '2020-01-01 12:00:00';
314
- b = b.date || '2020-01-01 12:00:00';
315
-
316
- return new Date(b).getTime() - new Date(a).getTime();
317
- });
318
-
319
- return sortedArray;
320
- },
321
- },
322
- };
323
- </script>
324
- <style>
325
- .el-tabs__nav-wrap::after {
326
- background: #fff !important;
327
- }
328
-
329
- .el-tabs__active-bar {
330
- width: 34px !important;
331
- height: 4px !important;
332
- border-radius: 10px 10px 0px 0px;
333
- }
334
- </style>
335
-
336
- <style lang="scss">
337
- .swal2-title {
338
- font-size: 1rem !important;
339
- }
340
- .swal2-container {
341
- z-index: 5000 !important;
342
- }
343
- </style>
344
-
345
- <style lang="scss" scoped>
346
- @import '@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss';
347
-
348
- /deep/.dropzone {
349
- width: 95%;
350
-
351
- .dz-message {
352
- padding: 2rem 1rem !important;
353
- }
354
-
355
- button.dz-button {
356
- background-color: transparent;
357
- border: 0;
358
- }
359
- }
360
-
361
- /deep/ .el-tab-pane {
362
- max-height: 760px;
363
- overflow: hidden;
364
- overflow-y: auto;
365
- position: relative;
366
-
367
- > .notes-title {
368
- position: sticky;
369
- position: -webkit-sticky;
370
- top: 0;
371
- background: white;
372
- padding: 10px 0;
373
- }
374
-
375
- > .input-container {
376
- position: sticky;
377
- position: -webkit-sticky;
378
- bottom: 0;
379
- background: white;
380
- > .input-icon {
381
- cursor: pointer;
382
- position: absolute;
383
- top: 50%;
384
- right: 30px;
385
- transform: translateY(-50%);
386
- color: #c8c8c8;
387
- }
388
- }
389
-
390
- &::-webkit-scrollbar {
391
- width: 8px;
392
- }
393
-
394
- &::-webkit-scrollbar-track {
395
- background: #f5f5f5;
396
- }
397
-
398
- &::-webkit-scrollbar-thumb {
399
- background: #e9e8e8;
400
- border-radius: 10px;
401
- }
402
-
403
- .archive-content {
404
- width: 95%;
405
-
406
- p {
407
- margin-bottom: 0;
408
- font-size: 0.875rem;
409
- padding: .3rem .6rem 0 .6rem;
410
- }
411
-
412
- .archive-container {
413
- display: flex;
414
- align-items: center;
415
- padding: 0.5rem 0.5rem 0.438rem;
416
- cursor: pointer;
417
- user-select: none;
418
-
419
- &:hover{
420
- background-color: #f6f9fc;
421
- border-radius: 5px;
422
- }
423
-
424
- .archive-img {
425
- background-color: #f5f5f5;
426
- border-radius: 6px;
427
- padding: 7px;
428
- }
429
-
430
- .archive-name {
431
- display: flex;
432
- margin-left: .8rem;
433
- width: 145%;
434
- justify-content: space-between !important;
435
-
436
- .archive-icon {
437
- margin-left: 1.5rem;
438
- }
439
-
440
- p {
441
- margin: 0;
442
- padding: 0;
443
- width: 13rem;
444
- white-space: nowrap;
445
- overflow: hidden;
446
- text-overflow: ellipsis;
447
- }
448
- }
449
-
450
- .upload-container {
451
- position: sticky;
452
- position: -webkit-sticky;
453
- bottom: 0;
454
- background: white;
455
- width: 231px;
456
- }
457
- }
458
- }
459
-
460
- .archive-buttons {
461
- display: flex;
462
- margin-top: -1rem;
463
- width: 95%;
464
- }
465
-
466
- .archive-remove {
467
- width: 90%;
468
- word-break: break-word;
469
- }
470
- }
471
-
472
- .readmore {
473
- overflow: hidden;
474
- text-overflow: ellipsis;
475
- display: -webkit-box;
476
- -webkit-line-clamp: 3;
477
- -webkit-box-orient: vertical;
478
- }
479
-
480
- .tab__icon-pane {
481
- .img__icon-pane {
482
- background-color: #f5f5f5 !important;
483
- border-radius: 30%;
484
- padding: 7px;
485
- margin-bottom: 1rem;
486
- }
487
- }
488
-
489
- .content-right {
490
- width: 25%;
491
- }
492
-
493
- .notes-title {
494
- font-size: 14px;
495
- color: #1d364b;
496
- font-weight: bold;
497
- background-color: white;
498
- z-index: 500;
499
- }
500
-
501
- .notes-baloon {
502
- width: 231px;
503
- height: auto;
504
-
505
- background: #eff5fd;
506
- border-radius: 10px 10px 10px 0px;
507
- }
508
-
509
- .notes-text {
510
- p {
511
- font-size: 13px;
512
- color: #62778c;
513
- }
514
- }
515
-
516
- .notes-date {
517
- font-size: 11px;
518
- text-align: right;
519
-
520
- color: #8da2b5;
521
- top: calc(50% - 17px / 2 - 444.5px);
522
- }
523
-
524
- .notes-owner {
525
- img {
526
- width: 23px;
527
- height: 23px;
528
- border-radius: 50%;
529
- }
530
-
531
- .notes-avatar {
532
- width: 23px;
533
- height: 23px;
534
- border-radius: 50%;
535
- background-color: #adb5bd;
536
- }
537
-
538
- p {
539
- font-size: 13px;
540
- font-weight: 600;
541
- text-transform: uppercase;
542
-
543
- color: #62778c;
544
- }
545
- }
546
-
547
- .notes-new {
548
- width: 95%;
549
- height: 33px;
550
-
551
- background: #f5f5f5;
552
- border-radius: 16.5px;
553
- border: none;
554
-
555
- outline: 0;
556
- }
557
-
558
- .line {
559
- width: 221px;
560
- height: 0px;
561
-
562
- border: 1px solid #ececec5c;
563
- }
564
-
565
- .history {
566
- word-break: break-word;
567
-
568
- .history-text {
569
- font-size: 13px;
570
- color: #62778c;
571
- }
572
-
573
- span {
574
- font-size: 11px;
575
- line-height: 16px;
576
-
577
- color: #8da2b5;
578
- }
579
- }
580
-
581
- .cursor-disabled {
582
- cursor: no-drop;
583
- }
584
- </style>
1
+ <template>
2
+ <div class="bg-white content-right tabs ">
3
+ <el-tabs
4
+ :class="active"
5
+ class="mt-3 ml-4 handle-icon-color"
6
+ v-model="active"
7
+ >
8
+ <el-tab-pane class="history" name="history">
9
+ <span class="tab__icon-pane" slot="label">
10
+ <img
11
+ class="img__icon-pane img__icon--history"
12
+ src="../../../../assets/images/icons/historicCv.svg"
13
+ />
14
+ </span>
15
+ <p class="notes-title mb-0">Histórico com sua empresa</p>
16
+ <div class="line mb-3"></div>
17
+
18
+ <div
19
+ class="mt-3"
20
+ v-for="(item, index) in orderByDate(companyHistory())"
21
+ :key="index"
22
+ >
23
+ <p class="history-text mb-0">
24
+ {{ item.text }}
25
+ </p>
26
+ <span>{{ item.date | convertDate }}</span>
27
+ </div>
28
+ <p v-show="companyHistory().length === 0" class="history-text">
29
+ Histórico vazio.
30
+ </p>
31
+ </el-tab-pane>
32
+
33
+ <el-tab-pane name="notes" v-if="isNotesActived">
34
+ <span class="tab__icon-pane" slot="label">
35
+ <img
36
+ class="img__icon-pane img__icon--notes"
37
+ src="../../../../assets/images/icons/notesCv.svg"
38
+ />
39
+ </span>
40
+ <p class="notes-title mb-0">Notas da equipe</p>
41
+ <div class="line mb-3"></div>
42
+ <div
43
+ v-show="notes.length > 0"
44
+ v-for="(note, index) in notes.slice(0, 5)"
45
+ :key="index"
46
+ >
47
+ <div class="notes-baloon">
48
+ <div class="notes-text ml-3 pt-1">
49
+ <p class="mt-3">{{ note.text }}</p>
50
+ </div>
51
+ <div
52
+ class="d-flex justify-content-end align-items-center mr-3"
53
+ >
54
+ <p class="notes-date">
55
+ {{ note.created_at | convertDate }}
56
+ </p>
57
+ </div>
58
+ </div>
59
+ <div class="notes-owner d-flex mt-2">
60
+ <img
61
+ v-show="note.user.urlAvatar"
62
+ :src="note.user.urlAvatar"
63
+ :alt="note.user.name"
64
+ />
65
+ <div
66
+ v-show="!note.user.urlAvatar"
67
+ class="notes-avatar"
68
+ ></div>
69
+ <p class="ml-1">
70
+ {{ note.user.name }}
71
+ </p>
72
+ </div>
73
+ </div>
74
+ <div class="notes-text" v-show="notes.length === 0">
75
+ <p>Nenhuma nota criada.</p>
76
+ </div>
77
+
78
+ <div class="input-container">
79
+ <input
80
+ class="notes-new pl-4 mt-3 mb-3 form-rounded"
81
+ type="text"
82
+ placeholder="Escrever anotação"
83
+ v-model="newNote"
84
+ @change="$emit('new-note', newNote, userData.id)"
85
+ v-on:change="cleatInput()"
86
+ />
87
+ <i
88
+ @click="
89
+ newNote.length > 0 &&
90
+ $emit('new-note', newNote, userData.id)
91
+ "
92
+ class="fas fa-paper-plane input-icon"
93
+ ></i>
94
+ </div>
95
+ </el-tab-pane>
96
+
97
+ <el-tab-pane name="documents">
98
+ <span class="tab__icon-pane" slot="label">
99
+ <img
100
+ class="img__icon-pane img__icon--documents"
101
+ src="../../../../assets/images/icons/icon3.svg"
102
+ />
103
+ </span>
104
+ <p class="notes-title mb-0">Documentos anexados</p>
105
+ <div class="line mb-3"></div>
106
+
107
+ <div class="archive-content">
108
+ <div v-for="(item, index) in archives" :key="index">
109
+ <div @click="openArchive(item)" class="archive-container">
110
+ <div>
111
+ <img class="archive-img" src="../../../../assets/images/icons/icon3.svg" >
112
+ </div>
113
+ <div class="archive-name">
114
+ <p>
115
+ <span>{{item.name}}</span>
116
+ <div class="archive-icon">
117
+ <i @click.stop.prevent="openRemoveSection(item, (index+1))" class="far fa-trash-alt"></i>
118
+ </div>
119
+ </p>
120
+ </div>
121
+ </div>
122
+ <div v-if="hasRemove && hasRemove == (index+1)" class="archive-remove">
123
+ <p>Você tem certeza que deseja apagar este arquivo?</p>
124
+ <div class="d-flex">
125
+ <base-button
126
+ @click="removeArchive(currentRemoveItem, index)"
127
+ size="sm"
128
+ class="btn-outline-primary col-6 p-1"
129
+ >
130
+ Apagar
131
+ </base-button>
132
+ <base-button
133
+ @click="hasRemove = false"
134
+ size="sm"
135
+ class="btn-outline-danger col-6 p-1"
136
+ >
137
+ Cancelar
138
+ </base-button>
139
+ </div>
140
+ </div>
141
+ </div>
142
+
143
+ </div>
144
+ <div class="notes-text" v-show="archives == null">
145
+ <p>Nenhum arquvio anexado.</p>
146
+ </div>
147
+
148
+ <div class="input-container">
149
+ <div class="mt-5">
150
+
151
+ <dropzone-file-upload
152
+ disabled
153
+ @error="showMessageError"
154
+ ref="Mydropzone"
155
+ :options="dropzoneOptions"
156
+ v-model="fileToUpload"
157
+ />
158
+ </div>
159
+
160
+ <div class="archive-buttons">
161
+ <base-button @click="saveImage" size="sm" class="btn-outline-primary btn-rounded col-12">Salvar</base-button>
162
+ </div>
163
+ </div>
164
+ </el-tab-pane>
165
+
166
+ <el-tab-pane :disabled="true">
167
+ <span class="tab__icon-pane cursor-disabled" slot="label">
168
+ <img
169
+ class="img__icon-pane"
170
+ src="../../../../assets/images/icons/icon4.svg"
171
+ />
172
+ </span>
173
+ </el-tab-pane>
174
+ </el-tabs>
175
+ </div>
176
+ </template>
177
+
178
+ <script>
179
+ import { Tabs, TabPane } from 'element-ui';
180
+ import DropzoneFileUpload from '@burh/nuxt-core/components/argon-core/Inputs/DropzoneFileUpload.vue';
181
+ import swal from 'sweetalert2';
182
+
183
+ export default {
184
+ name: 'user-cv-right-side',
185
+ filters: {
186
+ convertDate(data) {
187
+ if (typeof data !== 'string') {
188
+ data = '2020-01-01 12:00:00';
189
+ }
190
+ let d = new Date(data);
191
+ let options = { hour: '2-digit', minute: '2-digit' };
192
+ return d.toLocaleDateString('pt-BR', options);
193
+ }
194
+ },
195
+ watch:{
196
+ fileToUpload(value){
197
+ if(value.length > 0 && value[0].accepted) {
198
+ this.isError = false;
199
+ }
200
+ }
201
+ },
202
+ components: {
203
+ [Tabs.name]: Tabs,
204
+ [TabPane.name]: TabPane,
205
+ DropzoneFileUpload,
206
+ },
207
+ data(){
208
+ return {
209
+ newNote: '',
210
+ active: this.activeName,
211
+ hasRemove: null,
212
+ isError: true,
213
+ currentRemoveItem: null,
214
+ fileToUpload: [],
215
+ dropzoneOptions: {
216
+ maxFilesize: 0.2,
217
+ dictFileTooBig:'Seu arquivo é poderoso demais (Máximo 200kb).',
218
+ dictDefaultMessage: 'Clique ou arraste seu arquivo aqui.',
219
+ dictInvalidFileType: 'Arquivo invalido.',
220
+ dictMaxFilesExceeded: 'Não é permitido mais de um arquivo por vez.',
221
+ acceptedFiles: 'image/*, application/pdf',
222
+ }
223
+ };
224
+ },
225
+ props: {
226
+ archives: Array,
227
+ userData: Object,
228
+ notes: Array,
229
+ activeName: String,
230
+ isNotesActived: {
231
+ type: Boolean,
232
+ default: true
233
+ },
234
+ },
235
+ mounted() {
236
+ this.companyHistory();
237
+ },
238
+ methods: {
239
+ openRemoveSection(item, index) {
240
+ this.hasRemove = index;
241
+ this.currentRemoveItem = item;
242
+ },
243
+
244
+ showToast(type, title){
245
+ const Toast = swal.mixin({
246
+ toast: true,
247
+ position: 'top-end',
248
+ showConfirmButton: false,
249
+ timer: 3100,
250
+ });
251
+
252
+ return Toast.fire({
253
+ type: type,
254
+ title: title
255
+ });
256
+ },
257
+
258
+ showMessageError(file, message) {
259
+ this.isError = true;
260
+ this.$refs.Mydropzone.removeAllFiles();
261
+
262
+ if (file.status !== 'canceled'){
263
+ this.showToast('error', message);
264
+ }
265
+ },
266
+
267
+ openArchive(item) {
268
+ window.open(item.annex_url, '_blank');
269
+ },
270
+
271
+ saveImage(){
272
+ if (!this.isError) {
273
+ this.$emit('save-archive', this.fileToUpload[0], this.userData.id);
274
+ this.$refs.Mydropzone.removeAllFiles();
275
+ this.showToast('success', 'Arquivo enviado com sucesso.');
276
+
277
+ } else {
278
+ if (this.fileToUpload.length > 0) {
279
+ this.showToast('error', 'Arquivo invalido.');
280
+ } else {
281
+ this.showToast('warning', 'Selecione um arquivo.');
282
+ }
283
+ }
284
+ },
285
+
286
+ removeArchive(archive, index){
287
+ console.log(archive)
288
+ this.$emit('remove-archive', archive.user_id, archive.id, archive.company_id, index);
289
+ this.hasRemove = null;
290
+ },
291
+
292
+ cleatInput() {
293
+ this.newNote = '';
294
+ },
295
+ companyHistory() {
296
+ let sms = this.userData.company_sms.map(x => ({
297
+ date: x.created_at,
298
+ text: 'Recebeu um SMS'
299
+ }));
300
+ let tests = this.userData.tests.map(x => ({
301
+ date: x.finished_at,
302
+ text: `Finalizou o teste ${x.test.name.toUpperCase()}`
303
+ }));
304
+ let discs = this.userData.solides.map(x => ({
305
+ date: x.end,
306
+ text: 'Realizou um teste DISC'
307
+ }));
308
+
309
+ return sms.concat(tests, discs);
310
+ },
311
+ orderByDate(data) {
312
+ let sortedArray = data.sort((a, b) => {
313
+ a = a.date || '2020-01-01 12:00:00';
314
+ b = b.date || '2020-01-01 12:00:00';
315
+
316
+ return new Date(b).getTime() - new Date(a).getTime();
317
+ });
318
+
319
+ return sortedArray;
320
+ },
321
+ },
322
+ };
323
+ </script>
324
+ <style>
325
+ .el-tabs__nav-wrap::after {
326
+ background: #fff !important;
327
+ }
328
+
329
+ .el-tabs__active-bar {
330
+ width: 34px !important;
331
+ height: 4px !important;
332
+ border-radius: 10px 10px 0px 0px;
333
+ }
334
+ </style>
335
+
336
+ <style lang="scss">
337
+ .swal2-title {
338
+ font-size: 1rem !important;
339
+ }
340
+ .swal2-container {
341
+ z-index: 5000 !important;
342
+ }
343
+ </style>
344
+
345
+ <style lang="scss" scoped>
346
+ @import '@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss';
347
+
348
+ /deep/.dropzone {
349
+ width: 95%;
350
+
351
+ .dz-message {
352
+ padding: 2rem 1rem !important;
353
+ }
354
+
355
+ button.dz-button {
356
+ background-color: transparent;
357
+ border: 0;
358
+ }
359
+ }
360
+
361
+ /deep/ .el-tab-pane {
362
+ max-height: 760px;
363
+ overflow: hidden;
364
+ overflow-y: auto;
365
+ position: relative;
366
+
367
+ > .notes-title {
368
+ position: sticky;
369
+ position: -webkit-sticky;
370
+ top: 0;
371
+ background: white;
372
+ padding: 10px 0;
373
+ }
374
+
375
+ > .input-container {
376
+ position: sticky;
377
+ position: -webkit-sticky;
378
+ bottom: 0;
379
+ background: white;
380
+ > .input-icon {
381
+ cursor: pointer;
382
+ position: absolute;
383
+ top: 50%;
384
+ right: 30px;
385
+ transform: translateY(-50%);
386
+ color: #c8c8c8;
387
+ }
388
+ }
389
+
390
+ &::-webkit-scrollbar {
391
+ width: 8px;
392
+ }
393
+
394
+ &::-webkit-scrollbar-track {
395
+ background: #f5f5f5;
396
+ }
397
+
398
+ &::-webkit-scrollbar-thumb {
399
+ background: #e9e8e8;
400
+ border-radius: 10px;
401
+ }
402
+
403
+ .archive-content {
404
+ width: 95%;
405
+
406
+ p {
407
+ margin-bottom: 0;
408
+ font-size: 0.875rem;
409
+ padding: .3rem .6rem 0 .6rem;
410
+ }
411
+
412
+ .archive-container {
413
+ display: flex;
414
+ align-items: center;
415
+ padding: 0.5rem 0.5rem 0.438rem;
416
+ cursor: pointer;
417
+ user-select: none;
418
+
419
+ &:hover{
420
+ background-color: #f6f9fc;
421
+ border-radius: 5px;
422
+ }
423
+
424
+ .archive-img {
425
+ background-color: #f5f5f5;
426
+ border-radius: 6px;
427
+ padding: 7px;
428
+ }
429
+
430
+ .archive-name {
431
+ display: flex;
432
+ margin-left: .8rem;
433
+ width: 145%;
434
+ justify-content: space-between !important;
435
+
436
+ .archive-icon {
437
+ margin-left: 1.5rem;
438
+ }
439
+
440
+ p {
441
+ margin: 0;
442
+ padding: 0;
443
+ width: 13rem;
444
+ white-space: nowrap;
445
+ overflow: hidden;
446
+ text-overflow: ellipsis;
447
+ }
448
+ }
449
+
450
+ .upload-container {
451
+ position: sticky;
452
+ position: -webkit-sticky;
453
+ bottom: 0;
454
+ background: white;
455
+ width: 231px;
456
+ }
457
+ }
458
+ }
459
+
460
+ .archive-buttons {
461
+ display: flex;
462
+ margin-top: -1rem;
463
+ width: 95%;
464
+ }
465
+
466
+ .archive-remove {
467
+ width: 90%;
468
+ word-break: break-word;
469
+ }
470
+ }
471
+
472
+ .readmore {
473
+ overflow: hidden;
474
+ text-overflow: ellipsis;
475
+ display: -webkit-box;
476
+ -webkit-line-clamp: 3;
477
+ -webkit-box-orient: vertical;
478
+ }
479
+
480
+ .tab__icon-pane {
481
+ .img__icon-pane {
482
+ background-color: #f5f5f5 !important;
483
+ border-radius: 30%;
484
+ padding: 7px;
485
+ margin-bottom: 1rem;
486
+ }
487
+ }
488
+
489
+ .content-right {
490
+ width: 25%;
491
+ }
492
+
493
+ .notes-title {
494
+ font-size: 14px;
495
+ color: #1d364b;
496
+ font-weight: bold;
497
+ background-color: white;
498
+ z-index: 500;
499
+ }
500
+
501
+ .notes-baloon {
502
+ width: 231px;
503
+ height: auto;
504
+
505
+ background: #eff5fd;
506
+ border-radius: 10px 10px 10px 0px;
507
+ }
508
+
509
+ .notes-text {
510
+ p {
511
+ font-size: 13px;
512
+ color: #62778c;
513
+ }
514
+ }
515
+
516
+ .notes-date {
517
+ font-size: 11px;
518
+ text-align: right;
519
+
520
+ color: #8da2b5;
521
+ top: calc(50% - 17px / 2 - 444.5px);
522
+ }
523
+
524
+ .notes-owner {
525
+ img {
526
+ width: 23px;
527
+ height: 23px;
528
+ border-radius: 50%;
529
+ }
530
+
531
+ .notes-avatar {
532
+ width: 23px;
533
+ height: 23px;
534
+ border-radius: 50%;
535
+ background-color: #adb5bd;
536
+ }
537
+
538
+ p {
539
+ font-size: 13px;
540
+ font-weight: 600;
541
+ text-transform: uppercase;
542
+
543
+ color: #62778c;
544
+ }
545
+ }
546
+
547
+ .notes-new {
548
+ width: 95%;
549
+ height: 33px;
550
+
551
+ background: #f5f5f5;
552
+ border-radius: 16.5px;
553
+ border: none;
554
+
555
+ outline: 0;
556
+ }
557
+
558
+ .line {
559
+ width: 221px;
560
+ height: 0px;
561
+
562
+ border: 1px solid #ececec5c;
563
+ }
564
+
565
+ .history {
566
+ word-break: break-word;
567
+
568
+ .history-text {
569
+ font-size: 13px;
570
+ color: #62778c;
571
+ }
572
+
573
+ span {
574
+ font-size: 11px;
575
+ line-height: 16px;
576
+
577
+ color: #8da2b5;
578
+ }
579
+ }
580
+
581
+ .cursor-disabled {
582
+ cursor: no-drop;
583
+ }
584
+ </style>