@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/sections/FormAddCustomer.vue.js
ADDED
@@ -0,0 +1,141 @@
|
|
1
|
+
import { ref as n, openBlock as l, createElementBlock as u, Fragment as h, createVNode as m, withCtx as c, unref as t, withDirectives as w, createBlock as p, isRef as d, renderList as x, createCommentVNode as $, createTextVNode as E } from "vue";
|
2
|
+
import { useRoute as U } from "vue-router";
|
3
|
+
import N from "../../../../components/Block/Block.vue.js";
|
4
|
+
import "../../../../components/Field/Field.vue.js";
|
5
|
+
import O from "../../../../components/FieldPhone/click-outside.js";
|
6
|
+
import "../../../../components/Select/Select.vue.js";
|
7
|
+
import V from "../../../../components/Feed/Feed.vue.js";
|
8
|
+
import B from "../../../../components/Button/Button.vue2.js";
|
9
|
+
import F from "../../../globals/components/blocks/BlockSearch.vue.js";
|
10
|
+
import _ from "../../../users/components/blocks/CardUser.vue.js";
|
11
|
+
import S from "./FormCustomerDetails.vue.js";
|
12
|
+
import { actions as z } from "../../../users/store/users.js";
|
13
|
+
import { state as A } from "../../../auth/store/auth.js";
|
14
|
+
import { setError as D } from "../../../globals/store/globals.js";
|
15
|
+
import L from "../../store/customers.store.js";
|
16
|
+
import R from "../../store/models/customer.js";
|
17
|
+
const j = {
|
18
|
+
key: 2,
|
19
|
+
class: "mn-t-thin pos-absolute w-100 pos-t-100 pos-l-0 z-index-3 bg-grey pd-small radius-small"
|
20
|
+
}, se = {
|
21
|
+
__name: "FormAddCustomer",
|
22
|
+
props: {
|
23
|
+
order: Object
|
24
|
+
},
|
25
|
+
emits: ["callbackCustomer"],
|
26
|
+
setup(I, { emit: b }) {
|
27
|
+
let k = O;
|
28
|
+
const g = b, v = U();
|
29
|
+
let e = n(R), i = n(null), s = n(!1);
|
30
|
+
async function y() {
|
31
|
+
let f = {
|
32
|
+
identity: {
|
33
|
+
type: e.value.user ? "User" : "Visitor",
|
34
|
+
target: e.value.user ? e.value.user._id : null
|
35
|
+
},
|
36
|
+
owner: {
|
37
|
+
type: "Organization",
|
38
|
+
target: v.params._id
|
39
|
+
},
|
40
|
+
creator: {
|
41
|
+
type: "User",
|
42
|
+
target: A.user._id
|
43
|
+
},
|
44
|
+
phone: e.value.phone,
|
45
|
+
email: e.value.email,
|
46
|
+
profile: e.value.profile,
|
47
|
+
socials: e.value.socials
|
48
|
+
};
|
49
|
+
try {
|
50
|
+
let o = await L.create(f);
|
51
|
+
e.value = o;
|
52
|
+
} catch (o) {
|
53
|
+
console.log(o);
|
54
|
+
}
|
55
|
+
}
|
56
|
+
function C() {
|
57
|
+
g("callbackCustomer", e.value);
|
58
|
+
}
|
59
|
+
return (f, o) => (l(), u(h, null, [
|
60
|
+
m(N, { class: "pos-relative mn-b-thin" }, {
|
61
|
+
default: c(() => [
|
62
|
+
t(e).user ? (l(), p(_, {
|
63
|
+
key: 1,
|
64
|
+
user: t(e).user,
|
65
|
+
photo: t(e).user.profile.photo,
|
66
|
+
name: t(e).user.profile.name || t(e).user.phone || t(e).user.email,
|
67
|
+
onClick: o[1] || (o[1] = () => {
|
68
|
+
t(e).user = null;
|
69
|
+
}),
|
70
|
+
class: "bg-white pd-thin radius-medium w-100"
|
71
|
+
}, null, 8, ["user", "photo", "name"])) : w((l(), p(F, {
|
72
|
+
key: 0,
|
73
|
+
onSearch: o[0] || (o[0] = (a) => {
|
74
|
+
d(i) ? i.value = a : i = a, d(s) ? s.value = !0 : s = !0;
|
75
|
+
}),
|
76
|
+
placeholder: "Enter name, phone or email",
|
77
|
+
class: "bg-white"
|
78
|
+
}, null, 512)), [
|
79
|
+
[t(k), () => {
|
80
|
+
d(s) ? s.value = !1 : s = !1;
|
81
|
+
}]
|
82
|
+
]),
|
83
|
+
t(i) && t(s) && !t(e).user ? (l(), u("div", j, [
|
84
|
+
m(V, {
|
85
|
+
states: {
|
86
|
+
empty: {
|
87
|
+
title: "No User Found",
|
88
|
+
description: "Currently, there are no such user."
|
89
|
+
}
|
90
|
+
},
|
91
|
+
store: {
|
92
|
+
read: (a) => z.read(a),
|
93
|
+
state: null
|
94
|
+
},
|
95
|
+
options: {
|
96
|
+
search: t(i)
|
97
|
+
},
|
98
|
+
showLoadMore: !1,
|
99
|
+
class: "h-max-20r o-scroll"
|
100
|
+
}, {
|
101
|
+
default: c(({
|
102
|
+
items: a
|
103
|
+
}) => [
|
104
|
+
(l(!0), u(h, null, x(a, (r, M) => (l(), p(_, {
|
105
|
+
key: r._id,
|
106
|
+
user: r,
|
107
|
+
photo: r.profile.photo,
|
108
|
+
name: r.profile.name || r.phone || r.email,
|
109
|
+
onClick: () => {
|
110
|
+
t(e).user = r, t(e).profile = r.profile, t(e).phone = r.phone, t(e).email = r.email, t(e).socials = r.socials;
|
111
|
+
},
|
112
|
+
class: "bg-white pd-thin radius-medium w-100 mn-b-thin"
|
113
|
+
}, null, 8, ["user", "photo", "name", "onClick"]))), 128))
|
114
|
+
]),
|
115
|
+
_: 1
|
116
|
+
}, 8, ["states", "store", "options"])
|
117
|
+
])) : $("", !0)
|
118
|
+
]),
|
119
|
+
_: 1
|
120
|
+
}),
|
121
|
+
m(S, {
|
122
|
+
customer: t(e),
|
123
|
+
class: "mn-b-thin bg-grey"
|
124
|
+
}, null, 8, ["customer"]),
|
125
|
+
m(B, {
|
126
|
+
submit: y,
|
127
|
+
callback: C,
|
128
|
+
onError: t(D),
|
129
|
+
class: "w-100 pd-small radius-big bg-main t-black uppercase t-medium"
|
130
|
+
}, {
|
131
|
+
default: c(() => [
|
132
|
+
E(" Add Customer ")
|
133
|
+
]),
|
134
|
+
_: 1
|
135
|
+
}, 8, ["onError"])
|
136
|
+
], 64));
|
137
|
+
}
|
138
|
+
};
|
139
|
+
export {
|
140
|
+
se as default
|
141
|
+
};
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),o=require("../../../../components/Block/Block.vue.cjs"),a=require("../../../../components/Field/Field.vue.cjs"),n=require("../../../../components/FieldPhone/
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),o=require("../../../../components/Block/Block.vue.cjs"),a=require("../../../../components/Field/Field.vue.cjs"),n=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),s=require("../../../../components/Select/Select.vue2.cjs"),u={class:"flex-nowrap flex"},d={__name:"FormClientDetails",props:{order:Object},setup(r){return(i,e)=>(l.openBlock(),l.createBlock(o.default,{title:"Personal Data",class:"mn-b-thin"},{default:l.withCtx(()=>[l.createVNode(a.default,{field:r.order.customer.name,"onUpdate:field":e[0]||(e[0]=t=>r.order.customer.name=t),label:"Name*",placeholder:"Enter your name",class:"bg-white pd-medium radius-small mn-b-thin"},null,8,["field"]),l.createElementVNode("div",u,[l.createVNode(s.default,{options:[{name:"Phone",value:"phone"},{name:"Telegram",value:"telegram"},{name:"WhatsApp",value:"whatsapp"},{name:"Line",value:"line"}],"onUpdate:select":e[1]||(e[1]=t=>r.order.customer.messenger.type=t.value),placeholder:"Messenger",size:"small",class:"bg-white pd-medium radius-small mn-r-small"}),l.createVNode(n.default,{modelValue:r.order.customer.phone,"onUpdate:modelValue":e[2]||(e[2]=t=>r.order.customer.phone=t),onCountry:e[3]||(e[3]=t=>{r.order.customer.number=t}),inputOptions:{placeholder:"Enter contact phone number",type:"tel"},defaultCountry:"TH",validCharactersOnly:!0,dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},mode:"national",class:"bg-white pd-small radius-small mn-b-thin"},null,8,["modelValue"])])]),_:1}))}};exports.default=d;
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { openBlock as r, createBlock as n, withCtx as a, createVNode as o, createElementVNode as m } from "vue";
|
2
2
|
import s from "../../../../components/Block/Block.vue.js";
|
3
3
|
import d from "../../../../components/Field/Field.vue.js";
|
4
|
-
import i from "../../../../components/FieldPhone/
|
4
|
+
import i from "../../../../components/FieldPhone/FieldPhone.vue.js";
|
5
5
|
import u from "../../../../components/Select/Select.vue2.js";
|
6
6
|
const p = { class: "flex-nowrap flex" }, v = {
|
7
7
|
__name: "FormClientDetails",
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../../components/Block/Block.vue.cjs"),n=require("../../../../components/Field/Field.vue2.cjs"),o=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),u=require("../../../../components/Select/Select.vue2.cjs"),i={class:"gap-thin flex-justify-between flex-nowrap flex"},d={__name:"FormCustomerDetails",props:{customer:Object,title:{type:String,default:"Personal Data"}},setup(a){let s=e.ref("instagram");return(m,l)=>(e.openBlock(),e.createBlock(r.default,{title:a.title,class:"mn-b-thin"},{default:e.withCtx(()=>[e.createVNode(n.default,{field:a.customer.profile.name,"onUpdate:field":l[0]||(l[0]=t=>a.customer.profile.name=t),label:"Name",placeholder:"Enter name",class:"bg-white pd-small radius-small mn-b-thin"},null,8,["field"]),e.createVNode(o.default,{modelValue:a.customer.phone,"onUpdate:modelValue":l[1]||(l[1]=t=>a.customer.phone=t),onCountry:l[2]||(l[2]=t=>{a.customer.number=t}),inputOptions:{placeholder:"Enter phone number",type:"tel"},defaultCountry:"TH",validCharactersOnly:!0,dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},mode:"national",class:"w-100 bg-white pd-small mn-b-thin radius-small"},null,8,["modelValue"]),e.createElementVNode("div",i,[e.createVNode(u.default,{select:e.unref(s),options:[{name:"Instagram",value:"instagram"},{name:"Telegram",value:"telegram"},{name:"WhatsApp",value:"whatsapp"}],"onUpdate:select":l[3]||(l[3]=t=>e.isRef(s)?s.value=t:s=t),placeholder:"Messenger",size:"small",class:"bg-white pd-small radius-small"},null,8,["select"]),e.createVNode(n.default,{field:a.customer.socials[e.unref(s)],"onUpdate:field":l[4]||(l[4]=t=>a.customer.socials[e.unref(s)]=t),label:"@",placeholder:"Enter username",class:"bg-white pd-small radius-small w-100"},null,8,["field"])])]),_:1},8,["title"]))}};exports.default=d;
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
import { ref as r, openBlock as m, createBlock as i, withCtx as u, createVNode as s, createElementVNode as d, unref as n, isRef as f } from "vue";
|
2
|
+
import p from "../../../../components/Block/Block.vue.js";
|
3
|
+
import o from "../../../../components/Field/Field.vue2.js";
|
4
|
+
import c from "../../../../components/FieldPhone/FieldPhone.vue.js";
|
5
|
+
import h from "../../../../components/Select/Select.vue2.js";
|
6
|
+
const g = { class: "gap-thin flex-justify-between flex-nowrap flex" }, V = {
|
7
|
+
__name: "FormCustomerDetails",
|
8
|
+
props: {
|
9
|
+
customer: Object,
|
10
|
+
title: {
|
11
|
+
type: String,
|
12
|
+
default: "Personal Data"
|
13
|
+
}
|
14
|
+
},
|
15
|
+
setup(t) {
|
16
|
+
let a = r("instagram");
|
17
|
+
return (w, e) => (m(), i(p, {
|
18
|
+
title: t.title,
|
19
|
+
class: "mn-b-thin"
|
20
|
+
}, {
|
21
|
+
default: u(() => [
|
22
|
+
s(o, {
|
23
|
+
field: t.customer.profile.name,
|
24
|
+
"onUpdate:field": e[0] || (e[0] = (l) => t.customer.profile.name = l),
|
25
|
+
label: "Name",
|
26
|
+
placeholder: "Enter name",
|
27
|
+
class: "bg-white pd-small radius-small mn-b-thin"
|
28
|
+
}, null, 8, ["field"]),
|
29
|
+
s(c, {
|
30
|
+
modelValue: t.customer.phone,
|
31
|
+
"onUpdate:modelValue": e[1] || (e[1] = (l) => t.customer.phone = l),
|
32
|
+
onCountry: e[2] || (e[2] = (l) => {
|
33
|
+
t.customer.number = l;
|
34
|
+
}),
|
35
|
+
inputOptions: {
|
36
|
+
placeholder: "Enter phone number",
|
37
|
+
type: "tel"
|
38
|
+
},
|
39
|
+
defaultCountry: "TH",
|
40
|
+
validCharactersOnly: !0,
|
41
|
+
dropdownOptions: {
|
42
|
+
showDialCodeInSelection: !0,
|
43
|
+
showFlags: !0,
|
44
|
+
showDialCodeInList: !0
|
45
|
+
},
|
46
|
+
mode: "national",
|
47
|
+
class: "w-100 bg-white pd-small mn-b-thin radius-small"
|
48
|
+
}, null, 8, ["modelValue"]),
|
49
|
+
d("div", g, [
|
50
|
+
s(h, {
|
51
|
+
select: n(a),
|
52
|
+
options: [
|
53
|
+
{ name: "Instagram", value: "instagram" },
|
54
|
+
{ name: "Telegram", value: "telegram" },
|
55
|
+
{ name: "WhatsApp", value: "whatsapp" }
|
56
|
+
],
|
57
|
+
"onUpdate:select": e[3] || (e[3] = (l) => f(a) ? a.value = l : a = l),
|
58
|
+
placeholder: "Messenger",
|
59
|
+
size: "small",
|
60
|
+
class: "bg-white pd-small radius-small"
|
61
|
+
}, null, 8, ["select"]),
|
62
|
+
s(o, {
|
63
|
+
field: t.customer.socials[n(a)],
|
64
|
+
"onUpdate:field": e[4] || (e[4] = (l) => t.customer.socials[n(a)] = l),
|
65
|
+
label: "@",
|
66
|
+
placeholder: "Enter username",
|
67
|
+
class: "bg-white pd-small radius-small w-100"
|
68
|
+
}, null, 8, ["field"])
|
69
|
+
])
|
70
|
+
]),
|
71
|
+
_: 1
|
72
|
+
}, 8, ["title"]));
|
73
|
+
}
|
74
|
+
};
|
75
|
+
export {
|
76
|
+
V as default
|
77
|
+
};
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),t=require("../../../globals/store/globals.cjs"),s=require("../../../../components/Block/Block.vue.cjs"),n=require("../../../../components/Address/Address.vue2.cjs"),u=require("../../../../components/LocationMarker/LocationMarker.vue2.cjs"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),t=require("../../../globals/store/globals.cjs"),s=require("../../../../components/Block/Block.vue.cjs"),n=require("../../../../components/Address/Address.vue2.cjs"),u=require("../../../../components/LocationMarker/LocationMarker.vue2.cjs"),i=require("../../../../components/Radio/Radio.vue.cjs"),m=require("../../../../components/Field/Field.vue2.cjs"),c=l.createElementVNode("h4",{class:"mn-b-thin"},"Spot",-1),y=l.createElementVNode("div",{class:"mn-b-small flex-nowrap flex"},null,-1),b=l.createElementVNode("h4",{class:"mn-b-thin"},"Shipping Method",-1),v={class:"mn-b-small flex-nowrap flex"},f=l.createElementVNode("h4",{class:"mn-b-thin"},"Address",-1),p={__name:"FormDelivery",props:{order:Object},setup(e){const o=e;return l.onMounted(()=>{t.state.position&&(o.order.delivery.address=t.state.position.address),t.state.position&&(o.order.delivery.location=t.state.position.location)}),(a,d)=>(l.openBlock(),l.createBlock(s.default,{title:"Delivery",class:"mn-b-thin",tooltip:"Delivery by mail takes 3-5 days."},{default:l.withCtx(()=>[c,y,b,l.createElementVNode("div",v,[l.createVNode(i.default,{radio:e.order.delivery.type,"onUpdate:radio":d[0]||(d[0]=r=>e.order.delivery.type=r),label:"Pickup",value:"pickup",class:"bg-white pd-medium radius-small w-100 mn-r-small"},null,8,["radio"]),l.createVNode(i.default,{radio:e.order.delivery.type,"onUpdate:radio":d[1]||(d[1]=r=>e.order.delivery.type=r),label:"Courier",value:"courier",class:"bg-white pd-medium radius-small w-100 mn-r-small"},null,8,["radio"]),l.createVNode(i.default,{radio:e.order.delivery.type,"onUpdate:radio":d[2]||(d[2]=r=>e.order.delivery.type=r),label:"Mail",value:"mail",class:"bg-white pd-medium radius-small w-100 mn-r-small"},null,8,["radio"])]),f,l.createVNode(n.default,{label:"Location",apiKey:a.GOOGLE_MAPS_API_KEY,address:e.order.delivery.address,location:e.order.delivery.location,placeholder:"Enter your address",class:"bg-white radius-tl-medium radius-tr-medium t-black br-grey br-solid br-2px pd-medium","onUpdate:location":d[3]||(d[3]=r=>{e.order.delivery.location=r}),"onUpdate:address":d[4]||(d[4]=r=>{e.order.delivery.address=r})},null,8,["apiKey","address","location"]),l.createVNode(u.default,{apiKey:a.GOOGLE_MAPS_API_KEY,address:e.order.delivery.address,location:e.order.delivery.location,class:"mn-b-thin radius-bl-medium radius-br-medium h-15r o-hidden","onUpdate:location":d[5]||(d[5]=r=>{e.order.delivery.location=r}),"onUpdate:address":d[6]||(d[6]=r=>{e.order.delivery.address=r})},null,8,["apiKey","address","location"]),l.createVNode(m.default,{field:e.order.comment,"onUpdate:field":d[7]||(d[7]=r=>e.order.comment=r),placeholder:"Comments regarding the address (apartment unit, floor level, building section)",type:"textarea",class:"bg-white pd-medium radius-small"},null,8,["field"])]),_:1},8,["tooltip"]))}};exports.default=p;
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js
CHANGED
@@ -1,70 +1,81 @@
|
|
1
|
-
import { onMounted as
|
1
|
+
import { onMounted as n, openBlock as m, createBlock as u, withCtx as y, createElementVNode as l, createVNode as i } from "vue";
|
2
2
|
import { state as o } from "../../../globals/store/globals.js";
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
const c = { class: "mn-b-small flex-nowrap flex" },
|
3
|
+
import b from "../../../../components/Block/Block.vue.js";
|
4
|
+
import v from "../../../../components/Address/Address.vue2.js";
|
5
|
+
import p from "../../../../components/LocationMarker/LocationMarker.vue2.js";
|
6
|
+
import t from "../../../../components/Radio/Radio.vue.js";
|
7
|
+
import f from "../../../../components/Field/Field.vue2.js";
|
8
|
+
const c = /* @__PURE__ */ l("h4", { class: "mn-b-thin" }, "Spot", -1), h = /* @__PURE__ */ l("div", { class: "mn-b-small flex-nowrap flex" }, null, -1), w = /* @__PURE__ */ l("h4", { class: "mn-b-thin" }, "Shipping Method", -1), g = { class: "mn-b-small flex-nowrap flex" }, U = /* @__PURE__ */ l("h4", { class: "mn-b-thin" }, "Address", -1), P = {
|
9
9
|
__name: "FormDelivery",
|
10
10
|
props: {
|
11
11
|
order: Object
|
12
12
|
},
|
13
13
|
setup(e) {
|
14
|
-
const
|
15
|
-
return
|
16
|
-
o.position && (
|
17
|
-
}), (
|
14
|
+
const a = e;
|
15
|
+
return n(() => {
|
16
|
+
o.position && (a.order.delivery.address = o.position.address), o.position && (a.order.delivery.location = o.position.location);
|
17
|
+
}), (s, d) => (m(), u(b, {
|
18
18
|
title: "Delivery",
|
19
19
|
class: "mn-b-thin",
|
20
20
|
tooltip: "Delivery by mail takes 3-5 days."
|
21
21
|
}, {
|
22
|
-
default:
|
23
|
-
|
24
|
-
|
22
|
+
default: y(() => [
|
23
|
+
c,
|
24
|
+
h,
|
25
|
+
w,
|
26
|
+
l("div", g, [
|
27
|
+
i(t, {
|
25
28
|
radio: e.order.delivery.type,
|
26
|
-
"onUpdate:radio":
|
29
|
+
"onUpdate:radio": d[0] || (d[0] = (r) => e.order.delivery.type = r),
|
30
|
+
label: "Pickup",
|
31
|
+
value: "pickup",
|
32
|
+
class: "bg-white pd-medium radius-small w-100 mn-r-small"
|
33
|
+
}, null, 8, ["radio"]),
|
34
|
+
i(t, {
|
35
|
+
radio: e.order.delivery.type,
|
36
|
+
"onUpdate:radio": d[1] || (d[1] = (r) => e.order.delivery.type = r),
|
27
37
|
label: "Courier",
|
28
38
|
value: "courier",
|
29
39
|
class: "bg-white pd-medium radius-small w-100 mn-r-small"
|
30
40
|
}, null, 8, ["radio"]),
|
31
|
-
i(
|
41
|
+
i(t, {
|
32
42
|
radio: e.order.delivery.type,
|
33
|
-
"onUpdate:radio":
|
34
|
-
label: "
|
35
|
-
value: "
|
43
|
+
"onUpdate:radio": d[2] || (d[2] = (r) => e.order.delivery.type = r),
|
44
|
+
label: "Mail",
|
45
|
+
value: "mail",
|
36
46
|
class: "bg-white pd-medium radius-small w-100 mn-r-small"
|
37
47
|
}, null, 8, ["radio"])
|
38
48
|
]),
|
39
|
-
|
40
|
-
|
41
|
-
|
49
|
+
U,
|
50
|
+
i(v, {
|
51
|
+
label: "Location",
|
52
|
+
apiKey: s.GOOGLE_MAPS_API_KEY,
|
42
53
|
address: e.order.delivery.address,
|
43
54
|
location: e.order.delivery.location,
|
44
55
|
placeholder: "Enter your address",
|
45
56
|
class: "bg-white radius-tl-medium radius-tr-medium t-black br-grey br-solid br-2px pd-medium",
|
46
|
-
"onUpdate:location":
|
47
|
-
e.order.delivery.location =
|
57
|
+
"onUpdate:location": d[3] || (d[3] = (r) => {
|
58
|
+
e.order.delivery.location = r;
|
48
59
|
}),
|
49
|
-
"onUpdate:address":
|
50
|
-
e.order.delivery.address =
|
60
|
+
"onUpdate:address": d[4] || (d[4] = (r) => {
|
61
|
+
e.order.delivery.address = r;
|
51
62
|
})
|
52
63
|
}, null, 8, ["apiKey", "address", "location"]),
|
53
|
-
i(
|
54
|
-
apiKey:
|
64
|
+
i(p, {
|
65
|
+
apiKey: s.GOOGLE_MAPS_API_KEY,
|
55
66
|
address: e.order.delivery.address,
|
56
67
|
location: e.order.delivery.location,
|
57
68
|
class: "mn-b-thin radius-bl-medium radius-br-medium h-15r o-hidden",
|
58
|
-
"onUpdate:location":
|
59
|
-
e.order.delivery.location =
|
69
|
+
"onUpdate:location": d[5] || (d[5] = (r) => {
|
70
|
+
e.order.delivery.location = r;
|
60
71
|
}),
|
61
|
-
"onUpdate:address":
|
62
|
-
e.order.delivery.address =
|
72
|
+
"onUpdate:address": d[6] || (d[6] = (r) => {
|
73
|
+
e.order.delivery.address = r;
|
63
74
|
})
|
64
75
|
}, null, 8, ["apiKey", "address", "location"]),
|
65
|
-
i(
|
76
|
+
i(f, {
|
66
77
|
field: e.order.comment,
|
67
|
-
"onUpdate:field":
|
78
|
+
"onUpdate:field": d[7] || (d[7] = (r) => e.order.comment = r),
|
68
79
|
placeholder: "Comments regarding the address (apartment unit, floor level, building section)",
|
69
80
|
type: "textarea",
|
70
81
|
class: "bg-white pd-medium radius-small"
|
@@ -75,5 +86,5 @@ const c = { class: "mn-b-small flex-nowrap flex" }, k = {
|
|
75
86
|
}
|
76
87
|
};
|
77
88
|
export {
|
78
|
-
|
89
|
+
P as default
|
79
90
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../globals/services/globals.store.cjs"),t=new e.default("/api/customers");exports.default=t;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={_id:null,identity:{type:"Visitor",target:null},owner:{type:"Organization",target:null},creator:{type:"User",target:null},user:null,profile:{name:null},messenger:{type:null},socials:{instagram:null,telegram:null,whatsapp:null}};exports.default=e;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
const t = {
|
2
|
+
_id: null,
|
3
|
+
identity: {
|
4
|
+
type: "Visitor",
|
5
|
+
target: null
|
6
|
+
},
|
7
|
+
owner: {
|
8
|
+
type: "Organization",
|
9
|
+
target: null
|
10
|
+
},
|
11
|
+
creator: {
|
12
|
+
type: "User",
|
13
|
+
target: null
|
14
|
+
},
|
15
|
+
user: null,
|
16
|
+
profile: {
|
17
|
+
name: null
|
18
|
+
},
|
19
|
+
messenger: {
|
20
|
+
type: null
|
21
|
+
},
|
22
|
+
socials: {
|
23
|
+
instagram: null,
|
24
|
+
telegram: null,
|
25
|
+
whatsapp: null
|
26
|
+
}
|
27
|
+
};
|
28
|
+
export {
|
29
|
+
t as default
|
30
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),u=require("../../../../node_modules/axios/lib/axios.cjs"),s=require("../../globals/store/globals.cjs"),l=require("./models/customer.cjs"),n=u.default.create({baseURL:process.env.API_URL,withCredentials:!0}),a=o.reactive({all:[],current:{_id:null,positions:[],status:null,comment:"",owner:{type:"Organization",target:null},creator:{type:"Customer",target:null},customer:{...l.default},payment:{type:"Cash",status:"Unpaid"},delivery:{type:null,address:null,status:""}}}),p={async create(e){try{const t=await n.post("/api/orders/create",e);return a.all.push(t.data),t.data}catch(t){s.setError(t)}},async read(e={}){try{e._id&&(e.params={_id:e._id});const t=await n.get("/api/orders/read",{params:e.params});return e._id?c(t.data[0],"current"):c(t.data,"all"),t.data}catch(t){throw s.setError(t),t}},async update(e){try{const t=await n.post(`/api/orders/${e._id}`,e),r=a.all.findIndex(i=>i._id===e._id);return r!==-1&&(a.all[r]=t.data),t.data}catch(t){s.setError(t)}},async delete(e){try{await n.delete(`/api/orders/${e}`),a.all=a.all.filter(t=>t._id!==e)}catch(t){s.setError(t)}},async changePaymentStatus(e,t){try{const r=await n.post(`/api/orders/payment/${e}`,{status:t}),i=a.all.findIndex(d=>d._id===e);i!==-1&&(a.all[i]=r.data)}catch(r){s.setError(r)}}},y={resetCustomer(e){Object.assign(e,l.default)}},m={getTotal(e){return e.reduce((t,r)=>t+r.price*r.quantity,0)}};function c(e,t){a[t]=e}o.watch(a,(e,t)=>{});exports.actions=p;exports.getters=m;exports.mutations=y;exports.state=a;
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import { reactive as
|
1
|
+
import { reactive as d, watch as p } from "vue";
|
2
2
|
import u from "../../../../node_modules/axios/lib/axios.js";
|
3
3
|
import { setError as s } from "../../globals/store/globals.js";
|
4
|
-
|
4
|
+
import o from "./models/customer.js";
|
5
|
+
const n = u.create({ baseURL: process.env.API_URL, withCredentials: !0 }), r = d({
|
5
6
|
all: [],
|
6
7
|
current: {
|
7
8
|
_id: null,
|
@@ -9,32 +10,25 @@ const n = u.create({ baseURL: process.env.API_URL, withCredentials: !0 }), r = o
|
|
9
10
|
status: null,
|
10
11
|
comment: "",
|
11
12
|
owner: {
|
12
|
-
type: "
|
13
|
+
type: "Organization",
|
13
14
|
target: null
|
14
15
|
},
|
15
16
|
creator: {
|
16
|
-
type: "
|
17
|
+
type: "Customer",
|
17
18
|
target: null
|
18
19
|
},
|
19
|
-
customer: {
|
20
|
-
name: null,
|
21
|
-
phone: null,
|
22
|
-
messenger: {
|
23
|
-
type: null,
|
24
|
-
value: null
|
25
|
-
}
|
26
|
-
},
|
20
|
+
customer: { ...o },
|
27
21
|
payment: {
|
28
|
-
type: "",
|
29
|
-
status: ""
|
22
|
+
type: "Cash",
|
23
|
+
status: "Unpaid"
|
30
24
|
},
|
31
25
|
delivery: {
|
32
26
|
type: null,
|
33
|
-
address:
|
27
|
+
address: null,
|
34
28
|
status: ""
|
35
29
|
}
|
36
30
|
}
|
37
|
-
}),
|
31
|
+
}), _ = {
|
38
32
|
async create(a) {
|
39
33
|
try {
|
40
34
|
const t = await n.post("/api/orders/create", a);
|
@@ -47,14 +41,14 @@ const n = u.create({ baseURL: process.env.API_URL, withCredentials: !0 }), r = o
|
|
47
41
|
try {
|
48
42
|
a._id && (a.params = { _id: a._id });
|
49
43
|
const t = await n.get("/api/orders/read", { params: a.params });
|
50
|
-
return a._id ?
|
44
|
+
return a._id ? c(t.data[0], "current") : c(t.data, "all"), t.data;
|
51
45
|
} catch (t) {
|
52
46
|
throw s(t), t;
|
53
47
|
}
|
54
48
|
},
|
55
49
|
async update(a) {
|
56
50
|
try {
|
57
|
-
const t = await n.post(`/api/orders/${a._id}`, a), e = r.all.findIndex((
|
51
|
+
const t = await n.post(`/api/orders/${a._id}`, a), e = r.all.findIndex((i) => i._id === a._id);
|
58
52
|
return e !== -1 && (r.all[e] = t.data), t.data;
|
59
53
|
} catch (t) {
|
60
54
|
s(t);
|
@@ -69,24 +63,29 @@ const n = u.create({ baseURL: process.env.API_URL, withCredentials: !0 }), r = o
|
|
69
63
|
},
|
70
64
|
async changePaymentStatus(a, t) {
|
71
65
|
try {
|
72
|
-
const e = await n.post(`/api/orders/payment/${a}`, { status: t }),
|
73
|
-
|
66
|
+
const e = await n.post(`/api/orders/payment/${a}`, { status: t }), i = r.all.findIndex((l) => l._id === a);
|
67
|
+
i !== -1 && (r.all[i] = e.data);
|
74
68
|
} catch (e) {
|
75
69
|
s(e);
|
76
70
|
}
|
77
71
|
}
|
78
|
-
},
|
72
|
+
}, w = {
|
73
|
+
resetCustomer(a) {
|
74
|
+
Object.assign(a, o);
|
75
|
+
}
|
76
|
+
}, g = {
|
79
77
|
getTotal(a) {
|
80
78
|
return a.reduce((t, e) => t + e.price * e.quantity, 0);
|
81
79
|
}
|
82
80
|
};
|
83
|
-
function
|
81
|
+
function c(a, t) {
|
84
82
|
r[t] = a;
|
85
83
|
}
|
86
|
-
|
84
|
+
p(r, (a, t) => {
|
87
85
|
});
|
88
86
|
export {
|
89
|
-
|
90
|
-
|
87
|
+
_ as actions,
|
88
|
+
g as getters,
|
89
|
+
w as mutations,
|
91
90
|
r as state
|
92
91
|
};
|
package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../../../icons/navigation/IconEdit.vue.cjs");require("../../../../components/Spoiler/Spoiler.vue.cjs");require("./DepartmentSub.vue2.cjs");const
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../../../icons/navigation/IconEdit.vue.cjs");require("../../../../components/Spoiler/Spoiler.vue.cjs");require("./DepartmentSub.vue2.cjs");const d=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),u=require("../../../users/components/blocks/CardUser.vue.cjs");require("./CardDepartment.vue2.cjs");const c={class:"radius-semi o-hidden cols-2-1_3"},m={class:"pd-medium w-100"},p=["innerHTML"],k={key:0},_={__name:"CardDepartment",props:{department:Object,organization:Object},setup(t){const n=t;return(o,a)=>{const s=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",c,[e.createElementVNode("div",m,[e.createVNode(s,{to:{name:"Department Edit",params:{_id:n.organization,department:t.department._id}},class:"cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"},{default:e.withCtx(()=>[e.createVNode(l.default,{class:"i-regular",classes:"fill-white"})]),_:1},8,["to"]),e.createElementVNode("h3",{onClick:a[0]||(a[0]=r=>o.$router.push(`/organizations/${n.organization}/departments/${t.department._id}`)),class:"mn-b-small w-100",innerHTML:t.department.profile.name},null,8,p),e.createElementVNode("ul",null,[t.department.members.length<1?(e.openBlock(),e.createElementBlock("li",k,"No members in department")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.department.members,(r,i)=>(e.openBlock(),e.createBlock(u.default,{class:"br-b br-solid br-grey",key:i,user:r.user,position:r.position,onClick:g=>o.$router.push(`/app/profile/${r.user._id}`)},null,8,["user","position","onClick"]))),128))])])])}}},b=d.default(_,[["__scopeId","data-v-5cb387b9"]]);exports.default=b;
|
package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
import { resolveComponent as p, openBlock as r, createElementBlock as
|
2
|
-
import
|
1
|
+
import { resolveComponent as p, openBlock as r, createElementBlock as n, createElementVNode as o, createVNode as m, withCtx as c, createCommentVNode as u, Fragment as _, renderList as f, createBlock as b } from "vue";
|
2
|
+
import g from "../../../icons/navigation/IconEdit.vue.js";
|
3
3
|
import "../../../../components/Spoiler/Spoiler.vue.js";
|
4
4
|
import "./DepartmentSub.vue2.js";
|
5
|
-
import
|
6
|
-
import k from "
|
5
|
+
import h from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
6
|
+
import k from "../../../users/components/blocks/CardUser.vue.js";
|
7
7
|
import "./CardDepartment.vue2.js";
|
8
|
-
const
|
8
|
+
const $ = { class: "radius-semi o-hidden cols-2-1_3" }, C = { class: "pd-medium w-100" }, v = ["innerHTML"], w = { key: 0 }, z = {
|
9
9
|
__name: "CardDepartment",
|
10
10
|
props: {
|
11
11
|
department: Object,
|
@@ -14,10 +14,10 @@ const C = { class: "radius-big o-hidden cols-2-1_3" }, $ = { class: "pd-medium w
|
|
14
14
|
setup(e) {
|
15
15
|
const s = e;
|
16
16
|
return (i, a) => {
|
17
|
-
const
|
18
|
-
return r(),
|
19
|
-
|
20
|
-
l
|
17
|
+
const l = p("router-link");
|
18
|
+
return r(), n("div", $, [
|
19
|
+
o("div", C, [
|
20
|
+
m(l, {
|
21
21
|
to: {
|
22
22
|
name: "Department Edit",
|
23
23
|
params: {
|
@@ -28,33 +28,33 @@ const C = { class: "radius-big o-hidden cols-2-1_3" }, $ = { class: "pd-medium w
|
|
28
28
|
class: "cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"
|
29
29
|
}, {
|
30
30
|
default: c(() => [
|
31
|
-
|
31
|
+
m(g, {
|
32
32
|
class: "i-regular",
|
33
33
|
classes: "fill-white"
|
34
34
|
})
|
35
35
|
]),
|
36
36
|
_: 1
|
37
37
|
}, 8, ["to"]),
|
38
|
-
|
38
|
+
o("h3", {
|
39
39
|
onClick: a[0] || (a[0] = (t) => i.$router.push(`/organizations/${s.organization}/departments/${e.department._id}`)),
|
40
40
|
class: "mn-b-small w-100",
|
41
41
|
innerHTML: e.department.profile.name
|
42
42
|
}, null, 8, v),
|
43
|
-
|
44
|
-
e.department.members.length < 1 ? (r(),
|
45
|
-
(r(!0),
|
43
|
+
o("ul", null, [
|
44
|
+
e.department.members.length < 1 ? (r(), n("li", w, "No members in department")) : u("", !0),
|
45
|
+
(r(!0), n(_, null, f(e.department.members, (t, d) => (r(), b(k, {
|
46
46
|
class: "br-b br-solid br-grey",
|
47
47
|
key: d,
|
48
48
|
user: t.user,
|
49
49
|
position: t.position,
|
50
|
-
onClick: (
|
50
|
+
onClick: (N) => i.$router.push(`/app/profile/${t.user._id}`)
|
51
51
|
}, null, 8, ["user", "position", "onClick"]))), 128))
|
52
52
|
])
|
53
53
|
])
|
54
54
|
]);
|
55
55
|
};
|
56
56
|
}
|
57
|
-
}, j = /* @__PURE__ */
|
57
|
+
}, j = /* @__PURE__ */ h(z, [["__scopeId", "data-v-5cb387b9"]]);
|
58
58
|
export {
|
59
59
|
j as default
|
60
60
|
};
|