@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.
- package/README.md +4 -13
- package/dist/{Media-CKk33U4A.js → Media-JBERcJWj.js} +1 -1
- package/dist/{Media-B1ZP3D7B.cjs → Media-p7Q8ZAQM.cjs} +1 -1
- package/dist/{abac-XF1JVCLI.cjs → abac-6LjoG9u-.cjs} +107 -26
- package/dist/{abac-BuL5pUZ4.js → abac-Cf_9lCSh.js} +107 -26
- package/dist/builder.cjs +8 -12
- package/dist/builder.js +8 -12
- package/dist/globals.server.cjs +1 -1
- package/dist/globals.server.js +1 -1
- package/dist/{main-BhAiwmnI.js → main-AtCVQKF9.js} +2855 -4162
- package/dist/main-B-we7C0w.cjs +11 -0
- package/dist/martyrs/src/components/Button/{Button.vue.cjs → Button.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Button/Button.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Button/{Button.vue.js → Button.vue2.js} +2 -2
- package/dist/martyrs/src/components/Button/{Button.vue.cjs.map → Button.vue2.js.map} +1 -1
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.cjs +28 -7
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js +29 -8
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js.map +1 -1
- package/dist/martyrs/src/components/Chips/Chips.vue2.cjs +5 -8
- package/dist/martyrs/src/components/Chips/Chips.vue2.cjs.map +1 -1
- package/dist/martyrs/src/components/Chips/Chips.vue2.js +6 -9
- package/dist/martyrs/src/components/Chips/Chips.vue2.js.map +1 -1
- package/dist/martyrs/src/components/Feed/Carousel.vue.cjs +84 -0
- package/dist/martyrs/src/components/Feed/Carousel.vue.cjs.map +1 -0
- package/dist/martyrs/src/components/Feed/Carousel.vue.js +84 -0
- package/dist/martyrs/src/components/Feed/Carousel.vue.js.map +1 -0
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs +4 -4
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.js +4 -4
- package/dist/martyrs/src/components/Feed/Feed.vue.js.map +1 -1
- package/dist/martyrs/src/components/Field/Field.vue.cjs +2 -1
- package/dist/martyrs/src/components/Field/Field.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Field/Field.vue.js +2 -1
- package/dist/martyrs/src/components/Field/Field.vue.js.map +1 -1
- package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.cjs +203 -151
- package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.js +204 -152
- package/dist/martyrs/src/components/PhotoViewer/PhotoViewer.vue.js.map +1 -1
- package/dist/martyrs/src/components/Popup/{Popup.vue.cjs → Popup.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Popup/Popup.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Popup/{Popup.vue.js → Popup.vue2.js} +2 -2
- package/dist/martyrs/src/components/Popup/{Popup.vue.cjs.map → Popup.vue2.js.map} +1 -1
- package/dist/martyrs/src/components/Radio/Radio.vue.cjs +2 -2
- package/dist/martyrs/src/components/Radio/Radio.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Radio/Radio.vue.js +2 -2
- package/dist/martyrs/src/components/Radio/Radio.vue.js.map +1 -1
- package/dist/martyrs/src/components/Skeleton/Skeleton.vue.cjs +4 -3
- package/dist/martyrs/src/components/Skeleton/Skeleton.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Skeleton/Skeleton.vue.js +4 -3
- package/dist/martyrs/src/components/Skeleton/Skeleton.vue.js.map +1 -1
- package/dist/martyrs/src/components/Slider/{Slider.native.vue.cjs → Slider.vue.cjs} +22 -80
- package/dist/martyrs/src/components/Slider/Slider.vue.cjs.map +1 -0
- package/dist/martyrs/src/components/Slider/{Slider.native.vue.js → Slider.vue.js} +23 -81
- package/dist/martyrs/src/components/Slider/Slider.vue.js.map +1 -0
- package/dist/martyrs/src/components/Status/Status.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Status/Status.vue.js.map +1 -1
- package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.cjs +4 -2
- package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.cjs.map +1 -1
- package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.js +4 -2
- package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +3 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +4 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +22 -149
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js +24 -151
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.cjs +77 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +77 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js.map +1 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.cjs +121 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js +121 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js.map +1 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.cjs +38 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js +38 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js.map +1 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/router/users.cjs +23 -16
- package/dist/martyrs/src/modules/auth/views/router/users.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/router/users.js +23 -16
- package/dist/martyrs/src/modules/auth/views/router/users.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/FooterBlogpost.vue.cjs +3 -3
- package/dist/martyrs/src/modules/community/components/blocks/FooterBlogpost.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/FooterBlogpost.vue.js +3 -3
- package/dist/martyrs/src/modules/community/components/blocks/FooterBlogpost.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js +6 -6
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +5 -4
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +5 -4
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.cjs +2 -2
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
- package/dist/martyrs/src/modules/community/components/sections/Comment.vue.cjs +92 -62
- package/dist/martyrs/src/modules/community/components/sections/Comment.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/sections/Comment.vue.js +93 -63
- package/dist/martyrs/src/modules/community/components/sections/Comment.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/sections/Comments.vue.cjs +82 -53
- package/dist/martyrs/src/modules/community/components/sections/Comments.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/sections/Comments.vue.js +82 -53
- package/dist/martyrs/src/modules/community/components/sections/Comments.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.cjs +2 -6
- package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.js +2 -6
- package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs +2 -2
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.cjs +2 -2
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.cjs +3 -9
- package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.js +3 -9
- package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.js.map +1 -1
- package/dist/martyrs/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/martyrs/src/modules/gallery/components/pages/Gallery.vue.js +5 -5
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +2 -2
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +10 -10
- package/dist/martyrs/src/modules/globals/globals.client.cjs +2 -0
- package/dist/martyrs/src/modules/globals/globals.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/globals.client.js +2 -0
- package/dist/martyrs/src/modules/globals/globals.client.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/AlertDialog.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/AlertDialog.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.cjs +84 -0
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.js +84 -0
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.js.map +1 -0
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.cjs +2 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs +2 -2
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/mixins/mixins.cjs +17 -0
- package/dist/martyrs/src/modules/globals/views/mixins/mixins.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/mixins/mixins.js +17 -0
- package/dist/martyrs/src/modules/globals/views/mixins/mixins.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/plugins/popup.auth.plugin.cjs +70 -0
- package/dist/martyrs/src/modules/globals/views/plugins/popup.auth.plugin.cjs.map +1 -0
- package/dist/martyrs/src/modules/globals/views/plugins/popup.auth.plugin.js +70 -0
- package/dist/martyrs/src/modules/globals/views/plugins/popup.auth.plugin.js.map +1 -0
- package/dist/martyrs/src/modules/icons/entities/IconList.vue.cjs +35 -0
- package/dist/martyrs/src/modules/icons/entities/IconList.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/icons/entities/IconList.vue.js +35 -0
- package/dist/martyrs/src/modules/icons/entities/IconList.vue.js.map +1 -0
- package/dist/martyrs/src/modules/icons/navigation/IconCheck.vue.cjs +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconCheck.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconCheck.vue.js +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconCheck.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconDoubleCheck.vue.cjs +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconDoubleCheck.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconDoubleCheck.vue.js +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconDoubleCheck.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconLike.vue.cjs +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconLike.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconLike.vue.js +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconLike.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconMute.vue.cjs +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconMute.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconMute.vue.js +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconMute.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconPause.vue.cjs +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconPause.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconPause.vue.js +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconPause.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconPlay.vue.cjs +21 -20
- package/dist/martyrs/src/modules/icons/navigation/IconPlay.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconPlay.vue.js +21 -20
- package/dist/martyrs/src/modules/icons/navigation/IconPlay.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconRefresh.vue.cjs +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconRefresh.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconRefresh.vue.js +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconRefresh.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconShuffle.vue.cjs +6 -13
- package/dist/martyrs/src/modules/icons/navigation/IconShuffle.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconShuffle.vue.js +6 -13
- package/dist/martyrs/src/modules/icons/navigation/IconShuffle.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconUnMute.vue.cjs +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconUnMute.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconUnMute.vue.js +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconUnMute.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconVolume.vue.cjs +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconVolume.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/navigation/IconVolume.vue.js +1 -3
- package/dist/martyrs/src/modules/icons/navigation/IconVolume.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs +1 -3
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.js +41 -43
- package/dist/martyrs/src/modules/icons/pages/IconsPage.vue.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/components/blocks/NotificationItem.vue.cjs +8 -8
- package/dist/martyrs/src/modules/notifications/components/blocks/NotificationItem.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/notifications/components/blocks/NotificationItem.vue.js +8 -8
- package/dist/martyrs/src/modules/notifications/components/blocks/NotificationItem.vue.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.cjs +50 -51
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js +51 -52
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs +7 -4
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.cjs.map +1 -1
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js +18 -15
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js.map +1 -1
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.cjs +1 -1
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +2 -2
- package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.cjs +7 -2
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js +8 -3
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.cjs +11 -12
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js +12 -13
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.cjs +33 -24
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js +36 -27
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.cjs +4 -4
- package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.js +4 -4
- package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/elements/Price.vue.cjs +7 -5
- package/dist/martyrs/src/modules/products/components/elements/Price.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/elements/Price.vue.js +7 -5
- package/dist/martyrs/src/modules/products/components/elements/Price.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/LeftoverEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/pages/LeftoverEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs +58 -41
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +60 -43
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +105 -85
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +107 -87
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditIngredients.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditIngredients.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.cjs +145 -0
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.js +145 -0
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.js.map +1 -0
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.cjs +46 -31
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js +50 -35
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsPopular.vue.cjs +43 -0
- package/dist/martyrs/src/modules/products/components/sections/ProductsPopular.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/products/components/sections/ProductsPopular.vue.js +43 -0
- package/dist/martyrs/src/modules/products/components/sections/ProductsPopular.vue.js.map +1 -0
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.cjs +131 -0
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js +131 -0
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js.map +1 -0
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/martyrs/src/modules/products/products.client.cjs +3 -3
- package/dist/martyrs/src/modules/products/products.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/products.client.js +3 -3
- package/dist/martyrs/src/modules/products/products.client.js.map +1 -1
- package/dist/martyrs/src/modules/products/store/products.cjs +4 -0
- package/dist/martyrs/src/modules/products/store/products.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/store/products.js +4 -0
- package/dist/martyrs/src/modules/products/store/products.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.cjs +2 -2
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/martyrs/src/modules/spots/components/pages/Map.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Map.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.cjs +2 -2
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
- package/dist/martyrs.cjs.js +1 -1
- package/dist/martyrs.css +1 -1
- package/dist/martyrs.es.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.cjs +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.cjs +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
- package/dist/organizations.server.cjs +1 -1
- package/dist/organizations.server.js +1 -1
- package/dist/products.server.cjs +111 -34
- package/dist/products.server.js +111 -34
- package/dist/style.css +196 -170
- package/package.json +1 -1
- package/src/.martyrs/chunks.json +325 -0
- package/src/.martyrs/filemap.json +6802 -0
- package/src/.martyrs/semantic-analysis.json +307 -0
- package/src/.martyrs/toc.json +14 -0
- package/src/builder/rspack/rspack.config.api.js +8 -11
- package/src/components/Button/Button.vue +2 -2
- package/src/components/Checkbox/Checkbox.vue +28 -16
- package/src/components/Chips/Chips.vue +4 -4
- package/src/components/Feed/Carousel.vue +72 -0
- package/src/components/Feed/Feed.vue +2 -2
- package/src/components/Field/Field.vue +1 -0
- package/src/components/PhotoViewer/PhotoViewer.vue +307 -220
- package/src/components/Radio/Radio.vue +2 -10
- package/src/components/Skeleton/Skeleton.vue +9 -12
- package/src/components/Slider/Slider.vue +220 -100
- package/src/components/Status/Status.vue +0 -1
- package/src/components/Tooltip/Tooltip.vue +2 -2
- package/src/modules/auth/views/components/pages/Profile.vue +1 -1
- package/src/modules/auth/views/components/pages/ProfileEdit.old.vue +189 -0
- package/src/modules/auth/views/components/pages/ProfileEdit.vue +19 -182
- package/src/modules/auth/views/components/pages/ProfileEditAccount.vue +72 -0
- package/src/modules/auth/views/components/pages/ProfileEditProfile.vue +110 -0
- package/src/modules/auth/views/components/pages/ProfileEditSidebar.vue +28 -0
- package/src/modules/auth/views/router/users.js +23 -12
- package/src/modules/community/components/blocks/FooterBlogpost.vue +3 -3
- package/src/modules/community/components/pages/BlogPost.vue +2 -1
- package/src/modules/community/components/sections/Comment.vue +161 -57
- package/src/modules/community/components/sections/Comments.vue +120 -63
- package/src/modules/community/components/sections/HotPosts.vue +7 -7
- package/src/modules/events/components/sections/EventsHot.vue +26 -33
- package/src/modules/globals/controllers/classes/abac/abac.core.js +3 -1
- package/src/modules/globals/controllers/classes/abac/abac.fields.js +126 -42
- package/src/modules/globals/controllers/classes/abac/v2/abac-core-fixed.js +313 -0
- package/src/modules/globals/controllers/classes/abac/v2/abac-express-fixed.js +276 -0
- package/src/modules/globals/controllers/classes/abac/v2/abac-fields-fixed.js +422 -0
- package/src/modules/globals/controllers/classes/abac/v2/abac-main-fixed.js +295 -0
- package/src/modules/globals/controllers/classes/abac/v2/abac-policies-fixed.js +316 -0
- package/src/modules/globals/controllers/classes/abac/v2/abac-ws-fixed.js +237 -0
- package/src/modules/globals/globals.client.js +2 -0
- package/src/modules/globals/views/components/blocks/CardFooter.vue +3 -3
- package/src/modules/globals/views/components/blocks/CardHeader.vue +1 -1
- package/src/modules/globals/views/components/blocks/PopupAuth.vue +66 -0
- package/src/modules/globals/views/mixins/mixins.js +37 -17
- package/src/modules/globals/views/plugins/popup.auth.plugin.js +77 -0
- package/src/modules/icons/entities/IconList.vue +14 -0
- package/src/modules/icons/navigation/IconCheck.vue +1 -3
- package/src/modules/icons/navigation/IconDoubleCheck.vue +1 -3
- package/src/modules/icons/navigation/IconLike.vue +1 -3
- package/src/modules/icons/navigation/IconMute.vue +1 -3
- package/src/modules/icons/navigation/IconPause.vue +1 -3
- package/src/modules/icons/navigation/IconPlay.vue +12 -15
- package/src/modules/icons/navigation/IconRefresh.vue +1 -3
- package/src/modules/icons/navigation/IconShuffle.vue +11 -26
- package/src/modules/icons/navigation/IconUnMute.vue +1 -3
- package/src/modules/icons/navigation/IconVolume.vue +1 -3
- package/src/modules/icons/pages/IconsPage.vue +0 -2
- package/src/modules/music/components/pages/AlbumDetail.vue +2 -2
- package/src/modules/music/components/pages/PlaylistDetail.vue +2 -2
- package/src/modules/music/components/pages/TrackDetail.vue +1 -1
- package/src/modules/music/components/player/MusicPlayer.vue +2 -2
- package/src/modules/notifications/components/blocks/NotificationItem.vue +6 -51
- package/src/modules/notifications/components/elements/NotificationBadge.vue +53 -97
- package/src/modules/organizations/configs/navigation.organization.config.js +8 -4
- package/src/modules/products/components/blocks/CardProduct.vue +8 -2
- package/src/modules/products/components/blocks/ProductDiscounts.vue +3 -4
- package/src/modules/products/components/blocks/ProductImages.vue +32 -23
- package/src/modules/products/components/blocks/ProductVariants.vue +6 -4
- package/src/modules/products/components/elements/Price.vue +3 -3
- package/src/modules/products/components/pages/Product.vue +32 -26
- package/src/modules/products/components/pages/ProductEdit.vue +95 -72
- package/src/modules/products/components/sections/EditRecommended.vue +131 -0
- package/src/modules/products/components/sections/ProductConfigurator.vue +35 -21
- package/src/modules/products/components/sections/ProductsPopular.vue +44 -0
- package/src/modules/products/components/sections/ProductsRecommended.vue +134 -0
- package/src/modules/products/controllers/configs/products.lookup.config.js +20 -15
- package/src/modules/products/controllers/products.controller.js +7 -22
- package/src/modules/products/models/category.model.js +28 -1
- package/src/modules/products/models/leftover.model.js +32 -0
- package/src/modules/products/models/product.model.js +37 -1
- package/src/modules/products/models/variant.model.js +35 -0
- package/src/modules/products/products.client.js +3 -3
- package/src/modules/products/routes/products.routes.js +1 -0
- package/src/modules/products/store/products.js +4 -0
- package/src/styles/base/all.scss +0 -38
- package/src/styles/base/shadow_transitions_hover_refactor.scss +20 -51
- package/src/styles/config.scss +51 -1
- package/dist/main-C75EcBpE.cjs +0 -11
- package/dist/martyrs/src/components/Button/Button.vue.js.map +0 -1
- package/dist/martyrs/src/components/Popup/Popup.vue.js.map +0 -1
- package/dist/martyrs/src/components/Slider/Slider.native.vue.cjs.map +0 -1
- package/dist/martyrs/src/components/Slider/Slider.native.vue.js.map +0 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs +0 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue2.cjs.map +0 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue2.js +0 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue2.js.map +0 -1
- package/dist/martyrs/src/modules/icons/navigation/IconHeart.vue.cjs +0 -34
- package/dist/martyrs/src/modules/icons/navigation/IconHeart.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/icons/navigation/IconHeart.vue.js +0 -34
- package/dist/martyrs/src/modules/icons/navigation/IconHeart.vue.js.map +0 -1
- package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.cjs +0 -124
- package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.cjs.map +0 -1
- package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.js +0 -124
- package/dist/martyrs/src/modules/products/components/sections/PopularProducts.vue.js.map +0 -1
- package/src/components/Slider/Slider.native.vue +0 -313
- package/src/modules/products/components/sections/PopularProducts.vue +0 -156
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
<template>
|
|
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
|
-
<!-- Empty State -->
|
|
8
|
-
<div v-else-if="!entitiesState.length" class="bg-light radius-semi flex flex-center w-100 h-20r">
|
|
9
|
-
<p class="text-gray-500">{{t('title')}}</p>
|
|
10
|
-
</div>
|
|
11
|
-
<!-- Native Carousel -->
|
|
12
|
-
<div v-else class="carousel" ref="carouselRef">
|
|
13
|
-
<div class="carousel__container" @scroll="handleScroll">
|
|
14
|
-
<div
|
|
15
|
-
class="carousel__slide pd-nano"
|
|
16
|
-
v-for="(entity, key, index) in entitiesState"
|
|
17
|
-
:key="key"
|
|
18
|
-
>
|
|
19
|
-
<transition name="fade" mode="out-in" appear>
|
|
20
|
-
<slot
|
|
21
|
-
:item="entity"
|
|
22
|
-
:user="user"
|
|
23
|
-
></slot>
|
|
24
|
-
</transition>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
|
|
28
|
-
<!-- Navigation Dots (optional) -->
|
|
29
|
-
<div class="carousel__dots" v-if="showDots && entitiesState.length > 1">
|
|
30
|
-
<button
|
|
31
|
-
v-for="(_, index) in entitiesState"
|
|
32
|
-
:key="index"
|
|
33
|
-
class="carousel__dot"
|
|
34
|
-
:class="{ 'carousel__dot--active': selectedIndex === index }"
|
|
35
|
-
@click="scrollTo(index)"
|
|
36
|
-
></button>
|
|
37
|
-
</div>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
</template>
|
|
41
|
-
|
|
42
|
-
<script setup>
|
|
43
|
-
import { ref, onMounted, onBeforeUnmount, watch } from 'vue'
|
|
44
|
-
import { useRouter } from 'vue-router'
|
|
45
|
-
import { useI18n } from 'vue-i18n'
|
|
46
|
-
import Loader from '@martyrs/src/components/Loader/Loader.vue'
|
|
47
|
-
|
|
48
|
-
// Props for customization
|
|
49
|
-
const props = defineProps({
|
|
50
|
-
showDots: Boolean,
|
|
51
|
-
store: Object,
|
|
52
|
-
options: Object,
|
|
53
|
-
text: Object,
|
|
54
|
-
user: Object
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
const router = useRouter()
|
|
58
|
-
const carouselRef = ref(null)
|
|
59
|
-
const entitiesState = ref([])
|
|
60
|
-
const isLoading = ref(true)
|
|
61
|
-
const selectedIndex = ref(0)
|
|
62
|
-
const autoplayInterval = ref(null)
|
|
63
|
-
const scrollTimeout = ref(null)
|
|
64
|
-
|
|
65
|
-
const { t } = useI18n({
|
|
66
|
-
messages: props.text
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
// Scroll to specific slide
|
|
70
|
-
const scrollTo = (index) => {
|
|
71
|
-
if (!carouselRef.value) return
|
|
72
|
-
|
|
73
|
-
const container = carouselRef.value.querySelector('.carousel__container')
|
|
74
|
-
const slides = container.querySelectorAll('.carousel__slide')
|
|
75
|
-
|
|
76
|
-
if (slides[index]) {
|
|
77
|
-
container.scrollTo({
|
|
78
|
-
left: slides[index].offsetLeft,
|
|
79
|
-
behavior: 'smooth'
|
|
80
|
-
})
|
|
81
|
-
|
|
82
|
-
selectedIndex.value = index
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// Handle scroll event with debounce
|
|
87
|
-
const handleScroll = () => {
|
|
88
|
-
// Clear previous timeout
|
|
89
|
-
if (scrollTimeout.value) {
|
|
90
|
-
clearTimeout(scrollTimeout.value)
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Set a timeout to update the index when scrolling stops
|
|
94
|
-
scrollTimeout.value = setTimeout(() => {
|
|
95
|
-
updateSelectedIndex()
|
|
96
|
-
}, 50) // Small delay to ensure scroll has completed
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// Update selected index when scrolling
|
|
100
|
-
const updateSelectedIndex = () => {
|
|
101
|
-
if (!carouselRef.value) return
|
|
102
|
-
|
|
103
|
-
const container = carouselRef.value.querySelector('.carousel__container')
|
|
104
|
-
const slides = container.querySelectorAll('.carousel__slide')
|
|
105
|
-
|
|
106
|
-
if (!slides.length) return
|
|
107
|
-
|
|
108
|
-
const scrollPosition = container.scrollLeft
|
|
109
|
-
const slideWidth = slides[0].offsetWidth
|
|
110
|
-
|
|
111
|
-
// Find current slide index based on scroll position
|
|
112
|
-
const index = Math.round(scrollPosition / slideWidth)
|
|
113
|
-
|
|
114
|
-
// Ensure index is within bounds
|
|
115
|
-
const boundedIndex = Math.max(0, Math.min(index, entitiesState.value.length - 1))
|
|
116
|
-
|
|
117
|
-
// Update selected index
|
|
118
|
-
selectedIndex.value = boundedIndex
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// Setup autoplay functionality
|
|
122
|
-
const setupAutoplay = () => {
|
|
123
|
-
if (autoplayInterval.value) {
|
|
124
|
-
clearInterval(autoplayInterval.value)
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
autoplayInterval.value = setInterval(() => {
|
|
128
|
-
const nextIndex = (selectedIndex.value + 1) % entitiesState.value.length
|
|
129
|
-
scrollTo(nextIndex)
|
|
130
|
-
}, 2000) // 2 seconds interval like in original
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
onMounted(async() => {
|
|
134
|
-
try {
|
|
135
|
-
entitiesState.value = await props.store.read(props.options)
|
|
136
|
-
} catch (error) {
|
|
137
|
-
console.error('Error loading entities:', error)
|
|
138
|
-
entitiesState.value = []
|
|
139
|
-
} finally {
|
|
140
|
-
isLoading.value = false
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
// Initialize native carousel after entities are loaded
|
|
144
|
-
if (entitiesState.value.length && carouselRef.value) {
|
|
145
|
-
// Listen for scroll end using intersection observer for better performance
|
|
146
|
-
const container = carouselRef.value.querySelector('.carousel__container')
|
|
147
|
-
const slides = container.querySelectorAll('.carousel__slide')
|
|
148
|
-
|
|
149
|
-
// Create intersection observer to detect when slides are visible
|
|
150
|
-
const observer = new IntersectionObserver((entries) => {
|
|
151
|
-
entries.forEach(entry => {
|
|
152
|
-
if (entry.isIntersecting) {
|
|
153
|
-
// Find the index of the visible slide
|
|
154
|
-
const slideIndex = Array.from(slides).indexOf(entry.target)
|
|
155
|
-
if (slideIndex !== -1) {
|
|
156
|
-
selectedIndex.value = slideIndex
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
})
|
|
160
|
-
}, {
|
|
161
|
-
root: container,
|
|
162
|
-
threshold: 0.7 // Consider slide visible when 70% is in view
|
|
163
|
-
})
|
|
164
|
-
|
|
165
|
-
// Observe all slides
|
|
166
|
-
slides.forEach(slide => {
|
|
167
|
-
observer.observe(slide)
|
|
168
|
-
})
|
|
169
|
-
|
|
170
|
-
// Add focus/blur events to pause autoplay on focus
|
|
171
|
-
container.addEventListener('focusin', () => {
|
|
172
|
-
if (autoplayInterval.value) {
|
|
173
|
-
clearInterval(autoplayInterval.value)
|
|
174
|
-
}
|
|
175
|
-
})
|
|
176
|
-
|
|
177
|
-
container.addEventListener('focusout', () => {
|
|
178
|
-
setupAutoplay()
|
|
179
|
-
})
|
|
180
|
-
|
|
181
|
-
// Stop autoplay on touch/mouse interaction
|
|
182
|
-
container.addEventListener('mousedown', () => {
|
|
183
|
-
if (autoplayInterval.value) {
|
|
184
|
-
clearInterval(autoplayInterval.value)
|
|
185
|
-
}
|
|
186
|
-
})
|
|
187
|
-
|
|
188
|
-
container.addEventListener('touchstart', () => {
|
|
189
|
-
if (autoplayInterval.value) {
|
|
190
|
-
clearInterval(autoplayInterval.value)
|
|
191
|
-
}
|
|
192
|
-
})
|
|
193
|
-
|
|
194
|
-
// Resume autoplay after interaction ends
|
|
195
|
-
container.addEventListener('mouseup', () => {
|
|
196
|
-
setupAutoplay()
|
|
197
|
-
})
|
|
198
|
-
|
|
199
|
-
container.addEventListener('touchend', () => {
|
|
200
|
-
setupAutoplay()
|
|
201
|
-
})
|
|
202
|
-
|
|
203
|
-
// Initialize autoplay
|
|
204
|
-
setupAutoplay()
|
|
205
|
-
|
|
206
|
-
// Store observer for cleanup
|
|
207
|
-
carouselRef.value._observer = observer
|
|
208
|
-
}
|
|
209
|
-
})
|
|
210
|
-
|
|
211
|
-
onBeforeUnmount(() => {
|
|
212
|
-
// Clean up all resources
|
|
213
|
-
if (carouselRef.value) {
|
|
214
|
-
// Clean up intersection observer
|
|
215
|
-
if (carouselRef.value._observer) {
|
|
216
|
-
carouselRef.value._observer.disconnect()
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
// Clean up event listeners
|
|
220
|
-
const container = carouselRef.value.querySelector('.carousel__container')
|
|
221
|
-
if (container) {
|
|
222
|
-
container.removeEventListener('focusin', () => {})
|
|
223
|
-
container.removeEventListener('focusout', () => {})
|
|
224
|
-
container.removeEventListener('mousedown', () => {})
|
|
225
|
-
container.removeEventListener('touchstart', () => {})
|
|
226
|
-
container.removeEventListener('mouseup', () => {})
|
|
227
|
-
container.removeEventListener('touchend', () => {})
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
// Clear all timeouts and intervals
|
|
232
|
-
if (autoplayInterval.value) {
|
|
233
|
-
clearInterval(autoplayInterval.value)
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
if (scrollTimeout.value) {
|
|
237
|
-
clearTimeout(scrollTimeout.value)
|
|
238
|
-
}
|
|
239
|
-
})
|
|
240
|
-
|
|
241
|
-
// Watch for changes in entities to reinitialize if needed
|
|
242
|
-
watch(entitiesState, (newValue) => {
|
|
243
|
-
if (newValue.length && carouselRef.value) {
|
|
244
|
-
// Reset to first slide
|
|
245
|
-
selectedIndex.value = 0
|
|
246
|
-
scrollTo(0)
|
|
247
|
-
|
|
248
|
-
// Reset autoplay
|
|
249
|
-
setupAutoplay()
|
|
250
|
-
}
|
|
251
|
-
})
|
|
252
|
-
</script>
|
|
253
|
-
|
|
254
|
-
<style scoped>
|
|
255
|
-
.carousel {
|
|
256
|
-
position: relative;
|
|
257
|
-
width: 100%;
|
|
258
|
-
overflow: hidden;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
.carousel__container {
|
|
262
|
-
display: flex;
|
|
263
|
-
scroll-snap-type: x mandatory;
|
|
264
|
-
overflow-x: scroll;
|
|
265
|
-
scrollbar-width: none; /* Firefox */
|
|
266
|
-
-ms-overflow-style: none; /* IE and Edge */
|
|
267
|
-
scroll-behavior: smooth;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
.carousel__container::-webkit-scrollbar {
|
|
271
|
-
display: none; /* Chrome, Safari, Opera */
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
.carousel__slide {
|
|
275
|
-
flex: 0 0 100%;
|
|
276
|
-
width: 100%;
|
|
277
|
-
scroll-snap-align: start;
|
|
278
|
-
scroll-snap-stop: always;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
/* Navigation dots */
|
|
282
|
-
.carousel__dots {
|
|
283
|
-
display: flex;
|
|
284
|
-
justify-content: center;
|
|
285
|
-
gap: 0.5rem;
|
|
286
|
-
margin-top: 1rem;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
.carousel__dot {
|
|
290
|
-
width: 0.625rem;
|
|
291
|
-
height: 0.625rem;
|
|
292
|
-
border-radius: 50%;
|
|
293
|
-
background-color: rgba(0, 0, 0, 0.2);
|
|
294
|
-
border: none;
|
|
295
|
-
padding: 0;
|
|
296
|
-
cursor: pointer;
|
|
297
|
-
transition: background-color 0.3s ease;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
.carousel__dot--active {
|
|
301
|
-
background-color: rgba(0, 0, 0, 0.6);
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
.fade-enter-active,
|
|
305
|
-
.fade-leave-active {
|
|
306
|
-
transition: opacity 0.3s ease;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
.fade-enter-from,
|
|
310
|
-
.fade-leave-to {
|
|
311
|
-
opacity: 0;
|
|
312
|
-
}
|
|
313
|
-
</style>
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="embla" ref="emblaNode">
|
|
3
|
-
<div class="embla__container">
|
|
4
|
-
<div
|
|
5
|
-
class="embla__slide h-100 pos-relative pd-nano"
|
|
6
|
-
v-for="(value, key) in productsState"
|
|
7
|
-
:key="value?._id || key"
|
|
8
|
-
>
|
|
9
|
-
<router-link
|
|
10
|
-
:to="{ name: 'Organization_Product', params: { _id: value.owner.target, product: value._id } }"
|
|
11
|
-
class="h-100 pos-relative"
|
|
12
|
-
>
|
|
13
|
-
<transition name="fade" mode="out-in" appear>
|
|
14
|
-
<div
|
|
15
|
-
v-if="isLoading || !value?.name"
|
|
16
|
-
class="h-100 w-100 radius-medium flex-center bg-light"
|
|
17
|
-
>
|
|
18
|
-
<Loader class="pos-relative"/>
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
<CardProduct
|
|
22
|
-
v-else
|
|
23
|
-
:key="value._id"
|
|
24
|
-
:product="value"
|
|
25
|
-
class="h-max-40r h-100 bg-light"
|
|
26
|
-
/>
|
|
27
|
-
</transition>
|
|
28
|
-
</router-link>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
</template>
|
|
33
|
-
|
|
34
|
-
<script setup>
|
|
35
|
-
import { ref, computed, onMounted, onUnmounted } from 'vue'
|
|
36
|
-
import { useRouter } from 'vue-router'
|
|
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'
|
|
42
|
-
|
|
43
|
-
import CardProduct from '@martyrs/src/modules/products/components/blocks/CardProduct.vue'
|
|
44
|
-
|
|
45
|
-
import * as products from '@martyrs/src/modules/products/store/products.js'
|
|
46
|
-
|
|
47
|
-
const router = useRouter()
|
|
48
|
-
const productsState = ref([]) // Инициализируем как пустой массив
|
|
49
|
-
const isLoading = ref(true)
|
|
50
|
-
const selectedIndex = ref(0)
|
|
51
|
-
const scrollSnaps = ref([])
|
|
52
|
-
|
|
53
|
-
// Конфигурация автоплея
|
|
54
|
-
const autoplayOptions = {
|
|
55
|
-
delay: 2000,
|
|
56
|
-
jump: false,
|
|
57
|
-
stopOnInteraction: false,
|
|
58
|
-
stopOnMouseEnter: false,
|
|
59
|
-
stopOnFocusIn: true,
|
|
60
|
-
stopOnLastSnap: false,
|
|
61
|
-
rootNode: (emblaRoot) => emblaRoot.parentElement
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// Инициализация карусели
|
|
65
|
-
const [emblaNode, emblaApi] = emblaCarouselVue(
|
|
66
|
-
{ loop: true },
|
|
67
|
-
[Autoplay(autoplayOptions)]
|
|
68
|
-
)
|
|
69
|
-
|
|
70
|
-
// Методы управления каруселью
|
|
71
|
-
const scrollTo = (index) => emblaApi.value?.scrollTo(index)
|
|
72
|
-
const onInit = () => {
|
|
73
|
-
if (emblaApi.value) {
|
|
74
|
-
scrollSnaps.value = emblaApi.value.scrollSnapList()
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
const onSelect = () => {
|
|
78
|
-
if (emblaApi.value) {
|
|
79
|
-
selectedIndex.value = emblaApi.value.selectedScrollSnap()
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
// Обработчик клика по продукту
|
|
84
|
-
const handleProductClick = (product) => {
|
|
85
|
-
if (product?._id && product?.owner?.target) {
|
|
86
|
-
router.push({
|
|
87
|
-
name: 'Organization_Product',
|
|
88
|
-
params: {
|
|
89
|
-
_id: product.owner.target,
|
|
90
|
-
product: product._id
|
|
91
|
-
}
|
|
92
|
-
})
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Загрузка данных
|
|
97
|
-
const loadProducts = async () => {
|
|
98
|
-
try {
|
|
99
|
-
isLoading.value = true
|
|
100
|
-
const response = await products.actions.read({
|
|
101
|
-
limit: 10,
|
|
102
|
-
organization: '657e7134efb8110c51b8b713'
|
|
103
|
-
})
|
|
104
|
-
productsState.value = Array.isArray(response) ? response : []
|
|
105
|
-
} catch (error) {
|
|
106
|
-
console.error('Error loading products:', error)
|
|
107
|
-
productsState.value = []
|
|
108
|
-
} finally {
|
|
109
|
-
isLoading.value = false
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
onMounted(async () => {
|
|
114
|
-
// Загружаем данные
|
|
115
|
-
await loadProducts()
|
|
116
|
-
|
|
117
|
-
// Инициализируем карусель
|
|
118
|
-
onInit()
|
|
119
|
-
onSelect()
|
|
120
|
-
|
|
121
|
-
// Добавляем слушатели событий
|
|
122
|
-
if (emblaApi.value) {
|
|
123
|
-
emblaApi.value.on('reInit', onInit)
|
|
124
|
-
emblaApi.value.on('reInit', onSelect)
|
|
125
|
-
emblaApi.value.on('select', onSelect)
|
|
126
|
-
}
|
|
127
|
-
})
|
|
128
|
-
|
|
129
|
-
// Очистка слушателей при размонтировании
|
|
130
|
-
onUnmounted(() => {
|
|
131
|
-
if (emblaApi.value) {
|
|
132
|
-
emblaApi.value.off('reInit', onInit)
|
|
133
|
-
emblaApi.value.off('reInit', onSelect)
|
|
134
|
-
emblaApi.value.off('select', onSelect)
|
|
135
|
-
}
|
|
136
|
-
})
|
|
137
|
-
</script>
|
|
138
|
-
|
|
139
|
-
<style lang="scss">
|
|
140
|
-
.embla {
|
|
141
|
-
overflow: hidden;
|
|
142
|
-
}
|
|
143
|
-
.embla__container {
|
|
144
|
-
display: flex;
|
|
145
|
-
}
|
|
146
|
-
.embla__slide {
|
|
147
|
-
flex: 0 0 25%;
|
|
148
|
-
min-width: 0;
|
|
149
|
-
}
|
|
150
|
-
@media screen and (max-width: 1025px) {
|
|
151
|
-
.embla__slide {
|
|
152
|
-
flex: 0 0 75%;
|
|
153
|
-
min-width: 0;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
</style>
|