@ozdao/martyrs 0.2.480 → 0.2.482

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 (458) hide show
  1. package/README.md +4 -13
  2. package/dist/{Media-CKk33U4A.js → Media-JBERcJWj.js} +1 -1
  3. package/dist/{Media-B1ZP3D7B.cjs → Media-p7Q8ZAQM.cjs} +1 -1
  4. package/dist/{abac-XF1JVCLI.cjs → abac-6LjoG9u-.cjs} +107 -26
  5. package/dist/{abac-BuL5pUZ4.js → abac-Cf_9lCSh.js} +107 -26
  6. package/dist/builder.cjs +8 -12
  7. package/dist/builder.js +8 -12
  8. package/dist/globals.server.cjs +1 -1
  9. package/dist/globals.server.js +1 -1
  10. package/dist/{main-BhAiwmnI.js → main-AtCVQKF9.js} +2855 -4162
  11. package/dist/main-B-we7C0w.cjs +11 -0
  12. package/dist/martyrs/src/components/Button/{Button.vue.cjs → Button.vue2.cjs} +2 -2
  13. package/dist/martyrs/src/components/Button/Button.vue2.cjs.map +1 -0
  14. package/dist/martyrs/src/components/Button/{Button.vue.js → Button.vue2.js} +2 -2
  15. package/dist/martyrs/src/components/Button/{Button.vue.cjs.map → Button.vue2.js.map} +1 -1
  16. package/dist/martyrs/src/components/Checkbox/Checkbox.vue.cjs +28 -7
  17. package/dist/martyrs/src/components/Checkbox/Checkbox.vue.cjs.map +1 -1
  18. package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js +29 -8
  19. package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js.map +1 -1
  20. package/dist/martyrs/src/components/Chips/Chips.vue2.cjs +5 -8
  21. package/dist/martyrs/src/components/Chips/Chips.vue2.cjs.map +1 -1
  22. package/dist/martyrs/src/components/Chips/Chips.vue2.js +6 -9
  23. package/dist/martyrs/src/components/Chips/Chips.vue2.js.map +1 -1
  24. package/dist/martyrs/src/components/Feed/Carousel.vue.cjs +84 -0
  25. package/dist/martyrs/src/components/Feed/Carousel.vue.cjs.map +1 -0
  26. package/dist/martyrs/src/components/Feed/Carousel.vue.js +84 -0
  27. package/dist/martyrs/src/components/Feed/Carousel.vue.js.map +1 -0
  28. package/dist/martyrs/src/components/Feed/Feed.vue.cjs +4 -4
  29. package/dist/martyrs/src/components/Feed/Feed.vue.cjs.map +1 -1
  30. package/dist/martyrs/src/components/Feed/Feed.vue.js +4 -4
  31. package/dist/martyrs/src/components/Feed/Feed.vue.js.map +1 -1
  32. package/dist/martyrs/src/components/Field/Field.vue.cjs +2 -1
  33. package/dist/martyrs/src/components/Field/Field.vue.cjs.map +1 -1
  34. package/dist/martyrs/src/components/Field/Field.vue.js +2 -1
  35. package/dist/martyrs/src/components/Field/Field.vue.js.map +1 -1
  36. package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.cjs +203 -151
  37. package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.cjs.map +1 -1
  38. package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.js +204 -152
  39. package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.js.map +1 -1
  40. package/dist/martyrs/src/components/Popup/{Popup.vue.cjs → Popup.vue2.cjs} +2 -2
  41. package/dist/martyrs/src/components/Popup/Popup.vue2.cjs.map +1 -0
  42. package/dist/martyrs/src/components/Popup/{Popup.vue.js → Popup.vue2.js} +2 -2
  43. package/dist/martyrs/src/components/Popup/{Popup.vue.cjs.map → Popup.vue2.js.map} +1 -1
  44. package/dist/martyrs/src/components/Radio/Radio.vue.cjs +2 -2
  45. package/dist/martyrs/src/components/Radio/Radio.vue.cjs.map +1 -1
  46. package/dist/martyrs/src/components/Radio/Radio.vue.js +2 -2
  47. package/dist/martyrs/src/components/Radio/Radio.vue.js.map +1 -1
  48. package/dist/martyrs/src/components/Skeleton/Skeleton.vue.cjs +4 -3
  49. package/dist/martyrs/src/components/Skeleton/Skeleton.vue.cjs.map +1 -1
  50. package/dist/martyrs/src/components/Skeleton/Skeleton.vue.js +4 -3
  51. package/dist/martyrs/src/components/Skeleton/Skeleton.vue.js.map +1 -1
  52. package/dist/martyrs/src/components/Slider/{Slider.native.vue.cjs → Slider.vue.cjs} +22 -80
  53. package/dist/martyrs/src/components/Slider/Slider.vue.cjs.map +1 -0
  54. package/dist/martyrs/src/components/Slider/{Slider.native.vue.js → Slider.vue.js} +23 -81
  55. package/dist/martyrs/src/components/Slider/Slider.vue.js.map +1 -0
  56. package/dist/martyrs/src/components/Status/Status.vue.cjs.map +1 -1
  57. package/dist/martyrs/src/components/Status/Status.vue.js.map +1 -1
  58. package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.cjs +4 -2
  59. package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.cjs.map +1 -1
  60. package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.js +4 -2
  61. package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.js.map +1 -1
  62. package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.cjs +1 -1
  63. package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js +1 -1
  64. package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
  65. package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
  66. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
  67. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
  68. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +3 -1
  69. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs.map +1 -1
  70. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +4 -2
  71. package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -1
  72. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +22 -149
  73. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs.map +1 -1
  74. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js +24 -151
  75. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js.map +1 -1
  76. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.cjs +77 -0
  77. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.cjs.map +1 -0
  78. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +77 -0
  79. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js.map +1 -0
  80. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.cjs +121 -0
  81. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.cjs.map +1 -0
  82. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js +121 -0
  83. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js.map +1 -0
  84. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.cjs +38 -0
  85. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.cjs.map +1 -0
  86. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js +38 -0
  87. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js.map +1 -0
  88. package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -1
  89. package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
  90. package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
  91. package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +1 -1
  92. package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
  93. package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
  94. package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.cjs +1 -1
  95. package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.js +1 -1
  96. package/dist/martyrs/src/modules/auth/views/router/users.cjs +23 -16
  97. package/dist/martyrs/src/modules/auth/views/router/users.cjs.map +1 -1
  98. package/dist/martyrs/src/modules/auth/views/router/users.js +23 -16
  99. package/dist/martyrs/src/modules/auth/views/router/users.js.map +1 -1
  100. package/dist/martyrs/src/modules/community/components/blocks/FooterBlogpost.vue.cjs +3 -3
  101. package/dist/martyrs/src/modules/community/components/blocks/FooterBlogpost.vue.cjs.map +1 -1
  102. package/dist/martyrs/src/modules/community/components/blocks/FooterBlogpost.vue.js +3 -3
  103. package/dist/martyrs/src/modules/community/components/blocks/FooterBlogpost.vue.js.map +1 -1
  104. package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js +6 -6
  105. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +5 -4
  106. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs.map +1 -1
  107. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +5 -4
  108. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js.map +1 -1
  109. package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.cjs +2 -2
  110. package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  111. package/dist/martyrs/src/modules/community/components/sections/Comment.vue.cjs +92 -62
  112. package/dist/martyrs/src/modules/community/components/sections/Comment.vue.cjs.map +1 -1
  113. package/dist/martyrs/src/modules/community/components/sections/Comment.vue.js +93 -63
  114. package/dist/martyrs/src/modules/community/components/sections/Comment.vue.js.map +1 -1
  115. package/dist/martyrs/src/modules/community/components/sections/Comments.vue.cjs +82 -53
  116. package/dist/martyrs/src/modules/community/components/sections/Comments.vue.cjs.map +1 -1
  117. package/dist/martyrs/src/modules/community/components/sections/Comments.vue.js +82 -53
  118. package/dist/martyrs/src/modules/community/components/sections/Comments.vue.js.map +1 -1
  119. package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.cjs +2 -6
  120. package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.cjs.map +1 -1
  121. package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.js +2 -6
  122. package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.js.map +1 -1
  123. package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  124. package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  125. package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  126. package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  127. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs +2 -2
  128. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  129. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.cjs +2 -2
  130. package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
  131. package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs +1 -1
  132. package/dist/martyrs/src/modules/events/components/pages/Events.vue.js +1 -1
  133. package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.cjs +3 -9
  134. package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.cjs.map +1 -1
  135. package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.js +3 -9
  136. package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.js.map +1 -1
  137. package/dist/martyrs/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  138. package/dist/martyrs/src/modules/gallery/components/pages/Gallery.vue.js +5 -5
  139. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +2 -2
  140. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +10 -10
  141. package/dist/martyrs/src/modules/globals/globals.client.cjs +2 -0
  142. package/dist/martyrs/src/modules/globals/globals.client.cjs.map +1 -1
  143. package/dist/martyrs/src/modules/globals/globals.client.js +2 -0
  144. package/dist/martyrs/src/modules/globals/globals.client.js.map +1 -1
  145. package/dist/martyrs/src/modules/globals/views/components/blocks/AlertDialog.vue.cjs +1 -1
  146. package/dist/martyrs/src/modules/globals/views/components/blocks/AlertDialog.vue.js +1 -1
  147. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
  148. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs.map +1 -1
  149. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
  150. package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js.map +1 -1
  151. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.cjs +84 -0
  152. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.cjs.map +1 -0
  153. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.js +84 -0
  154. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.js.map +1 -0
  155. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.cjs +2 -2
  156. package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.js +2 -2
  157. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs +2 -2
  158. package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js +2 -2
  159. package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
  160. package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.js +1 -1
  161. package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
  162. package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
  163. package/dist/martyrs/src/modules/globals/views/mixins/mixins.cjs +17 -0
  164. package/dist/martyrs/src/modules/globals/views/mixins/mixins.cjs.map +1 -1
  165. package/dist/martyrs/src/modules/globals/views/mixins/mixins.js +17 -0
  166. package/dist/martyrs/src/modules/globals/views/mixins/mixins.js.map +1 -1
  167. package/dist/martyrs/src/modules/globals/views/plugins/popup.auth.plugin.cjs +70 -0
  168. package/dist/martyrs/src/modules/globals/views/plugins/popup.auth.plugin.cjs.map +1 -0
  169. package/dist/martyrs/src/modules/globals/views/plugins/popup.auth.plugin.js +70 -0
  170. package/dist/martyrs/src/modules/globals/views/plugins/popup.auth.plugin.js.map +1 -0
  171. package/dist/martyrs/src/modules/icons/entities/IconList.vue.cjs +35 -0
  172. package/dist/martyrs/src/modules/icons/entities/IconList.vue.cjs.map +1 -0
  173. package/dist/martyrs/src/modules/icons/entities/IconList.vue.js +35 -0
  174. package/dist/martyrs/src/modules/icons/entities/IconList.vue.js.map +1 -0
  175. package/dist/martyrs/src/modules/icons/navigation/IconCheck.vue.cjs +1 -3
  176. package/dist/martyrs/src/modules/icons/navigation/IconCheck.vue.cjs.map +1 -1
  177. package/dist/martyrs/src/modules/icons/navigation/IconCheck.vue.js +1 -3
  178. package/dist/martyrs/src/modules/icons/navigation/IconCheck.vue.js.map +1 -1
  179. package/dist/martyrs/src/modules/icons/navigation/IconDoubleCheck.vue.cjs +1 -3
  180. package/dist/martyrs/src/modules/icons/navigation/IconDoubleCheck.vue.cjs.map +1 -1
  181. package/dist/martyrs/src/modules/icons/navigation/IconDoubleCheck.vue.js +1 -3
  182. package/dist/martyrs/src/modules/icons/navigation/IconDoubleCheck.vue.js.map +1 -1
  183. package/dist/martyrs/src/modules/icons/navigation/IconLike.vue.cjs +1 -3
  184. package/dist/martyrs/src/modules/icons/navigation/IconLike.vue.cjs.map +1 -1
  185. package/dist/martyrs/src/modules/icons/navigation/IconLike.vue.js +1 -3
  186. package/dist/martyrs/src/modules/icons/navigation/IconLike.vue.js.map +1 -1
  187. package/dist/martyrs/src/modules/icons/navigation/IconMute.vue.cjs +1 -3
  188. package/dist/martyrs/src/modules/icons/navigation/IconMute.vue.cjs.map +1 -1
  189. package/dist/martyrs/src/modules/icons/navigation/IconMute.vue.js +1 -3
  190. package/dist/martyrs/src/modules/icons/navigation/IconMute.vue.js.map +1 -1
  191. package/dist/martyrs/src/modules/icons/navigation/IconPause.vue.cjs +1 -3
  192. package/dist/martyrs/src/modules/icons/navigation/IconPause.vue.cjs.map +1 -1
  193. package/dist/martyrs/src/modules/icons/navigation/IconPause.vue.js +1 -3
  194. package/dist/martyrs/src/modules/icons/navigation/IconPause.vue.js.map +1 -1
  195. package/dist/martyrs/src/modules/icons/navigation/IconPlay.vue.cjs +21 -20
  196. package/dist/martyrs/src/modules/icons/navigation/IconPlay.vue.cjs.map +1 -1
  197. package/dist/martyrs/src/modules/icons/navigation/IconPlay.vue.js +21 -20
  198. package/dist/martyrs/src/modules/icons/navigation/IconPlay.vue.js.map +1 -1
  199. package/dist/martyrs/src/modules/icons/navigation/IconRefresh.vue.cjs +1 -3
  200. package/dist/martyrs/src/modules/icons/navigation/IconRefresh.vue.cjs.map +1 -1
  201. package/dist/martyrs/src/modules/icons/navigation/IconRefresh.vue.js +1 -3
  202. package/dist/martyrs/src/modules/icons/navigation/IconRefresh.vue.js.map +1 -1
  203. package/dist/martyrs/src/modules/icons/navigation/IconShuffle.vue.cjs +6 -13
  204. package/dist/martyrs/src/modules/icons/navigation/IconShuffle.vue.cjs.map +1 -1
  205. package/dist/martyrs/src/modules/icons/navigation/IconShuffle.vue.js +6 -13
  206. package/dist/martyrs/src/modules/icons/navigation/IconShuffle.vue.js.map +1 -1
  207. package/dist/martyrs/src/modules/icons/navigation/IconUnMute.vue.cjs +1 -3
  208. package/dist/martyrs/src/modules/icons/navigation/IconUnMute.vue.cjs.map +1 -1
  209. package/dist/martyrs/src/modules/icons/navigation/IconUnMute.vue.js +1 -3
  210. package/dist/martyrs/src/modules/icons/navigation/IconUnMute.vue.js.map +1 -1
  211. package/dist/martyrs/src/modules/icons/navigation/IconVolume.vue.cjs +1 -3
  212. package/dist/martyrs/src/modules/icons/navigation/IconVolume.vue.cjs.map +1 -1
  213. package/dist/martyrs/src/modules/icons/navigation/IconVolume.vue.js +1 -3
  214. package/dist/martyrs/src/modules/icons/navigation/IconVolume.vue.js.map +1 -1
  215. package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs +1 -3
  216. package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs.map +1 -1
  217. package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.js +41 -43
  218. package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.js.map +1 -1
  219. package/dist/martyrs/src/modules/notifications/components/blocks/NotificationItem.vue.cjs +8 -8
  220. package/dist/martyrs/src/modules/notifications/components/blocks/NotificationItem.vue.cjs.map +1 -1
  221. package/dist/martyrs/src/modules/notifications/components/blocks/NotificationItem.vue.js +8 -8
  222. package/dist/martyrs/src/modules/notifications/components/blocks/NotificationItem.vue.js.map +1 -1
  223. package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.cjs +50 -51
  224. package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.cjs.map +1 -1
  225. package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js +51 -52
  226. package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js.map +1 -1
  227. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +2 -2
  228. package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +2 -2
  229. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  230. package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
  231. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +2 -2
  232. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
  233. package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  234. package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  235. package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  236. package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  237. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +2 -2
  238. package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  239. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  240. package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +1 -1
  241. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +2 -2
  242. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  243. package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.cjs +2 -2
  244. package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  245. package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  246. package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  247. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  248. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
  249. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs +7 -4
  250. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs.map +1 -1
  251. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js +18 -15
  252. package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js.map +1 -1
  253. package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.cjs +1 -1
  254. package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +1 -1
  255. package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
  256. package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
  257. package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +2 -2
  258. package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.js +2 -2
  259. package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.cjs +7 -2
  260. package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.cjs.map +1 -1
  261. package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js +8 -3
  262. package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js.map +1 -1
  263. package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.cjs +11 -12
  264. package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.cjs.map +1 -1
  265. package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js +12 -13
  266. package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js.map +1 -1
  267. package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.cjs +33 -24
  268. package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.cjs.map +1 -1
  269. package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js +36 -27
  270. package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js.map +1 -1
  271. package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.cjs +4 -4
  272. package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.cjs.map +1 -1
  273. package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.js +4 -4
  274. package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.js.map +1 -1
  275. package/dist/martyrs/src/modules/products/components/elements/Price.vue.cjs +7 -5
  276. package/dist/martyrs/src/modules/products/components/elements/Price.vue.cjs.map +1 -1
  277. package/dist/martyrs/src/modules/products/components/elements/Price.vue.js +7 -5
  278. package/dist/martyrs/src/modules/products/components/elements/Price.vue.js.map +1 -1
  279. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  280. package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +1 -1
  281. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +2 -2
  282. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  283. package/dist/martyrs/src/modules/products/components/pages/LeftoverEdit.vue.cjs +2 -2
  284. package/dist/martyrs/src/modules/products/components/pages/LeftoverEdit.vue.js +2 -2
  285. package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  286. package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  287. package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs +58 -41
  288. package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs.map +1 -1
  289. package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +60 -43
  290. package/dist/martyrs/src/modules/products/components/pages/Product.vue.js.map +1 -1
  291. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +105 -85
  292. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs.map +1 -1
  293. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +107 -87
  294. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js.map +1 -1
  295. package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.cjs +2 -2
  296. package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js +2 -2
  297. package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.cjs +2 -2
  298. package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +2 -2
  299. package/dist/martyrs/src/modules/products/components/sections/EditIngredients.vue.cjs +1 -1
  300. package/dist/martyrs/src/modules/products/components/sections/EditIngredients.vue.js +1 -1
  301. package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.cjs +145 -0
  302. package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.cjs.map +1 -0
  303. package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.js +145 -0
  304. package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.js.map +1 -0
  305. package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.cjs +2 -2
  306. package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +2 -2
  307. package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.cjs +46 -31
  308. package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.cjs.map +1 -1
  309. package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js +50 -35
  310. package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js.map +1 -1
  311. package/dist/martyrs/src/modules/products/components/sections/ProductsPopular.vue.cjs +43 -0
  312. package/dist/martyrs/src/modules/products/components/sections/ProductsPopular.vue.cjs.map +1 -0
  313. package/dist/martyrs/src/modules/products/components/sections/ProductsPopular.vue.js +43 -0
  314. package/dist/martyrs/src/modules/products/components/sections/ProductsPopular.vue.js.map +1 -0
  315. package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.cjs +131 -0
  316. package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.cjs.map +1 -0
  317. package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js +131 -0
  318. package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js.map +1 -0
  319. package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  320. package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  321. package/dist/martyrs/src/modules/products/products.client.cjs +3 -3
  322. package/dist/martyrs/src/modules/products/products.client.cjs.map +1 -1
  323. package/dist/martyrs/src/modules/products/products.client.js +3 -3
  324. package/dist/martyrs/src/modules/products/products.client.js.map +1 -1
  325. package/dist/martyrs/src/modules/products/store/products.cjs +4 -0
  326. package/dist/martyrs/src/modules/products/store/products.cjs.map +1 -1
  327. package/dist/martyrs/src/modules/products/store/products.js +4 -0
  328. package/dist/martyrs/src/modules/products/store/products.js.map +1 -1
  329. package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.cjs +1 -1
  330. package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js +1 -1
  331. package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.cjs +2 -2
  332. package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  333. package/dist/martyrs/src/modules/spots/components/pages/Map.vue.cjs +1 -1
  334. package/dist/martyrs/src/modules/spots/components/pages/Map.vue.js +1 -1
  335. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs +2 -2
  336. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +2 -2
  337. package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.cjs +2 -2
  338. package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +2 -2
  339. package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.cjs +2 -2
  340. package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
  341. package/dist/martyrs.cjs.js +1 -1
  342. package/dist/martyrs.css +1 -1
  343. package/dist/martyrs.es.js +1 -1
  344. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.cjs +1 -1
  345. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
  346. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.cjs +1 -1
  347. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
  348. package/dist/organizations.server.cjs +1 -1
  349. package/dist/organizations.server.js +1 -1
  350. package/dist/products.server.cjs +111 -34
  351. package/dist/products.server.js +111 -34
  352. package/dist/style.css +196 -170
  353. package/package.json +1 -1
  354. package/src/.martyrs/chunks.json +325 -0
  355. package/src/.martyrs/filemap.json +6802 -0
  356. package/src/.martyrs/semantic-analysis.json +307 -0
  357. package/src/.martyrs/toc.json +14 -0
  358. package/src/builder/rspack/rspack.config.api.js +8 -11
  359. package/src/components/Button/Button.vue +2 -2
  360. package/src/components/Checkbox/Checkbox.vue +28 -16
  361. package/src/components/Chips/Chips.vue +4 -4
  362. package/src/components/Feed/Carousel.vue +72 -0
  363. package/src/components/Feed/Feed.vue +2 -2
  364. package/src/components/Field/Field.vue +1 -0
  365. package/src/components/PhotoViewer/PhotoViewer.vue +307 -220
  366. package/src/components/Radio/Radio.vue +2 -10
  367. package/src/components/Skeleton/Skeleton.vue +9 -12
  368. package/src/components/Slider/Slider.vue +220 -100
  369. package/src/components/Status/Status.vue +0 -1
  370. package/src/components/Tooltip/Tooltip.vue +2 -2
  371. package/src/modules/auth/views/components/pages/Profile.vue +1 -1
  372. package/src/modules/auth/views/components/pages/ProfileEdit.old.vue +189 -0
  373. package/src/modules/auth/views/components/pages/ProfileEdit.vue +19 -182
  374. package/src/modules/auth/views/components/pages/ProfileEditAccount.vue +72 -0
  375. package/src/modules/auth/views/components/pages/ProfileEditProfile.vue +110 -0
  376. package/src/modules/auth/views/components/pages/ProfileEditSidebar.vue +28 -0
  377. package/src/modules/auth/views/router/users.js +23 -12
  378. package/src/modules/community/components/blocks/FooterBlogpost.vue +3 -3
  379. package/src/modules/community/components/pages/BlogPost.vue +2 -1
  380. package/src/modules/community/components/sections/Comment.vue +161 -57
  381. package/src/modules/community/components/sections/Comments.vue +120 -63
  382. package/src/modules/community/components/sections/HotPosts.vue +7 -7
  383. package/src/modules/events/components/sections/EventsHot.vue +26 -33
  384. package/src/modules/globals/controllers/classes/abac/abac.core.js +3 -1
  385. package/src/modules/globals/controllers/classes/abac/abac.fields.js +126 -42
  386. package/src/modules/globals/controllers/classes/abac/v2/abac-core-fixed.js +313 -0
  387. package/src/modules/globals/controllers/classes/abac/v2/abac-express-fixed.js +276 -0
  388. package/src/modules/globals/controllers/classes/abac/v2/abac-fields-fixed.js +422 -0
  389. package/src/modules/globals/controllers/classes/abac/v2/abac-main-fixed.js +295 -0
  390. package/src/modules/globals/controllers/classes/abac/v2/abac-policies-fixed.js +316 -0
  391. package/src/modules/globals/controllers/classes/abac/v2/abac-ws-fixed.js +237 -0
  392. package/src/modules/globals/globals.client.js +2 -0
  393. package/src/modules/globals/views/components/blocks/CardFooter.vue +3 -3
  394. package/src/modules/globals/views/components/blocks/CardHeader.vue +1 -1
  395. package/src/modules/globals/views/components/blocks/PopupAuth.vue +66 -0
  396. package/src/modules/globals/views/mixins/mixins.js +37 -17
  397. package/src/modules/globals/views/plugins/popup.auth.plugin.js +77 -0
  398. package/src/modules/icons/entities/IconList.vue +14 -0
  399. package/src/modules/icons/navigation/IconCheck.vue +1 -3
  400. package/src/modules/icons/navigation/IconDoubleCheck.vue +1 -3
  401. package/src/modules/icons/navigation/IconLike.vue +1 -3
  402. package/src/modules/icons/navigation/IconMute.vue +1 -3
  403. package/src/modules/icons/navigation/IconPause.vue +1 -3
  404. package/src/modules/icons/navigation/IconPlay.vue +12 -15
  405. package/src/modules/icons/navigation/IconRefresh.vue +1 -3
  406. package/src/modules/icons/navigation/IconShuffle.vue +11 -26
  407. package/src/modules/icons/navigation/IconUnMute.vue +1 -3
  408. package/src/modules/icons/navigation/IconVolume.vue +1 -3
  409. package/src/modules/icons/pages/IconsPage.vue +0 -2
  410. package/src/modules/music/components/pages/AlbumDetail.vue +2 -2
  411. package/src/modules/music/components/pages/PlaylistDetail.vue +2 -2
  412. package/src/modules/music/components/pages/TrackDetail.vue +1 -1
  413. package/src/modules/music/components/player/MusicPlayer.vue +2 -2
  414. package/src/modules/notifications/components/blocks/NotificationItem.vue +6 -51
  415. package/src/modules/notifications/components/elements/NotificationBadge.vue +53 -97
  416. package/src/modules/organizations/configs/navigation.organization.config.js +8 -4
  417. package/src/modules/products/components/blocks/CardProduct.vue +8 -2
  418. package/src/modules/products/components/blocks/ProductDiscounts.vue +3 -4
  419. package/src/modules/products/components/blocks/ProductImages.vue +32 -23
  420. package/src/modules/products/components/blocks/ProductVariants.vue +6 -4
  421. package/src/modules/products/components/elements/Price.vue +3 -3
  422. package/src/modules/products/components/pages/Product.vue +32 -26
  423. package/src/modules/products/components/pages/ProductEdit.vue +95 -72
  424. package/src/modules/products/components/sections/EditRecommended.vue +131 -0
  425. package/src/modules/products/components/sections/ProductConfigurator.vue +35 -21
  426. package/src/modules/products/components/sections/ProductsPopular.vue +44 -0
  427. package/src/modules/products/components/sections/ProductsRecommended.vue +134 -0
  428. package/src/modules/products/controllers/configs/products.lookup.config.js +20 -15
  429. package/src/modules/products/controllers/products.controller.js +7 -22
  430. package/src/modules/products/models/category.model.js +28 -1
  431. package/src/modules/products/models/leftover.model.js +32 -0
  432. package/src/modules/products/models/product.model.js +37 -1
  433. package/src/modules/products/models/variant.model.js +35 -0
  434. package/src/modules/products/products.client.js +3 -3
  435. package/src/modules/products/routes/products.routes.js +1 -0
  436. package/src/modules/products/store/products.js +4 -0
  437. package/src/styles/base/all.scss +0 -38
  438. package/src/styles/base/shadow_transitions_hover_refactor.scss +20 -51
  439. package/src/styles/config.scss +51 -1
  440. package/dist/main-C75EcBpE.cjs +0 -11
  441. package/dist/martyrs/src/components/Button/Button.vue.js.map +0 -1
  442. package/dist/martyrs/src/components/Popup/Popup.vue.js.map +0 -1
  443. package/dist/martyrs/src/components/Slider/Slider.native.vue.cjs.map +0 -1
  444. package/dist/martyrs/src/components/Slider/Slider.native.vue.js.map +0 -1
  445. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs +0 -2
  446. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs.map +0 -1
  447. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue2.js +0 -2
  448. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue2.js.map +0 -1
  449. package/dist/martyrs/src/modules/icons/navigation/IconHeart.vue.cjs +0 -34
  450. package/dist/martyrs/src/modules/icons/navigation/IconHeart.vue.cjs.map +0 -1
  451. package/dist/martyrs/src/modules/icons/navigation/IconHeart.vue.js +0 -34
  452. package/dist/martyrs/src/modules/icons/navigation/IconHeart.vue.js.map +0 -1
  453. package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.cjs +0 -124
  454. package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.cjs.map +0 -1
  455. package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.js +0 -124
  456. package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.js.map +0 -1
  457. package/src/components/Slider/Slider.native.vue +0 -313
  458. package/src/modules/products/components/sections/PopularProducts.vue +0 -156
