@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
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import { ref, computed, createElementBlock, openBlock, createCommentVNode, createElementVNode, Fragment, renderList, toDisplayString, normalizeStyle, renderSlot, createTextVNode } from "vue";
|
|
2
|
+
const _hoisted_1 = ["viewBox"];
|
|
3
|
+
const _hoisted_2 = ["y1", "y2"];
|
|
4
|
+
const _hoisted_3 = ["x", "y"];
|
|
5
|
+
const _hoisted_4 = ["d", "fill"];
|
|
6
|
+
const _hoisted_5 = ["d"];
|
|
7
|
+
const _hoisted_6 = ["x1", "x2"];
|
|
8
|
+
const _hoisted_7 = ["x", "width", "height", "onMouseenter"];
|
|
9
|
+
const _hoisted_8 = ["cx", "cy"];
|
|
10
|
+
const _hoisted_9 = ["x", "y", "text-anchor"];
|
|
11
|
+
const _hoisted_10 = {
|
|
12
|
+
key: 1,
|
|
13
|
+
class: "opacity-50"
|
|
14
|
+
};
|
|
15
|
+
const W = 500;
|
|
16
|
+
const H = 200;
|
|
17
|
+
const CHART_LEFT = 5;
|
|
18
|
+
const CHART_RIGHT = 495;
|
|
19
|
+
const CHART_TOP = 15;
|
|
20
|
+
const CHART_BOTTOM = 175;
|
|
21
|
+
const _sfc_main = {
|
|
22
|
+
__name: "Chart",
|
|
23
|
+
props: {
|
|
24
|
+
data: { type: Array, default: () => [] },
|
|
25
|
+
valueKey: { type: String, default: "value" },
|
|
26
|
+
labelKey: { type: String, default: "label" },
|
|
27
|
+
formatValue: { type: Function, default: (v) => v },
|
|
28
|
+
formatLabel: { type: Function, default: (v) => v },
|
|
29
|
+
emptyText: { type: String, default: "No data" }
|
|
30
|
+
},
|
|
31
|
+
setup(__props) {
|
|
32
|
+
const props = __props;
|
|
33
|
+
const hoveredIdx = ref(-1);
|
|
34
|
+
const gradientId = "chart-grad-" + Math.random().toString(36).slice(2, 8);
|
|
35
|
+
const maxValue = computed(() => {
|
|
36
|
+
if (!props.data.length) return 1;
|
|
37
|
+
const max = Math.max(...props.data.map((d) => d[props.valueKey]));
|
|
38
|
+
return max || 1;
|
|
39
|
+
});
|
|
40
|
+
const ceilValue = computed(() => maxValue.value * 1.1);
|
|
41
|
+
const hitWidth = computed(() => {
|
|
42
|
+
const total = props.data.length;
|
|
43
|
+
if (total <= 1) return CHART_RIGHT - CHART_LEFT;
|
|
44
|
+
return (CHART_RIGHT - CHART_LEFT) / total;
|
|
45
|
+
});
|
|
46
|
+
function getX(i) {
|
|
47
|
+
const total = props.data.length;
|
|
48
|
+
if (total <= 1) return (CHART_LEFT + CHART_RIGHT) / 2;
|
|
49
|
+
return CHART_LEFT + i / (total - 1) * (CHART_RIGHT - CHART_LEFT);
|
|
50
|
+
}
|
|
51
|
+
function getY(value) {
|
|
52
|
+
if (!ceilValue.value) return CHART_BOTTOM;
|
|
53
|
+
return CHART_BOTTOM - value / ceilValue.value * (CHART_BOTTOM - CHART_TOP);
|
|
54
|
+
}
|
|
55
|
+
function calcTicks(max) {
|
|
56
|
+
if (!max || max <= 0) return [0];
|
|
57
|
+
const targetCount = 5;
|
|
58
|
+
const rawStep = max / targetCount;
|
|
59
|
+
const magnitude = Math.pow(10, Math.floor(Math.log10(rawStep)));
|
|
60
|
+
const residual = rawStep / magnitude;
|
|
61
|
+
let niceStep;
|
|
62
|
+
if (residual <= 1) niceStep = magnitude;
|
|
63
|
+
else if (residual <= 2) niceStep = 2 * magnitude;
|
|
64
|
+
else if (residual <= 5) niceStep = 5 * magnitude;
|
|
65
|
+
else niceStep = 10 * magnitude;
|
|
66
|
+
const ticks2 = [];
|
|
67
|
+
for (let v = 0; v <= max; v += niceStep) ticks2.push(Math.round(v));
|
|
68
|
+
if (ticks2[ticks2.length - 1] < max) ticks2.push(Math.round(max));
|
|
69
|
+
return ticks2;
|
|
70
|
+
}
|
|
71
|
+
function calcXStep(count) {
|
|
72
|
+
const maxLabels = 8;
|
|
73
|
+
if (count <= maxLabels) return 1;
|
|
74
|
+
return Math.ceil(count / maxLabels);
|
|
75
|
+
}
|
|
76
|
+
const ticks = computed(() => calcTicks(maxValue.value));
|
|
77
|
+
const xStep = computed(() => calcXStep(props.data.length));
|
|
78
|
+
function showXLabel(i) {
|
|
79
|
+
const len = props.data.length;
|
|
80
|
+
if (len <= 2) return true;
|
|
81
|
+
if (i === 0) return true;
|
|
82
|
+
if (i === len - 1) {
|
|
83
|
+
const prevShown = Math.floor((len - 2) / xStep.value) * xStep.value;
|
|
84
|
+
return i - prevShown >= xStep.value * 0.5;
|
|
85
|
+
}
|
|
86
|
+
return i % xStep.value === 0;
|
|
87
|
+
}
|
|
88
|
+
function monotonePath(points) {
|
|
89
|
+
if (points.length < 2) return "";
|
|
90
|
+
if (points.length === 2) return `M${points[0].x},${points[0].y}L${points[1].x},${points[1].y}`;
|
|
91
|
+
const n = points.length;
|
|
92
|
+
const dx = [], dy = [], m = [];
|
|
93
|
+
for (let i = 0; i < n - 1; i++) {
|
|
94
|
+
dx.push(points[i + 1].x - points[i].x);
|
|
95
|
+
dy.push(points[i + 1].y - points[i].y);
|
|
96
|
+
m.push(dy[i] / dx[i]);
|
|
97
|
+
}
|
|
98
|
+
const tangents = [m[0]];
|
|
99
|
+
for (let i = 1; i < n - 1; i++) {
|
|
100
|
+
if (m[i - 1] * m[i] <= 0) {
|
|
101
|
+
tangents.push(0);
|
|
102
|
+
} else {
|
|
103
|
+
tangents.push((m[i - 1] + m[i]) / 2);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
tangents.push(m[n - 2]);
|
|
107
|
+
for (let i = 0; i < n - 1; i++) {
|
|
108
|
+
if (Math.abs(m[i]) < 1e-6) {
|
|
109
|
+
tangents[i] = 0;
|
|
110
|
+
tangents[i + 1] = 0;
|
|
111
|
+
} else {
|
|
112
|
+
const a = tangents[i] / m[i];
|
|
113
|
+
const b = tangents[i + 1] / m[i];
|
|
114
|
+
const s = a * a + b * b;
|
|
115
|
+
if (s > 9) {
|
|
116
|
+
const t = 3 / Math.sqrt(s);
|
|
117
|
+
tangents[i] = t * a * m[i];
|
|
118
|
+
tangents[i + 1] = t * b * m[i];
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
let d = `M${points[0].x},${points[0].y}`;
|
|
123
|
+
for (let i = 0; i < n - 1; i++) {
|
|
124
|
+
const seg = dx[i] / 3;
|
|
125
|
+
const cp1x = points[i].x + seg;
|
|
126
|
+
const cp1y = points[i].y + tangents[i] * seg;
|
|
127
|
+
const cp2x = points[i + 1].x - seg;
|
|
128
|
+
const cp2y = points[i + 1].y - tangents[i + 1] * seg;
|
|
129
|
+
d += `C${cp1x},${cp1y},${cp2x},${cp2y},${points[i + 1].x},${points[i + 1].y}`;
|
|
130
|
+
}
|
|
131
|
+
return d;
|
|
132
|
+
}
|
|
133
|
+
const chartPoints = computed(() => {
|
|
134
|
+
return props.data.map((d, i) => ({
|
|
135
|
+
x: getX(i),
|
|
136
|
+
y: getY(d[props.valueKey])
|
|
137
|
+
}));
|
|
138
|
+
});
|
|
139
|
+
const linePath = computed(() => monotonePath(chartPoints.value));
|
|
140
|
+
const areaPath = computed(() => {
|
|
141
|
+
if (!chartPoints.value.length) return "";
|
|
142
|
+
const line = linePath.value;
|
|
143
|
+
const last = chartPoints.value[chartPoints.value.length - 1];
|
|
144
|
+
const first = chartPoints.value[0];
|
|
145
|
+
return `${line}L${last.x},${CHART_BOTTOM}L${first.x},${CHART_BOTTOM}Z`;
|
|
146
|
+
});
|
|
147
|
+
const tooltipStyle = computed(() => {
|
|
148
|
+
if (hoveredIdx.value < 0) return {};
|
|
149
|
+
const i = hoveredIdx.value;
|
|
150
|
+
const item = props.data[i];
|
|
151
|
+
const x = getX(i);
|
|
152
|
+
const y = getY(item[props.valueKey]);
|
|
153
|
+
return {
|
|
154
|
+
left: `${x / W * 100}%`,
|
|
155
|
+
top: `${y / H * 100}%`,
|
|
156
|
+
transform: "translate(-50%, -100%) translateY(-0.5rem)"
|
|
157
|
+
};
|
|
158
|
+
});
|
|
159
|
+
return (_ctx, _cache) => {
|
|
160
|
+
return __props.data.length ? (openBlock(), createElementBlock("div", {
|
|
161
|
+
key: 0,
|
|
162
|
+
class: "pos-relative",
|
|
163
|
+
onMouseleave: _cache[0] || (_cache[0] = ($event) => hoveredIdx.value = -1)
|
|
164
|
+
}, [
|
|
165
|
+
(openBlock(), createElementBlock("svg", {
|
|
166
|
+
viewBox: `0 0 ${W} ${H}`,
|
|
167
|
+
class: "w-100 d-block",
|
|
168
|
+
preserveAspectRatio: "none",
|
|
169
|
+
style: { "overflow": "visible" }
|
|
170
|
+
}, [
|
|
171
|
+
createElementVNode("defs", null, [
|
|
172
|
+
createElementVNode("linearGradient", {
|
|
173
|
+
id: gradientId,
|
|
174
|
+
x1: "0",
|
|
175
|
+
y1: "0",
|
|
176
|
+
x2: "0",
|
|
177
|
+
y2: "1"
|
|
178
|
+
}, _cache[1] || (_cache[1] = [
|
|
179
|
+
createElementVNode("stop", {
|
|
180
|
+
offset: "0%",
|
|
181
|
+
"stop-color": "rgb(var(--second))",
|
|
182
|
+
"stop-opacity": "0.15"
|
|
183
|
+
}, null, -1),
|
|
184
|
+
createElementVNode("stop", {
|
|
185
|
+
offset: "100%",
|
|
186
|
+
"stop-color": "rgb(var(--second))",
|
|
187
|
+
"stop-opacity": "0.01"
|
|
188
|
+
}, null, -1)
|
|
189
|
+
]))
|
|
190
|
+
]),
|
|
191
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(ticks.value, (tick, i) => {
|
|
192
|
+
return openBlock(), createElementBlock("line", {
|
|
193
|
+
key: "g" + i,
|
|
194
|
+
x1: CHART_LEFT,
|
|
195
|
+
x2: CHART_RIGHT,
|
|
196
|
+
y1: getY(tick),
|
|
197
|
+
y2: getY(tick),
|
|
198
|
+
stroke: "rgb(var(--dark))",
|
|
199
|
+
"stroke-opacity": "0.08",
|
|
200
|
+
"stroke-width": "0.5",
|
|
201
|
+
"stroke-dasharray": "3,3"
|
|
202
|
+
}, null, 8, _hoisted_2);
|
|
203
|
+
}), 128)),
|
|
204
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(ticks.value, (tick, i) => {
|
|
205
|
+
return openBlock(), createElementBlock("text", {
|
|
206
|
+
key: "y" + i,
|
|
207
|
+
x: CHART_LEFT + 2,
|
|
208
|
+
y: getY(tick) - 4,
|
|
209
|
+
"text-anchor": "start",
|
|
210
|
+
fill: "rgb(var(--dark))",
|
|
211
|
+
"fill-opacity": "0.4",
|
|
212
|
+
"font-size": "7.5",
|
|
213
|
+
"font-family": "inherit"
|
|
214
|
+
}, toDisplayString(__props.formatValue(tick)), 9, _hoisted_3);
|
|
215
|
+
}), 128)),
|
|
216
|
+
createElementVNode("path", {
|
|
217
|
+
d: areaPath.value,
|
|
218
|
+
fill: `url(#${gradientId})`
|
|
219
|
+
}, null, 8, _hoisted_4),
|
|
220
|
+
createElementVNode("path", {
|
|
221
|
+
d: linePath.value,
|
|
222
|
+
fill: "none",
|
|
223
|
+
stroke: "rgb(var(--second))",
|
|
224
|
+
"stroke-width": "1.5",
|
|
225
|
+
"stroke-linejoin": "round",
|
|
226
|
+
"stroke-linecap": "round"
|
|
227
|
+
}, null, 8, _hoisted_5),
|
|
228
|
+
hoveredIdx.value >= 0 ? (openBlock(), createElementBlock("line", {
|
|
229
|
+
key: 0,
|
|
230
|
+
x1: getX(hoveredIdx.value),
|
|
231
|
+
x2: getX(hoveredIdx.value),
|
|
232
|
+
y1: CHART_TOP,
|
|
233
|
+
y2: CHART_BOTTOM,
|
|
234
|
+
stroke: "rgb(var(--dark))",
|
|
235
|
+
"stroke-opacity": "0.1",
|
|
236
|
+
"stroke-width": "0.5",
|
|
237
|
+
"stroke-dasharray": "3,3"
|
|
238
|
+
}, null, 8, _hoisted_6)) : createCommentVNode("", true),
|
|
239
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.data, (item, i) => {
|
|
240
|
+
return openBlock(), createElementBlock("rect", {
|
|
241
|
+
key: "h" + i,
|
|
242
|
+
x: getX(i) - hitWidth.value / 2,
|
|
243
|
+
y: CHART_TOP,
|
|
244
|
+
width: hitWidth.value,
|
|
245
|
+
height: CHART_BOTTOM - CHART_TOP,
|
|
246
|
+
fill: "transparent",
|
|
247
|
+
onMouseenter: ($event) => hoveredIdx.value = i
|
|
248
|
+
}, null, 40, _hoisted_7);
|
|
249
|
+
}), 128)),
|
|
250
|
+
hoveredIdx.value >= 0 ? (openBlock(), createElementBlock("circle", {
|
|
251
|
+
key: 1,
|
|
252
|
+
cx: getX(hoveredIdx.value),
|
|
253
|
+
cy: getY(__props.data[hoveredIdx.value][__props.valueKey]),
|
|
254
|
+
r: "3",
|
|
255
|
+
fill: "rgb(var(--second))",
|
|
256
|
+
stroke: "white",
|
|
257
|
+
"stroke-width": "1.5",
|
|
258
|
+
style: { "pointer-events": "none" }
|
|
259
|
+
}, null, 8, _hoisted_8)) : createCommentVNode("", true),
|
|
260
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.data, (item, i) => {
|
|
261
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
262
|
+
key: "x" + i
|
|
263
|
+
}, [
|
|
264
|
+
showXLabel(i) ? (openBlock(), createElementBlock("text", {
|
|
265
|
+
key: 0,
|
|
266
|
+
x: getX(i),
|
|
267
|
+
y: CHART_BOTTOM + 14,
|
|
268
|
+
"text-anchor": i === 0 ? "start" : i === __props.data.length - 1 ? "end" : "middle",
|
|
269
|
+
fill: "rgb(var(--dark))",
|
|
270
|
+
"fill-opacity": "0.45",
|
|
271
|
+
"font-size": "7.5",
|
|
272
|
+
"font-family": "inherit"
|
|
273
|
+
}, toDisplayString(__props.formatLabel(item[__props.labelKey])), 9, _hoisted_9)) : createCommentVNode("", true)
|
|
274
|
+
], 64);
|
|
275
|
+
}), 128))
|
|
276
|
+
], 8, _hoisted_1)),
|
|
277
|
+
hoveredIdx.value >= 0 ? (openBlock(), createElementBlock("div", {
|
|
278
|
+
key: 0,
|
|
279
|
+
class: "pos-absolute bg-dark t-white pd-thin pd-l-small pd-r-small radius-small fw-medium",
|
|
280
|
+
style: normalizeStyle([{ "pointer-events": "none", "white-space": "nowrap", "font-size": "11px", "z-index": "5" }, tooltipStyle.value])
|
|
281
|
+
}, [
|
|
282
|
+
renderSlot(_ctx.$slots, "tooltip", {
|
|
283
|
+
item: __props.data[hoveredIdx.value],
|
|
284
|
+
index: hoveredIdx.value
|
|
285
|
+
}, () => [
|
|
286
|
+
createTextVNode(toDisplayString(__props.formatValue(__props.data[hoveredIdx.value][__props.valueKey])) + " · " + toDisplayString(__props.formatLabel(__props.data[hoveredIdx.value][__props.labelKey])), 1)
|
|
287
|
+
])
|
|
288
|
+
], 4)) : createCommentVNode("", true)
|
|
289
|
+
], 32)) : (openBlock(), createElementBlock("p", _hoisted_10, toDisplayString(__props.emptyText), 1));
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
export {
|
|
294
|
+
_sfc_main as default
|
|
295
|
+
};
|
|
296
|
+
//# sourceMappingURL=Chart.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chart.vue.js","sources":["../../../../../src/components/Chart/Chart.vue"],"sourcesContent":["<template>\n\t<div v-if=\"data.length\" class=\"pos-relative\" @mouseleave=\"hoveredIdx = -1\">\n\t\t<svg :viewBox=\"`0 0 ${W} ${H}`\" class=\"w-100 d-block\" preserveAspectRatio=\"none\" style=\"overflow: visible;\">\n\t\t\t<defs>\n\t\t\t\t<linearGradient :id=\"gradientId\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n\t\t\t\t\t<stop offset=\"0%\" stop-color=\"rgb(var(--second))\" stop-opacity=\"0.15\"/>\n\t\t\t\t\t<stop offset=\"100%\" stop-color=\"rgb(var(--second))\" stop-opacity=\"0.01\"/>\n\t\t\t\t</linearGradient>\n\t\t\t</defs>\n\t\t\t<!-- Horizontal grid lines -->\n\t\t\t<line v-for=\"(tick, i) in ticks\" :key=\"'g'+i\" :x1=\"CHART_LEFT\" :x2=\"CHART_RIGHT\" :y1=\"getY(tick)\" :y2=\"getY(tick)\" stroke=\"rgb(var(--dark))\" stroke-opacity=\"0.08\" stroke-width=\"0.5\" stroke-dasharray=\"3,3\"/>\n\t\t\t<!-- Y labels (inside, above grid lines) -->\n\t\t\t<text v-for=\"(tick, i) in ticks\" :key=\"'y'+i\" :x=\"CHART_LEFT + 2\" :y=\"getY(tick) - 4\" text-anchor=\"start\" fill=\"rgb(var(--dark))\" fill-opacity=\"0.4\" font-size=\"7.5\" font-family=\"inherit\">{{ formatValue(tick) }}</text>\n\t\t\t<!-- Area gradient fill -->\n\t\t\t<path :d=\"areaPath\" :fill=\"`url(#${gradientId})`\"/>\n\t\t\t<!-- Line (smooth curve) -->\n\t\t\t<path :d=\"linePath\" fill=\"none\" stroke=\"rgb(var(--second))\" stroke-width=\"1.5\" stroke-linejoin=\"round\" stroke-linecap=\"round\"/>\n\t\t\t<!-- Hover vertical line -->\n\t\t\t<line v-if=\"hoveredIdx >= 0\" :x1=\"getX(hoveredIdx)\" :x2=\"getX(hoveredIdx)\" :y1=\"CHART_TOP\" :y2=\"CHART_BOTTOM\" stroke=\"rgb(var(--dark))\" stroke-opacity=\"0.1\" stroke-width=\"0.5\" stroke-dasharray=\"3,3\"/>\n\t\t\t<!-- Interactive hit areas -->\n\t\t\t<rect v-for=\"(item, i) in data\" :key=\"'h'+i\" :x=\"getX(i) - hitWidth / 2\" :y=\"CHART_TOP\" :width=\"hitWidth\" :height=\"CHART_BOTTOM - CHART_TOP\" fill=\"transparent\" @mouseenter=\"hoveredIdx = i\"/>\n\t\t\t<!-- Visible dot (only hovered) -->\n\t\t\t<circle v-if=\"hoveredIdx >= 0\" :cx=\"getX(hoveredIdx)\" :cy=\"getY(data[hoveredIdx][valueKey])\" r=\"3\" fill=\"rgb(var(--second))\" stroke=\"white\" stroke-width=\"1.5\" style=\"pointer-events: none\"/>\n\t\t\t<!-- X labels -->\n\t\t\t<template v-for=\"(item, i) in data\" :key=\"'x'+i\">\n\t\t\t\t<text v-if=\"showXLabel(i)\" :x=\"getX(i)\" :y=\"CHART_BOTTOM + 14\" :text-anchor=\"i === 0 ? 'start' : i === data.length - 1 ? 'end' : 'middle'\" fill=\"rgb(var(--dark))\" fill-opacity=\"0.45\" font-size=\"7.5\" font-family=\"inherit\">{{ formatLabel(item[labelKey]) }}</text>\n\t\t\t</template>\n\t\t</svg>\n\t\t<!-- Hover Tooltip -->\n\t\t<div\n\t\t\tv-if=\"hoveredIdx >= 0\"\n\t\t\tclass=\"pos-absolute bg-dark t-white pd-thin pd-l-small pd-r-small radius-small fw-medium\"\n\t\t\tstyle=\"pointer-events: none; white-space: nowrap; font-size: 11px; z-index: 5;\"\n\t\t\t:style=\"tooltipStyle\"\n\t\t>\n\t\t\t<slot name=\"tooltip\" :item=\"data[hoveredIdx]\" :index=\"hoveredIdx\">\n\t\t\t\t{{ formatValue(data[hoveredIdx][valueKey]) }} · {{ formatLabel(data[hoveredIdx][labelKey]) }}\n\t\t\t</slot>\n\t\t</div>\n\t</div>\n\t<p v-else class=\"opacity-50\">{{ emptyText }}</p>\n</template>\n\n<script setup>\nimport { ref, computed } from 'vue'\n\nconst props = defineProps({\n\tdata: { type: Array, default: () => [] },\n\tvalueKey: { type: String, default: 'value' },\n\tlabelKey: { type: String, default: 'label' },\n\tformatValue: { type: Function, default: (v) => v },\n\tformatLabel: { type: Function, default: (v) => v },\n\temptyText: { type: String, default: 'No data' }\n})\n\nconst hoveredIdx = ref(-1)\n\n// Unique gradient ID per instance\nconst gradientId = 'chart-grad-' + Math.random().toString(36).slice(2, 8)\n\n// Chart dimensions (viewBox)\nconst W = 500\nconst H = 200\nconst CHART_LEFT = 5\nconst CHART_RIGHT = 495\nconst CHART_TOP = 15\nconst CHART_BOTTOM = 175\n\nconst maxValue = computed(() => {\n\tif (!props.data.length) return 1\n\tconst max = Math.max(...props.data.map(d => d[props.valueKey]))\n\treturn max || 1\n})\n\n// Add ~10% headroom so line doesn't touch the top\nconst ceilValue = computed(() => maxValue.value * 1.1)\n\nconst hitWidth = computed(() => {\n\tconst total = props.data.length\n\tif (total <= 1) return CHART_RIGHT - CHART_LEFT\n\treturn (CHART_RIGHT - CHART_LEFT) / total\n})\n\nfunction getX(i) {\n\tconst total = props.data.length\n\tif (total <= 1) return (CHART_LEFT + CHART_RIGHT) / 2\n\treturn CHART_LEFT + (i / (total - 1)) * (CHART_RIGHT - CHART_LEFT)\n}\n\nfunction getY(value) {\n\tif (!ceilValue.value) return CHART_BOTTOM\n\treturn CHART_BOTTOM - (value / ceilValue.value) * (CHART_BOTTOM - CHART_TOP)\n}\n\n// Nice ticks: 4-5 evenly spaced values\nfunction calcTicks(max) {\n\tif (!max || max <= 0) return [0]\n\tconst targetCount = 5\n\tconst rawStep = max / targetCount\n\tconst magnitude = Math.pow(10, Math.floor(Math.log10(rawStep)))\n\tconst residual = rawStep / magnitude\n\tlet niceStep\n\tif (residual <= 1) niceStep = magnitude\n\telse if (residual <= 2) niceStep = 2 * magnitude\n\telse if (residual <= 5) niceStep = 5 * magnitude\n\telse niceStep = 10 * magnitude\n\tconst ticks = []\n\tfor (let v = 0; v <= max; v += niceStep) ticks.push(Math.round(v))\n\tif (ticks[ticks.length - 1] < max) ticks.push(Math.round(max))\n\treturn ticks\n}\n\n// Target ~6-8 labels max on X axis\nfunction calcXStep(count) {\n\tconst maxLabels = 8\n\tif (count <= maxLabels) return 1\n\treturn Math.ceil(count / maxLabels)\n}\n\nconst ticks = computed(() => calcTicks(maxValue.value))\nconst xStep = computed(() => calcXStep(props.data.length))\n\nfunction showXLabel(i) {\n\tconst len = props.data.length\n\tif (len <= 2) return true\n\tif (i === 0) return true\n\t// Last label: only show if far enough from previous shown label\n\tif (i === len - 1) {\n\t\tconst prevShown = Math.floor((len - 2) / xStep.value) * xStep.value\n\t\treturn (i - prevShown) >= xStep.value * 0.5\n\t}\n\treturn i % xStep.value === 0\n}\n\n// Monotone cubic spline interpolation (Fritsch-Carlson)\nfunction monotonePath(points) {\n\tif (points.length < 2) return ''\n\tif (points.length === 2) return `M${points[0].x},${points[0].y}L${points[1].x},${points[1].y}`\n\n\tconst n = points.length\n\tconst dx = [], dy = [], m = []\n\tfor (let i = 0; i < n - 1; i++) {\n\t\tdx.push(points[i + 1].x - points[i].x)\n\t\tdy.push(points[i + 1].y - points[i].y)\n\t\tm.push(dy[i] / dx[i])\n\t}\n\n\tconst tangents = [m[0]]\n\tfor (let i = 1; i < n - 1; i++) {\n\t\tif (m[i - 1] * m[i] <= 0) {\n\t\t\ttangents.push(0)\n\t\t} else {\n\t\t\ttangents.push((m[i - 1] + m[i]) / 2)\n\t\t}\n\t}\n\ttangents.push(m[n - 2])\n\n\t// Fritsch-Carlson monotonicity\n\tfor (let i = 0; i < n - 1; i++) {\n\t\tif (Math.abs(m[i]) < 1e-6) {\n\t\t\ttangents[i] = 0\n\t\t\ttangents[i + 1] = 0\n\t\t} else {\n\t\t\tconst a = tangents[i] / m[i]\n\t\t\tconst b = tangents[i + 1] / m[i]\n\t\t\tconst s = a * a + b * b\n\t\t\tif (s > 9) {\n\t\t\t\tconst t = 3 / Math.sqrt(s)\n\t\t\t\ttangents[i] = t * a * m[i]\n\t\t\t\ttangents[i + 1] = t * b * m[i]\n\t\t\t}\n\t\t}\n\t}\n\n\tlet d = `M${points[0].x},${points[0].y}`\n\tfor (let i = 0; i < n - 1; i++) {\n\t\tconst seg = dx[i] / 3\n\t\tconst cp1x = points[i].x + seg\n\t\tconst cp1y = points[i].y + tangents[i] * seg\n\t\tconst cp2x = points[i + 1].x - seg\n\t\tconst cp2y = points[i + 1].y - tangents[i + 1] * seg\n\t\td += `C${cp1x},${cp1y},${cp2x},${cp2y},${points[i + 1].x},${points[i + 1].y}`\n\t}\n\treturn d\n}\n\nconst chartPoints = computed(() => {\n\treturn props.data.map((d, i) => ({\n\t\tx: getX(i),\n\t\ty: getY(d[props.valueKey])\n\t}))\n})\n\nconst linePath = computed(() => monotonePath(chartPoints.value))\n\nconst areaPath = computed(() => {\n\tif (!chartPoints.value.length) return ''\n\tconst line = linePath.value\n\tconst last = chartPoints.value[chartPoints.value.length - 1]\n\tconst first = chartPoints.value[0]\n\treturn `${line}L${last.x},${CHART_BOTTOM}L${first.x},${CHART_BOTTOM}Z`\n})\n\nconst tooltipStyle = computed(() => {\n\tif (hoveredIdx.value < 0) return {}\n\tconst i = hoveredIdx.value\n\tconst item = props.data[i]\n\tconst x = getX(i)\n\tconst y = getY(item[props.valueKey])\n\treturn {\n\t\tleft: `${(x / W) * 100}%`,\n\t\ttop: `${(y / H) * 100}%`,\n\t\ttransform: 'translate(-50%, -100%) translateY(-0.5rem)'\n\t}\n})\n</script>\n"],"names":["ticks"],"mappings":";;;;;;;;;;;;;;AA6DA,MAAM,IAAI;AACV,MAAM,IAAI;AACV,MAAM,aAAa;AACnB,MAAM,cAAc;AACpB,MAAM,YAAY;AAClB,MAAM,eAAe;;;;;;;;;;;;AApBrB,UAAM,QAAQ;AASd,UAAM,aAAa,IAAI,EAAE;AAGzB,UAAM,aAAa,gBAAgB,KAAK,OAAM,EAAG,SAAS,EAAE,EAAE,MAAM,GAAG,CAAC;AAUxE,UAAM,WAAW,SAAS,MAAM;AAC/B,UAAI,CAAC,MAAM,KAAK,OAAQ,QAAO;AAC/B,YAAM,MAAM,KAAK,IAAI,GAAG,MAAM,KAAK,IAAI,OAAK,EAAE,MAAM,QAAQ,CAAC,CAAC;AAC9D,aAAO,OAAO;AAAA,IACf,CAAC;AAGD,UAAM,YAAY,SAAS,MAAM,SAAS,QAAQ,GAAG;AAErD,UAAM,WAAW,SAAS,MAAM;AAC/B,YAAM,QAAQ,MAAM,KAAK;AACzB,UAAI,SAAS,EAAG,QAAO,cAAc;AACrC,cAAQ,cAAc,cAAc;AAAA,IACrC,CAAC;AAED,aAAS,KAAK,GAAG;AAChB,YAAM,QAAQ,MAAM,KAAK;AACzB,UAAI,SAAS,EAAG,SAAQ,aAAa,eAAe;AACpD,aAAO,aAAc,KAAK,QAAQ,MAAO,cAAc;AAAA,IACxD;AAEA,aAAS,KAAK,OAAO;AACpB,UAAI,CAAC,UAAU,MAAO,QAAO;AAC7B,aAAO,eAAgB,QAAQ,UAAU,SAAU,eAAe;AAAA,IACnE;AAGA,aAAS,UAAU,KAAK;AACvB,UAAI,CAAC,OAAO,OAAO,EAAG,QAAO,CAAC,CAAC;AAC/B,YAAM,cAAc;AACpB,YAAM,UAAU,MAAM;AACtB,YAAM,YAAY,KAAK,IAAI,IAAI,KAAK,MAAM,KAAK,MAAM,OAAO,CAAC,CAAC;AAC9D,YAAM,WAAW,UAAU;AAC3B,UAAI;AACJ,UAAI,YAAY,EAAG,YAAW;AAAA,eACrB,YAAY,EAAG,YAAW,IAAI;AAAA,eAC9B,YAAY,EAAG,YAAW,IAAI;AAAA,UAClC,YAAW,KAAK;AACrB,YAAMA,SAAQ,CAAA;AACd,eAAS,IAAI,GAAG,KAAK,KAAK,KAAK,SAAU,CAAAA,OAAM,KAAK,KAAK,MAAM,CAAC,CAAC;AACjE,UAAIA,OAAMA,OAAM,SAAS,CAAC,IAAI,IAAK,CAAAA,OAAM,KAAK,KAAK,MAAM,GAAG,CAAC;AAC7D,aAAOA;AAAA,IACR;AAGA,aAAS,UAAU,OAAO;AACzB,YAAM,YAAY;AAClB,UAAI,SAAS,UAAW,QAAO;AAC/B,aAAO,KAAK,KAAK,QAAQ,SAAS;AAAA,IACnC;AAEA,UAAM,QAAQ,SAAS,MAAM,UAAU,SAAS,KAAK,CAAC;AACtD,UAAM,QAAQ,SAAS,MAAM,UAAU,MAAM,KAAK,MAAM,CAAC;AAEzD,aAAS,WAAW,GAAG;AACtB,YAAM,MAAM,MAAM,KAAK;AACvB,UAAI,OAAO,EAAG,QAAO;AACrB,UAAI,MAAM,EAAG,QAAO;AAEpB,UAAI,MAAM,MAAM,GAAG;AAClB,cAAM,YAAY,KAAK,OAAO,MAAM,KAAK,MAAM,KAAK,IAAI,MAAM;AAC9D,eAAQ,IAAI,aAAc,MAAM,QAAQ;AAAA,MACzC;AACA,aAAO,IAAI,MAAM,UAAU;AAAA,IAC5B;AAGA,aAAS,aAAa,QAAQ;AAC7B,UAAI,OAAO,SAAS,EAAG,QAAO;AAC9B,UAAI,OAAO,WAAW,EAAG,QAAO,IAAI,OAAO,CAAC,EAAE,CAAC,IAAI,OAAO,CAAC,EAAE,CAAC,IAAI,OAAO,CAAC,EAAE,CAAC,IAAI,OAAO,CAAC,EAAE,CAAC;AAE5F,YAAM,IAAI,OAAO;AACjB,YAAM,KAAK,CAAA,GAAI,KAAK,CAAA,GAAI,IAAI,CAAA;AAC5B,eAAS,IAAI,GAAG,IAAI,IAAI,GAAG,KAAK;AAC/B,WAAG,KAAK,OAAO,IAAI,CAAC,EAAE,IAAI,OAAO,CAAC,EAAE,CAAC;AACrC,WAAG,KAAK,OAAO,IAAI,CAAC,EAAE,IAAI,OAAO,CAAC,EAAE,CAAC;AACrC,UAAE,KAAK,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC;AAAA,MACrB;AAEA,YAAM,WAAW,CAAC,EAAE,CAAC,CAAC;AACtB,eAAS,IAAI,GAAG,IAAI,IAAI,GAAG,KAAK;AAC/B,YAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,KAAK,GAAG;AACzB,mBAAS,KAAK,CAAC;AAAA,QAChB,OAAO;AACN,mBAAS,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC;AAAA,QACpC;AAAA,MACD;AACA,eAAS,KAAK,EAAE,IAAI,CAAC,CAAC;AAGtB,eAAS,IAAI,GAAG,IAAI,IAAI,GAAG,KAAK;AAC/B,YAAI,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,MAAM;AAC1B,mBAAS,CAAC,IAAI;AACd,mBAAS,IAAI,CAAC,IAAI;AAAA,QACnB,OAAO;AACN,gBAAM,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC;AAC3B,gBAAM,IAAI,SAAS,IAAI,CAAC,IAAI,EAAE,CAAC;AAC/B,gBAAM,IAAI,IAAI,IAAI,IAAI;AACtB,cAAI,IAAI,GAAG;AACV,kBAAM,IAAI,IAAI,KAAK,KAAK,CAAC;AACzB,qBAAS,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC;AACzB,qBAAS,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE,CAAC;AAAA,UAC9B;AAAA,QACD;AAAA,MACD;AAEA,UAAI,IAAI,IAAI,OAAO,CAAC,EAAE,CAAC,IAAI,OAAO,CAAC,EAAE,CAAC;AACtC,eAAS,IAAI,GAAG,IAAI,IAAI,GAAG,KAAK;AAC/B,cAAM,MAAM,GAAG,CAAC,IAAI;AACpB,cAAM,OAAO,OAAO,CAAC,EAAE,IAAI;AAC3B,cAAM,OAAO,OAAO,CAAC,EAAE,IAAI,SAAS,CAAC,IAAI;AACzC,cAAM,OAAO,OAAO,IAAI,CAAC,EAAE,IAAI;AAC/B,cAAM,OAAO,OAAO,IAAI,CAAC,EAAE,IAAI,SAAS,IAAI,CAAC,IAAI;AACjD,aAAK,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,OAAO,IAAI,CAAC,EAAE,CAAC,IAAI,OAAO,IAAI,CAAC,EAAE,CAAC;AAAA,MAC5E;AACA,aAAO;AAAA,IACR;AAEA,UAAM,cAAc,SAAS,MAAM;AAClC,aAAO,MAAM,KAAK,IAAI,CAAC,GAAG,OAAO;AAAA,QAChC,GAAG,KAAK,CAAC;AAAA,QACT,GAAG,KAAK,EAAE,MAAM,QAAQ,CAAC;AAAA,MAC3B,EAAG;AAAA,IACH,CAAC;AAED,UAAM,WAAW,SAAS,MAAM,aAAa,YAAY,KAAK,CAAC;AAE/D,UAAM,WAAW,SAAS,MAAM;AAC/B,UAAI,CAAC,YAAY,MAAM,OAAQ,QAAO;AACtC,YAAM,OAAO,SAAS;AACtB,YAAM,OAAO,YAAY,MAAM,YAAY,MAAM,SAAS,CAAC;AAC3D,YAAM,QAAQ,YAAY,MAAM,CAAC;AACjC,aAAO,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,YAAY,IAAI,MAAM,CAAC,IAAI,YAAY;AAAA,IACpE,CAAC;AAED,UAAM,eAAe,SAAS,MAAM;AACnC,UAAI,WAAW,QAAQ,EAAG,QAAO,CAAA;AACjC,YAAM,IAAI,WAAW;AACrB,YAAM,OAAO,MAAM,KAAK,CAAC;AACzB,YAAM,IAAI,KAAK,CAAC;AAChB,YAAM,IAAI,KAAK,KAAK,MAAM,QAAQ,CAAC;AACnC,aAAO;AAAA,QACN,MAAM,GAAI,IAAI,IAAK,GAAG;AAAA,QACtB,KAAK,GAAI,IAAI,IAAK,GAAG;AAAA,QACrB,WAAW;AAAA,MACb;AAAA,IACA,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,7 +3,7 @@ import _sfc_main$1 from "../../modules/icons/navigation/IconCheckmark.vue.js";
|
|
|
3
3
|
const _hoisted_1 = { class: "flex-v-center cursor-pointer flex-nowrap flex" };
|
|
4
4
|
const _hoisted_2 = {
|
|
5
5
|
key: 0,
|
|
6
|
-
class: "mn-r-auto
|
|
6
|
+
class: "mn-r-auto opacity-50 mn-r-small"
|
|
7
7
|
};
|
|
8
8
|
const _hoisted_3 = ["name", "value", "checked"];
|
|
9
9
|
const _hoisted_4 = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.vue.js","sources":["../../../../../src/components/Checkbox/Checkbox.vue"],"sourcesContent":["<script setup>\n import { ref, watch, computed } from 'vue'\n\n import IconCheckmark from '@martyrs/src/modules/icons/navigation/IconCheckmark.vue';\n\n const props = defineProps({\n label: String,\n name: String,\n value: String,\n radio: {\n type: [Array, Boolean, Object],\n default: () => []\n },\n theme: {\n type: String,\n default: \"light\"\n },\n mode: {\n type: String,\n default: \"switch\",\n validator: (v) => [\"switch\", \"checkbox\"].includes(v)\n }\n })\n const emit = defineEmits(['update:radio'])\n const updateInputText = (event) => {\n if (Array.isArray(props.radio)) {\n let newRadio = [...props.radio]; // создаем копию массива для иммутабельности\n if (event.target.checked) {\n newRadio.push(props.value);\n } else {\n const index = newRadio.indexOf(props.value);\n if (index !== -1) {\n newRadio.splice(index, 1);\n }\n }\n emit('update:radio', newRadio);\n } else if (typeof props.radio === 'boolean') {\n emit('update:radio', event.target.checked);\n }\n }\n</script>\n<template>\n <label class=\"flex-v-center cursor-pointer flex-nowrap flex\">\n <div v-if=\"label\" class=\"mn-r-auto
|
|
1
|
+
{"version":3,"file":"Checkbox.vue.js","sources":["../../../../../src/components/Checkbox/Checkbox.vue"],"sourcesContent":["<script setup>\n import { ref, watch, computed } from 'vue'\n\n import IconCheckmark from '@martyrs/src/modules/icons/navigation/IconCheckmark.vue';\n\n const props = defineProps({\n label: String,\n name: String,\n value: String,\n radio: {\n type: [Array, Boolean, Object],\n default: () => []\n },\n theme: {\n type: String,\n default: \"light\"\n },\n mode: {\n type: String,\n default: \"switch\",\n validator: (v) => [\"switch\", \"checkbox\"].includes(v)\n }\n })\n const emit = defineEmits(['update:radio'])\n const updateInputText = (event) => {\n if (Array.isArray(props.radio)) {\n let newRadio = [...props.radio]; // создаем копию массива для иммутабельности\n if (event.target.checked) {\n newRadio.push(props.value);\n } else {\n const index = newRadio.indexOf(props.value);\n if (index !== -1) {\n newRadio.splice(index, 1);\n }\n }\n emit('update:radio', newRadio);\n } else if (typeof props.radio === 'boolean') {\n emit('update:radio', event.target.checked);\n }\n }\n</script>\n<template>\n <label class=\"flex-v-center cursor-pointer flex-nowrap flex\">\n <div v-if=\"label\" class=\"mn-r-auto opacity-50 mn-r-small\">\n <span>{{label}}</span>\n </div>\n <input \n @change=\"updateInputText\"\n class=\"round radiobutton\" \n type=\"checkbox\" \n :name=\"name\" \n :value=\"value\"\n :checked=\"Array.isArray(radio) ? radio.includes(value) : radio\"\n > \n <div \n class=\"cursor-pointer mn-l-thin flex-center field-wrapper\"\n :class=\"{\n 'ease-elastic pd-thin h-2r w-4r radius-extra': mode === 'switch',\n 'w-2r h-2r radius-small': mode === 'checkbox',\n 'bg-dark': !(Array.isArray(radio) ? radio.includes(value) : radio) && theme === 'dark' && mode === 'switch',\n 'br-dark': theme === 'dark' && mode === 'checkbox',\n 'bg-light': !(Array.isArray(radio) ? radio.includes(value) : radio) && theme === 'light' && mode === 'switch',\n 'bg-light': !(Array.isArray(radio) ? radio.includes(value) : radio) && theme === 'light' && mode === 'checkbox','bg-main': (Array.isArray(radio) ? radio.includes(value) : radio) && mode === 'switch',\n 'bg-main br-main': (Array.isArray(radio) ? radio.includes(value) : radio) && mode === 'checkbox',\n }\"\n >\n <!-- Switch toggle circle -->\n <div \n v-if=\"mode === 'switch'\"\n class=\"ease-linear w-1r h-1r radius-extra bg-white\"\n :class=\"{\n 'mn-r-auto': !(Array.isArray(radio) ? radio.includes(value) : radio),\n 'mn-l-auto': Array.isArray(radio) ? radio.includes(value) : radio,\n }\"\n />\n <!-- Checkbox checkmark -->\n <span \n v-else-if=\"mode === 'checkbox' && (Array.isArray(radio) ? radio.includes(value) : radio)\"\n class=\"t-white w-100 h-100 flex flex-center\"\n >\n <IconCheckmark class=\"i-medium\" fill=\"rgb(var(--white))\" />\n </span>\n </div>\n </label>\n</template>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKE,UAAM,QAAQ;AAkBd,UAAM,OAAO;AACb,UAAM,kBAAkB,CAAC,UAAU;AACjC,UAAI,MAAM,QAAQ,MAAM,KAAK,GAAG;AAC9B,YAAI,WAAW,CAAC,GAAG,MAAM,KAAK;AAC9B,YAAI,MAAM,OAAO,SAAS;AACxB,mBAAS,KAAK,MAAM,KAAK;AAAA,QAC3B,OAAO;AACL,gBAAM,QAAQ,SAAS,QAAQ,MAAM,KAAK;AAC1C,cAAI,UAAU,IAAI;AAChB,qBAAS,OAAO,OAAO,CAAC;AAAA,UAC1B;AAAA,QACF;AACA,aAAK,gBAAgB,QAAQ;AAAA,MAC/B,WAAW,OAAO,MAAM,UAAU,WAAW;AAC3C,aAAK,gBAAgB,MAAM,OAAO,OAAO;AAAA,MAC3C;AAAA,IACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { createElementBlock, openBlock, renderSlot, Fragment, renderList,
|
|
1
|
+
import { createElementBlock, openBlock, renderSlot, Fragment, renderList, toDisplayString } from "vue";
|
|
2
2
|
const _hoisted_1 = { class: "" };
|
|
3
|
-
const _hoisted_2 = {
|
|
3
|
+
const _hoisted_2 = { class: "mn-r-nano d-inline-block w-max pd-thin radius-thin fw-medium bg-main" };
|
|
4
|
+
const _hoisted_3 = {
|
|
4
5
|
key: 1,
|
|
5
6
|
class: "pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small fw-semi bg-white"
|
|
6
7
|
};
|
|
@@ -12,10 +13,8 @@ const _sfc_main = {
|
|
|
12
13
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
13
14
|
renderSlot(_ctx.$slots, "default"),
|
|
14
15
|
__props.chips?.length ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(__props.chips, (chip, index) => {
|
|
15
|
-
return openBlock(), createElementBlock("p",
|
|
16
|
-
|
|
17
|
-
}, toDisplayString(chip.text ? chip.text : chip), 1);
|
|
18
|
-
}), 256)) : (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
16
|
+
return openBlock(), createElementBlock("p", _hoisted_2, toDisplayString(chip.text ? chip.text : chip), 1);
|
|
17
|
+
}), 256)) : (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
19
18
|
renderSlot(_ctx.$slots, "default")
|
|
20
19
|
]))
|
|
21
20
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chips.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Chips.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -68,23 +68,23 @@ const _sfc_main = {
|
|
|
68
68
|
return (_ctx, _cache) => {
|
|
69
69
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
70
70
|
isTimeOver.value ? (openBlock(), createElementBlock("div", _hoisted_2, _cache[0] || (_cache[0] = [
|
|
71
|
-
createElementVNode("p", { class: "p-small
|
|
71
|
+
createElementVNode("p", { class: "p-small opacity-50" }, "Offer is over", -1)
|
|
72
72
|
]))) : createCommentVNode("", true),
|
|
73
73
|
!isTimeOver.value ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
74
74
|
createElementVNode("p", _hoisted_4, toDisplayString(days.value), 1),
|
|
75
|
-
_cache[1] || (_cache[1] = createElementVNode("p", { class: "p-small
|
|
75
|
+
_cache[1] || (_cache[1] = createElementVNode("p", { class: "p-small opacity-50" }, "Days", -1))
|
|
76
76
|
])) : createCommentVNode("", true),
|
|
77
77
|
!isTimeOver.value ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
78
78
|
createElementVNode("p", _hoisted_6, toDisplayString(hours.value), 1),
|
|
79
|
-
_cache[2] || (_cache[2] = createElementVNode("p", { class: "p-small
|
|
79
|
+
_cache[2] || (_cache[2] = createElementVNode("p", { class: "p-small opacity-50" }, "hours", -1))
|
|
80
80
|
])) : createCommentVNode("", true),
|
|
81
81
|
!isTimeOver.value ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
82
82
|
createElementVNode("p", _hoisted_8, toDisplayString(minutes.value), 1),
|
|
83
|
-
_cache[3] || (_cache[3] = createElementVNode("p", { class: "p-small
|
|
83
|
+
_cache[3] || (_cache[3] = createElementVNode("p", { class: "p-small opacity-50" }, "minutes", -1))
|
|
84
84
|
])) : createCommentVNode("", true),
|
|
85
85
|
!isTimeOver.value ? (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
86
86
|
createElementVNode("p", _hoisted_10, toDisplayString(seconds.value), 1),
|
|
87
|
-
_cache[4] || (_cache[4] = createElementVNode("p", { class: "p-small
|
|
87
|
+
_cache[4] || (_cache[4] = createElementVNode("p", { class: "p-small opacity-50" }, "seconds", -1))
|
|
88
88
|
])) : createCommentVNode("", true)
|
|
89
89
|
]);
|
|
90
90
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Countdown.vue.js","sources":["../../../../../src/components/Countdown/Countdown.vue"],"sourcesContent":["<template>\n <div class=\"gap-thin flex-nowrap flex flex-center\">\n <div v-if=\"isTimeOver\" class=\"flex-child-grow-1 flex-shrink-0 flex-child-basis-auto pd-medium bg-blur-small bg-white-transp-5 radius-small\">\n <p class=\"p-small
|
|
1
|
+
{"version":3,"file":"Countdown.vue.js","sources":["../../../../../src/components/Countdown/Countdown.vue"],"sourcesContent":["<template>\n <div class=\"gap-thin flex-nowrap flex flex-center\">\n <div v-if=\"isTimeOver\" class=\"flex-child-grow-1 flex-shrink-0 flex-child-basis-auto pd-medium bg-blur-small bg-white-transp-5 radius-small\">\n <p class=\"p-small opacity-50\">Offer is over</p>\n </div>\n\n <div v-if=\"!isTimeOver\" class=\"flex-child-grow-1 flex-shrink-0 flex-child-basis-auto pd-thin bg-blur-small bg-white-transp-5 radius-small\">\n \t<p class=\"p-medium\">{{ days }}</p>\n \t<p class=\"p-small opacity-50\">Days</p>\n </div>\n <div v-if=\"!isTimeOver\" class=\"flex-child-grow-1 flex-shrink-0 flex-child-basis-auto pd-thin bg-blur-small bg-white-transp-5 radius-small\">\n \t<p class=\"p-medium\">{{ hours }}</p>\n \t<p class=\"p-small opacity-50\">hours</p>\n </div>\n <div v-if=\"!isTimeOver\" class=\"flex-child-grow-1 flex-shrink-0 flex-child-basis-auto pd-thin bg-blur-small bg-white-transp-5 radius-small\">\n \t<p class=\"p-medium\">{{ minutes }}</p>\n \t<p class=\"p-small opacity-50\">minutes</p>\n </div>\n <div v-if=\"!isTimeOver\" class=\"flex-child-grow-1 flex-shrink-0 flex-child-basis-auto pd-thin bg-blur-small bg-white-transp-5 radius-small\">\n \t<p class=\"p-medium\">{{ seconds }}</p>\n \t<p class=\"p-small opacity-50\">seconds</p>\n </div>\n </div>\n</template>\n\n<script setup>\nimport { ref, onMounted, onBeforeUnmount } from 'vue';\n\nconst props = defineProps([\n 'date',\n])\n\nconst targetDate = new Date(props.date).getTime();\nconst currentDate = ref(new Date().getTime());\n\nlet interval;\n\nconst days = ref(0);\nconst hours = ref(0);\nconst minutes = ref(0);\nconst seconds = ref(0);\n\nconst isTimeOver = ref(false);\n\nconst calculateTime = () => {\n const timeDifference = targetDate - currentDate.value;\n\n if (timeDifference <= 0) {\n // Target date has passed, set all values to 0\n days.value = 0;\n hours.value = 0;\n minutes.value = 0;\n seconds.value = 0;\n isTimeOver.value = true\n clearInterval(interval);\n } else {\n days.value = Math.floor(timeDifference / (1000 * 60 * 60 * 24));\n hours.value = Math.floor((timeDifference % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));\n minutes.value = Math.floor((timeDifference % (1000 * 60 * 60)) / (1000 * 60));\n seconds.value = Math.floor((timeDifference % (1000 * 60)) / 1000);\n }\n};\n\ncalculateTime();\n\nonMounted(() => {\n interval = setInterval(() => {\n currentDate.value = new Date().getTime();\n calculateTime();\n }, 1000);\n});\n\nonBeforeUnmount(() => {\n clearInterval(interval);\n});\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,UAAM,QAAQ;AAId,UAAM,aAAa,IAAI,KAAK,MAAM,IAAI,EAAE,QAAO;AAC/C,UAAM,cAAc,KAAI,oBAAI,KAAI,GAAG,QAAO,CAAE;AAE5C,QAAI;AAEJ,UAAM,OAAO,IAAI,CAAC;AAClB,UAAM,QAAQ,IAAI,CAAC;AACnB,UAAM,UAAU,IAAI,CAAC;AACrB,UAAM,UAAU,IAAI,CAAC;AAErB,UAAM,aAAa,IAAI,KAAK;AAE5B,UAAM,gBAAgB,MAAM;AAC1B,YAAM,iBAAiB,aAAa,YAAY;AAEhD,UAAI,kBAAkB,GAAG;AAEvB,aAAK,QAAQ;AACb,cAAM,QAAQ;AACd,gBAAQ,QAAQ;AAChB,gBAAQ,QAAQ;AAChB,mBAAW,QAAQ;AACnB,sBAAc,QAAQ;AAAA,MACxB,OAAO;AACL,aAAK,QAAQ,KAAK,MAAM,kBAAkB,MAAO,KAAK,KAAK,GAAG;AAC9D,cAAM,QAAQ,KAAK,MAAO,kBAAkB,MAAO,KAAK,KAAK,OAAQ,MAAO,KAAK,GAAG;AACpF,gBAAQ,QAAQ,KAAK,MAAO,kBAAkB,MAAO,KAAK,OAAQ,MAAO,GAAG;AAC5E,gBAAQ,QAAQ,KAAK,MAAO,kBAAkB,MAAO,MAAO,GAAI;AAAA,MAClE;AAAA,IACF;AAEA,kBAAa;AAEb,cAAU,MAAM;AACd,iBAAW,YAAY,MAAM;AAC3B,oBAAY,SAAQ,oBAAI,KAAI,GAAG,QAAO;AACtC,sBAAa;AAAA,MACf,GAAG,GAAI;AAAA,IACT,CAAC;AAED,oBAAgB,MAAM;AACpB,oBAAc,QAAQ;AAAA,IACxB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,10 +3,10 @@ const _hoisted_1 = {
|
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "mn-r-thin mn-l-thin pd-thin radius-thin flex-column flex-center flex bg-light"
|
|
5
5
|
};
|
|
6
|
-
const _hoisted_2 = { class: "
|
|
6
|
+
const _hoisted_2 = { class: "opacity-50 t-noselect p-small mn-b-thin" };
|
|
7
7
|
const _hoisted_3 = { class: "t-noselect fw-semi" };
|
|
8
8
|
const _hoisted_4 = ["onClick"];
|
|
9
|
-
const _hoisted_5 = { class: "
|
|
9
|
+
const _hoisted_5 = { class: "opacity-50 t-noselect p-small mn-b-thin" };
|
|
10
10
|
const _hoisted_6 = { class: "t-noselect fw-semi day-number" };
|
|
11
11
|
const _sfc_main = {
|
|
12
12
|
__name: "DatePicker",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.vue.js","sources":["../../../../../src/components/DatePicker/DatePicker.vue"],"sourcesContent":["<template>\n <div>\n <div \n class=\"w-100 scroller o-x-scroll o-y-visible scroll-snap-x-mandatory scroll-pd-regular scroll-hide flex-nowrap flex\" \n ref=\"scrollContainer\"\n >\n <template v-for=\"(date, index) in dates\" :key=\"date.toString()\">\n <!-- Month separator -->\n <div \n v-if=\"index === 0 || dates[index - 1].getMonth() !== date.getMonth()\"\n class=\"mn-r-thin mn-l-thin pd-thin radius-thin flex-column flex-center flex bg-light\"\n >\n <span class=\"
|
|
1
|
+
{"version":3,"file":"DatePicker.vue.js","sources":["../../../../../src/components/DatePicker/DatePicker.vue"],"sourcesContent":["<template>\n <div>\n <div \n class=\"w-100 scroller o-x-scroll o-y-visible scroll-snap-x-mandatory scroll-pd-regular scroll-hide flex-nowrap flex\" \n ref=\"scrollContainer\"\n >\n <template v-for=\"(date, index) in dates\" :key=\"date.toString()\">\n <!-- Month separator -->\n <div \n v-if=\"index === 0 || dates[index - 1].getMonth() !== date.getMonth()\"\n class=\"mn-r-thin mn-l-thin pd-thin radius-thin flex-column flex-center flex bg-light\"\n >\n <span class=\"opacity-50 t-noselect p-small mn-b-thin\">\n {{ String(date.getMonth() + 1).padStart(2, '0') }}/{{ date.getFullYear() }}\n </span>\n <span class=\"t-noselect fw-semi\">\n {{ date.toLocaleDateString(props.locale || 'en', { month: 'short' }).toUpperCase() }}\n </span>\n </div>\n \n <!-- Date -->\n <div \n @click=\"selectDate(date)\"\n :class=\"{\n 'bg-main t-white': selectedDate && selectedDate.toDateString() === date.toDateString(),\n 'bg-second t-white': isHighlighted(date)\n }\"\n class=\"ease-in-out hover:bg-light cursor-pointer o-y-visible scroll-snap-start mn-r-thin mn-l-thin pd-thin radius-thin flex-column flex-center flex\"\n >\n <span class=\"opacity-50 t-noselect p-small mn-b-thin\">\n {{ dayLetter(date) }}\n </span>\n <span \n class=\"t-noselect fw-semi day-number\"\n >\n {{ date.getDate() }}\n </span>\n </div>\n </template>\n </div>\n </div>\n</template>\n\n<script setup>\nimport { ref, onMounted, defineProps, defineEmits } from 'vue';\n\nconst emit = defineEmits();\nconst props = defineProps(['date', 'options','locale']);\n\nconst scrollContainer = ref(null);\n\n// Initialize base date for generating the date range\nconst baseDate = new Date();\nbaseDate.setHours(0, 0, 0, 0);\n\n// Initialize selectedDate as null or with provided date\nconst selectedDate = ref(null);\n\nif (props.date) {\n const day = parseInt(props.date.substring(0, 2));\n const month = parseInt(props.date.substring(2, 4)) - 1;\n const year = parseInt(props.date.substring(4));\n\n selectedDate.value = new Date(year, month, day);\n selectedDate.value.setHours(0, 0, 0, 0);\n}\n\nconst dates = generateDates(baseDate, props.options.dateEnd || 30);\n\nonMounted(() => {\n if (scrollContainer.value) {\n const target = scrollContainer.value.getElementsByClassName('selected')[0] || \n scrollContainer.value.getElementsByClassName('bg-main')[0] || \n scrollContainer.value.getElementsByClassName('highlighted')[0];\n if (target) {\n scrollContainer.value.scrollLeft = target.offsetLeft - \n scrollContainer.value.offsetWidth / 2 + target.offsetWidth / 2;\n }\n }\n});\n\nfunction selectDate(date) {\n if (selectedDate.value && selectedDate.value.toDateString() === date.toDateString()) {\n // If clicking the same date, reset selection\n selectedDate.value = null;\n emit('update:date', null);\n } else {\n // Select new date\n selectedDate.value = date;\n const formattedDate = formatDateForRouter(date);\n emit('update:date', date);\n }\n}\n\nfunction isHighlighted(date) {\n return selectedDate.value === null && date.toDateString() === baseDate.toDateString();\n}\n\nfunction formatDateForRouter(date) {\n return `${date.getDate().toString().padStart(2, '0')}${(date.getMonth() + 1)\n .toString().padStart(2, '0')}${date.getFullYear()}`;\n}\n\nfunction dayLetter(date) {\n return date.toLocaleDateString(props.locale ? props.locale : 'en', { \n weekday: 'short' \n }).toUpperCase();\n}\n\nfunction generateDates(start, count) {\n const dates = [];\n for (let i = props.options.dateStart || 0; i < count - props.options.dateStart || 0; i++) {\n const newDate = new Date(start);\n newDate.setDate(start.getDate() + i);\n newDate.setHours(0, 0, 0, 0);\n dates.push(newDate);\n }\n return dates;\n}\n</script>"],"names":["dates"],"mappings":";;;;;;;;;;;;;;AA8CA,UAAM,OAAO;AACb,UAAM,QAAQ;AAEd,UAAM,kBAAkB,IAAI,IAAI;AAGhC,UAAM,WAAW,oBAAI,KAAI;AACzB,aAAS,SAAS,GAAG,GAAG,GAAG,CAAC;AAG5B,UAAM,eAAe,IAAI,IAAI;AAE7B,QAAI,MAAM,MAAM;AACd,YAAM,MAAM,SAAS,MAAM,KAAK,UAAU,GAAG,CAAC,CAAC;AAC/C,YAAM,QAAQ,SAAS,MAAM,KAAK,UAAU,GAAG,CAAC,CAAC,IAAI;AACrD,YAAM,OAAO,SAAS,MAAM,KAAK,UAAU,CAAC,CAAC;AAE7C,mBAAa,QAAQ,IAAI,KAAK,MAAM,OAAO,GAAG;AAC9C,mBAAa,MAAM,SAAS,GAAG,GAAG,GAAG,CAAC;AAAA,IACxC;AAEA,UAAM,QAAQ,cAAc,UAAU,MAAM,QAAQ,WAAW,EAAE;AAEjE,cAAU,MAAM;AACd,UAAI,gBAAgB,OAAO;AACzB,cAAM,SAAS,gBAAgB,MAAM,uBAAuB,UAAU,EAAE,CAAC,KAC3D,gBAAgB,MAAM,uBAAuB,SAAS,EAAE,CAAC,KACzD,gBAAgB,MAAM,uBAAuB,aAAa,EAAE,CAAC;AAC3E,YAAI,QAAQ;AACV,0BAAgB,MAAM,aAAa,OAAO,aACxC,gBAAgB,MAAM,cAAc,IAAI,OAAO,cAAc;AAAA,QACjE;AAAA,MACF;AAAA,IACF,CAAC;AAED,aAAS,WAAW,MAAM;AACxB,UAAI,aAAa,SAAS,aAAa,MAAM,mBAAmB,KAAK,gBAAgB;AAEnF,qBAAa,QAAQ;AACrB,aAAK,eAAe,IAAI;AAAA,MAC1B,OAAO;AAEL,qBAAa,QAAQ;AACC,4BAAoB,IAAI;AAC9C,aAAK,eAAe,IAAI;AAAA,MAC1B;AAAA,IACF;AAEA,aAAS,cAAc,MAAM;AAC3B,aAAO,aAAa,UAAU,QAAQ,KAAK,aAAY,MAAO,SAAS,aAAY;AAAA,IACrF;AAEA,aAAS,oBAAoB,MAAM;AACjC,aAAO,GAAG,KAAK,QAAO,EAAG,SAAQ,EAAG,SAAS,GAAG,GAAG,CAAC,IAAI,KAAK,SAAQ,IAAK,GACvE,SAAQ,EAAG,SAAS,GAAG,GAAG,CAAC,GAAG,KAAK,YAAW,CAAE;AAAA,IACrD;AAEA,aAAS,UAAU,MAAM;AACvB,aAAO,KAAK,mBAAmB,MAAM,SAAS,MAAM,SAAS,MAAM;AAAA,QACjE,SAAS;AAAA,MACb,CAAG,EAAE,YAAW;AAAA,IAChB;AAEA,aAAS,cAAc,OAAO,OAAO;AACnC,YAAMA,SAAQ,CAAA;AACd,eAAS,IAAI,MAAM,QAAQ,aAAa,GAAG,IAAI,QAAQ,MAAM,QAAQ,aAAa,GAAG,KAAK;AACxF,cAAM,UAAU,IAAI,KAAK,KAAK;AAC9B,gBAAQ,QAAQ,MAAM,QAAO,IAAK,CAAC;AACnC,gBAAQ,SAAS,GAAG,GAAG,GAAG,CAAC;AAC3B,QAAAA,OAAM,KAAK,OAAO;AAAA,MACpB;AACA,aAAOA;AAAA,IACT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref, watchEffect, createElementBlock, openBlock, createBlock, createCommentVNode, unref, withCtx, Fragment, renderList, createElementVNode, createVNode } from "vue";
|
|
2
|
-
import { VueDraggableNext } from "
|
|
2
|
+
import { VueDraggableNext } from "../../../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";
|
|
3
3
|
import _sfc_main$2 from "../UploadImageMultiple/UploadImageMultiple.vue.js";
|
|
4
4
|
import _sfc_main$1 from "../../modules/icons/navigation/IconCross.vue.js";
|
|
5
|
-
/* empty css
|
|
6
|
-
const _hoisted_1 = { class: "flex-nowrap flex gap-small" };
|
|
7
|
-
const _hoisted_2 = { class: "pos-relative" };
|
|
5
|
+
/* empty css */
|
|
6
|
+
const _hoisted_1 = { class: "flex-nowrap flex gap-small o-x-scroll scroll-hide pd-t-small pd-r-small" };
|
|
7
|
+
const _hoisted_2 = { class: "pos-relative flex-child-default" };
|
|
8
8
|
const _hoisted_3 = ["src"];
|
|
9
9
|
const _hoisted_4 = {
|
|
10
10
|
key: 1,
|
|
@@ -44,7 +44,7 @@ const _sfc_main = {
|
|
|
44
44
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
45
45
|
localImages.value.length > 0 ? (openBlock(), createBlock(unref(VueDraggableNext), {
|
|
46
46
|
key: 0,
|
|
47
|
-
class: "gap-small flex dragArea list-group w-full",
|
|
47
|
+
class: "gap-small flex flex-nowrap dragArea list-group w-full",
|
|
48
48
|
modelValue: localImages.value,
|
|
49
49
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => localImages.value = $event),
|
|
50
50
|
onChange: emitChanges
|
|
@@ -92,4 +92,4 @@ const _sfc_main = {
|
|
|
92
92
|
export {
|
|
93
93
|
_sfc_main as default
|
|
94
94
|
};
|
|
95
|
-
//# sourceMappingURL=EditImages.
|
|
95
|
+
//# sourceMappingURL=EditImages.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditImages.vue.js","sources":["../../../../../src/components/EditImages/EditImages.vue"],"sourcesContent":["<template>\n\t<div class=\"flex-nowrap flex gap-small o-x-scroll scroll-hide pd-t-small pd-r-small\">\n <VueDraggableNext v-if=\"localImages.length > 0\" class=\"gap-small flex flex-nowrap dragArea list-group w-full\" v-model=\"localImages\" @change=\"emitChanges\">\n\t\t\t<div v-for=\"(image, index) in localImages\" class=\"pos-relative flex-child-default\">\n\t\t\t\t<img loading=\"lazy\" class=\"i-extra object-fit-contain bg-black-transp-5 pd-nano radius-small o-hidden\" :src=\"(FILE_SERVER_URL || '') + image\" />\n\t\t\t\t\n <IconCross \n @click=\"deleteImage(index)\" \n class=\"cursor-pointer pos-absolute t-center flex-center flex radius-extra i-medium bg-red pos-t-10-negative pos-r-10-negative pd-micro\"\n />\n\t\t\t</div>\n\t\t</VueDraggableNext>\n <div\n v-if=\"localImages.length > 0\" \n class=\"i-extra uppercase flex-center flex radius-small o-hidden br-main br-2px pd-small\"\n >\n <UploadImageMultiple \n @update:images=\"onImagesUpdate\"\n text=\"Add\"\n :options=\"{\n showText: false\n }\"\n :uploadPath=\"'photos'\"\n class=\"radius-big\"\n />\n </div>\n\n\n\t\t<UploadImageMultiple \t\n v-if=\"localImages.length < 1\" \n @update:images=\"onImagesUpdate\"\n :uploadPath=\"props.uploadPath\"\n :text=\"props.text\"\n :options=\"props.options\"\n class=\"w-100 pd-medium\"\n />\n\t</div>\t\n</template>\n\n<script setup>\nimport { ref, defineProps, watchEffect } from 'vue';\nimport { VueDraggableNext } from 'vue-draggable-next'\nimport UploadImageMultiple from \"@martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue\";\nimport IconCross from '@martyrs/src/modules/icons/navigation/IconCross.vue';\n\nconst props = defineProps({\n images: Array,\n text: Object,\n options: Object,\n uploadPath: {\n type: Object,\n default: 'unsorted'\n }\n});\n\nconst emit = defineEmits(['update:images'])\n\nconst localImages = ref([...props.images])\n\nwatchEffect(() => {\n localImages.value = [...props.images]; // Обновление localImages при изменении props.images\n});\n\nconst emitChanges = () => {\n emit('update:images', localImages.value)\n}\n\nconst onImagesUpdate = (newImages) => {\n localImages.value = [...localImages.value, ...newImages]\n emitChanges()\n}\n\nconst deleteImage = (index) => {\n localImages.value.splice(index, 1)\n emitChanges()\n}\n</script>\n\n<style lang=\"scss\">\n// Your styles here\n</style>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,UAAM,QAAQ;AAUd,UAAM,OAAO;AAEb,UAAM,cAAc,IAAI,CAAC,GAAG,MAAM,MAAM,CAAC;AAEzC,gBAAY,MAAM;AAChB,kBAAY,QAAQ,CAAC,GAAG,MAAM,MAAM;AAAA,IACtC,CAAC;AAED,UAAM,cAAc,MAAM;AACxB,WAAK,iBAAiB,YAAY,KAAK;AAAA,IACzC;AAEA,UAAM,iBAAiB,CAAC,cAAc;AACpC,kBAAY,QAAQ,CAAC,GAAG,YAAY,OAAO,GAAG,SAAS;AACvD,kBAAW;AAAA,IACb;AAEA,UAAM,cAAc,CAAC,UAAU;AAC7B,kBAAY,MAAM,OAAO,OAAO,CAAC;AACjC,kBAAW;AAAA,IACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createElementBlock, openBlock, createElementVNode, createCommentVNode, toDisplayString } from "vue";
|
|
2
2
|
const _hoisted_1 = { class: "mn-b-small" };
|
|
3
|
-
const _hoisted_2 = { class: "
|
|
3
|
+
const _hoisted_2 = { class: "opacity-50 p-regular" };
|
|
4
4
|
const _sfc_main = {
|
|
5
5
|
__name: "EmptyState",
|
|
6
6
|
props: {
|