@ozdao/martyrs 0.2.509 → 0.2.510
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/dist/_virtual/index.cjs +4 -4
- package/dist/_virtual/index.js +4 -4
- package/dist/_virtual/index2.cjs +4 -4
- package/dist/_virtual/index2.js +4 -4
- package/dist/{main-DSiCr7yl.js → main-DrpgUZcn.js} +2804 -2610
- package/dist/main-XJQJFmgj.cjs +11 -0
- package/dist/martyrs/src/components/Button/{Button.vue.cjs → Button.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Button/Button.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Button/{Button.vue.js → Button.vue2.js} +2 -2
- package/dist/martyrs/src/components/Button/{Button.vue.cjs.map → Button.vue2.js.map} +1 -1
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js +1 -1
- package/dist/martyrs/src/components/Checkbox/Checkbox.vue.js.map +1 -1
- package/dist/martyrs/src/components/Chips/{Chips.vue.cjs → Chips.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Chips/Chips.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Chips/{Chips.vue.js → Chips.vue2.js} +2 -2
- package/dist/martyrs/src/components/Chips/Chips.vue2.js.map +1 -0
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue.cjs → Dropdown.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Dropdown/Dropdown.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue.js → Dropdown.vue2.js} +2 -2
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue.cjs.map → Dropdown.vue2.js.map} +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs +2 -2
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.js +2 -2
- package/dist/martyrs/src/components/Feed/Feed.vue.js.map +1 -1
- package/dist/martyrs/src/components/Field/Field.vue.cjs +1 -1
- package/dist/martyrs/src/components/Field/Field.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Field/Field.vue.js +1 -1
- package/dist/martyrs/src/components/Field/Field.vue.js.map +1 -1
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/martyrs/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/martyrs/src/components/FieldTags/FieldTags.vue.cjs +1 -1
- package/dist/martyrs/src/components/FieldTags/FieldTags.vue.js +1 -1
- package/dist/martyrs/src/components/Menu/{Menu.vue2.cjs → Menu.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Menu/Menu.vue.cjs.map +1 -0
- package/dist/martyrs/src/components/Menu/{Menu.vue2.js → Menu.vue.js} +2 -2
- package/dist/martyrs/src/components/Menu/Menu.vue.js.map +1 -0
- package/dist/martyrs/src/components/Select/{Select.vue2.cjs → Select.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Select/{Select.vue2.js.map → Select.vue.cjs.map} +1 -1
- package/dist/martyrs/src/components/Select/{Select.vue2.js → Select.vue.js} +2 -2
- package/dist/martyrs/src/components/Select/Select.vue.js.map +1 -0
- package/dist/martyrs/src/components/Tab/{Tab.vue2.cjs → Tab.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Tab/{Tab.vue2.js.map → Tab.vue.cjs.map} +1 -1
- package/dist/martyrs/src/components/Tab/{Tab.vue2.js → Tab.vue.js} +2 -2
- package/dist/martyrs/src/components/Tab/Tab.vue.js.map +1 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +3 -3
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +3 -3
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +2 -2
- 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/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +2 -2
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +2 -2
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.cjs +2 -2
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.js +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/pages/Event.vue.cjs +3 -2
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +3 -2
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +3 -3
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.js +1 -1
- 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 +8 -3
- 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 +8 -3
- 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 +2 -2
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.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/components/sections/Filters.vue2.cjs +112 -49
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.js +121 -58
- package/dist/martyrs/src/modules/globals/views/components/sections/Filters.vue2.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue.js +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.cjs +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.cjs +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.cjs +3 -3
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.js +2 -2
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.cjs +3 -3
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js +3 -3
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.cjs +2 -2
- package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.cjs +2 -2
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/SearchForm.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/forms/SearchForm.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.cjs +2 -2
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.cjs +2 -2
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/pages/Artist.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/MusicLibrary.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/MusicLibrary.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.cjs +2 -2
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.cjs +2 -2
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/pages/TrackCreate.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/pages/TrackCreate.vue.js +1 -1
- package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.cjs +1 -1
- package/dist/martyrs/src/modules/music/components/player/MusicPlayer.vue.js +1 -1
- package/dist/martyrs/src/modules/music/router/music.cjs +3 -2
- package/dist/martyrs/src/modules/music/router/music.cjs.map +1 -1
- package/dist/martyrs/src/modules/music/router/music.js +3 -2
- package/dist/martyrs/src/modules/music/router/music.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/components/pages/Notifications.vue.cjs +1 -1
- package/dist/martyrs/src/modules/notifications/components/pages/Notifications.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.cjs +2 -2
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.cjs +2 -2
- package/dist/martyrs/src/modules/orders/components/forms/FormCustomerDetails.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs +3 -2
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +3 -2
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/orders.client.cjs +0 -6
- package/dist/martyrs/src/modules/orders/orders.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/orders.client.js +0 -6
- package/dist/martyrs/src/modules/orders/orders.client.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.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 +3 -3
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs +3 -3
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +3 -3
- 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 +3 -3
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.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 +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- 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/ProductDiscounts.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js +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 +5 -4
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +5 -4
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +3 -3
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs +118 -135
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +123 -140
- package/dist/martyrs/src/modules/products/components/pages/Products.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 +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.cjs +3 -5
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.js +4 -6
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsPopular.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsPopular.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +2 -2
- package/dist/martyrs/src/modules/products/store/products.cjs +5 -5
- package/dist/martyrs/src/modules/products/store/products.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/store/products.js +5 -5
- package/dist/martyrs/src/modules/products/store/products.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.cjs +3 -3
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js +3 -3
- package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.cjs +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js +1 -1
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.cjs +2 -2
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.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 +3 -3
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +3 -3
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.cjs +4 -4
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +4 -4
- package/dist/martyrs.cjs.js +1 -1
- package/dist/martyrs.css +1 -1
- package/dist/martyrs.es.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.cjs +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.cjs +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
- package/dist/products.server.cjs +68 -44
- package/dist/products.server.js +68 -44
- package/dist/style.css +14 -11
- package/dist/{web-gtBkwjra.js → web-C5cmb1FH.js} +1 -1
- package/dist/{web-XyQNm3cW.cjs → web-d40xcY_Y.cjs} +1 -1
- package/package.json +1 -1
- package/src/components/Checkbox/Checkbox.vue +1 -1
- package/src/components/Feed/Feed.vue +1 -1
- package/src/components/Field/Field.vue +5 -0
- package/src/modules/globals/views/components/layouts/Client.vue +12 -1
- package/src/modules/globals/views/components/sections/Filters.vue +73 -15
- package/src/modules/orders/orders.client.js +0 -6
- package/src/modules/products/components/pages/Products.vue +148 -174
- package/src/modules/products/components/sections/EditRecommended.vue +1 -3
- package/src/modules/products/components/sections/ProductsPopular.vue +1 -1
- package/src/modules/products/controllers/configs/products.lookup.config.js +20 -3
- package/src/modules/products/controllers/products.controller.js +14 -2
- package/src/modules/products/controllers/queries/products.queries.js +46 -43
- package/src/modules/products/models/product.model.js +4 -0
- package/src/modules/products/store/products.js +5 -5
- package/dist/main-D89N_jml.cjs +0 -11
- package/dist/martyrs/src/components/Button/Button.vue.js.map +0 -1
- package/dist/martyrs/src/components/Chips/Chips.vue.cjs.map +0 -1
- package/dist/martyrs/src/components/Chips/Chips.vue.js.map +0 -1
- package/dist/martyrs/src/components/Dropdown/Dropdown.vue.js.map +0 -1
- package/dist/martyrs/src/components/Menu/Menu.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Menu/Menu.vue2.js.map +0 -1
- package/dist/martyrs/src/components/Select/Select.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Tab/Tab.vue2.cjs.map +0 -1
package/dist/martyrs.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e, a as o, b as d, C as r, k as t, c as l, d as i, e as p, f as u, g as n, h as M, i as S, j as c, F as m, l as C, n as F, o as g, L as h, p as b, M as k, q as x, H as B, r as T, s as U, t as f, u as w, S as D, v as E, w as I, x as L, y as P, z as q, A as y, B as A, D as j, U as v, E as z, G, m as H } from "./main-
|
|
1
|
+
import { _ as e, a as o, b as d, C as r, k as t, c as l, d as i, e as p, f as u, g as n, h as M, i as S, j as c, F as m, l as C, n as F, o as g, L as h, p as b, M as k, q as x, H as B, r as T, s as U, t as f, u as w, S as D, v as E, w as I, x as L, y as P, z as q, A as y, B as A, D as j, U as v, E as z, G, m as H } from "./main-DrpgUZcn.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Address,
|
|
4
4
|
o as Breadcrumbs,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const utils = require("../../../../../../../_virtual/
|
|
3
|
+
const utils = require("../../../../../../../_virtual/utils2.cjs");
|
|
4
4
|
var hasRequiredUtils;
|
|
5
5
|
function requireUtils() {
|
|
6
6
|
if (hasRequiredUtils) return utils.__exports;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const utils = require("../../../../../../../_virtual/
|
|
3
|
+
const utils = require("../../../../../../../_virtual/utils.cjs");
|
|
4
4
|
var hasRequiredUtils;
|
|
5
5
|
function requireUtils() {
|
|
6
6
|
if (hasRequiredUtils) return utils.__exports;
|
package/dist/products.server.cjs
CHANGED
|
@@ -467,42 +467,31 @@ function getAttributeFiltersStage(filtersString) {
|
|
|
467
467
|
return [];
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
|
-
function getVariantPriceFilterStage(
|
|
471
|
-
|
|
470
|
+
function getVariantPriceFilterStage(priceMin, priceMax) {
|
|
471
|
+
const hasValidMin = priceMin && priceMin.trim() !== "";
|
|
472
|
+
const hasValidMax = priceMax && priceMax.trim() !== "";
|
|
473
|
+
if (!hasValidMin && !hasValidMax) return [];
|
|
472
474
|
try {
|
|
473
|
-
const
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
priceConditions.push({
|
|
478
|
-
variants: {
|
|
479
|
-
$elemMatch: {
|
|
480
|
-
price: { $lt: parseFloat(priceRange.slice(1)) }
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
});
|
|
484
|
-
} else if (priceRange.startsWith(">")) {
|
|
485
|
-
priceConditions.push({
|
|
486
|
-
variants: {
|
|
487
|
-
$elemMatch: {
|
|
488
|
-
price: { $gt: parseFloat(priceRange.slice(1)) }
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
});
|
|
492
|
-
} else {
|
|
493
|
-
const [min, max] = priceRange.split("-").map(Number);
|
|
494
|
-
if (!isNaN(min) && !isNaN(max)) {
|
|
495
|
-
priceConditions.push({
|
|
496
|
-
variants: {
|
|
497
|
-
$elemMatch: {
|
|
498
|
-
price: { $gte: min, $lte: max }
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
});
|
|
475
|
+
const priceCondition = {
|
|
476
|
+
variants: {
|
|
477
|
+
$elemMatch: {
|
|
478
|
+
price: {}
|
|
502
479
|
}
|
|
503
480
|
}
|
|
504
|
-
}
|
|
505
|
-
|
|
481
|
+
};
|
|
482
|
+
if (hasValidMin) {
|
|
483
|
+
const minPrice = parseFloat(priceMin);
|
|
484
|
+
if (!isNaN(minPrice)) {
|
|
485
|
+
priceCondition.variants.$elemMatch.price.$gte = minPrice;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
if (hasValidMax) {
|
|
489
|
+
const maxPrice = parseFloat(priceMax);
|
|
490
|
+
if (!isNaN(maxPrice)) {
|
|
491
|
+
priceCondition.variants.$elemMatch.price.$lte = maxPrice;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
return [{ $match: priceCondition }];
|
|
506
495
|
} catch (error) {
|
|
507
496
|
console.error("Error parsing price filters:", error);
|
|
508
497
|
return [];
|
|
@@ -512,11 +501,19 @@ function getAvailabilityFilterStage(dateStart, dateEnd) {
|
|
|
512
501
|
if (!dateStart || !dateEnd) return [];
|
|
513
502
|
const startDate = new Date(dateStart);
|
|
514
503
|
const endDate = new Date(dateEnd);
|
|
504
|
+
if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
|
|
505
|
+
console.warn("Invalid dates provided for availability filter:", { dateStart, dateEnd });
|
|
506
|
+
return [];
|
|
507
|
+
}
|
|
515
508
|
return [
|
|
516
509
|
{
|
|
517
510
|
$lookup: {
|
|
518
511
|
from: "rents",
|
|
519
|
-
let: {
|
|
512
|
+
let: {
|
|
513
|
+
productId: "$_id",
|
|
514
|
+
dateStart: startDate,
|
|
515
|
+
dateEnd: endDate
|
|
516
|
+
},
|
|
520
517
|
pipeline: [
|
|
521
518
|
{
|
|
522
519
|
$match: {
|
|
@@ -528,20 +525,20 @@ function getAvailabilityFilterStage(dateStart, dateEnd) {
|
|
|
528
525
|
$or: [
|
|
529
526
|
{
|
|
530
527
|
$and: [
|
|
531
|
-
{ $gte: ["$startDate",
|
|
532
|
-
{ $lte: ["$startDate",
|
|
528
|
+
{ $gte: ["$startDate", "$$dateStart"] },
|
|
529
|
+
{ $lte: ["$startDate", "$$dateEnd"] }
|
|
533
530
|
]
|
|
534
531
|
},
|
|
535
532
|
{
|
|
536
533
|
$and: [
|
|
537
|
-
{ $gte: ["$endDate",
|
|
538
|
-
{ $lte: ["$endDate",
|
|
534
|
+
{ $gte: ["$endDate", "$$dateStart"] },
|
|
535
|
+
{ $lte: ["$endDate", "$$dateEnd"] }
|
|
539
536
|
]
|
|
540
537
|
},
|
|
541
538
|
{
|
|
542
539
|
$and: [
|
|
543
|
-
{ $lte: ["$startDate",
|
|
544
|
-
{ $gte: ["$endDate",
|
|
540
|
+
{ $lte: ["$startDate", "$$dateStart"] },
|
|
541
|
+
{ $gte: ["$endDate", "$$dateEnd"] }
|
|
545
542
|
]
|
|
546
543
|
}
|
|
547
544
|
]
|
|
@@ -716,13 +713,30 @@ const productLookupConfigs = {
|
|
|
716
713
|
}
|
|
717
714
|
}]
|
|
718
715
|
},
|
|
719
|
-
// Лукап для аренд
|
|
716
|
+
// Лукап для аренд продуктов (статичный без дат)
|
|
720
717
|
rents: {
|
|
721
718
|
lookup: {
|
|
722
719
|
from: "rents",
|
|
723
720
|
localField: "_id",
|
|
724
721
|
foreignField: "product",
|
|
725
|
-
as: "rents"
|
|
722
|
+
as: "rents",
|
|
723
|
+
pipeline: [
|
|
724
|
+
{
|
|
725
|
+
$match: {
|
|
726
|
+
status: { $in: ["confirmed", "active"] }
|
|
727
|
+
}
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
$project: {
|
|
731
|
+
_id: 1,
|
|
732
|
+
product: 1,
|
|
733
|
+
startDate: 1,
|
|
734
|
+
endDate: 1,
|
|
735
|
+
quantity: 1,
|
|
736
|
+
status: 1
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
]
|
|
726
740
|
}
|
|
727
741
|
}
|
|
728
742
|
};
|
|
@@ -744,6 +758,15 @@ const controllerFactory = (db) => {
|
|
|
744
758
|
const Read = async (req, res) => {
|
|
745
759
|
try {
|
|
746
760
|
const requestedLookups = queryProcessor.queryProcessorGlobals.getRequestedLookups(req.query);
|
|
761
|
+
if (req.query.dateStart || req.query.dateEnd) {
|
|
762
|
+
console.log("Availability filter params:", {
|
|
763
|
+
dateStart: req.query.dateStart,
|
|
764
|
+
dateEnd: req.query.dateEnd,
|
|
765
|
+
dateStartType: typeof req.query.dateStart,
|
|
766
|
+
dateEndType: typeof req.query.dateEnd
|
|
767
|
+
});
|
|
768
|
+
}
|
|
769
|
+
console.log("availability variant", JSON.stringify(...queryProcessorProducts.getAvailabilityFilterStage(req.query.dateStart, req.query.dateEnd), null, 2));
|
|
747
770
|
const stages = [
|
|
748
771
|
...queryProcessor.queryProcessorGlobals.getBasicOptions(req.query),
|
|
749
772
|
...queryProcessor.queryProcessorGlobals.getSearchOptions(req.query.search, {
|
|
@@ -756,9 +779,9 @@ const controllerFactory = (db) => {
|
|
|
756
779
|
...queryProcessorProducts.getCategoriesFilterStage(req.query.categories),
|
|
757
780
|
...queryProcessorProducts.getDeliveryFilterStage(req.query.delivery),
|
|
758
781
|
...queryProcessorProducts.getAttributeFiltersStage(req.query.filters),
|
|
759
|
-
...queryProcessorProducts.getVariantPriceFilterStage(req.query.prices),
|
|
760
|
-
...queryProcessorProducts.getAvailabilityFilterStage(req.query.dateStart, req.query.dateEnd),
|
|
761
782
|
...queryProcessor.queryProcessorGlobals.getLookupStages(requestedLookups, productLookupConfigs),
|
|
783
|
+
...queryProcessorProducts.getVariantPriceFilterStage(req.query.priceMin, req.query.priceMax),
|
|
784
|
+
...queryProcessorProducts.getAvailabilityFilterStage(req.query.dateStart, req.query.dateEnd),
|
|
762
785
|
queryProcessor.queryProcessorGlobals.getCreatorUserLookupStage(),
|
|
763
786
|
queryProcessor.queryProcessorGlobals.getCreatorOrganizationLookupStage(),
|
|
764
787
|
queryProcessor.queryProcessorGlobals.getOwnerUserLookupStage(),
|
|
@@ -977,6 +1000,7 @@ const ProductModel = (db) => {
|
|
|
977
1000
|
});
|
|
978
1001
|
common_schema.applyCommonSchema(ProductSchema);
|
|
979
1002
|
ownership_schema.applyOwnershipSchema(ProductSchema, db);
|
|
1003
|
+
engagement_schema.applyEngagementSchema(ProductSchema);
|
|
980
1004
|
ProductSchema.index({ name: "text", description: "text" });
|
|
981
1005
|
ProductSchema.index({ "owner.type": 1, "owner.target": 1, status: 1, category: 1 });
|
|
982
1006
|
ProductSchema.index({ category: 1, status: 1, delivery: 1, price: 1 });
|
package/dist/products.server.js
CHANGED
|
@@ -465,42 +465,31 @@ function getAttributeFiltersStage(filtersString) {
|
|
|
465
465
|
return [];
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
function getVariantPriceFilterStage(
|
|
469
|
-
|
|
468
|
+
function getVariantPriceFilterStage(priceMin, priceMax) {
|
|
469
|
+
const hasValidMin = priceMin && priceMin.trim() !== "";
|
|
470
|
+
const hasValidMax = priceMax && priceMax.trim() !== "";
|
|
471
|
+
if (!hasValidMin && !hasValidMax) return [];
|
|
470
472
|
try {
|
|
471
|
-
const
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
priceConditions.push({
|
|
476
|
-
variants: {
|
|
477
|
-
$elemMatch: {
|
|
478
|
-
price: { $lt: parseFloat(priceRange.slice(1)) }
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
});
|
|
482
|
-
} else if (priceRange.startsWith(">")) {
|
|
483
|
-
priceConditions.push({
|
|
484
|
-
variants: {
|
|
485
|
-
$elemMatch: {
|
|
486
|
-
price: { $gt: parseFloat(priceRange.slice(1)) }
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
});
|
|
490
|
-
} else {
|
|
491
|
-
const [min, max] = priceRange.split("-").map(Number);
|
|
492
|
-
if (!isNaN(min) && !isNaN(max)) {
|
|
493
|
-
priceConditions.push({
|
|
494
|
-
variants: {
|
|
495
|
-
$elemMatch: {
|
|
496
|
-
price: { $gte: min, $lte: max }
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
});
|
|
473
|
+
const priceCondition = {
|
|
474
|
+
variants: {
|
|
475
|
+
$elemMatch: {
|
|
476
|
+
price: {}
|
|
500
477
|
}
|
|
501
478
|
}
|
|
502
|
-
}
|
|
503
|
-
|
|
479
|
+
};
|
|
480
|
+
if (hasValidMin) {
|
|
481
|
+
const minPrice = parseFloat(priceMin);
|
|
482
|
+
if (!isNaN(minPrice)) {
|
|
483
|
+
priceCondition.variants.$elemMatch.price.$gte = minPrice;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
if (hasValidMax) {
|
|
487
|
+
const maxPrice = parseFloat(priceMax);
|
|
488
|
+
if (!isNaN(maxPrice)) {
|
|
489
|
+
priceCondition.variants.$elemMatch.price.$lte = maxPrice;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
return [{ $match: priceCondition }];
|
|
504
493
|
} catch (error) {
|
|
505
494
|
console.error("Error parsing price filters:", error);
|
|
506
495
|
return [];
|
|
@@ -510,11 +499,19 @@ function getAvailabilityFilterStage(dateStart, dateEnd) {
|
|
|
510
499
|
if (!dateStart || !dateEnd) return [];
|
|
511
500
|
const startDate = new Date(dateStart);
|
|
512
501
|
const endDate = new Date(dateEnd);
|
|
502
|
+
if (isNaN(startDate.getTime()) || isNaN(endDate.getTime())) {
|
|
503
|
+
console.warn("Invalid dates provided for availability filter:", { dateStart, dateEnd });
|
|
504
|
+
return [];
|
|
505
|
+
}
|
|
513
506
|
return [
|
|
514
507
|
{
|
|
515
508
|
$lookup: {
|
|
516
509
|
from: "rents",
|
|
517
|
-
let: {
|
|
510
|
+
let: {
|
|
511
|
+
productId: "$_id",
|
|
512
|
+
dateStart: startDate,
|
|
513
|
+
dateEnd: endDate
|
|
514
|
+
},
|
|
518
515
|
pipeline: [
|
|
519
516
|
{
|
|
520
517
|
$match: {
|
|
@@ -526,20 +523,20 @@ function getAvailabilityFilterStage(dateStart, dateEnd) {
|
|
|
526
523
|
$or: [
|
|
527
524
|
{
|
|
528
525
|
$and: [
|
|
529
|
-
{ $gte: ["$startDate",
|
|
530
|
-
{ $lte: ["$startDate",
|
|
526
|
+
{ $gte: ["$startDate", "$$dateStart"] },
|
|
527
|
+
{ $lte: ["$startDate", "$$dateEnd"] }
|
|
531
528
|
]
|
|
532
529
|
},
|
|
533
530
|
{
|
|
534
531
|
$and: [
|
|
535
|
-
{ $gte: ["$endDate",
|
|
536
|
-
{ $lte: ["$endDate",
|
|
532
|
+
{ $gte: ["$endDate", "$$dateStart"] },
|
|
533
|
+
{ $lte: ["$endDate", "$$dateEnd"] }
|
|
537
534
|
]
|
|
538
535
|
},
|
|
539
536
|
{
|
|
540
537
|
$and: [
|
|
541
|
-
{ $lte: ["$startDate",
|
|
542
|
-
{ $gte: ["$endDate",
|
|
538
|
+
{ $lte: ["$startDate", "$$dateStart"] },
|
|
539
|
+
{ $gte: ["$endDate", "$$dateEnd"] }
|
|
543
540
|
]
|
|
544
541
|
}
|
|
545
542
|
]
|
|
@@ -714,13 +711,30 @@ const productLookupConfigs = {
|
|
|
714
711
|
}
|
|
715
712
|
}]
|
|
716
713
|
},
|
|
717
|
-
// Лукап для аренд
|
|
714
|
+
// Лукап для аренд продуктов (статичный без дат)
|
|
718
715
|
rents: {
|
|
719
716
|
lookup: {
|
|
720
717
|
from: "rents",
|
|
721
718
|
localField: "_id",
|
|
722
719
|
foreignField: "product",
|
|
723
|
-
as: "rents"
|
|
720
|
+
as: "rents",
|
|
721
|
+
pipeline: [
|
|
722
|
+
{
|
|
723
|
+
$match: {
|
|
724
|
+
status: { $in: ["confirmed", "active"] }
|
|
725
|
+
}
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
$project: {
|
|
729
|
+
_id: 1,
|
|
730
|
+
product: 1,
|
|
731
|
+
startDate: 1,
|
|
732
|
+
endDate: 1,
|
|
733
|
+
quantity: 1,
|
|
734
|
+
status: 1
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
]
|
|
724
738
|
}
|
|
725
739
|
}
|
|
726
740
|
};
|
|
@@ -742,6 +756,15 @@ const controllerFactory = (db) => {
|
|
|
742
756
|
const Read = async (req, res) => {
|
|
743
757
|
try {
|
|
744
758
|
const requestedLookups = queryProcessorGlobals.getRequestedLookups(req.query);
|
|
759
|
+
if (req.query.dateStart || req.query.dateEnd) {
|
|
760
|
+
console.log("Availability filter params:", {
|
|
761
|
+
dateStart: req.query.dateStart,
|
|
762
|
+
dateEnd: req.query.dateEnd,
|
|
763
|
+
dateStartType: typeof req.query.dateStart,
|
|
764
|
+
dateEndType: typeof req.query.dateEnd
|
|
765
|
+
});
|
|
766
|
+
}
|
|
767
|
+
console.log("availability variant", JSON.stringify(...queryProcessorProducts.getAvailabilityFilterStage(req.query.dateStart, req.query.dateEnd), null, 2));
|
|
745
768
|
const stages = [
|
|
746
769
|
...queryProcessorGlobals.getBasicOptions(req.query),
|
|
747
770
|
...queryProcessorGlobals.getSearchOptions(req.query.search, {
|
|
@@ -754,9 +777,9 @@ const controllerFactory = (db) => {
|
|
|
754
777
|
...queryProcessorProducts.getCategoriesFilterStage(req.query.categories),
|
|
755
778
|
...queryProcessorProducts.getDeliveryFilterStage(req.query.delivery),
|
|
756
779
|
...queryProcessorProducts.getAttributeFiltersStage(req.query.filters),
|
|
757
|
-
...queryProcessorProducts.getVariantPriceFilterStage(req.query.prices),
|
|
758
|
-
...queryProcessorProducts.getAvailabilityFilterStage(req.query.dateStart, req.query.dateEnd),
|
|
759
780
|
...queryProcessorGlobals.getLookupStages(requestedLookups, productLookupConfigs),
|
|
781
|
+
...queryProcessorProducts.getVariantPriceFilterStage(req.query.priceMin, req.query.priceMax),
|
|
782
|
+
...queryProcessorProducts.getAvailabilityFilterStage(req.query.dateStart, req.query.dateEnd),
|
|
760
783
|
queryProcessorGlobals.getCreatorUserLookupStage(),
|
|
761
784
|
queryProcessorGlobals.getCreatorOrganizationLookupStage(),
|
|
762
785
|
queryProcessorGlobals.getOwnerUserLookupStage(),
|
|
@@ -975,6 +998,7 @@ const ProductModel = (db) => {
|
|
|
975
998
|
});
|
|
976
999
|
applyCommonSchema(ProductSchema);
|
|
977
1000
|
applyOwnershipSchema(ProductSchema, db);
|
|
1001
|
+
applyEngagementSchema(ProductSchema);
|
|
978
1002
|
ProductSchema.index({ name: "text", description: "text" });
|
|
979
1003
|
ProductSchema.index({ "owner.type": 1, "owner.target": 1, status: 1, category: 1 });
|
|
980
1004
|
ProductSchema.index({ category: 1, status: 1, delivery: 1, price: 1 });
|
package/dist/style.css
CHANGED
|
@@ -63,19 +63,22 @@
|
|
|
63
63
|
.background-div {
|
|
64
64
|
flex-grow: 1;
|
|
65
65
|
}
|
|
66
|
-
input[data-v-
|
|
67
|
-
textarea[data-v-
|
|
68
|
-
span[data-v-
|
|
66
|
+
input[data-v-36998019],
|
|
67
|
+
textarea[data-v-36998019],
|
|
68
|
+
span[data-v-36998019] {
|
|
69
69
|
color: inherit;
|
|
70
70
|
line-height: 1;
|
|
71
71
|
}
|
|
72
|
-
textarea[data-v-
|
|
72
|
+
textarea[data-v-36998019] {
|
|
73
73
|
resize: none;
|
|
74
74
|
overflow: hidden;
|
|
75
75
|
height: 1rem;
|
|
76
76
|
}
|
|
77
|
-
input[
|
|
78
|
-
|
|
77
|
+
input[data-v-36998019] {
|
|
78
|
+
height: 1rem;
|
|
79
|
+
}
|
|
80
|
+
input[type="date"][data-v-36998019]::-webkit-calendar-picker-indicator,
|
|
81
|
+
input[type="time"][data-v-36998019]::-webkit-calendar-picker-indicator {
|
|
79
82
|
filter: invert(1);
|
|
80
83
|
opacity: 1;
|
|
81
84
|
color: inherit;
|
|
@@ -779,7 +782,11 @@ button[data-v-2ba40647]:disabled {
|
|
|
779
782
|
overflow: hidden;
|
|
780
783
|
transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
781
784
|
}
|
|
782
|
-
.
|
|
785
|
+
.icon-custom {
|
|
786
|
+
background: white;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
.filters-content[data-v-e749b035] {
|
|
783
790
|
max-height: 60vh;
|
|
784
791
|
overflow-y: auto;
|
|
785
792
|
}
|
|
@@ -798,10 +805,6 @@ button[data-v-2ba40647]:disabled {
|
|
|
798
805
|
position: absolute;
|
|
799
806
|
}
|
|
800
807
|
|
|
801
|
-
.icon-custom {
|
|
802
|
-
background: white;
|
|
803
|
-
}
|
|
804
|
-
|
|
805
808
|
.t-trimmed {
|
|
806
809
|
font-size: 0;
|
|
807
810
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./main-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./main-XJQJFmgj.cjs");class p extends c.WebPlugin{constructor(){super(...arguments),this.group="CapacitorStorage"}async configure({group:e}){typeof e=="string"&&(this.group=e)}async get(e){return{value:this.impl.getItem(this.applyPrefix(e.key))}}async set(e){this.impl.setItem(this.applyPrefix(e.key),e.value)}async remove(e){this.impl.removeItem(this.applyPrefix(e.key))}async keys(){return{keys:this.rawKeys().map(t=>t.substring(this.prefix.length))}}async clear(){for(const e of this.rawKeys())this.impl.removeItem(e)}async migrate(){var e;const t=[],s=[],n="_cap_",o=Object.keys(this.impl).filter(i=>i.indexOf(n)===0);for(const i of o){const r=i.substring(n.length),a=(e=this.impl.getItem(i))!==null&&e!==void 0?e:"",{value:l}=await this.get({key:r});typeof l=="string"?s.push(r):(await this.set({key:r,value:a}),t.push(r))}return{migrated:t,existing:s}}async removeOld(){const e="_cap_",t=Object.keys(this.impl).filter(s=>s.indexOf(e)===0);for(const s of t)this.impl.removeItem(s)}get impl(){return window.localStorage}get prefix(){return this.group==="NativeStorage"?"":`${this.group}.`}rawKeys(){return Object.keys(this.impl).filter(e=>e.indexOf(this.prefix)===0)}applyPrefix(e){return this.prefix+e}}exports.PreferencesWeb=p;
|
package/package.json
CHANGED
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
:checked="Array.isArray(radio) ? radio.includes(value) : radio"
|
|
54
54
|
>
|
|
55
55
|
<div
|
|
56
|
-
class="cursor-pointer mn-l-thin flex-center"
|
|
56
|
+
class="cursor-pointer mn-l-thin flex-center field-wrapper"
|
|
57
57
|
:class="{
|
|
58
58
|
'transition-elastic pd-thin h-2r w-4r radius-extra': mode === 'switch',
|
|
59
59
|
'w-2r h-2r radius-small': mode === 'checkbox',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div v-if="search || date || (sort && !sort.hideButton)" style="transform: scale(1);" class="mn-b-thin pos-relative flex-nowrap flex gap-thin">
|
|
2
|
+
<div v-if="search || date || (sort && !sort.hideButton)" style="transform: scale(1);" class="mn-b-thin pos-relative z-index-2 pos-relative flex-nowrap flex gap-thin">
|
|
3
3
|
|
|
4
4
|
<BlockSearch
|
|
5
5
|
v-if="search"
|
|
@@ -143,6 +143,7 @@
|
|
|
143
143
|
class="w-100 h-min-100"
|
|
144
144
|
@page-loading="handlePageLoading"
|
|
145
145
|
@page-loaded="handlePageLoaded"
|
|
146
|
+
:key="componentKey"
|
|
146
147
|
/>
|
|
147
148
|
<!-- Key пока выключил непонятно какие проблемы это вызовет -->
|
|
148
149
|
<!-- :key="route.path" -->
|
|
@@ -193,7 +194,7 @@
|
|
|
193
194
|
|
|
194
195
|
|
|
195
196
|
<script setup>
|
|
196
|
-
import { computed, ref, onMounted
|
|
197
|
+
import { computed, ref, onMounted } from 'vue';
|
|
197
198
|
// Router
|
|
198
199
|
import { useRoute } from 'vue-router';
|
|
199
200
|
// Store
|
|
@@ -330,6 +331,16 @@
|
|
|
330
331
|
|
|
331
332
|
if (page.value) show.value = true
|
|
332
333
|
});
|
|
334
|
+
|
|
335
|
+
const componentKey = computed(() => {
|
|
336
|
+
// Собираем только значимые параметры (ID сущностей)
|
|
337
|
+
const significantParams = ['_id', 'product', 'organization', 'categoryPath']
|
|
338
|
+
.map(param => route.params[param])
|
|
339
|
+
.filter(Boolean)
|
|
340
|
+
.join('-');
|
|
341
|
+
|
|
342
|
+
return significantParams || route.name;
|
|
343
|
+
});
|
|
333
344
|
</script>
|
|
334
345
|
|
|
335
346
|
<style lang="scss">
|