@@ -1,133 +1,253 @@
1
1
  <template>
2
2
  <div class="pos-relative">
3
- <!-- Loading State -->
4
- <div v-if="isLoading" class="h-20r radius-semi pos-relative w-100 bg-light">
5
- <Loader />
6
- </div>
7
-
8
- <!-- Empty State -->
9
- <div v-else-if="!entitiesState.length" class="bg-light radius-semi flex flex-center w-100 h-20r">
10
- <p class="text-gray-500">{{t('title')}}</p>
11
- </div>
12
-
13
- <!-- Carousel -->
14
- <div v-else class="embla" ref="emblaNode">
15
- <div class="embla__container">
16
- <div
17
- class="embla__slide pd-nano"
18
- v-for="(entity, key, index) in entitiesState"
19
- :key="key"
20
- >
21
- <transition name="fade" mode="out-in" appear>
22
- <slot
23
- :item="entity"
24
- :user="user"
25
- ></slot>
26
- </transition>
27
- </div>
3
+ <!-- Native Carousel -->
4
+ <div class="carousel" ref="carouselRef">
5
+ <div class="carousel__container" @scroll="handleScroll">
6
+ <slot></slot>
7
+ </div>
8
+
9
+ <!-- Navigation Dots (optional) -->
10
+ <div class="carousel__dots" v-if="showDots && slideCount > 1">
11
+ <button
12
+ v-for="index in slideCount"
13
+ :key="index - 1"
14
+ class="carousel__dot"
15
+ :class="{ 'carousel__dot--active': selectedIndex === index - 1 }"
16
+ @click="scrollTo(index - 1)"
17
+ ></button>
28
18
  </div>
