@ozdao/prometheus-framework 0.2.81 → 0.2.83
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-B-KD_ozQ.js +9 -0
- package/dist/credentials.schema-C9dmNy7o.mjs +10 -0
- 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/orders.server.js +592 -0
- package/dist/orders.server.mjs +593 -0
- package/dist/organizations.server.js +295 -131
- package/dist/organizations.server.mjs +295 -131
- package/dist/products.server.js +2 -2
- package/dist/products.server.mjs +2 -2
- package/dist/profile.schema-24ZpZQJe.mjs +25 -0
- package/dist/profile.schema-CkOhhf37.js +24 -0
- 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/chats/components/blocks/ChatMessage.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/chats/components/blocks/ChatMessage.vue.js +28 -0
- package/dist/prometheus-framework/src/modules/chats/components/pages/ChatPage.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/chats/components/pages/ChatPage.vue.js +26 -0
- package/dist/prometheus-framework/src/modules/chats/components/pages/ChatPage.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/chats/components/pages/ChatPage.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/chats/components/sections/ChatWindow.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/chats/components/sections/ChatWindow.vue.js +77 -0
- package/dist/prometheus-framework/src/modules/chats/components/sections/ChatWindow.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/chats/components/sections/ChatWindow.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/chats/store/chat.store.cjs +1 -0
- package/dist/prometheus-framework/src/modules/chats/store/chat.store.js +40 -0
- 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 +3 -3
- 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/constructor/components/elements/Textarea.vue.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -66
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.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 +3 -3
- 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/icons/navigation/IconCheckmark.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconCheckmark.vue.js +29 -0
- package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderChat.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderChat.vue.js +30 -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/blocks/CardOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +121 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.cjs +3 -0
- package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.js +92 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +202 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +127 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue2.js +1 -0
- 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 +41 -41
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js +89 -0
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/AskToLogin.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/AskToLogin.vue.js +24 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/EmptyState.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/EmptyState.vue.js +13 -0
- 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/components/sections/Succes.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/Succes.vue.js +25 -0
- package/dist/prometheus-framework/src/modules/orders/orders.client.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/orders.client.js +56 -0
- package/dist/prometheus-framework/src/modules/orders/router/orders.router.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/router/orders.router.js +58 -0
- 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/orders/store/shopcart.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/shopcart.js +5 -1
- 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 +58 -47
- package/dist/users.server.mjs +58 -47
- 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/chats/components/blocks/ChatMessage.vue +1 -1
- 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/application.model.js +25 -25
- package/src/modules/orders/models/customer.model.js +54 -18
- package/src/modules/orders/models/order.model.js +1 -1
- package/src/modules/orders/models/testimonial.model.js +22 -23
- package/src/modules/orders/orders.client.js +51 -51
- package/src/modules/orders/orders.server.js +36 -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/products.server.js
CHANGED
@@ -6,8 +6,8 @@ require("uuid");
|
|
6
6
|
const require$$0 = require("mongoose");
|
7
7
|
require("path");
|
8
8
|
const require$$3 = require("openai");
|
9
|
-
const index = require("./index-
|
10
|
-
const queryProcessor = require("./queryProcessor-
|
9
|
+
const index = require("./index-BCCiEK_u.js");
|
10
|
+
const queryProcessor = require("./queryProcessor-DRMo_GWK.js");
|
11
11
|
var product_model = (mongoose) => {
|
12
12
|
const ProductSchema = new mongoose.Schema({
|
13
13
|
status: { type: String },
|
package/dist/products.server.mjs
CHANGED
@@ -4,8 +4,8 @@ import "uuid";
|
|
4
4
|
import require$$0 from "mongoose";
|
5
5
|
import "path";
|
6
6
|
import require$$3 from "openai";
|
7
|
-
import { s as server } from "./index-
|
8
|
-
import { q as queryProcessor } from "./queryProcessor-
|
7
|
+
import { s as server } from "./index-B6a1mPgp.mjs";
|
8
|
+
import { q as queryProcessor } from "./queryProcessor-BJdKh0Ow.mjs";
|
9
9
|
var product_model = (mongoose) => {
|
10
10
|
const ProductSchema = new mongoose.Schema({
|
11
11
|
status: { type: String },
|
@@ -0,0 +1,25 @@
|
|
1
|
+
var profile_schema = function applyProfileSchema(schema, db) {
|
2
|
+
schema.add({
|
3
|
+
profile: {
|
4
|
+
photo: {
|
5
|
+
type: String,
|
6
|
+
default: null
|
7
|
+
},
|
8
|
+
name: {
|
9
|
+
type: String,
|
10
|
+
default: null
|
11
|
+
},
|
12
|
+
description: {
|
13
|
+
type: String,
|
14
|
+
default: null
|
15
|
+
},
|
16
|
+
birthday: {
|
17
|
+
type: Date,
|
18
|
+
default: null
|
19
|
+
}
|
20
|
+
}
|
21
|
+
});
|
22
|
+
};
|
23
|
+
export {
|
24
|
+
profile_schema as p
|
25
|
+
};
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
var profile_schema = function applyProfileSchema(schema, db) {
|
3
|
+
schema.add({
|
4
|
+
profile: {
|
5
|
+
photo: {
|
6
|
+
type: String,
|
7
|
+
default: null
|
8
|
+
},
|
9
|
+
name: {
|
10
|
+
type: String,
|
11
|
+
default: null
|
12
|
+
},
|
13
|
+
description: {
|
14
|
+
type: String,
|
15
|
+
default: null
|
16
|
+
},
|
17
|
+
birthday: {
|
18
|
+
type: Date,
|
19
|
+
default: null
|
20
|
+
}
|
21
|
+
}
|
22
|
+
});
|
23
|
+
};
|
24
|
+
exports.profile_schema = profile_schema;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Address.vue.cjs");const v=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("../../../../node_modules/@googlemaps/js-api-loader/dist/index.cjs");require("./Address.vue.cjs");const v=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),k={key:0,class:"t-transp mn-r-small"},b=["placeholder","value"],w={key:0,class:"mn-t-thin invalid-feedback"},E={__name:"Address",props:{apiKey:{type:String,required:!0},label:null,placeholder:"Enter something here",field:null,location:{type:Object,default:{lat:48.6900735,lng:41.1620239}},address:{type:String,default:""}},emits:["update:address","update:location","update:country","update:state","update:city"],setup(n,{emit:m}){const r=n,l=m,s=e.ref(null);let d;const i=()=>{new h.Loader({apiKey:r.apiKey,version:"weekly",libraries:["places"]}).load().then(()=>{d=new google.maps.places.Autocomplete(s.value),d.addListener("place_changed",f)}).catch(o=>{console.error(o)})},y=()=>{d||i()},f=()=>{const t=d.getPlace();if(!t.geometry||!t.address_components)return;let o="",u="",p="";for(let c=0;c<t.address_components.length;c++){console.log(t.address_components);let a=t.address_components[c];a.types.includes("country")&&(o=a.long_name),a.types.includes("administrative_area_level_1")&&(u=a.long_name),a.types.includes("locality")&&(p=a.long_name)}const g=t.formatted_address,_={lat:t.geometry.location.lat(),lng:t.geometry.location.lng()};l("update:address",g),l("update:location",_),l("update:country",o),l("update:state",u),l("update:city",p)};return e.watchEffect(()=>{r.address!==s.value&&(s.value=r.address)}),e.onMounted(()=>{i()}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([t.$attrs.class,"flex-nowrap flex"])},[n.label?(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("span",null,e.toDisplayString(n.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("input",{ref_key:"addressInput",ref:s,class:"w-100",placeholder:n.placeholder,value:n.address,onInput:y},null,40,b),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[t.validation?(e.openBlock(),e.createElementBlock("div",w," * "+e.toDisplayString(t.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],2))}},B=v.default(E,[["__scopeId","data-v-5cf1cb51"]]);exports.default=B;
|
@@ -1,10 +1,11 @@
|
|
1
|
-
import { ref as
|
1
|
+
import { ref as k, watchEffect as A, onMounted as I, openBlock as c, createElementBlock as i, normalizeClass as C, createElementVNode as f, toDisplayString as y, createCommentVNode as g, createVNode as E, Transition as x, withCtx as K } from "vue";
|
2
|
+
import { Loader as L } from "../../../../node_modules/@googlemaps/js-api-loader/dist/index.js";
|
2
3
|
import "./Address.vue.js";
|
3
|
-
import
|
4
|
-
const
|
4
|
+
import N from "../../../../_virtual/_plugin-vue_export-helper.js";
|
5
|
+
const S = {
|
5
6
|
key: 0,
|
6
7
|
class: "t-transp mn-r-small"
|
7
|
-
},
|
8
|
+
}, V = ["placeholder", "value"], B = {
|
8
9
|
key: 0,
|
9
10
|
class: "mn-t-thin invalid-feedback"
|
10
11
|
}, P = {
|
@@ -28,55 +29,63 @@ const V = {
|
|
28
29
|
},
|
29
30
|
emits: ["update:address", "update:location", "update:country", "update:state", "update:city"],
|
30
31
|
setup(a, { emit: _ }) {
|
31
|
-
const
|
32
|
+
const d = a, o = _, l = k(null);
|
32
33
|
let s;
|
33
|
-
const
|
34
|
-
|
34
|
+
const p = () => {
|
35
|
+
new L({
|
36
|
+
apiKey: d.apiKey,
|
37
|
+
version: "weekly",
|
38
|
+
libraries: ["places"]
|
39
|
+
}).load().then(() => {
|
40
|
+
s = new google.maps.places.Autocomplete(l.value), s.addListener("place_changed", v);
|
41
|
+
}).catch((n) => {
|
42
|
+
console.error(n);
|
43
|
+
});
|
35
44
|
}, h = () => {
|
36
|
-
s ||
|
45
|
+
s || p();
|
37
46
|
}, v = () => {
|
38
47
|
const e = s.getPlace();
|
39
48
|
if (!e.geometry || !e.address_components)
|
40
49
|
return;
|
41
|
-
let
|
42
|
-
for (let
|
50
|
+
let n = "", u = "", m = "";
|
51
|
+
for (let r = 0; r < e.address_components.length; r++) {
|
43
52
|
console.log(e.address_components);
|
44
|
-
let t = e.address_components[
|
45
|
-
t.types.includes("country") && (
|
53
|
+
let t = e.address_components[r];
|
54
|
+
t.types.includes("country") && (n = t.long_name), t.types.includes("administrative_area_level_1") && (u = t.long_name), t.types.includes("locality") && (m = t.long_name);
|
46
55
|
}
|
47
|
-
const w = e.formatted_address,
|
48
|
-
|
56
|
+
const w = e.formatted_address, b = { lat: e.geometry.location.lat(), lng: e.geometry.location.lng() };
|
57
|
+
o("update:address", w), o("update:location", b), o("update:country", n), o("update:state", u), o("update:city", m);
|
49
58
|
};
|
50
59
|
return A(() => {
|
51
|
-
|
60
|
+
d.address !== l.value && (l.value = d.address);
|
52
61
|
}), I(() => {
|
53
|
-
|
54
|
-
}), (e,
|
62
|
+
p();
|
63
|
+
}), (e, n) => (c(), i("div", {
|
55
64
|
class: C([e.$attrs.class, "flex-nowrap flex"])
|
56
65
|
}, [
|
57
|
-
a.label ? (c(),
|
66
|
+
a.label ? (c(), i("div", S, [
|
58
67
|
f("span", null, y(a.label), 1)
|
59
68
|
])) : g("", !0),
|
60
69
|
f("input", {
|
61
70
|
ref_key: "addressInput",
|
62
|
-
ref:
|
71
|
+
ref: l,
|
63
72
|
class: "w-100",
|
64
73
|
placeholder: a.placeholder,
|
65
74
|
value: a.address,
|
66
75
|
onInput: h
|
67
|
-
}, null, 40,
|
76
|
+
}, null, 40, V),
|
68
77
|
E(x, {
|
69
78
|
mode: "out-in",
|
70
79
|
name: "fade"
|
71
80
|
}, {
|
72
|
-
default:
|
73
|
-
e.validation ? (c(),
|
81
|
+
default: K(() => [
|
82
|
+
e.validation ? (c(), i("div", B, " * " + y(e.validation.message), 1)) : g("", !0)
|
74
83
|
]),
|
75
84
|
_: 1
|
76
85
|
})
|
77
86
|
], 2));
|
78
87
|
}
|
79
|
-
},
|
88
|
+
}, M = /* @__PURE__ */ N(P, [["__scopeId", "data-v-5cf1cb51"]]);
|
80
89
|
export {
|
81
|
-
|
90
|
+
M as default
|
82
91
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../Tooltip/Tooltip.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../Tooltip/Tooltip.vue.cjs"),a={class:"bg-grey pd-medium radius-medium"},c={key:0,class:"mn-b-small flex-v-center flex-nowrap flex"},s={key:0,class:"mn-r-thin t-medium p-big"},u=["onClick"],d=e.createElementVNode("p",{class:"bg-main radius-small t-center i-medium"},"i",-1),m={key:1,class:"w-100"},k={__name:"Block",props:{title:{type:String,default:null},tooltip:{type:String,default:null},actions:{type:Array,default:null},placeholder:{type:String,default:"Nothing here"},options:{type:Object,default:{theme:"white"}}},setup(t){e.useSlots();const r=(n,o={})=>n?n(o).some(l=>Array.isArray(l.children)?!!l.children.length:l.type!==e.Comment):!1;return(n,o)=>(e.openBlock(),e.createElementBlock("div",a,[t.title||t.actions?(e.openBlock(),e.createElementBlock("div",c,[t.title?(e.openBlock(),e.createElementBlock("p",s,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.actions,l=>(e.openBlock(),e.createElementBlock("button",{onClick:l.function,class:e.normalizeClass(["pd-thin button-delete button",l.class||"bg-main radius-small t-center i-medium"])},e.toDisplayString(l.label),11,u))),256)),t.tooltip?(e.openBlock(),e.createBlock(i.default,{key:1,text:t.tooltip},{default:e.withCtx(()=>[d]),_:1},8,["text"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),r(n.$slots.default)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",m,e.toDisplayString(t.placeholder),1)),e.renderSlot(n.$slots,"default")]))}};exports.default=k;
|
@@ -1,12 +1,15 @@
|
|
1
|
-
import { useSlots as
|
2
|
-
import
|
3
|
-
const
|
1
|
+
import { useSlots as u, openBlock as l, createElementBlock as n, toDisplayString as o, createCommentVNode as r, Fragment as c, renderList as d, normalizeClass as m, createBlock as h, withCtx as f, renderSlot as y, createElementVNode as p, Comment as g } from "vue";
|
2
|
+
import b from "../Tooltip/Tooltip.vue.js";
|
3
|
+
const k = { class: "bg-grey pd-medium radius-medium" }, C = {
|
4
4
|
key: 0,
|
5
|
-
class: "mn-
|
6
|
-
},
|
5
|
+
class: "mn-b-small flex-v-center flex-nowrap flex"
|
6
|
+
}, S = {
|
7
7
|
key: 0,
|
8
|
+
class: "mn-r-thin t-medium p-big"
|
9
|
+
}, x = ["onClick"], w = /* @__PURE__ */ p("p", { class: "bg-main radius-small t-center i-medium" }, "i", -1), B = {
|
10
|
+
key: 1,
|
8
11
|
class: "w-100"
|
9
|
-
},
|
12
|
+
}, _ = {
|
10
13
|
__name: "Block",
|
11
14
|
props: {
|
12
15
|
title: {
|
@@ -33,30 +36,30 @@ const b = { class: "bg-grey pd-medium radius-medium" }, k = { class: "mn-b-small
|
|
33
36
|
}
|
34
37
|
},
|
35
38
|
setup(t) {
|
36
|
-
|
37
|
-
const
|
38
|
-
return (
|
39
|
-
|
40
|
-
t.title ? (l(),
|
41
|
-
(l(!0),
|
39
|
+
u();
|
40
|
+
const a = (i, s = {}) => i ? i(s).some((e) => Array.isArray(e.children) ? !!e.children.length : e.type !== g) : !1;
|
41
|
+
return (i, s) => (l(), n("div", k, [
|
42
|
+
t.title || t.actions ? (l(), n("div", C, [
|
43
|
+
t.title ? (l(), n("p", S, o(t.title), 1)) : r("", !0),
|
44
|
+
(l(!0), n(c, null, d(t.actions, (e) => (l(), n("button", {
|
42
45
|
onClick: e.function,
|
43
|
-
class: "
|
44
|
-
}, o(e.label),
|
45
|
-
t.tooltip ? (l(), h(
|
46
|
+
class: m(["pd-thin button-delete button", e.class || "bg-main radius-small t-center i-medium"])
|
47
|
+
}, o(e.label), 11, x))), 256)),
|
48
|
+
t.tooltip ? (l(), h(b, {
|
46
49
|
key: 1,
|
47
50
|
text: t.tooltip
|
48
51
|
}, {
|
49
52
|
default: f(() => [
|
50
|
-
|
53
|
+
w
|
51
54
|
]),
|
52
55
|
_: 1
|
53
56
|
}, 8, ["text"])) : r("", !0)
|
54
|
-
]),
|
55
|
-
|
56
|
-
|
57
|
+
])) : r("", !0),
|
58
|
+
a(i.$slots.default) ? r("", !0) : (l(), n("span", B, o(t.placeholder), 1)),
|
59
|
+
y(i.$slots, "default")
|
57
60
|
]));
|
58
61
|
}
|
59
62
|
};
|
60
63
|
export {
|
61
|
-
|
64
|
+
_ as default
|
62
65
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
@@ -1,225 +1 @@
|
|
1
|
-
|
2
|
-
import "./Button.vue2.js";
|
3
|
-
const k = ["disabled"], x = {
|
4
|
-
key: 1,
|
5
|
-
class: "loading"
|
6
|
-
}, N = /* @__PURE__ */ e("svg", {
|
7
|
-
class: "i-regular",
|
8
|
-
width: "135",
|
9
|
-
height: "140",
|
10
|
-
viewBox: "0 0 135 140",
|
11
|
-
xmlns: "http://www.w3.org/2000/svg",
|
12
|
-
fill: "#fff"
|
13
|
-
}, [
|
14
|
-
/* @__PURE__ */ e("rect", {
|
15
|
-
y: "10",
|
16
|
-
width: "15",
|
17
|
-
height: "120",
|
18
|
-
rx: "6"
|
19
|
-
}, [
|
20
|
-
/* @__PURE__ */ e("animate", {
|
21
|
-
attributeName: "height",
|
22
|
-
begin: "0.5s",
|
23
|
-
dur: "1s",
|
24
|
-
values: "120;110;100;90;80;70;60;50;40;140;120",
|
25
|
-
calcMode: "linear",
|
26
|
-
repeatCount: "indefinite"
|
27
|
-
}),
|
28
|
-
/* @__PURE__ */ r(),
|
29
|
-
/* @__PURE__ */ e("animate", {
|
30
|
-
attributeName: "y",
|
31
|
-
begin: "0.5s",
|
32
|
-
dur: "1s",
|
33
|
-
values: "10;15;20;25;30;35;40;45;50;0;10",
|
34
|
-
calcMode: "linear",
|
35
|
-
repeatCount: "indefinite"
|
36
|
-
})
|
37
|
-
]),
|
38
|
-
/* @__PURE__ */ e("rect", {
|
39
|
-
x: "30",
|
40
|
-
y: "10",
|
41
|
-
width: "15",
|
42
|
-
height: "120",
|
43
|
-
rx: "6"
|
44
|
-
}, [
|
45
|
-
/* @__PURE__ */ e("animate", {
|
46
|
-
attributeName: "height",
|
47
|
-
begin: "0.25s",
|
48
|
-
dur: "1s",
|
49
|
-
values: "120;110;100;90;80;70;60;50;40;140;120",
|
50
|
-
calcMode: "linear",
|
51
|
-
repeatCount: "indefinite"
|
52
|
-
}),
|
53
|
-
/* @__PURE__ */ r(),
|
54
|
-
/* @__PURE__ */ e("animate", {
|
55
|
-
attributeName: "y",
|
56
|
-
begin: "0.25s",
|
57
|
-
dur: "1s",
|
58
|
-
values: "10;15;20;25;30;35;40;45;50;0;10",
|
59
|
-
calcMode: "linear",
|
60
|
-
repeatCount: "indefinite"
|
61
|
-
})
|
62
|
-
]),
|
63
|
-
/* @__PURE__ */ e("rect", {
|
64
|
-
x: "60",
|
65
|
-
width: "15",
|
66
|
-
height: "140",
|
67
|
-
rx: "6"
|
68
|
-
}, [
|
69
|
-
/* @__PURE__ */ e("animate", {
|
70
|
-
attributeName: "height",
|
71
|
-
begin: "0s",
|
72
|
-
dur: "1s",
|
73
|
-
values: "120;110;100;90;80;70;60;50;40;140;120",
|
74
|
-
calcMode: "linear",
|
75
|
-
repeatCount: "indefinite"
|
76
|
-
}),
|
77
|
-
/* @__PURE__ */ r(),
|
78
|
-
/* @__PURE__ */ e("animate", {
|
79
|
-
attributeName: "y",
|
80
|
-
begin: "0s",
|
81
|
-
dur: "1s",
|
82
|
-
values: "10;15;20;25;30;35;40;45;50;0;10",
|
83
|
-
calcMode: "linear",
|
84
|
-
repeatCount: "indefinite"
|
85
|
-
})
|
86
|
-
]),
|
87
|
-
/* @__PURE__ */ e("rect", {
|
88
|
-
x: "90",
|
89
|
-
y: "10",
|
90
|
-
width: "15",
|
91
|
-
height: "120",
|
92
|
-
rx: "6"
|
93
|
-
}, [
|
94
|
-
/* @__PURE__ */ e("animate", {
|
95
|
-
attributeName: "height",
|
96
|
-
begin: "0.25s",
|
97
|
-
dur: "1s",
|
98
|
-
values: "120;110;100;90;80;70;60;50;40;140;120",
|
99
|
-
calcMode: "linear",
|
100
|
-
repeatCount: "indefinite"
|
101
|
-
}),
|
102
|
-
/* @__PURE__ */ r(),
|
103
|
-
/* @__PURE__ */ e("animate", {
|
104
|
-
attributeName: "y",
|
105
|
-
begin: "0.25s",
|
106
|
-
dur: "1s",
|
107
|
-
values: "10;15;20;25;30;35;40;45;50;0;10",
|
108
|
-
calcMode: "linear",
|
109
|
-
repeatCount: "indefinite"
|
110
|
-
})
|
111
|
-
]),
|
112
|
-
/* @__PURE__ */ e("rect", {
|
113
|
-
x: "120",
|
114
|
-
y: "10",
|
115
|
-
width: "15",
|
116
|
-
height: "120",
|
117
|
-
rx: "6"
|
118
|
-
}, [
|
119
|
-
/* @__PURE__ */ e("animate", {
|
120
|
-
attributeName: "height",
|
121
|
-
begin: "0.5s",
|
122
|
-
dur: "1s",
|
123
|
-
values: "120;110;100;90;80;70;60;50;40;140;120",
|
124
|
-
calcMode: "linear",
|
125
|
-
repeatCount: "indefinite"
|
126
|
-
}),
|
127
|
-
/* @__PURE__ */ r(),
|
128
|
-
/* @__PURE__ */ e("animate", {
|
129
|
-
attributeName: "y",
|
130
|
-
begin: "0.5s",
|
131
|
-
dur: "1s",
|
132
|
-
values: "10;15;20;25;30;35;40;45;50;0;10",
|
133
|
-
calcMode: "linear",
|
134
|
-
repeatCount: "indefinite"
|
135
|
-
})
|
136
|
-
])
|
137
|
-
], -1), C = [
|
138
|
-
N
|
139
|
-
], M = {
|
140
|
-
key: 2,
|
141
|
-
class: "t-semi loading t-black"
|
142
|
-
}, B = {
|
143
|
-
key: 3,
|
144
|
-
class: "error"
|
145
|
-
}, L = {
|
146
|
-
key: 0,
|
147
|
-
class: "button-counter"
|
148
|
-
}, T = {
|
149
|
-
__name: "Button",
|
150
|
-
props: {
|
151
|
-
submit: {
|
152
|
-
type: Function,
|
153
|
-
default: async () => {
|
154
|
-
console.log("Button click.");
|
155
|
-
}
|
156
|
-
},
|
157
|
-
text: {
|
158
|
-
type: Object,
|
159
|
-
default: (t) => (console.log(t), t = {
|
160
|
-
...t.text,
|
161
|
-
success: "✔",
|
162
|
-
error: "✖"
|
163
|
-
})
|
164
|
-
},
|
165
|
-
counter: {
|
166
|
-
type: Object
|
167
|
-
},
|
168
|
-
callback: {
|
169
|
-
type: Function,
|
170
|
-
default: async () => {
|
171
|
-
console.log("Button callback.");
|
172
|
-
}
|
173
|
-
},
|
174
|
-
callbackDelay: {
|
175
|
-
type: Number,
|
176
|
-
default: 750
|
177
|
-
},
|
178
|
-
showSucces: {
|
179
|
-
type: Boolean,
|
180
|
-
default: !0
|
181
|
-
},
|
182
|
-
showLoader: {
|
183
|
-
type: Boolean,
|
184
|
-
default: !0
|
185
|
-
},
|
186
|
-
validation: {
|
187
|
-
type: Boolean,
|
188
|
-
default: !1
|
189
|
-
}
|
190
|
-
},
|
191
|
-
setup(t) {
|
192
|
-
const n = t, a = d(null), i = d(null), l = d(!1), c = d(!1);
|
193
|
-
async function f() {
|
194
|
-
a.value.style["pointer-events"] = "none", i.value = null, l.value = !0;
|
195
|
-
const s = () => {
|
196
|
-
a.value && (a.value.classList.replace("bg-second", "bg-main"), a.value.style.pointerEvents = "auto", l.value = !1, c.value = !1, i.value = null);
|
197
|
-
};
|
198
|
-
try {
|
199
|
-
await n.submit(), a.value.classList.replace("bg-main", "bg-second"), l.value = !1, n.showSucces ? (c.value = !0, setTimeout(s, 500)) : s(), n.callback && setTimeout(() => n.callback(), n.callbackDelay);
|
200
|
-
} catch {
|
201
|
-
a.value.classList.replace("bg-main", "bg-fourth-nano"), i.value = n.error, setTimeout(() => {
|
202
|
-
s(), a.value.classList.replace("bg-fourth-nano", "bg-main");
|
203
|
-
}, 1330);
|
204
|
-
}
|
205
|
-
}
|
206
|
-
return (s, m) => (u(), o("button", {
|
207
|
-
onClick: v(f, ["stop"]),
|
208
|
-
disabled: t.validation,
|
209
|
-
ref_key: "button",
|
210
|
-
ref: a,
|
211
|
-
class: "button"
|
212
|
-
}, [
|
213
|
-
g(y, { name: "moveFromTopAbsolute" }, {
|
214
|
-
default: p(() => [
|
215
|
-
!l.value && !i.value && !c.value || !t.showLoader ? w(s.$slots, "default", { key: 0 }) : l.value && !i.value && t.showLoader ? (u(), o("span", x, C)) : c.value && t.showSucces ? (u(), o("span", M, b(t.text.success), 1)) : i.value ? (u(), o("span", B, b(i.value), 1)) : h("", !0)
|
216
|
-
]),
|
217
|
-
_: 3
|
218
|
-
}),
|
219
|
-
t.counter ? (u(), o("p", L, b(t.counter), 1)) : h("", !0)
|
220
|
-
], 8, k));
|
221
|
-
}
|
222
|
-
};
|
223
|
-
export {
|
224
|
-
T as default
|
225
|
-
};
|
1
|
+
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Button.vue.cjs");const f=["disabled"],v={key:1,class:"loading"},b=e.createElementVNode("svg",{class:"i-regular",width:"135",height:"140",viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:"#fff"},null,-1),m=[b],y={key:2,class:"t-semi loading t-black"},k={key:3,class:"error"},g={key:0,class:"button-counter"},h={__name:"Button",props:{submit:{type:Function,default:async()=>{console.log("Button click.")}},text:{type:Object,default:t=>(console.log(t),t={...t.text,success:"✔",error:"✖"})},counter:{type:Object},callback:{type:Function,default:async()=>{console.log("Button callback.")}},callbackDelay:{type:Number,default:750},showSucces:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!0},validation:{type:Boolean,default:!1}},emits:["error"],setup(t,{emit:r}){const o=t,i=r,l=e.ref(null),a=e.ref(null),s=e.ref(!1),n=e.ref(!1);async function d(){l.value.style["pointer-events"]="none",a.value=null,s.value=!0;const c=()=>{l.value&&(l.value.classList.replace("bg-second","bg-main"),l.value.style.pointerEvents="auto",s.value=!1,n.value=!1,a.value=null)};try{await o.submit(),l.value.classList.replace("bg-main","bg-second"),s.value=!1,o.showSucces?(n.value=!0,setTimeout(c,500)):c(),o.callback&&setTimeout(()=>o.callback(),o.callbackDelay)}catch(u){i("error",u),l.value.classList.replace("bg-main","bg-fourth-nano"),a.value=o.error,setTimeout(()=>{c(),l.value.classList.replace("bg-fourth-nano","bg-main")},1330)}}return(c,u)=>(e.openBlock(),e.createElementBlock("button",{onClick:e.withModifiers(d,["stop"]),disabled:t.validation,ref_key:"button",ref:l,class:"button"},[e.createVNode(e.Transition,{name:"moveFromTopAbsolute"},{default:e.withCtx(()=>[!s.value&&!a.value&&!n.value||!t.showLoader?e.renderSlot(c.$slots,"default",{key:0}):s.value&&!a.value&&t.showLoader?(e.openBlock(),e.createElementBlock("span",v,m)):n.value&&t.showSucces?(e.openBlock(),e.createElementBlock("span",y,e.toDisplayString(t.text.success),1)):a.value?(e.openBlock(),e.createElementBlock("span",k,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)]),_:3}),t.counter?(e.openBlock(),e.createElementBlock("p",g,e.toDisplayString(t.counter),1)):e.createCommentVNode("",!0)],8,f))}};exports.default=h;
|
@@ -1 +1,102 @@
|
|
1
|
-
|
1
|
+
import { ref as r, openBlock as n, createElementBlock as c, withModifiers as h, createVNode as y, Transition as g, withCtx as k, renderSlot as p, toDisplayString as i, createCommentVNode as f, createElementVNode as w } from "vue";
|
2
|
+
import "./Button.vue.js";
|
3
|
+
const B = ["disabled"], L = {
|
4
|
+
key: 1,
|
5
|
+
class: "loading"
|
6
|
+
}, _ = /* @__PURE__ */ w("svg", {
|
7
|
+
class: "i-regular",
|
8
|
+
width: "135",
|
9
|
+
height: "140",
|
10
|
+
viewBox: "0 0 135 140",
|
11
|
+
xmlns: "http://www.w3.org/2000/svg",
|
12
|
+
fill: "#fff"
|
13
|
+
}, null, -1), S = [
|
14
|
+
_
|
15
|
+
], x = {
|
16
|
+
key: 2,
|
17
|
+
class: "t-semi loading t-black"
|
18
|
+
}, T = {
|
19
|
+
key: 3,
|
20
|
+
class: "error"
|
21
|
+
}, N = {
|
22
|
+
key: 0,
|
23
|
+
class: "button-counter"
|
24
|
+
}, F = {
|
25
|
+
__name: "Button",
|
26
|
+
props: {
|
27
|
+
submit: {
|
28
|
+
type: Function,
|
29
|
+
default: async () => {
|
30
|
+
console.log("Button click.");
|
31
|
+
}
|
32
|
+
},
|
33
|
+
text: {
|
34
|
+
type: Object,
|
35
|
+
default: (e) => (console.log(e), e = {
|
36
|
+
...e.text,
|
37
|
+
success: "✔",
|
38
|
+
error: "✖"
|
39
|
+
})
|
40
|
+
},
|
41
|
+
counter: {
|
42
|
+
type: Object
|
43
|
+
},
|
44
|
+
callback: {
|
45
|
+
type: Function,
|
46
|
+
default: async () => {
|
47
|
+
console.log("Button callback.");
|
48
|
+
}
|
49
|
+
},
|
50
|
+
callbackDelay: {
|
51
|
+
type: Number,
|
52
|
+
default: 750
|
53
|
+
},
|
54
|
+
showSucces: {
|
55
|
+
type: Boolean,
|
56
|
+
default: !0
|
57
|
+
},
|
58
|
+
showLoader: {
|
59
|
+
type: Boolean,
|
60
|
+
default: !0
|
61
|
+
},
|
62
|
+
validation: {
|
63
|
+
type: Boolean,
|
64
|
+
default: !1
|
65
|
+
}
|
66
|
+
},
|
67
|
+
emits: ["error"],
|
68
|
+
setup(e, { emit: v }) {
|
69
|
+
const l = e, b = v, t = r(null), a = r(null), s = r(!1), u = r(!1);
|
70
|
+
async function m() {
|
71
|
+
t.value.style["pointer-events"] = "none", a.value = null, s.value = !0;
|
72
|
+
const o = () => {
|
73
|
+
t.value && (t.value.classList.replace("bg-second", "bg-main"), t.value.style.pointerEvents = "auto", s.value = !1, u.value = !1, a.value = null);
|
74
|
+
};
|
75
|
+
try {
|
76
|
+
await l.submit(), t.value.classList.replace("bg-main", "bg-second"), s.value = !1, l.showSucces ? (u.value = !0, setTimeout(o, 500)) : o(), l.callback && setTimeout(() => l.callback(), l.callbackDelay);
|
77
|
+
} catch (d) {
|
78
|
+
b("error", d), t.value.classList.replace("bg-main", "bg-fourth-nano"), a.value = l.error, setTimeout(() => {
|
79
|
+
o(), t.value.classList.replace("bg-fourth-nano", "bg-main");
|
80
|
+
}, 1330);
|
81
|
+
}
|
82
|
+
}
|
83
|
+
return (o, d) => (n(), c("button", {
|
84
|
+
onClick: h(m, ["stop"]),
|
85
|
+
disabled: e.validation,
|
86
|
+
ref_key: "button",
|
87
|
+
ref: t,
|
88
|
+
class: "button"
|
89
|
+
}, [
|
90
|
+
y(g, { name: "moveFromTopAbsolute" }, {
|
91
|
+
default: k(() => [
|
92
|
+
!s.value && !a.value && !u.value || !e.showLoader ? p(o.$slots, "default", { key: 0 }) : s.value && !a.value && e.showLoader ? (n(), c("span", L, S)) : u.value && e.showSucces ? (n(), c("span", x, i(e.text.success), 1)) : a.value ? (n(), c("span", T, i(a.value), 1)) : f("", !0)
|
93
|
+
]),
|
94
|
+
_: 3
|
95
|
+
}),
|
96
|
+
e.counter ? (n(), c("p", N, i(e.counter), 1)) : f("", !0)
|
97
|
+
], 8, B));
|
98
|
+
}
|
99
|
+
};
|
100
|
+
export {
|
101
|
+
F as default
|
102
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../modules/icons/skeletons/SkeletonEvent.vue.cjs");require("../Loader/Loader.vue.cjs");const k=require("../EmptyState/EmptyState.vue.cjs");require("vue-i18n");const y=require("../../modules/globals/components/blocks/BlockSearch.vue.cjs"),g={__name:"Feed",props:{showLoadMore:{type:Boolean,default:!0},search:{type:[Boolean,Object],default:!1},states:{type:Object,default:()=>({empty:{title:String,description:String}})},store:{type:Object,default:()=>({read:Function,state:Object})},external:{type:Boolean,default:!1},options:{type:Object,default:()=>({category:null,limit:20,skip:0,owner:null,creator:null,user:null,status:null,period:null,contain:null})}},setup(n){const l=n,s=e.ref([]),r=e.ref(!1);let i=e.ref(!0),m=e.ref(null),u=e.ref(l.options.skip?l.options.skip:0),o=e.ref(l.options.limit?l.options.limit:10),d=e.ref("");function h(t){d.value=t,c()}const p=async()=>{if(r.value){u.value+=o.value;const t=await l.store.read({skip:u.value,limit:o.value,search:d.value,...l.options});t.length===0||t.length<o.value?r.value=!1:r.value=!0,s.value=[...s.value,...t]}},c=async()=>{const t=await l.store.read({skip:u.value,limit:o.value,search:d.value,...l.options});t.length===0||t.length<o.value?r.value=!1:r.value=!0,s.value=t,i.value=!1};return e.watch(()=>l.external,t=>{}),e.watch(()=>l.external,(t,a)=>{t!==a&&c()},{deep:!0}),e.watch(()=>l.options,(t,a)=>{(t.organization!==a.organization||t.categories!==a.categories||t.prices!==a.prices||t.delivery!==a.delivery||t.search!==a.search||t.status!==a.status||t.hidden!==a.hidden||t.type!==a.type)&&c()},{deep:!0}),e.onMounted(async()=>{await c(),typeof window<"u"&&!l.showLoadMore&&new IntersectionObserver(a=>{a.some(f=>f.isIntersecting)&&p()}).observe(m.value)}),(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[n.search?(e.openBlock(),e.createBlock(y.default,{key:0,placeholder:n.search.placeholder||"Search...",class:e.normalizeClass(n.search.class||"bg-grey mn-b-thin"),onSearch:h},null,8,["placeholder","class"])):e.createCommentVNode("",!0),e.unref(i)?(e.openBlock(),e.createBlock(e.TransitionGroup,{key:1,tag:"ul",name:"scaleTransition",class:e.normalizeClass(["o-hidden bg-grey radius-big",t.$attrs.class])},{default:e.withCtx(()=>[e.unref(i)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(o),f=>(e.openBlock(),e.createBlock(v.default,{key:"skeleton-"+f}))),128)):e.createCommentVNode("",!0)]),_:1},8,["class"])):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!e.unref(i)&&s.value.length<1?(e.openBlock(),e.createBlock(k.default,{key:0,title:n.states.empty.title,description:n.states.empty.description,action:n.states.empty.action,callback:n.states.empty.callback,class:"pd-medium mn-b-thin bg-grey radius-big"},null,8,["title","description","action","callback"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:e.normalizeClass(t.$attrs.class)},{default:e.withCtx(()=>[!e.unref(i)&&s.value.length>0?e.renderSlot(t.$slots,"default",{key:0,items:s.value}):e.createCommentVNode("",!0),n.showLoadMore&&r.value&&s.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:p,class:"col-w-100 w-100 bg-main button"}," Load More ")):e.createCommentVNode("",!0),e.createElementVNode("div",{key:"sentinel",ref_key:"sentinel",ref:m,class:"sentinel"},null,512)]),_:3},8,["class"])],64))}};exports.default=g;
|