@ozdao/martyrs 0.2.481 → 0.2.483
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-C57G7rnE.js} +1 -1
- package/dist/{Media-B1ZP3D7B.cjs → Media-DjnpKS62.cjs} +1 -1
- package/dist/_virtual/_commonjsHelpers.cjs +2 -0
- package/dist/_virtual/_commonjsHelpers.cjs.map +1 -1
- package/dist/_virtual/_commonjsHelpers.js +2 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -1
- package/dist/_virtual/index2.cjs +8 -0
- package/dist/_virtual/index2.cjs.map +1 -0
- package/dist/_virtual/index2.js +8 -0
- package/dist/_virtual/index2.js.map +1 -0
- package/dist/_virtual/index3.cjs +5 -0
- package/dist/_virtual/index3.cjs.map +1 -0
- package/dist/_virtual/index3.js +5 -0
- package/dist/_virtual/index3.js.map +1 -0
- package/dist/{abac-XF1JVCLI.cjs → abac-6LjoG9u-.cjs} +107 -26
- package/dist/{abac-BuL5pUZ4.js → abac-Cf_9lCSh.js} +107 -26
- package/dist/globals.server.cjs +1 -1
- package/dist/globals.server.js +1 -1
- package/dist/{main-BhAiwmnI.js → main-CXQqAVVb.js} +3036 -4278
- package/dist/main-De5X_RUk.cjs +11 -0
- package/dist/martyrs/src/components/Button/{Button.vue2.cjs → Button.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Button/{Button.vue2.js.map → Button.vue.cjs.map} +1 -1
- package/dist/martyrs/src/components/Button/{Button.vue2.js → Button.vue.js} +2 -2
- package/dist/martyrs/src/components/Button/Button.vue.js.map +1 -0
- 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.vue.cjs +5 -8
- package/dist/martyrs/src/components/Chips/Chips.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Chips/Chips.vue.js +6 -9
- package/dist/martyrs/src/components/Chips/Chips.vue.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/FieldPhone/FieldPhone.vue.cjs +141 -113
- package/dist/martyrs/src/components/FieldPhone/FieldPhone.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/FieldPhone/FieldPhone.vue.js +142 -114
- package/dist/martyrs/src/components/FieldPhone/FieldPhone.vue.js.map +1 -1
- package/dist/martyrs/src/components/Menu/{Menu.vue.cjs → Menu.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Menu/Menu.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Menu/{Menu.vue.js → Menu.vue2.js} +2 -2
- package/dist/martyrs/src/components/Menu/Menu.vue2.js.map +1 -0
- 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/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 +11 -5
- package/dist/martyrs/src/components/Status/Status.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Status/Status.vue.js +13 -7
- 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 +6 -4
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js +6 -4
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js.map +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 +4 -2
- 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 +5 -3
- 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/components/sections/SliderFeatures.vue.cjs +17 -39
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js +18 -40
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/EnterCode.json.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/EnterCode.json.js +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/EnterPassword.json.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/EnterPassword.json.js +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/ResetPassword.json.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/ResetPassword.json.js +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/SignIn.json.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/SignIn.json.js +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/SignUp.json.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/SignUp.json.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 +4 -3
- 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 +4 -3
- 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 +1 -1
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- 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 +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.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.js +4 -4
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +9 -9
- package/dist/martyrs/src/modules/globals/globals.client.cjs +13 -0
- package/dist/martyrs/src/modules/globals/globals.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/globals.client.js +13 -0
- package/dist/martyrs/src/modules/globals/globals.client.js.map +1 -1
- package/dist/martyrs/src/modules/globals/locales/en.cjs +24 -0
- package/dist/martyrs/src/modules/globals/locales/en.cjs.map +1 -0
- package/dist/martyrs/src/modules/globals/locales/en.js +24 -0
- package/dist/martyrs/src/modules/globals/locales/en.js.map +1 -0
- package/dist/martyrs/src/modules/globals/locales/ru.cjs +24 -0
- package/dist/martyrs/src/modules/globals/locales/ru.cjs.map +1 -0
- package/dist/martyrs/src/modules/globals/locales/ru.js +24 -0
- package/dist/martyrs/src/modules/globals/locales/ru.js.map +1 -0
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.cjs +71 -0
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.cjs.map +1 -0
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.js +71 -0
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.js.map +1 -0
- 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 +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs +50 -44
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js +50 -44
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
- 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/globals/views/store/globals.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/store/globals.js.map +1 -1
- 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/marketplace/views/components/layouts/Marketplace.vue.cjs +52 -58
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.js +52 -58
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.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 +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
- 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 +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
- 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 +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
- 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/Organization.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- 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/organizations/router/organizations.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/router/organizations.js +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 +1 -1
- package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
- 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 +32 -23
- 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 +35 -26
- 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 +1 -1
- package/dist/martyrs/src/modules/products/components/pages/LeftoverEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs +57 -40
- 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 +59 -42
- 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 +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.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 +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +1 -1
- 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 +44 -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 +44 -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/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- 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 +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
- package/dist/martyrs/src/modules/wallet/views/localization/wallet.json.cjs +1 -1
- package/dist/martyrs/src/modules/wallet/views/localization/wallet.json.js +1 -1
- package/dist/martyrs.cjs.js +1 -1
- package/dist/martyrs.css +1 -1
- package/dist/martyrs.es.js +1 -1
- package/dist/node_modules/lodash.merge/index.cjs +689 -0
- package/dist/node_modules/lodash.merge/index.cjs.map +1 -0
- package/dist/node_modules/lodash.merge/index.js +689 -0
- package/dist/node_modules/lodash.merge/index.js.map +1 -0
- 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 +239 -235
- 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/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/FieldPhone/FieldPhone.vue +337 -238
- 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 +10 -8
- package/src/components/Tooltip/Tooltip.vue +2 -2
- package/src/modules/auth/views/components/layouts/Auth.vue +1 -1
- 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/components/sections/SliderFeatures.vue +13 -79
- package/src/modules/auth/views/localization/EnterCode.json +2 -2
- package/src/modules/auth/views/localization/EnterPassword.json +2 -2
- package/src/modules/auth/views/localization/ResetPassword.json +2 -2
- package/src/modules/auth/views/localization/SignIn.json +2 -2
- package/src/modules/auth/views/localization/SignUp.json +2 -2
- 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 +17 -1
- package/src/modules/globals/locales/en.js +21 -0
- package/src/modules/globals/locales/index.js +8 -0
- package/src/modules/globals/locales/ru.js +21 -0
- package/src/modules/globals/views/classes/globals.i18n.js +84 -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/components/layouts/Client.vue +43 -40
- package/src/modules/globals/views/components/partials/Footer.vue +162 -162
- 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/globals/views/store/globals.js +0 -40
- 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/marketplace/views/components/layouts/Marketplace.vue +34 -38
- 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 +45 -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/modules/wallet/views/localization/wallet.json +2 -2
- 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.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Menu/Menu.vue.cjs.map +0 -1
- package/dist/martyrs/src/components/Menu/Menu.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/dist/node_modules/.pnpm/embla-carousel-autoplay@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs +0 -194
- package/dist/node_modules/.pnpm/embla-carousel-autoplay@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs.map +0 -1
- package/dist/node_modules/.pnpm/embla-carousel-autoplay@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +0 -194
- package/dist/node_modules/.pnpm/embla-carousel-autoplay@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js.map +0 -1
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs +0 -43
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs.map +0 -1
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +0 -43
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js.map +0 -1
- package/dist/node_modules/.pnpm/embla-carousel-vue@8.6.0_vue@3.5.13_typescript@5.8.3_/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs +0 -43
- package/dist/node_modules/.pnpm/embla-carousel-vue@8.6.0_vue@3.5.13_typescript@5.8.3_/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs.map +0 -1
- package/dist/node_modules/.pnpm/embla-carousel-vue@8.6.0_vue@3.5.13_typescript@5.8.3_/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js +0 -43
- package/dist/node_modules/.pnpm/embla-carousel-vue@8.6.0_vue@3.5.13_typescript@5.8.3_/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js.map +0 -1
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +0 -1630
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs.map +0 -1
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js +0 -1630
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js.map +0 -1
- package/src/components/Slider/Slider.native.vue +0 -313
- package/src/modules/products/components/sections/PopularProducts.vue +0 -156
|
@@ -1,191 +1,243 @@
|
|
|
1
|
-
import { ref,
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { ref, computed, watch, onMounted, onBeforeUnmount, createElementBlock, openBlock, withModifiers, createElementVNode, createCommentVNode, normalizeStyle, Fragment, renderList, toDisplayString, createVNode, normalizeClass } from "vue";
|
|
2
|
+
import IconChevronLeft from "../../modules/icons/navigation/IconChevronLeft.vue.js";
|
|
3
|
+
import IconChevronRight from "../../modules/icons/navigation/IconChevronRight.vue.js";
|
|
4
|
+
import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const _hoisted_1 = ["src", "onLoad"];
|
|
6
|
+
const _hoisted_2 = { class: "pos-absolute pos-l-small bs-small pos-t-small radius-small pd-thin bg-white t-black t-medium" };
|
|
7
|
+
const _hoisted_3 = { class: "pos-absolute pos-b-small radius-small pd-thin bg-light thumbnails-container" };
|
|
8
|
+
const _hoisted_4 = ["src", "onClick"];
|
|
4
9
|
const _sfc_main = {
|
|
5
10
|
__name: "PhotoViewer",
|
|
6
11
|
props: {
|
|
7
12
|
photoUrl: String,
|
|
13
|
+
photos: Array,
|
|
14
|
+
initialIndex: Number,
|
|
8
15
|
show: Boolean
|
|
9
16
|
},
|
|
10
17
|
setup(__props) {
|
|
18
|
+
const props = __props;
|
|
19
|
+
const currentIndex = ref(0);
|
|
20
|
+
const translateX = ref(0);
|
|
21
|
+
const isDragging = ref(false);
|
|
11
22
|
const scale = ref(1);
|
|
12
|
-
const
|
|
13
|
-
const dragging = ref(false);
|
|
14
|
-
const startPosition = reactive({ x: 0, y: 0 });
|
|
15
|
-
const startScale = ref(1);
|
|
16
|
-
const startDistance = ref(0);
|
|
23
|
+
const pos = ref({ x: 0, y: 0 });
|
|
17
24
|
const image = ref(null);
|
|
18
|
-
ref(null);
|
|
25
|
+
const thumbnailsRef = ref(null);
|
|
26
|
+
let startX = 0, startDist = 0, startScale = 1, dragX = 0, wheelTimer, dragTimer;
|
|
27
|
+
const photos = computed(() => {
|
|
28
|
+
var _a;
|
|
29
|
+
return ((_a = props.photos) == null ? void 0 : _a.length) ? props.photos : props.photoUrl ? [props.photoUrl] : [];
|
|
30
|
+
});
|
|
31
|
+
const sliderStyle = computed(() => ({
|
|
32
|
+
transform: `translate3d(${translateX.value}px, 0, 0)`,
|
|
33
|
+
transition: isDragging.value ? "none" : "transform 0.3s",
|
|
34
|
+
backfaceVisibility: "hidden"
|
|
35
|
+
}));
|
|
19
36
|
const imgStyle = computed(() => ({
|
|
20
|
-
transform: `
|
|
37
|
+
transform: `scale3d(${scale.value}, ${scale.value}, 1) translate3d(${pos.value.x}px, ${pos.value.y}px, 0)`,
|
|
38
|
+
backfaceVisibility: "hidden"
|
|
21
39
|
}));
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
renderedWidth = imgWidth;
|
|
43
|
-
renderedHeight = imgHeight;
|
|
40
|
+
const reset = () => {
|
|
41
|
+
scale.value = 1;
|
|
42
|
+
pos.value = { x: 0, y: 0 };
|
|
43
|
+
};
|
|
44
|
+
const goTo = (index) => {
|
|
45
|
+
currentIndex.value = index;
|
|
46
|
+
translateX.value = -index * window.innerWidth;
|
|
47
|
+
reset();
|
|
48
|
+
};
|
|
49
|
+
const jumpTo = (index) => {
|
|
50
|
+
isDragging.value = true;
|
|
51
|
+
goTo(index);
|
|
52
|
+
requestAnimationFrame(() => isDragging.value = false);
|
|
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" });
|
|
44
60
|
}
|
|
45
|
-
return {
|
|
46
|
-
renderedWidth,
|
|
47
|
-
renderedHeight,
|
|
48
|
-
containerWidth,
|
|
49
|
-
containerHeight
|
|
50
|
-
};
|
|
51
61
|
};
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
const
|
|
55
|
-
|
|
62
|
+
const getXY = (e) => {
|
|
63
|
+
var _a;
|
|
64
|
+
const t = ((_a = e.touches) == null ? void 0 : _a[0]) || e;
|
|
65
|
+
return [t.clientX, t.clientY];
|
|
66
|
+
};
|
|
67
|
+
const constrain = () => {
|
|
68
|
+
if (scale.value <= 1 || !image.value) return reset();
|
|
69
|
+
const { naturalWidth: nw, naturalHeight: nh } = image.value;
|
|
70
|
+
const [cw, ch] = [window.innerWidth, window.innerHeight];
|
|
71
|
+
const r = Math.min(cw / nw, ch / nh, 1);
|
|
72
|
+
const maxX = Math.max(0, (nw * r * scale.value - cw) / 2 / scale.value);
|
|
73
|
+
const maxY = Math.max(0, (nh * r * scale.value - ch) / 2 / scale.value);
|
|
74
|
+
pos.value.x = Math.max(-maxX, Math.min(maxX, pos.value.x));
|
|
75
|
+
pos.value.y = Math.max(-maxY, Math.min(maxY, pos.value.y));
|
|
76
|
+
};
|
|
77
|
+
const zoom = (newScale, fx, fy) => {
|
|
78
|
+
if (!image.value) return;
|
|
79
|
+
newScale = Math.max(1, Math.min(3, newScale));
|
|
56
80
|
const rect = image.value.getBoundingClientRect();
|
|
57
|
-
const
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
position.y = position.y - mouseY / scale.value * (scaleChange - 1);
|
|
81
|
+
const [mx, my] = [fx - rect.left - rect.width / 2, fy - rect.top - rect.height / 2];
|
|
82
|
+
const change = newScale / scale.value;
|
|
83
|
+
pos.value.x -= mx / scale.value * (change - 1);
|
|
84
|
+
pos.value.y -= my / scale.value * (change - 1);
|
|
62
85
|
scale.value = newScale;
|
|
63
|
-
|
|
86
|
+
constrain();
|
|
64
87
|
};
|
|
65
|
-
const startDrag = (
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
88
|
+
const startDrag = (e) => {
|
|
89
|
+
if (e.type === "mousedown") e.preventDefault();
|
|
90
|
+
isDragging.value = true;
|
|
91
|
+
let [x, y] = getXY(e);
|
|
92
|
+
const handleMove = scale.value > 1 ? (e2) => {
|
|
93
|
+
if (!isDragging.value) return;
|
|
94
|
+
if (e2.type === "touchmove") e2.preventDefault();
|
|
95
|
+
const [cx, cy] = getXY(e2);
|
|
96
|
+
pos.value.x += (cx - x) / scale.value;
|
|
97
|
+
pos.value.y += (cy - y) / scale.value;
|
|
98
|
+
constrain();
|
|
99
|
+
[x, y] = [cx, cy];
|
|
100
|
+
} : (e2) => {
|
|
101
|
+
if (!isDragging.value) return;
|
|
102
|
+
if (e2.type === "touchmove") e2.preventDefault();
|
|
103
|
+
dragX = getXY(e2)[0] - startX;
|
|
104
|
+
translateX.value = dragX - currentIndex.value * window.innerWidth;
|
|
83
105
|
};
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
106
|
+
const handleEnd = () => {
|
|
107
|
+
isDragging.value = false;
|
|
108
|
+
if (scale.value <= 1 && Math.abs(dragX) > window.innerWidth / 4) {
|
|
109
|
+
goTo(Math.max(0, Math.min(photos.value.length - 1, currentIndex.value + (dragX > 0 ? -1 : 1))));
|
|
110
|
+
} else if (scale.value <= 1) {
|
|
111
|
+
goTo(currentIndex.value);
|
|
112
|
+
}
|
|
113
|
+
dragX = 0;
|
|
114
|
+
document.removeEventListener("mousemove", handleMove, { passive: true });
|
|
115
|
+
document.removeEventListener("mouseup", handleEnd, { passive: true });
|
|
116
|
+
document.removeEventListener("touchmove", handleMove, { passive: false });
|
|
117
|
+
document.removeEventListener("touchend", handleEnd, { passive: true });
|
|
90
118
|
};
|
|
91
|
-
|
|
92
|
-
document.addEventListener("
|
|
93
|
-
document.addEventListener("
|
|
94
|
-
document.addEventListener("
|
|
119
|
+
if (scale.value <= 1) startX = x;
|
|
120
|
+
document.addEventListener("mousemove", handleMove, { passive: true });
|
|
121
|
+
document.addEventListener("mouseup", handleEnd, { passive: true });
|
|
122
|
+
document.addEventListener("touchmove", handleMove, { passive: false });
|
|
123
|
+
document.addEventListener("touchend", handleEnd, { passive: true });
|
|
95
124
|
};
|
|
96
|
-
const handleTouchStart = (
|
|
97
|
-
if (
|
|
98
|
-
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
startDistance.value = Math.sqrt(distanceX ** 2 + distanceY ** 2);
|
|
103
|
-
startScale.value = scale.value;
|
|
125
|
+
const handleTouchStart = (e) => {
|
|
126
|
+
if (e.touches.length === 2) {
|
|
127
|
+
clearTimeout(dragTimer);
|
|
128
|
+
const [t1, t2] = e.touches;
|
|
129
|
+
startDist = Math.hypot(t1.clientX - t2.clientX, t1.clientY - t2.clientY);
|
|
130
|
+
startScale = scale.value;
|
|
104
131
|
} else {
|
|
105
|
-
startDrag(
|
|
132
|
+
dragTimer = setTimeout(() => startDrag(e), 50);
|
|
106
133
|
}
|
|
107
134
|
};
|
|
108
|
-
const handleTouchMove = (
|
|
109
|
-
if (
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
const
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
const newDistance = Math.sqrt(distanceX ** 2 + distanceY ** 2);
|
|
116
|
-
const scaleFactor = newDistance / startDistance.value;
|
|
117
|
-
const centerX = (touch1.clientX + touch2.clientX) / 2;
|
|
118
|
-
const centerY = (touch1.clientY + touch2.clientY) / 2;
|
|
119
|
-
const rect = image.value.getBoundingClientRect();
|
|
120
|
-
const touchCenterX = centerX - rect.left - rect.width / 2;
|
|
121
|
-
const touchCenterY = centerY - rect.top - rect.height / 2;
|
|
122
|
-
const newScale = Math.min(Math.max(1, startScale.value * scaleFactor), 3);
|
|
123
|
-
const scaleChange = newScale / scale.value;
|
|
124
|
-
position.x = position.x - touchCenterX / scale.value * (scaleChange - 1);
|
|
125
|
-
position.y = position.y - touchCenterY / scale.value * (scaleChange - 1);
|
|
126
|
-
scale.value = newScale;
|
|
127
|
-
constrainPosition();
|
|
135
|
+
const handleTouchMove = (e) => {
|
|
136
|
+
if (e.touches.length === 2 && !isDragging.value) {
|
|
137
|
+
clearTimeout(dragTimer);
|
|
138
|
+
e.preventDefault();
|
|
139
|
+
const [t1, t2] = e.touches;
|
|
140
|
+
const dist = Math.hypot(t1.clientX - t2.clientX, t1.clientY - t2.clientY);
|
|
141
|
+
zoom(startScale * (dist / startDist), (t1.clientX + t2.clientX) / 2, (t1.clientY + t2.clientY) / 2);
|
|
128
142
|
}
|
|
129
143
|
};
|
|
130
|
-
const handleTouchEnd = (
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}
|
|
144
|
+
const handleTouchEnd = () => {
|
|
145
|
+
clearTimeout(dragTimer);
|
|
146
|
+
startDist = 0;
|
|
134
147
|
};
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
position.y = 0;
|
|
148
|
+
const handleWheel = (e) => {
|
|
149
|
+
clearTimeout(wheelTimer);
|
|
150
|
+
wheelTimer = setTimeout(() => zoom(scale.value + (e.deltaY > 0 ? -0.1 : 0.1), e.clientX, e.clientY), 10);
|
|
139
151
|
};
|
|
140
|
-
const
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
position.y = 0;
|
|
144
|
-
return;
|
|
145
|
-
}
|
|
146
|
-
const { renderedWidth, renderedHeight, containerWidth, containerHeight } = getImageDimensions();
|
|
147
|
-
const scaledWidth = renderedWidth * scale.value;
|
|
148
|
-
const scaledHeight = renderedHeight * scale.value;
|
|
149
|
-
const horizontalOffset = (scaledWidth - containerWidth) / 2 / scale.value;
|
|
150
|
-
const verticalOffset = (scaledHeight - containerHeight) / 2 / scale.value;
|
|
151
|
-
if (horizontalOffset > 0) {
|
|
152
|
-
position.x = Math.max(-horizontalOffset, Math.min(horizontalOffset, position.x));
|
|
153
|
-
} else {
|
|
154
|
-
position.x = 0;
|
|
155
|
-
}
|
|
156
|
-
if (verticalOffset > 0) {
|
|
157
|
-
position.y = Math.max(-verticalOffset, Math.min(verticalOffset, position.y));
|
|
158
|
-
} else {
|
|
159
|
-
position.y = 0;
|
|
160
|
-
}
|
|
152
|
+
const handleKey = (e) => {
|
|
153
|
+
const dir = { ArrowLeft: -1, ArrowRight: 1 }[e.key];
|
|
154
|
+
if (dir) goTo(Math.max(0, Math.min(photos.value.length - 1, currentIndex.value + dir)));
|
|
161
155
|
};
|
|
156
|
+
watch(() => props.initialIndex, (i) => i != null && jumpTo(i));
|
|
162
157
|
onMounted(() => {
|
|
163
|
-
window.addEventListener("
|
|
164
|
-
|
|
165
|
-
|
|
158
|
+
window.addEventListener("keydown", handleKey, { passive: true });
|
|
159
|
+
jumpTo(props.initialIndex || 0);
|
|
160
|
+
});
|
|
161
|
+
onBeforeUnmount(() => {
|
|
162
|
+
window.removeEventListener("keydown", handleKey);
|
|
163
|
+
clearTimeout(wheelTimer);
|
|
164
|
+
clearTimeout(dragTimer);
|
|
166
165
|
});
|
|
167
166
|
return (_ctx, _cache) => {
|
|
168
167
|
return openBlock(), createElementBlock("div", {
|
|
169
|
-
class: "photo-
|
|
170
|
-
onWheel: handleWheel,
|
|
171
|
-
onMousedown: startDrag,
|
|
172
|
-
onTouchstart: handleTouchStart,
|
|
173
|
-
onTouchmove: handleTouchMove,
|
|
174
|
-
onTouchend: handleTouchEnd
|
|
168
|
+
class: "photo-viewer",
|
|
169
|
+
onWheel: withModifiers(handleWheel, ["prevent"])
|
|
175
170
|
}, [
|
|
176
|
-
createElementVNode("
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
},
|
|
171
|
+
createElementVNode("div", {
|
|
172
|
+
class: "slider-track",
|
|
173
|
+
style: normalizeStyle(sliderStyle.value),
|
|
174
|
+
onMousedown: startDrag,
|
|
175
|
+
onTouchstart: handleTouchStart,
|
|
176
|
+
onTouchmove: handleTouchMove,
|
|
177
|
+
onTouchend: handleTouchEnd
|
|
178
|
+
}, [
|
|
179
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(photos.value, (photo, index) => {
|
|
180
|
+
return openBlock(), createElementBlock("div", {
|
|
181
|
+
key: index,
|
|
182
|
+
class: "slide"
|
|
183
|
+
}, [
|
|
184
|
+
createElementVNode("img", {
|
|
185
|
+
src: photo,
|
|
186
|
+
style: normalizeStyle(index === currentIndex.value ? imgStyle.value : null),
|
|
187
|
+
ref_for: true,
|
|
188
|
+
ref: (el) => index === currentIndex.value && (image.value = el),
|
|
189
|
+
onLoad: () => index === currentIndex.value && reset()
|
|
190
|
+
}, null, 44, _hoisted_1)
|
|
191
|
+
]);
|
|
192
|
+
}), 128))
|
|
193
|
+
], 36),
|
|
194
|
+
photos.value.length > 1 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
195
|
+
createElementVNode("span", _hoisted_2, toDisplayString(currentIndex.value + 1) + " / " + toDisplayString(photos.value.length), 1),
|
|
196
|
+
currentIndex.value > 0 ? (openBlock(), createElementBlock("button", {
|
|
197
|
+
key: 0,
|
|
198
|
+
onClick: _cache[0] || (_cache[0] = ($event) => goTo(currentIndex.value - 1)),
|
|
199
|
+
class: "cursor-pointer hover-scale-1 bs-small pos-absolute pos-t-50 pos-l-small bg-white radius-small pd-thin"
|
|
200
|
+
}, [
|
|
201
|
+
createVNode(IconChevronLeft, {
|
|
202
|
+
fill: "rgb(var(--black)",
|
|
203
|
+
class: "i-medium"
|
|
204
|
+
})
|
|
205
|
+
])) : createCommentVNode("", true),
|
|
206
|
+
currentIndex.value < photos.value.length - 1 ? (openBlock(), createElementBlock("button", {
|
|
207
|
+
key: 1,
|
|
208
|
+
onClick: _cache[1] || (_cache[1] = ($event) => goTo(currentIndex.value + 1)),
|
|
209
|
+
class: "cursor-pointer hover-scale-1 bs-small pos-absolute pos-t-50 pos-r-small bg-white radius-small pd-thin"
|
|
210
|
+
}, [
|
|
211
|
+
createVNode(IconChevronRight, {
|
|
212
|
+
fill: "rgb(var(--black)",
|
|
213
|
+
class: "i-medium"
|
|
214
|
+
})
|
|
215
|
+
])) : createCommentVNode("", true),
|
|
216
|
+
createElementVNode("div", _hoisted_3, [
|
|
217
|
+
createElementVNode("div", {
|
|
218
|
+
class: "thumbnails",
|
|
219
|
+
ref_key: "thumbnailsRef",
|
|
220
|
+
ref: thumbnailsRef
|
|
221
|
+
}, [
|
|
222
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(photos.value, (photo, i) => {
|
|
223
|
+
return openBlock(), createElementBlock("img", {
|
|
224
|
+
key: i,
|
|
225
|
+
src: photo,
|
|
226
|
+
onClick: ($event) => jumpTo(i),
|
|
227
|
+
class: normalizeClass(["thumbnail", { active: i === currentIndex.value }]),
|
|
228
|
+
ref_for: true,
|
|
229
|
+
ref: (el) => i === currentIndex.value && scrollToThumb(el)
|
|
230
|
+
}, null, 10, _hoisted_4);
|
|
231
|
+
}), 128))
|
|
232
|
+
], 512)
|
|
233
|
+
])
|
|
234
|
+
], 64)) : createCommentVNode("", true)
|
|
184
235
|
], 32);
|
|
185
236
|
};
|
|
186
237
|
}
|
|
187
238
|
};
|
|
239
|
+
const PhotoViewer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-447a838c"]]);
|
|
188
240
|
export {
|
|
189
|
-
|
|
241
|
+
PhotoViewer as default
|
|
190
242
|
};
|
|
191
243
|
//# sourceMappingURL=PhotoViewer.vue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhotoViewer.vue.js","sources":["../../../../../src/components/PhotoViewer/PhotoViewer.vue"],"sourcesContent":["<template>\n <div class=\"photo-container\" @wheel=\"handleWheel\" @mousedown=\"startDrag\" @touchstart=\"handleTouchStart\" @touchmove=\"handleTouchMove\" @touchend=\"handleTouchEnd\">\n <img loading=\"lazy\" :src=\"photoUrl\" :style=\"imgStyle\" ref=\"image\" @load=\"initialize\" />\n </div>\n</template>\n<script setup>\nimport { ref, reactive, computed, onMounted, watch } from 'vue';\nconst props = defineProps({\n photoUrl: String,\n show: Boolean,\n});\nconst scale = ref(1);\nconst position = reactive({ x: 0, y: 0 });\nconst dragging = ref(false);\nconst startPosition = reactive({ x: 0, y: 0 });\nconst startScale = ref(1);\nconst startDistance = ref(0);\nconst image = ref(null);\nconst container = ref(null);\n\nconst imgStyle = computed(() => ({\n transform: `scale(${scale.value}) translate(${position.x}px, ${position.y}px)`,\n}));\n\n// Наблюдаем за изменением масштаба, чтобы ограничивать позицию\nwatch(scale, () => {\n constrainPosition();\n});\n\nconst getImageDimensions = () => {\n if (!image.value) return { width: 0, height: 0 };\n \n // Используем естественные размеры изображения\n const imgWidth = image.value.naturalWidth;\n const imgHeight = image.value.naturalHeight;\n \n // Получаем размеры контейнера\n const containerRect = image.value.parentElement?.getBoundingClientRect();\n if (!containerRect) return { width: 0, height: 0 };\n \n const containerWidth = containerRect.width;\n const containerHeight = containerRect.height;\n \n // Определяем, как изображение вписывается в контейнер (с учетом object-fit: scale-down)\n let renderedWidth, renderedHeight;\n \n if (imgWidth > containerWidth || imgHeight > containerHeight) {\n const ratioX = containerWidth / imgWidth;\n const ratioY = containerHeight / imgHeight;\n const ratio = Math.min(ratioX, ratioY);\n \n renderedWidth = imgWidth * ratio;\n renderedHeight = imgHeight * ratio;\n } else {\n renderedWidth = imgWidth;\n renderedHeight = imgHeight;\n }\n \n return {\n renderedWidth,\n renderedHeight,\n containerWidth,\n containerHeight\n };\n};\n\nconst handleWheel = (event) => {\n event.preventDefault();\n \n const delta = event.deltaY > 0 ? -0.1 : 0.1;\n const newScale = Math.min(Math.max(1, scale.value + delta), 3);\n \n // Рассчитываем позицию курсора относительно центра изображения\n const rect = image.value.getBoundingClientRect();\n const mouseX = event.clientX - rect.left - rect.width / 2;\n const mouseY = event.clientY - rect.top - rect.height / 2;\n \n // Сохраняем соотношение позиции курсора к изображению при масштабировании\n const scaleChange = newScale / scale.value;\n \n // Обновляем позицию так, чтобы точка под курсором оставалась на месте\n position.x = position.x - (mouseX / scale.value) * (scaleChange - 1);\n position.y = position.y - (mouseY / scale.value) * (scaleChange - 1);\n \n // Обновляем масштаб\n scale.value = newScale;\n \n // Ограничиваем позицию после обновления масштаба\n constrainPosition();\n};\n\nconst startDrag = (event) => {\n event.preventDefault();\n if (scale.value <= 1) return; // Не позволяем перетаскивать при масштабе 1\n \n dragging.value = true;\n startPosition.x = event.type === 'mousedown' ? event.clientX : event.touches[0].clientX;\n startPosition.y = event.type === 'mousedown' ? event.clientY : event.touches[0].clientY;\n \n const move = (moveEvent) => {\n if (dragging.value) {\n const currentX = moveEvent.type === 'mousemove' ? moveEvent.clientX : moveEvent.touches[0].clientX;\n const currentY = moveEvent.type === 'mousemove' ? moveEvent.clientY : moveEvent.touches[0].clientY;\n \n const deltaX = (currentX - startPosition.x) / scale.value;\n const deltaY = (currentY - startPosition.y) / scale.value;\n \n position.x += deltaX;\n position.y += deltaY;\n \n // Ограничиваем позицию после перемещения\n constrainPosition();\n \n startPosition.x = currentX;\n startPosition.y = currentY;\n }\n };\n \n const endDrag = () => {\n dragging.value = false;\n document.removeEventListener('mousemove', move);\n document.removeEventListener('mouseup', endDrag);\n document.removeEventListener('touchmove', move);\n document.removeEventListener('touchend', endDrag);\n };\n \n document.addEventListener('mousemove', move);\n document.addEventListener('mouseup', endDrag);\n document.addEventListener('touchmove', move);\n document.addEventListener('touchend', endDrag);\n};\n\nconst handleTouchStart = (event) => {\n if (event.touches.length === 2) {\n const touch1 = event.touches[0];\n const touch2 = event.touches[1];\n const distanceX = Math.abs(touch1.clientX - touch2.clientX);\n const distanceY = Math.abs(touch1.clientY - touch2.clientY);\n startDistance.value = Math.sqrt(distanceX ** 2 + distanceY ** 2);\n startScale.value = scale.value;\n } else {\n startDrag(event);\n }\n};\n\nconst handleTouchMove = (event) => {\n if (event.touches.length === 2) {\n event.preventDefault();\n const touch1 = event.touches[0];\n const touch2 = event.touches[1];\n const distanceX = Math.abs(touch1.clientX - touch2.clientX);\n const distanceY = Math.abs(touch1.clientY - touch2.clientY);\n const newDistance = Math.sqrt(distanceX ** 2 + distanceY ** 2);\n const scaleFactor = newDistance / startDistance.value;\n \n // Получаем центр между двумя касаниями\n const centerX = (touch1.clientX + touch2.clientX) / 2;\n const centerY = (touch1.clientY + touch2.clientY) / 2;\n \n // Получаем координаты центра касания относительно изображения\n const rect = image.value.getBoundingClientRect();\n const touchCenterX = centerX - rect.left - rect.width / 2;\n const touchCenterY = centerY - rect.top - rect.height / 2;\n \n const newScale = Math.min(Math.max(1, startScale.value * scaleFactor), 3);\n const scaleChange = newScale / scale.value;\n \n // Обновляем позицию, чтобы центр касания оставался на месте\n position.x = position.x - (touchCenterX / scale.value) * (scaleChange - 1);\n position.y = position.y - (touchCenterY / scale.value) * (scaleChange - 1);\n \n scale.value = newScale;\n constrainPosition();\n }\n};\n\nconst handleTouchEnd = (event) => {\n if (event.touches.length === 0) {\n startDistance.value = 0;\n }\n};\n\nconst initialize = () => {\n scale.value = 1;\n position.x = 0;\n position.y = 0;\n};\n\nconst constrainPosition = () => {\n // Если масштаб 1, сбрасываем позицию в центр\n if (scale.value <= 1) {\n position.x = 0;\n position.y = 0;\n return;\n }\n \n const { renderedWidth, renderedHeight, containerWidth, containerHeight } = getImageDimensions();\n \n // Вычисляем максимальное смещение\n const scaledWidth = renderedWidth * scale.value;\n const scaledHeight = renderedHeight * scale.value;\n \n // Отступ от края изображения до края контейнера при текущем масштабе\n const horizontalOffset = (scaledWidth - containerWidth) / 2 / scale.value;\n const verticalOffset = (scaledHeight - containerHeight) / 2 / scale.value;\n \n // Ограничиваем смещение, чтобы изображение не выходило за пределы контейнера\n if (horizontalOffset > 0) {\n position.x = Math.max(-horizontalOffset, Math.min(horizontalOffset, position.x));\n } else {\n position.x = 0;\n }\n \n if (verticalOffset > 0) {\n position.y = Math.max(-verticalOffset, Math.min(verticalOffset, position.y));\n } else {\n position.y = 0;\n }\n};\n\nonMounted(() => {\n window.addEventListener('resize', () => {\n constrainPosition();\n });\n});\n</script>\n<style>\n.photo-container {\n width: 100%;\n height: 100%;\n background: black;\n overflow: hidden;\n position: relative;\n cursor: grab;\n}\n.photo-container img {\n width: 100%;\n height: 100%;\n object-fit: scale-down;\n transition: transform 0.05s;\n transform-origin: center center;\n}\n</style>"],"names":[],"mappings":";;;;;;;;;;AAWA,UAAM,QAAQ,IAAI,CAAC;AACnB,UAAM,WAAW,SAAS,EAAE,GAAG,GAAG,GAAG,GAAG;AACxC,UAAM,WAAW,IAAI,KAAK;AAC1B,UAAM,gBAAgB,SAAS,EAAE,GAAG,GAAG,GAAG,GAAG;AAC7C,UAAM,aAAa,IAAI,CAAC;AACxB,UAAM,gBAAgB,IAAI,CAAC;AAC3B,UAAM,QAAQ,IAAI,IAAI;AACJ,QAAI,IAAI;AAE1B,UAAM,WAAW,SAAS,OAAO;AAAA,MAC/B,WAAW,SAAS,MAAM,KAAK,eAAe,SAAS,CAAC,OAAO,SAAS,CAAC;AAAA,IAC3E,EAAE;AAGF,UAAM,OAAO,MAAM;AACjB,wBAAmB;AAAA,IACrB,CAAC;AAED,UAAM,qBAAqB,MAAM;;AAC/B,UAAI,CAAC,MAAM,MAAO,QAAO,EAAE,OAAO,GAAG,QAAQ,EAAG;AAGhD,YAAM,WAAW,MAAM,MAAM;AAC7B,YAAM,YAAY,MAAM,MAAM;AAG9B,YAAM,iBAAgB,WAAM,MAAM,kBAAZ,mBAA2B;AACjD,UAAI,CAAC,cAAe,QAAO,EAAE,OAAO,GAAG,QAAQ,EAAG;AAElD,YAAM,iBAAiB,cAAc;AACrC,YAAM,kBAAkB,cAAc;AAGtC,UAAI,eAAe;AAEnB,UAAI,WAAW,kBAAkB,YAAY,iBAAiB;AAC5D,cAAM,SAAS,iBAAiB;AAChC,cAAM,SAAS,kBAAkB;AACjC,cAAM,QAAQ,KAAK,IAAI,QAAQ,MAAM;AAErC,wBAAgB,WAAW;AAC3B,yBAAiB,YAAY;AAAA,MACjC,OAAS;AACL,wBAAgB;AAChB,yBAAiB;AA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L,iBAAS,IAAI;AAAA,MACjB;AAAA,IACA;AAEA,cAAU,MAAM;AACd,aAAO,iBAAiB,UAAU,MAAM;AACtC,0BAAmB;AAAA,MACvB,CAAG;AAAA,IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"PhotoViewer.vue.js","sources":["../../../../../src/components/PhotoViewer/PhotoViewer.vue"],"sourcesContent":["<script setup>\n import { ref, computed, onMounted, onBeforeUnmount, watch } from 'vue';\n\n import IconChevronLeft from '@martyrs/src/modules/icons/navigation/IconChevronLeft.vue';\n import IconChevronRight from '@martyrs/src/modules/icons/navigation/IconChevronRight.vue';\n\n const props = defineProps({\n photoUrl: String,\n photos: Array,\n initialIndex: Number,\n show: Boolean,\n });\n\n const currentIndex = ref(0);\n const translateX = ref(0);\n const isDragging = ref(false);\n const scale = ref(1);\n const pos = ref({ x: 0, y: 0 });\n const image = ref(null);\n const thumbnailsRef = ref(null);\n\n let startX = 0, startDist = 0, startScale = 1, dragX = 0, wheelTimer, dragTimer;\n\n const photos = computed(() => props.photos?.length ? props.photos : props.photoUrl ? [props.photoUrl] : []);\n\n const sliderStyle = computed(() => ({\n transform: `translate3d(${translateX.value}px, 0, 0)`,\n transition: isDragging.value ? 'none' : 'transform 0.3s',\n backfaceVisibility: 'hidden'\n }));\n\n const imgStyle = computed(() => ({\n transform: `scale3d(${scale.value}, ${scale.value}, 1) translate3d(${pos.value.x}px, ${pos.value.y}px, 0)`,\n backfaceVisibility: 'hidden'\n }));\n\n const reset = () => {\n scale.value = 1;\n pos.value = { x: 0, y: 0 };\n };\n\n const goTo = (index) => {\n currentIndex.value = index;\n translateX.value = -index * window.innerWidth;\n reset();\n };\n\n const jumpTo = (index) => {\n isDragging.value = true;\n goTo(index);\n requestAnimationFrame(() => isDragging.value = false);\n };\n\n const scrollToThumb = (el) => {\n if (el && thumbnailsRef.value) {\n const container = thumbnailsRef.value;\n const thumb = el;\n const left = thumb.offsetLeft - container.offsetWidth / 2 + thumb.offsetWidth / 2;\n container.scrollTo({ left, behavior: 'smooth' });\n }\n };\n\n const getXY = (e) => {\n const t = e.touches?.[0] || e;\n return [t.clientX, t.clientY];\n };\n\n const constrain = () => {\n if (scale.value <= 1 || !image.value) return reset();\n \n const { naturalWidth: nw, naturalHeight: nh } = image.value;\n const [cw, ch] = [window.innerWidth, window.innerHeight];\n const r = Math.min(cw / nw, ch / nh, 1);\n \n const maxX = Math.max(0, (nw * r * scale.value - cw) / 2 / scale.value);\n const maxY = Math.max(0, (nh * r * scale.value - ch) / 2 / scale.value);\n \n pos.value.x = Math.max(-maxX, Math.min(maxX, pos.value.x));\n pos.value.y = Math.max(-maxY, Math.min(maxY, pos.value.y));\n };\n\n const zoom = (newScale, fx, fy) => {\n if (!image.value) return;\n \n newScale = Math.max(1, Math.min(3, newScale));\n const rect = image.value.getBoundingClientRect();\n const [mx, my] = [fx - rect.left - rect.width / 2, fy - rect.top - rect.height / 2];\n const change = newScale / scale.value;\n \n pos.value.x -= (mx / scale.value) * (change - 1);\n pos.value.y -= (my / scale.value) * (change - 1);\n scale.value = newScale;\n constrain();\n };\n\n const startDrag = (e) => {\n if (e.type === 'mousedown') e.preventDefault();\n isDragging.value = true;\n let [x, y] = getXY(e);\n \n const handleMove = scale.value > 1\n ? (e) => {\n if (!isDragging.value) return;\n if (e.type === 'touchmove') e.preventDefault();\n const [cx, cy] = getXY(e);\n pos.value.x += (cx - x) / scale.value;\n pos.value.y += (cy - y) / scale.value;\n constrain();\n [x, y] = [cx, cy];\n }\n : (e) => {\n if (!isDragging.value) return;\n if (e.type === 'touchmove') e.preventDefault();\n dragX = getXY(e)[0] - startX;\n translateX.value = dragX - currentIndex.value * window.innerWidth;\n };\n \n const handleEnd = () => {\n isDragging.value = false;\n if (scale.value <= 1 && Math.abs(dragX) > window.innerWidth / 4) {\n goTo(Math.max(0, Math.min(photos.value.length - 1, currentIndex.value + (dragX > 0 ? -1 : 1))));\n } else if (scale.value <= 1) {\n goTo(currentIndex.value);\n }\n dragX = 0;\n document.removeEventListener('mousemove', handleMove, { passive: true });\n document.removeEventListener('mouseup', handleEnd, { passive: true });\n document.removeEventListener('touchmove', handleMove, { passive: false });\n document.removeEventListener('touchend', handleEnd, { passive: true });\n };\n \n if (scale.value <= 1) startX = x;\n document.addEventListener('mousemove', handleMove, { passive: true });\n document.addEventListener('mouseup', handleEnd, { passive: true });\n document.addEventListener('touchmove', handleMove, { passive: false });\n document.addEventListener('touchend', handleEnd, { passive: true });\n };\n\n const handleTouchStart = (e) => {\n if (e.touches.length === 2) {\n clearTimeout(dragTimer);\n const [t1, t2] = e.touches;\n startDist = Math.hypot(t1.clientX - t2.clientX, t1.clientY - t2.clientY);\n startScale = scale.value;\n } else {\n dragTimer = setTimeout(() => startDrag(e), 50);\n }\n };\n\n const handleTouchMove = (e) => {\n if (e.touches.length === 2 && !isDragging.value) {\n clearTimeout(dragTimer);\n e.preventDefault();\n const [t1, t2] = e.touches;\n const dist = Math.hypot(t1.clientX - t2.clientX, t1.clientY - t2.clientY);\n zoom(startScale * (dist / startDist), (t1.clientX + t2.clientX) / 2, (t1.clientY + t2.clientY) / 2);\n }\n };\n\n const handleTouchEnd = () => {\n clearTimeout(dragTimer);\n startDist = 0;\n };\n\n const handleWheel = (e) => {\n clearTimeout(wheelTimer);\n wheelTimer = setTimeout(() => zoom(scale.value + (e.deltaY > 0 ? -0.1 : 0.1), e.clientX, e.clientY), 10);\n };\n\n const handleKey = (e) => {\n const dir = { ArrowLeft: -1, ArrowRight: 1 }[e.key];\n if (dir) goTo(Math.max(0, Math.min(photos.value.length - 1, currentIndex.value + dir)));\n };\n\n watch(() => props.initialIndex, (i) => i != null && jumpTo(i));\n\n onMounted(() => {\n window.addEventListener('keydown', handleKey, { passive: true });\n jumpTo(props.initialIndex || 0);\n });\n\n onBeforeUnmount(() => {\n window.removeEventListener('keydown', handleKey);\n clearTimeout(wheelTimer);\n clearTimeout(dragTimer);\n });\n</script>\n\n<template>\n <div class=\"photo-viewer\" @wheel.prevent=\"handleWheel\">\n <div \n class=\"slider-track\" \n :style=\"sliderStyle\"\n @mousedown=\"startDrag\" \n @touchstart=\"handleTouchStart\"\n @touchmove=\"handleTouchMove\"\n @touchend=\"handleTouchEnd\"\n >\n <div \n v-for=\"(photo, index) in photos\" \n :key=\"index\"\n class=\"slide\"\n >\n <img \n :src=\"photo\" \n :style=\"index === currentIndex ? imgStyle : null\"\n :ref=\"el => index === currentIndex && (image = el)\"\n @load=\"() => index === currentIndex && reset()\" \n />\n </div>\n </div>\n \n <template \n v-if=\"photos.length > 1\"\n >\n\n <span class=\"pos-absolute pos-l-small bs-small pos-t-small radius-small pd-thin bg-white t-black t-medium\">\n {{ currentIndex + 1 }} / {{ photos.length }}\n </span>\n \n <button \n v-if=\"currentIndex > 0\" \n @click=\"goTo(currentIndex - 1)\" \n class=\"cursor-pointer hover-scale-1 bs-small pos-absolute pos-t-50 pos-l-small bg-white radius-small pd-thin\"\n >\n <IconChevronLeft fill=\"rgb(var(--black)\" class=\"i-medium\"/>\n </button>\n\n <button \n v-if=\"currentIndex < photos.length - 1\" \n @click=\"goTo(currentIndex + 1)\" \n class=\"cursor-pointer hover-scale-1 bs-small pos-absolute pos-t-50 pos-r-small bg-white radius-small pd-thin\"\n >\n <IconChevronRight fill=\"rgb(var(--black)\" class=\"i-medium\"/>\n </button>\n \n <div class=\"pos-absolute pos-b-small radius-small pd-thin bg-light thumbnails-container\">\n <div class=\"thumbnails\" ref=\"thumbnailsRef\">\n <img \n v-for=\"(photo, i) in photos\" \n :key=\"i\"\n :src=\"photo\"\n @click=\"jumpTo(i)\"\n :class=\"['thumbnail', { active: i === currentIndex }]\"\n :ref=\"el => i === currentIndex && scrollToThumb(el)\" \n />\n </div>\n </div>\n </template>\n\n </div>\n</template>\n\n<style scoped>\n.photo-viewer {\n width: 100%;\n height: 100%;\n position: relative;\n background: #fff;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n}\n\n.slider-track {\n display: flex;\n height: 100%;\n cursor: grab;\n backface-visibility: hidden;\n}\n\n.slider-track:active {\n cursor: grabbing;\n}\n\n.slide {\n flex: 0 0 100%;\n width: 100%;\n height: 100%;\n overflow: hidden;\n}\n\n.slide img {\n width: 100%;\n height: 100%;\n object-fit: scale-down;\n transform-origin: center;\n pointer-events: none;\n backface-visibility: hidden;\n}\n\n.thumbnails-container {\n left: 50%;\n transform: translateX(-50%);\n max-width: 100%;\n z-index: 1;\n}\n\n.thumbnails {\n display: flex;\n gap: 0.25rem;\n overflow-x: auto;\n scrollbar-width: none;\n}\n\n.thumbnails::-webkit-scrollbar {\n display: none;\n}\n\n.thumbnail {\n width: 4rem;\n height: 4rem;\n object-fit: cover;\n cursor: pointer;\n transition: opacity 0.2s;\n border-radius: 0.25rem;\n flex-shrink: 0;\n}\n\n.thumbnail.active {\n opacity: 1;\n border: 1px solid rgb(var(--second));\n}\n\n\n@media (max-width: 768px) {\n .nav-arrow { display: none; }\n .thumbnail { width: 3rem; height: 3rem; }\n}\n</style>"],"names":["e"],"mappings":";;;;;;;;;;;;;;;;;AAME,UAAM,QAAQ;AAOd,UAAM,eAAe,IAAI,CAAC;AAC1B,UAAM,aAAa,IAAI,CAAC;AACxB,UAAM,aAAa,IAAI,KAAK;AAC5B,UAAM,QAAQ,IAAI,CAAC;AACnB,UAAM,MAAM,IAAI,EAAE,GAAG,GAAG,GAAG,GAAG;AAC9B,UAAM,QAAQ,IAAI,IAAI;AACtB,UAAM,gBAAgB,IAAI,IAAI;AAE9B,QAAI,SAAS,GAAG,YAAY,GAAG,aAAa,GAAG,QAAQ,GAAG,YAAY;AAEtE,UAAM,SAAS,SAAS,MAAM;;AAAA,0BAAM,WAAN,mBAAc,UAAS,MAAM,SAAS,MAAM,WAAW,CAAC,MAAM,QAAQ,IAAI,CAAA;AAAA,KAAE;AAE1G,UAAM,cAAc,SAAS,OAAO;AAAA,MAClC,WAAW,eAAe,WAAW,KAAK;AAAA,MAC1C,YAAY,WAAW,QAAQ,SAAS;AAAA,M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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -8,7 +8,7 @@ const _hoisted_2 = {
|
|
|
8
8
|
};
|
|
9
9
|
const _hoisted_3 = {
|
|
10
10
|
key: 0,
|
|
11
|
-
class: "mn-r-auto t-transp mn-r-small"
|
|
11
|
+
class: "mn-l-thin mn-r-auto t-transp mn-r-small"
|
|
12
12
|
};
|
|
13
13
|
const _hoisted_4 = ["name", "value", "checked"];
|
|
14
14
|
const _sfc_main = {
|
|
@@ -25,7 +25,7 @@ const _sfc_main = {
|
|
|
25
25
|
return (_ctx, _cache) => {
|
|
26
26
|
return vue.openBlock(), vue.createElementBlock("label", _hoisted_1, [
|
|
27
27
|
vue.createElementVNode("div", {
|
|
28
|
-
class: vue.normalizeClass(["cursor-pointer
|
|
28
|
+
class: vue.normalizeClass(["cursor-pointer radius-extra pd-micro h-100 aspect-1x1 pos-relative", {
|
|
29
29
|
"bg-main": __props.radio === __props.value
|
|
30
30
|
}])
|
|
31
31
|
}, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.vue.cjs","sources":["../../../../../src/components/Radio/Radio.vue"],"sourcesContent":["<template>\n <label class=\"flex-v-center flex-nowrap flex\">\n <!-- ////////////////////////// -->\n <!-- Checkmark -->\n <!-- ////////////////////////// -->\n <div \n class=\"cursor-pointer
|
|
1
|
+
{"version":3,"file":"Radio.vue.cjs","sources":["../../../../../src/components/Radio/Radio.vue"],"sourcesContent":["<template>\n <label class=\"flex-v-center flex-nowrap flex\">\n <!-- ////////////////////////// -->\n <!-- Checkmark -->\n <!-- ////////////////////////// -->\n <div \n class=\"cursor-pointer radius-extra pd-micro h-100 aspect-1x1 pos-relative\"\n :class=\"{\n 'bg-main': radio === value,\n }\"\n >\n <div \n class=\"radius-extra pd-micro w-100 h-100\"\n :class=\"{\n 'bg-white': radio === value,\n }\"\n >\n\n </div> \n\n <div \n v-if=\"radio !== value\"\n class=\"br-solid br-2px br-grey-transp-25 pos-absolute pos-t-0 pos-r-0 radius-extra w-100 h-100\"\n >\n\n </div> \n </div> \n <!-- ////////////////////////// -->\n <!-- Label -->\n <!-- ////////////////////////// -->\n\n <div v-if=\"label\" class=\"mn-l-thin mn-r-auto t-transp mn-r-small\">\n <span>{{label}}</span>\n </div>\n\n <!-- ////////////////////////// -->\n <!-- Input -->\n <!-- ////////////////////////// -->\n <input \n @input=\"event => text = emit('update:radio', event.target.value)\"\n class=\"round radiobutton\" \n type=\"checkbox\" \n :name=\"name\" \n :value=\"value\"\n :checked=\"value === radio\"\n >\n </label>\n</template>\n\n<script setup>\n const props = defineProps({\n label: String,\n name: String,\n value: false,\n radio: [Object, String]\n })\n\n const emit = defineEmits(['update:radio'])\n\n const updateInputText = () => {\n emit('update:radio', value)\n }\n</script>\n\n<style lang=\"scss\">\n</style>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAyDE,UAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -6,7 +6,7 @@ const _hoisted_2 = {
|
|
|
6
6
|
};
|
|
7
7
|
const _hoisted_3 = {
|
|
8
8
|
key: 0,
|
|
9
|
-
class: "mn-r-auto t-transp mn-r-small"
|
|
9
|
+
class: "mn-l-thin mn-r-auto t-transp mn-r-small"
|
|
10
10
|
};
|
|
11
11
|
const _hoisted_4 = ["name", "value", "checked"];
|
|
12
12
|
const _sfc_main = {
|
|
@@ -23,7 +23,7 @@ const _sfc_main = {
|
|
|
23
23
|
return (_ctx, _cache) => {
|
|
24
24
|
return openBlock(), createElementBlock("label", _hoisted_1, [
|
|
25
25
|
createElementVNode("div", {
|
|
26
|
-
class: normalizeClass(["cursor-pointer
|
|
26
|
+
class: normalizeClass(["cursor-pointer radius-extra pd-micro h-100 aspect-1x1 pos-relative", {
|
|
27
27
|
"bg-main": __props.radio === __props.value
|
|
28
28
|
}])
|
|
29
29
|
}, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.vue.js","sources":["../../../../../src/components/Radio/Radio.vue"],"sourcesContent":["<template>\n <label class=\"flex-v-center flex-nowrap flex\">\n <!-- ////////////////////////// -->\n <!-- Checkmark -->\n <!-- ////////////////////////// -->\n <div \n class=\"cursor-pointer
|
|
1
|
+
{"version":3,"file":"Radio.vue.js","sources":["../../../../../src/components/Radio/Radio.vue"],"sourcesContent":["<template>\n <label class=\"flex-v-center flex-nowrap flex\">\n <!-- ////////////////////////// -->\n <!-- Checkmark -->\n <!-- ////////////////////////// -->\n <div \n class=\"cursor-pointer radius-extra pd-micro h-100 aspect-1x1 pos-relative\"\n :class=\"{\n 'bg-main': radio === value,\n }\"\n >\n <div \n class=\"radius-extra pd-micro w-100 h-100\"\n :class=\"{\n 'bg-white': radio === value,\n }\"\n >\n\n </div> \n\n <div \n v-if=\"radio !== value\"\n class=\"br-solid br-2px br-grey-transp-25 pos-absolute pos-t-0 pos-r-0 radius-extra w-100 h-100\"\n >\n\n </div> \n </div> \n <!-- ////////////////////////// -->\n <!-- Label -->\n <!-- ////////////////////////// -->\n\n <div v-if=\"label\" class=\"mn-l-thin mn-r-auto t-transp mn-r-small\">\n <span>{{label}}</span>\n </div>\n\n <!-- ////////////////////////// -->\n <!-- Input -->\n <!-- ////////////////////////// -->\n <input \n @input=\"event => text = emit('update:radio', event.target.value)\"\n class=\"round radiobutton\" \n type=\"checkbox\" \n :name=\"name\" \n :value=\"value\"\n :checked=\"value === radio\"\n >\n </label>\n</template>\n\n<script setup>\n const props = defineProps({\n label: String,\n name: String,\n value: false,\n radio: [Object, String]\n })\n\n const emit = defineEmits(['update:radio'])\n\n const updateInputText = () => {\n emit('update:radio', value)\n }\n</script>\n\n<style lang=\"scss\">\n</style>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAyDE,UAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -64,7 +64,7 @@ const _sfc_main = {
|
|
|
64
64
|
});
|
|
65
65
|
return (_ctx, _cache) => {
|
|
66
66
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
67
|
-
class: vue.normalizeClass(["
|
|
67
|
+
class: vue.normalizeClass(["w-100 pos-relative", { "skeleton-wrapper--loading": __props.loading }])
|
|
68
68
|
}, [
|
|
69
69
|
hasDefaultSlot.value && !__props.structure.length ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }, void 0, true) : __props.structure.length ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
70
70
|
key: 1,
|
|
@@ -76,7 +76,8 @@ const _sfc_main = {
|
|
|
76
76
|
class: vue.normalizeClass(["skeleton-item", [
|
|
77
77
|
`skeleton-item--${item.block}`,
|
|
78
78
|
`skeleton-item--${item.size || "medium"}`,
|
|
79
|
-
{ "skeleton-item--rounded": item.rounded }
|
|
79
|
+
{ "skeleton-item--rounded": item.rounded },
|
|
80
|
+
item.class
|
|
80
81
|
]]),
|
|
81
82
|
style: vue.normalizeStyle(item.style)
|
|
82
83
|
}, null, 6);
|
|
@@ -90,6 +91,6 @@ const _sfc_main = {
|
|
|
90
91
|
};
|
|
91
92
|
}
|
|
92
93
|
};
|
|
93
|
-
const Skeleton = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
94
|
+
const Skeleton = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-b175ac0f"]]);
|
|
94
95
|
exports.default = Skeleton;
|
|
95
96
|
//# sourceMappingURL=Skeleton.vue.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.vue.cjs","sources":["../../../../../src/components/Skeleton/Skeleton.vue"],"sourcesContent":["<template>\n <div class=\"
|
|
1
|
+
{"version":3,"file":"Skeleton.vue.cjs","sources":["../../../../../src/components/Skeleton/Skeleton.vue"],"sourcesContent":["<template>\n <div class=\"w-100 pos-relative\" :class=\"{ 'skeleton-wrapper--loading': loading }\">\n <!-- Используем слот по умолчанию, если он есть -->\n <slot v-if=\"hasDefaultSlot && !structure.length\"></slot>\n \n <div \n v-else-if=\"structure.length\" \n class=\"skeleton-structure\"\n :class=\"{ 'skeleton-structure--horizontal': horizontal }\"\n >\n <div \n v-for=\"(item, index) in structure\" \n :key=\"index\" \n class=\"skeleton-item\"\n :class=\"[\n `skeleton-item--${item.block}`,\n `skeleton-item--${item.size || 'medium'}`,\n { 'skeleton-item--rounded': item.rounded },\n item.class\n ]\"\n :style=\"item.style\"\n />\n </div>\n \n <!-- Если слот пустой и структура не определена - показываем дефолтный скелетон -->\n <div v-else class=\"skeleton-default\">\n <div class=\"skeleton-item skeleton-item--text skeleton-item--small\"></div>\n <div class=\"skeleton-item skeleton-item--text skeleton-item--medium\"></div>\n <div class=\"skeleton-item skeleton-item--text skeleton-item--large\"></div>\n </div>\n </div>\n</template>\n\n<script setup>\nimport { ref, useSlots, computed, onMounted } from 'vue';\n\nconst slots = useSlots();\n\nconst props = defineProps({\n // Флаг загрузки, определяет, нужно ли показывать скелетон\n loading: {\n type: Boolean,\n default: false\n },\n // Структура скелетона, если не используется слот\n structure: {\n type: Array,\n default: () => []\n },\n // Горизонтальное расположение элементов (для карточек пользователей)\n horizontal: {\n type: Boolean,\n default: false\n },\n // Цвет фона карточки (светлый фон)\n cardColor: {\n type: String,\n default: 'rgb(var(--light))'\n },\n // Цвет блоков скелетона (серый)\n blockColor: {\n type: String,\n default: 'rgba(var(--white),0.25)'\n },\n // Цвет анимированной полосы (белый с прозрачностью)\n highlightColor: {\n type: String,\n default: 'rgba(var(--white), 0.9)'\n },\n // Скорость анимации в секундах\n animationDuration: {\n type: Number,\n default: 1.5\n },\n // Радиус закругления\n borderRadius: {\n type: String,\n default: '0.5rem'\n }\n});\n\n// Проверяем наличие слота по умолчанию\nconst hasDefaultSlot = computed(() => Boolean(slots.default));\n\n// Применяем CSS переменные для настройки стилей\nonMounted(() => {\n const root = document.documentElement;\n root.style.setProperty('--skeleton-card-color', props.cardColor);\n root.style.setProperty('--skeleton-block-color', props.blockColor);\n root.style.setProperty('--skeleton-highlight-color', props.highlightColor);\n root.style.setProperty('--skeleton-animation-duration', `${props.animationDuration}s`);\n root.style.setProperty('--skeleton-border-radius', props.borderRadius);\n});\n</script>\n\n<style scoped>\n/* Стили для режима загрузки */\n.skeleton-wrapper--loading ::v-deep(*) {\n color: transparent !important;\n border-color: transparent !important;\n position: relative;\n}\n\n.skeleton-wrapper--loading ::v-deep(img),\n.skeleton-wrapper--loading ::v-deep(svg),\n.skeleton-wrapper--loading ::v-deep(button),\n.skeleton-wrapper--loading ::v-deep(a) {\n opacity: 0;\n}\n\n.skeleton-wrapper--loading ::v-deep(*::before),\n.skeleton-wrapper--loading ::v-deep(*::after) {\n display: none !important;\n}\n\n.skeleton-wrapper--loading ::v-deep(*) {\n position: relative;\n background-color: var(--skeleton-block-color) !important;\n border-radius: var(--skeleton-border-radius);\n overflow: hidden;\n}\n\n.skeleton-wrapper--loading ::v-deep(*)::before {\n content: '';\n position: absolute;\n top: 0;\n left: -100%;\n width: 100%;\n height: 100%;\n display: block !important;\n animation: shimmer var(--skeleton-animation-duration) infinite;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n var(--skeleton-highlight-color) 50%,\n transparent 100%\n );\n}\n\n/* Стили для структурного скелетона */\n.skeleton-structure {\n display: flex;\n flex-direction: column;\n gap: 0.75rem;\n width: 100%;\n}\n\n/* Горизонтальный скелетон для карточек пользователей */\n.skeleton-structure--horizontal {\n flex-direction: row;\n align-items: center;\n flex-wrap: nowrap;\n}\n\n.skeleton-item {\n background-color: var(--skeleton-block-color);\n border-radius: var(--skeleton-border-radius);\n position: relative;\n overflow: hidden;\n}\n\n.skeleton-item::after {\n content: '';\n position: absolute;\n top: 0;\n left: -100%;\n width: 100%;\n height: 100%;\n animation: shimmer var(--skeleton-animation-duration) infinite;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n var(--skeleton-highlight-color) 50%,\n transparent 100%\n );\n}\n\n/* Типы блоков */\n.skeleton-item--text {\n height: 1rem;\n width: 100%;\n}\n\n.skeleton-item--text-group {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n flex: 1;\n}\n\n.skeleton-item--image {\n width: 100%;\n aspect-ratio: 16 / 9;\n}\n\n.skeleton-item--avatar {\n width: 4rem;\n height: 4rem;\n border-radius: 50%;\n flex-shrink: 0;\n}\n\n.skeleton-item--button {\n height: 3rem;\n width: 8rem;\n}\n\n.skeleton-item--circle {\n border-radius: 50%;\n}\n\n.skeleton-item--action {\n width: 2rem;\n height: 2rem;\n border-radius: 50%;\n flex-shrink: 0;\n}\n\n.skeleton-item--actions-group {\n display: flex;\n gap: 0.5rem;\n margin-left: auto;\n}\n\n.skeleton-item--square {\n aspect-ratio: 1 / 1;\n}\n\n/* Размеры */\n.skeleton-item--small {\n width: 30%;\n}\n\n.skeleton-item--medium {\n width: 60%;\n}\n\n.skeleton-item--large {\n width: 100%;\n}\n\n.skeleton-item--rounded {\n border-radius: 50%;\n}\n\n/* Дефолтный скелетон */\n.skeleton-default {\n display: flex;\n flex-direction: column;\n gap: 0.75rem;\n width: 100%;\n}\n\n/* Анимация движения полосы */\n@keyframes shimmer {\n 0% {\n left: -100%;\n }\n 100% {\n left: 100%;\n }\n}\n</style>"],"names":["useSlots","computed","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,UAAM,QAAQA,IAAAA,SAAU;AAExB,UAAM,QAAQ;AA4Cd,UAAM,iBAAiBC,IAAAA,SAAS,MAAM,QAAQ,MAAM,OAAO,CAAC;AAG5DC,QAAAA,UAAU,MAAM;AACd,YAAM,OAAO,SAAS;AACtB,WAAK,MAAM,YAAY,yBAAyB,MAAM,SAAS;AAC/D,WAAK,MAAM,YAAY,0BAA0B,MAAM,UAAU;AACjE,WAAK,MAAM,YAAY,8BAA8B,MAAM,cAAc;AACzE,WAAK,MAAM,YAAY,iCAAiC,GAAG,MAAM,iBAAiB,GAAG;AACrF,WAAK,MAAM,YAAY,4BAA4B,MAAM,YAAY;AAAA,IACvE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|