@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,243 +1,330 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="photo-container" @wheel="handleWheel" @mousedown="startDrag" @touchstart="handleTouchStart" @touchmove="handleTouchMove" @touchend="handleTouchEnd">
|
|
3
|
-
<img loading="lazy" :src="photoUrl" :style="imgStyle" ref="image" @load="initialize" />
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
1
|
<script setup>
|
|
7
|
-
import { ref,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
let renderedWidth, renderedHeight;
|
|
46
|
-
|
|
47
|
-
if (imgWidth > containerWidth || imgHeight > containerHeight) {
|
|
48
|
-
const ratioX = containerWidth / imgWidth;
|
|
49
|
-
const ratioY = containerHeight / imgHeight;
|
|
50
|
-
const ratio = Math.min(ratioX, ratioY);
|
|
51
|
-
|
|
52
|
-
renderedWidth = imgWidth * ratio;
|
|
53
|
-
renderedHeight = imgHeight * ratio;
|
|
54
|
-
} else {
|
|
55
|
-
renderedWidth = imgWidth;
|
|
56
|
-
renderedHeight = imgHeight;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
return {
|
|
60
|
-
renderedWidth,
|
|
61
|
-
renderedHeight,
|
|
62
|
-
containerWidth,
|
|
63
|
-
containerHeight
|
|
2
|
+
import { ref, computed, onMounted, onBeforeUnmount, watch } from 'vue';
|
|
3
|
+
|
|
4
|
+
import IconChevronLeft from '@martyrs/src/modules/icons/navigation/IconChevronLeft.vue';
|
|
5
|
+
import IconChevronRight from '@martyrs/src/modules/icons/navigation/IconChevronRight.vue';
|
|
6
|
+
|
|
7
|
+
const props = defineProps({
|
|
8
|
+
photoUrl: String,
|
|
9
|
+
photos: Array,
|
|
10
|
+
initialIndex: Number,
|
|
11
|
+
show: Boolean,
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
const currentIndex = ref(0);
|
|
15
|
+
const translateX = ref(0);
|
|
16
|
+
const isDragging = ref(false);
|
|
17
|
+
const scale = ref(1);
|
|
18
|
+
const pos = ref({ x: 0, y: 0 });
|
|
19
|
+
const image = ref(null);
|
|
20
|
+
const thumbnailsRef = ref(null);
|
|
21
|
+
|
|
22
|
+
let startX = 0, startDist = 0, startScale = 1, dragX = 0, wheelTimer, dragTimer;
|
|
23
|
+
|
|
24
|
+
const photos = computed(() => props.photos?.length ? props.photos : props.photoUrl ? [props.photoUrl] : []);
|
|
25
|
+
|
|
26
|
+
const sliderStyle = computed(() => ({
|
|
27
|
+
transform: `translate3d(${translateX.value}px, 0, 0)`,
|
|
28
|
+
transition: isDragging.value ? 'none' : 'transform 0.3s',
|
|
29
|
+
backfaceVisibility: 'hidden'
|
|
30
|
+
}));
|
|
31
|
+
|
|
32
|
+
const imgStyle = computed(() => ({
|
|
33
|
+
transform: `scale3d(${scale.value}, ${scale.value}, 1) translate3d(${pos.value.x}px, ${pos.value.y}px, 0)`,
|
|
34
|
+
backfaceVisibility: 'hidden'
|
|
35
|
+
}));
|
|
36
|
+
|
|
37
|
+
const reset = () => {
|
|
38
|
+
scale.value = 1;
|
|
39
|
+
pos.value = { x: 0, y: 0 };
|
|
64
40
|
};
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
// Обновляем масштаб
|
|
86
|
-
scale.value = newScale;
|
|
87
|
-
|
|
88
|
-
// Ограничиваем позицию после обновления масштаба
|
|
89
|
-
constrainPosition();
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
const startDrag = (event) => {
|
|
93
|
-
event.preventDefault();
|
|
94
|
-
if (scale.value <= 1) return; // Не позволяем перетаскивать при масштабе 1
|
|
95
|
-
|
|
96
|
-
dragging.value = true;
|
|
97
|
-
startPosition.x = event.type === 'mousedown' ? event.clientX : event.touches[0].clientX;
|
|
98
|
-
startPosition.y = event.type === 'mousedown' ? event.clientY : event.touches[0].clientY;
|
|
99
|
-
|
|
100
|
-
const move = (moveEvent) => {
|
|
101
|
-
if (dragging.value) {
|
|
102
|
-
const currentX = moveEvent.type === 'mousemove' ? moveEvent.clientX : moveEvent.touches[0].clientX;
|
|
103
|
-
const currentY = moveEvent.type === 'mousemove' ? moveEvent.clientY : moveEvent.touches[0].clientY;
|
|
104
|
-
|
|
105
|
-
const deltaX = (currentX - startPosition.x) / scale.value;
|
|
106
|
-
const deltaY = (currentY - startPosition.y) / scale.value;
|
|
107
|
-
|
|
108
|
-
position.x += deltaX;
|
|
109
|
-
position.y += deltaY;
|
|
110
|
-
|
|
111
|
-
// Ограничиваем позицию после перемещения
|
|
112
|
-
constrainPosition();
|
|
113
|
-
|
|
114
|
-
startPosition.x = currentX;
|
|
115
|
-
startPosition.y = currentY;
|
|
41
|
+
|
|
42
|
+
const goTo = (index) => {
|
|
43
|
+
currentIndex.value = index;
|
|
44
|
+
translateX.value = -index * window.innerWidth;
|
|
45
|
+
reset();
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const jumpTo = (index) => {
|
|
49
|
+
isDragging.value = true;
|
|
50
|
+
goTo(index);
|
|
51
|
+
requestAnimationFrame(() => isDragging.value = false);
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const scrollToThumb = (el) => {
|
|
55
|
+
if (el && thumbnailsRef.value) {
|
|
56
|
+
const container = thumbnailsRef.value;
|
|
57
|
+
const thumb = el;
|
|
58
|
+
const left = thumb.offsetLeft - container.offsetWidth / 2 + thumb.offsetWidth / 2;
|
|
59
|
+
container.scrollTo({ left, behavior: 'smooth' });
|
|
116
60
|
}
|
|
117
61
|
};
|
|
118
|
-
|
|
119
|
-
const
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
document.removeEventListener('mouseup', endDrag);
|
|
123
|
-
document.removeEventListener('touchmove', move);
|
|
124
|
-
document.removeEventListener('touchend', endDrag);
|
|
62
|
+
|
|
63
|
+
const getXY = (e) => {
|
|
64
|
+
const t = e.touches?.[0] || e;
|
|
65
|
+
return [t.clientX, t.clientY];
|
|
125
66
|
};
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
document.addEventListener('touchmove', move);
|
|
130
|
-
document.addEventListener('touchend', endDrag);
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
const handleTouchStart = (event) => {
|
|
134
|
-
if (event.touches.length === 2) {
|
|
135
|
-
const touch1 = event.touches[0];
|
|
136
|
-
const touch2 = event.touches[1];
|
|
137
|
-
const distanceX = Math.abs(touch1.clientX - touch2.clientX);
|
|
138
|
-
const distanceY = Math.abs(touch1.clientY - touch2.clientY);
|
|
139
|
-
startDistance.value = Math.sqrt(distanceX ** 2 + distanceY ** 2);
|
|
140
|
-
startScale.value = scale.value;
|
|
141
|
-
} else {
|
|
142
|
-
startDrag(event);
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
const handleTouchMove = (event) => {
|
|
147
|
-
if (event.touches.length === 2) {
|
|
148
|
-
event.preventDefault();
|
|
149
|
-
const touch1 = event.touches[0];
|
|
150
|
-
const touch2 = event.touches[1];
|
|
151
|
-
const distanceX = Math.abs(touch1.clientX - touch2.clientX);
|
|
152
|
-
const distanceY = Math.abs(touch1.clientY - touch2.clientY);
|
|
153
|
-
const newDistance = Math.sqrt(distanceX ** 2 + distanceY ** 2);
|
|
154
|
-
const scaleFactor = newDistance / startDistance.value;
|
|
67
|
+
|
|
68
|
+
const constrain = () => {
|
|
69
|
+
if (scale.value <= 1 || !image.value) return reset();
|
|
155
70
|
|
|
156
|
-
|
|
157
|
-
const
|
|
158
|
-
const
|
|
71
|
+
const { naturalWidth: nw, naturalHeight: nh } = image.value;
|
|
72
|
+
const [cw, ch] = [window.innerWidth, window.innerHeight];
|
|
73
|
+
const r = Math.min(cw / nw, ch / nh, 1);
|
|
159
74
|
|
|
160
|
-
|
|
161
|
-
const
|
|
162
|
-
const touchCenterX = centerX - rect.left - rect.width / 2;
|
|
163
|
-
const touchCenterY = centerY - rect.top - rect.height / 2;
|
|
75
|
+
const maxX = Math.max(0, (nw * r * scale.value - cw) / 2 / scale.value);
|
|
76
|
+
const maxY = Math.max(0, (nh * r * scale.value - ch) / 2 / scale.value);
|
|
164
77
|
|
|
165
|
-
|
|
166
|
-
|
|
78
|
+
pos.value.x = Math.max(-maxX, Math.min(maxX, pos.value.x));
|
|
79
|
+
pos.value.y = Math.max(-maxY, Math.min(maxY, pos.value.y));
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
const zoom = (newScale, fx, fy) => {
|
|
83
|
+
if (!image.value) return;
|
|
167
84
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
85
|
+
newScale = Math.max(1, Math.min(3, newScale));
|
|
86
|
+
const rect = image.value.getBoundingClientRect();
|
|
87
|
+
const [mx, my] = [fx - rect.left - rect.width / 2, fy - rect.top - rect.height / 2];
|
|
88
|
+
const change = newScale / scale.value;
|
|
171
89
|
|
|
90
|
+
pos.value.x -= (mx / scale.value) * (change - 1);
|
|
91
|
+
pos.value.y -= (my / scale.value) * (change - 1);
|
|
172
92
|
scale.value = newScale;
|
|
173
|
-
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
93
|
+
constrain();
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
const startDrag = (e) => {
|
|
97
|
+
if (e.type === 'mousedown') e.preventDefault();
|
|
98
|
+
isDragging.value = true;
|
|
99
|
+
let [x, y] = getXY(e);
|
|
100
|
+
|
|
101
|
+
const handleMove = scale.value > 1
|
|
102
|
+
? (e) => {
|
|
103
|
+
if (!isDragging.value) return;
|
|
104
|
+
if (e.type === 'touchmove') e.preventDefault();
|
|
105
|
+
const [cx, cy] = getXY(e);
|
|
106
|
+
pos.value.x += (cx - x) / scale.value;
|
|
107
|
+
pos.value.y += (cy - y) / scale.value;
|
|
108
|
+
constrain();
|
|
109
|
+
[x, y] = [cx, cy];
|
|
110
|
+
}
|
|
111
|
+
: (e) => {
|
|
112
|
+
if (!isDragging.value) return;
|
|
113
|
+
if (e.type === 'touchmove') e.preventDefault();
|
|
114
|
+
dragX = getXY(e)[0] - startX;
|
|
115
|
+
translateX.value = dragX - currentIndex.value * window.innerWidth;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
const handleEnd = () => {
|
|
119
|
+
isDragging.value = false;
|
|
120
|
+
if (scale.value <= 1 && Math.abs(dragX) > window.innerWidth / 4) {
|
|
121
|
+
goTo(Math.max(0, Math.min(photos.value.length - 1, currentIndex.value + (dragX > 0 ? -1 : 1))));
|
|
122
|
+
} else if (scale.value <= 1) {
|
|
123
|
+
goTo(currentIndex.value);
|
|
124
|
+
}
|
|
125
|
+
dragX = 0;
|
|
126
|
+
document.removeEventListener('mousemove', handleMove, { passive: true });
|
|
127
|
+
document.removeEventListener('mouseup', handleEnd, { passive: true });
|
|
128
|
+
document.removeEventListener('touchmove', handleMove, { passive: false });
|
|
129
|
+
document.removeEventListener('touchend', handleEnd, { passive: true });
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
if (scale.value <= 1) startX = x;
|
|
133
|
+
document.addEventListener('mousemove', handleMove, { passive: true });
|
|
134
|
+
document.addEventListener('mouseup', handleEnd, { passive: true });
|
|
135
|
+
document.addEventListener('touchmove', handleMove, { passive: false });
|
|
136
|
+
document.addEventListener('touchend', handleEnd, { passive: true });
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
const handleTouchStart = (e) => {
|
|
140
|
+
if (e.touches.length === 2) {
|
|
141
|
+
clearTimeout(dragTimer);
|
|
142
|
+
const [t1, t2] = e.touches;
|
|
143
|
+
startDist = Math.hypot(t1.clientX - t2.clientX, t1.clientY - t2.clientY);
|
|
144
|
+
startScale = scale.value;
|
|
145
|
+
} else {
|
|
146
|
+
dragTimer = setTimeout(() => startDrag(e), 50);
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
const handleTouchMove = (e) => {
|
|
151
|
+
if (e.touches.length === 2 && !isDragging.value) {
|
|
152
|
+
clearTimeout(dragTimer);
|
|
153
|
+
e.preventDefault();
|
|
154
|
+
const [t1, t2] = e.touches;
|
|
155
|
+
const dist = Math.hypot(t1.clientX - t2.clientX, t1.clientY - t2.clientY);
|
|
156
|
+
zoom(startScale * (dist / startDist), (t1.clientX + t2.clientX) / 2, (t1.clientY + t2.clientY) / 2);
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
const handleTouchEnd = () => {
|
|
161
|
+
clearTimeout(dragTimer);
|
|
162
|
+
startDist = 0;
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
const handleWheel = (e) => {
|
|
166
|
+
clearTimeout(wheelTimer);
|
|
167
|
+
wheelTimer = setTimeout(() => zoom(scale.value + (e.deltaY > 0 ? -0.1 : 0.1), e.clientX, e.clientY), 10);
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
const handleKey = (e) => {
|
|
171
|
+
const dir = { ArrowLeft: -1, ArrowRight: 1 }[e.key];
|
|
172
|
+
if (dir) goTo(Math.max(0, Math.min(photos.value.length - 1, currentIndex.value + dir)));
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
watch(() => props.initialIndex, (i) => i != null && jumpTo(i));
|
|
176
|
+
|
|
177
|
+
onMounted(() => {
|
|
178
|
+
window.addEventListener('keydown', handleKey, { passive: true });
|
|
179
|
+
jumpTo(props.initialIndex || 0);
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
onBeforeUnmount(() => {
|
|
183
|
+
window.removeEventListener('keydown', handleKey);
|
|
184
|
+
clearTimeout(wheelTimer);
|
|
185
|
+
clearTimeout(dragTimer);
|
|
224
186
|
});
|
|
225
|
-
});
|
|
226
187
|
</script>
|
|
227
|
-
|
|
228
|
-
|
|
188
|
+
|
|
189
|
+
<template>
|
|
190
|
+
<div class="photo-viewer" @wheel.prevent="handleWheel">
|
|
191
|
+
<div
|
|
192
|
+
class="slider-track"
|
|
193
|
+
:style="sliderStyle"
|
|
194
|
+
@mousedown="startDrag"
|
|
195
|
+
@touchstart="handleTouchStart"
|
|
196
|
+
@touchmove="handleTouchMove"
|
|
197
|
+
@touchend="handleTouchEnd"
|
|
198
|
+
>
|
|
199
|
+
<div
|
|
200
|
+
v-for="(photo, index) in photos"
|
|
201
|
+
:key="index"
|
|
202
|
+
class="slide"
|
|
203
|
+
>
|
|
204
|
+
<img
|
|
205
|
+
:src="photo"
|
|
206
|
+
:style="index === currentIndex ? imgStyle : null"
|
|
207
|
+
:ref="el => index === currentIndex && (image = el)"
|
|
208
|
+
@load="() => index === currentIndex && reset()"
|
|
209
|
+
/>
|
|
210
|
+
</div>
|
|
211
|
+
</div>
|
|
212
|
+
|
|
213
|
+
<template
|
|
214
|
+
v-if="photos.length > 1"
|
|
215
|
+
>
|
|
216
|
+
|
|
217
|
+
<span class="pos-absolute pos-l-small bs-small pos-t-small radius-small pd-thin bg-white t-black t-medium">
|
|
218
|
+
{{ currentIndex + 1 }} / {{ photos.length }}
|
|
219
|
+
</span>
|
|
220
|
+
|
|
221
|
+
<button
|
|
222
|
+
v-if="currentIndex > 0"
|
|
223
|
+
@click="goTo(currentIndex - 1)"
|
|
224
|
+
class="cursor-pointer hover-scale-1 bs-small pos-absolute pos-t-50 pos-l-small bg-white radius-small pd-thin"
|
|
225
|
+
>
|
|
226
|
+
<IconChevronLeft fill="rgb(var(--black)" class="i-medium"/>
|
|
227
|
+
</button>
|
|
228
|
+
|
|
229
|
+
<button
|
|
230
|
+
v-if="currentIndex < photos.length - 1"
|
|
231
|
+
@click="goTo(currentIndex + 1)"
|
|
232
|
+
class="cursor-pointer hover-scale-1 bs-small pos-absolute pos-t-50 pos-r-small bg-white radius-small pd-thin"
|
|
233
|
+
>
|
|
234
|
+
<IconChevronRight fill="rgb(var(--black)" class="i-medium"/>
|
|
235
|
+
</button>
|
|
236
|
+
|
|
237
|
+
<div class="pos-absolute pos-b-small radius-small pd-thin bg-light thumbnails-container">
|
|
238
|
+
<div class="thumbnails" ref="thumbnailsRef">
|
|
239
|
+
<img
|
|
240
|
+
v-for="(photo, i) in photos"
|
|
241
|
+
:key="i"
|
|
242
|
+
:src="photo"
|
|
243
|
+
@click="jumpTo(i)"
|
|
244
|
+
:class="['thumbnail', { active: i === currentIndex }]"
|
|
245
|
+
:ref="el => i === currentIndex && scrollToThumb(el)"
|
|
246
|
+
/>
|
|
247
|
+
</div>
|
|
248
|
+
</div>
|
|
249
|
+
</template>
|
|
250
|
+
|
|
251
|
+
</div>
|
|
252
|
+
</template>
|
|
253
|
+
|
|
254
|
+
<style scoped>
|
|
255
|
+
.photo-viewer {
|
|
229
256
|
width: 100%;
|
|
230
257
|
height: 100%;
|
|
231
|
-
background: black;
|
|
232
|
-
overflow: hidden;
|
|
233
258
|
position: relative;
|
|
259
|
+
background: #fff;
|
|
260
|
+
overflow: hidden;
|
|
261
|
+
user-select: none;
|
|
262
|
+
touch-action: none;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.slider-track {
|
|
266
|
+
display: flex;
|
|
267
|
+
height: 100%;
|
|
234
268
|
cursor: grab;
|
|
269
|
+
backface-visibility: hidden;
|
|
235
270
|
}
|
|
236
|
-
|
|
271
|
+
|
|
272
|
+
.slider-track:active {
|
|
273
|
+
cursor: grabbing;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.slide {
|
|
277
|
+
flex: 0 0 100%;
|
|
278
|
+
width: 100%;
|
|
279
|
+
height: 100%;
|
|
280
|
+
overflow: hidden;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.slide img {
|
|
237
284
|
width: 100%;
|
|
238
285
|
height: 100%;
|
|
239
286
|
object-fit: scale-down;
|
|
240
|
-
|
|
241
|
-
|
|
287
|
+
transform-origin: center;
|
|
288
|
+
pointer-events: none;
|
|
289
|
+
backface-visibility: hidden;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.thumbnails-container {
|
|
293
|
+
left: 50%;
|
|
294
|
+
transform: translateX(-50%);
|
|
295
|
+
max-width: 100%;
|
|
296
|
+
z-index: 1;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.thumbnails {
|
|
300
|
+
display: flex;
|
|
301
|
+
gap: 0.25rem;
|
|
302
|
+
overflow-x: auto;
|
|
303
|
+
scrollbar-width: none;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.thumbnails::-webkit-scrollbar {
|
|
307
|
+
display: none;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.thumbnail {
|
|
311
|
+
width: 4rem;
|
|
312
|
+
height: 4rem;
|
|
313
|
+
object-fit: cover;
|
|
314
|
+
cursor: pointer;
|
|
315
|
+
transition: opacity 0.2s;
|
|
316
|
+
border-radius: 0.25rem;
|
|
317
|
+
flex-shrink: 0;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.thumbnail.active {
|
|
321
|
+
opacity: 1;
|
|
322
|
+
border: 1px solid rgb(var(--second));
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
@media (max-width: 768px) {
|
|
327
|
+
.nav-arrow { display: none; }
|
|
328
|
+
.thumbnail { width: 3rem; height: 3rem; }
|
|
242
329
|
}
|
|
243
330
|
</style>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<!-- Checkmark -->
|
|
5
5
|
<!-- ////////////////////////// -->
|
|
6
6
|
<div
|
|
7
|
-
class="cursor-pointer
|
|
7
|
+
class="cursor-pointer radius-extra pd-micro h-100 aspect-1x1 pos-relative"
|
|
8
8
|
:class="{
|
|
9
9
|
'bg-main': radio === value,
|
|
10
10
|
}"
|
|
@@ -25,19 +25,11 @@
|
|
|
25
25
|
|
|
26
26
|
</div>
|
|
27
27
|
</div>
|
|
28
|
-
<!-- <div v-if="radio === value" class="">
|
|
29
|
-
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
30
|
-
<g id="24 / basic / check-mark">
|
|
31
|
-
<path id="icon" fill-rule="evenodd" clip-rule="evenodd" d="M7.28033 10.7197L14.25 3.75L15.3107 4.81066L7.28033 12.841L3 8.56066L4.06066 7.5L7.28033 10.7197Z" fill="#000000"/>
|
|
32
|
-
</g>
|
|
33
|
-
</svg>
|
|
34
|
-
</div> -->
|
|
35
|
-
|
|
36
28
|
<!-- ////////////////////////// -->
|
|
37
29
|
<!-- Label -->
|
|
38
30
|
<!-- ////////////////////////// -->
|
|
39
31
|
|
|
40
|
-
<div v-if="label" class="mn-r-auto t-transp mn-r-small">
|
|
32
|
+
<div v-if="label" class="mn-l-thin mn-r-auto t-transp mn-r-small">
|
|
41
33
|
<span>{{label}}</span>
|
|
42
34
|
</div>
|
|
43
35
|
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
2
|
+
<div class="w-100 pos-relative" :class="{ 'skeleton-wrapper--loading': loading }">
|
|
3
3
|
<!-- Используем слот по умолчанию, если он есть -->
|
|
4
4
|
<slot v-if="hasDefaultSlot && !structure.length"></slot>
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
<div
|
|
7
|
+
v-else-if="structure.length"
|
|
8
|
+
class="skeleton-structure"
|
|
9
|
+
:class="{ 'skeleton-structure--horizontal': horizontal }"
|
|
10
|
+
>
|
|
8
11
|
<div
|
|
9
12
|
v-for="(item, index) in structure"
|
|
10
13
|
:key="index"
|
|
@@ -12,10 +15,11 @@
|
|
|
12
15
|
:class="[
|
|
13
16
|
`skeleton-item--${item.block}`,
|
|
14
17
|
`skeleton-item--${item.size || 'medium'}`,
|
|
15
|
-
{ 'skeleton-item--rounded': item.rounded }
|
|
18
|
+
{ 'skeleton-item--rounded': item.rounded },
|
|
19
|
+
item.class
|
|
16
20
|
]"
|
|
17
21
|
:style="item.style"
|
|
18
|
-
|
|
22
|
+
/>
|
|
19
23
|
</div>
|
|
20
24
|
|
|
21
25
|
<!-- Если слот пустой и структура не определена - показываем дефолтный скелетон -->
|
|
@@ -90,13 +94,6 @@ onMounted(() => {
|
|
|
90
94
|
</script>
|
|
91
95
|
|
|
92
96
|
<style scoped>
|
|
93
|
-
.skeleton-wrapper {
|
|
94
|
-
width: 100%;
|
|
95
|
-
position: relative;
|
|
96
|
-
background-color: var(--skeleton-card-color);
|
|
97
|
-
padding: 1rem;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
97
|
/* Стили для режима загрузки */
|
|
101
98
|
.skeleton-wrapper--loading ::v-deep(*) {
|
|
102
99
|
color: transparent !important;
|