@burh/nuxt-core 1.0.403 → 1.0.404

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 (453) 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/Navbar/BaseNav.vue +122 -122
  227. package/components/argon-core/Navbar/NavbarProgress.vue +19 -19
  228. package/components/argon-core/Navbar/NavbarProgressItem.vue +17 -17
  229. package/components/argon-core/Navbar/NavbarToggleButton.vue +21 -21
  230. package/components/argon-core/NavbarToggleButton.vue +29 -29
  231. package/components/argon-core/NotificationPlugin/Notification.vue +207 -207
  232. package/components/argon-core/NotificationPlugin/Notifications.vue +55 -55
  233. package/components/argon-core/NotificationPlugin/index.js +66 -66
  234. package/components/argon-core/SidebarPlugin/SideBar.vue +119 -119
  235. package/components/argon-core/SidebarPlugin/SidebarItem.vue +184 -184
  236. package/components/argon-core/SidebarPlugin/index.js +79 -79
  237. package/components/argon-core/Tabs/Tab.vue +33 -33
  238. package/components/argon-core/Tabs/Tabs.vue +170 -170
  239. package/components/argon-core/Timeline/TimeLine.vue +17 -17
  240. package/components/argon-core/Timeline/TimeLineItem.vue +30 -30
  241. package/components/argon-core/WorldMap/AsyncWorldMap.vue +28 -28
  242. package/components/argon-core/WorldMap/WorldMap.vue +127 -127
  243. package/components/argon-core/index.js +82 -82
  244. package/components/burh-ds/Avatar/AvatarLink.vue +40 -40
  245. package/components/burh-ds/Avatar/BusinessAvatar.vue +38 -38
  246. package/components/burh-ds/Banners/BannerHero.vue +23 -23
  247. package/components/burh-ds/Banners/BannerItem.vue +14 -14
  248. package/components/burh-ds/Button/ExportButton.vue +20 -20
  249. package/components/burh-ds/Button/SwitchStateButton.vue +165 -165
  250. package/components/burh-ds/Capsules/SearchSlug.vue +860 -860
  251. package/components/burh-ds/Capsules/UserProfile.vue +1938 -1938
  252. package/components/burh-ds/Cards/CampaignCard.vue +40 -40
  253. package/components/burh-ds/Cards/CompanyCard.vue +39 -39
  254. package/components/burh-ds/Cards/CourseInfoCard.vue +72 -72
  255. package/components/burh-ds/Cards/FunctionalityItem.vue +35 -35
  256. package/components/burh-ds/Cards/OpportunityCard.vue +115 -115
  257. package/components/burh-ds/Cards/PerformanceItem.vue +65 -65
  258. package/components/burh-ds/Cards/PlanCard.vue +192 -192
  259. package/components/burh-ds/Cards/ProductCard.vue +142 -142
  260. package/components/burh-ds/Cards/PurchaseCard.vue +58 -58
  261. package/components/burh-ds/Cards/PurchaseCardSimple.vue +58 -58
  262. package/components/burh-ds/Cards/TestCard.vue +192 -189
  263. package/components/burh-ds/Cards/TrainingCard.vue +151 -151
  264. package/components/burh-ds/Cards/WelcomeCard.vue +106 -106
  265. package/components/burh-ds/Carousel/FeedCarousel.vue +47 -47
  266. package/components/burh-ds/Carousel/ImageCarousel.vue +111 -111
  267. package/components/burh-ds/Collapse/DefaultCollapse.vue +70 -70
  268. package/components/burh-ds/Crop/Crop.vue +121 -121
  269. package/components/burh-ds/Curriculum/UserCurriculum/UpgradePlan.vue +74 -74
  270. package/components/burh-ds/Curriculum/UserCurriculum/UserCvLeftSide.vue +516 -516
  271. package/components/burh-ds/Curriculum/UserCurriculum/UserCvMiddle.vue +512 -512
  272. package/components/burh-ds/Curriculum/UserCurriculum/UserCvRightSide.vue +819 -819
  273. package/components/burh-ds/Curriculum/UserCurriculum/index.vue +249 -249
  274. package/components/burh-ds/Dropdown/AppLinkArea.vue +132 -132
  275. package/components/burh-ds/Dropdown/DropdownItem.vue +26 -26
  276. package/components/burh-ds/Dropdown/DropdownSection.vue +38 -38
  277. package/components/burh-ds/Dropdown/FaqVideoArea.vue +88 -88
  278. package/components/burh-ds/Dropdown/SignOutItem.vue +11 -11
  279. package/components/burh-ds/Dropdown/UserMenuDropdown.vue +63 -63
  280. package/components/burh-ds/FeaturedCompanies/FeaturedCompanies.vue +11 -11
  281. package/components/burh-ds/FeaturedCompanies/FeaturedCompanyCard.vue +16 -16
  282. package/components/burh-ds/Filters/FilterWithDropdown.vue +248 -248
  283. package/components/burh-ds/Groups/ProductItem.vue +62 -62
  284. package/components/burh-ds/Groups/SimpleProductItem.vue +129 -129
  285. package/components/burh-ds/Headings/BaseHeader.vue +24 -24
  286. package/components/burh-ds/Headings/Profile.vue +66 -66
  287. package/components/burh-ds/Headings/ProfileHeader.vue +105 -105
  288. package/components/burh-ds/Headings/SettingsHeader.vue +48 -48
  289. package/components/burh-ds/Headings/StepHeader.vue +122 -122
  290. package/components/burh-ds/Input/AutoComplete.vue +136 -136
  291. package/components/burh-ds/Inputs/BaseCheckbox.vue +73 -73
  292. package/components/burh-ds/Inputs/BaseSwitch.vue +43 -43
  293. package/components/burh-ds/Inputs/BaseSwitchSecondary.vue +84 -84
  294. package/components/burh-ds/Inputs/DoubleInputWithIcon.vue +100 -100
  295. package/components/burh-ds/Inputs/HtmlEditor.vue +64 -64
  296. package/components/burh-ds/InterfaceSpa/InterfaceSpa.vue +83 -83
  297. package/components/burh-ds/Jobs/JobDetail.vue +432 -432
  298. package/components/burh-ds/Jobs/JobDetailDesign.vue +151 -151
  299. package/components/burh-ds/Jobs/JobDetailEmpty.vue +27 -27
  300. package/components/burh-ds/Labels/LabelContextIcon.vue +58 -58
  301. package/components/burh-ds/Link/DefaultLink.vue +30 -30
  302. package/components/burh-ds/Lists/ListAvatarCheckbox.vue +157 -157
  303. package/components/burh-ds/Lists/ListNavLinks.vue +54 -54
  304. package/components/burh-ds/Lists/VagasSimple.vue +404 -404
  305. package/components/burh-ds/Loadings/Basics.vue +80 -80
  306. package/components/burh-ds/Loadings/InfiniteLoading.vue +21 -21
  307. package/components/burh-ds/Loadings/LoadingFullPage.vue +68 -68
  308. package/components/burh-ds/Loadings/NewLoading.vue +119 -119
  309. package/components/burh-ds/Loads/LoadingBar.vue +83 -83
  310. package/components/burh-ds/Modals/AddCustomerModal.vue +527 -527
  311. package/components/burh-ds/Modals/AddMember.vue +301 -301
  312. package/components/burh-ds/Modals/AddRoleModal.vue +185 -185
  313. package/components/burh-ds/Modals/AppConfigModal.vue +390 -390
  314. package/components/burh-ds/Modals/CourseMessageModal.vue +66 -66
  315. package/components/burh-ds/Modals/DocsModal.vue +111 -111
  316. package/components/burh-ds/Modals/DropzoneModal.vue +123 -123
  317. package/components/burh-ds/Modals/InviteToRole.vue +272 -272
  318. package/components/burh-ds/Modals/MobileModal.vue +65 -65
  319. package/components/burh-ds/Modals/ModalTests.vue +167 -167
  320. package/components/burh-ds/Modals/PlanModal.vue +286 -286
  321. package/components/burh-ds/Modals/RequestModal.vue +281 -281
  322. package/components/burh-ds/Modals/SendCourse.vue +369 -369
  323. package/components/burh-ds/Modals/SendDisc.vue +230 -230
  324. package/components/burh-ds/Modals/SendTest.vue +349 -349
  325. package/components/burh-ds/Modals/ShareModal.vue +228 -228
  326. package/components/burh-ds/Modals/SmsModal.vue +327 -327
  327. package/components/burh-ds/Modals/SubModal.vue +41 -41
  328. package/components/burh-ds/Modals/UniversityAccessModal.vue +133 -133
  329. package/components/burh-ds/Modals/VideoModal.vue +80 -80
  330. package/components/burh-ds/Modals/WhatsappModal.vue +143 -143
  331. package/components/burh-ds/Navbar/BaseNav.vue +132 -132
  332. package/components/burh-ds/Notifications/Notification.vue +215 -215
  333. package/components/burh-ds/Notifications/Notifications.vue +55 -55
  334. package/components/burh-ds/Notifications/index.js +66 -66
  335. package/components/burh-ds/Pagination/NamedPagination.vue +176 -176
  336. package/components/burh-ds/Questions/Question.vue +183 -183
  337. package/components/burh-ds/Questions/QuestionAttach.vue +13 -13
  338. package/components/burh-ds/Questions/QuestionRadio.vue +122 -122
  339. package/components/burh-ds/Questions/QuestionRadioItem.vue +83 -83
  340. package/components/burh-ds/Questions/QuestionText.vue +66 -66
  341. package/components/burh-ds/Questions/index.js +13 -13
  342. package/components/burh-ds/Skeleton/BaseCardTest.vue +51 -51
  343. package/components/burh-ds/Skeleton/BaseTraining.vue +29 -29
  344. package/components/burh-ds/Skeleton/BufferFolderSkeleton.vue +41 -41
  345. package/components/burh-ds/Skeleton/BufferUserSkeleton.vue +142 -142
  346. package/components/burh-ds/Skeleton/Home.vue +100 -100
  347. package/components/burh-ds/Tabs/Tab.vue +56 -56
  348. package/components/burh-ds/Tabs/Tabs.vue +188 -188
  349. package/components/burh-ds/Video/MuxVideo.vue +39 -39
  350. package/components/burh-ds/index.js +20 -20
  351. package/components/layouts/argon/Content.vue +17 -17
  352. package/components/layouts/argon/navbar/BlankLayout.vue +61 -61
  353. package/components/layouts/argon/navbar/DashboardNavbar.vue +307 -307
  354. package/components/layouts/burh-ds/ContentFooter.vue +45 -45
  355. package/components/layouts/burh-ds/footer/FooterSimple.vue +20 -20
  356. package/components/layouts/burh-ds/footer/ProductsFooter.vue +330 -330
  357. package/components/layouts/burh-ds/footer/StatusFooter.vue +105 -105
  358. package/components/layouts/burh-ds/footer/StoreFooter.vue +54 -54
  359. package/components/layouts/burh-ds/navbar/AppNavbar.vue +97 -97
  360. package/components/layouts/burh-ds/navbar/BusinessGlobalNavbar.vue +435 -435
  361. package/components/layouts/burh-ds/navbar/CarreirasNavbar.vue +363 -363
  362. package/components/layouts/burh-ds/navbar/CompanyGlobalNavbar.vue +244 -244
  363. package/components/layouts/burh-ds/navbar/EmpresasNavbar.vue +374 -374
  364. package/components/layouts/burh-ds/navbar/EmpresasNavbarLogado.vue +388 -388
  365. package/components/layouts/burh-ds/navbar/GlobalNavbar.vue +535 -535
  366. package/components/layouts/burh-ds/navbar/MobileNavbar.vue +431 -431
  367. package/components/layouts/burh-ds/navbar/SimpleNavbar.vue +129 -129
  368. package/components/layouts/burh-ds/navbar/UserNavbar.vue +346 -346
  369. package/components/layouts/burh-ds/navbar/UserNavbarLogin.vue +253 -253
  370. package/components/pages/UserProfile/EditProfileForm.vue +142 -142
  371. package/components/pages/UserProfile/UserCard.vue +61 -61
  372. package/components/pages/dashboard/ActivityFeed.vue +102 -102
  373. package/components/pages/dashboard/LightTable.vue +194 -194
  374. package/components/pages/dashboard/PageVisitsTable.vue +107 -107
  375. package/components/pages/dashboard/ProgressTrackList.vue +82 -82
  376. package/components/pages/dashboard/SocialTrafficTable.vue +101 -101
  377. package/components/pages/dashboard/TaskList.vue +56 -56
  378. package/components/pages/dashboard/UserList.vue +72 -72
  379. package/components/pages/forms/BrowserDefaultsValidation.vue +106 -106
  380. package/components/pages/forms/CustomStylesValidation.vue +130 -130
  381. package/components/pages/forms/ServerSideValidation.vue +128 -128
  382. package/components/pages/register/FailedRegistration.vue +29 -29
  383. package/components/pages/register/SuccessfulRegistration.vue +29 -29
  384. package/components/tables/PaginatedTables/clientPaginationMixin.js +86 -86
  385. package/components/tables/RegularTables/CheckboxColoredTable.vue +112 -112
  386. package/components/tables/RegularTables/CheckboxTable.vue +101 -101
  387. package/components/tables/RegularTables/DarkTable.vue +114 -114
  388. package/components/tables/RegularTables/InlineActionsTable.vue +94 -94
  389. package/components/tables/RegularTables/LightTable.vue +117 -117
  390. package/components/tables/RegularTables/StripedTable.vue +94 -94
  391. package/components/tables/RegularTables/TranslucentTable.vue +114 -114
  392. package/components/tables/projects.js +75 -75
  393. package/components/tables/users.js +42 -42
  394. package/components/tables/users2.js +474 -474
  395. package/components/widgets/CalendarWidget.vue +119 -119
  396. package/components/widgets/CreditCard.vue +66 -66
  397. package/components/widgets/MembersCard.vue +99 -99
  398. package/components/widgets/PaypalCard.vue +45 -45
  399. package/components/widgets/ProgressTrackList.vue +76 -76
  400. package/components/widgets/StatsCards.vue +70 -70
  401. package/components/widgets/TaskList.vue +67 -67
  402. package/components/widgets/TimelineCard.vue +66 -66
  403. package/components/widgets/VectorMapCard.vue +139 -139
  404. package/components/widgets/VisaCard.vue +51 -51
  405. package/data/ListVideoLinksMock.json +21 -21
  406. package/dictionary.js +38 -38
  407. package/environment.env.md +34 -34
  408. package/eslint.config.json +12 -12
  409. package/layouts/AuthLayout.vue +191 -191
  410. package/layouts/BurhCarreirasLayout.vue +63 -63
  411. package/layouts/BurhEmpresasLayout.vue +64 -64
  412. package/layouts/BurhNoHeader.vue +63 -63
  413. package/layouts/BurhPublicLayout.vue +67 -67
  414. package/layouts/BurhUserLayout.vue +231 -231
  415. package/layouts/DashboardLayout.vue +226 -226
  416. package/layouts/error.vue +119 -119
  417. package/metadata.json +30 -30
  418. package/middleware/README.md +8 -8
  419. package/middleware/decodeUrl.js +8 -8
  420. package/middleware/maintenance.js +9 -9
  421. package/middleware/new-account.js +6 -6
  422. package/middleware/redirect.js +13 -13
  423. package/middleware/user-agent-error.js +28 -28
  424. package/package.json +114 -114
  425. package/plugins/README.md +7 -7
  426. package/plugins/analytics/ga.js +28 -28
  427. package/plugins/auth/auth.js +210 -210
  428. package/plugins/axios.js +32 -32
  429. package/plugins/carousel/owl-carousel.js +3 -3
  430. package/plugins/crop/crop.js +4 -4
  431. package/plugins/dashboard/dashboard-plugin.js +29 -29
  432. package/plugins/dashboard/directives/click-outside.js +15 -15
  433. package/plugins/dashboard/eventBus.js +1 -1
  434. package/plugins/dashboard/globalComponents.js +41 -41
  435. package/plugins/dashboard/globalDirectives.js +7 -7
  436. package/plugins/dom/loader.js +76 -76
  437. package/plugins/localstorage.js +20 -20
  438. package/plugins/location/location.js +41 -41
  439. package/plugins/pagination/pagination.js +3 -3
  440. package/plugins/qrcode/qrcode.js +4 -4
  441. package/plugins/router.js +8 -8
  442. package/plugins/social-media/fb-sdk.js +44 -44
  443. package/plugins/social-media/share-link-facebook.js +32 -32
  444. package/plugins/social-media/share-link-linkedin.js +30 -30
  445. package/plugins/social-media/share-link-twitter.js +30 -30
  446. package/plugins/social-media/share-link-whatsapp.js +31 -31
  447. package/polyfills.js +96 -96
  448. package/util/common.js +189 -189
  449. package/util/cookie.js +28 -28
  450. package/util/dom.js +63 -63
  451. package/util/getPrefixes.js +12 -12
  452. package/util/request.js +46 -46
  453. package/util/throttle.js +15 -15
