@ozdao/martyrs 0.2.603 → 0.2.605
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 +2 -2
- package/dist/_virtual/dayjs.min.js +1 -1
- package/dist/_virtual/weekOfYear.js +1 -1
- package/dist/{abac-Blt8bUTL.js → abac-kz5xI99l.js} +1 -0
- package/dist/auth.server.js +52 -12
- package/dist/builder.js +67 -2
- package/dist/chats.server.js +2 -2
- package/dist/community.server.js +3 -3
- package/dist/core.server.js +2 -2
- package/dist/{core.websocket-Cl76z2wT.js → core.websocket-B2FA8gGl.js} +0 -2
- package/dist/{crud-BT5FIvQC.js → crud-Cwn0frBP.js} +8 -2
- package/dist/events.server.js +4 -4
- package/dist/files.server.js +1 -1
- package/dist/gallery.server.js +2 -2
- package/dist/governance.server.js +10 -10
- package/dist/{index-kvBwwb0w.js → index-CPACC651.js} +1 -1
- package/dist/inventory.server.js +4 -4
- package/dist/{mailing-DT7nbNjZ.js → mailing-BBCidXGr.js} +38 -2
- package/dist/marketplace.server.js +2 -2
- package/dist/martyrs/dist/martyrs.es3.js +1 -1
- package/dist/martyrs/dist/martyrs.es3.js.map +1 -1
- package/dist/{node_modules/.pnpm/dayjs@1.11.13 → martyrs/node_modules/.pnpm/dayjs@1.11.19}/node_modules/dayjs/dayjs.min.js +1 -1
- package/dist/{node_modules/.pnpm/dayjs@1.11.13 → martyrs/node_modules/.pnpm/dayjs@1.11.19}/node_modules/dayjs/dayjs.min.js.map +1 -1
- package/dist/{node_modules/.pnpm/dayjs@1.11.13 → martyrs/node_modules/.pnpm/dayjs@1.11.19}/node_modules/dayjs/plugin/weekOfYear.js +1 -1
- package/dist/{node_modules/.pnpm/dayjs@1.11.13 → martyrs/node_modules/.pnpm/dayjs@1.11.19}/node_modules/dayjs/plugin/weekOfYear.js.map +1 -1
- package/dist/{node_modules/.pnpm/vue-draggable-next@2.2.1_sortablejs@1.15.6_vue@3.5.13_typescript@5.8.3_ → martyrs/node_modules/.pnpm/vue-draggable-next@2.3.0_sortablejs@1.15.7_vue@3.5.13}/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js +305 -268
- package/dist/martyrs/node_modules/.pnpm/vue-draggable-next@2.3.0_sortablejs@1.15.7_vue@3.5.13/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js.map +1 -0
- package/dist/martyrs/src/components/Address/Address.vue2.js +13 -13
- package/dist/martyrs/src/components/Address/Address.vue2.js.map +1 -1
- package/dist/martyrs/src/components/Block/Block.vue.js +1 -1
- package/dist/martyrs/src/components/Button/Button.vue2.js +1 -1
- package/dist/martyrs/src/components/Button/Button.vue2.js.map +1 -1
- package/dist/martyrs/src/components/Calendar/Calendar.vue2.js +150 -143
- package/dist/martyrs/src/components/Calendar/Calendar.vue2.js.map +1 -1
- package/dist/martyrs/src/components/Chart/Chart.vue.js +296 -0
- package/dist/martyrs/src/components/Chart/Chart.vue.js.map +1 -0
- 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.js +5 -6
- package/dist/martyrs/src/components/Chips/Chips.vue.js.map +1 -1
- package/dist/martyrs/src/components/Countdown/Countdown.vue.js +5 -5
- package/dist/martyrs/src/components/Countdown/Countdown.vue.js.map +1 -1
- package/dist/martyrs/src/components/DatePicker/DatePicker.vue.js +2 -2
- package/dist/martyrs/src/components/DatePicker/DatePicker.vue.js.map +1 -1
- package/dist/martyrs/src/components/EditImages/EditImages.vue.js +4 -4
- package/dist/martyrs/src/components/EditImages/EditImages.vue.js.map +1 -1
- package/dist/martyrs/src/components/EmptyState/EmptyState.vue.js +1 -1
- package/dist/martyrs/src/components/Feed/Carousel.vue.js +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.js +4 -4
- package/dist/martyrs/src/components/Field/Field.vue.js.map +1 -1
- package/dist/martyrs/src/components/FieldDate/FieldDate.vue.js +3 -3
- package/dist/martyrs/src/components/FieldDate/FieldDate.vue.js.map +1 -1
- package/dist/martyrs/src/components/Loader/{Loader.vue2.js → Loader.vue.js} +2 -2
- package/dist/martyrs/src/components/Loader/Loader.vue.js.map +1 -0
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.js +27 -21
- package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.js.map +1 -1
- package/dist/martyrs/src/components/Map/Map.vue.js +20 -16
- package/dist/martyrs/src/components/Map/Map.vue.js.map +1 -1
- package/dist/martyrs/src/components/Media/Media.vue.js +1 -1
- package/dist/martyrs/src/components/Popup/Popup.vue.js +3 -4
- package/dist/martyrs/src/components/Popup/Popup.vue.js.map +1 -1
- package/dist/martyrs/src/components/Radio/Radio.vue.js +12 -10
- package/dist/martyrs/src/components/Radio/Radio.vue.js.map +1 -1
- package/dist/martyrs/src/components/Select/Select.vue.js +2 -2
- package/dist/martyrs/src/components/Select/Select.vue.js.map +1 -1
- package/dist/martyrs/src/components/Status/Snack.vue.js +1 -1
- package/dist/martyrs/src/components/Status/Snack.vue.js.map +1 -1
- package/dist/martyrs/src/components/Status/Status.vue.js +1 -1
- package/dist/martyrs/src/components/Status/Status.vue.js.map +1 -1
- package/dist/martyrs/src/components/Tab/{Tab.vue.js → Tab.vue2.js} +2 -2
- package/dist/martyrs/src/components/Tab/Tab.vue2.js.map +1 -0
- package/dist/martyrs/src/components/Table/Table.vue.js +21 -4
- package/dist/martyrs/src/components/Table/Table.vue.js.map +1 -1
- package/dist/martyrs/src/components/Tooltip/{Tooltip.vue2.js → Tooltip.vue.js} +2 -2
- package/dist/martyrs/src/components/Tooltip/Tooltip.vue.js.map +1 -0
- package/dist/martyrs/src/components/Tree/Tree.vue.js +1 -1
- package/dist/martyrs/src/components/Upload/Upload.vue2.js +2 -2
- package/dist/martyrs/src/components/Upload/Upload.vue2.js.map +1 -1
- package/dist/martyrs/src/components/UploadImage/UploadImage.vue.js +3 -3
- package/dist/martyrs/src/components/UploadImage/UploadImage.vue.js.map +1 -1
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +2 -2
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/auth.client.js +14 -2
- package/dist/martyrs/src/modules/auth/auth.client.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/blocks/OtpDialog.vue.js +4 -4
- package/dist/martyrs/src/modules/auth/views/components/blocks/OtpDialog.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/blocks/PopupAuth.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/blocks/PopupAuth.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/blocks/SidebarUserCard.vue.js +96 -0
- package/dist/martyrs/src/modules/auth/views/components/blocks/SidebarUserCard.vue.js.map +1 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/BackofficeUsers.vue.js +337 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/BackofficeUsers.vue.js.map +1 -0
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +1 -1
- 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.js +33 -19
- 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.js +76 -40
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js +6 -5
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditSidebar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +5 -5
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +6 -4
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +4 -4
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/UserDashboard.vue.js +28 -16
- package/dist/martyrs/src/modules/auth/views/components/pages/UserDashboard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/FeaturedUsers.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/middlewares/auth.validation.js +6 -2
- package/dist/martyrs/src/modules/auth/views/middlewares/auth.validation.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/router/users.backoffice.router.js +53 -0
- package/dist/martyrs/src/modules/auth/views/router/users.backoffice.router.js.map +1 -0
- package/dist/martyrs/src/modules/auth/views/store/auth.js +3 -3
- package/dist/martyrs/src/modules/auth/views/store/auth.js.map +1 -1
- package/dist/martyrs/src/modules/backoffice/components/pages/Dashboard.vue.js +179 -253
- package/dist/martyrs/src/modules/backoffice/components/pages/Dashboard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/backoffice/configs/navigation.backoffice.config.js +105 -44
- package/dist/martyrs/src/modules/backoffice/configs/navigation.backoffice.config.js.map +1 -1
- package/dist/martyrs/src/modules/backoffice/router/backoffice.router.js +11 -5
- package/dist/martyrs/src/modules/backoffice/router/backoffice.router.js.map +1 -1
- package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.js +1 -1
- package/dist/martyrs/src/modules/chats/components/blocks/ChatMessage.vue.js.map +1 -1
- package/dist/martyrs/src/modules/chats/components/sections/ChatWindow.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/community.client.js +4 -4
- package/dist/martyrs/src/modules/community/community.client.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js +4 -4
- package/dist/martyrs/src/modules/community/components/layouts/Community.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/sections/Comment.vue.js +2 -2
- package/dist/martyrs/src/modules/community/components/sections/Comment.vue.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/sections/Comments.vue.js +1 -1
- package/dist/martyrs/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
- package/dist/martyrs/src/modules/constructor/components/elements/ImageUpload.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/core.client.js +18 -16
- package/dist/martyrs/src/modules/core/core.client.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/classes/core.app.js +25 -6
- package/dist/martyrs/src/modules/core/views/classes/core.app.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/classes/module.manager.js +4 -2
- package/dist/martyrs/src/modules/core/views/classes/module.manager.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/AlertDialog.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/AlertDialog.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/BlockSearch.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/BlockSlider.vue.js +132 -0
- package/dist/martyrs/src/modules/core/views/components/blocks/BlockSlider.vue.js.map +1 -0
- package/dist/martyrs/src/modules/core/views/components/blocks/CardHeader.vue.js +3 -3
- package/dist/martyrs/src/modules/core/views/components/blocks/CardHeader.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/CardStat.vue.js +6 -28
- package/dist/martyrs/src/modules/core/views/components/blocks/CardStat.vue.js.map +1 -1
- package/dist/martyrs/src/modules/{auth → core}/views/components/blocks/CardUser.vue.js +29 -11
- package/dist/martyrs/src/modules/{auth → core}/views/components/blocks/CardUser.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/HelpCard.vue.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/blocks/HelpCard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/blocks/PopupDateSelector.vue.js +42 -27
- package/dist/martyrs/src/modules/core/views/components/blocks/PopupDateSelector.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/elements/OnlineIndicator.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/layouts/App.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js +4 -3
- package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/pages/404.vue.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/pages/404.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/BottomNavigationBar.vue.js +5 -5
- package/dist/martyrs/src/modules/core/views/components/partials/BottomNavigationBar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/CitySelection.vue.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/partials/CitySelection.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/Footer.vue.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/partials/Footer.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/Header.vue.js +4 -4
- package/dist/martyrs/src/modules/core/views/components/partials/Header.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/LocationSelection.vue.js +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/LocationSelection.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/partials/Navigation.vue.js +2 -2
- package/dist/martyrs/src/modules/core/views/components/partials/Navigation.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/sections/{Filters.vue.js → Filters.vue2.js} +5 -5
- package/dist/martyrs/src/modules/core/views/components/sections/Filters.vue2.js.map +1 -0
- package/dist/martyrs/src/modules/core/views/components/sections/SectionPageTitle.vue.js +3 -3
- package/dist/martyrs/src/modules/core/views/components/sections/SectionPageTitle.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/sections/Walkthrough.vue.js +7 -7
- package/dist/martyrs/src/modules/core/views/components/sections/Walkthrough.vue.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/mixins/mixins.js +14 -1
- package/dist/martyrs/src/modules/core/views/mixins/mixins.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/plugins/date-picker.plugin.js +8 -5
- package/dist/martyrs/src/modules/core/views/plugins/date-picker.plugin.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/store/core.store.js +5 -1
- package/dist/martyrs/src/modules/core/views/store/core.store.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/utils/vue-app-renderer.js +3 -0
- package/dist/martyrs/src/modules/core/views/utils/vue-app-renderer.js.map +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.js +9 -9
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +3 -3
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/EditTickets.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/sections/EditTickets.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/components/sections/Feed.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/sections/List.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/sections/SelectDate.vue.js.map +1 -1
- package/dist/martyrs/src/modules/events/events.client.js +4 -4
- package/dist/martyrs/src/modules/events/events.client.js.map +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js.map +1 -1
- package/dist/martyrs/src/modules/gallery/router/gallery.router.js +3 -3
- package/dist/martyrs/src/modules/gallery/router/gallery.router.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardInitiativeItem.vue.js +5 -5
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardInitiativeItem.vue.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardSprintItem.vue.js +6 -6
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardSprintItem.vue.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardTaskItem.vue.js +4 -4
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardTaskItem.vue.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardVotingItem.vue.js +5 -5
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardVotingItem.vue.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/components/pages/Initiative.vue.js +2 -2
- package/dist/martyrs/src/modules/governance/views/components/pages/InitiativeCreate.vue.js +2 -2
- package/dist/martyrs/src/modules/governance/views/components/pages/InitiativeSprints.vue.js +2 -2
- package/dist/martyrs/src/modules/governance/views/components/pages/Initiatives.vue.js +5 -5
- package/dist/martyrs/src/modules/governance/views/components/pages/Initiatives.vue.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/components/pages/Sprint.vue.js +2 -2
- package/dist/martyrs/src/modules/governance/views/components/pages/SprintCreate.vue.js +2 -2
- package/dist/martyrs/src/modules/governance/views/components/pages/Task.vue.js +2 -2
- package/dist/martyrs/src/modules/governance/views/components/pages/TaskCreate.vue.js +2 -2
- package/dist/martyrs/src/modules/governance/views/components/pages/Tasks.vue.js +2 -2
- package/dist/martyrs/src/modules/governance/views/components/pages/Voting.vue.js +2 -2
- package/dist/martyrs/src/modules/governance/views/components/pages/VotingCreate.vue.js +2 -2
- package/dist/martyrs/src/modules/governance/views/components/partials/LinkedEntityCard.vue.js +2 -2
- package/dist/martyrs/src/modules/governance/views/components/partials/TaskStatusBadge.vue.js +1 -1
- package/dist/martyrs/src/modules/governance/views/components/partials/TaskStatusBadge.vue.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/components/partials/VotingResults.vue.js +2 -2
- package/dist/martyrs/src/modules/governance/views/components/sections/FormSprintDetails.vue.js +1 -1
- package/dist/martyrs/src/modules/governance/views/components/sections/FormSprintDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/components/sections/FormTaskDetails.vue.js +1 -1
- package/dist/martyrs/src/modules/governance/views/components/sections/FormTaskDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/router/governance.router.js +3 -3
- package/dist/martyrs/src/modules/governance/views/router/governance.router.js.map +1 -1
- package/dist/martyrs/src/modules/icons/components/IconSearchPopup.vue.js +2 -2
- package/dist/martyrs/src/modules/icons/components/IconSearchPopup.vue.js.map +1 -1
- package/dist/martyrs/src/modules/icons/entities/IconApplications.vue.js +32 -0
- package/dist/martyrs/src/modules/icons/entities/IconApplications.vue.js.map +1 -0
- package/dist/martyrs/src/modules/icons/entities/IconCustomers.vue.js +32 -0
- package/dist/martyrs/src/modules/icons/entities/IconCustomers.vue.js.map +1 -0
- package/dist/martyrs/src/modules/icons/entities/IconUsers.vue.js +32 -0
- package/dist/martyrs/src/modules/icons/entities/IconUsers.vue.js.map +1 -0
- package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js +2 -2
- package/dist/martyrs/src/modules/inventory/components/forms/AdjustmentForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/ColumnSettingsMenu.vue.js +2 -2
- package/dist/martyrs/src/modules/inventory/components/forms/ColumnSettingsMenu.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.js +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/HistoryView.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js +3 -3
- package/dist/martyrs/src/modules/inventory/components/forms/StockAlertsForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.js +290 -173
- package/dist/martyrs/src/modules/inventory/components/pages/Inventory.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/inventory/components/pages/InventoryEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/inventory.client.js +4 -4
- package/dist/martyrs/src/modules/inventory/inventory.client.js.map +1 -1
- package/dist/martyrs/src/modules/inventory/router/inventory.router.js +15 -0
- package/dist/martyrs/src/modules/inventory/router/inventory.router.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionEarn.vue.js +4 -4
- package/dist/martyrs/src/modules/landing/components/sections/SectionEarn.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeatures.vue.js +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeatures.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.js +3 -3
- package/dist/martyrs/src/modules/landing/components/sections/SectionFeaturesImages.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.js +2 -2
- package/dist/martyrs/src/modules/landing/components/sections/SectionGuide.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionHeroToken.vue.js +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionHeroToken.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.js +2 -2
- package/dist/martyrs/src/modules/landing/components/sections/SectionMobileApp.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionOverview.vue.js +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionOverview.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SectionRoadmap.vue.js +2 -2
- package/dist/martyrs/src/modules/landing/components/sections/SectionRoadmap.vue.js.map +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +1 -1
- package/dist/martyrs/src/modules/landing/components/sections/SubscribeNewsletter.vue.js.map +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/pages/Marketplace.vue.js +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.js +4 -4
- package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/cards/AlbumCard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/cards/ArtistCard.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/cards/ArtistCard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/cards/ArtistCardSmall.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/cards/PlaylistCard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.js +6 -6
- package/dist/martyrs/src/modules/music/components/cards/TrackListCard.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/forms/AlbumForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js +5 -5
- package/dist/martyrs/src/modules/music/components/forms/PlaylistForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js +3 -3
- package/dist/martyrs/src/modules/music/components/forms/TrackForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +9 -9
- package/dist/martyrs/src/modules/music/components/pages/Album.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js +6 -6
- package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +12 -12
- package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js +4 -4
- package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +12 -12
- package/dist/martyrs/src/modules/music/components/pages/Track.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/player/FullscreenPlayer.vue.js +4 -4
- package/dist/martyrs/src/modules/music/components/player/FullscreenPlayer.vue.js.map +1 -1
- package/dist/martyrs/src/modules/music/components/player/TrackProgress.vue.js +2 -2
- package/dist/martyrs/src/modules/music/components/player/TrackProgress.vue.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/components/sections/NotificationPreferences.vue.js +163 -69
- package/dist/martyrs/src/modules/notifications/components/sections/NotificationPreferences.vue.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/notifications.client.js +183 -19
- package/dist/martyrs/src/modules/notifications/notifications.client.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/router/notifications.backoffice.router.js +21 -0
- package/dist/martyrs/src/modules/notifications/router/notifications.backoffice.router.js.map +1 -0
- package/dist/martyrs/src/modules/notifications/router/notifications.router.js +13 -42
- package/dist/martyrs/src/modules/notifications/router/notifications.router.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/store/notifications.store.js +67 -2
- package/dist/martyrs/src/modules/notifications/store/notifications.store.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.js +9 -7
- package/dist/martyrs/src/modules/orders/components/blocks/CardApplication.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.js +11 -9
- package/dist/martyrs/src/modules/orders/components/blocks/CardCustomer.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrder.vue.js +9 -9
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrder.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.js +66 -19
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.js +29 -27
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderItem.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.js +7 -12
- package/dist/martyrs/src/modules/orders/components/blocks/CardOrderUser.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/elements/PriceTotal.vue.js +4 -4
- package/dist/martyrs/src/modules/orders/components/elements/PriceTotal.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormApplicationDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js +46 -25
- package/dist/martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/Applications.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.js +54 -38
- package/dist/martyrs/src/modules/orders/components/pages/Customers.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +454 -139
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +2 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +141 -68
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js +38 -32
- package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/partials/ShopCart.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/partials/ShopCart.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js +4 -4
- package/dist/martyrs/src/modules/orders/components/sections/ApplicationDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/AskToLogin.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/AskToLogin.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js +167 -95
- package/dist/martyrs/src/modules/orders/components/sections/CustomerDetails.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/orders.client.js +22 -20
- package/dist/martyrs/src/modules/orders/orders.client.js.map +1 -1
- package/dist/martyrs/src/modules/orders/store/orders.js +3 -5
- package/dist/martyrs/src/modules/orders/store/orders.js.map +1 -1
- package/dist/martyrs/src/modules/orders/store/shopcart.js +6 -6
- package/dist/martyrs/src/modules/orders/store/shopcart.js.map +1 -1
- package/dist/martyrs/src/modules/orders/utils/rent-price.js +60 -0
- package/dist/martyrs/src/modules/orders/utils/rent-price.js.map +1 -0
- package/dist/martyrs/src/modules/organizations/components/blocks/CardDepartment.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js +45 -55
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/EmptyState.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/Rating.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/Socials.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/blocks/Socials.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js +3 -3
- package/dist/martyrs/src/modules/organizations/components/forms/AddExistingMembersForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/DepartmentForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/forms/InviteForm.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Department.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +8 -8
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +216 -83
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +38 -28
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +3 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js.map +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.js +20 -18
- package/dist/martyrs/src/modules/organizations/configs/navigation.organization.config.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/organizations.client.js +39 -33
- package/dist/martyrs/src/modules/organizations/organizations.client.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/router/organizations.backoffice.router.js +81 -0
- package/dist/martyrs/src/modules/organizations/router/organizations.backoffice.router.js.map +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/Pages.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/Pages.vue.js.map +1 -1
- package/dist/martyrs/src/modules/pages/views/router/pages.router.js +2 -2
- package/dist/martyrs/src/modules/pages/views/router/pages.router.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardPosition.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/blocks/CardProduct.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/blocks/ProductVariants.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/elements/Image360.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/elements/Price.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/elements/Price.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +9 -25
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +34 -17
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +98 -98
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +22 -9
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/FilterProducts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +4 -4
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/router/categories.router.js +2 -2
- package/dist/martyrs/src/modules/products/router/categories.router.js.map +1 -1
- package/dist/martyrs/src/modules/products/router/products.router.js +17 -3
- package/dist/martyrs/src/modules/products/router/products.router.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttBar.vue.js +11 -10
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttBar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttChart.vue.js +197 -81
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttChart.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttHeaderCell.vue.js +2 -2
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttHeaderCell.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js +3 -3
- package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js +685 -80
- package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js +68 -18
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/router/rents.router.js +3 -3
- package/dist/martyrs/src/modules/rents/views/router/rents.router.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/store/rents.store.js +1 -1
- package/dist/martyrs/src/modules/rents/views/store/rents.store.js.map +1 -1
- package/dist/martyrs/src/modules/reports/components/pages/BackofficeReports.vue.js +3 -3
- package/dist/martyrs/src/modules/reports/components/pages/BackofficeReports.vue.js.map +1 -1
- package/dist/martyrs/src/modules/reports/router/reports.router.js +1 -1
- package/dist/martyrs/src/modules/reports/router/reports.router.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js +5 -5
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Map.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.js +3 -3
- package/dist/martyrs/src/modules/spots/components/pages/Spot.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +10 -8
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js +29 -37
- package/dist/martyrs/src/modules/spots/components/pages/Spots.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +8 -8
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/router/spots.router.js +3 -3
- package/dist/martyrs/src/modules/spots/router/spots.router.js.map +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js +3 -3
- package/dist/martyrs/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js.map +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/pages/Payments.vue.js +1 -1
- package/dist/martyrs/src/modules/wallet/views/components/pages/Payments.vue.js.map +1 -1
- package/dist/martyrs/src/modules/wallet/views/router/wallet.router.js +1 -1
- package/dist/martyrs/src/modules/wallet/views/router/wallet.router.js.map +1 -1
- package/dist/martyrs.es10.js +59 -57
- package/dist/martyrs.es101.js +39 -0
- package/dist/martyrs.es102.js +24 -32
- package/dist/martyrs.es104.js +27 -0
- package/dist/martyrs.es105.js +6 -25
- package/dist/martyrs.es106.js +6 -5
- package/dist/martyrs.es107.js +76 -6
- package/dist/martyrs.es108.js +5 -77
- package/dist/martyrs.es109.js +119 -5
- package/dist/martyrs.es11.js +31 -30
- package/dist/martyrs.es112.js +2 -119
- package/dist/martyrs.es113.js +25 -0
- package/dist/martyrs.es114.js +7 -0
- package/dist/martyrs.es115.js +8 -2
- package/dist/martyrs.es116.js +166 -22
- package/dist/martyrs.es117.js +457 -4
- package/dist/martyrs.es118.js +40 -8
- package/dist/martyrs.es119.js +9 -166
- package/dist/martyrs.es12.js +8 -9
- package/dist/martyrs.es120.js +43 -451
- package/dist/martyrs.es121.js +10 -38
- package/dist/martyrs.es122.js +44 -9
- package/dist/martyrs.es123.js +4 -49
- package/dist/martyrs.es124.js +127 -10
- package/dist/martyrs.es125.js +98 -42
- package/dist/martyrs.es126.js +86 -4
- package/dist/martyrs.es127.js +29 -120
- package/dist/martyrs.es128.js +10 -99
- package/dist/martyrs.es129.js +24 -71
- package/dist/martyrs.es13.js +22 -19
- package/dist/martyrs.es130.js +8 -37
- package/dist/martyrs.es131.js +115 -10
- package/dist/martyrs.es132.js +16 -38
- package/dist/martyrs.es133.js +15 -8
- package/dist/martyrs.es135.js +28 -112
- package/dist/martyrs.es136.js +9 -17
- package/dist/martyrs.es137.js +19 -14
- package/dist/martyrs.es138.js +8 -32
- package/dist/martyrs.es139.js +9 -9
- package/dist/martyrs.es14.js +2 -2
- package/dist/martyrs.es140.js +43 -19
- package/dist/martyrs.es141.js +480 -9
- package/dist/martyrs.es142.js +5 -8
- package/dist/martyrs.es143.js +2 -45
- package/dist/martyrs.es144.js +11 -480
- package/dist/martyrs.es145.js +30 -5
- package/dist/martyrs.es146.js +17 -2
- package/dist/martyrs.es147.js +19 -11
- package/dist/martyrs.es148.js +27 -29
- package/dist/martyrs.es149.js +20 -16
- package/dist/martyrs.es2.js +31 -30
- package/dist/martyrs.es22.js +16 -16
- package/dist/martyrs.es23.js +8 -8
- package/dist/martyrs.es24.js +9 -9
- package/dist/martyrs.es26.js +9 -11
- package/dist/martyrs.es27.js +9 -9
- package/dist/martyrs.es28.js +1 -1
- package/dist/martyrs.es29.js +5 -5
- package/dist/martyrs.es3.js +1 -1
- package/dist/martyrs.es38.js +1 -1
- package/dist/martyrs.es4.js +12 -12
- package/dist/martyrs.es41.js +34 -224
- package/dist/martyrs.es5.js +251 -238
- package/dist/martyrs.es54.js +2 -2
- package/dist/martyrs.es61.js +33 -26
- package/dist/martyrs.es71.js +2 -2
- package/dist/martyrs.es74.js +8 -8
- package/dist/martyrs.es75.js +1 -1
- package/dist/martyrs.es76.js +18 -18
- package/dist/martyrs.es77.js +1 -1
- package/dist/martyrs.es78.js +1 -1
- package/dist/martyrs.es8.js +31 -31
- package/dist/martyrs.es91.js +1 -1
- package/dist/martyrs.es92.js +33 -5
- package/dist/martyrs.es94.js +41 -0
- package/dist/martyrs.es95.js +46 -28
- package/dist/martyrs.es96.js +116 -52
- package/dist/martyrs.es97.js +33 -113
- package/dist/martyrs.es98.js +76 -33
- package/dist/martyrs.es99.js +24 -77
- package/dist/music.server.js +3 -3
- package/dist/node_modules/.pnpm/@capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.js +1 -1
- package/dist/node_modules/.pnpm/@capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.js +1 -1
- package/dist/node_modules/.pnpm/@googlemaps_js-api-loader@2.0.2/node_modules/@googlemaps/js-api-loader/dist/index.js +90 -0
- package/dist/node_modules/.pnpm/@googlemaps_js-api-loader@2.0.2/node_modules/@googlemaps/js-api-loader/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.4.4/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/index.js +1 -1
- package/dist/node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.4.4/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/web.js +1 -1
- package/dist/notifications.server.js +255 -23
- package/dist/orders.server.js +674 -136
- package/dist/organizations.server.js +11 -6
- package/dist/products.server.js +68 -7
- package/dist/{queryProcessor-C_5Iipam.js → queryProcessor-B2FCngFP.js} +3 -2
- package/dist/rents.server.js +183 -7
- package/dist/{socials.schema-DxnnaBgO.js → socials.schema-C3RjkqJv.js} +4 -0
- package/dist/spots.server.js +1 -1
- package/dist/style.css +292 -204
- package/dist/{tickets.controller-DdF85W-i.js → tickets.controller-Dpzf4kQx.js} +1 -1
- package/dist/wallet.server.js +2 -2
- package/package.json +5 -3
- package/src/builder/modes/ssr.rspack.dev.js +2 -0
- package/src/builder/rspack/rspack.config.ssr.client.js +58 -1
- package/src/builder/ssr/asset-resolver.js +1 -1
- package/src/builder/templates/page.js +2 -0
- package/src/components/Address/Address.vue +16 -16
- package/src/components/Button/Button.vue +0 -1
- package/src/components/ButtonSegmented/ButtonSegmented.vue +1 -1
- package/src/components/Calendar/Calendar.vue +141 -118
- package/src/components/Chart/Chart.vue +216 -0
- package/src/components/Checkbox/Checkbox.vue +1 -1
- package/src/components/Chips/Chips.vue +4 -5
- package/src/components/Countdown/Countdown.vue +5 -5
- package/src/components/DatePicker/DatePicker.vue +2 -2
- package/src/components/EditImages/EditImages.vue +3 -3
- package/src/components/EmptyState/EmptyState.vue +1 -1
- package/src/components/Feed/Feed.vue +5 -0
- package/src/components/Field/Field.vue +3 -3
- package/src/components/FieldDate/FieldDate.vue +2 -2
- package/src/components/LocationMarker/LocationMarker.vue +28 -21
- package/src/components/Map/Map.vue +20 -15
- package/src/components/Popup/Popup.vue +3 -3
- package/src/components/Radio/Radio.vue +2 -2
- package/src/components/Select/Select.vue +1 -1
- package/src/components/Status/Snack.vue +1 -1
- package/src/components/Status/Status.vue +1 -1
- package/src/components/Table/Table.vue +16 -1
- package/src/components/Upload/Upload.vue +1 -1
- package/src/components/UploadImage/UploadImage.vue +1 -1
- package/src/components/UploadImageMultiple/UploadImageMultiple.vue +1 -1
- package/src/jit/rules.js +4 -0
- package/src/modules/TASKS.MD +16 -3
- package/src/modules/auth/auth.client.js +18 -3
- package/src/modules/auth/controllers/routes/users.routes.js +18 -0
- package/src/modules/auth/controllers/services/auth.service.js +3 -3
- package/src/modules/auth/controllers/services/users.service.js +34 -5
- package/src/modules/auth/views/components/blocks/OtpDialog.vue +4 -4
- package/src/modules/auth/views/components/blocks/PopupAuth.vue +1 -1
- package/src/modules/auth/views/components/blocks/SidebarUserCard.vue +95 -0
- package/src/modules/auth/views/components/pages/BackofficeUsers.vue +337 -0
- package/src/modules/auth/views/components/pages/Invite.vue +1 -1
- package/src/modules/auth/views/components/pages/Profile.vue +1 -1
- package/src/modules/auth/views/components/pages/ProfileEdit.vue +23 -14
- package/src/modules/auth/views/components/pages/ProfileEditAccount.vue +45 -26
- package/src/modules/auth/views/components/pages/ProfileEditSidebar.vue +8 -7
- package/src/modules/auth/views/components/pages/ResetPassword.vue +4 -4
- package/src/modules/auth/views/components/pages/SignUp.vue +3 -3
- package/src/modules/auth/views/components/pages/UserDashboard.vue +8 -5
- package/src/modules/auth/views/components/sections/FeaturedUsers.vue +1 -1
- package/src/modules/auth/views/components/sections/SliderFeatures.vue +1 -1
- package/src/modules/auth/views/middlewares/auth.validation.js +7 -2
- package/src/modules/auth/views/router/users.backoffice.router.js +39 -0
- package/src/modules/auth/views/store/auth.js +2 -2
- package/src/modules/backoffice/components/admin/Backcalls.vue +2 -2
- package/src/modules/backoffice/components/admin/Dashboard.sublime-workspace +1 -1
- package/src/modules/backoffice/components/admin/FastOrders.vue +3 -3
- package/src/modules/backoffice/components/admin/UserEdit.vue +1 -1
- package/src/modules/backoffice/components/pages/Dashboard.vue +102 -139
- package/src/modules/backoffice/configs/navigation.backoffice.config.js +91 -29
- package/src/modules/backoffice/router/backoffice.router.js +7 -1
- package/src/modules/chats/components/blocks/ChatMessage.vue +1 -1
- package/src/modules/chats/components/sections/ChatWindow.vue +1 -1
- package/src/modules/community/community.client.js +4 -4
- package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
- package/src/modules/community/components/layouts/Community.vue +4 -4
- package/src/modules/community/components/sections/Comment.vue +1 -1
- package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
- package/src/modules/core/TASK.MD +2 -2
- package/src/modules/core/controllers/classes/abac/abac.core.js +1 -0
- package/src/modules/core/controllers/classes/core.websocket.js +0 -2
- package/src/modules/core/controllers/classes/crud/crud.core.js +6 -0
- package/src/modules/core/controllers/classes/crud/crud.service.js +6 -0
- package/src/modules/core/controllers/utils/mailing.js +35 -26
- package/src/modules/core/controllers/utils/queryProcessor.js +4 -2
- package/src/modules/core/core.client.js +1 -0
- package/src/modules/core/models/schemas/embedding.schema.js +8 -0
- package/src/modules/core/models/schemas/socials.schema.js +4 -0
- package/src/modules/core/sw.js +448 -0
- package/src/modules/core/views/classes/core.app.js +37 -13
- package/src/modules/core/views/classes/module.manager.js +3 -1
- package/src/modules/core/views/components/blocks/AlertDialog.vue +1 -1
- package/src/modules/core/views/components/blocks/BlockSearch.vue +1 -1
- package/src/modules/core/views/components/blocks/BlockSlider.vue +96 -0
- package/src/modules/core/views/components/blocks/CardHeader.vue +2 -2
- package/src/modules/core/views/components/blocks/CardStat.vue +4 -18
- package/src/modules/{auth → core}/views/components/blocks/CardUser.vue +45 -20
- package/src/modules/core/views/components/blocks/HelpCard.vue +1 -1
- package/src/modules/core/views/components/blocks/PopupAuth.vue +1 -1
- package/src/modules/core/views/components/blocks/PopupDateSelector.vue +41 -24
- package/src/modules/core/views/components/layouts/Client.vue +1 -1
- package/src/modules/core/views/components/pages/404.vue +5 -5
- package/src/modules/core/views/components/partials/BottomNavigationBar.vue +5 -5
- package/src/modules/core/views/components/partials/CitySelection.vue +2 -2
- package/src/modules/core/views/components/partials/Footer.centered.vue +2 -2
- package/src/modules/core/views/components/partials/Footer.vue +2 -2
- package/src/modules/core/views/components/partials/Header.vue +3 -3
- package/src/modules/core/views/components/partials/LocationSelection.vue +1 -1
- package/src/modules/core/views/components/partials/Navigation.vue +1 -1
- package/src/modules/core/views/components/sections/Filters.vue +2 -2
- package/src/modules/core/views/components/sections/SectionPageTitle.vue +2 -2
- package/src/modules/core/views/components/sections/Walkthrough.vue +6 -6
- package/src/modules/core/views/mixins/mixins.js +17 -0
- package/src/modules/core/views/plugins/date-picker.plugin.js +8 -5
- package/src/modules/core/views/store/core.store.js +5 -0
- package/src/modules/core/views/utils/vue-app-renderer.js +5 -0
- package/src/modules/events/components/pages/EditEventTickets.vue +9 -9
- package/src/modules/events/components/pages/Event.vue +2 -2
- package/src/modules/events/components/sections/EditTickets.vue +1 -1
- package/src/modules/events/components/sections/SelectDate.vue +1 -1
- package/src/modules/events/events.client.js +4 -4
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +1 -1
- package/src/modules/gallery/router/gallery.router.js +3 -3
- package/src/modules/governance/middlewares/sprints.verifier.js +3 -3
- package/src/modules/governance/middlewares/tasks.verifier.js +3 -3
- package/src/modules/governance/models/sprint.model.js +1 -1
- package/src/modules/governance/models/task.model.js +1 -1
- package/src/modules/governance/reactcode/src/components/TaskStatusBadge.tsx +1 -1
- package/src/modules/governance/views/components/blocks/CardInitiativeItem.vue +3 -3
- package/src/modules/governance/views/components/blocks/CardSprintItem.vue +4 -4
- package/src/modules/governance/views/components/blocks/CardTaskItem.vue +2 -2
- package/src/modules/governance/views/components/blocks/CardVotingItem.vue +3 -3
- package/src/modules/governance/views/components/pages/Initiatives.vue +3 -3
- package/src/modules/governance/views/components/partials/TaskStatusBadge.vue +1 -1
- package/src/modules/governance/views/components/sections/FormSprintDetails.vue +1 -1
- package/src/modules/governance/views/components/sections/FormTaskDetails.vue +1 -1
- package/src/modules/governance/views/router/governance.router.js +3 -3
- package/src/modules/icons/components/IconSearchPopup.vue +1 -1
- package/src/modules/icons/entities/IconApplications.vue +14 -0
- package/src/modules/icons/entities/IconCustomers.vue +14 -0
- package/src/modules/icons/entities/IconUsers.vue +14 -0
- package/src/modules/inventory/components/forms/AdjustmentForm.vue +2 -2
- package/src/modules/inventory/components/forms/ColumnSettingsMenu.vue +2 -2
- package/src/modules/inventory/components/forms/HistoryView.vue +1 -1
- package/src/modules/inventory/components/forms/StockAlertsForm.vue +3 -3
- package/src/modules/inventory/components/pages/Inventory.vue +278 -159
- package/src/modules/inventory/components/pages/InventoryEdit.vue +2 -2
- package/src/modules/inventory/inventory.client.js +4 -4
- package/src/modules/inventory/models/stock.audit.model.js +1 -1
- package/src/modules/inventory/router/inventory.router.js +12 -0
- package/src/modules/landing/components/sections/SectionEarn.vue +3 -3
- package/src/modules/landing/components/sections/SectionFeature.vue +1 -1
- package/src/modules/landing/components/sections/SectionFeatures.vue +1 -1
- package/src/modules/landing/components/sections/SectionFeaturesImages.vue +2 -2
- package/src/modules/landing/components/sections/SectionGuide.vue +2 -2
- package/src/modules/landing/components/sections/SectionHeroToken.vue +1 -1
- package/src/modules/landing/components/sections/SectionHeroVideo.vue +1 -1
- package/src/modules/landing/components/sections/SectionMobileApp.vue +2 -2
- package/src/modules/landing/components/sections/SectionOverview.vue +1 -1
- package/src/modules/landing/components/sections/SectionRoadmap.vue +1 -1
- package/src/modules/landing/components/sections/SubscribeNewsletter.vue +1 -1
- package/src/modules/marketplace/views/components/sections/SectionMenu.vue +2 -2
- package/src/modules/music/components/SidebarMusic.vue +1 -1
- package/src/modules/music/components/cards/AlbumCard.vue +1 -1
- package/src/modules/music/components/cards/ArtistCard.vue +1 -1
- package/src/modules/music/components/cards/ArtistCardSmall.vue +1 -1
- package/src/modules/music/components/cards/PlaylistCard.vue +1 -1
- package/src/modules/music/components/cards/TrackListCard.vue +6 -6
- package/src/modules/music/components/forms/AlbumForm.vue +2 -2
- package/src/modules/music/components/forms/ArtistForm.vue +1 -1
- package/src/modules/music/components/forms/PlaylistForm.vue +5 -5
- package/src/modules/music/components/forms/TrackForm.vue +3 -3
- package/src/modules/music/components/pages/Album.vue +8 -8
- package/src/modules/music/components/pages/Artist.vue +5 -5
- package/src/modules/music/components/pages/Playlist.vue +11 -11
- package/src/modules/music/components/pages/SearchResults.vue +2 -2
- package/src/modules/music/components/pages/Track.vue +11 -11
- package/src/modules/music/components/player/FullscreenPlayer.vue +3 -3
- package/src/modules/music/components/player/TrackProgress.vue +1 -1
- package/src/modules/notifications/components/sections/NotificationPreferences.vue +182 -52
- package/src/modules/notifications/controllers/notifications.controller.js +242 -17
- package/src/modules/notifications/models/notification-preference.model.js +4 -0
- package/src/modules/notifications/notifications.client.js +213 -20
- package/src/modules/notifications/router/notifications.backoffice.router.js +16 -0
- package/src/modules/notifications/router/notifications.router.js +13 -45
- package/src/modules/notifications/routes/notifications.routes.js +9 -0
- package/src/modules/notifications/services/notification.service.js +33 -9
- package/src/modules/notifications/services/telegram.service.js +2 -2
- package/src/modules/notifications/services/web-push.service.js +6 -2
- package/src/modules/notifications/store/notifications.store.js +69 -0
- package/src/modules/orders/components/blocks/CardApplication.vue +9 -6
- package/src/modules/orders/components/blocks/CardCustomer.vue +10 -7
- package/src/modules/orders/components/blocks/CardOrder.vue +8 -8
- package/src/modules/orders/components/blocks/CardOrderBackoffice.vue +58 -12
- package/src/modules/orders/components/blocks/CardOrderItem.vue +31 -28
- package/src/modules/orders/components/blocks/CardOrderUser.vue +7 -12
- package/src/modules/orders/components/blocks/CardOrderVar1.vue +3 -3
- package/src/modules/orders/components/elements/FieldSubscribeNewsletter.vue +1 -1
- package/src/modules/orders/components/elements/PriceTotal.vue +4 -4
- package/src/modules/orders/components/forms/FormApplicationDetails.vue +1 -1
- package/src/modules/orders/components/forms/FormSelectCustomer.vue +48 -25
- package/src/modules/orders/components/pages/Applications.vue +2 -2
- package/src/modules/orders/components/pages/Customers.vue +35 -23
- package/src/modules/orders/components/pages/OrderBackoffice.vue +780 -393
- package/src/modules/orders/components/pages/OrderCreate.vue +5 -4
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +112 -42
- package/src/modules/orders/components/pages/Orders.vue +20 -19
- package/src/modules/orders/components/pages/Orders_refact.vue +3 -3
- package/src/modules/orders/components/partials/ShopCart.vue +1 -1
- package/src/modules/orders/components/sections/ApplicationDetails.vue +2 -2
- package/src/modules/orders/components/sections/AskToLogin.vue +1 -1
- package/src/modules/orders/components/sections/CustomerDetails.vue +130 -64
- package/src/modules/orders/controllers/orders.controller.js +463 -134
- package/src/modules/orders/middlewares/applications.verifier.js +3 -3
- package/src/modules/orders/middlewares/customers.verifier.js +4 -0
- package/src/modules/orders/middlewares/orders.verifier.js +187 -0
- package/src/modules/orders/models/customer.model.js +2 -0
- package/src/modules/orders/models/order.model.js +20 -2
- package/src/modules/orders/orders.client.js +21 -19
- package/src/modules/orders/routes/applications.routes.js +13 -3
- package/src/modules/orders/routes/customers.routes.js +2 -0
- package/src/modules/orders/routes/orders.routes.js +46 -4
- package/src/modules/orders/store/orders.js +4 -7
- package/src/modules/orders/store/shopcart.js +6 -7
- package/src/modules/orders/utils/rent-price.js +90 -0
- package/src/modules/organizations/components/blocks/CardDepartment.vue +1 -1
- package/src/modules/organizations/components/blocks/CardOrganization.vue +30 -33
- package/src/modules/organizations/components/blocks/EmptyState.vue +1 -1
- package/src/modules/organizations/components/blocks/Rating.vue +1 -1
- package/src/modules/organizations/components/blocks/Socials.vue +2 -2
- package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +1 -1
- package/src/modules/organizations/components/forms/AddExistingMembersForm.vue +3 -3
- package/src/modules/organizations/components/forms/DepartmentForm.vue +1 -1
- package/src/modules/organizations/components/forms/InviteForm.vue +1 -1
- package/src/modules/organizations/components/pages/Department.vue +2 -2
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +1 -1
- package/src/modules/organizations/components/pages/Members.vue +8 -8
- package/src/modules/organizations/components/pages/Organization.vue +232 -124
- package/src/modules/organizations/components/pages/OrganizationCreate.vue +3 -3
- package/src/modules/organizations/components/pages/OrganizationDocuments.vue +1 -1
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +15 -6
- package/src/modules/organizations/components/pages/Organizations.vue +3 -2
- package/src/modules/organizations/components/sections/Documents.vue +1 -1
- package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
- package/src/modules/organizations/configs/navigation.organization.config.js +34 -26
- package/src/modules/organizations/controllers/organizations.controller.js +8 -3
- package/src/modules/organizations/models/organization.model.js +1 -0
- package/src/modules/organizations/organizations.client.js +39 -33
- package/src/modules/organizations/router/organizations.backoffice.router.js +67 -0
- package/src/modules/pages/views/components/pages/Pages.vue +1 -1
- package/src/modules/pages/views/router/pages.router.js +2 -2
- package/src/modules/products/components/blocks/CardPosition.vue +2 -2
- package/src/modules/products/components/blocks/CardProduct.vue +2 -2
- package/src/modules/products/components/blocks/ProductDiscounts.vue +1 -1
- package/src/modules/products/components/blocks/ProductImages.vue +1 -1
- package/src/modules/products/components/blocks/ProductVariants.vue +3 -3
- package/src/modules/products/components/elements/Price.vue +2 -2
- package/src/modules/products/components/forms/ColumnSettingsMenu.vue +2 -2
- package/src/modules/products/components/forms/ReorderSettingsForm.vue +3 -3
- package/src/modules/products/components/forms/StockAuditForm.vue +2 -2
- package/src/modules/products/components/forms/StockHistoryView.vue +1 -1
- package/src/modules/products/components/pages/Categories.vue +9 -20
- package/src/modules/products/components/pages/ProductEdit.vue +19 -3
- package/src/modules/products/components/pages/Products.vue +20 -19
- package/src/modules/products/components/sections/EditAttributes.vue +1 -1
- package/src/modules/products/components/sections/EditCategories.vue +1 -1
- package/src/modules/products/components/sections/EditDiscounts.vue +2 -2
- package/src/modules/products/components/sections/EditVariants.vue +14 -2
- package/src/modules/products/components/sections/FilterProducts.vue +1 -1
- package/src/modules/products/components/sections/ProductConfigurator.vue +1 -1
- package/src/modules/products/components/sections/SectionProduct.vue +3 -3
- package/src/modules/products/controllers/products.controller.js +50 -5
- package/src/modules/products/experiments/product-recommendation/components/HeroRecommendation.vue +2 -2
- package/src/modules/products/models/product.model.js +7 -0
- package/src/modules/products/models/variant.model.js +4 -0
- package/src/modules/products/router/categories.router.js +2 -2
- package/src/modules/products/router/products.router.js +14 -3
- package/src/modules/rents/controllers/routes/rents.routes.js +11 -0
- package/src/modules/rents/controllers/services/rents.services.js +193 -2
- package/src/modules/rents/models/rent.model.js +9 -0
- package/src/modules/rents/views/components/pages/Gant/GanttBar.vue +28 -11
- package/src/modules/rents/views/components/pages/Gant/GanttChart.vue +200 -40
- package/src/modules/rents/views/components/pages/Gant/GanttHeaderCell.vue +2 -2
- package/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue +2 -2
- package/src/modules/rents/views/components/pages/Rents.vue +641 -142
- package/src/modules/rents/views/components/pages/RentsEdit.vue +44 -4
- package/src/modules/rents/views/router/rents.router.js +3 -3
- package/src/modules/rents/views/store/rents.store.js +1 -1
- package/src/modules/reports/components/pages/BackofficeReports.vue +3 -3
- package/src/modules/reports/router/reports.router.js +1 -1
- package/src/modules/spots/components/blocks/CardSpot.vue +6 -6
- package/src/modules/spots/components/pages/Spot.vue +2 -2
- package/src/modules/spots/components/pages/SpotEdit.vue +8 -6
- package/src/modules/spots/components/pages/Spots.vue +18 -24
- package/src/modules/spots/components/sections/WorktimeEdit.vue +7 -7
- package/src/modules/spots/router/spots.router.js +3 -3
- package/src/modules/wallet/views/components/blocks/CashDeposit.vue +1 -1
- package/src/modules/wallet/views/components/elements/ConnectMetamask.vue +3 -3
- package/src/modules/wallet/views/components/pages/Payments.vue +1 -1
- package/src/modules/wallet/views/components/pages/Wallet.vue +4 -4
- package/src/modules/wallet/views/router/wallet.router.js +1 -1
- package/src/styles/layout.scss +1 -1
- package/dist/martyrs/node_modules/.pnpm/@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js +0 -487
- package/dist/martyrs/node_modules/.pnpm/@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js.map +0 -1
- package/dist/martyrs/node_modules/.pnpm/@capacitor_preferences@7.0.2_@capacitor_core@7.4.4/node_modules/@capacitor/preferences/dist/esm/index.js +0 -8
- package/dist/martyrs/node_modules/.pnpm/@capacitor_preferences@7.0.2_@capacitor_core@7.4.4/node_modules/@capacitor/preferences/dist/esm/index.js.map +0 -1
- package/dist/martyrs/node_modules/.pnpm/@capacitor_preferences@7.0.2_@capacitor_core@7.4.4/node_modules/@capacitor/preferences/dist/esm/web.js +0 -73
- package/dist/martyrs/node_modules/.pnpm/@capacitor_preferences@7.0.2_@capacitor_core@7.4.4/node_modules/@capacitor/preferences/dist/esm/web.js.map +0 -1
- package/dist/martyrs/src/components/Loader/Loader.vue2.js.map +0 -1
- package/dist/martyrs/src/components/Tab/Tab.vue.js.map +0 -1
- package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.js.map +0 -1
- package/dist/martyrs/src/modules/core/views/components/sections/Filters.vue.js.map +0 -1
- package/dist/martyrs/src/modules/icons/entities/IconCash.vue.js +0 -70
- package/dist/martyrs/src/modules/icons/entities/IconCash.vue.js.map +0 -1
- package/dist/martyrs.es100.js +0 -33
- package/dist/martyrs.es103.js +0 -31
- package/dist/martyrs.es110.js +0 -54
- package/dist/martyrs.es111.js +0 -327
- package/dist/martyrs.es150.js +0 -22
- package/dist/martyrs.es151.js +0 -31
- package/dist/martyrs.es152.js +0 -23
- package/dist/martyrs.es93.js +0 -35
- package/dist/node_modules/.pnpm/@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js +0 -487
- package/dist/node_modules/.pnpm/@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/@googlemaps_js-api-loader@1.16.8/node_modules/@googlemaps/js-api-loader/dist/index.js +0 -336
- package/dist/node_modules/.pnpm/@googlemaps_js-api-loader@1.16.8/node_modules/@googlemaps/js-api-loader/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/vue-draggable-next@2.2.1_sortablejs@1.15.6_vue@3.5.13_typescript@5.8.3_/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js.map +0 -1
|
@@ -37,7 +37,7 @@ export default (function (db) {
|
|
|
37
37
|
default: 'created',
|
|
38
38
|
validator: Validator.schema()
|
|
39
39
|
.string()
|
|
40
|
-
.oneOf(['created', 'in_progress', 'completed', '
|
|
40
|
+
.oneOf(['created', 'in_progress', 'completed', 'canceled'])
|
|
41
41
|
},
|
|
42
42
|
owner: {
|
|
43
43
|
rule: 'optional',
|
|
@@ -87,7 +87,7 @@ export default (function (db) {
|
|
|
87
87
|
rule: 'optional',
|
|
88
88
|
validator: Validator.schema()
|
|
89
89
|
.string()
|
|
90
|
-
.oneOf(['created', 'in_progress', 'completed', '
|
|
90
|
+
.oneOf(['created', 'in_progress', 'completed', 'canceled'])
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
93
|
|
|
@@ -107,7 +107,7 @@ export default (function (db) {
|
|
|
107
107
|
rule: 'optional',
|
|
108
108
|
validator: Validator.schema()
|
|
109
109
|
.string()
|
|
110
|
-
.oneOf(['created', 'in_progress', 'completed', '
|
|
110
|
+
.oneOf(['created', 'in_progress', 'completed', 'canceled'])
|
|
111
111
|
},
|
|
112
112
|
type: {
|
|
113
113
|
rule: 'optional',
|
|
@@ -168,6 +168,10 @@ export default (function (db) {
|
|
|
168
168
|
.string()
|
|
169
169
|
.pattern(/^[0-9a-fA-F]{24}$/)
|
|
170
170
|
},
|
|
171
|
+
search: {
|
|
172
|
+
rule: 'optional',
|
|
173
|
+
validator: Validator.schema().string().max(255)
|
|
174
|
+
},
|
|
171
175
|
owner: {
|
|
172
176
|
rule: 'optional',
|
|
173
177
|
validator: Validator.schema().string()
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import Validator from '@martyrs/src/modules/core/controllers/classes/core.validator.js';
|
|
2
|
+
import Verifier from '@martyrs/src/modules/core/controllers/classes/core.verifier.js';
|
|
3
|
+
|
|
4
|
+
export default (function (db) {
|
|
5
|
+
|
|
6
|
+
// Верификатор для создания заказа
|
|
7
|
+
const createVerifier = new Verifier({
|
|
8
|
+
positions: {
|
|
9
|
+
rule: 'required',
|
|
10
|
+
validator: Validator.schema()
|
|
11
|
+
.array()
|
|
12
|
+
.min(1, 'At least one position is required')
|
|
13
|
+
},
|
|
14
|
+
owner: {
|
|
15
|
+
rule: 'required',
|
|
16
|
+
validator: Validator.schema().object({
|
|
17
|
+
type: Validator.schema().string().oneOf(['user', 'organization', 'User', 'Organization']).required(),
|
|
18
|
+
target: Validator.schema().string().pattern(/^[0-9a-fA-F]{24}$/).required()
|
|
19
|
+
})
|
|
20
|
+
},
|
|
21
|
+
customer: {
|
|
22
|
+
rule: 'optional',
|
|
23
|
+
},
|
|
24
|
+
delivery: {
|
|
25
|
+
rule: 'optional',
|
|
26
|
+
},
|
|
27
|
+
payment: {
|
|
28
|
+
rule: 'optional',
|
|
29
|
+
},
|
|
30
|
+
comment: {
|
|
31
|
+
rule: 'optional',
|
|
32
|
+
validator: Validator.schema()
|
|
33
|
+
.string()
|
|
34
|
+
.max(2000, 'Comment must not exceed 2000 characters')
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
// Верификатор для чтения заказов
|
|
39
|
+
const readVerifier = new Verifier({
|
|
40
|
+
_id: {
|
|
41
|
+
rule: 'optional',
|
|
42
|
+
validator: Validator.schema()
|
|
43
|
+
.string()
|
|
44
|
+
.pattern(/^[0-9a-fA-F]{24}$/)
|
|
45
|
+
},
|
|
46
|
+
owner: {
|
|
47
|
+
rule: 'optional',
|
|
48
|
+
validator: Validator.schema().string()
|
|
49
|
+
},
|
|
50
|
+
status: {
|
|
51
|
+
rule: 'optional',
|
|
52
|
+
validator: Validator.schema()
|
|
53
|
+
.string()
|
|
54
|
+
.oneOf(['created', 'confirmed', 'processing', 'ready', 'delivering', 'completed', 'canceled', 'closed'])
|
|
55
|
+
},
|
|
56
|
+
skip: {
|
|
57
|
+
rule: 'optional',
|
|
58
|
+
default: 0,
|
|
59
|
+
validator: Validator.schema()
|
|
60
|
+
.integer()
|
|
61
|
+
.min(0)
|
|
62
|
+
},
|
|
63
|
+
limit: {
|
|
64
|
+
rule: 'optional',
|
|
65
|
+
default: 20,
|
|
66
|
+
validator: Validator.schema()
|
|
67
|
+
.integer()
|
|
68
|
+
.min(1)
|
|
69
|
+
.max(100)
|
|
70
|
+
},
|
|
71
|
+
sortParam: {
|
|
72
|
+
rule: 'optional',
|
|
73
|
+
validator: Validator.schema()
|
|
74
|
+
.string()
|
|
75
|
+
.oneOf(['createdAt', 'updatedAt', 'totalPrice', 'status'])
|
|
76
|
+
},
|
|
77
|
+
sortOrder: {
|
|
78
|
+
rule: 'optional',
|
|
79
|
+
default: 'desc',
|
|
80
|
+
validator: Validator.schema()
|
|
81
|
+
.string()
|
|
82
|
+
.oneOf(['asc', 'desc'])
|
|
83
|
+
},
|
|
84
|
+
dateStart: {
|
|
85
|
+
rule: 'optional',
|
|
86
|
+
validator: Validator.schema().string()
|
|
87
|
+
},
|
|
88
|
+
dateEnd: {
|
|
89
|
+
rule: 'optional',
|
|
90
|
+
validator: Validator.schema().string()
|
|
91
|
+
},
|
|
92
|
+
search: {
|
|
93
|
+
rule: 'optional',
|
|
94
|
+
validator: Validator.schema()
|
|
95
|
+
.string()
|
|
96
|
+
.max(255)
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
// Верификатор для обновления заказа
|
|
101
|
+
const updateVerifier = new Verifier({
|
|
102
|
+
_id: {
|
|
103
|
+
rule: 'required',
|
|
104
|
+
validator: Validator.schema()
|
|
105
|
+
.string()
|
|
106
|
+
.required('Order ID is required')
|
|
107
|
+
.pattern(/^[0-9a-fA-F]{24}$/, 'Invalid ID format')
|
|
108
|
+
},
|
|
109
|
+
status: {
|
|
110
|
+
rule: 'optional',
|
|
111
|
+
validator: Validator.schema()
|
|
112
|
+
.string()
|
|
113
|
+
.oneOf(['created', 'confirmed', 'processing', 'ready', 'delivering', 'completed', 'canceled', 'closed'])
|
|
114
|
+
},
|
|
115
|
+
positions: {
|
|
116
|
+
rule: 'optional',
|
|
117
|
+
validator: Validator.schema().array()
|
|
118
|
+
},
|
|
119
|
+
payment: {
|
|
120
|
+
rule: 'optional',
|
|
121
|
+
},
|
|
122
|
+
comment: {
|
|
123
|
+
rule: 'optional',
|
|
124
|
+
validator: Validator.schema()
|
|
125
|
+
.string()
|
|
126
|
+
.max(2000, 'Comment must not exceed 2000 characters')
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
// Верификатор для удаления заказа
|
|
131
|
+
const deleteVerifier = new Verifier({
|
|
132
|
+
_id: {
|
|
133
|
+
rule: 'required',
|
|
134
|
+
validator: Validator.schema()
|
|
135
|
+
.string()
|
|
136
|
+
.required('Order ID is required')
|
|
137
|
+
.pattern(/^[0-9a-fA-F]{24}$/)
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
return {
|
|
142
|
+
verifyCreate(req, res, next) {
|
|
143
|
+
const verification = createVerifier.verify(req.body);
|
|
144
|
+
if (!verification.isValid) {
|
|
145
|
+
return res.status(400).json({
|
|
146
|
+
errors: verification.verificationErrors,
|
|
147
|
+
message: 'Invalid request data',
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
req.verifiedBody = verification.verifiedData;
|
|
151
|
+
next();
|
|
152
|
+
},
|
|
153
|
+
verifyRead(req, res, next) {
|
|
154
|
+
const verification = readVerifier.verify(req.query);
|
|
155
|
+
if (!verification.isValid) {
|
|
156
|
+
return res.status(400).json({
|
|
157
|
+
errors: verification.verificationErrors,
|
|
158
|
+
message: 'Invalid query parameters',
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
req.verifiedQuery = verification.verifiedData;
|
|
162
|
+
next();
|
|
163
|
+
},
|
|
164
|
+
verifyUpdate(req, res, next) {
|
|
165
|
+
const verification = updateVerifier.verify(req.body);
|
|
166
|
+
if (!verification.isValid) {
|
|
167
|
+
return res.status(400).json({
|
|
168
|
+
errors: verification.verificationErrors,
|
|
169
|
+
message: 'Invalid request data',
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
req.verifiedBody = verification.verifiedData;
|
|
173
|
+
next();
|
|
174
|
+
},
|
|
175
|
+
verifyDelete(req, res, next) {
|
|
176
|
+
const verification = deleteVerifier.verify(req.body);
|
|
177
|
+
if (!verification.isValid) {
|
|
178
|
+
return res.status(400).json({
|
|
179
|
+
errors: verification.verificationErrors,
|
|
180
|
+
message: 'Invalid request data',
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
req.verifiedBody = verification.verifiedData;
|
|
184
|
+
next();
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import applyCredentialsSchema from '@martyrs/src/modules/core/models/schemas/credentials.schema.js';
|
|
2
2
|
import applyOwnershipSchema from '@martyrs/src/modules/core/models/schemas/ownership.schema.js';
|
|
3
3
|
import applyProfileSchema from '@martyrs/src/modules/core/models/schemas/profile.schema.js';
|
|
4
|
+
import applySocialsSchema from '@martyrs/src/modules/core/models/schemas/socials.schema.js';
|
|
4
5
|
export default db => {
|
|
5
6
|
const CustomerSchema = new db.mongoose.Schema(
|
|
6
7
|
{
|
|
@@ -72,6 +73,7 @@ export default db => {
|
|
|
72
73
|
applyCredentialsSchema(CustomerSchema, db);
|
|
73
74
|
applyProfileSchema(CustomerSchema, db);
|
|
74
75
|
applyOwnershipSchema(CustomerSchema, db);
|
|
76
|
+
applySocialsSchema(CustomerSchema, db);
|
|
75
77
|
|
|
76
78
|
|
|
77
79
|
CustomerSchema.index(
|
|
@@ -13,8 +13,26 @@ export default db => {
|
|
|
13
13
|
required: true,
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
|
-
positions: {
|
|
17
|
-
type:
|
|
16
|
+
positions: [{
|
|
17
|
+
_id: { type: db.mongoose.Schema.Types.ObjectId, ref: 'Product' },
|
|
18
|
+
variant: { type: db.mongoose.Schema.Types.ObjectId, ref: 'Variant', default: null },
|
|
19
|
+
name: { type: String },
|
|
20
|
+
images: { type: Array },
|
|
21
|
+
listing: { type: String, enum: ['sale', 'rent'] },
|
|
22
|
+
rentPeriod: { type: String, enum: ['hour', '4hours', 'flat', 'day', 'week', 'month'], default: 'day' },
|
|
23
|
+
price: { type: Number },
|
|
24
|
+
cost: { type: Number, default: 0 },
|
|
25
|
+
quantity: { type: Number, default: 1 },
|
|
26
|
+
unit: { type: String },
|
|
27
|
+
date: {
|
|
28
|
+
start: { type: Date },
|
|
29
|
+
end: { type: Date },
|
|
30
|
+
},
|
|
31
|
+
totalPrice: { type: Number, default: 0 },
|
|
32
|
+
}],
|
|
33
|
+
totalPrice: {
|
|
34
|
+
type: Number,
|
|
35
|
+
default: 0,
|
|
18
36
|
},
|
|
19
37
|
referralCode: {
|
|
20
38
|
type: String,
|
|
@@ -46,21 +46,23 @@ function initializeOrders(app, store, router, options = {}) {
|
|
|
46
46
|
|
|
47
47
|
if (typeof window !== 'undefined') storeShopcart.actions.setShopcart()
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
49
|
+
if (!options.contexts || options.contexts.includes('client')) {
|
|
50
|
+
addRoutes(router, {
|
|
51
|
+
parentName: route,
|
|
52
|
+
basePath: 'orders',
|
|
53
|
+
routes: routerOrders,
|
|
54
|
+
routeNamePrefix: '',
|
|
55
|
+
filterConfig: {
|
|
56
|
+
include: ['CreateOrder', 'Order'], // Только создание заказа на корневом уровне
|
|
57
|
+
},
|
|
58
|
+
meta: {
|
|
59
|
+
context: 'root',
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
}
|
|
61
63
|
|
|
62
64
|
// Backoffice routes
|
|
63
|
-
if (!options.
|
|
65
|
+
if (!options.contexts || options.contexts.includes('backoffice')) {
|
|
64
66
|
addRoutes(router, {
|
|
65
67
|
parentName: routeBackoffice,
|
|
66
68
|
basePath: 'orders', // Промежуточный маршрут /backoffice/orders
|
|
@@ -76,7 +78,7 @@ function initializeOrders(app, store, router, options = {}) {
|
|
|
76
78
|
}
|
|
77
79
|
|
|
78
80
|
// User routes
|
|
79
|
-
if (!options.
|
|
81
|
+
if (!options.contexts || options.contexts.includes('user')) {
|
|
80
82
|
addRoutes(router, {
|
|
81
83
|
parentName: routeUsers,
|
|
82
84
|
basePath: 'orders', // Промежуточный маршрут /user/orders
|
|
@@ -92,7 +94,7 @@ function initializeOrders(app, store, router, options = {}) {
|
|
|
92
94
|
}
|
|
93
95
|
|
|
94
96
|
// Organization routes
|
|
95
|
-
if (!options.
|
|
97
|
+
if (!options.contexts || options.contexts.includes('organization')) {
|
|
96
98
|
addRoutes(router, {
|
|
97
99
|
parentName: routeOrganizations,
|
|
98
100
|
basePath: 'orders', // Промежуточный маршрут /organization/orders
|
|
@@ -108,7 +110,7 @@ function initializeOrders(app, store, router, options = {}) {
|
|
|
108
110
|
}
|
|
109
111
|
|
|
110
112
|
// Customer routes for backoffice
|
|
111
|
-
if (!options.
|
|
113
|
+
if (!options.contexts || options.contexts.includes('backoffice')) {
|
|
112
114
|
addRoutes(router, {
|
|
113
115
|
parentName: routeBackoffice,
|
|
114
116
|
basePath: 'customers',
|
|
@@ -124,7 +126,7 @@ function initializeOrders(app, store, router, options = {}) {
|
|
|
124
126
|
}
|
|
125
127
|
|
|
126
128
|
// Customer routes for organizations
|
|
127
|
-
if (!options.
|
|
129
|
+
if (!options.contexts || options.contexts.includes('organization')) {
|
|
128
130
|
addRoutes(router, {
|
|
129
131
|
parentName: routeOrganizations,
|
|
130
132
|
basePath: 'customers',
|
|
@@ -140,7 +142,7 @@ function initializeOrders(app, store, router, options = {}) {
|
|
|
140
142
|
}
|
|
141
143
|
|
|
142
144
|
// Application routes for backoffice
|
|
143
|
-
if (!options.
|
|
145
|
+
if (!options.contexts || options.contexts.includes('backoffice')) {
|
|
144
146
|
addRoutes(router, {
|
|
145
147
|
parentName: routeBackoffice,
|
|
146
148
|
basePath: 'applications',
|
|
@@ -156,7 +158,7 @@ function initializeOrders(app, store, router, options = {}) {
|
|
|
156
158
|
}
|
|
157
159
|
|
|
158
160
|
// Application routes for organizations
|
|
159
|
-
if (!options.
|
|
161
|
+
if (!options.contexts || options.contexts.includes('organization')) {
|
|
160
162
|
addRoutes(router, {
|
|
161
163
|
parentName: routeOrganizations,
|
|
162
164
|
basePath: 'applications',
|
|
@@ -23,7 +23,18 @@ export default function setupApplicationsRoutes(app, db) {
|
|
|
23
23
|
{ $project: { userId: '$_id' }}
|
|
24
24
|
];
|
|
25
25
|
const result = await db.department.aggregate(pipeline);
|
|
26
|
-
|
|
26
|
+
let userIds = result.map(item => item.userId);
|
|
27
|
+
|
|
28
|
+
// Фоллбэк: если нет участников в отделах — отправляем owner организации
|
|
29
|
+
if (userIds.length === 0) {
|
|
30
|
+
const org = await db.organization.findById(organizationId, { owner: 1 }).lean();
|
|
31
|
+
if (org?.owner) {
|
|
32
|
+
userIds = [org.owner];
|
|
33
|
+
console.log('Applications: fallback to org owner:', org.owner);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return userIds;
|
|
27
38
|
};
|
|
28
39
|
|
|
29
40
|
const sendApplicationNotifications = async (application, userIds) => {
|
|
@@ -167,8 +178,7 @@ export default function setupApplicationsRoutes(app, db) {
|
|
|
167
178
|
|
|
168
179
|
const saved = await applicationsCRUD.service.create(applicationData);
|
|
169
180
|
|
|
170
|
-
// Push notifications
|
|
171
|
-
notifyApplicationCreated(saved).catch(console.error);
|
|
181
|
+
// Push notifications handled by afterCreate hook
|
|
172
182
|
|
|
173
183
|
res.status(201).json(saved);
|
|
174
184
|
} catch (error) {
|
|
@@ -1,24 +1,35 @@
|
|
|
1
1
|
import middlewareFactoryAuth from '@martyrs/src/modules/auth/controllers/middlewares/index.js';
|
|
2
2
|
import controllerFactory from '../controllers/orders.controller.js';
|
|
3
|
+
import verifierFactory from '../middlewares/orders.verifier.js';
|
|
3
4
|
import ABAC from '@martyrs/src/modules/core/controllers/classes/abac/abac.js';
|
|
4
5
|
const { getInstance } = ABAC;
|
|
5
6
|
export default (function (app, db, origins, publicPath) {
|
|
6
7
|
const controller = controllerFactory(db);
|
|
7
8
|
const middleware = middlewareFactoryAuth(db);
|
|
8
9
|
const abac = getInstance(db);
|
|
10
|
+
const verifier = verifierFactory(db);
|
|
9
11
|
app.post(
|
|
10
12
|
'/api/orders/create',
|
|
11
13
|
[
|
|
12
|
-
middleware.authJwt.verifyToken(true)
|
|
14
|
+
middleware.authJwt.verifyToken(true),
|
|
15
|
+
verifier.verifyCreate
|
|
13
16
|
],
|
|
14
17
|
controller.create
|
|
15
18
|
);
|
|
16
19
|
app.get('/api/orders/read',
|
|
17
20
|
[
|
|
18
|
-
middleware.authJwt.verifyToken(
|
|
21
|
+
middleware.authJwt.verifyToken(),
|
|
22
|
+
abac.middleware('orders', 'read'),
|
|
23
|
+
verifier.verifyRead
|
|
19
24
|
],
|
|
20
25
|
controller.read
|
|
21
26
|
);
|
|
27
|
+
app.get('/api/orders/my',
|
|
28
|
+
[
|
|
29
|
+
middleware.authJwt.verifyToken(true)
|
|
30
|
+
],
|
|
31
|
+
controller.readMy
|
|
32
|
+
);
|
|
22
33
|
app.get('/api/orders/stats',
|
|
23
34
|
middleware.authJwt.verifyToken(),
|
|
24
35
|
abac.middleware('orders', 'read'),
|
|
@@ -27,15 +38,46 @@ export default (function (app, db, origins, publicPath) {
|
|
|
27
38
|
app.post(
|
|
28
39
|
'/api/orders/update',
|
|
29
40
|
[
|
|
30
|
-
middleware.authJwt.verifyToken()
|
|
41
|
+
middleware.authJwt.verifyToken(),
|
|
42
|
+
abac.middleware('orders', 'confirm'),
|
|
43
|
+
verifier.verifyUpdate
|
|
31
44
|
],
|
|
32
45
|
controller.update
|
|
33
46
|
);
|
|
34
47
|
app.post(
|
|
35
48
|
'/api/orders/delete',
|
|
36
49
|
[
|
|
37
|
-
middleware.authJwt.verifyToken()
|
|
50
|
+
middleware.authJwt.verifyToken(),
|
|
51
|
+
abac.middleware('orders', 'delete'),
|
|
52
|
+
verifier.verifyDelete
|
|
38
53
|
],
|
|
39
54
|
controller.deleteOrder
|
|
40
55
|
);
|
|
56
|
+
|
|
57
|
+
// Internal endpoint for Telegram callback actions (confirm/cancel via bot buttons)
|
|
58
|
+
app.post(
|
|
59
|
+
'/api/orders/telegram-action',
|
|
60
|
+
[
|
|
61
|
+
middleware.authJwt.verifyToken(), // X-Service-Key bypass
|
|
62
|
+
],
|
|
63
|
+
async (req, res) => {
|
|
64
|
+
try {
|
|
65
|
+
const { action, orderId } = req.body;
|
|
66
|
+
if (!action || !orderId) {
|
|
67
|
+
return res.status(400).json({ message: 'action and orderId are required' });
|
|
68
|
+
}
|
|
69
|
+
if (!['confirm', 'cancel'].includes(action)) {
|
|
70
|
+
return res.status(400).json({ message: 'action must be confirm or cancel' });
|
|
71
|
+
}
|
|
72
|
+
const result = await controller.handleTelegramAction(action, orderId);
|
|
73
|
+
if (!result.success) {
|
|
74
|
+
return res.status(400).json(result);
|
|
75
|
+
}
|
|
76
|
+
return res.status(200).json(result);
|
|
77
|
+
} catch (err) {
|
|
78
|
+
console.error('[Telegram Action] Error:', err);
|
|
79
|
+
return res.status(500).json({ message: 'Internal error' });
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
);
|
|
41
83
|
});
|
|
@@ -6,6 +6,8 @@ import $axios from '@martyrs/src/modules/core/views/utils/axios-instance.js';
|
|
|
6
6
|
import { setError } from '@martyrs/src/modules/core/views/store/core.store.js';
|
|
7
7
|
// Init State
|
|
8
8
|
import orderInitState from '@martyrs/src/modules/orders/store/models/order.js';
|
|
9
|
+
// Rent price utils
|
|
10
|
+
import { calcRentTotalPrice } from '@martyrs/src/modules/orders/utils/rent-price.js';
|
|
9
11
|
|
|
10
12
|
const state = reactive({
|
|
11
13
|
all: [],
|
|
@@ -160,14 +162,9 @@ const getters = {
|
|
|
160
162
|
getTotal(positions) {
|
|
161
163
|
return Number(
|
|
162
164
|
positions.reduce((total, product) => {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
const start = new Date(product.date.start);
|
|
166
|
-
const end = new Date(product.date.end);
|
|
167
|
-
const diffTime = Math.abs(end - start);
|
|
168
|
-
return total + product.price * (Math.ceil(diffTime / (1000 * 60 * 60 * 24)) + 1);
|
|
165
|
+
if (product.listing === 'rent' && product.date?.start && product.date?.end) {
|
|
166
|
+
return total + calcRentTotalPrice(product.price, product.quantity, product.date.start, product.date.end, product.rentPeriod || 'day');
|
|
169
167
|
} else {
|
|
170
|
-
// Для обычных товаров умножаем на количество
|
|
171
168
|
return total + product.price * (product.quantity || 1);
|
|
172
169
|
}
|
|
173
170
|
}, 0)
|
|
@@ -7,6 +7,8 @@ import { computed, reactive, watch } from 'vue';
|
|
|
7
7
|
import { setError, setSnack } from '@martyrs/src/modules/core/views/store/core.store.js';
|
|
8
8
|
// Capacitor Preferences
|
|
9
9
|
import { Preferences } from '@capacitor/preferences';
|
|
10
|
+
// Rent price utils
|
|
11
|
+
import { calcRentTotalPrice } from '@martyrs/src/modules/orders/utils/rent-price.js';
|
|
10
12
|
|
|
11
13
|
/////////////////////////////
|
|
12
14
|
// State
|
|
@@ -146,7 +148,9 @@ const actions = {
|
|
|
146
148
|
images: variant.images?.length > 0 ? variant.images : product.images,
|
|
147
149
|
name: product.name,
|
|
148
150
|
listing: product.listing,
|
|
151
|
+
rentPeriod: product.rentPeriod || 'day',
|
|
149
152
|
price: variant.price || product.price,
|
|
153
|
+
cost: variant.cost || 0,
|
|
150
154
|
quantity: quantity,
|
|
151
155
|
unit: variant.unit || product.unit,
|
|
152
156
|
date: date,
|
|
@@ -240,14 +244,9 @@ const getters = {
|
|
|
240
244
|
cartTotalPrice: computed(() => {
|
|
241
245
|
return Number(
|
|
242
246
|
state.positions.reduce((total, product) => {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
const start = new Date(product.date.start);
|
|
246
|
-
const end = new Date(product.date.end);
|
|
247
|
-
const diffTime = Math.abs(end - start);
|
|
248
|
-
return total + product.price * (Math.ceil(diffTime / (1000 * 60 * 60 * 24)) + 1);
|
|
247
|
+
if (product.listing === 'rent' && product.date?.start && product.date?.end) {
|
|
248
|
+
return total + calcRentTotalPrice(product.price, product.quantity, product.date.start, product.date.end, product.rentPeriod || 'day');
|
|
249
249
|
} else {
|
|
250
|
-
// Для обычных товаров умножаем на количество
|
|
251
250
|
return total + product.price * (product.quantity || 1);
|
|
252
251
|
}
|
|
253
252
|
}, 0)
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calculate rental duration periods count based on rentPeriod type
|
|
3
|
+
* @param {Date|string} start
|
|
4
|
+
* @param {Date|string} end
|
|
5
|
+
* @param {string} rentPeriod - 'hour' | '4hours' | 'flat' | 'day' | 'week' | 'month'
|
|
6
|
+
* @returns {number} number of periods (minimum 1)
|
|
7
|
+
*/
|
|
8
|
+
export function calcRentPeriods(start, end, rentPeriod = 'day') {
|
|
9
|
+
const s = new Date(start)
|
|
10
|
+
const e = new Date(end)
|
|
11
|
+
const diffMs = Math.abs(e - s)
|
|
12
|
+
const diffHours = diffMs / (1000 * 60 * 60)
|
|
13
|
+
const diffDays = diffMs / (1000 * 60 * 60 * 24)
|
|
14
|
+
|
|
15
|
+
switch (rentPeriod) {
|
|
16
|
+
case 'hour':
|
|
17
|
+
return Math.max(1, Math.ceil(diffHours))
|
|
18
|
+
case '4hours':
|
|
19
|
+
return Math.max(1, Math.ceil(diffHours / 4))
|
|
20
|
+
case 'flat':
|
|
21
|
+
return 1
|
|
22
|
+
case 'day':
|
|
23
|
+
return Math.max(1, Math.ceil(diffDays) + 1)
|
|
24
|
+
case 'week':
|
|
25
|
+
return Math.max(1, Math.ceil(diffDays / 7))
|
|
26
|
+
case 'month':
|
|
27
|
+
return Math.max(1, Math.ceil(diffDays / 30))
|
|
28
|
+
default:
|
|
29
|
+
return Math.max(1, Math.ceil(diffDays) + 1)
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Calculate total rental price
|
|
35
|
+
* @param {number} pricePerPeriod
|
|
36
|
+
* @param {number} quantity
|
|
37
|
+
* @param {Date|string} start
|
|
38
|
+
* @param {Date|string} end
|
|
39
|
+
* @param {string} rentPeriod
|
|
40
|
+
* @returns {number}
|
|
41
|
+
*/
|
|
42
|
+
export function calcRentTotalPrice(pricePerPeriod, quantity, start, end, rentPeriod = 'day') {
|
|
43
|
+
const periods = calcRentPeriods(start, end, rentPeriod)
|
|
44
|
+
return pricePerPeriod * (quantity || 1) * periods
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Format rent duration for display
|
|
49
|
+
* @param {Date|string} start
|
|
50
|
+
* @param {Date|string} end
|
|
51
|
+
* @param {string} rentPeriod
|
|
52
|
+
* @returns {string}
|
|
53
|
+
*/
|
|
54
|
+
/**
|
|
55
|
+
* Format rent date range label for display
|
|
56
|
+
* @param {Date|string} start
|
|
57
|
+
* @param {Date|string} end
|
|
58
|
+
* @param {string} rentPeriod
|
|
59
|
+
* @param {Function} formatDate - formatDate from useGlobalMixins
|
|
60
|
+
* @returns {string} e.g. "11 Mar – 14 Mar" or "11 Mar, 10:00 – 14:00"
|
|
61
|
+
*/
|
|
62
|
+
export function formatRentDateLabel(start, end, rentPeriod = 'day', formatDate) {
|
|
63
|
+
if (!start || !end) return ''
|
|
64
|
+
const isShortPeriod = ['hour', '4hours', 'flat'].includes(rentPeriod)
|
|
65
|
+
if (isShortPeriod) {
|
|
66
|
+
const s = new Date(start)
|
|
67
|
+
const e = new Date(end)
|
|
68
|
+
const dateStr = formatDate(s, { dayMonth: true })
|
|
69
|
+
const startTime = `${String(s.getHours()).padStart(2, '0')}:${String(s.getMinutes()).padStart(2, '0')}`
|
|
70
|
+
const endTime = `${String(e.getHours()).padStart(2, '0')}:${String(e.getMinutes()).padStart(2, '0')}`
|
|
71
|
+
return `${dateStr}, ${startTime} – ${endTime}`
|
|
72
|
+
}
|
|
73
|
+
return `${formatDate(start, { dayMonth: true })} – ${formatDate(end, { dayMonth: true })}`
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function formatRentDuration(start, end, rentPeriod = 'day') {
|
|
77
|
+
const periods = calcRentPeriods(start, end, rentPeriod)
|
|
78
|
+
|
|
79
|
+
const labels = {
|
|
80
|
+
hour: { one: 'hour', many: 'hours' },
|
|
81
|
+
'4hours': { one: '4 hours', many: '4 hours' },
|
|
82
|
+
'flat': { one: 'flat', many: 'flat' },
|
|
83
|
+
day: { one: 'day', many: 'days' },
|
|
84
|
+
week: { one: 'week', many: 'weeks' },
|
|
85
|
+
month: { one: 'month', many: 'months' },
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const label = labels[rentPeriod] || labels.day
|
|
89
|
+
return `${periods} ${periods === 1 ? label.one : label.many}`
|
|
90
|
+
}
|
|
@@ -32,7 +32,7 @@ import IconEdit from '@martyrs/src/modules/icons/navigation/IconEdit.vue'
|
|
|
32
32
|
|
|
33
33
|
import Spoiler from '@martyrs/src/components/Spoiler/Spoiler.vue';
|
|
34
34
|
import { DepartmentSub } from '@martyrs/src/modules/organizations/organizations.client.js';
|
|
35
|
-
import User from '@martyrs/src/modules/
|
|
35
|
+
import User from '@martyrs/src/modules/core/views/components/blocks/CardUser.vue';
|
|
36
36
|
|
|
37
37
|
const props = defineProps({
|
|
38
38
|
department: Object,
|