29
19
  </div>
30
20
  </div>
31
21
  </template>
32
22
 
33
23
  <script setup>
34
- import { ref, onMounted, onUnmounted } from 'vue'
35
- import { useRouter } from 'vue-router'
36
- import { useI18n } from 'vue-i18n'
37
-
38
- import emblaCarouselVue from 'embla-carousel-vue'
39
- import Autoplay from 'embla-carousel-autoplay'
40
-
41
- import Loader from '@martyrs/src/components/Loader/Loader.vue'
24
+ import { ref, onMounted, onBeforeUnmount, computed } from 'vue'
42
25
 
43
26
  // Props for customization
44
27
  const props = defineProps({
45
- store: Object,
46
- options: Object,
47
- text: Object,
48
- user: Object
28
+ showDots: Boolean,
29
+ slideCount: {
30
+ type: Number,
31
+ default: 0
32
+ }
49
33
  });
50
34
 
51
- const router = useRouter()
52
- const entitiesState = ref([])
53
- const isLoading = ref(true);
54
- const selectedIndex = ref(0);
55
-
56
-
57
- // Конфигурация автоплея
58
- const autoplayOptions = {
59
- delay: 2000,
60
- jump: false,
61
- stopOnInteraction: false,
62
- stopOnMouseEnter: false,
63
- stopOnFocusIn: true,
64
- stopOnLastSnap: false,
65
- rootNode: (emblaRoot) => emblaRoot.parentElement
66
- }
35
+ const carouselRef = ref(null)
36
+ const selectedIndex = ref(0)
37
+ const autoplayInterval = ref(null)
38
+ const scrollTimeout = ref(null)
67
39
 
