@ozdao/martyrs 0.2.604 → 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.vue2.js → EditImages.vue.js} +6 -6
- package/dist/martyrs/src/components/EditImages/EditImages.vue.js.map +1 -0
- package/dist/martyrs/src/components/EmptyState/EmptyState.vue.js +1 -1
- 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/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/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/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 +2 -2
- package/dist/martyrs/src/components/UploadImage/UploadImage.vue.js.map +1 -1
- package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- 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 +1 -1
- 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 +32 -18
- 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 +4 -4
- 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 +3 -1
- 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 +3 -3
- 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 +2 -2
- 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/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/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 +41 -26
- 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/Client.vue.js +2 -1
- 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.vue2.js +3 -3
- package/dist/martyrs/src/modules/core/views/components/sections/Filters.vue2.js.map +1 -1
- package/dist/martyrs/src/modules/core/views/components/sections/SectionPageTitle.vue.js +2 -2
- 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 +6 -6
- 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 +4 -0
- 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 +1 -1
- 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/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 +2 -2
- 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 +3 -3
- 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 +4 -4
- 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 +2 -2
- 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 +3 -3
- package/dist/martyrs/src/modules/governance/views/components/blocks/CardVotingItem.vue.js.map +1 -1
- package/dist/martyrs/src/modules/governance/views/components/pages/Initiatives.vue.js +3 -3
- package/dist/martyrs/src/modules/governance/views/components/pages/Initiatives.vue.js.map +1 -1
- 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/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/sections/SectionMenu.vue.js +3 -3
- 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 +1 -1
- 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 +8 -8
- 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 +5 -5
- 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 +11 -11
- 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 +3 -3
- 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 +11 -11
- 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 +162 -68
- package/dist/martyrs/src/modules/notifications/components/sections/NotificationPreferences.vue.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/notifications.client.js +181 -17
- 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 +66 -1
- 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/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 +5 -5
- 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 +35 -25
- 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/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/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/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 +96 -96
- 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 +3 -3
- 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 +2 -2
- 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 +9 -7
- 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.es106.js +2 -2
- package/dist/martyrs.es11.js +31 -30
- package/dist/martyrs.es113.js +22 -166
- package/dist/martyrs.es114.js +4 -457
- package/dist/martyrs.es115.js +8 -40
- package/dist/martyrs.es116.js +166 -9
- package/dist/martyrs.es117.js +451 -43
- package/dist/martyrs.es118.js +38 -10
- package/dist/martyrs.es119.js +9 -44
- package/dist/martyrs.es12.js +8 -9
- package/dist/martyrs.es120.js +49 -4
- package/dist/martyrs.es121.js +10 -127
- package/dist/martyrs.es122.js +42 -98
- package/dist/martyrs.es123.js +4 -86
- package/dist/martyrs.es124.js +120 -29
- package/dist/martyrs.es125.js +99 -10
- package/dist/martyrs.es126.js +71 -24
- package/dist/martyrs.es127.js +37 -8
- package/dist/martyrs.es128.js +11 -22
- package/dist/martyrs.es129.js +39 -4
- package/dist/martyrs.es13.js +22 -19
- package/dist/martyrs.es130.js +9 -8
- package/dist/martyrs.es131.js +7 -7
- package/dist/martyrs.es132.js +2 -2
- package/dist/martyrs.es133.js +1 -1
- package/dist/martyrs.es135.js +1 -1
- package/dist/martyrs.es137.js +1 -1
- package/dist/martyrs.es138.js +7 -8
- package/dist/martyrs.es139.js +8 -7
- package/dist/martyrs.es14.js +2 -2
- package/dist/martyrs.es140.js +2 -2
- package/dist/martyrs.es144.js +10 -29
- package/dist/martyrs.es145.js +29 -10
- package/dist/martyrs.es146.js +2 -2
- package/dist/martyrs.es147.js +2 -2
- package/dist/martyrs.es149.js +1 -1
- 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.es61.js +33 -26
- package/dist/martyrs.es74.js +7 -7
- package/dist/martyrs.es76.js +12 -12
- package/dist/martyrs.es8.js +31 -31
- package/dist/music.server.js +3 -3
- 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/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/src/components/EditImages/EditImages.vue2.js.map +0 -1
- package/dist/martyrs/src/components/Tooltip/Tooltip.vue2.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/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
|
@@ -1,56 +1,71 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="pd-medium mobile:pd-thin bg-white">
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<div class="mn-l-auto flex-v-center">
|
|
12
|
-
<button
|
|
13
|
-
@click="toggleView"
|
|
14
|
-
class="pd-small radius-small bg-light mn-r-small"
|
|
15
|
-
>
|
|
16
|
-
{{ isCalendarView ? 'List View' : 'Calendar View' }}
|
|
17
|
-
</button>
|
|
18
|
-
</div>
|
|
19
|
-
</header>
|
|
3
|
+
<SectionPageTitle
|
|
4
|
+
v-if="!MOBILE_APP"
|
|
5
|
+
title="Rents"
|
|
6
|
+
:actions="[
|
|
7
|
+
{ method: () => $router.push({ name: routePrefix + 'Create Rent' }), label: '+ Add Rent' }
|
|
8
|
+
]"
|
|
9
|
+
class="mn-b-medium"
|
|
10
|
+
/>
|
|
20
11
|
|
|
21
12
|
<Feed
|
|
13
|
+
v-model:items="currentProducts"
|
|
22
14
|
:search="true"
|
|
23
15
|
:keepSlotVisible="true"
|
|
24
16
|
:states="{
|
|
25
17
|
empty: {
|
|
26
|
-
title: 'No
|
|
27
|
-
description: '
|
|
18
|
+
title: 'No Tables Found',
|
|
19
|
+
description: 'No products available.'
|
|
28
20
|
}
|
|
29
21
|
}"
|
|
30
|
-
:store="{ read: (options) =>
|
|
22
|
+
:store="{ read: (options) => products.actions.read(options) }"
|
|
31
23
|
:options="{
|
|
32
24
|
owner: route.params._id,
|
|
25
|
+
listing: 'rent',
|
|
26
|
+
lookup: ['rents', 'variants'],
|
|
33
27
|
startDate: dateRange.start.toISOString(),
|
|
34
|
-
endDate: dateRange.end.toISOString()
|
|
28
|
+
endDate: dateRange.end.toISOString(),
|
|
29
|
+
limit: 50
|
|
35
30
|
}"
|
|
36
|
-
v-slot="{ items }"
|
|
37
|
-
>
|
|
31
|
+
v-slot="{ items: productItems }"
|
|
32
|
+
>
|
|
38
33
|
<GanttChart
|
|
39
34
|
v-model:view="view"
|
|
40
35
|
v-model:date="date"
|
|
41
36
|
v-model:dateRange="dateRange"
|
|
42
|
-
:items="
|
|
37
|
+
:items="flattenProductRents(productItems)"
|
|
38
|
+
:external-groups="ganttGroups(productItems)"
|
|
43
39
|
:loading="loading"
|
|
44
40
|
:title-key="'productDetails.name'"
|
|
45
41
|
:start-key="'startDate'"
|
|
46
42
|
:end-key="'endDate'"
|
|
47
43
|
:status-key="'status'"
|
|
48
44
|
:id-key="'_id'"
|
|
49
|
-
:group-by="'productDetails.
|
|
45
|
+
:group-by="'productDetails.productId'"
|
|
50
46
|
@load-more="handleLoadMore"
|
|
51
47
|
@item-click="handleItemClick"
|
|
48
|
+
@cell-click="handleCellClick"
|
|
52
49
|
@today="handleToday"
|
|
53
|
-
|
|
50
|
+
>
|
|
51
|
+
<template #product-col="{ group }">
|
|
52
|
+
<div
|
|
53
|
+
v-if="group.data?.isProductRow && group.data?.hasVariants"
|
|
54
|
+
class="flex flex-v-center gap-micro cursor-pointer h-100 w-100 o-hidden"
|
|
55
|
+
@click="toggleProduct(group.data.productId)"
|
|
56
|
+
>
|
|
57
|
+
<span class="fw-bold truncate">{{ group.title }}</span>
|
|
58
|
+
<IconChevronBottom fill="rgba(var(--dark))" class="i-small mn-l-auto ease-out flex-shrink-0" :class="{ 'rotate-180deg': expandedProducts.has(group.data.productId) }" />
|
|
59
|
+
</div>
|
|
60
|
+
<div
|
|
61
|
+
v-else-if="group.data?.isVariantRow"
|
|
62
|
+
class="flex flex-v-center gap-micro h-100 pd-l-medium o-hidden"
|
|
63
|
+
>
|
|
64
|
+
<span class="t-small opacity-50 truncate">{{ group.data.variantName || 'Default' }}</span>
|
|
65
|
+
</div>
|
|
66
|
+
<div v-else class="fw-medium truncate">{{ group.title }}</div>
|
|
67
|
+
</template>
|
|
68
|
+
</GanttChart>
|
|
54
69
|
|
|
55
70
|
<!-- <CardRent
|
|
56
71
|
v-else
|
|
@@ -60,100 +75,508 @@
|
|
|
60
75
|
class="bg-light pd-small mn-b-thin radius-small"
|
|
61
76
|
/> -->
|
|
62
77
|
</Feed>
|
|
78
|
+
|
|
79
|
+
<Popup
|
|
80
|
+
:isPopupOpen="!!selectedRent"
|
|
81
|
+
@close-popup="closeRentPopup"
|
|
82
|
+
:align="isPhone() ? 'bottom center' : 'center center'"
|
|
83
|
+
title="Rent Details"
|
|
84
|
+
class="bg-white radius-medium pd-small w-clamp-25r-25r-100 mobile:radius-zero mobile:radius-tr-medium mobile:radius-tl-medium"
|
|
85
|
+
>
|
|
86
|
+
<div v-if="selectedRent" class="w-100">
|
|
87
|
+
<p class="mn-b-small opacity-50">
|
|
88
|
+
Booking information and customer details.
|
|
89
|
+
</p>
|
|
90
|
+
|
|
91
|
+
<!-- Product & Status -->
|
|
92
|
+
<div class="mn-b-small">
|
|
93
|
+
<div class="flex-nowrap flex gap-thin">
|
|
94
|
+
<div class="w-100 bg-light radius-small pd-small">
|
|
95
|
+
<p class="mn-b-micro opacity-50 t-small">Product</p>
|
|
96
|
+
<p class="fw-medium">{{ selectedRent.productDetails?.name }}</p>
|
|
97
|
+
</div>
|
|
98
|
+
<div class="w-100 bg-light radius-small pd-small">
|
|
99
|
+
<p class="mn-b-micro opacity-50 t-small">Status</p>
|
|
100
|
+
<span class="pd-micro pd-l-thin pd-r-thin radius-extra t-micro t-white" :class="rentStatusClass">{{ selectedRent.status }}</span>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
<!-- Quick Actions -->
|
|
106
|
+
<div v-if="selectedRent.status !== 'completed' && selectedRent.status !== 'canceled'" class="mn-b-small">
|
|
107
|
+
<p class="mn-b-thin fw-medium">Actions</p>
|
|
108
|
+
<div class="flex-nowrap flex gap-thin">
|
|
109
|
+
<template v-if="selectedRent.status === 'pending'">
|
|
110
|
+
<Button
|
|
111
|
+
:submit="() => confirmRent()"
|
|
112
|
+
class="pd-small radius-small flex-center flex w-100 cursor-pointer bg-second t-white t-small"
|
|
113
|
+
>
|
|
114
|
+
Confirm
|
|
115
|
+
</Button>
|
|
116
|
+
<Button
|
|
117
|
+
:submit="() => cancelRent()"
|
|
118
|
+
class="pd-small radius-small flex-center flex w-100 cursor-pointer bg-red t-white t-small"
|
|
119
|
+
>
|
|
120
|
+
Cancel
|
|
121
|
+
</Button>
|
|
122
|
+
</template>
|
|
123
|
+
<template v-if="selectedRent.status === 'confirmed' || selectedRent.status === 'active'">
|
|
124
|
+
<Button
|
|
125
|
+
:submit="() => closeRent()"
|
|
126
|
+
class="pd-small radius-small flex-center flex w-100 cursor-pointer bg-main t-black t-small"
|
|
127
|
+
>
|
|
128
|
+
Close
|
|
129
|
+
</Button>
|
|
130
|
+
<Button
|
|
131
|
+
:submit="() => closeRentNow()"
|
|
132
|
+
class="pd-small radius-small flex-center flex w-100 cursor-pointer bg-green t-white t-small"
|
|
133
|
+
>
|
|
134
|
+
Close Now
|
|
135
|
+
</Button>
|
|
136
|
+
</template>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
|
|
140
|
+
<!-- Dates -->
|
|
141
|
+
<div class="mn-b-small">
|
|
142
|
+
<p class="mn-b-thin fw-medium">Period</p>
|
|
143
|
+
<div class="flex-nowrap flex gap-thin">
|
|
144
|
+
<div class="w-100 bg-light radius-small pd-small">
|
|
145
|
+
<p class="mn-b-micro opacity-50 t-small">From</p>
|
|
146
|
+
<p>{{ formatDate(selectedRent.startDate) }}</p>
|
|
147
|
+
</div>
|
|
148
|
+
<div class="w-100 bg-light radius-small pd-small">
|
|
149
|
+
<p class="mn-b-micro opacity-50 t-small">To</p>
|
|
150
|
+
<p>{{ formatDate(selectedRent.endDate) }}</p>
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
153
|
+
</div>
|
|
154
|
+
|
|
155
|
+
<!-- Payment -->
|
|
156
|
+
<div class="mn-b-small">
|
|
157
|
+
<p class="mn-b-thin fw-medium">Payment</p>
|
|
158
|
+
<div v-if="selectedRentOrder?.payment" class="flex-nowrap flex gap-thin">
|
|
159
|
+
<div class="w-100 bg-light radius-small pd-small">
|
|
160
|
+
<p class="mn-b-micro opacity-50 t-small">Method</p>
|
|
161
|
+
<p>{{ selectedRentOrder.payment.type || '—' }}</p>
|
|
162
|
+
</div>
|
|
163
|
+
<div class="w-100 bg-light radius-small pd-small">
|
|
164
|
+
<p class="mn-b-micro opacity-50 t-small">Status</p>
|
|
165
|
+
<div class="flex-v-center flex gap-micro">
|
|
166
|
+
<p class="fw-medium" :class="selectedRentOrder.payment?.status === 'paid' ? 't-green' : 't-red'">{{ selectedRentOrder.payment?.status || 'unpaid' }}</p>
|
|
167
|
+
<div
|
|
168
|
+
@click="togglePaymentStatus"
|
|
169
|
+
class="cursor-pointer radius-extra mn-l-auto"
|
|
170
|
+
:class="selectedRentOrder.payment?.status === 'paid' ? 'bg-green' : 'bg-light'"
|
|
171
|
+
style="width: 36px; height: 20px; position: relative; transition: background 0.2s; flex-shrink: 0;"
|
|
172
|
+
>
|
|
173
|
+
<div
|
|
174
|
+
class="bg-white radius-extra"
|
|
175
|
+
style="width: 16px; height: 16px; position: absolute; top: 2px; transition: left 0.2s;"
|
|
176
|
+
:style="{ left: selectedRentOrder.payment?.status === 'paid' ? '18px' : '2px' }"
|
|
177
|
+
></div>
|
|
178
|
+
</div>
|
|
179
|
+
</div>
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
<div v-else class="bg-light radius-small pd-small opacity-50 t-small">
|
|
183
|
+
No order linked
|
|
184
|
+
</div>
|
|
185
|
+
</div>
|
|
186
|
+
|
|
187
|
+
<!-- Order -->
|
|
188
|
+
<div v-if="selectedRent.order" class="mn-b-small">
|
|
189
|
+
<p class="mn-b-thin fw-medium">Order</p>
|
|
190
|
+
<router-link
|
|
191
|
+
:to="orderLink"
|
|
192
|
+
class="flex-v-center flex gap-thin bg-light radius-small pd-small cursor-pointer hover:opacity-70"
|
|
193
|
+
>
|
|
194
|
+
<div class="flex-column flex w-100">
|
|
195
|
+
<p class="t-small opacity-50 mn-b-micro">Order ID</p>
|
|
196
|
+
<p class="fw-medium t-small">{{ selectedRent.order }}</p>
|
|
197
|
+
</div>
|
|
198
|
+
<span class="t-small opacity-50">→</span>
|
|
199
|
+
</router-link>
|
|
200
|
+
</div>
|
|
201
|
+
|
|
202
|
+
<!-- Customer -->
|
|
203
|
+
<div class="mn-b-small">
|
|
204
|
+
<p class="mn-b-thin fw-medium">Customer</p>
|
|
205
|
+
<router-link
|
|
206
|
+
v-if="selectedRentCustomer"
|
|
207
|
+
:to="customerLink"
|
|
208
|
+
class="bg-light radius-small pd-small cursor-pointer hover:opacity-70 flex-v-center flex"
|
|
209
|
+
>
|
|
210
|
+
<div class="w-100">
|
|
211
|
+
<p v-if="selectedRentCustomer.profile?.name" class="fw-medium mn-b-micro">{{ selectedRentCustomer.profile.name }}</p>
|
|
212
|
+
<p v-if="selectedRentCustomer.phone" class="t-small opacity-70 mn-b-micro">{{ selectedRentCustomer.phone }}</p>
|
|
213
|
+
<p v-if="selectedRentCustomer.email" class="t-small opacity-70">{{ selectedRentCustomer.email }}</p>
|
|
214
|
+
</div>
|
|
215
|
+
<span class="t-small opacity-50">→</span>
|
|
216
|
+
</router-link>
|
|
217
|
+
<div v-else class="bg-light radius-small pd-small opacity-50">
|
|
218
|
+
No customer linked
|
|
219
|
+
</div>
|
|
220
|
+
</div>
|
|
221
|
+
|
|
222
|
+
<!-- Comment -->
|
|
223
|
+
<div v-if="selectedRent.comment" class="mn-b-small">
|
|
224
|
+
<p class="mn-b-thin fw-medium">Comment</p>
|
|
225
|
+
<div class="bg-light radius-small pd-small t-small">{{ selectedRent.comment }}</div>
|
|
226
|
+
</div>
|
|
227
|
+
|
|
228
|
+
<!-- Close popup button -->
|
|
229
|
+
<div class="flex-nowrap flex gap-small">
|
|
230
|
+
<Button
|
|
231
|
+
:submit="() => closeRentPopup()"
|
|
232
|
+
:showLoader="false"
|
|
233
|
+
:showSucces="false"
|
|
234
|
+
class="pd-small radius-small flex-center flex w-100 cursor-pointer bg-main t-black"
|
|
235
|
+
>
|
|
236
|
+
Close
|
|
237
|
+
</Button>
|
|
238
|
+
</div>
|
|
239
|
+
</div>
|
|
240
|
+
</Popup>
|
|
241
|
+
|
|
242
|
+
<!-- Create Rent Popup -->
|
|
243
|
+
<Popup
|
|
244
|
+
:isPopupOpen="showCreatePopup"
|
|
245
|
+
@close-popup="closeCreatePopup"
|
|
246
|
+
:align="isPhone() ? 'bottom center' : 'center right'"
|
|
247
|
+
title="Create Rent"
|
|
248
|
+
class="bg-white pd-small w-clamp-25r-25r-100 desktop:h-100 desktop:radius-zero mobile:radius-zero mobile:radius-tr-medium mobile:radius-tl-medium"
|
|
249
|
+
>
|
|
250
|
+
<div class="flex flex-column gap-thin">
|
|
251
|
+
<!-- <Block title="Product" class=""> -->
|
|
252
|
+
<CardOrderItem
|
|
253
|
+
:editable="true"
|
|
254
|
+
:productId="createRentData.productId"
|
|
255
|
+
:variantId="createRentData.variantId"
|
|
256
|
+
:images="createRentData.productImages"
|
|
257
|
+
:name="createRentData.productName"
|
|
258
|
+
:price="createRentData.productPrice"
|
|
259
|
+
:listing="'rent'"
|
|
260
|
+
:dates="createRentDates"
|
|
261
|
+
:rentPeriod="createRentData.rentPeriod"
|
|
262
|
+
@updateRentDates="onRentDatesUpdate"
|
|
263
|
+
class="pd-thin radius-small bg-white"
|
|
264
|
+
/>
|
|
265
|
+
<!-- </Block> -->
|
|
266
|
+
|
|
267
|
+
<FormSelectCustomer
|
|
268
|
+
v-model:customer="createRentData.customer"
|
|
269
|
+
:orgId="getOwnerIdFromProduct(createRentData.productOwner)"
|
|
270
|
+
/>
|
|
271
|
+
|
|
272
|
+
<Block title="Comment" class="">
|
|
273
|
+
<Field v-model="createRentData.comment" type="textarea" class="bg-white radius-small pd-small" />
|
|
274
|
+
</Block>
|
|
275
|
+
|
|
276
|
+
<Button
|
|
277
|
+
:submit="() => submitCreateRent()"
|
|
278
|
+
class="bg-second t-white pd-small radius-small w-100 mn-t-thin"
|
|
279
|
+
>
|
|
280
|
+
Create Rent
|
|
281
|
+
</Button>
|
|
282
|
+
</div>
|
|
283
|
+
</Popup>
|
|
63
284
|
</div>
|
|
64
285
|
</template>
|
|
65
286
|
|
|
66
287
|
<script setup>
|
|
67
288
|
import dayjs from 'dayjs'
|
|
68
289
|
|
|
69
|
-
import Tab from '@martyrs/src/components/Tab/Tab.vue';
|
|
70
290
|
import Feed from '@martyrs/src/components/Feed/Feed.vue';
|
|
71
|
-
|
|
72
|
-
import
|
|
73
|
-
|
|
291
|
+
import Field from '@martyrs/src/components/Field/Field.vue';
|
|
292
|
+
import Popup from '@martyrs/src/components/Popup/Popup.vue';
|
|
293
|
+
import Button from '@martyrs/src/components/Button/Button.vue';
|
|
294
|
+
import Block from '@martyrs/src/components/Block/Block.vue';
|
|
295
|
+
import CardOrderItem from '@martyrs/src/modules/orders/components/blocks/CardOrderItem.vue';
|
|
296
|
+
import SectionPageTitle from '@martyrs/src/modules/core/views/components/sections/SectionPageTitle.vue';
|
|
74
297
|
import GanttChart from '@martyrs/src/modules/rents/views/components/pages/Gant/GanttChart.vue';
|
|
298
|
+
import IconChevronBottom from '@martyrs/src/modules/icons/navigation/IconChevronBottom.vue';
|
|
299
|
+
import FormSelectCustomer from '@martyrs/src/modules/orders/components/forms/FormSelectCustomer.vue';
|
|
300
|
+
import * as auth from '@martyrs/src/modules/auth/views/store/auth.js';
|
|
75
301
|
|
|
76
|
-
import { computed,
|
|
302
|
+
import { computed, reactive, ref } from 'vue';
|
|
77
303
|
import { useRoute, useRouter } from 'vue-router';
|
|
304
|
+
import { useGlobalMixins } from '@martyrs/src/modules/core/views/mixins/mixins.js';
|
|
78
305
|
|
|
79
306
|
import * as rents from '@martyrs/src/modules/rents/views/store/rents.store';
|
|
307
|
+
import * as products from '@martyrs/src/modules/products/store/products.js';
|
|
308
|
+
import * as orders from '@martyrs/src/modules/orders/store/orders.js';
|
|
309
|
+
import { useStore } from '@martyrs/src/modules/core/views/store/core.store.js';
|
|
310
|
+
const { core } = useStore();
|
|
80
311
|
|
|
81
312
|
const route = useRoute();
|
|
82
313
|
const router = useRouter();
|
|
314
|
+
const { isPhone } = useGlobalMixins();
|
|
83
315
|
|
|
84
|
-
const
|
|
85
|
-
|
|
316
|
+
const currentProducts = ref([])
|
|
86
317
|
|
|
87
|
-
//
|
|
88
|
-
const view = ref('
|
|
318
|
+
// --- Gantt view state ---
|
|
319
|
+
const view = ref('hours')
|
|
89
320
|
const date = ref(new Date())
|
|
90
321
|
const loading = ref(false)
|
|
91
322
|
|
|
92
323
|
const dateRange = computed(() => {
|
|
93
324
|
const d = dayjs(date.value)
|
|
94
|
-
|
|
95
325
|
switch (view.value) {
|
|
96
326
|
case 'hours':
|
|
97
|
-
|
|
98
|
-
return {
|
|
99
|
-
start: d.startOf('day').toDate(),
|
|
100
|
-
end: d.endOf('day').toDate()
|
|
101
|
-
}
|
|
102
|
-
|
|
327
|
+
return { start: d.startOf('day').toDate(), end: d.endOf('day').toDate() }
|
|
103
328
|
case 'days':
|
|
104
|
-
return {
|
|
105
|
-
start: d.startOf('month').toDate(),
|
|
106
|
-
end: d.endOf('month').toDate()
|
|
107
|
-
}
|
|
108
|
-
|
|
329
|
+
return { start: d.startOf('month').toDate(), end: d.endOf('month').toDate() }
|
|
109
330
|
case 'weeks':
|
|
110
|
-
return {
|
|
111
|
-
start: d.subtract(1, 'month').startOf('week').toDate(),
|
|
112
|
-
end: d.add(2, 'months').endOf('week').toDate()
|
|
113
|
-
}
|
|
114
|
-
|
|
331
|
+
return { start: d.subtract(1, 'month').startOf('week').toDate(), end: d.add(2, 'months').endOf('week').toDate() }
|
|
115
332
|
default:
|
|
116
|
-
return {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
333
|
+
return { start: d.startOf('month').toDate(), end: d.endOf('month').toDate() }
|
|
334
|
+
}
|
|
335
|
+
})
|
|
336
|
+
|
|
337
|
+
const routePrefix = computed(() => {
|
|
338
|
+
const ctx = route.meta.context
|
|
339
|
+
if (ctx === 'backoffice') return 'Backoffice'
|
|
340
|
+
if (ctx === 'organization') return 'Organization_'
|
|
341
|
+
return ''
|
|
342
|
+
})
|
|
343
|
+
|
|
344
|
+
// --- Извлечь owner ID строкой ---
|
|
345
|
+
const getOwnerIdFromProduct = (owner) => {
|
|
346
|
+
if (!owner) return route.params._id
|
|
347
|
+
if (typeof owner === 'string') return owner
|
|
348
|
+
if (typeof owner?.target === 'string') return owner.target
|
|
349
|
+
if (owner?.target?._id) return owner.target._id
|
|
350
|
+
return route.params._id
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
// --- Expand/collapse ---
|
|
354
|
+
const expandedProducts = ref(new Set())
|
|
355
|
+
const toggleProduct = (productId) => {
|
|
356
|
+
const s = new Set(expandedProducts.value)
|
|
357
|
+
s.has(productId) ? s.delete(productId) : s.add(productId)
|
|
358
|
+
expandedProducts.value = s
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
// --- Groups ---
|
|
362
|
+
const expandedInitialized = ref(false)
|
|
363
|
+
const ganttGroups = (productItems) => {
|
|
364
|
+
if (!expandedInitialized.value && productItems.length > 0) {
|
|
365
|
+
productItems.forEach(p => {
|
|
366
|
+
if (p.variants?.length) expandedProducts.value.add(p._id)
|
|
367
|
+
})
|
|
368
|
+
expandedProducts.value = new Set(expandedProducts.value)
|
|
369
|
+
expandedInitialized.value = true
|
|
120
370
|
}
|
|
371
|
+
|
|
372
|
+
const groups = []
|
|
373
|
+
productItems.forEach(product => {
|
|
374
|
+
const hasVariants = product.variants?.length > 0
|
|
375
|
+
groups.push({
|
|
376
|
+
key: product._id,
|
|
377
|
+
title: product.name || 'Unknown',
|
|
378
|
+
data: { productId: product._id, isProductRow: true, hasVariants, productImages: product.images || [], productPrice: product.price || 0, productOwner: product.owner, productRentPeriod: product.rentPeriod || 'day' }
|
|
379
|
+
})
|
|
380
|
+
if (hasVariants && expandedProducts.value.has(product._id)) {
|
|
381
|
+
product.variants.forEach(variant => {
|
|
382
|
+
groups.push({
|
|
383
|
+
key: `${product._id}_${variant._id}`,
|
|
384
|
+
title: variant.name || 'Default',
|
|
385
|
+
data: {
|
|
386
|
+
productId: product._id,
|
|
387
|
+
productName: product.name || 'Unknown',
|
|
388
|
+
variantId: variant._id,
|
|
389
|
+
variantName: variant.name,
|
|
390
|
+
isVariantRow: true,
|
|
391
|
+
productImages: variant.images?.length ? variant.images : (product.images || []),
|
|
392
|
+
productPrice: variant.price || product.price || 0,
|
|
393
|
+
productOwner: product.owner,
|
|
394
|
+
productRentPeriod: product.rentPeriod || 'day'
|
|
395
|
+
}
|
|
396
|
+
})
|
|
397
|
+
})
|
|
398
|
+
}
|
|
399
|
+
})
|
|
400
|
+
return groups
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
// --- Flatten rents ---
|
|
404
|
+
const flattenProductRents = (productItems) => {
|
|
405
|
+
const result = []
|
|
406
|
+
productItems.forEach(product => {
|
|
407
|
+
const name = product.name || 'Unknown'
|
|
408
|
+
const hasVariants = product.variants?.length > 0
|
|
409
|
+
|
|
410
|
+
if (product.rents?.length > 0) {
|
|
411
|
+
product.rents.forEach(rent => {
|
|
412
|
+
const groupKey = hasVariants && rent.variant ? `${product._id}_${rent.variant}` : product._id
|
|
413
|
+
result.push({ ...rent, productDetails: { name, productId: groupKey } })
|
|
414
|
+
})
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
if (!product.rents?.some(r => !r.variant)) {
|
|
418
|
+
result.push({ _id: `placeholder-${product._id}`, productDetails: { name, productId: product._id }, startDate: null, endDate: null, status: null })
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
if (hasVariants && expandedProducts.value.has(product._id)) {
|
|
422
|
+
product.variants.forEach(variant => {
|
|
423
|
+
const varKey = `${product._id}_${variant._id}`
|
|
424
|
+
if (!product.rents?.some(r => r.variant === variant._id)) {
|
|
425
|
+
result.push({ _id: `placeholder-${varKey}`, productDetails: { name: variant.name || 'Default', productId: varKey }, startDate: null, endDate: null, status: null })
|
|
426
|
+
}
|
|
427
|
+
})
|
|
428
|
+
}
|
|
429
|
+
})
|
|
430
|
+
return result
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
// --- Create rent popup ---
|
|
434
|
+
const showCreatePopup = ref(false)
|
|
435
|
+
const createRentData = reactive({
|
|
436
|
+
productId: null,
|
|
437
|
+
productName: '',
|
|
438
|
+
productImages: [],
|
|
439
|
+
productPrice: 0,
|
|
440
|
+
productOwner: null,
|
|
441
|
+
variantId: null,
|
|
442
|
+
variantName: '',
|
|
443
|
+
comment: '',
|
|
444
|
+
customer: null,
|
|
445
|
+
rentPeriod: 'day'
|
|
121
446
|
})
|
|
447
|
+
const createRentDates = ref({ start: null, end: null })
|
|
448
|
+
|
|
449
|
+
const closeCreatePopup = () => {
|
|
450
|
+
showCreatePopup.value = false
|
|
451
|
+
createRentData.productId = null
|
|
452
|
+
createRentData.productName = ''
|
|
453
|
+
createRentData.productImages = []
|
|
454
|
+
createRentData.productPrice = 0
|
|
455
|
+
createRentData.productOwner = null
|
|
456
|
+
createRentData.variantId = null
|
|
457
|
+
createRentData.variantName = ''
|
|
458
|
+
createRentData.comment = ''
|
|
459
|
+
createRentData.customer = null
|
|
460
|
+
createRentData.rentPeriod = 'day'
|
|
461
|
+
createRentDates.value = { start: null, end: null }
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
const handleCellClick = ({ group, cell }) => {
|
|
465
|
+
if (!group?.data) return
|
|
466
|
+
const d = cell?.date ? dayjs(cell.date) : dayjs()
|
|
467
|
+
|
|
468
|
+
createRentData.productId = group.data.productId
|
|
469
|
+
createRentData.productName = group.data.isVariantRow ? group.data.productName : group.title
|
|
470
|
+
createRentData.productImages = group.data.productImages || []
|
|
471
|
+
createRentData.productPrice = group.data.productPrice || 0
|
|
472
|
+
createRentData.productOwner = group.data.productOwner
|
|
473
|
+
createRentData.variantId = group.data.variantId || null
|
|
474
|
+
createRentData.variantName = group.data.variantName || ''
|
|
475
|
+
createRentData.comment = ''
|
|
476
|
+
createRentData.customer = null
|
|
477
|
+
createRentData.rentPeriod = group.data.productRentPeriod || 'day'
|
|
478
|
+
|
|
479
|
+
const start = d.toDate()
|
|
480
|
+
const end = d.add(4, 'hour').toDate()
|
|
481
|
+
createRentDates.value = { start, end }
|
|
482
|
+
|
|
483
|
+
showCreatePopup.value = true
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
const onRentDatesUpdate = (productId, variantId, dates) => {
|
|
487
|
+
createRentDates.value = dates
|
|
488
|
+
}
|
|
122
489
|
|
|
123
|
-
|
|
490
|
+
const submitCreateRent = async () => {
|
|
491
|
+
const { start, end } = createRentDates.value
|
|
492
|
+
if (!start || !end) throw new Error('No dates selected')
|
|
493
|
+
|
|
494
|
+
const ownerId = getOwnerIdFromProduct(createRentData.productOwner)
|
|
495
|
+
const startDate = new Date(start).toISOString()
|
|
496
|
+
const endDate = new Date(end).toISOString()
|
|
497
|
+
|
|
498
|
+
// 1. Создаём рент
|
|
499
|
+
console.log('[submitCreateRent] customer:', JSON.stringify(createRentData.customer))
|
|
500
|
+
console.log('[submitCreateRent] customer._id:', createRentData.customer?._id)
|
|
501
|
+
const rentResult = await rents.actions.create({
|
|
502
|
+
product: createRentData.productId,
|
|
503
|
+
variant: createRentData.variantId || undefined,
|
|
504
|
+
startDate,
|
|
505
|
+
endDate,
|
|
506
|
+
status: 'pending',
|
|
507
|
+
comment: createRentData.comment || undefined,
|
|
508
|
+
owner: { type: 'Organization', target: ownerId },
|
|
509
|
+
creator: { type: 'User', target: auth.state.user?._id }
|
|
510
|
+
})
|
|
511
|
+
|
|
512
|
+
console.log('[submitCreateRent] rentResult:', JSON.stringify(rentResult))
|
|
513
|
+
|
|
514
|
+
// 2. Создаём ордер, передаём existingRents чтобы бэк не дублировал
|
|
515
|
+
const customerPayload = createRentData.customer?._id
|
|
516
|
+
? { type: 'Customer', target: createRentData.customer._id }
|
|
517
|
+
: createRentData.customer?.phone
|
|
518
|
+
? { type: 'Customer', target: null, phone: createRentData.customer.phone, email: createRentData.customer.email, profile: { name: createRentData.customer.profile?.name } }
|
|
519
|
+
: undefined
|
|
520
|
+
console.log('[submitCreateRent] customerPayload for order:', JSON.stringify(customerPayload))
|
|
521
|
+
const orderResult = await orders.actions.create({
|
|
522
|
+
customer: createRentData.customer?._id
|
|
523
|
+
? { type: 'Customer', target: createRentData.customer._id }
|
|
524
|
+
: createRentData.customer?.phone
|
|
525
|
+
? { type: 'Customer', target: null, phone: createRentData.customer.phone, email: createRentData.customer.email, profile: { name: createRentData.customer.profile?.name } }
|
|
526
|
+
: undefined,
|
|
527
|
+
owner: { type: 'Organization', target: ownerId },
|
|
528
|
+
status: 'pending',
|
|
529
|
+
creator: { type: 'User', target: auth.state.user?._id },
|
|
530
|
+
comment: createRentData.comment || undefined,
|
|
531
|
+
existingRents: rentResult?._id ? [rentResult._id] : [],
|
|
532
|
+
positions: [{
|
|
533
|
+
_id: createRentData.productId,
|
|
534
|
+
variant: createRentData.variantId || undefined,
|
|
535
|
+
name: createRentData.productName,
|
|
536
|
+
price: createRentData.productPrice,
|
|
537
|
+
quantity: 1,
|
|
538
|
+
listing: 'rent',
|
|
539
|
+
rentPeriod: createRentData.rentPeriod || 'flat',
|
|
540
|
+
date: { start: startDate, end: endDate }
|
|
541
|
+
}]
|
|
542
|
+
})
|
|
543
|
+
|
|
544
|
+
console.log('[submitCreateRent] orderResult:', JSON.stringify(orderResult))
|
|
545
|
+
console.log('[submitCreateRent] orderResult.customer:', JSON.stringify(orderResult?.customer))
|
|
546
|
+
if (!orderResult?._id) throw new Error('Order creation failed')
|
|
547
|
+
|
|
548
|
+
// 3. Привязываем рент к ордеру
|
|
549
|
+
if (rentResult?._id) {
|
|
550
|
+
await rents.actions.update({ _id: rentResult._id, order: orderResult._id })
|
|
551
|
+
rentResult.order = orderResult._id
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
// 4. Добавляем рент в Gantt реактивно (customer для отображения в баре)
|
|
555
|
+
if (createRentData.customer) {
|
|
556
|
+
rentResult.customer = {
|
|
557
|
+
profile: createRentData.customer.profile,
|
|
558
|
+
phone: createRentData.customer.phone,
|
|
559
|
+
email: createRentData.customer.email
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
const product = currentProducts.value.find(p => p._id === createRentData.productId)
|
|
563
|
+
if (product) {
|
|
564
|
+
if (!product.rents) product.rents = []
|
|
565
|
+
core.actions.add(product.rents, rentResult)
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
closeCreatePopup()
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
// --- Navigation ---
|
|
124
572
|
const handleLoadMore = async (direction) => {
|
|
125
|
-
console.log('Loading more:', direction)
|
|
126
|
-
|
|
127
573
|
loading.value = true
|
|
128
|
-
|
|
129
574
|
try {
|
|
130
|
-
// Only update date if it's navigation (not refresh)
|
|
131
575
|
if (direction !== 'refresh') {
|
|
132
576
|
const d = dayjs(date.value)
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
switch (view.value) {
|
|
136
|
-
case 'hours':
|
|
137
|
-
newDate = direction === 'forward'
|
|
138
|
-
? d.add(1, 'day').toDate()
|
|
139
|
-
: d.subtract(1, 'day').toDate()
|
|
140
|
-
break
|
|
141
|
-
case 'days':
|
|
142
|
-
newDate = direction === 'forward'
|
|
143
|
-
? d.add(1, 'month').toDate()
|
|
144
|
-
: d.subtract(1, 'month').toDate()
|
|
145
|
-
break
|
|
146
|
-
case 'weeks':
|
|
147
|
-
newDate = direction === 'forward'
|
|
148
|
-
? d.add(1, 'month').toDate()
|
|
149
|
-
: d.subtract(1, 'month').toDate()
|
|
150
|
-
break
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
date.value = newDate
|
|
577
|
+
const unit = view.value === 'hours' ? 'day' : 'month'
|
|
578
|
+
date.value = direction === 'forward' ? d.add(1, unit).toDate() : d.subtract(1, unit).toDate()
|
|
154
579
|
}
|
|
155
|
-
|
|
156
|
-
// Load data for the current date range
|
|
157
580
|
await rents.actions.read({
|
|
158
581
|
owner: route.params._id,
|
|
159
582
|
startDate: dateRange.value.start.toISOString(),
|
|
@@ -166,69 +589,145 @@ const handleLoadMore = async (direction) => {
|
|
|
166
589
|
}
|
|
167
590
|
}
|
|
168
591
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
if (
|
|
181
|
-
|
|
182
|
-
|
|
592
|
+
const handleToday = () => { date.value = new Date() }
|
|
593
|
+
|
|
594
|
+
// --- Rent details popup ---
|
|
595
|
+
const selectedRent = ref(null)
|
|
596
|
+
const selectedRentOrder = ref(null)
|
|
597
|
+
const selectedRentCustomer = ref(null)
|
|
598
|
+
|
|
599
|
+
const orderLink = computed(() => {
|
|
600
|
+
if (!selectedRent.value?.order) return ''
|
|
601
|
+
const ctx = route.meta.context
|
|
602
|
+
const id = selectedRent.value.order
|
|
603
|
+
if (ctx === 'backoffice') return `/backoffice/orders/${id}`
|
|
604
|
+
if (ctx === 'organization') return `/organizations/${route.params._id}/orders/${id}`
|
|
605
|
+
return `/orders/${id}`
|
|
606
|
+
})
|
|
607
|
+
|
|
608
|
+
const customerLink = computed(() => {
|
|
609
|
+
if (!selectedRentCustomer.value?._id) return ''
|
|
610
|
+
const ctx = route.meta.context
|
|
611
|
+
const id = selectedRentCustomer.value._id
|
|
612
|
+
if (ctx === 'backoffice') return `/backoffice/customers?customerId=${id}`
|
|
613
|
+
if (ctx === 'organization') return `/organizations/${route.params._id}/customers?customerId=${id}`
|
|
614
|
+
return `/customers?customerId=${id}`
|
|
615
|
+
})
|
|
616
|
+
|
|
617
|
+
const rentStatusClass = computed(() => {
|
|
618
|
+
const map = { pending: 'bg-yellow', confirmed: 'bg-second', active: 'bg-green', completed: 'bg-grey', canceled: 'bg-red' }
|
|
619
|
+
return map[selectedRent.value?.status] || 'bg-second'
|
|
620
|
+
})
|
|
621
|
+
|
|
622
|
+
const formatDate = (d) => d ? dayjs(d).format('HH:mm, DD MMM YYYY') : '—'
|
|
623
|
+
|
|
624
|
+
const loadOrderData = async (orderId) => {
|
|
625
|
+
if (!orderId) return
|
|
626
|
+
try {
|
|
627
|
+
console.log('[loadOrderData] loading order:', orderId)
|
|
628
|
+
const result = await orders.actions.read({ _id: orderId })
|
|
629
|
+
console.log('[loadOrderData] result:', JSON.stringify(result?.[0]?.customer))
|
|
630
|
+
if (result?.length > 0) {
|
|
631
|
+
selectedRentOrder.value = result[0]
|
|
632
|
+
console.log('[loadOrderData] customer.target:', result[0].customer?.target)
|
|
633
|
+
console.log('[loadOrderData] customer.target type:', typeof result[0].customer?.target)
|
|
634
|
+
if (result[0].customer?.target) selectedRentCustomer.value = result[0].customer.target
|
|
635
|
+
console.log('[loadOrderData] selectedRentCustomer:', JSON.stringify(selectedRentCustomer.value))
|
|
636
|
+
}
|
|
637
|
+
} catch (err) {
|
|
638
|
+
console.error('[loadOrderData] Error:', err)
|
|
183
639
|
}
|
|
184
640
|
}
|
|
185
641
|
|
|
186
|
-
const
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
calendarEndDate.value = date;
|
|
211
|
-
} else {
|
|
212
|
-
calendarStartDate.value = date;
|
|
642
|
+
const handleItemClick = (item) => {
|
|
643
|
+
if (item._id?.startsWith('placeholder-')) return
|
|
644
|
+
console.log('[handleItemClick] item:', item._id, 'order:', item.order)
|
|
645
|
+
selectedRent.value = item
|
|
646
|
+
selectedRentOrder.value = null
|
|
647
|
+
selectedRentCustomer.value = null
|
|
648
|
+
if (item.order) loadOrderData(item.order)
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
const closeRentPopup = () => {
|
|
652
|
+
selectedRent.value = null
|
|
653
|
+
selectedRentOrder.value = null
|
|
654
|
+
selectedRentCustomer.value = null
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
// --- Обновить статус ренты в product.rents (оригинал, не копия) ---
|
|
658
|
+
const updateRentInProducts = (rentId, updates) => {
|
|
659
|
+
for (const product of currentProducts.value) {
|
|
660
|
+
if (!product.rents) continue
|
|
661
|
+
const rent = product.rents.find(r => r._id === rentId)
|
|
662
|
+
if (rent) {
|
|
663
|
+
Object.assign(rent, updates)
|
|
664
|
+
break
|
|
665
|
+
}
|
|
213
666
|
}
|
|
214
|
-
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
// --- Quick actions ---
|
|
670
|
+
const confirmRent = async () => {
|
|
215
671
|
try {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
672
|
+
await rents.actions.update({ _id: selectedRent.value._id, status: 'active' })
|
|
673
|
+
selectedRent.value.status = 'active'
|
|
674
|
+
updateRentInProducts(selectedRent.value._id, { status: 'active' })
|
|
675
|
+
if (selectedRentOrder.value) {
|
|
676
|
+
await orders.actions.update({ _id: selectedRentOrder.value._id, status: 'in_progress' })
|
|
677
|
+
selectedRentOrder.value.status = 'in_progress'
|
|
678
|
+
}
|
|
679
|
+
} catch (err) { console.error('Error confirming rent:', err) }
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
const cancelRent = async () => {
|
|
683
|
+
try {
|
|
684
|
+
await rents.actions.update({ _id: selectedRent.value._id, status: 'canceled' })
|
|
685
|
+
selectedRent.value.status = 'canceled'
|
|
686
|
+
updateRentInProducts(selectedRent.value._id, { status: 'canceled' })
|
|
687
|
+
if (selectedRentOrder.value) {
|
|
688
|
+
await orders.actions.update({ _id: selectedRentOrder.value._id, status: 'canceled' })
|
|
689
|
+
selectedRentOrder.value.status = 'canceled'
|
|
690
|
+
}
|
|
691
|
+
closeRentPopup()
|
|
692
|
+
} catch (err) { console.error('Error canceling rent:', err) }
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
const closeRent = async () => {
|
|
696
|
+
try {
|
|
697
|
+
await rents.actions.update({ _id: selectedRent.value._id, status: 'completed' })
|
|
698
|
+
selectedRent.value.status = 'completed'
|
|
699
|
+
updateRentInProducts(selectedRent.value._id, { status: 'completed' })
|
|
700
|
+
if (selectedRentOrder.value) {
|
|
701
|
+
await orders.actions.update({ _id: selectedRentOrder.value._id, status: 'finished' })
|
|
702
|
+
selectedRentOrder.value.status = 'finished'
|
|
703
|
+
}
|
|
704
|
+
closeRentPopup()
|
|
705
|
+
} catch (err) { console.error('Error closing rent:', err) }
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
const closeRentNow = async () => {
|
|
709
|
+
const now = new Date().toISOString()
|
|
710
|
+
try {
|
|
711
|
+
await rents.actions.update({ _id: selectedRent.value._id, status: 'completed', endDate: now })
|
|
712
|
+
selectedRent.value.status = 'completed'
|
|
713
|
+
selectedRent.value.endDate = now
|
|
714
|
+
updateRentInProducts(selectedRent.value._id, { status: 'completed', endDate: now })
|
|
715
|
+
if (selectedRentOrder.value) {
|
|
716
|
+
await orders.actions.update({ _id: selectedRentOrder.value._id, status: 'finished' })
|
|
717
|
+
selectedRentOrder.value.status = 'finished'
|
|
718
|
+
}
|
|
719
|
+
closeRentPopup()
|
|
720
|
+
} catch (err) { console.error('Error closing rent:', err) }
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
const togglePaymentStatus = async () => {
|
|
724
|
+
if (!selectedRentOrder.value) return
|
|
725
|
+
const newStatus = selectedRentOrder.value.payment?.status === 'paid' ? 'unpaid' : 'paid'
|
|
726
|
+
try {
|
|
727
|
+
await orders.actions.update({ _id: selectedRentOrder.value._id, payment: { ...selectedRentOrder.value.payment, status: newStatus } })
|
|
728
|
+
selectedRentOrder.value.payment = { ...selectedRentOrder.value.payment, status: newStatus }
|
|
729
|
+
} catch (err) { console.error('Error toggling payment:', err) }
|
|
730
|
+
}
|
|
232
731
|
</script>
|
|
233
732
|
|
|
234
733
|
<style lang="scss">
|