@ozdao/prometheus-framework 0.2.81 → 0.2.82
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +1 -1
- package/dist/auth.server.mjs +1 -1
- package/dist/community.server.js +3 -3
- package/dist/community.server.mjs +3 -3
- package/dist/credentials.schema-CDZCKfEI.mjs +106 -0
- package/dist/credentials.schema-CfhPcsuI.js +105 -0
- package/dist/events.server.js +4 -15
- package/dist/events.server.mjs +3 -14
- package/dist/files.server.js +1 -1
- package/dist/files.server.mjs +1 -1
- package/dist/gallery.server.js +1 -1
- package/dist/gallery.server.mjs +1 -1
- package/dist/index-B6a1mPgp.mjs +217 -0
- package/dist/index-BCCiEK_u.js +216 -0
- package/dist/main-8N2Jmsuk.js +91 -0
- package/dist/main-CkeuHuCY.mjs +13619 -0
- package/dist/main.css +1 -1
- package/dist/metadata.schema-Cu_mPkjE.js +77 -0
- package/dist/metadata.schema-cbFgazeK.mjs +78 -0
- package/dist/middlewares.server.js +1 -1
- package/dist/middlewares.server.mjs +1 -1
- package/dist/node_modules/@googlemaps/js-api-loader/dist/index.cjs +1 -0
- package/dist/node_modules/@googlemaps/js-api-loader/dist/index.js +238 -0
- package/dist/organizations.server.js +297 -134
- package/dist/organizations.server.mjs +295 -132
- package/dist/products.server.js +2 -2
- package/dist/products.server.mjs +2 -2
- package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.js +33 -24
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +23 -20
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -225
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +102 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +71 -60
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +1 -84
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +84 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +325 -340
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +2 -2
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +53 -44
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +41 -40
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +37 -31
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +18 -19
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -36
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +36 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +26 -26
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +78 -103
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +15 -15
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +29 -27
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.js +33 -26
- package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +6 -3
- package/dist/prometheus-framework/src/modules/globals/services/globals.store.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/services/globals.store.js +70 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconGallery.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconGallery.vue.js +28 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconLeftovers.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconLeftovers.vue.js +30 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconOrders.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconOrders.vue.js +35 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconProducts.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconProducts.vue.js +28 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +63 -86
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +174 -114
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +40 -40
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +141 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +77 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +46 -35
- package/dist/prometheus-framework/src/modules/orders/store/customers.store.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/store/customers.store.js +5 -0
- package/dist/prometheus-framework/src/modules/orders/store/models/customer.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/store/models/customer.js +30 -0
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +24 -25
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +38 -49
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +161 -138
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +198 -78
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +82 -125
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +59 -70
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +34 -36
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +38 -18
- package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.js +34 -35
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +41 -21
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +24 -26
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +78 -0
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.js +13 -14
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/queryProcessor-BJdKh0Ow.mjs +162 -0
- package/dist/queryProcessor-DRMo_GWK.js +161 -0
- package/dist/reports.server.js +1 -1
- package/dist/reports.server.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/users.server.js +69 -38
- package/dist/users.server.mjs +67 -36
- package/dist/wallet.server.js +2 -2
- package/dist/wallet.server.mjs +2 -2
- package/dist/web-CtVocufd.js +1 -0
- package/dist/web-DNq1tHCE.mjs +54 -0
- package/package.json +1 -1
- package/src/components/Address/Address.vue +13 -2
- package/src/components/Block/Block.vue +3 -2
- package/src/components/Button/Button.vue +9 -12
- package/src/components/Feed/Feed.vue +28 -6
- package/src/components/FieldPhone/FieldPhone.vue +592 -558
- package/src/components/LocationMarker/LocationMarker.vue +26 -22
- package/src/components/Popup/Popup.vue +22 -23
- package/src/components/Select/Select.vue +43 -32
- package/src/components/Slider/Slider.vue +3 -4
- package/src/modules/auth/components/pages/Invite.vue +7 -7
- package/src/modules/auth/store/auth.js +1 -1
- package/src/modules/backoffice/components/pages/Dashboard.vue +44 -29
- package/src/modules/community/components/sections/HotPosts.vue +1 -1
- package/src/modules/events/components/blocks/CardEvent.vue +4 -3
- package/src/modules/events/components/pages/Events.vue +23 -6
- package/src/modules/globals/components/sections/SectionPageTitle.vue +19 -7
- package/src/modules/globals/controllers/utils/queryProcessor.js +21 -7
- package/src/modules/globals/localization/vue-i18n.js +3 -0
- package/src/modules/globals/models/credentials.schema.js +7 -0
- package/src/modules/globals/models/metadata.schema.js +17 -0
- package/src/modules/globals/models/profile.schema.js +23 -0
- package/src/modules/globals/models/socials.schema.js +22 -0
- package/src/modules/globals/router/routerGuards.js +1 -0
- package/src/modules/globals/services/globals.cashe.js +26 -0
- package/src/modules/globals/services/globals.crud.js +115 -0
- package/src/modules/globals/services/globals.logger.js +41 -0
- package/src/modules/globals/services/globals.store.js +114 -0
- package/src/modules/icons/entities/IconGallery.vue +14 -0
- package/src/modules/icons/entities/IconLeftovers.vue +14 -0
- package/src/modules/icons/entities/IconOrders.vue +15 -0
- package/src/modules/icons/entities/IconProducts.vue +14 -0
- package/src/modules/landing/components/sections/HeroSection.vue +1 -1
- package/src/modules/landing/components/sections/MobileApp.vue +4 -4
- package/src/modules/landing/router/landing.js +1 -1
- package/src/modules/marketplace/components/sections/Filters.vue +3 -3
- package/src/modules/middlewares/server/accessors/AccessController.js +33 -0
- package/src/modules/middlewares/server/accessors/ReadDepartments.js +101 -0
- package/src/modules/middlewares/server/verifyAccesses.js +33 -0
- package/src/modules/middlewares/server/verifyInvites.js +4 -4
- package/src/modules/orders/components/pages/OrderCreate.vue +2 -2
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +105 -68
- package/src/modules/orders/components/pages/Orders.vue +2 -2
- package/src/modules/orders/components/sections/FormAddCustomer.vue +152 -0
- package/src/modules/orders/components/sections/FormCustomerDetails.vue +67 -0
- package/src/modules/orders/components/sections/FormDelivery.vue +17 -3
- package/src/modules/orders/controllers/applications.controller.js +2 -0
- package/src/modules/orders/controllers/orders.controller.js +77 -52
- package/src/modules/orders/models/customer.model.js +54 -18
- package/src/modules/orders/models/order.model.js +1 -1
- package/src/modules/orders/orders.client.js +51 -51
- package/src/modules/orders/orders.server.js +32 -12
- package/src/modules/orders/router/orders.router.js +36 -41
- package/src/modules/orders/routes/orders.routes.js +3 -21
- package/src/modules/orders/store/customers.store.js +5 -0
- package/src/modules/orders/store/models/customer.js +29 -0
- package/src/modules/orders/store/orders.js +14 -20
- package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
- package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
- package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +1 -12
- package/src/modules/organizations/components/pages/Department.vue +1 -1
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +72 -48
- package/src/modules/organizations/components/pages/Members.vue +178 -64
- package/src/modules/organizations/components/pages/Organization.vue +1 -41
- package/src/modules/organizations/components/sections/MembersAdd.vue +44 -52
- package/src/modules/organizations/controllers/departments.controller.js +2 -4
- package/src/modules/organizations/controllers/invites.controller.js +24 -23
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/models/department.model.js +52 -2
- package/src/modules/organizations/models/invite.model.js +29 -32
- package/src/modules/organizations/models/membership.model.js +2 -0
- package/src/modules/organizations/models/organization.model.js +2 -1
- package/src/modules/organizations/organizations.client.js +0 -2
- package/src/modules/organizations/routes/departments.routes.js +18 -7
- package/src/modules/organizations/routes/invites.routes.js +2 -2
- package/src/modules/organizations/store/departments.js +22 -1
- package/src/modules/organizations/store/invites.js +74 -90
- package/src/modules/products/components/blocks/CardProduct.vue +24 -0
- package/src/modules/products/components/pages/Products.vue +1 -1
- package/src/modules/reports/components/sections/FormReport.vue +40 -40
- package/src/modules/spots/components/pages/Spot.vue +1 -1
- package/src/modules/spots/components/pages/SpotEdit.vue +1 -1
- package/src/modules/users/components/blocks/CardUser.vue +85 -0
- package/src/modules/users/controllers/users.controller.js +36 -13
- package/src/modules/users/middlewares/visitor.logger.js +66 -0
- package/src/modules/users/models/request.model.js +18 -0
- package/src/modules/users/models/user.model.js +26 -55
- package/src/modules/users/models/visitor.model.js +14 -0
- package/src/modules/users/store/users.js +2 -11
- package/src/modules/wallet/controllers/routes/payments.routes.js +2 -0
- package/src/components/FieldPhone/FieldPhone(script-setup).vue +0 -1646
- package/src/components/FieldPhone/FieldPhone2.vue +0 -671
- package/src/modules/orders/components/sections/FormClientDetails.vue +0 -61
- package/src/modules/organizations/components/blocks/User.vue +0 -69
- /package/src/modules/backoffice/components/admin/{User.vue → UserEdit.vue} +0 -0
package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js
CHANGED
@@ -1,74 +1,80 @@
|
|
1
|
-
import { computed as
|
2
|
-
import { useRoute as
|
3
|
-
import
|
4
|
-
import "../../../../components/
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
1
|
+
import { computed as I, ref as d, onMounted as T, openBlock as r, createElementBlock as c, createVNode as a, withCtx as s, createElementVNode as u, createTextVNode as q, unref as f, Fragment as v, renderList as C, createBlock as n, createCommentVNode as m, normalizeClass as E, toDisplayString as x } from "vue";
|
2
|
+
import { useRoute as L, useRouter as M } from "vue-router";
|
3
|
+
import "../../../../components/Field/Field.vue.js";
|
4
|
+
import U from "../../../../components/Button/Button.vue2.js";
|
5
|
+
import j from "../../../../components/Tab/Tab.vue2.js";
|
6
|
+
import $ from "../../../../components/Popup/Popup.vue2.js";
|
7
|
+
import _ from "../../../../components/Block/Block.vue.js";
|
8
|
+
import O from "../../../../components/Feed/Feed.vue.js";
|
9
|
+
import N from "../blocks/CardOrderItem.vue.js";
|
9
10
|
import "../../../../components/Select/Select.vue.js";
|
10
11
|
import "../../../../components/SelectMulti/SelectMulti.vue2.js";
|
11
|
-
import
|
12
|
-
import
|
13
|
-
import
|
14
|
-
import
|
15
|
-
import { actions as
|
16
|
-
import { state as
|
17
|
-
import { actions as
|
12
|
+
import B from "../../../users/components/blocks/CardUser.vue.js";
|
13
|
+
import G from "../sections/FormAddCustomer.vue.js";
|
14
|
+
import H from "../sections/FormDelivery.vue.js";
|
15
|
+
import J from "../sections/FormPayment.vue.js";
|
16
|
+
import { actions as h } from "../../../globals/store/globals.js";
|
17
|
+
import { state as K } from "../../../auth/store/auth.js";
|
18
|
+
import { state as e, mutations as Q, actions as W } from "../../store/orders.js";
|
19
|
+
import { actions as X } from "../../../products/store/products.js";
|
20
|
+
import Y from "../../store/customers.store.js";
|
18
21
|
import "./OrderCreateBackoffice.vue2.js";
|
19
|
-
const
|
22
|
+
const Z = { class: "h-100 flex flex-column pd-thin" }, ee = { class: "flex-v-center flex-nowrap flex" }, te = /* @__PURE__ */ u("h2", { class: "mn-r-auto" }, "Create Order", -1), re = /* @__PURE__ */ u("h3", { class: "mn-b-small" }, "Add to order", -1), oe = { class: "h-100 bg-grey mn-b-thin o-scroll pd-medium radius-big" }, se = {
|
20
23
|
key: 0,
|
21
24
|
class: "w-100"
|
22
|
-
},
|
25
|
+
}, ne = { class: "h3 flex" }, ae = /* @__PURE__ */ u("span", { class: "mn-r-auto t-transp" }, "In total", -1), Be = {
|
23
26
|
__name: "OrderCreateBackoffice",
|
24
|
-
setup(
|
25
|
-
const
|
26
|
-
let
|
27
|
-
const
|
28
|
-
function
|
29
|
-
|
27
|
+
setup(ie) {
|
28
|
+
const p = L(), D = M();
|
29
|
+
let R = I(() => Number(e.current.positions.reduce((g, i) => g + i.price * i.quantity, 0)));
|
30
|
+
const l = d("positions"), b = d(!1);
|
31
|
+
function S() {
|
32
|
+
b.value = !0;
|
30
33
|
}
|
31
|
-
function
|
32
|
-
|
34
|
+
function k() {
|
35
|
+
b.value = !1;
|
33
36
|
}
|
34
|
-
const
|
35
|
-
function
|
36
|
-
|
37
|
+
const y = d(!1);
|
38
|
+
function V() {
|
39
|
+
y.value = !0;
|
37
40
|
}
|
38
|
-
function
|
39
|
-
|
41
|
+
function P() {
|
42
|
+
y.value = !1;
|
40
43
|
}
|
41
|
-
|
42
|
-
function
|
44
|
+
d(null);
|
45
|
+
function z() {
|
43
46
|
e.current.creator = {
|
44
47
|
type: "user",
|
45
|
-
target:
|
48
|
+
target: K.user._id
|
46
49
|
}, e.current.owner = {
|
47
50
|
type: "organization",
|
48
|
-
target:
|
49
|
-
},
|
51
|
+
target: p.params._id
|
52
|
+
}, e.current.customer = {
|
53
|
+
type: "Customer",
|
54
|
+
target: e.current.customer._id || null
|
55
|
+
}, W.create(e.current);
|
50
56
|
}
|
51
|
-
function
|
52
|
-
|
57
|
+
function A() {
|
58
|
+
D.push({
|
53
59
|
name: "Backoffice Orders",
|
54
60
|
params: {
|
55
|
-
_id:
|
61
|
+
_id: p.params._id
|
56
62
|
}
|
57
63
|
});
|
58
64
|
}
|
59
|
-
return
|
60
|
-
}), (
|
61
|
-
|
62
|
-
default:
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
submit:
|
67
|
-
callback:
|
65
|
+
return T(async () => {
|
66
|
+
}), (g, i) => (r(), c("div", Z, [
|
67
|
+
a(_, { class: "mn-b-thin" }, {
|
68
|
+
default: s(() => [
|
69
|
+
u("header", ee, [
|
70
|
+
te,
|
71
|
+
a(U, {
|
72
|
+
submit: z,
|
73
|
+
callback: A,
|
68
74
|
class: "pd-small radius-big bg-main t-black uppercase t-medium"
|
69
75
|
}, {
|
70
|
-
default:
|
71
|
-
|
76
|
+
default: s(() => [
|
77
|
+
q(" Add Order ")
|
72
78
|
]),
|
73
79
|
_: 1
|
74
80
|
})
|
@@ -76,17 +82,30 @@ const J = { class: "flex-v-center flex-nowrap flex" }, K = /* @__PURE__ */ t("h2
|
|
76
82
|
]),
|
77
83
|
_: 1
|
78
84
|
}),
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
85
|
+
a(j, {
|
86
|
+
selected: l.value,
|
87
|
+
"onUpdate:selected": i[0] || (i[0] = (t) => l.value = t),
|
88
|
+
tabs: [
|
89
|
+
{ name: "Positions", value: "positions" },
|
90
|
+
{ name: "Customer", value: "customer" },
|
91
|
+
{ name: "Delivery", value: "delivery" },
|
92
|
+
{ name: "Payment", value: "payment" }
|
93
|
+
],
|
94
|
+
class: "t-medium radius-medium bg-grey mn-b-small"
|
95
|
+
}, null, 8, ["selected"]),
|
96
|
+
a($, {
|
97
|
+
onClosePopup: k,
|
98
|
+
isPopupOpen: b.value,
|
83
99
|
class: "bg-white w-min-30r w-max-30r radius-big pd-medium"
|
84
100
|
}, {
|
85
|
-
default:
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
search:
|
101
|
+
default: s(() => [
|
102
|
+
re,
|
103
|
+
u("div", oe, [
|
104
|
+
a(O, {
|
105
|
+
search: {
|
106
|
+
placeholder: "Search products...",
|
107
|
+
class: "bg-white mn-b-thin"
|
108
|
+
},
|
90
109
|
states: {
|
91
110
|
empty: {
|
92
111
|
title: "No Products Found",
|
@@ -94,105 +113,146 @@ const J = { class: "flex-v-center flex-nowrap flex" }, K = /* @__PURE__ */ t("h2
|
|
94
113
|
}
|
95
114
|
},
|
96
115
|
store: {
|
97
|
-
read: (
|
116
|
+
read: (t) => X.read(t),
|
98
117
|
state: null
|
99
118
|
},
|
100
119
|
options: {
|
101
|
-
organization:
|
120
|
+
organization: f(p).params._id
|
102
121
|
},
|
103
122
|
class: ""
|
104
123
|
}, {
|
105
|
-
default:
|
106
|
-
items:
|
124
|
+
default: s(({
|
125
|
+
items: t
|
107
126
|
}) => [
|
108
|
-
(
|
109
|
-
key:
|
127
|
+
(r(!0), c(v, null, C(t, (o, F) => (r(), n(N, {
|
128
|
+
key: o._id,
|
110
129
|
editable: !1,
|
111
|
-
product:
|
130
|
+
product: o,
|
112
131
|
onClick: () => {
|
113
|
-
let w = { ...
|
114
|
-
w.quantity = 1,
|
132
|
+
let w = { ...o };
|
133
|
+
w.quantity = 1, h.add(e.current.positions, w), k();
|
115
134
|
},
|
116
135
|
class: "bg-white pd-thin radius-medium w-100 mn-b-thin"
|
117
136
|
}, null, 8, ["product", "onClick"]))), 128))
|
118
137
|
]),
|
119
138
|
_: 1
|
120
|
-
}, 8, ["states", "store", "options"])
|
139
|
+
}, 8, ["search", "states", "store", "options"])
|
121
140
|
])
|
122
141
|
]),
|
123
142
|
_: 1
|
124
143
|
}, 8, ["isPopupOpen"]),
|
125
|
-
|
144
|
+
l.value === "positions" ? (r(), n(_, {
|
145
|
+
key: 0,
|
126
146
|
title: "Positions",
|
127
147
|
actions: [{
|
128
148
|
label: "+",
|
129
|
-
function: () =>
|
149
|
+
function: () => S()
|
130
150
|
}],
|
131
|
-
class: "mn-b-
|
151
|
+
class: "mn-b-small"
|
132
152
|
}, {
|
133
|
-
default:
|
134
|
-
e.current.positions.length === 0 ? (
|
135
|
-
(
|
136
|
-
key:
|
153
|
+
default: s(() => [
|
154
|
+
e.current.positions.length === 0 ? (r(), c("span", se, " No positions added yet ")) : m("", !0),
|
155
|
+
(r(!0), c(v, null, C(e.current.positions, (t, o) => (r(), n(N, {
|
156
|
+
key: t._id,
|
137
157
|
editable: !0,
|
138
|
-
product:
|
158
|
+
product: t,
|
139
159
|
onIncrease: () => {
|
140
|
-
|
160
|
+
h.increment(e.current.positions, t);
|
141
161
|
},
|
142
162
|
onDecrease: () => {
|
143
|
-
|
163
|
+
h.decrement(e.current.positions, t);
|
144
164
|
},
|
145
165
|
onRemove: () => {
|
146
|
-
|
166
|
+
h.delete(e.current.positions, t);
|
147
167
|
},
|
148
168
|
class: "mn-b-thin pd-thin radius-medium bg-white"
|
149
169
|
}, null, 8, ["product", "onIncrease", "onDecrease", "onRemove"]))), 128))
|
150
170
|
]),
|
151
171
|
_: 1
|
152
|
-
}, 8, ["actions"]),
|
153
|
-
|
172
|
+
}, 8, ["actions"])) : m("", !0),
|
173
|
+
l.value === "customer" ? (r(), n(_, {
|
174
|
+
key: 1,
|
154
175
|
title: "Customer",
|
155
|
-
class: "mn-b-semi"
|
176
|
+
class: "mn-b-semi",
|
177
|
+
actions: [{
|
178
|
+
label: "+",
|
179
|
+
function: () => V()
|
180
|
+
}]
|
156
181
|
}, {
|
157
|
-
default:
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
182
|
+
default: s(() => [
|
183
|
+
e.current.customer._id ? (r(), n(B, {
|
184
|
+
key: 0,
|
185
|
+
user: e.current.customer,
|
186
|
+
photo: e.current.customer.profile.photo,
|
187
|
+
name: e.current.customer.profile.name || e.current.customer.phone || e.current.customer.email,
|
188
|
+
onClick: i[1] || (i[1] = () => {
|
189
|
+
Q.resetCustomer(e.current.customer);
|
190
|
+
}),
|
191
|
+
class: "bg-white pd-thin radius-medium w-100 mn-b-thin"
|
192
|
+
}, null, 8, ["user", "photo", "name"])) : (r(), n(O, {
|
193
|
+
key: 1,
|
194
|
+
search: {
|
195
|
+
placeholder: "Search customer...",
|
196
|
+
class: "bg-white mn-b-thin"
|
197
|
+
},
|
198
|
+
states: {
|
199
|
+
empty: {
|
200
|
+
title: "No Products Found",
|
201
|
+
description: "Currently, there are no such products available."
|
202
|
+
}
|
203
|
+
},
|
204
|
+
store: {
|
205
|
+
read: (t) => f(Y).read(t),
|
206
|
+
state: null
|
207
|
+
},
|
208
|
+
options: {
|
209
|
+
owner: f(p).params._id
|
210
|
+
},
|
211
|
+
class: "bg-grey h-max-20r o-scroll"
|
212
|
+
}, {
|
213
|
+
default: s(({
|
214
|
+
items: t
|
215
|
+
}) => [
|
216
|
+
(r(!0), c(v, null, C(t, (o, F) => (r(), n(B, {
|
217
|
+
key: o._id,
|
218
|
+
user: o,
|
219
|
+
photo: o.profile.photo,
|
220
|
+
name: o.profile.name || o.phone || o.email,
|
221
|
+
onClick: () => {
|
222
|
+
e.current.customer = o;
|
223
|
+
},
|
224
|
+
class: "bg-white pd-thin radius-medium w-100 mn-b-thin"
|
225
|
+
}, null, 8, ["user", "photo", "name", "onClick"]))), 128))
|
226
|
+
]),
|
227
|
+
_: 1
|
228
|
+
}, 8, ["search", "states", "store", "options"]))
|
165
229
|
]),
|
166
230
|
_: 1
|
167
|
-
}),
|
168
|
-
|
169
|
-
key:
|
231
|
+
}, 8, ["actions"])) : m("", !0),
|
232
|
+
l.value === "delivery" ? (r(), n(H, {
|
233
|
+
key: 2,
|
170
234
|
order: e.current
|
171
|
-
}, null, 8, ["order"])) :
|
172
|
-
|
173
|
-
key:
|
235
|
+
}, null, 8, ["order"])) : m("", !0),
|
236
|
+
l.value === "payment" ? (r(), n(J, {
|
237
|
+
key: 3,
|
174
238
|
order: e.current
|
175
|
-
}, null, 8, ["order"])) :
|
176
|
-
|
177
|
-
title: "
|
178
|
-
onClosePopup:
|
179
|
-
isPopupOpen:
|
180
|
-
class: "bg-white w-min-30r w-max-30r radius-big pd-medium"
|
239
|
+
}, null, 8, ["order"])) : m("", !0),
|
240
|
+
a($, {
|
241
|
+
title: "Add customer",
|
242
|
+
onClosePopup: P,
|
243
|
+
isPopupOpen: y.value,
|
244
|
+
class: E("bg-white w-min-30r w-max-30r radius-big pd-medium")
|
181
245
|
}, {
|
182
|
-
default:
|
183
|
-
|
184
|
-
s(F, {
|
185
|
-
order: e.current,
|
186
|
-
class: "bg-grey"
|
187
|
-
}, null, 8, ["order"])
|
246
|
+
default: s(() => [
|
247
|
+
a(G, { onCallbackCustomer: P })
|
188
248
|
]),
|
189
249
|
_: 1
|
190
250
|
}, 8, ["isPopupOpen"]),
|
191
|
-
|
192
|
-
default:
|
193
|
-
|
194
|
-
|
195
|
-
|
251
|
+
a(_, { class: "mn-b-semi" }, {
|
252
|
+
default: s(() => [
|
253
|
+
u("div", ne, [
|
254
|
+
ae,
|
255
|
+
u("span", null, x(f(R)) + " " + x(g.returnCurrency()), 1)
|
196
256
|
])
|
197
257
|
]),
|
198
258
|
_: 1
|
@@ -201,5 +261,5 @@ const J = { class: "flex-v-center flex-nowrap flex" }, K = /* @__PURE__ */ t("h2
|
|
201
261
|
}
|
202
262
|
};
|
203
263
|
export {
|
204
|
-
|
264
|
+
Be as default
|
205
265
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router");require("../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs");require("../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.cjs");require("../../../../components/Tab/Tab.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router");require("../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs");require("../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.cjs");require("../../../../components/Tab/Tab.vue.cjs");const d=require("../../store/orders.cjs"),p=require("../../../auth/store/auth.cjs");require("../blocks/CardOrder.vue.cjs");const g=require("../../../globals/components/blocks/CardHeader.vue.cjs"),_=require("../../../globals/components/sections/SectionPageTitle.vue.cjs"),h=require("../../../../components/Feed/Feed.vue.cjs"),y=require("../../../icons/entities/IconEvents.vue.cjs"),v={class:"pd-thin"},k={class:"mn-b-small pd-small bg-white radius-small flex-nowrap flex"},b={class:"w-100"},f={class:"mn-b-thin"},N={class:"t-truncate"},E={class:"w-100 t-right"},V={class:"mn-b-thin"},S={class:"cols-1 mn-b-small gap-thin pd-small bg-white radius-small"},w={class:"mn-r-auto"},x={class:"t-right"},B={class:"t-transp"},D={key:0},C={class:"mn-r-auto"},q={class:"t-right"},O={class:"t-transp"},T={class:"pd-small bg-white radius-small gap-micro flex-v-center flex-nowrap flex"},F=e.createElementVNode("p",{class:"t-medium mn-r-auto"},"16:40, 21.04",-1),A={class:"flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin bg-main"},M=e.createElementVNode("span",{class:"flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin t-white bg-red"}," Unpaid ",-1),P={key:0,class:"pos-relative radius-small bg-fifth-transp-10 mn-t-thin pd-small"},L=e.createElementVNode("p",{class:"mn-b-thin t-transp uppercase p-small t-medium"},"Comment",-1),R={__name:"Orders",setup(z){const u=c.useRoute();c.useRouter();const n=e.ref(!1),l=e.ref("all");return e.onMounted(async()=>{}),(o,r)=>{const m=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",v,[e.createVNode(_.default,{title:"Orders","onUpdate:tabs_current":r[0]||(r[0]=a=>l.value=a),tabs_current:l.value,tabs:[{name:"All",value:"all"},{name:"Created",value:"stock-in"},{name:"Confirmed",value:"stock-out"},{name:"Preparing",value:"stock-out"},{name:"Prepared",value:"stock-out"},{name:"In delivery",value:"stock-out"},{name:"Delivered",value:"stock-out"},{name:"Closed",value:"stock-out"}],actions:[{to:{name:"AdminOrderAdd"},label:"Create Order"}],class:"mn-b-small bg-grey bg-grey radius-big"},null,8,["tabs_current"]),e.createVNode(h.default,{search:!0,states:{empty:{title:"No Orders Found",description:"Currently, there are no orders."}},store:{read:a=>d.actions.read(a)},options:{limit:15,owner:e.unref(u).params._id,...l.value!=="all"&&{type:l.value}},class:"gap-thin cols-3"},{default:e.withCtx(({items:a})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,t=>(e.openBlock(),e.createBlock(m,{to:{name:"Order Edit",params:{order:t._id}},class:"bg-grey pos-relative pd-medium radius-big"},{default:e.withCtx(()=>[e.createVNode(g.default,{entity:t,entityType:"order",user:p.state.user,owner:t.creator,creator:t.creator,date:t.createdAt,class:"mn-b-small"},null,8,["entity","user","owner","creator","date"]),e.createElementVNode("div",k,[e.createElementVNode("div",b,[e.createElementVNode("h3",f,e.toDisplayString(t.customer.target.profile.name||t.customer.target.phone||t.customer.target.email||"No name"),1),e.createElementVNode("p",N,e.toDisplayString(t.delivery.address||"Not specified"),1)]),e.createElementVNode("div",E,[e.createElementVNode("h3",V,e.toDisplayString(o.returnCurrency())+e.toDisplayString(d.getters.getTotal(t.positions)),1),e.createElementVNode("p",null,"#"+e.toDisplayString(t._id.slice(0,4)+"..."+t._id.slice(-4)),1)])]),e.createElementVNode("div",S,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.positions.slice(0,2),(s,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"w-100 flex"},[e.createElementVNode("p",w,e.toDisplayString(s.name),1),e.createElementVNode("p",x,[e.createTextVNode(e.toDisplayString(s.quantity)+" "+e.toDisplayString(s.type)+" x "+e.toDisplayString(s.price)+" ",1),e.createElementVNode("span",B,e.toDisplayString(o.returnCurrency()),1)])]))),128)),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[n.value&&t.positions.length>2?(e.openBlock(),e.createElementBlock("div",D,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.positions.slice(2),(s,i)=>(e.openBlock(),e.createElementBlock("div",{key:i+2,class:"w-100 flex"},[e.createElementVNode("p",C,e.toDisplayString(s.name),1),e.createElementVNode("p",q,[e.createTextVNode(e.toDisplayString(s.quantity)+" "+e.toDisplayString(s.type)+" x "+e.toDisplayString(s.price)+" ",1),e.createElementVNode("span",O,e.toDisplayString(o.returnCurrency()),1)])]))),128))])):e.createCommentVNode("",!0)]),_:2},1024),t.positions.length>2?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:r[1]||(r[1]=e.withModifiers(s=>n.value=!n.value,["prevent"])),class:"radius-big bg-grey-transp-50 pd-nano w-100 flex-center flex"},e.toDisplayString(n.value?"Hide":`+${t.positions.length-2} more`),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",T,[e.createVNode(y.default,{class:"i-semi t-transp",fill:"rgb(var(--black)"}),F,e.createElementVNode("span",A,e.toDisplayString(t.status),1),M]),t.comment?(e.openBlock(),e.createElementBlock("div",P,[L,e.createElementVNode("p",null,e.toDisplayString(t.comment),1)])):e.createCommentVNode("",!0)]),_:2},1032,["to"]))),256))]),_:1},8,["states","store","options"])])}}};exports.default=R;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { ref as
|
2
|
-
import { useRoute as
|
1
|
+
import { ref as g, onMounted as k, resolveComponent as w, openBlock as n, createElementBlock as l, createVNode as r, unref as x, withCtx as p, Fragment as _, renderList as h, createBlock as C, createElementVNode as e, toDisplayString as s, createTextVNode as v, Transition as N, createCommentVNode as f, withModifiers as O } from "vue";
|
2
|
+
import { useRoute as $, useRouter as A } from "vue-router";
|
3
3
|
import "../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js";
|
4
4
|
import "../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.js";
|
5
|
-
import "../../../../components/Tab/Tab.
|
5
|
+
import "../../../../components/Tab/Tab.vue.js";
|
6
6
|
import { actions as T, getters as V } from "../../store/orders.js";
|
7
7
|
import { state as B } from "../../../auth/store/auth.js";
|
8
8
|
import "../blocks/CardOrder.vue.js";
|
@@ -10,15 +10,15 @@ import E from "../../../globals/components/blocks/CardHeader.vue.js";
|
|
10
10
|
import q from "../../../globals/components/sections/SectionPageTitle.vue.js";
|
11
11
|
import z from "../../../../components/Feed/Feed.vue.js";
|
12
12
|
import D from "../../../icons/entities/IconEvents.vue.js";
|
13
|
-
const F = { class: "pd-thin" }, M = { class: "mn-b-small pd-small bg-white radius-small flex-nowrap flex" }, P = { class: "w-100" }, R = { class: "mn-b-thin" }, U = { class: "t-truncate" }, H = { class: "w-100 t-right" }, I = { class: "mn-b-thin" }, L = { class: "cols-1 mn-b-small gap-thin pd-small bg-white radius-small" }, S = { class: "mn-r-auto" }, j = { class: "t-right" }, G = { class: "t-transp" }, J = { key: 0 }, K = { class: "mn-r-auto" }, Q = { class: "t-right" }, W = { class: "t-transp" }, X = { class: "pd-small bg-white radius-small gap-micro flex-v-center flex-nowrap flex" }, Y = /* @__PURE__ */
|
13
|
+
const F = { class: "pd-thin" }, M = { class: "mn-b-small pd-small bg-white radius-small flex-nowrap flex" }, P = { class: "w-100" }, R = { class: "mn-b-thin" }, U = { class: "t-truncate" }, H = { class: "w-100 t-right" }, I = { class: "mn-b-thin" }, L = { class: "cols-1 mn-b-small gap-thin pd-small bg-white radius-small" }, S = { class: "mn-r-auto" }, j = { class: "t-right" }, G = { class: "t-transp" }, J = { key: 0 }, K = { class: "mn-r-auto" }, Q = { class: "t-right" }, W = { class: "t-transp" }, X = { class: "pd-small bg-white radius-small gap-micro flex-v-center flex-nowrap flex" }, Y = /* @__PURE__ */ e("p", { class: "t-medium mn-r-auto" }, "16:40, 21.04", -1), Z = { class: "flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin bg-main" }, tt = /* @__PURE__ */ e("span", { class: "flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin t-white bg-red" }, " Unpaid ", -1), et = {
|
14
14
|
key: 0,
|
15
15
|
class: "pos-relative radius-small bg-fifth-transp-10 mn-t-thin pd-small"
|
16
|
-
}, st = /* @__PURE__ */
|
16
|
+
}, st = /* @__PURE__ */ e("p", { class: "mn-b-thin t-transp uppercase p-small t-medium" }, "Comment", -1), ft = {
|
17
17
|
__name: "Orders",
|
18
18
|
setup(at) {
|
19
|
-
const b =
|
19
|
+
const b = $();
|
20
20
|
A();
|
21
|
-
const o =
|
21
|
+
const o = g(!1), c = g("all");
|
22
22
|
return k(async () => {
|
23
23
|
}), (d, m) => {
|
24
24
|
const y = w("router-link");
|
@@ -63,81 +63,81 @@ const F = { class: "pd-thin" }, M = { class: "mn-b-small pd-small bg-white radiu
|
|
63
63
|
default: p(({
|
64
64
|
items: i
|
65
65
|
}) => [
|
66
|
-
(n(!0), l(_, null, h(i, (
|
66
|
+
(n(!0), l(_, null, h(i, (t) => (n(), C(y, {
|
67
67
|
to: {
|
68
68
|
name: "Order Edit",
|
69
69
|
params: {
|
70
|
-
order:
|
70
|
+
order: t._id
|
71
71
|
}
|
72
72
|
},
|
73
73
|
class: "bg-grey pos-relative pd-medium radius-big"
|
74
74
|
}, {
|
75
75
|
default: p(() => [
|
76
76
|
r(E, {
|
77
|
-
entity:
|
77
|
+
entity: t,
|
78
78
|
entityType: "order",
|
79
79
|
user: B.user,
|
80
|
-
owner:
|
81
|
-
creator:
|
82
|
-
date:
|
80
|
+
owner: t.creator,
|
81
|
+
creator: t.creator,
|
82
|
+
date: t.createdAt,
|
83
83
|
class: "mn-b-small"
|
84
84
|
}, null, 8, ["entity", "user", "owner", "creator", "date"]),
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
85
|
+
e("div", M, [
|
86
|
+
e("div", P, [
|
87
|
+
e("h3", R, s(t.customer.target.profile.name || t.customer.target.phone || t.customer.target.email || "No name"), 1),
|
88
|
+
e("p", U, s(t.delivery.address || "Not specified"), 1)
|
89
89
|
]),
|
90
|
-
|
91
|
-
|
92
|
-
|
90
|
+
e("div", H, [
|
91
|
+
e("h3", I, s(d.returnCurrency()) + s(V.getTotal(t.positions)), 1),
|
92
|
+
e("p", null, "#" + s(t._id.slice(0, 4) + "..." + t._id.slice(-4)), 1)
|
93
93
|
])
|
94
94
|
]),
|
95
|
-
|
96
|
-
(n(!0), l(_, null, h(
|
95
|
+
e("div", L, [
|
96
|
+
(n(!0), l(_, null, h(t.positions.slice(0, 2), (a, u) => (n(), l("div", {
|
97
97
|
key: u,
|
98
98
|
class: "w-100 flex"
|
99
99
|
}, [
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
100
|
+
e("p", S, s(a.name), 1),
|
101
|
+
e("p", j, [
|
102
|
+
v(s(a.quantity) + " " + s(a.type) + " x " + s(a.price) + " ", 1),
|
103
|
+
e("span", G, s(d.returnCurrency()), 1)
|
104
104
|
])
|
105
105
|
]))), 128)),
|
106
|
-
r(
|
106
|
+
r(N, { name: "fade" }, {
|
107
107
|
default: p(() => [
|
108
|
-
o.value &&
|
109
|
-
(n(!0), l(_, null, h(
|
108
|
+
o.value && t.positions.length > 2 ? (n(), l("div", J, [
|
109
|
+
(n(!0), l(_, null, h(t.positions.slice(2), (a, u) => (n(), l("div", {
|
110
110
|
key: u + 2,
|
111
111
|
class: "w-100 flex"
|
112
112
|
}, [
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
113
|
+
e("p", K, s(a.name), 1),
|
114
|
+
e("p", Q, [
|
115
|
+
v(s(a.quantity) + " " + s(a.type) + " x " + s(a.price) + " ", 1),
|
116
|
+
e("span", W, s(d.returnCurrency()), 1)
|
117
117
|
])
|
118
118
|
]))), 128))
|
119
119
|
])) : f("", !0)
|
120
120
|
]),
|
121
121
|
_: 2
|
122
122
|
}, 1024),
|
123
|
-
|
123
|
+
t.positions.length > 2 ? (n(), l("button", {
|
124
124
|
key: 0,
|
125
|
-
onClick: m[1] || (m[1] =
|
125
|
+
onClick: m[1] || (m[1] = O((a) => o.value = !o.value, ["prevent"])),
|
126
126
|
class: "radius-big bg-grey-transp-50 pd-nano w-100 flex-center flex"
|
127
|
-
}, s(o.value ? "Hide" : `+${
|
127
|
+
}, s(o.value ? "Hide" : `+${t.positions.length - 2} more`), 1)) : f("", !0)
|
128
128
|
]),
|
129
|
-
|
129
|
+
e("div", X, [
|
130
130
|
r(D, {
|
131
131
|
class: "i-semi t-transp",
|
132
132
|
fill: "rgb(var(--black)"
|
133
133
|
}),
|
134
134
|
Y,
|
135
|
-
|
135
|
+
e("span", Z, s(t.status), 1),
|
136
136
|
tt
|
137
137
|
]),
|
138
|
-
|
138
|
+
t.comment ? (n(), l("div", et, [
|
139
139
|
st,
|
140
|
-
|
140
|
+
e("p", null, s(t.comment), 1)
|
141
141
|
])) : f("", !0)
|
142
142
|
]),
|
143
143
|
_: 2
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("vue-router"),k=require("../../../../components/Block/Block.vue.cjs");require("../../../../components/Field/Field.vue.cjs");const b=require("../../../../components/FieldPhone/click-outside.cjs");require("../../../../components/Select/Select.vue.cjs");const g=require("../../../../components/Feed/Feed.vue.cjs"),v=require("../../../../components/Button/Button.vue2.cjs"),C=require("../../../globals/components/blocks/BlockSearch.vue.cjs"),n=require("../../../users/components/blocks/CardUser.vue.cjs"),q=require("./FormCustomerDetails.vue.cjs"),_=require("../../../users/store/users.cjs"),w=require("../../../auth/store/auth.cjs"),y=require("../../../globals/store/globals.cjs"),B=require("../../store/customers.store.cjs"),x=require("../../store/models/customer.cjs"),E={key:2,class:"mn-t-thin pos-absolute w-100 pos-t-100 pos-l-0 z-index-3 bg-grey pd-small radius-small"},N={__name:"FormAddCustomer",props:{order:Object},emits:["callbackCustomer"],setup(V,{emit:i}){let c=b.default;const d=i,m=h.useRoute();let r=e.ref(x.default),u=e.ref(null),l=e.ref(!1);async function f(){let a={identity:{type:r.value.user?"User":"Visitor",target:r.value.user?r.value.user._id:null},owner:{type:"Organization",target:m.params._id},creator:{type:"User",target:w.state.user._id},phone:r.value.phone,email:r.value.email,profile:r.value.profile,socials:r.value.socials};try{let o=await B.default.create(a);r.value=o}catch(o){console.log(o)}}function p(){d("callbackCustomer",r.value)}return(a,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(k.default,{class:"pos-relative mn-b-thin"},{default:e.withCtx(()=>[e.unref(r).user?(e.openBlock(),e.createBlock(n.default,{key:1,user:e.unref(r).user,photo:e.unref(r).user.profile.photo,name:e.unref(r).user.profile.name||e.unref(r).user.phone||e.unref(r).user.email,onClick:o[1]||(o[1]=()=>{e.unref(r).user=null}),class:"bg-white pd-thin radius-medium w-100"},null,8,["user","photo","name"])):e.withDirectives((e.openBlock(),e.createBlock(C.default,{key:0,onSearch:o[0]||(o[0]=s=>{e.isRef(u)?u.value=s:u=s,e.isRef(l)?l.value=!0:l=!0}),placeholder:"Enter name, phone or email",class:"bg-white"},null,512)),[[e.unref(c),()=>{e.isRef(l)?l.value=!1:l=!1}]]),e.unref(u)&&e.unref(l)&&!e.unref(r).user?(e.openBlock(),e.createElementBlock("div",E,[e.createVNode(g.default,{states:{empty:{title:"No User Found",description:"Currently, there are no such user."}},store:{read:s=>_.actions.read(s),state:null},options:{search:e.unref(u)},showLoadMore:!1,class:"h-max-20r o-scroll"},{default:e.withCtx(({items:s})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s,(t,F)=>(e.openBlock(),e.createBlock(n.default,{key:t._id,user:t,photo:t.profile.photo,name:t.profile.name||t.phone||t.email,onClick:()=>{e.unref(r).user=t,e.unref(r).profile=t.profile,e.unref(r).phone=t.phone,e.unref(r).email=t.email,e.unref(r).socials=t.socials},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["user","photo","name","onClick"]))),128))]),_:1},8,["states","store","options"])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(q.default,{customer:e.unref(r),class:"mn-b-thin bg-grey"},null,8,["customer"]),e.createVNode(v.default,{submit:f,callback:p,onError:e.unref(y.setError),class:"w-100 pd-small radius-big bg-main t-black uppercase t-medium"},{default:e.withCtx(()=>[e.createTextVNode(" Add Customer ")]),_:1},8,["onError"])],64))}};exports.default=N;
|