@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
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
// @martyrs/src/modules/globals/controllers/classes/abac/abac.adapter.express.js
|
|
2
|
+
export default class ABACExpressAdapter {
|
|
3
|
+
constructor(abac) {
|
|
4
|
+
this.abac = abac;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Основной middleware - разделен на составные части
|
|
9
|
+
*/
|
|
10
|
+
middleware(resource, action, options = {}) {
|
|
11
|
+
const middlewares = [];
|
|
12
|
+
|
|
13
|
+
// 1. Access control
|
|
14
|
+
middlewares.push(this._accessMiddleware(resource, action, options));
|
|
15
|
+
|
|
16
|
+
// 2. Field validation (если включена)
|
|
17
|
+
if (options.checkFields) {
|
|
18
|
+
middlewares.push(this._fieldsValidationMiddleware(resource, action, options));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return middlewares;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Middleware проверки доступа
|
|
26
|
+
* @private
|
|
27
|
+
*/
|
|
28
|
+
_accessMiddleware(resource, action, options = {}) {
|
|
29
|
+
return async (req, res, next) => {
|
|
30
|
+
try {
|
|
31
|
+
const context = this._buildContext(req, resource, action, options);
|
|
32
|
+
const accessResult = await this.abac.checkAccess(context, context.customPolicies);
|
|
33
|
+
|
|
34
|
+
if (!accessResult.allow) {
|
|
35
|
+
return this._sendAccessDenied(res, accessResult.reason);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Сохраняем результат для последующих middleware
|
|
39
|
+
req.abacContext = context;
|
|
40
|
+
req.abacAccessResult = accessResult;
|
|
41
|
+
next();
|
|
42
|
+
} catch (error) {
|
|
43
|
+
this.abac.logger?.error('ABAC middleware error', {
|
|
44
|
+
resource,
|
|
45
|
+
action,
|
|
46
|
+
error: error.message,
|
|
47
|
+
stack: error.stack
|
|
48
|
+
});
|
|
49
|
+
return this._sendError(res);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Middleware проверки полей
|
|
56
|
+
* @private
|
|
57
|
+
*/
|
|
58
|
+
_fieldsValidationMiddleware(resource, action, options = {}) {
|
|
59
|
+
return async (req, res, next) => {
|
|
60
|
+
try {
|
|
61
|
+
const context = req.abacContext || this._buildContext(req, resource, action, options);
|
|
62
|
+
const fieldsResult = await this.abac.checkFields(context, req.body, action);
|
|
63
|
+
|
|
64
|
+
if (fieldsResult.errors.length > 0 && options.strictFieldsMode) {
|
|
65
|
+
return this._sendFieldError(res, fieldsResult.errors);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Заменяем body отфильтрованными данными
|
|
69
|
+
req.body = fieldsResult.allowed;
|
|
70
|
+
req.abacFieldsResult = fieldsResult;
|
|
71
|
+
|
|
72
|
+
next();
|
|
73
|
+
} catch (error) {
|
|
74
|
+
this.abac.logger?.error('Fields middleware error', {
|
|
75
|
+
resource,
|
|
76
|
+
action,
|
|
77
|
+
error: error.message
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
if (options.passErrors) {
|
|
81
|
+
next(error);
|
|
82
|
+
} else {
|
|
83
|
+
return this._sendError(res);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Построение контекста
|
|
91
|
+
* @private
|
|
92
|
+
*/
|
|
93
|
+
_buildContext(req, resource, action, options = {}) {
|
|
94
|
+
return {
|
|
95
|
+
user: req.userId,
|
|
96
|
+
resource,
|
|
97
|
+
action,
|
|
98
|
+
req,
|
|
99
|
+
// НЕ смешиваем body и query - передаем структурированно
|
|
100
|
+
data: {
|
|
101
|
+
body: req.body || {},
|
|
102
|
+
query: req.query || {},
|
|
103
|
+
params: req.params || {}
|
|
104
|
+
},
|
|
105
|
+
params: req.params,
|
|
106
|
+
customPolicies: options.policies || {},
|
|
107
|
+
options
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Policy middleware
|
|
113
|
+
*/
|
|
114
|
+
policyMiddleware(policyNames = [], customPolicies = {}, options = {}) {
|
|
115
|
+
return async (req, res, next) => {
|
|
116
|
+
try {
|
|
117
|
+
const context = this._buildContext(
|
|
118
|
+
req,
|
|
119
|
+
options.resource || 'custom',
|
|
120
|
+
options.action || 'access',
|
|
121
|
+
options
|
|
122
|
+
);
|
|
123
|
+
|
|
124
|
+
const result = await this.abac.checkPolicies(context, policyNames, customPolicies);
|
|
125
|
+
|
|
126
|
+
if (!result.allow) {
|
|
127
|
+
return this._sendPolicyDenied(res, result.reason);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
req.abacPolicyResult = result;
|
|
131
|
+
next();
|
|
132
|
+
} catch (error) {
|
|
133
|
+
this.abac.logger?.error('Policy middleware error', {
|
|
134
|
+
policies: policyNames,
|
|
135
|
+
error: error.message
|
|
136
|
+
});
|
|
137
|
+
return this._sendError(res);
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Fields middleware для проверки/трансформации полей
|
|
144
|
+
*/
|
|
145
|
+
fieldsMiddleware(resource, options = {}) {
|
|
146
|
+
return async (req, res, next) => {
|
|
147
|
+
try {
|
|
148
|
+
// Определяем action из метода запроса
|
|
149
|
+
const action = options.action || this._getActionFromMethod(req.method);
|
|
150
|
+
const context = this._buildContext(req, resource, action, options);
|
|
151
|
+
|
|
152
|
+
// Определяем какие данные проверять
|
|
153
|
+
let dataToCheck = this._getDataToCheck(req, res, options);
|
|
154
|
+
|
|
155
|
+
const fieldsResult = await this.abac.checkFields(context, dataToCheck, action);
|
|
156
|
+
|
|
157
|
+
// Обработка ошибок
|
|
158
|
+
if (fieldsResult.errors.length > 0) {
|
|
159
|
+
if (options.strictMode) {
|
|
160
|
+
return this._sendFieldError(res, fieldsResult.errors);
|
|
161
|
+
}
|
|
162
|
+
// В нестрогом режиме логируем ошибки
|
|
163
|
+
this.abac.logger?.warn('Field validation errors', {
|
|
164
|
+
resource,
|
|
165
|
+
action,
|
|
166
|
+
errors: fieldsResult.errors
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// Применяем результаты
|
|
171
|
+
this._applyFieldsResult(req, res, options, fieldsResult);
|
|
172
|
+
|
|
173
|
+
// Сохраняем результат
|
|
174
|
+
req.abacFieldsResult = fieldsResult;
|
|
175
|
+
|
|
176
|
+
next();
|
|
177
|
+
} catch (error) {
|
|
178
|
+
this.abac.logger?.error('Fields middleware error', {
|
|
179
|
+
resource,
|
|
180
|
+
error: error.message
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
if (options.passErrors) {
|
|
184
|
+
next(error);
|
|
185
|
+
} else {
|
|
186
|
+
return this._sendError(res);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Получение action из HTTP метода
|
|
194
|
+
* @private
|
|
195
|
+
*/
|
|
196
|
+
_getActionFromMethod(method) {
|
|
197
|
+
const methodActionMap = {
|
|
198
|
+
'GET': 'read',
|
|
199
|
+
'POST': 'create',
|
|
200
|
+
'PUT': 'update',
|
|
201
|
+
'PATCH': 'update',
|
|
202
|
+
'DELETE': 'delete'
|
|
203
|
+
};
|
|
204
|
+
return methodActionMap[method] || 'access';
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Определение данных для проверки
|
|
209
|
+
* @private
|
|
210
|
+
*/
|
|
211
|
+
_getDataToCheck(req, res, options) {
|
|
212
|
+
if (req.method === 'GET' && options.checkQuery) {
|
|
213
|
+
return req.query;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
if (options.checkResponse && res.locals.data) {
|
|
217
|
+
return res.locals.data;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
return req.body;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Применение результатов проверки полей
|
|
225
|
+
* @private
|
|
226
|
+
*/
|
|
227
|
+
_applyFieldsResult(req, res, options, fieldsResult) {
|
|
228
|
+
if (req.method === 'GET' && options.checkQuery) {
|
|
229
|
+
req.query = fieldsResult.allowed;
|
|
230
|
+
} else if (options.checkResponse && res.locals.data) {
|
|
231
|
+
res.locals.data = fieldsResult.transformed || fieldsResult.allowed;
|
|
232
|
+
} else {
|
|
233
|
+
req.body = fieldsResult.allowed;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Отправка ошибок - унифицированные методы
|
|
239
|
+
* @private
|
|
240
|
+
*/
|
|
241
|
+
_sendAccessDenied(res, reason) {
|
|
242
|
+
return res.status(403).json({
|
|
243
|
+
error: {
|
|
244
|
+
code: 'ACCESS_DENIED',
|
|
245
|
+
message: reason
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
_sendPolicyDenied(res, reason) {
|
|
251
|
+
return res.status(403).json({
|
|
252
|
+
error: {
|
|
253
|
+
code: 'POLICY_DENIED',
|
|
254
|
+
message: reason
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
_sendFieldError(res, errors) {
|
|
260
|
+
return res.status(400).json({
|
|
261
|
+
error: {
|
|
262
|
+
code: 'FIELD_VALIDATION_ERROR',
|
|
263
|
+
fields: errors
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
_sendError(res) {
|
|
269
|
+
return res.status(500).json({
|
|
270
|
+
error: {
|
|
271
|
+
code: 'INTERNAL_ERROR',
|
|
272
|
+
message: 'Access control error'
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
}
|
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
// @martyrs/src/modules/globals/controllers/classes/abac/abac.fields.js
|
|
2
|
+
import _ from 'lodash';
|
|
3
|
+
|
|
4
|
+
export default class ABACFields {
|
|
5
|
+
constructor(abac) {
|
|
6
|
+
this.abac = abac;
|
|
7
|
+
this.configs = new Map();
|
|
8
|
+
this.compiledPatterns = new Map(); // Кэш скомпилированных паттернов
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Регистрация field policies
|
|
13
|
+
*/
|
|
14
|
+
registerFieldsPolicy(resourceName, config) {
|
|
15
|
+
const normalized = {};
|
|
16
|
+
|
|
17
|
+
for (const [pattern, conf] of Object.entries(config)) {
|
|
18
|
+
const { actions, ...baseSettings } = conf;
|
|
19
|
+
|
|
20
|
+
const base = {
|
|
21
|
+
actions: baseSettings.actions || '*',
|
|
22
|
+
access: baseSettings.access || 'allow',
|
|
23
|
+
validator: baseSettings.validator || null,
|
|
24
|
+
transform: baseSettings.transform || null,
|
|
25
|
+
rule: baseSettings.rule || 'remove',
|
|
26
|
+
force: baseSettings.force || false,
|
|
27
|
+
pattern
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
if (actions && typeof actions === 'object') {
|
|
31
|
+
normalized[pattern] = {
|
|
32
|
+
base,
|
|
33
|
+
actions: Object.entries(actions).reduce((acc, [action, override]) => {
|
|
34
|
+
acc[action] = { ...base, ...override };
|
|
35
|
+
return acc;
|
|
36
|
+
}, {})
|
|
37
|
+
};
|
|
38
|
+
} else {
|
|
39
|
+
normalized[pattern] = { base };
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
this.configs.set(resourceName, normalized);
|
|
44
|
+
// Очищаем кэш паттернов при изменении конфига
|
|
45
|
+
this.compiledPatterns.delete(resourceName);
|
|
46
|
+
return this;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Проверка доступа к полям
|
|
51
|
+
*/
|
|
52
|
+
async checkFields(context, data, action = null) {
|
|
53
|
+
const normalizedContext = this.abac.core.normalizeContext(context);
|
|
54
|
+
|
|
55
|
+
if (normalizedContext.skipFieldPolicies) {
|
|
56
|
+
return {
|
|
57
|
+
allowed: data,
|
|
58
|
+
denied: [],
|
|
59
|
+
errors: [],
|
|
60
|
+
transformed: data
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const { resource } = normalizedContext;
|
|
65
|
+
const fieldAction = action || normalizedContext.action;
|
|
66
|
+
const config = normalizedContext.options?.fieldsConfig || this.configs.get(resource);
|
|
67
|
+
|
|
68
|
+
if (!config) {
|
|
69
|
+
return { allowed: data, denied: [], errors: [], transformed: data };
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// Применяем расширения
|
|
73
|
+
await this._applyExtensions(normalizedContext);
|
|
74
|
+
|
|
75
|
+
// Используем structuredClone или lodash для безопасного клонирования
|
|
76
|
+
const result = {
|
|
77
|
+
allowed: this._deepClone(data),
|
|
78
|
+
denied: [],
|
|
79
|
+
errors: [],
|
|
80
|
+
transformed: null
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
// Собираем правила с учетом force
|
|
84
|
+
const rules = this._collectRulesOptimized(data, config, fieldAction, resource);
|
|
85
|
+
const forced = rules.filter(r => r.rule.force);
|
|
86
|
+
const regular = rules.filter(r => !r.rule.force);
|
|
87
|
+
|
|
88
|
+
// Set для отслеживания обработанных путей (БЫЛ БАГ!)
|
|
89
|
+
const processed = new Set();
|
|
90
|
+
|
|
91
|
+
// Применяем правила (сначала forced, потом обычные)
|
|
92
|
+
for (const { path, value, rule } of [...forced, ...regular]) {
|
|
93
|
+
// Пропускаем уже обработанные пути
|
|
94
|
+
if (processed.has(path)) continue;
|
|
95
|
+
processed.add(path);
|
|
96
|
+
|
|
97
|
+
// Проверка доступа
|
|
98
|
+
const hasAccess = await this._checkFieldAccess(
|
|
99
|
+
rule.access,
|
|
100
|
+
normalizedContext,
|
|
101
|
+
path,
|
|
102
|
+
value
|
|
103
|
+
);
|
|
104
|
+
|
|
105
|
+
if (!hasAccess) {
|
|
106
|
+
await this._handleDenied(result, path, rule.rule);
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// Валидация
|
|
111
|
+
if (rule.validator && rule.access !== 'optional') {
|
|
112
|
+
const validation = await this._validateField(
|
|
113
|
+
rule.validator,
|
|
114
|
+
value,
|
|
115
|
+
normalizedContext,
|
|
116
|
+
path
|
|
117
|
+
);
|
|
118
|
+
|
|
119
|
+
if (!validation.isValid) {
|
|
120
|
+
result.errors.push({ path, errors: validation.errors });
|
|
121
|
+
|
|
122
|
+
if (rule.rule === 'error') {
|
|
123
|
+
throw new Error(`Validation failed: ${path}`);
|
|
124
|
+
}
|
|
125
|
+
await this._handleDenied(result, path, rule.rule);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// Трансформация
|
|
131
|
+
result.transformed = this._deepClone(result.allowed);
|
|
132
|
+
|
|
133
|
+
for (const { path, value, rule } of [...forced, ...regular]) {
|
|
134
|
+
if (!rule.transform) continue;
|
|
135
|
+
|
|
136
|
+
const isDenied = result.denied.some(d => d.path === path);
|
|
137
|
+
if (isDenied) continue;
|
|
138
|
+
|
|
139
|
+
const transformed = await this._transformField(
|
|
140
|
+
rule.transform,
|
|
141
|
+
value,
|
|
142
|
+
normalizedContext,
|
|
143
|
+
path,
|
|
144
|
+
result.transformed
|
|
145
|
+
);
|
|
146
|
+
_.set(result.transformed, path, transformed);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
return result;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Применение расширений
|
|
154
|
+
* @private
|
|
155
|
+
*/
|
|
156
|
+
async _applyExtensions(context) {
|
|
157
|
+
if (!this.abac.policies || !this.abac.policies.priorities.extensions.length) {
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
for (const [name, extensionFn] of this.abac.policies.priorities.extensions) {
|
|
162
|
+
try {
|
|
163
|
+
await extensionFn(context);
|
|
164
|
+
} catch (error) {
|
|
165
|
+
this.abac.logger?.error('Extension error', { name, error });
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Безопасное клонирование
|
|
172
|
+
* @private
|
|
173
|
+
*/
|
|
174
|
+
_deepClone(obj) {
|
|
175
|
+
// Используем structuredClone если доступен (Node 17+)
|
|
176
|
+
if (typeof structuredClone === 'function') {
|
|
177
|
+
try {
|
|
178
|
+
return structuredClone(obj);
|
|
179
|
+
} catch (e) {
|
|
180
|
+
// Fallback для циклических ссылок
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
// Fallback на lodash
|
|
184
|
+
return _.cloneDeep(obj);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Оптимизированный сбор правил
|
|
189
|
+
* @private
|
|
190
|
+
*/
|
|
191
|
+
_collectRulesOptimized(data, config, action, resource) {
|
|
192
|
+
const rules = [];
|
|
193
|
+
|
|
194
|
+
// Компилируем паттерны если нужно
|
|
195
|
+
const compiledPatterns = this._getCompiledPatterns(resource, config);
|
|
196
|
+
|
|
197
|
+
// Проверяем есть ли паттерн "*" - если да, применяем его ко всем полям
|
|
198
|
+
const hasWildcard = compiledPatterns.has('*');
|
|
199
|
+
|
|
200
|
+
// Оптимизация: сначала собираем все пути
|
|
201
|
+
const dataPaths = this._extractPathsOptimized(data);
|
|
202
|
+
|
|
203
|
+
// Если есть wildcard, сразу добавляем правило для всех путей
|
|
204
|
+
if (hasWildcard) {
|
|
205
|
+
const wildcardConfig = config['*'];
|
|
206
|
+
const rule = this._getRuleForAction(wildcardConfig, action);
|
|
207
|
+
|
|
208
|
+
if (this._matchesAction(rule.actions, action)) {
|
|
209
|
+
for (const path of dataPaths) {
|
|
210
|
+
rules.push({
|
|
211
|
+
path,
|
|
212
|
+
value: _.get(data, path),
|
|
213
|
+
rule
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
// Если применили wildcard, можем не проверять другие паттерны
|
|
217
|
+
return rules;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
// Проверяем остальные паттерны
|
|
222
|
+
for (const path of dataPaths) {
|
|
223
|
+
for (const [pattern, matcher] of compiledPatterns) {
|
|
224
|
+
if (pattern === '*') continue; // Уже обработали
|
|
225
|
+
|
|
226
|
+
if (matcher(path)) {
|
|
227
|
+
const fieldConfig = config[pattern];
|
|
228
|
+
const rule = this._getRuleForAction(fieldConfig, action);
|
|
229
|
+
|
|
230
|
+
if (this._matchesAction(rule.actions, action)) {
|
|
231
|
+
rules.push({
|
|
232
|
+
path,
|
|
233
|
+
value: _.get(data, path),
|
|
234
|
+
rule
|
|
235
|
+
});
|
|
236
|
+
break; // Берем первое совпадение
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
return rules;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Получение скомпилированных паттернов
|
|
247
|
+
* @private
|
|
248
|
+
*/
|
|
249
|
+
_getCompiledPatterns(resource, config) {
|
|
250
|
+
if (!this.compiledPatterns.has(resource)) {
|
|
251
|
+
const compiled = new Map();
|
|
252
|
+
|
|
253
|
+
for (const pattern of Object.keys(config)) {
|
|
254
|
+
compiled.set(pattern, this._compilePattern(pattern));
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
this.compiledPatterns.set(resource, compiled);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
return this.compiledPatterns.get(resource);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Компиляция паттерна в функцию проверки
|
|
265
|
+
* @private
|
|
266
|
+
*/
|
|
267
|
+
_compilePattern(pattern) {
|
|
268
|
+
if (pattern === '*') return () => true;
|
|
269
|
+
|
|
270
|
+
// Преобразуем паттерн в регулярку
|
|
271
|
+
const escaped = pattern
|
|
272
|
+
.replace(/\./g, '\\.')
|
|
273
|
+
.replace(/\*\*/g, '.*')
|
|
274
|
+
.replace(/\*/g, '[^.]+')
|
|
275
|
+
.replace(/\[\*\]/g, '\\[\\d+\\]');
|
|
276
|
+
|
|
277
|
+
const regex = new RegExp(`^${escaped}$`);
|
|
278
|
+
|
|
279
|
+
return (path) => regex.test(path);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Оптимизированное извлечение путей
|
|
284
|
+
* @private
|
|
285
|
+
*/
|
|
286
|
+
_extractPathsOptimized(obj, prefix = '', paths = []) {
|
|
287
|
+
if (!obj || typeof obj !== 'object') return paths;
|
|
288
|
+
|
|
289
|
+
if (Array.isArray(obj)) {
|
|
290
|
+
obj.forEach((item, i) => {
|
|
291
|
+
const path = prefix ? `${prefix}[${i}]` : `[${i}]`;
|
|
292
|
+
paths.push(path);
|
|
293
|
+
this._extractPathsOptimized(item, path, paths);
|
|
294
|
+
});
|
|
295
|
+
} else {
|
|
296
|
+
for (const key in obj) {
|
|
297
|
+
if (obj.hasOwnProperty(key)) {
|
|
298
|
+
const path = prefix ? `${prefix}.${key}` : key;
|
|
299
|
+
paths.push(path);
|
|
300
|
+
|
|
301
|
+
if (obj[key] && typeof obj[key] === 'object') {
|
|
302
|
+
this._extractPathsOptimized(obj[key], path, paths);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
return paths;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Получение правила для действия
|
|
313
|
+
* @private
|
|
314
|
+
*/
|
|
315
|
+
_getRuleForAction(fieldConfig, action) {
|
|
316
|
+
if (fieldConfig.actions && fieldConfig.actions[action]) {
|
|
317
|
+
return fieldConfig.actions[action];
|
|
318
|
+
}
|
|
319
|
+
return fieldConfig.base;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Проверка доступа к полю
|
|
324
|
+
* @private
|
|
325
|
+
*/
|
|
326
|
+
async _checkFieldAccess(access, context, fieldPath, fieldValue) {
|
|
327
|
+
if (access === 'allow') return true;
|
|
328
|
+
if (access === 'deny') return false;
|
|
329
|
+
if (access === 'optional') return true;
|
|
330
|
+
|
|
331
|
+
if (typeof access === 'function') {
|
|
332
|
+
try {
|
|
333
|
+
return !!(await access(context, fieldPath, fieldValue));
|
|
334
|
+
} catch (e) {
|
|
335
|
+
this.abac.logger?.error('Field access check error', {
|
|
336
|
+
field: fieldPath,
|
|
337
|
+
error: e.message
|
|
338
|
+
});
|
|
339
|
+
return false;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
return true;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Валидация поля
|
|
348
|
+
* @private
|
|
349
|
+
*/
|
|
350
|
+
async _validateField(validator, value, context, fieldPath) {
|
|
351
|
+
if (typeof validator === 'function') {
|
|
352
|
+
try {
|
|
353
|
+
const result = await validator(value, context, fieldPath);
|
|
354
|
+
if (typeof result === 'boolean') {
|
|
355
|
+
return { isValid: result, errors: result ? [] : ['Validation failed'] };
|
|
356
|
+
}
|
|
357
|
+
return result;
|
|
358
|
+
} catch (e) {
|
|
359
|
+
return { isValid: false, errors: [e.message] };
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
if (validator && validator.validate) {
|
|
364
|
+
return validator.validate(value);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
return { isValid: true, errors: [] };
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Трансформация поля
|
|
372
|
+
* @private
|
|
373
|
+
*/
|
|
374
|
+
async _transformField(transform, value, context, fieldPath, currentData) {
|
|
375
|
+
try {
|
|
376
|
+
return await transform(value, context, fieldPath, currentData);
|
|
377
|
+
} catch (error) {
|
|
378
|
+
this.abac.logger?.error('Field transform error', {
|
|
379
|
+
field: fieldPath,
|
|
380
|
+
error: error.message
|
|
381
|
+
});
|
|
382
|
+
return value;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Обработка отказа
|
|
388
|
+
* @private
|
|
389
|
+
*/
|
|
390
|
+
async _handleDenied(result, path, rule) {
|
|
391
|
+
result.denied.push({ path, reason: rule });
|
|
392
|
+
|
|
393
|
+
if (rule === 'remove') {
|
|
394
|
+
_.unset(result.allowed, path);
|
|
395
|
+
} else if (rule === 'error') {
|
|
396
|
+
throw new Error(`Access denied: ${path}`);
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Проверка действия
|
|
402
|
+
* @private
|
|
403
|
+
*/
|
|
404
|
+
_matchesAction(actions, action) {
|
|
405
|
+
if (actions === '*') return true;
|
|
406
|
+
return Array.isArray(actions) ? actions.includes(action) : actions === action;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
// Публичные методы для управления конфигами
|
|
410
|
+
getConfig(resourceName) {
|
|
411
|
+
return this.configs.get(resourceName);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
hasConfig(resourceName) {
|
|
415
|
+
return this.configs.has(resourceName);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
removeConfig(resourceName) {
|
|
419
|
+
this.compiledPatterns.delete(resourceName);
|
|
420
|
+
return this.configs.delete(resourceName);
|
|
421
|
+
}
|
|
422
|
+
}
|