@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
|
@@ -7,10 +7,7 @@
|
|
|
7
7
|
{ 'bg-fourth-nano': validation },
|
|
8
8
|
{ disabled: disabled }
|
|
9
9
|
]"
|
|
10
|
-
:style="[
|
|
11
|
-
rootStyle,
|
|
12
|
-
styles
|
|
13
|
-
]"
|
|
10
|
+
:style="[rootStyle, styles]"
|
|
14
11
|
ref="rootElement"
|
|
15
12
|
class="vue3-reactive-tel-input"
|
|
16
13
|
>
|
|
@@ -19,30 +16,39 @@
|
|
|
19
16
|
:class="['vti__dropdown', { open: open }]"
|
|
20
17
|
:style="[dropdownStyle]"
|
|
21
18
|
:tabindex="dropdownOptions.tabindex"
|
|
22
|
-
@keydown="keyboardNav"
|
|
23
|
-
@click="toggleDropdown"
|
|
24
19
|
@keydown.esc="reset"
|
|
25
20
|
class="br-solid br-black-transp br-1px radius-thin"
|
|
26
21
|
>
|
|
27
|
-
<span class="flex-nowrap flex flex-v-center
|
|
22
|
+
<span class="flex-nowrap flex flex-v-center p-medium vti__selection">
|
|
28
23
|
<span v-if="dropdownOptions.showFlags" v-html="activeCountryFlag" class="mn-r-nano" />
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
24
|
+
|
|
25
|
+
<!-- Новый инпут для ввода кода страны -->
|
|
26
|
+
<input
|
|
27
|
+
v-if="dropdownOptions.showDialCodeInSelection"
|
|
28
|
+
v-model="dialCodeInput"
|
|
29
|
+
@input="onDialCodeInput"
|
|
30
|
+
@focus="openDropdown"
|
|
31
|
+
@blur="onDialCodeBlur"
|
|
32
|
+
@keydown="keyboardNav"
|
|
33
|
+
type="text"
|
|
34
|
+
class="vti__country-code-input"
|
|
35
|
+
:placeholder="`+${activeCountry?.dialCode || ''}`"
|
|
36
|
+
:disabled="disabled"
|
|
37
|
+
:size="Math.max((dialCodeInput?.length || 0) + 1, 3)"
|
|
38
|
+
maxlength="5"
|
|
39
|
+
/>
|
|
40
|
+
|
|
35
41
|
</span>
|
|
42
|
+
|
|
36
43
|
<ul
|
|
37
44
|
ref="list"
|
|
38
45
|
class="bs-black radius-small vti__dropdown-list"
|
|
39
46
|
v-show="open"
|
|
40
47
|
:class="dropdownOpenDirection"
|
|
41
48
|
:style="[listStyle]"
|
|
42
|
-
|
|
43
|
-
>
|
|
49
|
+
>
|
|
44
50
|
<li
|
|
45
|
-
v-for="(pb, index) in
|
|
51
|
+
v-for="(pb, index) in filteredAndSortedCountries"
|
|
46
52
|
class="flex-nowrap flex w-max"
|
|
47
53
|
:class="['vti__dropdown-item', getItemClass(index, pb.iso2)]"
|
|
48
54
|
:key="pb.iso2 + (pb.preferred ? '-preferred' : '')"
|
|
@@ -55,35 +61,34 @@
|
|
|
55
61
|
</li>
|
|
56
62
|
</ul>
|
|
57
63
|
</div>
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
<!-- </div> -->
|
|
85
|
-
|
|
64
|
+
|
|
65
|
+
<input
|
|
66
|
+
v-model="phone"
|
|
67
|
+
inputmode="numeric"
|
|
68
|
+
pattern="\d*"
|
|
69
|
+
ref="input"
|
|
70
|
+
:type="inputOptions.type"
|
|
71
|
+
:autocomplete="inputOptions.autocomplete"
|
|
72
|
+
:autofocus="inputOptions.autofocus"
|
|
73
|
+
:class="['vti__input', inputOptions.styleClasses, inputClass, Iclasses]"
|
|
74
|
+
:style="[inputStyle, Istyles]"
|
|
75
|
+
:disabled="disabled"
|
|
76
|
+
:id="inputId !== '' ? inputId : inputOptions.id"
|
|
77
|
+
:maxlength="inputOptions.maxlength"
|
|
78
|
+
:name="inputId !== '' ? inputId : inputOptions.name"
|
|
79
|
+
:placeholder="parsedPlaceholder"
|
|
80
|
+
:readonly="inputOptions.readonly"
|
|
81
|
+
:required="inputOptions.required"
|
|
82
|
+
:tabindex="inputOptions.tabindex"
|
|
83
|
+
@blur="onBlur"
|
|
84
|
+
@focus="onFocus"
|
|
85
|
+
@input="onInput"
|
|
86
|
+
@keyup.enter="onEnter"
|
|
87
|
+
@keyup.space="onSpace"
|
|
88
|
+
/>
|
|
89
|
+
<slot></slot>
|
|
86
90
|
</div>
|
|
91
|
+
|
|
87
92
|
<!-- Validation -->
|
|
88
93
|
<transition name="fade">
|
|
89
94
|
<div v-if="validation" class="mn-t-thin mn-b-thin invalid-feedback">
|
|
@@ -92,7 +97,6 @@
|
|
|
92
97
|
</transition>
|
|
93
98
|
</template>
|
|
94
99
|
|
|
95
|
-
|
|
96
100
|
<script setup>
|
|
97
101
|
import { ref, reactive, watch, computed, onMounted, nextTick } from 'vue';
|
|
98
102
|
import { parsePhoneNumberFromString } from 'libphonenumber-js';
|
|
@@ -103,65 +107,60 @@
|
|
|
103
107
|
let vClickOutside = clickOutside
|
|
104
108
|
|
|
105
109
|
const props = defineProps({
|
|
106
|
-
modelValue: { type: String, default: ''
|
|
107
|
-
badClass: { type: [String, Array, Object], default: ''
|
|
108
|
-
goodClass: { type: [String, Array, Object], default: ''
|
|
109
|
-
badStyle: { type: [String, Array, Object], default: ''
|
|
110
|
-
goodStyle: { type: [String, Array, Object], default: ''
|
|
111
|
-
badInputClass: { type: [String, Array, Object], default: ''
|
|
112
|
-
goodInputClass: { type: [String, Array, Object], default: ''
|
|
113
|
-
badInputStyle: { type: [String, Array, Object], default: ''
|
|
114
|
-
goodInputStyle: { type: [String, Array, Object], default: ''
|
|
115
|
-
allCountries: { type: Array, default: () => allCountries
|
|
116
|
-
autoFormat: { type: Boolean, default:
|
|
117
|
-
validation: { type: [Boolean, Object], default: false
|
|
118
|
-
customValidate: { type: [Boolean, RegExp], default:
|
|
119
|
-
defaultCountry: { type: String, default:
|
|
120
|
-
disabled: { type: Boolean, default:
|
|
121
|
-
autoDefaultCountry: { type: Boolean, default:
|
|
122
|
-
ignoredCountries: { type: Array, default: () => []
|
|
123
|
-
invalidMsg: { type: String, default:
|
|
124
|
-
mode: { type: String, default:
|
|
125
|
-
onlyCountries: { type: Array, default: () => []
|
|
126
|
-
preferredCountries: { type: Array, default: () => []
|
|
127
|
-
validCharactersOnly: { type: Boolean, default:
|
|
128
|
-
rootClass: { type: [String, Array, Object], default:
|
|
129
|
-
inputClass: { type: [String, Array, Object], default:
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
Placeholder: { type: [String, Object, Function], default: () => {return ''}, },
|
|
110
|
+
modelValue: { type: String, default: '' },
|
|
111
|
+
badClass: { type: [String, Array, Object], default: '' },
|
|
112
|
+
goodClass: { type: [String, Array, Object], default: '' },
|
|
113
|
+
badStyle: { type: [String, Array, Object], default: '' },
|
|
114
|
+
goodStyle: { type: [String, Array, Object], default: '' },
|
|
115
|
+
badInputClass: { type: [String, Array, Object], default: '' },
|
|
116
|
+
goodInputClass: { type: [String, Array, Object], default: '' },
|
|
117
|
+
badInputStyle: { type: [String, Array, Object], default: '' },
|
|
118
|
+
goodInputStyle: { type: [String, Array, Object], default: '' },
|
|
119
|
+
allCountries: { type: Array, default: () => allCountries },
|
|
120
|
+
autoFormat: { type: Boolean, default: true },
|
|
121
|
+
validation: { type: [Boolean, Object], default: false },
|
|
122
|
+
customValidate: { type: [Boolean, RegExp], default: false },
|
|
123
|
+
defaultCountry: { type: String, default: '' },
|
|
124
|
+
disabled: { type: Boolean, default: false },
|
|
125
|
+
autoDefaultCountry: { type: Boolean, default: true },
|
|
126
|
+
ignoredCountries: { type: Array, default: () => [] },
|
|
127
|
+
invalidMsg: { type: String, default: '' },
|
|
128
|
+
mode: { type: String, default: 'auto' },
|
|
129
|
+
onlyCountries: { type: Array, default: () => [] },
|
|
130
|
+
preferredCountries: { type: Array, default: () => [] },
|
|
131
|
+
validCharactersOnly: { type: Boolean, default: false },
|
|
132
|
+
rootClass: { type: [String, Array, Object], default: '' },
|
|
133
|
+
inputClass: { type: [String, Array, Object], default: '' },
|
|
134
|
+
rootStyle: { type: [String, Array, Object], default: '' },
|
|
135
|
+
dropdownStyle: { type: [String, Array, Object], default: '' },
|
|
136
|
+
listStyle: { type: [String, Array, Object], default: '' },
|
|
137
|
+
inputStyle: { type: [String, Array, Object], default: '' },
|
|
138
|
+
inputId: { type: [String, Array, Object], default: '' },
|
|
139
|
+
Placeholder: { type: [String, Object, Function], default: '' },
|
|
137
140
|
dropdownOptions: {
|
|
138
141
|
type: Object,
|
|
139
|
-
default: () => {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
}
|
|
142
|
+
default: () => ({
|
|
143
|
+
showDialCodeInList: true,
|
|
144
|
+
showDialCodeInSelection: false,
|
|
145
|
+
showFlags: true,
|
|
146
|
+
tabindex: 0
|
|
147
|
+
})
|
|
147
148
|
},
|
|
148
149
|
inputOptions: {
|
|
149
150
|
type: Object,
|
|
150
|
-
default: () => {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
}
|
|
164
|
-
}
|
|
151
|
+
default: () => ({
|
|
152
|
+
autocomplete: 'on',
|
|
153
|
+
autofocus: false,
|
|
154
|
+
id: '',
|
|
155
|
+
maxlength: 25,
|
|
156
|
+
name: 'telephone',
|
|
157
|
+
placeholder: 'Enter a phone number',
|
|
158
|
+
readonly: false,
|
|
159
|
+
required: false,
|
|
160
|
+
tabindex: 0,
|
|
161
|
+
type: 'tel',
|
|
162
|
+
styleClasses: ''
|
|
163
|
+
})
|
|
165
164
|
},
|
|
166
165
|
});
|
|
167
166
|
|
|
@@ -178,14 +177,11 @@
|
|
|
178
177
|
'space'
|
|
179
178
|
]);
|
|
180
179
|
|
|
181
|
-
|
|
182
|
-
const
|
|
183
|
-
const message = reactive({
|
|
184
|
-
action: null,
|
|
185
|
-
amount: null,
|
|
186
|
-
});
|
|
187
|
-
const phone = ref(props.modelValue ? props.modelValue : '');
|
|
180
|
+
// Reactive data
|
|
181
|
+
const phone = ref(props.modelValue || '');
|
|
188
182
|
const activeCountryCode = ref('');
|
|
183
|
+
const dialCodeInput = ref('');
|
|
184
|
+
const dialCodeFilter = ref('');
|
|
189
185
|
const open = ref(false);
|
|
190
186
|
const finishMounted = ref(false);
|
|
191
187
|
const selectedIndex = ref(null);
|
|
@@ -194,12 +190,13 @@
|
|
|
194
190
|
const dropdownOpenDirection = ref('below');
|
|
195
191
|
const parsedPlaceholder = ref(props.Placeholder !== '' ? props.Placeholder : props.inputOptions.placeholder);
|
|
196
192
|
|
|
197
|
-
|
|
198
|
-
const
|
|
199
|
-
const
|
|
193
|
+
// Element refs
|
|
194
|
+
const rootElement = ref(null);
|
|
195
|
+
const list = ref(null);
|
|
196
|
+
const input = ref(null);
|
|
200
197
|
|
|
201
198
|
// Lifecycle hooks
|
|
202
|
-
onMounted(
|
|
199
|
+
onMounted(() => {
|
|
203
200
|
if (props.modelValue) {
|
|
204
201
|
phone.value = props.modelValue;
|
|
205
202
|
}
|
|
@@ -208,11 +205,15 @@
|
|
|
208
205
|
|
|
209
206
|
initializeCountry()
|
|
210
207
|
.then(() => {
|
|
211
|
-
if (!phone.value
|
|
212
|
-
&& props.inputOptions?.showDialCode
|
|
213
|
-
&& activeCountryCode.value) {
|
|
208
|
+
if (!phone.value && props.inputOptions?.showDialCode && activeCountryCode.value) {
|
|
214
209
|
phone.value = `+${activeCountryCode.value}`;
|
|
215
210
|
}
|
|
211
|
+
|
|
212
|
+
// Инициализируем dialCodeInput
|
|
213
|
+
if (activeCountry.value && props.dropdownOptions.showDialCodeInSelection) {
|
|
214
|
+
dialCodeInput.value = `+${activeCountry.value.dialCode}`;
|
|
215
|
+
}
|
|
216
|
+
|
|
216
217
|
emits('validate', phoneObject.value);
|
|
217
218
|
})
|
|
218
219
|
.catch(console.error)
|
|
@@ -223,7 +224,7 @@
|
|
|
223
224
|
|
|
224
225
|
// Computed properties
|
|
225
226
|
const activeCountry = computed(() => {
|
|
226
|
-
|
|
227
|
+
return findCountry(activeCountryCode.value);
|
|
227
228
|
});
|
|
228
229
|
|
|
229
230
|
const activeCountryFlag = computed(() => {
|
|
@@ -245,20 +246,38 @@
|
|
|
245
246
|
});
|
|
246
247
|
|
|
247
248
|
const filteredCountries = computed(() => {
|
|
249
|
+
let countries = props.allCountries;
|
|
250
|
+
|
|
251
|
+
// Фильтрация по onlyCountries/ignoredCountries
|
|
248
252
|
if (props.onlyCountries && props.onlyCountries.length) {
|
|
249
|
-
|
|
253
|
+
countries = countries.filter(({ iso2 }) =>
|
|
254
|
+
props.onlyCountries.includes(iso2.toUpperCase())
|
|
255
|
+
);
|
|
256
|
+
} else if (props.ignoredCountries && props.ignoredCountries.length) {
|
|
257
|
+
countries = countries.filter(({ iso2 }) =>
|
|
258
|
+
!props.ignoredCountries.includes(iso2.toUpperCase()) &&
|
|
259
|
+
!props.ignoredCountries.includes(iso2.toLowerCase())
|
|
260
|
+
);
|
|
250
261
|
}
|
|
251
262
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
263
|
+
// Фильтрация по введенному коду страны
|
|
264
|
+
if (dialCodeFilter.value) {
|
|
265
|
+
const filterValue = dialCodeFilter.value.replace('+', '');
|
|
266
|
+
countries = countries.filter(country =>
|
|
267
|
+
country.dialCode.startsWith(filterValue)
|
|
255
268
|
);
|
|
256
269
|
}
|
|
257
270
|
|
|
258
|
-
return
|
|
271
|
+
return countries;
|
|
259
272
|
});
|
|
260
|
-
|
|
273
|
+
|
|
274
|
+
const filteredAndSortedCountries = computed(() => {
|
|
261
275
|
const preferredCountries = getCountries(props.preferredCountries)
|
|
276
|
+
.filter(country => {
|
|
277
|
+
if (!dialCodeFilter.value) return true;
|
|
278
|
+
const filterValue = dialCodeFilter.value.replace('+', '');
|
|
279
|
+
return country.dialCode.startsWith(filterValue);
|
|
280
|
+
})
|
|
262
281
|
.map(country => ({ ...country, preferred: true }));
|
|
263
282
|
|
|
264
283
|
return [...preferredCountries, ...filteredCountries.value];
|
|
@@ -317,9 +336,8 @@
|
|
|
317
336
|
return phoneObject.value.valid === true ? props.goodInputStyle :
|
|
318
337
|
phoneObject.value.valid === false ? props.badInputStyle : undefined;
|
|
319
338
|
});
|
|
320
|
-
|
|
339
|
+
|
|
321
340
|
// Watchers
|
|
322
|
-
// ///////////
|
|
323
341
|
watch(activeCountry, (newValue, oldValue) => {
|
|
324
342
|
if (!newValue && oldValue?.iso2) {
|
|
325
343
|
activeCountryCode.value = oldValue.iso2;
|
|
@@ -328,20 +346,19 @@
|
|
|
328
346
|
if (newValue?.iso2) {
|
|
329
347
|
emits('country-changed', newValue);
|
|
330
348
|
resetPlaceholder();
|
|
349
|
+
// Обновляем dialCodeInput при смене страны
|
|
350
|
+
dialCodeInput.value = `+${newValue.dialCode}`;
|
|
331
351
|
}
|
|
332
352
|
});
|
|
333
353
|
|
|
334
|
-
// Следим за изменениями countryCode в phoneObject
|
|
335
354
|
watch(() => phoneObject.value.countryCode, (newValue) => {
|
|
336
355
|
activeCountryCode.value = newValue;
|
|
337
356
|
});
|
|
338
357
|
|
|
339
|
-
// Следим за изменениями валидности phoneObject
|
|
340
358
|
watch(() => phoneObject.value.valid, () => {
|
|
341
359
|
emits('validate', phoneObject.value);
|
|
342
360
|
});
|
|
343
361
|
|
|
344
|
-
// Следим за изменениями отформатированного номера в phoneObject
|
|
345
362
|
watch(() => phoneObject.value.formatted, (newValue) => {
|
|
346
363
|
if (!props.autoFormat || props.customValidate) {
|
|
347
364
|
return;
|
|
@@ -355,12 +372,10 @@
|
|
|
355
372
|
});
|
|
356
373
|
});
|
|
357
374
|
|
|
358
|
-
// Следим за изменениями placeholder в inputOptions
|
|
359
375
|
watch(() => props.inputOptions.placeholder, () => {
|
|
360
376
|
resetPlaceholder();
|
|
361
377
|
});
|
|
362
378
|
|
|
363
|
-
// Следим за внешними изменениями значения (например, через v-model)
|
|
364
379
|
watch(() => props.modelValue, (newValue, oldValue) => {
|
|
365
380
|
if (!testCharacters()) {
|
|
366
381
|
nextTick(() => {
|
|
@@ -372,7 +387,6 @@
|
|
|
372
387
|
}
|
|
373
388
|
});
|
|
374
389
|
|
|
375
|
-
// Следим за состоянием открытия/закрытия dropdown
|
|
376
390
|
watch(open, (isDropdownOpened) => {
|
|
377
391
|
if (isDropdownOpened) {
|
|
378
392
|
setDropdownPosition();
|
|
@@ -383,49 +397,100 @@
|
|
|
383
397
|
});
|
|
384
398
|
|
|
385
399
|
// Methods
|
|
386
|
-
function
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
400
|
+
function onDialCodeInput() {
|
|
401
|
+
// Убеждаемся, что символ + всегда есть в начале
|
|
402
|
+
if (!dialCodeInput.value.startsWith('+')) {
|
|
403
|
+
dialCodeInput.value = '+' + dialCodeInput.value.replace(/^\+*/, '');
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
// Разрешаем только + и цифры
|
|
407
|
+
dialCodeInput.value = dialCodeInput.value.replace(/[^\+\d]/g, '');
|
|
408
|
+
|
|
409
|
+
// Убеждаемся что + только в начале
|
|
410
|
+
const plusCount = (dialCodeInput.value.match(/\+/g) || []).length;
|
|
411
|
+
if (plusCount > 1) {
|
|
412
|
+
dialCodeInput.value = '+' + dialCodeInput.value.replace(/\+/g, '');
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
dialCodeFilter.value = dialCodeInput.value;
|
|
416
|
+
open.value = true;
|
|
417
|
+
|
|
418
|
+
// Автовыбор страны если код точно совпадает
|
|
419
|
+
const exactMatch = filteredCountries.value.find(country =>
|
|
420
|
+
`+${country.dialCode}` === dialCodeInput.value
|
|
421
|
+
);
|
|
422
|
+
|
|
423
|
+
if (exactMatch && filteredAndSortedCountries.value.length === 1) {
|
|
424
|
+
choose(exactMatch);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
391
427
|
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
428
|
+
function onDialCodeBlur() {
|
|
429
|
+
setTimeout(() => {
|
|
430
|
+
if (!dialCodeInput.value && activeCountry.value) {
|
|
431
|
+
dialCodeInput.value = `+${activeCountry.value.dialCode}`;
|
|
432
|
+
}
|
|
433
|
+
}, 200);
|
|
434
|
+
}
|
|
395
435
|
|
|
396
|
-
|
|
397
|
-
|
|
436
|
+
function openDropdown() {
|
|
437
|
+
if (!props.disabled) {
|
|
438
|
+
open.value = true;
|
|
439
|
+
}
|
|
398
440
|
}
|
|
399
|
-
|
|
441
|
+
|
|
400
442
|
function setCaretPosition(ctrl, pos) {
|
|
401
|
-
// Modern browsers
|
|
402
443
|
if (ctrl.setSelectionRange) {
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
// IE8 and below
|
|
444
|
+
ctrl.focus();
|
|
445
|
+
ctrl.setSelectionRange(pos, pos);
|
|
407
446
|
} else if (ctrl.createTextRange) {
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
447
|
+
const range = ctrl.createTextRange();
|
|
448
|
+
range.collapse(true);
|
|
449
|
+
range.moveEnd('character', pos);
|
|
450
|
+
range.moveStart('character', pos);
|
|
451
|
+
range.select();
|
|
413
452
|
}
|
|
414
453
|
}
|
|
415
454
|
|
|
416
455
|
function resetPlaceholder() {
|
|
417
456
|
parsedPlaceholder.value = props.inputOptions.placeholder;
|
|
418
457
|
}
|
|
458
|
+
|
|
419
459
|
function initializeCountry() {
|
|
420
460
|
return new Promise((resolve) => {
|
|
421
|
-
if (phone.value?.[0] === '+') {
|
|
422
|
-
|
|
461
|
+
if (phone.value?.[0] === '+') {
|
|
462
|
+
resolve();
|
|
463
|
+
return;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
if (props.defaultCountry) {
|
|
467
|
+
choose(props.defaultCountry);
|
|
468
|
+
resolve();
|
|
469
|
+
return;
|
|
470
|
+
}
|
|
471
|
+
|
|
423
472
|
const fallbackCountry = props.preferredCountries[0] || filteredCountries.value[0];
|
|
473
|
+
|
|
424
474
|
if (props.autoDefaultCountry) {
|
|
425
|
-
|
|
426
|
-
.then((
|
|
427
|
-
.
|
|
428
|
-
|
|
475
|
+
fetch('https://ip2c.org/s')
|
|
476
|
+
.then((response) => response.text())
|
|
477
|
+
.then((response) => {
|
|
478
|
+
const result = (response || '').toString();
|
|
479
|
+
if (!result || result[0] !== '1') {
|
|
480
|
+
throw new Error('unable to fetch the country');
|
|
481
|
+
}
|
|
482
|
+
return result.substr(2, 2);
|
|
483
|
+
})
|
|
484
|
+
.then((res) => {
|
|
485
|
+
choose(res || activeCountryCode.value);
|
|
486
|
+
})
|
|
487
|
+
.catch((error) => {
|
|
488
|
+
console.warn(error);
|
|
489
|
+
choose(fallbackCountry);
|
|
490
|
+
})
|
|
491
|
+
.finally(() => {
|
|
492
|
+
resolve();
|
|
493
|
+
});
|
|
429
494
|
} else {
|
|
430
495
|
choose(fallbackCountry);
|
|
431
496
|
resolve();
|
|
@@ -454,16 +519,27 @@
|
|
|
454
519
|
|
|
455
520
|
if (phone.value?.[0] === '+' && parsedCountry.iso2 && phoneObject.value.nationalNumber) {
|
|
456
521
|
activeCountryCode.value = parsedCountry.iso2;
|
|
457
|
-
phone.value = parsePhoneNumberFromString(
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
return;
|
|
522
|
+
phone.value = parsePhoneNumberFromString(
|
|
523
|
+
phoneObject.value.nationalNumber,
|
|
524
|
+
parsedCountry.iso2
|
|
525
|
+
).formatInternational();
|
|
526
|
+
} else {
|
|
527
|
+
activeCountryCode.value = parsedCountry.iso2;
|
|
464
528
|
}
|
|
465
529
|
|
|
466
|
-
|
|
530
|
+
dialCodeInput.value = `+${parsedCountry.dialCode}`;
|
|
531
|
+
dialCodeFilter.value = '';
|
|
532
|
+
|
|
533
|
+
// Закрываем дропдаун
|
|
534
|
+
open.value = false;
|
|
535
|
+
|
|
536
|
+
// Переводим фокус на основной инпут
|
|
537
|
+
nextTick(() => {
|
|
538
|
+
if (input.value) {
|
|
539
|
+
input.value.focus();
|
|
540
|
+
}
|
|
541
|
+
});
|
|
542
|
+
|
|
467
543
|
emitInput(phone.value);
|
|
468
544
|
}
|
|
469
545
|
|
|
@@ -502,16 +578,13 @@
|
|
|
502
578
|
|
|
503
579
|
function onInput() {
|
|
504
580
|
input.value.setCustomValidity(phoneObject.valid ? '' : props.invalidMsg);
|
|
505
|
-
|
|
506
581
|
emitInput(phone.value);
|
|
507
582
|
}
|
|
508
583
|
|
|
509
584
|
function emitInput(value) {
|
|
510
585
|
emits('update:modelValue', value);
|
|
511
586
|
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
if (phoneObject.value.valid) {
|
|
587
|
+
if (phoneObject.value.valid) {
|
|
515
588
|
emits('change', phoneObject.value.number);
|
|
516
589
|
emits('country', phoneObject.value.number);
|
|
517
590
|
} else {
|
|
@@ -547,13 +620,15 @@
|
|
|
547
620
|
|
|
548
621
|
function clickedOutside() {
|
|
549
622
|
open.value = false;
|
|
623
|
+
dialCodeFilter.value = '';
|
|
550
624
|
}
|
|
551
625
|
|
|
552
626
|
function keyboardNav(e) {
|
|
553
627
|
if (e.keyCode === 40) { // down arrow
|
|
554
628
|
e.preventDefault();
|
|
555
629
|
open.value = true;
|
|
556
|
-
selectedIndex.value = selectedIndex.value === null ? 0 :
|
|
630
|
+
selectedIndex.value = selectedIndex.value === null ? 0 :
|
|
631
|
+
Math.min(filteredAndSortedCountries.value.length - 1, selectedIndex.value + 1);
|
|
557
632
|
nextTick(() => {
|
|
558
633
|
const selEle = list.value.children[selectedIndex.value];
|
|
559
634
|
if (selEle.offsetTop + selEle.clientHeight > list.value.scrollTop + list.value.clientHeight) {
|
|
@@ -563,7 +638,8 @@
|
|
|
563
638
|
} else if (e.keyCode === 38) { // up arrow
|
|
564
639
|
e.preventDefault();
|
|
565
640
|
open.value = true;
|
|
566
|
-
selectedIndex.value = selectedIndex.value === null ?
|
|
641
|
+
selectedIndex.value = selectedIndex.value === null ?
|
|
642
|
+
filteredAndSortedCountries.value.length - 1 : Math.max(0, selectedIndex.value - 1);
|
|
567
643
|
nextTick(() => {
|
|
568
644
|
const selEle = list.value.children[selectedIndex.value];
|
|
569
645
|
if (selEle.offsetTop < list.value.scrollTop) {
|
|
@@ -573,21 +649,27 @@
|
|
|
573
649
|
} else if (e.keyCode === 13) { // enter key
|
|
574
650
|
e.preventDefault();
|
|
575
651
|
if (selectedIndex.value !== null) {
|
|
576
|
-
choose(
|
|
652
|
+
choose(filteredAndSortedCountries.value[selectedIndex.value]);
|
|
577
653
|
}
|
|
578
|
-
|
|
579
|
-
|
|
654
|
+
} else {
|
|
655
|
+
// Поиск по названию страны
|
|
656
|
+
if (e.target.classList.contains('vti__country-code-input')) return;
|
|
657
|
+
|
|
580
658
|
typeToFindInput.value += e.key;
|
|
581
659
|
clearTimeout(typeToFindTimer);
|
|
582
660
|
typeToFindTimer = setTimeout(() => {
|
|
583
661
|
typeToFindInput.value = '';
|
|
584
662
|
}, 700);
|
|
663
|
+
|
|
585
664
|
nextTick(() => {
|
|
586
|
-
const typedCountryI =
|
|
665
|
+
const typedCountryI = filteredAndSortedCountries.value
|
|
666
|
+
.slice(props.preferredCountries.length)
|
|
667
|
+
.findIndex((c) => c.name.toLowerCase().startsWith(typeToFindInput.value));
|
|
587
668
|
if (typedCountryI >= 0) {
|
|
588
669
|
selectedIndex.value = props.preferredCountries.length + typedCountryI;
|
|
589
670
|
const selEle = list.value.children[selectedIndex.value];
|
|
590
|
-
const needToScroll = selEle.offsetTop < list.value.scrollTop ||
|
|
671
|
+
const needToScroll = selEle.offsetTop < list.value.scrollTop ||
|
|
672
|
+
selEle.offsetTop + selEle.clientHeight > list.value.scrollTop + list.value.clientHeight;
|
|
591
673
|
if (needToScroll) {
|
|
592
674
|
list.value.scrollTop = selEle.offsetTop - list.value.clientHeight / 2;
|
|
593
675
|
}
|
|
@@ -597,7 +679,8 @@
|
|
|
597
679
|
}
|
|
598
680
|
|
|
599
681
|
function reset() {
|
|
600
|
-
selectedIndex.value =
|
|
682
|
+
selectedIndex.value = filteredAndSortedCountries.value
|
|
683
|
+
.map(c => c.iso2).indexOf(activeCountryCode.value);
|
|
601
684
|
open.value = false;
|
|
602
685
|
}
|
|
603
686
|
|
|
@@ -609,67 +692,83 @@
|
|
|
609
692
|
</script>
|
|
610
693
|
|
|
611
694
|
<style lang="scss">
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
695
|
+
.vue3-reactive-tel-input {
|
|
696
|
+
display: flex;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
.vue3-reactive-tel-input.disabled .dropdown,
|
|
700
|
+
.vue3-reactive-tel-input.disabled .selection,
|
|
701
|
+
.vue3-reactive-tel-input.disabled input {
|
|
702
|
+
cursor: no-drop;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.vti__dropdown {
|
|
706
|
+
display: flex;
|
|
707
|
+
flex-direction: column;
|
|
708
|
+
align-content: center;
|
|
709
|
+
justify-content: center;
|
|
710
|
+
position: relative;
|
|
711
|
+
padding: 0.5rem;
|
|
712
|
+
cursor: pointer;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
.vti__dropdown.show {
|
|
716
|
+
max-height: 300px;
|
|
717
|
+
overflow: scroll;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
.vti__dropdown-list {
|
|
721
|
+
z-index: 1;
|
|
722
|
+
padding: 0;
|
|
723
|
+
margin: 0;
|
|
724
|
+
text-align: left;
|
|
725
|
+
list-style: none;
|
|
726
|
+
max-height: 200px;
|
|
727
|
+
overflow-y: scroll;
|
|
728
|
+
position: absolute;
|
|
729
|
+
left: -1px;
|
|
730
|
+
background-color: #fff;
|
|
731
|
+
width: fit-content;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
.vti__dropdown-list.below {
|
|
735
|
+
top: 33px;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
.vti__dropdown-list.above {
|
|
739
|
+
top: auto;
|
|
740
|
+
bottom: 100%;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
.vti__dropdown-item {
|
|
744
|
+
cursor: pointer;
|
|
745
|
+
padding: 4px 15px;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
.vti__dropdown-item.highlighted {
|
|
749
|
+
background-color: #f0f0f0;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
.vti__dropdown-item.last-preferred {
|
|
753
|
+
border-bottom: 1px solid #cacaca;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
.vti__input {
|
|
757
|
+
color: inherit;
|
|
758
|
+
border: none;
|
|
759
|
+
border-radius: 0 2px 2px 0;
|
|
760
|
+
width: 100%;
|
|
761
|
+
outline: 0;
|
|
762
|
+
padding-left: 7px;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.vti__country-code-input {
|
|
766
|
+
max-width: 70px;
|
|
767
|
+
border: none;
|
|
768
|
+
outline: none;
|
|
769
|
+
background: transparent;
|
|
770
|
+
font-size: inherit;
|
|
771
|
+
color: inherit;
|
|
772
|
+
text-align: center;
|
|
773
|
+
}
|
|
675
774
|
</style>
|