68
- // Инициализация карусели
69
- const [emblaNode, emblaApi] = emblaCarouselVue(
70
- { loop: true },
71
- [Autoplay(autoplayOptions)]
72
- )
73
-
74
- // Методы управления каруселью
75
- const scrollTo = (index) => emblaApi.value?.scrollTo(index)
76
- const onInit = () => {
77
- if (emblaApi.value) {
78
- scrollSnaps.value = emblaApi.value.scrollSnapList()
40
+ // Scroll to specific slide
41
+ const scrollTo = (index) => {
42
+ if (!carouselRef.value) return
43
+
44
+ const container = carouselRef.value.querySelector('.carousel__container')
45
+ const slides = container.querySelectorAll('.carousel__slide')
46
+
47
+ if (slides[index]) {
48
+ container.scrollTo({
49
+ left: slides[index].offsetLeft,
50
+ behavior: 'smooth'
51
+ })
52
+
53
+ selectedIndex.value = index
79
54
  }
80
55
  }
81
- const onSelect = () => {
82
- if (emblaApi.value) {
83
- selectedIndex.value = emblaApi.value.selectedScrollSnap()
56
+
57
+ // Handle scroll event with debounce
58
+ const handleScroll = () => {
59
+ // Clear previous timeout
60
+ if (scrollTimeout.value) {
61
+ clearTimeout(scrollTimeout.value)
84
62
  }
63
+
64
+ // Set a timeout to update the index when scrolling stops
65
+ scrollTimeout.value = setTimeout(() => {
66
+ updateSelectedIndex()
67
+ }, 50) // Small delay to ensure scroll has completed
85
68
  }
86
69
 
87
- const { t } = useI18n({
88
- messages: props.text
89
- })
70
+ // Update selected index when scrolling
71
+ const updateSelectedIndex = () => {
72
+ if (!carouselRef.value) return
73
+
74
+ const container = carouselRef.value.querySelector('.carousel__container')
75
+ const slides = container.querySelectorAll('.carousel__slide')
76
+
77
+ if (!slides.length) return
78
+
79
+ const scrollPosition = container.scrollLeft
80
+ const slideWidth = slides[0].offsetWidth
81
+
82
+ // Find current slide index based on scroll position
83
+ const index = Math.round(scrollPosition / slideWidth)
84
+
85
+ // Ensure index is within bounds
86
+ const boundedIndex = Math.max(0, Math.min(index, slides.length - 1))
87
+
88
+ // Update selected index
89
+ selectedIndex.value = boundedIndex
90
+ }
90
91
 
91
- onMounted(async() => {
92
- try {
93
- entitiesState.value = await props.store.read(props.options);
94
- } catch (error) {
95
- console.error('Error loading entities:', error);
96
- entitiesState.value = [];
97
- } finally {
98
- isLoading.value = false;
92
+ // Setup autoplay functionality
93
+ const setupAutoplay = () => {
94
+ if (autoplayInterval.value) {
95
+ clearInterval(autoplayInterval.value)
99
96
  }
100
- // Инициализируем карусель
101
- onInit()
102
- onSelect()
103
97
 
104
- // Добавляем слушатели событий
105
- if (emblaApi.value) {
106
- emblaApi.value.on('reInit', onInit)
107
- emblaApi.value.on('reInit', onSelect)
108
- emblaApi.value.on('select', onSelect)
98
+ autoplayInterval.value = setInterval(() => {
99
+ const nextIndex = (selectedIndex.value + 1) % props.slideCount
100
+ scrollTo(nextIndex)
101
+ }, 2000) // 2 seconds interval like in original
102
+ }
103
+
104
+ onMounted(() => {
105
+ // Initialize native carousel after component is mounted
106
+ if (carouselRef.value) {
107
+ // Listen for scroll end using intersection observer for better performance
108
+ const container = carouselRef.value.querySelector('.carousel__container')
109
+ const slides = container.querySelectorAll('.carousel__slide')
110
+
111
+ // Create intersection observer to detect when slides are visible
112
+ const observer = new IntersectionObserver((entries) => {
113
+ entries.forEach(entry => {
114
+ if (entry.isIntersecting) {
115
+ // Find the index of the visible slide
116
+ const slideIndex = Array.from(slides).indexOf(entry.target)
117
+ if (slideIndex !== -1) {
118
+ selectedIndex.value = slideIndex
119
+ }
120
+ }
121
+ })
122
+ }, {
123
+ root: container,
124
+ threshold: 0.7 // Consider slide visible when 70% is in view
125
+ })
126
+
127
+ // Observe all slides
128
+ slides.forEach(slide => {
129
+ observer.observe(slide)
130
+ })
131
+
132
+ // Add focus/blur events to pause autoplay on focus
133
+ container.addEventListener('focusin', () => {
134
+ if (autoplayInterval.value) {
135
+ clearInterval(autoplayInterval.value)
136
+ }
137
+ })
138
+
139
+ container.addEventListener('focusout', () => {
140
+ setupAutoplay()
141
+ })
142
+
143
+ // Stop autoplay on touch/mouse interaction
144
+ container.addEventListener('mousedown', () => {
145
+ if (autoplayInterval.value) {
146
+ clearInterval(autoplayInterval.value)
147
+ }
148
+ })
149
+
150
+ container.addEventListener('touchstart', () => {
151
+ if (autoplayInterval.value) {
152
+ clearInterval(autoplayInterval.value)
153
+ }
154
+ })
155
+
156
+ // Resume autoplay after interaction ends
157
+ container.addEventListener('mouseup', () => {
158
+ setupAutoplay()
159
+ })
160
+
161
+ container.addEventListener('touchend', () => {
162
+ setupAutoplay()
163
+ })
164
+
165
+ // Initialize autoplay
166
+ setupAutoplay()
167
+
168
+ // Store observer for cleanup
169
+ carouselRef.value._observer = observer
109
170
  }
110
171
  })
111
172
 
112
- // Очистка слушателей при размонтировании
113
- onUnmounted(() => {
114
- if (emblaApi.value) {
115
- emblaApi.value.off('reInit', onInit)
116
- emblaApi.value.off('reInit', onSelect)
117
- emblaApi.value.off('select', onSelect)
173
+ onBeforeUnmount(() => {
174
+ // Clean up all resources
175
+ if (carouselRef.value) {
176
+ // Clean up intersection observer
177
+ if (carouselRef.value._observer) {
178
+ carouselRef.value._observer.disconnect()
179
+ }
180
+
181
+ // Clean up event listeners
182
+ const container = carouselRef.value.querySelector('.carousel__container')
183
+ if (container) {
184
+ container.removeEventListener('focusin', () => {})
185
+ container.removeEventListener('focusout', () => {})
186
+ container.removeEventListener('mousedown', () => {})
187
+ container.removeEventListener('touchstart', () => {})
188
+ container.removeEventListener('mouseup', () => {})
189
+ container.removeEventListener('touchend', () => {})
190
+ }
191
+ }
192
+
193
+ // Clear all timeouts and intervals
194
+ if (autoplayInterval.value) {
195
+ clearInterval(autoplayInterval.value)
196
+ }
197
+
198
+ if (scrollTimeout.value) {
199
+ clearTimeout(scrollTimeout.value)
118
200
  }
119
201
  })
120
-
121
202
  </script>
122
203
 
123
- <style scoped>
124
- .fade-enter-active,
125
- .fade-leave-active {
126
- transition: opacity 0.3s ease;
204
+ <style >
205
+ .carousel {
206
+ position: relative;
207
+ width: 100%;
208
+ overflow: hidden;
209
+ }
210
+
211
+ .carousel__container {
212
+ display: flex;
213
+ scroll-snap-type: x mandatory;
214
+ overflow-x: scroll;
215
+ scrollbar-width: none; /* Firefox */
216
+ -ms-overflow-style: none; /* IE and Edge */
217
+ scroll-behavior: smooth;
218
+ }
219
+
220
+ .carousel__container::-webkit-scrollbar {
221
+ display: none; /* Chrome, Safari, Opera */
222
+ }
223
+
224
+ .carousel__slide {
225
+ flex: 0 0 100%;
226
+ width: 100%;
227
+ scroll-snap-align: start;
228
+ scroll-snap-stop: always;
229
+ }
230
+
231
+ /* Navigation dots */
232
+ .carousel__dots {
233
+ display: flex;
234
+ justify-content: center;
235
+ gap: 0.5rem;
236
+ margin-top: 1rem;
237
+ }
238
+
239
+ .carousel__dot {
240
+ width: 0.625rem;
241
+ height: 0.625rem;
242
+ border-radius: 50%;
243
+ background-color: rgba(0, 0, 0, 0.2);
244
+ border: none;
245
+ padding: 0;
246
+ cursor: pointer;
247
+ transition: background-color 0.3s ease;
127
248
  }
128
249
 
129
- .fade-enter-from,
130
- .fade-leave-to {
131
- opacity: 0;
250
+ .carousel__dot--active {
251
+ background-color: rgba(0, 0, 0, 0.6);
132
252
  }
133
253
  </style>
@@ -43,7 +43,6 @@
43
43
  position: absolute;
44
44
  left: 0;
45
45
  right: 0;
46
- opacity: 0.9
47
46
  }
48
47
  </style>
49
48
 
@@ -2,7 +2,7 @@
2
2
  <div class="cursor-pointer tooltip-container" @mouseover="showTooltip" @mouseleave="hideTooltip">
3
3
  <slot></slot>
4
4
  <div class="tooltip-content" :style="tooltipStyle">
5
- {{ text }}
5
+ <span>{{ text }}</span>
6
6
  </div>
7
7
  </div>
8
8
  </template>
@@ -25,7 +25,7 @@ const tooltipStyle = reactive({
25
25
  zIndex: 1000,
26
26
  background: '#333',
27
27
  color: '#fff',
28
- padding: '5px 10px',
28
+ padding: '5px',
29
29
  borderRadius: '3px',
30
30
  fontSize: '14px',
31
31
  display: 'none',
@@ -155,7 +155,7 @@
155
155
 
156
156
  </section>
157
157
 
158
-
158
+ <RouterView />
159
159
 
160
160
  <Menu v-if="filteredModules.length > 0" class="mn-b-regular bg-light">
161
161
  <MenuItem
@@ -0,0 +1,189 @@
1
+ <template>
2
+ <div v-if="show" class="for-transition w-100">
3
+
4
+ <!-- <ProfileCompletion
5
+ v-if="route.params._id === auth.state.user._id"
6
+ :user="auth.state.user._id"
7
+ :target="users.state.current"
8
+ :cta="false"
9
+ /> -->
10
+
11
+ <div class="bg-white mn-b-thin pd-medium">
12
+ <h4 class="mn-b-small">Profile</h4>
13
+
14
+ <div class="mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex">
15
+ <UploadImage
16
+ v-model:photo="users.state.current.profile.photo"
17
+ :uploadPath="'users/' + users.state.current._id + '/avatars'"
18
+ class="h-4r w-4r aspect-1x1 o-hidden bg-white mn-b-thin radius-extra"
19
+ />
20
+ <h4>Upload userpic</h4>
21
+ </div>
22
+
23
+ <Field
24
+ v-model:field="users.state.current.username"
25
+ label="@"
26
+ placeholder="Not specified"
27
+ class="mn-b-thin w-100 bg-light pd-medium radius-small"
28
+ :validation="organizationName"
29
+ />
30
+
31
+ <p class="mn-b-semi">Your username will be used for URL of profile like {{API_URL}}/users/username</p>
32
+
33
+ <Field
34
+ v-model:field="users.state.current.profile.name"
35
+ label="Name"
36
+ placeholder="Not specified"
37
+ class="mn-b-thin bg-light pd-medium radius-small"
38
+ :validation="organizationName"
39
+ />
40
+
41
+ <Field
42
+ v-model:field="users.state.current.profile.description"
43
+ label="Description"
44
+ placeholder="Not specified"
45
+ class="mn-b-semi bg-light pd-medium radius-small"
46
+ :validation="organizationName"
47
+ />
48
+ </div>
49
+
50
+ <!-- <p class="mn-b-thin">Select your birthday if you want to receive your birthday gift.</p>
51
+
52
+ <Field
53
+ v-model:field="users.state.current.birthday"
54
+ label="Birthday"
55
+ type="date"
56
+ placeholder="Not specified"
57
+ class="mn-b-semi bg-light pd-medium radius-small"
58
+ :validation="organizationName"
59
+ /> -->
60
+ <div class="bg-white mn-b-thin pd-medium">
61
+ <h3 class="mn-b-small">Socials</h3>
62
+ <p class="mn-b-thin">Please provide only the username for social media profiles, without full links.</p>
63
+
64
+ <Field
65
+ v-model:field="users.state.current.socials.instagram"
66
+ label="Instagram"
67
+ placeholder=""
68
+ class="mn-b-thin bg-light pd-medium radius-small"
69
+ />
70
+ <Field
71
+ v-model:field="users.state.current.socials.twitter"
72
+ label="Twitter"
73
+ placeholder=""
74
+ class="mn-b-thin bg-light pd-medium radius-small"
75
+ />
76
+ <Field
77
+ v-model:field="users.state.current.socials.facebook"
78
+ label="Facebook"
79
+ placeholder=""
80
+ class="mn-b-thin bg-light pd-medium radius-small"
81
+ />
82
+ <Field
83
+ v-model:field="users.state.current.socials.telegram"
84
+ label="Telegram"
85
+ placeholder=""
86
+ class="mn-b-semi bg-light pd-medium radius-small"
87
+ />
88
+ </div>
89
+
90
+ <ProfileEditCredentials class="bg-white mn-b-thin pd-medium"/>
91
+
92
+ <div class="bg-white mn-b-thin pd-medium">
93
+ <h3 class="mn-b-small">Settings</h3>
94
+ <Checkbox
95
+ :label="'Darkmode'"
96
+ :radio="globals.state.theme.darkmode"
97
+ @update:radio="event => globals.actions.toggleTheme()"
98
+ class="w-100 bg-light t-black pd-medium radius-small"
99
+ />
100
+ </div>
101
+
102
+ <Button
103
+ :submit="onSubmit"
104
+ :callback="redirectTo"
105
+ class="mn-b-thin bg-main w-100"
106
+ >
107
+ Save
108
+ </Button>
109
+
110
+ <Button
111
+ :submit="onSubmitDelete"
112
+ :callback="a = () => {router.push({name: 'Sign In'})}"
113
+ class="mn-b-thin w-100 bg-red t-white"
114
+ >
115
+ Delete Account
116
+ </Button>
117
+ </div>
118
+ </template>
119
+
120
+ <script setup>
121
+ // Import components
122
+ import Tab from '@martyrs/src/components/Tab/Tab.vue'
123
+ import Field from '@martyrs/src/components/Field/Field.vue'
124
+ import Checkbox from '@martyrs/src/components/Checkbox/Checkbox.vue'
125
+ import Button from '@martyrs/src/components/Button/Button.vue'
126
+ import UploadImage from '@martyrs/src/components/UploadImage/UploadImage.vue';
127
+
128
+ import ProfileCompletion from '@martyrs/src/modules/auth/views/components/sections/ProfileCompletion.vue'
129
+ import ProfileEditCredentials from '@martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue'
130
+ // Import libs
131
+ import { computed, onMounted, ref, onBeforeMount } from 'vue'
132
+ import { useRoute, useRouter } from 'vue-router'
133
+ // Import state
134
+ import * as auth from '@martyrs/src/modules/auth/views/store/auth.js'
135
+ import * as users from '@martyrs/src/modules/auth/views/store/users.js'
136
+ import * as globals from '@martyrs/src/modules/globals/views/store/globals.js'
137
+ // Import validation
138
+ import * as inputsValidation from '@martyrs/src/modules/auth/views/validations/inputs.validation'
139
+ const passswordValidation = ref(null)
140
+ // Accessing router
141
+ const route = useRoute()
142
+ const router = useRouter()
143
+
144
+ const user = ref(null)
145
+ const show = ref(false)
146
+
147
+
148
+ onMounted(async () => {
149
+ await users.actions.read({ _id: route.params._id, user: auth.state.user._id });
150
+ show.value = true
151
+ })
152
+ // Methods
153
+
154
+ async function onSubmit() {
155
+ await users.actions.update(users.state.current)
156
+ }
157
+
158
+ // Добавляем редирект после сохранения
159
+ async function handleSave() {
160
+ await onSubmit()
161
+ router.replace({ name: 'User Profile', params: { _id: users.state.current._id }})
162
+ }
163
+
164
+ async function onSubmitDelete() {
165
+ const confirmation = window.confirm("Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.");
166
+
167
+ if (!confirmation) {
168
+ return;
169
+ }
170
+
171
+ users.state.current.status = 'removed'
172
+ await users.actions.update(users.state.current)
173
+ auth.actions.logout()
174
+ }
175
+ function redirectTo () {
176
+ router.replace({ name: 'User Profile', params: { _id: users.state.current._id }});
177
+ }
178
+
179
+ defineExpose({
180
+ onSubmit,
181
+ redirectTo
182
+ })
183
+ </script>
184
+
185
+ <style lang="scss">
186
+ #header {
187
+ // height: 3rem;
188
+ }
189
+ </style>