@@ -1,819 +1,819 @@
1
- <template>
2
- <div class="bg-white content-right tabs">
3
- <el-tabs
4
- :class="active"
5
- class="mt-3 handle-icon-color"
6
- v-model="active"
7
- >
8
- <el-tab-pane class="history ml-2" 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
- <upgrade-plan @send-contact="sendContact" v-show="isLocked" />
16
- <p class="notes-title mb-0">Histórico com sua empresa</p>
17
- <div class="line mb-3"></div>
18
-
19
- <div
20
- class="mt-3"
21
- v-for="(item, index) in orderByDate(companyHistory())"
22
- :key="index"
23
- >
24
- <p class="history-text mb-0">
25
- {{ item.text }}
26
- </p>
27
- <span>{{ item.date | convertDate }}</span>
28
- </div>
29
- <p v-show="companyHistory().length === 0" class="history-text">
30
- Histórico vazio.
31
- </p>
32
- </el-tab-pane>
33
-
34
- <el-tab-pane name="notes" class="ml-2" v-if="isNotesActived">
35
- <span class="tab__icon-pane" slot="label">
36
- <img
37
- class="img__icon-pane img__icon--notes"
38
- src="../../../../assets/images/icons/notesCv.svg"
39
- />
40
- </span>
41
- <upgrade-plan @send-contact="sendContact" v-show="isLocked" />
42
- <p class="notes-title mb-0">Notas da equipe</p>
43
- <div class="line mb-3"></div>
44
- <div
45
- v-show="notes.length > 0"
46
- v-for="(note, index) in notes.slice(0, 5)"
47
- :key="index"
48
- >
49
- <div class="notes-baloon">
50
- <div class="notes-text ml-3 pt-1">
51
- <p class="mt-3">{{ note.text }}</p>
52
- </div>
53
- <div
54
- class="d-flex justify-content-end align-items-center mr-3"
55
- >
56
- <p class="notes-date">
57
- {{ note.created_at | convertDate }}
58
- </p>
59
- </div>
60
- </div>
61
- <div class="notes-owner d-flex mt-2">
62
- <img
63
- v-show="note.user.urlAvatar"
64
- :src="note.user.urlAvatar"
65
- :alt="note.user.name"
66
- />
67
- <div
68
- v-show="!note.user.urlAvatar"
69
- class="notes-avatar"
70
- ></div>
71
- <p class="ml-1">
72
- {{ note.user.name }}
73
- </p>
74
- </div>
75
- </div>
76
- <div class="notes-text" v-show="notes.length === 0">
77
- <p>Nenhuma nota criada.</p>
78
- </div>
79
-
80
- <div class="input-container" v-show="!isLocked">
81
- <input
82
- class="notes-new pl-4 mt-3 mb-3 form-rounded"
83
- type="text"
84
- placeholder="Escrever anotação"
85
- v-model="newNote"
86
- @change="$emit('new-note', newNote, userData.id)"
87
- v-on:change="cleatInput()"
88
- />
89
- <i
90
- @click="
91
- newNote.length > 0 &&
92
- $emit('new-note', newNote, userData.id)
93
- "
94
- class="fas fa-paper-plane input-icon"
95
- ></i>
96
- </div>
97
- </el-tab-pane>
98
-
99
- <el-tab-pane name="documents" class="ml-2">
100
- <span class="tab__icon-pane" slot="label">
101
- <img
102
- class="img__icon-pane img__icon--documents"
103
- src="../../../../assets/images/icons/icon3.svg"
104
- />
105
- </span>
106
- <upgrade-plan @send-contact="sendContact" v-show="isLocked" />
107
- <p class="notes-title mb-0">Documentos anexados</p>
108
- <div class="line mb-3"></div>
109
-
110
- <div class="archive-content">
111
- <div v-for="(item, index) in archives" :key="index">
112
- <div @click="openArchive(item)" class="archive-container">
113
- <div>
114
- <img class="archive-img" src="../../../../assets/images/icons/icon3.svg" >
115
- </div>
116
- <div class="archive-name">
117
- <span>{{item.name}}</span>
118
- <div class="archive-icon">
119
- <i @click.stop.prevent="openRemoveSection(item, (index+1))" class="far fa-trash-alt"></i>
120
- </div>
121
- </div>
122
- </div>
123
- <div v-if="hasRemove && hasRemove == (index+1)" class="archive-remove">
124
- <p>Você tem certeza que deseja apagar este arquivo?</p>
125
- <div class="d-flex">
126
- <base-button
127
- @click="removeArchive(currentRemoveItem, index)"
128
- size="sm"
129
- class="btn-outline-primary col-6 p-1"
130
- >
131
- Apagar
132
- </base-button>
133
- <base-button
134
- @click="hasRemove = false"
135
- size="sm"
136
- class="btn-outline-danger col-6 p-1"
137
- >
138
- Cancelar
139
- </base-button>
140
- </div>
141
- </div>
142
- </div>
143
-
144
- </div>
145
- <div class="notes-text" v-show="archives == null">
146
- <p>Nenhum arquvio anexado.</p>
147
- </div>
148
-
149
- <div class="input-container" v-show="!isLocked">
150
- <div class="mt-5">
151
-
152
- <dropzone-file-upload
153
- disabled
154
- @error="showMessageError"
155
- ref="Mydropzone"
156
- :options="dropzoneOptions"
157
- v-model="fileToUpload"
158
- />
159
- </div>
160
-
161
- <div class="archive-buttons">
162
- <base-button @click="saveImage" size="sm" class="btn-outline-primary btn-rounded col-12">Salvar</base-button>
163
- </div>
164
- </div>
165
- </el-tab-pane>
166
-
167
- <el-tab-pane name="reports" class="ml-2" v-if="isReportsActived">
168
- <span class="tab__icon-pane" slot="label">
169
- <img
170
- class="img__icon-pane img__icon--reports"
171
- src="../../../../assets/images/icons/icon5.svg"
172
- />
173
- </span>
174
-
175
- <upgrade-plan @send-contact="sendContact" v-show="isLocked" />
176
-
177
- <p class="notes-title mb-0">Laudo do Candidato</p>
178
- <div class="line mb-3"></div>
179
-
180
- <div class="input-container" v-if="!isLocked && !userReportData.annex">
181
- <dropzone-file-upload
182
- disabled
183
- ref="Mydropzone"
184
- v-model="reportFileUpload"
185
- :options="reportsDropdownzoneOptions"
186
- @error="showMessageError"
187
- />
188
-
189
- <div class="archive-buttons" v-if="reportFileUpload.length > 0">
190
- <base-button @click="saveReport" size="sm" class="btn-outline-primary btn-rounded col-12">Salvar</base-button>
191
- </div>
192
- </div>
193
-
194
- <div class="archive-content" v-else-if="userReportData.annex">
195
- <div @click="openArchive(userReportData.annex)" class="archive-container">
196
- <div>
197
- <img class="archive-img" src="../../../../assets/images/icons/icon6.svg" >
198
- </div>
199
- <div class="archive-name">
200
- <span>{{ userReportData.annex.name }}</span>
201
- <div class="archive-icon">
202
- <i @click.stop.prevent="openReportRemoveSection(userReportData.annex)" class="far fa-trash-alt"></i>
203
- </div>
204
- </div>
205
- </div>
206
- <div v-if="hasReportRemove" class="archive-remove">
207
- <p>Você tem certeza que deseja apagar este arquivo?</p>
208
- <div class="d-flex">
209
- <base-button
210
- @click="removeReportArchive(currentRemoveItem)"
211
- size="sm"
212
- class="btn-outline-primary col-6 p-1"
213
- >
214
- Apagar
215
- </base-button>
216
- <base-button
217
- @click="hasRemove = false"
218
- size="sm"
219
- class="btn-outline-danger col-6 p-1"
220
- >
221
- Cancelar
222
- </base-button>
223
- </div>
224
- </div>
225
- </div>
226
-
227
- <p class="notes-title mb-0">Comentários Recrutador</p>
228
- <div class="line mb-3"></div>
229
-
230
- <div v-if="!isLocked && userReportData.comment">
231
- <div class="notes-baloon fullsize">
232
- <div class="notes-text mx-3 pt-1">
233
- <p class="mt-3">{{ userReportData.comment.comment }}</p>
234
- </div>
235
- <div
236
- class="d-flex justify-content-end align-items-center mr-3"
237
- >
238
- <p class="notes-date">
239
- {{ userReportData.comment.created_at | convertDate }}
240
- </p>
241
- </div>
242
- </div>
243
- <div class="notes-owner d-flex mt-2">
244
- <img
245
- v-if="userReportData.comment.user.urlAvatar"
246
- :src="userReportData.comment.user.urlAvatar"
247
- :alt="userReportData.comment.user.name"
248
- />
249
- <div
250
- v-else
251
- class="notes-avatar"
252
- ></div>
253
- <p class="ml-1">
254
- {{ userReportData.comment.user.name }}
255
- </p>
256
- </div>
257
- </div>
258
-
259
- <div class="input-container" v-show="!isLocked && !userReportData.comment">
260
- <input
261
- class="notes-new pl-4 mt-3 mb-3 form-rounded"
262
- type="text"
263
- placeholder="Escrever anotação"
264
- v-model="newReportNote"
265
- @change="handleNewReportNoteSubmit"
266
- v-on:change="cleatInput()"
267
- />
268
- <i
269
- @click="handleNewReportNoteSubmit"
270
- class="fas fa-paper-plane input-icon"
271
- ></i>
272
- </div>
273
- </el-tab-pane>
274
-
275
- <!-- <el-tab-pane :disabled="true">
276
- <span class="tab__icon-pane cursor-disabled" slot="label">
277
- <img
278
- class="img__icon-pane"
279
- src="../../../../assets/images/icons/icon4.svg"
280
- />
281
- </span>
282
- </el-tab-pane> -->
283
- </el-tabs>
284
- </div>
285
- </template>
286
-
287
- <script>
288
- import { Tabs, TabPane } from 'element-ui';
289
- import DropzoneFileUpload from '@burh/nuxt-core/components/argon-core/Inputs/DropzoneFileUpload.vue';
290
- import swal from 'sweetalert2';
291
- import UpgradePlan from './UpgradePlan.vue';
292
-
293
- export default {
294
- name: 'user-cv-right-side',
295
- filters: {
296
- convertDate(data) {
297
- if (typeof data !== 'string') {
298
- data = '2020-01-01 12:00:00';
299
- }
300
- let d = new Date(data);
301
- let options = { hour: '2-digit', minute: '2-digit' };
302
- return d.toLocaleDateString('pt-BR', options);
303
- }
304
- },
305
- watch:{
306
- fileToUpload(value){
307
- if(value.length > 0 && value[0].accepted) {
308
- this.isError = false;
309
- }
310
- },
311
- reportFileUpload(value){
312
- if(value.length > 0 && value[0].accepted) {
313
- this.isError = false;
314
- }
315
- },
316
- archives() {
317
- this.getUserFolderData();
318
- }
319
- },
320
- components: {
321
- [Tabs.name]: Tabs,
322
- [TabPane.name]: TabPane,
323
- DropzoneFileUpload,
324
- UpgradePlan
325
- },
326
- data(){
327
- return {
328
- newNote: '',
329
- newReportNote: '',
330
- active: this.activeName,
331
- hasRemove: null,
332
- isError: true,
333
- currentRemoveItem: null,
334
- fileToUpload: [],
335
- dropzoneOptions: {
336
- maxFilesize: 5,
337
- dictFileTooBig:'Seu arquivo é poderoso demais (Máximo 5mb).',
338
- dictDefaultMessage: 'Clique ou arraste seu arquivo aqui.',
339
- dictInvalidFileType: 'Arquivo invalido.',
340
- dictMaxFilesExceeded: 'Não é permitido mais de um arquivo por vez.',
341
- acceptedFiles: 'image/*, application/pdf',
342
- },
343
- reportFileUpload: [],
344
- reportsDropdownzoneOptions: {
345
- maxFilesize: 1,
346
- dictFileTooBig:'Seu arquivo é poderoso demais (Máximo 5mb).',
347
- dictDefaultMessage: 'Clique ou arraste seu arquivo aqui.',
348
- dictInvalidFileType: 'Arquivo invalido.',
349
- dictMaxFilesExceeded: 'Não é permitido mais de um arquivo por vez.',
350
- acceptedFiles: 'image/*, application/pdf',
351
- },
352
- userReportData: [],
353
- hasReportRemove: false,
354
- isLocked: !this.companyHasProduct(
355
- this.$store.state.loja && this.$store.state.loja.showableProducts && this.$store.state.loja.showableProducts['HISTORICO_USUARIO'] || false
356
- ),
357
- };
358
- },
359
- props: {
360
- archives: Array,
361
- userData: Object,
362
- notes: Array,
363
- activeName: String,
364
- userFolderId: String,
365
- isNotesActived: {
366
- type: Boolean,
367
- default: true
368
- },
369
- isReportsActived: {
370
- type: Boolean,
371
- default: false
372
- },
373
- },
374
- mounted() {
375
- this.companyHistory();
376
- this.getUserFolderData();
377
- },
378
- methods: {
379
- handleNewReportNoteSubmit() {
380
- if (this.newReportNote.length > 3) {
381
- this.$emit('new-report-note', this.newReportNote, this.userFolderId, this.userData.id);
382
- this.newReportNote = '';
383
- }
384
- },
385
- openRemoveSection(item, index) {
386
- this.hasRemove = index;
387
- this.currentRemoveItem = item;
388
- },
389
- openReportRemoveSection(item) {
390
- this.hasReportRemove = true;
391
- this.currentRemoveItem = item;
392
- },
393
-
394
- showToast(type, title){
395
- const Toast = swal.mixin({
396
- toast: true,
397
- position: 'top-end',
398
- showConfirmButton: false,
399
- timer: 3100,
400
- });
401
-
402
- return Toast.fire({
403
- type: type,
404
- title: title
405
- });
406
- },
407
-
408
- showMessageError(file, message) {
409
- this.isError = true;
410
- this.$refs.Mydropzone.removeAllFiles();
411
-
412
- if (file.status !== 'canceled'){
413
- this.showToast('error', message);
414
- }
415
- },
416
-
417
- openArchive(item) {
418
- window.open(item.annex_url, '_blank');
419
- },
420
-
421
- saveImage(){
422
- if (!this.isError) {
423
- this.$emit('save-archive', this.fileToUpload[0], this.userData.id);
424
- this.$refs.Mydropzone.removeAllFiles();
425
- this.showToast('success', 'Arquivo enviado com sucesso.');
426
-
427
- } else {
428
- if (this.fileToUpload.length > 0) {
429
- this.showToast('error', 'Arquivo invalido.');
430
- } else {
431
- this.showToast('warning', 'Selecione um arquivo.');
432
- }
433
- }
434
- },
435
-
436
- saveReport() {
437
- if (!this.isError) {
438
- this.$emit('save-report', this.reportFileUpload[0], this.userFolderId);
439
- this.$refs.Mydropzone.removeAllFiles();
440
- this.showToast('success', 'Arquivo enviado com sucesso.');
441
-
442
- } else {
443
- if (this.reportFileUpload.length > 0) {
444
- this.showToast('error', 'Arquivo invalido.');
445
- } else {
446
- this.showToast('warning', 'Selecione um arquivo.');
447
- }
448
- }
449
- },
450
-
451
- removeArchive(archive, index){
452
- this.$emit('remove-archive', archive.user_id, archive.id, archive.company_id, index);
453
- this.hasRemove = null;
454
- },
455
-
456
- removeReportArchive(archive) {
457
- this.userReportData.annex = undefined;
458
-
459
- this.$emit('remove-report', archive.id);
460
- this.hasReportRemove = false;
461
- },
462
-
463
- cleatInput() {
464
- this.newNote = '';
465
- },
466
- companyHistory() {
467
- let sms = this.userData.company_sms.map(x => ({
468
- date: x.created_at,
469
- text: 'Recebeu um SMS'
470
- }));
471
- let tests = this.userData.tests.map(x => {
472
- if (x.finished_at) {
473
- return {
474
- date: x.finished_at,
475
- text: `Finalizou o teste ${x.test.name.toUpperCase()}`
476
- };
477
- } else {
478
- return {
479
- date: x.created_at,
480
- text: `Recebeu o teste ${x.test.name.toUpperCase()}`
481
- };
482
- }
483
-
484
- });
485
- let discs = this.userData.solides.map(x => ({
486
- date: x.end,
487
- text: 'Realizou um teste DISC'
488
- }));
489
-
490
- return sms.concat(tests, discs);
491
- },
492
- orderByDate(data) {
493
- let sortedArray = data.sort((a, b) => {
494
- a = a.date || '2020-01-01 12:00:00';
495
- b = b.date || '2020-01-01 12:00:00';
496
-
497
- return new Date(b).getTime() - new Date(a).getTime();
498
- });
499
-
500
- return sortedArray;
501
- },
502
- sendContact() {
503
- this.$emit('open-contact');
504
- },
505
-
506
- async getUserFolderData() {
507
- if (this.isReportsActived) {
508
- const apiUrl = `${process.env.baseApiUrlV2}/company/buffer/folder/user/${this.userFolderId}`;
509
-
510
- const data = await this.$axios(apiUrl)
511
- .then(res => res.data)
512
- .catch(() => {});
513
-
514
- if (!data) return;
515
-
516
- this.mountUserReport(data.data);
517
- }
518
- },
519
-
520
- mountUserReport(userData) {
521
- const annex = userData.annex[0] || undefined;
522
- const comment = userData.comments[0] || undefined;
523
-
524
- this.userReportData = {
525
- annex,
526
- comment
527
- };
528
- }
529
- },
530
- };
531
- </script>
532
- <style>
533
- .el-tabs__nav-wrap.is-top::after {
534
- background: #fff !important;
535
- }
536
-
537
- .el-tabs__active-bar.is-top {
538
- width: 30px !important;
539
- height: 4px !important;
540
- border-radius: 10px 10px 0px 0px;
541
- }
542
- </style>
543
-
544
- <style lang="scss">
545
- .swal2-title {
546
- font-size: 1rem !important;
547
- }
548
- .swal2-container {
549
- z-index: 5000 !important;
550
- }
551
- </style>
552
-
553
- <style lang="scss" scoped>
554
- @import '@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss';
555
-
556
- /deep/.dropzone {
557
- width: 95%;
558
-
559
- .dz-message {
560
- padding: 2rem 1rem !important;
561
- }
562
-
563
- button.dz-button {
564
- background-color: transparent;
565
- border: 0;
566
- }
567
- }
568
-
569
- /deep/ .el-tab-pane {
570
- height: 760px;
571
- max-height: 760px;
572
- overflow: hidden;
573
- overflow-y: auto;
574
- position: relative;
575
-
576
- > .notes-title {
577
- position: sticky;
578
- position: -webkit-sticky;
579
- top: 0;
580
- background: white;
581
- padding: 10px 0;
582
- }
583
-
584
- > .input-container {
585
- position: sticky;
586
- position: -webkit-sticky;
587
- bottom: 0;
588
- background: white;
589
- > .input-icon {
590
- cursor: pointer;
591
- position: absolute;
592
- top: 50%;
593
- right: 30px;
594
- transform: translateY(-50%);
595
- color: #c8c8c8;
596
- }
597
- }
598
-
599
- &::-webkit-scrollbar {
600
- width: 8px;
601
- }
602
-
603
- &::-webkit-scrollbar-track {
604
- background: #f5f5f5;
605
- }
606
-
607
- &::-webkit-scrollbar-thumb {
608
- background: #e9e8e8;
609
- border-radius: 10px;
610
- }
611
-
612
- .archive-content {
613
- width: 95%;
614
-
615
- p {
616
- margin-bottom: 0;
617
- font-size: 0.875rem;
618
- padding: .3rem .6rem 0 .6rem;
619
- }
620
-
621
- .archive-container {
622
- display: flex;
623
- align-items: center;
624
- padding: 0.5rem 0.5rem 0.438rem;
625
- cursor: pointer;
626
- user-select: none;
627
-
628
- &:hover{
629
- background-color: #f6f9fc;
630
- border-radius: 5px;
631
- }
632
-
633
- .archive-img {
634
- background-color: #f5f5f5;
635
- border-radius: 6px;
636
- padding: 7px;
637
- }
638
-
639
- .archive-name {
640
- display: flex;
641
- margin-left: .8rem;
642
- width: 145%;
643
- justify-content: space-between !important;
644
-
645
- .archive-icon {
646
- margin-left: 1.5rem;
647
- }
648
-
649
- p {
650
- margin: 0;
651
- padding: 0;
652
- width: 13rem;
653
- white-space: nowrap;
654
- overflow: hidden;
655
- text-overflow: ellipsis;
656
- }
657
- }
658
-
659
- .upload-container {
660
- position: sticky;
661
- position: -webkit-sticky;
662
- bottom: 0;
663
- background: white;
664
- width: 231px;
665
- }
666
- }
667
- }
668
-
669
- .archive-buttons {
670
- display: flex;
671
- margin-top: -1rem;
672
- width: 95%;
673
- }
674
-
675
- .archive-remove {
676
- width: 90%;
677
- word-break: break-word;
678
- }
679
- }
680
-
681
- /deep/ .el-tabs__nav-scroll {
682
- display: flex;
683
- justify-content: stretch;
684
- align-items: flex-start;
685
- }
686
-
687
- /deep/ .el-tabs__item {
688
- padding: 0 1.60rem !important;
689
- }
690
-
691
- /deep/ .el-tabs__nav {
692
- width: 100% !important;
693
- user-select: none;
694
- }
695
-
696
- @media (max-width: 1520px) {
697
- /deep/ .el-tabs__item {
698
- padding: 0 1.8rem !important;
699
- }
700
- }
701
-
702
- .readmore {
703
- overflow: hidden;
704
- text-overflow: ellipsis;
705
- display: -webkit-box;
706
- -webkit-line-clamp: 3;
707
- -webkit-box-orient: vertical;
708
- }
709
-
710
- .tab__icon-pane {
711
- .img__icon-pane {
712
- background-color: #f5f5f5 !important;
713
- border-radius: 30%;
714
- padding: 7px;
715
- margin-bottom: 1rem;
716
- }
717
- }
718
-
719
- .content-right {
720
- width: 25%;
721
- }
722
-
723
- .notes-title {
724
- font-size: 14px;
725
- color: #1d364b;
726
- font-weight: bold;
727
- background-color: white;
728
- z-index: 500;
729
- }
730
-
731
- .notes-baloon {
732
- width: 231px;
733
- height: auto;
734
-
735
- background: #eff5fd;
736
- border-radius: 10px 10px 10px 0px;
737
-
738
- &.fullsize {
739
- width: 80%!important;
740
- min-width: 280px;
741
- }
742
- }
743
-
744
- .notes-text {
745
- p {
746
- font-size: 13px;
747
- color: #62778c;
748
- }
749
- }
750
-
751
- .notes-date {
752
- font-size: 11px;
753
- text-align: right;
754
-
755
- color: #8da2b5;
756
- top: calc(50% - 17px / 2 - 444.5px);
757
- }
758
-
759
- .notes-owner {
760
- img {
761
- width: 23px;
762
- height: 23px;
763
- border-radius: 50%;
764
- }
765
-
766
- .notes-avatar {
767
- width: 23px;
768
- height: 23px;
769
- border-radius: 50%;
770
- background-color: #adb5bd;
771
- }
772
-
773
- p {
774
- font-size: 13px;
775
- font-weight: 600;
776
- text-transform: uppercase;
777
-
778
- color: #62778c;
779
- }
780
- }
781
-
782
- .notes-new {
783
- width: 95%;
784
- height: 33px;
785
-
786
- background: #f5f5f5;
787
- border-radius: 16.5px;
788
- border: none;
789
-
790
- outline: 0;
791
- }
792
-
793
- .line {
794
- width: 221px;
795
- height: 0px;
796
-
797
- border: 1px solid #ececec5c;
798
- }
799
-
800
- .history {
801
- word-break: break-word;
802
-
803
- .history-text {
804
- font-size: 13px;
805
- color: #62778c;
806
- }
807
-
808
- span {
809
- font-size: 11px;
810
- line-height: 16px;
811
-
812
- color: #8da2b5;
813
- }
814
- }
815
-
816
- .cursor-disabled {
817
- cursor: no-drop;
818
- }
819
- </style>
1
+ <template>
2
+ <div class="bg-white content-right tabs">
3
+ <el-tabs
4
+ :class="active"
5
+ class="mt-3 handle-icon-color"
6
+ v-model="active"
7
+ >
8
+ <el-tab-pane class="history ml-2" 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
+ <upgrade-plan @send-contact="sendContact" v-show="isLocked" />
16
+ <p class="notes-title mb-0">Histórico com sua empresa</p>
17
+ <div class="line mb-3"></div>
18
+
19
+ <div
20
+ class="mt-3"
21
+ v-for="(item, index) in orderByDate(companyHistory())"
22
+ :key="index"
23
+ >
24
+ <p class="history-text mb-0">
25
+ {{ item.text }}
26
+ </p>
27
+ <span>{{ item.date | convertDate }}</span>
28
+ </div>
29
+ <p v-show="companyHistory().length === 0" class="history-text">
30
+ Histórico vazio.
31
+ </p>
32
+ </el-tab-pane>
33
+
34
+ <el-tab-pane name="notes" class="ml-2" v-if="isNotesActived">
35
+ <span class="tab__icon-pane" slot="label">
36
+ <img
37
+ class="img__icon-pane img__icon--notes"
38
+ src="../../../../assets/images/icons/notesCv.svg"
39
+ />
40
+ </span>
41
+ <upgrade-plan @send-contact="sendContact" v-show="isLocked" />
42
+ <p class="notes-title mb-0">Notas da equipe</p>
43
+ <div class="line mb-3"></div>
44
+ <div
45
+ v-show="notes.length > 0"
46
+ v-for="(note, index) in notes.slice(0, 5)"
47
+ :key="index"
48
+ >
49
+ <div class="notes-baloon">
50
+ <div class="notes-text ml-3 pt-1">
51
+ <p class="mt-3">{{ note.text }}</p>
52
+ </div>
53
+ <div
54
+ class="d-flex justify-content-end align-items-center mr-3"
55
+ >
56
+ <p class="notes-date">
57
+ {{ note.created_at | convertDate }}
58
+ </p>
59
+ </div>
60
+ </div>
61
+ <div class="notes-owner d-flex mt-2">
62
+ <img
63
+ v-show="note.user.urlAvatar"
64
+ :src="note.user.urlAvatar"
65
+ :alt="note.user.name"
66
+ />
67
+ <div
68
+ v-show="!note.user.urlAvatar"
69
+ class="notes-avatar"
70
+ ></div>
71
+ <p class="ml-1">
72
+ {{ note.user.name }}
73
+ </p>
74
+ </div>
75
+ </div>
76
+ <div class="notes-text" v-show="notes.length === 0">
77
+ <p>Nenhuma nota criada.</p>
78
+ </div>
79
+
80
+ <div class="input-container" v-show="!isLocked">
81
+ <input
82
+ class="notes-new pl-4 mt-3 mb-3 form-rounded"
83
+ type="text"
84
+ placeholder="Escrever anotação"
85
+ v-model="newNote"
86
+ @change="$emit('new-note', newNote, userData.id)"
87
+ v-on:change="cleatInput()"
88
+ />
89
+ <i
90
+ @click="
91
+ newNote.length > 0 &&
92
+ $emit('new-note', newNote, userData.id)
93
+ "
94
+ class="fas fa-paper-plane input-icon"
95
+ ></i>
96
+ </div>
97
+ </el-tab-pane>
98
+
99
+ <el-tab-pane name="documents" class="ml-2">
100
+ <span class="tab__icon-pane" slot="label">
101
+ <img
102
+ class="img__icon-pane img__icon--documents"
103
+ src="../../../../assets/images/icons/icon3.svg"
104
+ />
105
+ </span>
106
+ <upgrade-plan @send-contact="sendContact" v-show="isLocked" />
107
+ <p class="notes-title mb-0">Documentos anexados</p>
108
+ <div class="line mb-3"></div>
109
+
110
+ <div class="archive-content">
111
+ <div v-for="(item, index) in archives" :key="index">
112
+ <div @click="openArchive(item)" class="archive-container">
113
+ <div>
114
+ <img class="archive-img" src="../../../../assets/images/icons/icon3.svg" >
115
+ </div>
116
+ <div class="archive-name">
117
+ <span>{{item.name}}</span>
118
+ <div class="archive-icon">
119
+ <i @click.stop.prevent="openRemoveSection(item, (index+1))" class="far fa-trash-alt"></i>
120
+ </div>
121
+ </div>
122
+ </div>
123
+ <div v-if="hasRemove && hasRemove == (index+1)" class="archive-remove">
124
+ <p>Você tem certeza que deseja apagar este arquivo?</p>
125
+ <div class="d-flex">
126
+ <base-button
127
+ @click="removeArchive(currentRemoveItem, index)"
128
+ size="sm"
129
+ class="btn-outline-primary col-6 p-1"
130
+ >
131
+ Apagar
132
+ </base-button>
133
+ <base-button
134
+ @click="hasRemove = false"
135
+ size="sm"
136
+ class="btn-outline-danger col-6 p-1"
137
+ >
138
+ Cancelar
139
+ </base-button>
140
+ </div>
141
+ </div>
142
+ </div>
143
+
144
+ </div>
145
+ <div class="notes-text" v-show="archives == null">
146
+ <p>Nenhum arquvio anexado.</p>
147
+ </div>
148
+
149
+ <div class="input-container" v-show="!isLocked">
150
+ <div class="mt-5">
151
+
152
+ <dropzone-file-upload
153
+ disabled
154
+ @error="showMessageError"
155
+ ref="Mydropzone"
156
+ :options="dropzoneOptions"
157
+ v-model="fileToUpload"
158
+ />
159
+ </div>
160
+
161
+ <div class="archive-buttons">
162
+ <base-button @click="saveImage" size="sm" class="btn-outline-primary btn-rounded col-12">Salvar</base-button>
163
+ </div>
164
+ </div>
165
+ </el-tab-pane>
166
+
167
+ <el-tab-pane name="reports" class="ml-2" v-if="isReportsActived">
168
+ <span class="tab__icon-pane" slot="label">
169
+ <img
170
+ class="img__icon-pane img__icon--reports"
171
+ src="../../../../assets/images/icons/icon5.svg"
172
+ />
173
+ </span>
174
+
175
+ <upgrade-plan @send-contact="sendContact" v-show="isLocked" />
176
+
177
+ <p class="notes-title mb-0">Laudo do Candidato</p>
178
+ <div class="line mb-3"></div>
179
+
180
+ <div class="input-container" v-if="!isLocked && !userReportData.annex">
181
+ <dropzone-file-upload
182
+ disabled
183
+ ref="Mydropzone"
184
+ v-model="reportFileUpload"
185
+ :options="reportsDropdownzoneOptions"
186
+ @error="showMessageError"
187
+ />
188
+
189
+ <div class="archive-buttons" v-if="reportFileUpload.length > 0">
190
+ <base-button @click="saveReport" size="sm" class="btn-outline-primary btn-rounded col-12">Salvar</base-button>
191
+ </div>
192
+ </div>
193
+
194
+ <div class="archive-content" v-else-if="userReportData.annex">
195
+ <div @click="openArchive(userReportData.annex)" class="archive-container">
196
+ <div>
197
+ <img class="archive-img" src="../../../../assets/images/icons/icon6.svg" >
198
+ </div>
199
+ <div class="archive-name">
200
+ <span>{{ userReportData.annex.name }}</span>
201
+ <div class="archive-icon">
202
+ <i @click.stop.prevent="openReportRemoveSection(userReportData.annex)" class="far fa-trash-alt"></i>
203
+ </div>
204
+ </div>
205
+ </div>
206
+ <div v-if="hasReportRemove" class="archive-remove">
207
+ <p>Você tem certeza que deseja apagar este arquivo?</p>
208
+ <div class="d-flex">
209
+ <base-button
210
+ @click="removeReportArchive(currentRemoveItem)"
211
+ size="sm"
212
+ class="btn-outline-primary col-6 p-1"
213
+ >
214
+ Apagar
215
+ </base-button>
216
+ <base-button
217
+ @click="hasRemove = false"
218
+ size="sm"
219
+ class="btn-outline-danger col-6 p-1"
220
+ >
221
+ Cancelar
222
+ </base-button>
223
+ </div>
224
+ </div>
225
+ </div>
226
+
227
+ <p class="notes-title mb-0">Comentários Recrutador</p>
228
+ <div class="line mb-3"></div>
229
+
230
+ <div v-if="!isLocked && userReportData.comment">
231
+ <div class="notes-baloon fullsize">
232
+ <div class="notes-text mx-3 pt-1">
233
+ <p class="mt-3">{{ userReportData.comment.comment }}</p>
234
+ </div>
235
+ <div
236
+ class="d-flex justify-content-end align-items-center mr-3"
237
+ >
238
+ <p class="notes-date">
239
+ {{ userReportData.comment.created_at | convertDate }}
240
+ </p>
241
+ </div>
242
+ </div>
243
+ <div class="notes-owner d-flex mt-2">
244
+ <img
245
+ v-if="userReportData.comment.user.urlAvatar"
246
+ :src="userReportData.comment.user.urlAvatar"
247
+ :alt="userReportData.comment.user.name"
248
+ />
249
+ <div
250
+ v-else
251
+ class="notes-avatar"
252
+ ></div>
253
+ <p class="ml-1">
254
+ {{ userReportData.comment.user.name }}
255
+ </p>
256
+ </div>
257
+ </div>
258
+
259
+ <div class="input-container" v-show="!isLocked && !userReportData.comment">
260
+ <input
261
+ class="notes-new pl-4 mt-3 mb-3 form-rounded"
262
+ type="text"
263
+ placeholder="Escrever anotação"
264
+ v-model="newReportNote"
265
+ @change="handleNewReportNoteSubmit"
266
+ v-on:change="cleatInput()"
267
+ />
268
+ <i
269
+ @click="handleNewReportNoteSubmit"
270
+ class="fas fa-paper-plane input-icon"
271
+ ></i>
272
+ </div>
273
+ </el-tab-pane>
274
+
275
+ <!-- <el-tab-pane :disabled="true">
276
+ <span class="tab__icon-pane cursor-disabled" slot="label">
277
+ <img
278
+ class="img__icon-pane"
279
+ src="../../../../assets/images/icons/icon4.svg"
280
+ />
281
+ </span>
282
+ </el-tab-pane> -->
283
+ </el-tabs>
284
+ </div>
285
+ </template>
286
+
287
+ <script>
288
+ import { Tabs, TabPane } from 'element-ui';
289
+ import DropzoneFileUpload from '@burh/nuxt-core/components/argon-core/Inputs/DropzoneFileUpload.vue';
290
+ import swal from 'sweetalert2';
291
+ import UpgradePlan from './UpgradePlan.vue';
292
+
293
+ export default {
294
+ name: 'user-cv-right-side',
295
+ filters: {
296
+ convertDate(data) {
297
+ if (typeof data !== 'string') {
298
+ data = '2020-01-01 12:00:00';
299
+ }
300
+ let d = new Date(data);
301
+ let options = { hour: '2-digit', minute: '2-digit' };
302
+ return d.toLocaleDateString('pt-BR', options);
303
+ }
304
+ },
305
+ watch:{
306
+ fileToUpload(value){
307
+ if(value.length > 0 && value[0].accepted) {
308
+ this.isError = false;
309
+ }
310
+ },
311
+ reportFileUpload(value){
312
+ if(value.length > 0 && value[0].accepted) {
313
+ this.isError = false;
314
+ }
315
+ },
316
+ archives() {
317
+ this.getUserFolderData();
318
+ }
319
+ },
320
+ components: {
321
+ [Tabs.name]: Tabs,
322
+ [TabPane.name]: TabPane,
323
+ DropzoneFileUpload,
324
+ UpgradePlan
325
+ },
326
+ data(){
327
+ return {
328
+ newNote: '',
329
+ newReportNote: '',
330
+ active: this.activeName,
331
+ hasRemove: null,
332
+ isError: true,
333
+ currentRemoveItem: null,
334
+ fileToUpload: [],
335
+ dropzoneOptions: {
336
+ maxFilesize: 5,
337
+ dictFileTooBig:'Seu arquivo é poderoso demais (Máximo 5mb).',
338
+ dictDefaultMessage: 'Clique ou arraste seu arquivo aqui.',
339
+ dictInvalidFileType: 'Arquivo invalido.',
340
+ dictMaxFilesExceeded: 'Não é permitido mais de um arquivo por vez.',
341
+ acceptedFiles: 'image/*, application/pdf',
342
+ },
343
+ reportFileUpload: [],
344
+ reportsDropdownzoneOptions: {
345
+ maxFilesize: 1,
346
+ dictFileTooBig:'Seu arquivo é poderoso demais (Máximo 5mb).',
347
+ dictDefaultMessage: 'Clique ou arraste seu arquivo aqui.',
348
+ dictInvalidFileType: 'Arquivo invalido.',
349
+ dictMaxFilesExceeded: 'Não é permitido mais de um arquivo por vez.',
350
+ acceptedFiles: 'image/*, application/pdf',
351
+ },
352
+ userReportData: [],
353
+ hasReportRemove: false,
354
+ isLocked: !this.companyHasProduct(
355
+ this.$store.state.loja && this.$store.state.loja.showableProducts && this.$store.state.loja.showableProducts['HISTORICO_USUARIO'] || false
356
+ ),
357
+ };
358
+ },
359
+ props: {
360
+ archives: Array,
361
+ userData: Object,
362
+ notes: Array,
363
+ activeName: String,
364
+ userFolderId: String,
365
+ isNotesActived: {
366
+ type: Boolean,
367
+ default: true
368
+ },
369
+ isReportsActived: {
370
+ type: Boolean,
371
+ default: false
372
+ },
373
+ },
374
+ mounted() {
375
+ this.companyHistory();
376
+ this.getUserFolderData();
377
+ },
378
+ methods: {
379
+ handleNewReportNoteSubmit() {
380
+ if (this.newReportNote.length > 3) {
381
+ this.$emit('new-report-note', this.newReportNote, this.userFolderId, this.userData.id);
382
+ this.newReportNote = '';
383
+ }
384
+ },
385
+ openRemoveSection(item, index) {
386
+ this.hasRemove = index;
387
+ this.currentRemoveItem = item;
388
+ },
389
+ openReportRemoveSection(item) {
390
+ this.hasReportRemove = true;
391
+ this.currentRemoveItem = item;
392
+ },
393
+
394
+ showToast(type, title){
395
+ const Toast = swal.mixin({
396
+ toast: true,
397
+ position: 'top-end',
398
+ showConfirmButton: false,
399
+ timer: 3100,
400
+ });
401
+
402
+ return Toast.fire({
403
+ type: type,
404
+ title: title
405
+ });
406
+ },
407
+
408
+ showMessageError(file, message) {
409
+ this.isError = true;
410
+ this.$refs.Mydropzone.removeAllFiles();
411
+
412
+ if (file.status !== 'canceled'){
413
+ this.showToast('error', message);
414
+ }
415
+ },
416
+
417
+ openArchive(item) {
418
+ window.open(item.annex_url, '_blank');
419
+ },
420
+
421
+ saveImage(){
422
+ if (!this.isError) {
423
+ this.$emit('save-archive', this.fileToUpload[0], this.userData.id);
424
+ this.$refs.Mydropzone.removeAllFiles();
425
+ this.showToast('success', 'Arquivo enviado com sucesso.');
426
+
427
+ } else {
428
+ if (this.fileToUpload.length > 0) {
429
+ this.showToast('error', 'Arquivo invalido.');
430
+ } else {
431
+ this.showToast('warning', 'Selecione um arquivo.');
432
+ }
433
+ }
434
+ },
435
+
436
+ saveReport() {
437
+ if (!this.isError) {
438
+ this.$emit('save-report', this.reportFileUpload[0], this.userFolderId);
439
+ this.$refs.Mydropzone.removeAllFiles();
440
+ this.showToast('success', 'Arquivo enviado com sucesso.');
441
+
442
+ } else {
443
+ if (this.reportFileUpload.length > 0) {
444
+ this.showToast('error', 'Arquivo invalido.');
445
+ } else {
446
+ this.showToast('warning', 'Selecione um arquivo.');
447
+ }
448
+ }
449
+ },
450
+
451
+ removeArchive(archive, index){
452
+ this.$emit('remove-archive', archive.user_id, archive.id, archive.company_id, index);
453
+ this.hasRemove = null;
454
+ },
455
+
456
+ removeReportArchive(archive) {
457
+ this.userReportData.annex = undefined;
458
+
459
+ this.$emit('remove-report', archive.id);
460
+ this.hasReportRemove = false;
461
+ },
462
+
463
+ cleatInput() {
464
+ this.newNote = '';
465
+ },
466
+ companyHistory() {
467
+ let sms = this.userData.company_sms.map(x => ({
468
+ date: x.created_at,
469
+ text: 'Recebeu um SMS'
470
+ }));
471
+ let tests = this.userData.tests.map(x => {
472
+ if (x.finished_at) {
473
+ return {
474
+ date: x.finished_at,
475
+ text: `Finalizou o teste ${x.test.name.toUpperCase()}`
476
+ };
477
+ } else {
478
+ return {
479
+ date: x.created_at,
480
+ text: `Recebeu o teste ${x.test.name.toUpperCase()}`
481
+ };
482
+ }
483
+
484
+ });
485
+ let discs = this.userData.solides.map(x => ({
486
+ date: x.end,
487
+ text: 'Realizou um teste DISC'
488
+ }));
489
+
490
+ return sms.concat(tests, discs);
491
+ },
492
+ orderByDate(data) {
493
+ let sortedArray = data.sort((a, b) => {
494
+ a = a.date || '2020-01-01 12:00:00';
495
+ b = b.date || '2020-01-01 12:00:00';
496
+
497
+ return new Date(b).getTime() - new Date(a).getTime();
498
+ });
499
+
500
+ return sortedArray;
501
+ },
502
+ sendContact() {
503
+ this.$emit('open-contact');
504
+ },
505
+
506
+ async getUserFolderData() {
507
+ if (this.isReportsActived) {
508
+ const apiUrl = `${process.env.baseApiUrlV2}/company/buffer/folder/user/${this.userFolderId}`;
509
+
510
+ const data = await this.$axios(apiUrl)
511
+ .then(res => res.data)
512
+ .catch(() => {});
513
+
514
+ if (!data) return;
515
+
516
+ this.mountUserReport(data.data);
517
+ }
518
+ },
519
+
520
+ mountUserReport(userData) {
521
+ const annex = userData.annex[0] || undefined;
522
+ const comment = userData.comments[0] || undefined;
523
+
524
+ this.userReportData = {
525
+ annex,
526
+ comment
527
+ };
528
+ }
529
+ },
530
+ };
531
+ </script>
532
+ <style>
533
+ .el-tabs__nav-wrap.is-top::after {
534
+ background: #fff !important;
535
+ }
536
+
537
+ .el-tabs__active-bar.is-top {
538
+ width: 30px !important;
539
+ height: 4px !important;
540
+ border-radius: 10px 10px 0px 0px;
541
+ }
542
+ </style>
543
+
544
+ <style lang="scss">
545
+ .swal2-title {
546
+ font-size: 1rem !important;
547
+ }
548
+ .swal2-container {
549
+ z-index: 5000 !important;
550
+ }
551
+ </style>
552
+
553
+ <style lang="scss" scoped>
554
+ @import '@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss';
555
+
556
+ /deep/.dropzone {
557
+ width: 95%;
558
+
559
+ .dz-message {
560
+ padding: 2rem 1rem !important;
561
+ }
562
+
563
+ button.dz-button {
564
+ background-color: transparent;
565
+ border: 0;
566
+ }
567
+ }
568
+
569
+ /deep/ .el-tab-pane {
570
+ height: 760px;
571
+ max-height: 760px;
572
+ overflow: hidden;
573
+ overflow-y: auto;
574
+ position: relative;
575
+
576
+ > .notes-title {
577
+ position: sticky;
578
+ position: -webkit-sticky;
579
+ top: 0;
580
+ background: white;
581
+ padding: 10px 0;
582
+ }
583
+
584
+ > .input-container {
585
+ position: sticky;
586
+ position: -webkit-sticky;
587
+ bottom: 0;
588
+ background: white;
589
+ > .input-icon {
590
+ cursor: pointer;
591
+ position: absolute;
592
+ top: 50%;
593
+ right: 30px;
594
+ transform: translateY(-50%);
595
+ color: #c8c8c8;
596
+ }
597
+ }
598
+
599
+ &::-webkit-scrollbar {
600
+ width: 8px;
601
+ }
602
+
603
+ &::-webkit-scrollbar-track {
604
+ background: #f5f5f5;
605
+ }
606
+
607
+ &::-webkit-scrollbar-thumb {
608
+ background: #e9e8e8;
609
+ border-radius: 10px;
610
+ }
611
+
612
+ .archive-content {
613
+ width: 95%;
614
+
615
+ p {
616
+ margin-bottom: 0;
617
+ font-size: 0.875rem;
618
+ padding: .3rem .6rem 0 .6rem;
619
+ }
620
+
621
+ .archive-container {
622
+ display: flex;
623
+ align-items: center;
624
+ padding: 0.5rem 0.5rem 0.438rem;
625
+ cursor: pointer;
626
+ user-select: none;
627
+
628
+ &:hover{
629
+ background-color: #f6f9fc;
630
+ border-radius: 5px;
631
+ }
632
+
633
+ .archive-img {
634
+ background-color: #f5f5f5;
635
+ border-radius: 6px;
636
+ padding: 7px;
637
+ }
638
+
639
+ .archive-name {
640
+ display: flex;
641
+ margin-left: .8rem;
642
+ width: 145%;
643
+ justify-content: space-between !important;
644
+
645
+ .archive-icon {
646
+ margin-left: 1.5rem;
647
+ }
648
+
649
+ p {
650
+ margin: 0;
651
+ padding: 0;
652
+ width: 13rem;
653
+ white-space: nowrap;
654
+ overflow: hidden;
655
+ text-overflow: ellipsis;
656
+ }
657
+ }
658
+
659
+ .upload-container {
660
+ position: sticky;
661
+ position: -webkit-sticky;
662
+ bottom: 0;
663
+ background: white;
664
+ width: 231px;
665
+ }
666
+ }
667
+ }
668
+
669
+ .archive-buttons {
670
+ display: flex;
671
+ margin-top: -1rem;
672
+ width: 95%;
673
+ }
674
+
675
+ .archive-remove {
676
+ width: 90%;
677
+ word-break: break-word;
678
+ }
679
+ }
680
+
681
+ /deep/ .el-tabs__nav-scroll {
682
+ display: flex;
683
+ justify-content: stretch;
684
+ align-items: flex-start;
685
+ }
686
+
687
+ /deep/ .el-tabs__item {
688
+ padding: 0 1.60rem !important;
689
+ }
690
+
691
+ /deep/ .el-tabs__nav {
692
+ width: 100% !important;
693
+ user-select: none;
694
+ }
695
+
696
+ @media (max-width: 1520px) {
697
+ /deep/ .el-tabs__item {
698
+ padding: 0 1.8rem !important;
699
+ }
700
+ }
701
+
702
+ .readmore {
703
+ overflow: hidden;
704
+ text-overflow: ellipsis;
705
+ display: -webkit-box;
706
+ -webkit-line-clamp: 3;
707
+ -webkit-box-orient: vertical;
708
+ }
709
+
710
+ .tab__icon-pane {
711
+ .img__icon-pane {
712
+ background-color: #f5f5f5 !important;
713
+ border-radius: 30%;
714
+ padding: 7px;
715
+ margin-bottom: 1rem;
716
+ }
717
+ }
718
+
719
+ .content-right {
720
+ width: 25%;
721
+ }
722
+
723
+ .notes-title {
724
+ font-size: 14px;
725
+ color: #1d364b;
726
+ font-weight: bold;
727
+ background-color: white;
728
+ z-index: 500;
729
+ }
730
+
731
+ .notes-baloon {
732
+ width: 231px;
733
+ height: auto;
734
+
735
+ background: #eff5fd;
736
+ border-radius: 10px 10px 10px 0px;
737
+
738
+ &.fullsize {
739
+ width: 80%!important;
740
+ min-width: 280px;
741
+ }
742
+ }
743
+
744
+ .notes-text {
745
+ p {
746
+ font-size: 13px;
747
+ color: #62778c;
748
+ }
749
+ }
750
+
751
+ .notes-date {
752
+ font-size: 11px;
753
+ text-align: right;
754
+
755
+ color: #8da2b5;
756
+ top: calc(50% - 17px / 2 - 444.5px);
757
+ }
758
+
759
+ .notes-owner {
760
+ img {
761
+ width: 23px;
762
+ height: 23px;
763
+ border-radius: 50%;
764
+ }
765
+
766
+ .notes-avatar {
767
+ width: 23px;
768
+ height: 23px;
769
+ border-radius: 50%;
770
+ background-color: #adb5bd;
771
+ }
772
+
773
+ p {
774
+ font-size: 13px;
775
+ font-weight: 600;
776
+ text-transform: uppercase;
777
+
778
+ color: #62778c;
779
+ }
780
+ }
781
+
782
+ .notes-new {
783
+ width: 95%;
784
+ height: 33px;
785
+
786
+ background: #f5f5f5;
787
+ border-radius: 16.5px;
788
+ border: none;
789
+
790
+ outline: 0;
791
+ }
792
+
793
+ .line {
794
+ width: 221px;
795
+ height: 0px;
796
+
797
+ border: 1px solid #ececec5c;
798
+ }
799
+
800
+ .history {
801
+ word-break: break-word;
802
+
803
+ .history-text {
804
+ font-size: 13px;
805
+ color: #62778c;
806
+ }
807
+
808
+ span {
809
+ font-size: 11px;
810
+ line-height: 16px;
811
+
812
+ color: #8da2b5;
813
+ }
814
+ }
815
+
816
+ .cursor-disabled {
817
+ cursor: no-drop;
818
+ }
819
+ </style>