@ozdao/prometheus-framework 0.1.98 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main.css +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +2 -49
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +49 -2
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +5 -5
- package/dist/prometheus-framework/src/components/EmptyState/EmptyState.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/EmptyState/EmptyState.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +2 -2
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +10 -10
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +72 -2
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -72
- 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 +12 -12
- 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 +15 -15
- 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 +8 -8
- 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 +14 -14
- 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 +14 -14
- 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 +9 -9
- package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue.js +4 -4
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +10 -10
- 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 +6 -6
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/community/components/sections/SubscribeNewsletter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/SubscribeNewsletter.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.js +1 -1
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +20 -11
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -62
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +4 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +62 -2
- 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 +13 -13
- 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 +11 -11
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.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 +20 -20
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +6 -6
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +7 -7
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +4 -4
- 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 +10 -10
- 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 +13 -13
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/sections/Feed.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/icons/navigation/IconLike.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/navigation/IconLike.vue.js +7 -7
- 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 +3 -3
- 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 +6 -6
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +1 -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 +8 -8
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.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 +8 -8
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EmptyState.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EmptyState.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.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 +7 -7
- 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 +6 -6
- 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 +2 -2
- 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 +14 -14
- 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 +7 -7
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +6 -6
- 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 +15 -15
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +5 -5
- 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 +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +7 -7
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +2 -2
- 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 +4 -4
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.js +2 -2
- 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 +5 -5
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.js +5 -5
- 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 +8 -8
- 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 +6 -6
- 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 +18 -18
- 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 +5 -5
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +8 -8
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/EditImages/EditImages.vue +3 -3
- package/src/components/EmptyState/EmptyState.vue +2 -2
- package/src/components/Field/Field.svlt +1 -1
- package/src/components/Field/Field.vue +1 -1
- package/src/components/FieldTags/BlockTags.vue +4 -4
- package/src/components/Footer/Footer.vue +8 -8
- package/src/components/LocationSelection/LocationSelection.vue +4 -4
- package/src/components/Search/Search.vue +3 -3
- package/src/configurator/components/layouts/layoutConfigurator.vue +2 -2
- package/src/configurator/components/pages/Styles.vue +3 -3
- package/src/modules/auth/components/pages/EnterCode.vue +4 -4
- package/src/modules/auth/components/pages/EnterPassword.vue +9 -9
- package/src/modules/auth/components/pages/Invite.vue +6 -6
- package/src/modules/auth/components/pages/ResetPassword.vue +10 -10
- package/src/modules/auth/components/pages/SignIn.vue +11 -11
- package/src/modules/auth/components/pages/SignUp.vue +11 -11
- package/src/modules/auth/components/sections/SliderFeatures.vue +2 -2
- package/src/modules/backoffice/components/admin/Categories.vue +2 -2
- package/src/modules/backoffice/components/admin/CategoryEdit.vue +2 -2
- package/src/modules/backoffice/components/admin/Dashboard.vue +1 -1
- package/src/modules/backoffice/components/admin/FastOrders.vue +3 -3
- package/src/modules/backoffice/components/admin/PageEdit.vue +3 -3
- package/src/modules/backoffice/components/admin/Pages.vue +1 -1
- package/src/modules/backoffice/components/admin/ProductEdit.vue +1 -1
- package/src/modules/backoffice/components/admin/User.vue +6 -6
- package/src/modules/backoffice/components/admin/Users.vue +4 -4
- package/src/modules/backoffice/components/layouts/Backoffice.vue +1 -1
- package/src/modules/backoffice/components/pages/Dashboard.vue +1 -1
- package/src/modules/community/components/blocks/CardBlogpost.vue +5 -5
- package/src/modules/community/components/layouts/Community.vue +2 -2
- package/src/modules/community/components/pages/BlogPost.vue +4 -4
- package/src/modules/community/components/pages/Community.vue +2 -2
- package/src/modules/community/components/pages/CreateBlogPost.vue +5 -5
- package/src/modules/community/components/sections/Comments.vue +5 -5
- package/src/modules/community/components/sections/Feed.vue +2 -2
- package/src/modules/community/components/sections/JoinUs.vue +2 -2
- package/src/modules/community/components/sections/SubscribeNewsletter.vue +3 -3
- package/src/modules/constructor/components/elements/Audio.vue +2 -2
- package/src/modules/constructor/components/elements/Bullets.vue +1 -1
- package/src/modules/constructor/components/elements/Caption.vue +1 -1
- package/src/modules/constructor/components/elements/Embed.vue +2 -2
- package/src/modules/constructor/components/elements/H2.vue +1 -1
- package/src/modules/constructor/components/elements/Image.vue +19 -5
- package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
- package/src/modules/constructor/components/elements/Textarea.vue +1 -1
- package/src/modules/constructor/components/sections/Constructor.vue +4 -4
- package/src/modules/events/components/blocks/CardEvent.vue +5 -5
- package/src/modules/events/components/layouts/layoutEvents.vue +1 -1
- package/src/modules/events/components/pages/EditEvent.vue +12 -12
- package/src/modules/events/components/pages/Event.vue +4 -4
- package/src/modules/events/components/pages/Events.vue +1 -1
- package/src/modules/events/components/sections/Feed.vue +2 -2
- package/src/modules/events/components/sections/List.vue +1 -1
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +10 -10
- package/src/modules/gallery/components/sections/GalleryWithCategories.vue +6 -6
- package/src/modules/globals/components/sections/Feed.vue +1 -1
- package/src/modules/icons/navigation/IconLike.vue +2 -1
- package/src/modules/landing/components/sections/MobileApp.vue +7 -7
- package/src/modules/legal/components/pages/Legal.vue +5 -5
- package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -1
- package/src/modules/mobile/components/Menu/MenuItem.vue +2 -2
- package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -1
- package/src/modules/orders/components/blocks/Positions.vue +8 -8
- package/src/modules/orders/components/pages/EditOrder.vue +19 -19
- package/src/modules/orders/components/pages/Favorites.vue +2 -2
- package/src/modules/orders/components/pages/Order.vue +5 -5
- package/src/modules/orders/components/pages/Orders.vue +5 -5
- package/src/modules/orders/components/pages/ViewOrder.vue +7 -7
- package/src/modules/orders/components/partials/ShopCart.vue +3 -3
- package/src/modules/orders/components/sections/Form.vue +12 -12
- package/src/modules/orders/components/sections/Succes.vue +4 -4
- package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
- package/src/modules/organizations/components/blocks/CardOrganization.vue +3 -3
- package/src/modules/organizations/components/blocks/Contacts.vue +1 -1
- package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +2 -2
- package/src/modules/organizations/components/blocks/EditArray.vue +2 -2
- package/src/modules/organizations/components/blocks/EmptyState.vue +3 -3
- package/src/modules/organizations/components/blocks/Rating.vue +1 -1
- package/src/modules/organizations/components/pages/Department.vue +6 -6
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +16 -16
- package/src/modules/organizations/components/pages/Members.vue +2 -2
- package/src/modules/organizations/components/pages/Organization.vue +5 -5
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +16 -16
- package/src/modules/organizations/components/pages/Organizations.vue +2 -2
- package/src/modules/organizations/components/sections/DetailsTab.vue +11 -11
- package/src/modules/organizations/components/sections/Documents.vue +4 -4
- package/src/modules/organizations/components/sections/Feed.vue +2 -2
- package/src/modules/organizations/components/sections/FeedDepartments.vue +2 -2
- package/src/modules/organizations/components/sections/MembersAdd.vue +5 -5
- package/src/modules/organizations/components/sections/MembersList.vue +2 -2
- package/src/modules/organizations/components/sections/Unit.vue +12 -12
- package/src/modules/payments/components/pages/Payments.vue +3 -3
- package/src/modules/products/components/blocks/CardLeftover.vue +4 -4
- package/src/modules/products/components/blocks/CardProduct.vue +3 -3
- package/src/modules/products/components/blocks/EditCategories.vue +4 -4
- package/src/modules/products/components/blocks/EditFilters.vue +4 -4
- package/src/modules/products/components/blocks/LeftoverPositions.vue +1 -1
- package/src/modules/products/components/pages/LeftoverAdd.vue +7 -7
- package/src/modules/products/components/pages/Leftovers.vue +5 -5
- package/src/modules/products/components/pages/OrganizationDetails.vue +4 -4
- package/src/modules/products/components/pages/OrganizationDocuments.vue +5 -5
- package/src/modules/products/components/pages/OrganizationPeople.vue +5 -5
- package/src/modules/products/components/pages/ProductEdit.vue +5 -5
- package/src/modules/products/components/pages/ProductRecommmendation.vue +1 -1
- package/src/modules/products/components/pages/ProductsBackoffice.vue +2 -2
- package/src/modules/products/components/sections/EditModifications.vue +8 -8
- package/src/modules/products/components/sections/EditParameters.vue +4 -4
- package/src/modules/products/components/sections/EditProductImages.vue +2 -2
- package/src/modules/products/components/sections/EditProductInfo.vue +5 -5
- package/src/modules/products/components/sections/FilterProducts.vue +9 -9
- package/src/modules/products/components/sections/HeroRecommendation.vue +5 -5
- package/src/modules/products/components/sections/PopularProducts.vue +1 -1
- package/src/modules/products/components/sections/ProductInformationSection.vue +27 -27
- package/src/modules/products/components/sections/SectionProduct.vue +6 -6
- package/src/modules/products/components/sections/SortProducts.vue +1 -1
- package/src/modules/reports/components/pages/BackofficeReports.vue +4 -4
- package/src/modules/reports/components/sections/FormReport.vue +4 -4
- package/src/modules/spots/components/blocks/CardSpot.vue +4 -4
- package/src/modules/spots/components/blocks/SpotMemberModify.vue +2 -2
- package/src/modules/spots/components/layouts/Spots.vue +3 -3
- package/src/modules/spots/components/pages/Spot.vue +4 -4
- package/src/modules/spots/components/pages/SpotEdit.vue +16 -16
- package/src/modules/spots/components/sections/Feed.vue +2 -2
- package/src/modules/spots/components/sections/PlaceModify.vue +1 -1
- package/src/modules/spots/components/sections/Places.vue +1 -1
- package/src/modules/users/components/pages/Profile.vue +13 -13
- package/src/modules/users/components/pages/ProfileBlogposts.vue +2 -2
- package/src/modules/users/components/pages/ProfileComments.vue +1 -1
- package/src/modules/users/components/pages/ProfileEdit.vue +21 -21
- package/src/modules/users/components/pages/ProfileEvents.vue +2 -2
- package/src/modules/users/components/pages/ProfileLikes.vue +1 -1
- package/src/modules/users/components/pages/ProfileOrganizations.vue +2 -2
- package/src/modules/users/components/sections/ProfileCompletion.vue +1 -1
- package/src/modules/wallet/components/pages/Wallet.vue +17 -17
- package/src/styles/base/all.scss +83 -324
- package/src/styles/base/border-radius.scss +47 -0
- package/src/styles/base/height.scss +60 -0
- package/src/styles/base/scrolling.scss +8 -8
- package/src/styles/base/width.scss +2 -0
- package/src/styles/config.scss +153 -51
- package/src/styles/responsive.scss +2 -2
package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js
CHANGED
@@ -12,7 +12,7 @@ import A from "../../../../components/Address/Address.vue.js";
|
|
12
12
|
import I from "../../../../components/LocationMarker/LocationMarker.vue.js";
|
13
13
|
import b from "../../../../components/Button/Button.vue2.js";
|
14
14
|
import "vue-i18n";
|
15
|
-
import "../../../../components/Popup/Popup.
|
15
|
+
import "../../../../components/Popup/Popup.vue2.js";
|
16
16
|
import "../../../../../../node_modules/vue-select/dist/vue-select.es.js";
|
17
17
|
import "../blocks/EditArray.vue2.js";
|
18
18
|
import "../blocks/DepartmentSub.vue2.js";
|
@@ -21,13 +21,13 @@ import "../blocks/User.vue2.js";
|
|
21
21
|
import { state as e, actions as m } from "../../../spots/store/spots.js";
|
22
22
|
import { actions as K, state as O } from "../../store/memberships.js";
|
23
23
|
import "./DepartmentEdit.vue2.js";
|
24
|
-
const r = (p) => (k("data-v-
|
24
|
+
const r = (p) => (k("data-v-d4f32aeb"), p = p(), D(), p), C = { class: "for-transition w-100" }, $ = { class: "pd-b-zero pd-t-zero pd-thin" }, G = { class: "pd-thin" }, L = { class: "flex-nowrap flex bg-grey pd-medium radius-big" }, T = {
|
25
25
|
key: 0,
|
26
26
|
class: "mn-r-auto"
|
27
27
|
}, B = {
|
28
28
|
key: 1,
|
29
29
|
class: "mn-r-auto"
|
30
|
-
}, M = { class: "flex-nowrap flex pd-thin" }, V = { class: "pd-b-zero pd-t-zero pd-thin cols-2 gap-thin" }, R = { class: "flex-stretch flex-column flex" }, Y = { class: "mn-thin bg-grey pd-medium o-hidden radius-big" }, F = /* @__PURE__ */ r(() => /* @__PURE__ */ a("h3", { class: "mn-semi" }, "Profile", -1)), j = { class: "radius-small flex-nowrap flex" }, q = { class: "w-100 flex-child-grow-1 flex-child" }, H = { class: "bg-grey pd-medium o-hidden radius-big" }, J = /* @__PURE__ */ r(() => /* @__PURE__ */ a("h3", { class: "mn-semi" }, "Details", -1)), Q = /* @__PURE__ */ r(() => /* @__PURE__ */ a("p", { class: "p-medium mn-small" }, "Please the available delivery options:", -1)), W = { class: "mn-medium flex-nowrap flex" }, X = /* @__PURE__ */ r(() => /* @__PURE__ */ a("p", { class: "p-medium mn-small" }, "Please select the available payment methods:", -1)), Z = { class: "flex-nowrap flex" }, ee = { class: "bg-grey pd-medium o-hidden radius-big" }, ae = /* @__PURE__ */ r(() => /* @__PURE__ */ a("h3", { class: "mn-semi" }, "Location", -1)), te = /* @__PURE__ */ r(() => /* @__PURE__ */ a("p", { class: "mn-small p-medium" }, "Or choose on map:", -1)), se = { class: "flex-nowrap flex pd-thin" }, ie = {
|
30
|
+
}, M = { class: "flex-nowrap flex pd-thin" }, V = { class: "pd-b-zero pd-t-zero pd-thin cols-2 gap-thin" }, R = { class: "flex-stretch flex-column flex" }, Y = { class: "mn-b-thin bg-grey pd-medium o-hidden radius-big" }, F = /* @__PURE__ */ r(() => /* @__PURE__ */ a("h3", { class: "mn-b-semi" }, "Profile", -1)), j = { class: "radius-small flex-nowrap flex" }, q = { class: "w-100 flex-child-grow-1 flex-child" }, H = { class: "bg-grey pd-medium o-hidden radius-big" }, J = /* @__PURE__ */ r(() => /* @__PURE__ */ a("h3", { class: "mn-b-semi" }, "Details", -1)), Q = /* @__PURE__ */ r(() => /* @__PURE__ */ a("p", { class: "p-medium mn-b-small" }, "Please the available delivery options:", -1)), W = { class: "mn-b-medium flex-nowrap flex" }, X = /* @__PURE__ */ r(() => /* @__PURE__ */ a("p", { class: "p-medium mn-b-small" }, "Please select the available payment methods:", -1)), Z = { class: "flex-nowrap flex" }, ee = { class: "bg-grey pd-medium o-hidden radius-big" }, ae = /* @__PURE__ */ r(() => /* @__PURE__ */ a("h3", { class: "mn-b-semi" }, "Location", -1)), te = /* @__PURE__ */ r(() => /* @__PURE__ */ a("p", { class: "mn-b-small p-medium" }, "Or choose on map:", -1)), se = { class: "flex-nowrap flex pd-thin" }, ie = {
|
31
31
|
__name: "DepartmentEdit",
|
32
32
|
setup(p) {
|
33
33
|
const v = S(), o = E();
|
@@ -91,7 +91,7 @@ const r = (p) => (k("data-v-6a9ce43d"), p = p(), D(), p), C = { class: "for-tran
|
|
91
91
|
"onUpdate:field": t[1] || (t[1] = (i) => e.department.profile.name = i),
|
92
92
|
label: "Name",
|
93
93
|
placeholder: "Spot Name",
|
94
|
-
class: "mn-small bg-white radius-small pd-medium",
|
94
|
+
class: "mn-b-small bg-white radius-small pd-medium",
|
95
95
|
validation: n.organizationName
|
96
96
|
}, null, 8, ["field", "validation"]),
|
97
97
|
s(_, {
|
@@ -165,7 +165,7 @@ const r = (p) => (k("data-v-6a9ce43d"), p = p(), D(), p), C = { class: "for-tran
|
|
165
165
|
location: e.department.location,
|
166
166
|
label: "Address",
|
167
167
|
placeholder: "Enter delivery address",
|
168
|
-
class: "bg-white radius-small pd-small mn-small",
|
168
|
+
class: "bg-white radius-small pd-small mn-b-small",
|
169
169
|
"onUpdate:location": t[3] || (t[3] = (i) => {
|
170
170
|
e.department.location = i;
|
171
171
|
}),
|
@@ -202,7 +202,7 @@ const r = (p) => (k("data-v-6a9ce43d"), p = p(), D(), p), C = { class: "for-tran
|
|
202
202
|
])
|
203
203
|
]));
|
204
204
|
}
|
205
|
-
}, ze = /* @__PURE__ */ U(ie, [["__scopeId", "data-v-
|
205
|
+
}, ze = /* @__PURE__ */ U(ie, [["__scopeId", "data-v-d4f32aeb"]]);
|
206
206
|
export {
|
207
207
|
ze as default
|
208
208
|
};
|
package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const q=require("../../../../components/Tab/Tab.vue2.cjs");require("../../../mobile/components/Menu/Menu.vue.cjs");require("../../../mobile/components/Menu/MenuItem.vue.cjs");const _=require("../../../events/components/sections/Feed.vue.cjs"),p=require("../../../community/components/sections/Feed.vue.cjs"),v=require("../../../spots/components/sections/Feed.vue.cjs"),f=require("../sections/DetailsTab.vue.cjs"),b=require("../../../products/components/pages/Products.vue.cjs");require("../../../../components/Spoiler/Spoiler.vue.cjs");require("../../../../components/Map/Map.vue.cjs");require("../blocks/DepartmentSub.vue2.cjs");require("../blocks/User.vue2.cjs");require("../blocks/CardDepartment.vue2.cjs");require("../../store/departments.cjs");const a=require("../../../auth/store/auth.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../middlewares/client/inputs.validation.cjs");require("../../store/invites.cjs");const l=require("../../store/memberships.cjs"),o=require("../../store/organizations.cjs");require("./Organization.vue2.cjs");const y={key:0,class:"pd-thin for-transition w-100"},g={class:"pos-relative"},h={key:0},k={__name:"Organization",setup(N){const c=i.useRouter(),r=i.useRoute();let d=r.query.tab?r.query.tab:"events";const u=e.ref(null);e.onMounted(async()=>{u.value=await o.actions.read({_id:r.params._id,user:a.state.user._id}),await l.actions.read(r.params._id)});const t=e.ref(d);return r.query.tab=t.value,e.watch(t,n=>{c.replace({query:{...r.query,tab:n}})}),(n,s)=>u.value?(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(f.default,{organization:o.state.current,user:a.state.user,class:"mn-semi"},null,8,["organization","user"]),e.createVNode(q.default,{selected:t.value,"onUpdate:selected":s[0]||(s[0]=m=>t.value=m),tabs:[{name:"Community",value:"community"},{name:"Events",value:"events"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createElementVNode("div",g,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="community"?(e.openBlock(),e.createBlock(p.default,{key:0,user:a.state.user._id,owner:e.unref(r).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="events"?(e.openBlock(),e.createBlock(_.default,{key:0,user:a.state.user._id,owner:e.unref(r).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner","sortParam"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="products"?(e.openBlock(),e.createBlock(b.default,{key:0,organization:o.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="spots"?(e.openBlock(),e.createElementBlock("div",h,[e.createVNode(v.default,{organization:o.state.current,memberships:l.state.memberships},null,8,["organization","memberships"])])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}};exports.default=k;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const q=require("../../../../components/Tab/Tab.vue2.cjs");require("../../../mobile/components/Menu/Menu.vue.cjs");require("../../../mobile/components/Menu/MenuItem.vue.cjs");const _=require("../../../events/components/sections/Feed.vue.cjs"),p=require("../../../community/components/sections/Feed.vue.cjs"),v=require("../../../spots/components/sections/Feed.vue.cjs"),f=require("../sections/DetailsTab.vue.cjs"),b=require("../../../products/components/pages/Products.vue.cjs");require("../../../../components/Spoiler/Spoiler.vue.cjs");require("../../../../components/Map/Map.vue.cjs");require("../blocks/DepartmentSub.vue2.cjs");require("../blocks/User.vue2.cjs");require("../blocks/CardDepartment.vue2.cjs");require("../../store/departments.cjs");const a=require("../../../auth/store/auth.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../middlewares/client/inputs.validation.cjs");require("../../store/invites.cjs");const l=require("../../store/memberships.cjs"),o=require("../../store/organizations.cjs");require("./Organization.vue2.cjs");const y={key:0,class:"pd-thin for-transition w-100"},g={class:"pos-relative"},h={key:0},k={__name:"Organization",setup(N){const c=i.useRouter(),r=i.useRoute();let d=r.query.tab?r.query.tab:"events";const u=e.ref(null);e.onMounted(async()=>{u.value=await o.actions.read({_id:r.params._id,user:a.state.user._id}),await l.actions.read(r.params._id)});const t=e.ref(d);return r.query.tab=t.value,e.watch(t,n=>{c.replace({query:{...r.query,tab:n}})}),(n,s)=>u.value?(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(f.default,{organization:o.state.current,user:a.state.user,class:"mn-b-semi"},null,8,["organization","user"]),e.createVNode(q.default,{selected:t.value,"onUpdate:selected":s[0]||(s[0]=m=>t.value=m),tabs:[{name:"Community",value:"community"},{name:"Events",value:"events"}],class:"mn-b-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createElementVNode("div",g,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="community"?(e.openBlock(),e.createBlock(p.default,{key:0,user:a.state.user._id,owner:e.unref(r).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="events"?(e.openBlock(),e.createBlock(_.default,{key:0,user:a.state.user._id,owner:e.unref(r).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner","sortParam"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="products"?(e.openBlock(),e.createBlock(b.default,{key:0,organization:o.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="spots"?(e.openBlock(),e.createElementBlock("div",h,[e.createVNode(v.default,{organization:o.state.current,memberships:l.state.memberships},null,8,["organization","memberships"])])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}};exports.default=k;
|
package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js
CHANGED
@@ -45,7 +45,7 @@ const P = {
|
|
45
45
|
r(C, {
|
46
46
|
organization: u.current,
|
47
47
|
user: n.user,
|
48
|
-
class: "mn-semi"
|
48
|
+
class: "mn-b-semi"
|
49
49
|
}, null, 8, ["organization", "user"]),
|
50
50
|
r(k, {
|
51
51
|
selected: t.value,
|
@@ -56,7 +56,7 @@ const P = {
|
|
56
56
|
{ name: "Events", value: "events" }
|
57
57
|
// { name: 'Spots', value: 'spots' }
|
58
58
|
],
|
59
|
-
class: "mn-small o-hidden h5 radius-big bg-grey"
|
59
|
+
class: "mn-b-small o-hidden h5 radius-big bg-grey"
|
60
60
|
}, null, 8, ["selected"]),
|
61
61
|
w("div", R, [
|
62
62
|
r(i, { name: "slide-fade" }, {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),n=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const p=require("../../../../components/FieldTags/BlockTags.vue.cjs");require("../../../../components/Tab/Tab.vue.cjs");const l=require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Select/Select.vue.cjs");const f=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),g=require("../../../../components/UploadImage/UploadImage.vue.cjs"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),n=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const p=require("../../../../components/FieldTags/BlockTags.vue.cjs");require("../../../../components/Tab/Tab.vue.cjs");const l=require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Select/Select.vue.cjs");const f=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),g=require("../../../../components/UploadImage/UploadImage.vue.cjs"),b=require("../../../../components/Button/Button.vue2.cjs");require("../../../../components/Popup/Popup.vue2.cjs");const h=require("../../../auth/store/auth.cjs"),e=require("../../store/organizations.cjs");require("../../store/memberships.cjs");const y={class:"for-transition pd-thin"},_=t.createElementVNode("h3",{class:"mn-b-small"},"Type of group",-1),V=t.createElementVNode("p",{class:"mn-b-thin"},"Public groups are open to everyone, whereas in exclusive groups only members can post. If you wish to make a group private, select 'hidden'.",-1),N=t.createElementVNode("h3",{class:"mn-b-small"},"Profile",-1),q={class:"mn-b-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},v=t.createElementVNode("h4",null,"Upload photo",-1),w=t.createElementVNode("h3",{class:"mn-b-small"},"Socials",-1),x=t.createElementVNode("p",{class:"mn-b-thin"},"Please provide only the username for social media profiles, without full links.",-1),U={__name:"OrganizationEdit",async setup(k){let o,i;const s=n.useRoute(),d=n.useRouter();e.actions.reset(),s.params._id&&([o,i]=t.withAsyncContext(()=>e.actions.read({_id:s.params._id})),await o,i());const u=t.computed(()=>e.state.current);async function c(){s.params._id?await e.actions.update(s.params._id,u.value):await e.actions.create(e.state.current,h.state.user._id)}function m(){d.replace({name:"Organization",params:{_id:e.state.current._id}})}return(E,a)=>(t.openBlock(),t.createElementBlock("div",y,[_,V,t.createVNode(f.default,{modelValue:e.state.current.types,"onUpdate:modelValue":a[0]||(a[0]=r=>e.state.current.types=r),options:["public","exclusive","hidden"],multiple:!1,taggable:!1,placeholder:"Type to search or add type of organization",class:"mn-b-semi bg-grey pd-medium radius-small"},null,8,["modelValue"]),N,t.createElementVNode("div",q,[t.createVNode(g.default,{photo:e.state.current.profile.photo,"onUpdate:photo":a[1]||(a[1]=r=>e.state.current.profile.photo=r),uploadPath:"organizations/"+e.state.current._id+"/avatars",class:"h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"},null,8,["photo","uploadPath"]),v]),t.createVNode(l.default,{field:e.state.current.profile.name,"onUpdate:field":a[2]||(a[2]=r=>e.state.current.profile.name=r),placeholder:"Name of organization",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.profile.description,"onUpdate:field":a[3]||(a[3]=r=>e.state.current.profile.description=r),placeholder:"Brief description of your group",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(p.default,{onTagsChanged:a[4]||(a[4]=r=>e.state.current.profile.tags=r),tags:e.state.current.profile.tags},null,8,["tags"]),w,x,t.createVNode(l.default,{field:e.state.current.socials.instagram,"onUpdate:field":a[5]||(a[5]=r=>e.state.current.socials.instagram=r),label:"Instagram",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.twitter,"onUpdate:field":a[6]||(a[6]=r=>e.state.current.socials.twitter=r),label:"Twitter",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.facebook,"onUpdate:field":a[7]||(a[7]=r=>e.state.current.socials.facebook=r),label:"Facebook",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.telegram,"onUpdate:field":a[8]||(a[8]=r=>e.state.current.socials.telegram=r),label:"Telegram",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(b.default,{submit:c,callback:m,class:"mn-b-thin"},{default:t.withCtx(()=>[t.createTextVNode("Save")]),_:1})]))}};exports.default=U;
|
package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { withAsyncContext as f, computed as g, openBlock as
|
1
|
+
import { withAsyncContext as f, computed as g, openBlock as b, createElementBlock as h, createVNode as o, createElementVNode as l, withCtx as _, createTextVNode as y } from "vue";
|
2
2
|
import { useRoute as w, useRouter as x } from "vue-router";
|
3
3
|
import "vue-i18n";
|
4
4
|
import "../../../globals/localization/vue-i18n.js";
|
@@ -10,11 +10,11 @@ import "../../../../components/Select/Select.vue.js";
|
|
10
10
|
import U from "../../../../components/SelectMulti/SelectMulti.vue.js";
|
11
11
|
import k from "../../../../components/UploadImage/UploadImage.vue.js";
|
12
12
|
import T from "../../../../components/Button/Button.vue2.js";
|
13
|
-
import "../../../../components/Popup/Popup.
|
13
|
+
import "../../../../components/Popup/Popup.vue2.js";
|
14
14
|
import { state as z } from "../../../auth/store/auth.js";
|
15
15
|
import { actions as s, state as e } from "../../store/organizations.js";
|
16
16
|
import "../../store/memberships.js";
|
17
|
-
const V = { class: "for-transition pd-thin" }, P = /* @__PURE__ */ l("h3", { class: "mn-small" }, "Type of group", -1), N = /* @__PURE__ */ l("p", { class: "mn-thin" }, "Public groups are open to everyone, whereas in exclusive groups only members can post. If you wish to make a group private, select 'hidden'.", -1), S = /* @__PURE__ */ l("h3", { class: "mn-small" }, "Profile", -1), $ = { class: "mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex" }, B = /* @__PURE__ */ l("h4", null, "Upload photo", -1), C = /* @__PURE__ */ l("h3", { class: "mn-small" }, "Socials", -1), E = /* @__PURE__ */ l("p", { class: "mn-thin" }, "Please provide only the username for social media profiles, without full links.", -1), Z = {
|
17
|
+
const V = { class: "for-transition pd-thin" }, P = /* @__PURE__ */ l("h3", { class: "mn-b-small" }, "Type of group", -1), N = /* @__PURE__ */ l("p", { class: "mn-b-thin" }, "Public groups are open to everyone, whereas in exclusive groups only members can post. If you wish to make a group private, select 'hidden'.", -1), S = /* @__PURE__ */ l("h3", { class: "mn-b-small" }, "Profile", -1), $ = { class: "mn-b-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex" }, B = /* @__PURE__ */ l("h4", null, "Upload photo", -1), C = /* @__PURE__ */ l("h3", { class: "mn-b-small" }, "Socials", -1), E = /* @__PURE__ */ l("p", { class: "mn-b-thin" }, "Please provide only the username for social media profiles, without full links.", -1), Z = {
|
18
18
|
__name: "OrganizationEdit",
|
19
19
|
async setup(F) {
|
20
20
|
let n, d;
|
@@ -27,7 +27,7 @@ const V = { class: "for-transition pd-thin" }, P = /* @__PURE__ */ l("h3", { cla
|
|
27
27
|
function c() {
|
28
28
|
m.replace({ name: "Organization", params: { _id: e.current._id } });
|
29
29
|
}
|
30
|
-
return (I, t) => (
|
30
|
+
return (I, t) => (b(), h("div", V, [
|
31
31
|
P,
|
32
32
|
N,
|
33
33
|
o(U, {
|
@@ -37,7 +37,7 @@ const V = { class: "for-transition pd-thin" }, P = /* @__PURE__ */ l("h3", { cla
|
|
37
37
|
multiple: !1,
|
38
38
|
taggable: !1,
|
39
39
|
placeholder: "Type to search or add type of organization",
|
40
|
-
class: "mn-semi bg-grey pd-medium radius-small"
|
40
|
+
class: "mn-b-semi bg-grey pd-medium radius-small"
|
41
41
|
}, null, 8, ["modelValue"]),
|
42
42
|
S,
|
43
43
|
l("div", $, [
|
@@ -45,7 +45,7 @@ const V = { class: "for-transition pd-thin" }, P = /* @__PURE__ */ l("h3", { cla
|
|
45
45
|
photo: e.current.profile.photo,
|
46
46
|
"onUpdate:photo": t[1] || (t[1] = (r) => e.current.profile.photo = r),
|
47
47
|
uploadPath: "organizations/" + e.current._id + "/avatars",
|
48
|
-
class: "h-4r w-4r aspect-1x1 o-hidden mn-thin radius-extra"
|
48
|
+
class: "h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"
|
49
49
|
}, null, 8, ["photo", "uploadPath"]),
|
50
50
|
B
|
51
51
|
]),
|
@@ -53,13 +53,13 @@ const V = { class: "for-transition pd-thin" }, P = /* @__PURE__ */ l("h3", { cla
|
|
53
53
|
field: e.current.profile.name,
|
54
54
|
"onUpdate:field": t[2] || (t[2] = (r) => e.current.profile.name = r),
|
55
55
|
placeholder: "Name of organization",
|
56
|
-
class: "mn-thin bg-grey pd-medium radius-small"
|
56
|
+
class: "mn-b-thin bg-grey pd-medium radius-small"
|
57
57
|
}, null, 8, ["field"]),
|
58
58
|
o(i, {
|
59
59
|
field: e.current.profile.description,
|
60
60
|
"onUpdate:field": t[3] || (t[3] = (r) => e.current.profile.description = r),
|
61
61
|
placeholder: "Brief description of your group",
|
62
|
-
class: "mn-thin bg-grey pd-medium radius-small"
|
62
|
+
class: "mn-b-thin bg-grey pd-medium radius-small"
|
63
63
|
}, null, 8, ["field"]),
|
64
64
|
o(v, {
|
65
65
|
onTagsChanged: t[4] || (t[4] = (r) => e.current.profile.tags = r),
|
@@ -72,35 +72,35 @@ const V = { class: "for-transition pd-thin" }, P = /* @__PURE__ */ l("h3", { cla
|
|
72
72
|
"onUpdate:field": t[5] || (t[5] = (r) => e.current.socials.instagram = r),
|
73
73
|
label: "Instagram",
|
74
74
|
placeholder: "",
|
75
|
-
class: "mn-thin bg-grey pd-medium radius-small"
|
75
|
+
class: "mn-b-thin bg-grey pd-medium radius-small"
|
76
76
|
}, null, 8, ["field"]),
|
77
77
|
o(i, {
|
78
78
|
field: e.current.socials.twitter,
|
79
79
|
"onUpdate:field": t[6] || (t[6] = (r) => e.current.socials.twitter = r),
|
80
80
|
label: "Twitter",
|
81
81
|
placeholder: "",
|
82
|
-
class: "mn-thin bg-grey pd-medium radius-small"
|
82
|
+
class: "mn-b-thin bg-grey pd-medium radius-small"
|
83
83
|
}, null, 8, ["field"]),
|
84
84
|
o(i, {
|
85
85
|
field: e.current.socials.facebook,
|
86
86
|
"onUpdate:field": t[7] || (t[7] = (r) => e.current.socials.facebook = r),
|
87
87
|
label: "Facebook",
|
88
88
|
placeholder: "",
|
89
|
-
class: "mn-thin bg-grey pd-medium radius-small"
|
89
|
+
class: "mn-b-thin bg-grey pd-medium radius-small"
|
90
90
|
}, null, 8, ["field"]),
|
91
91
|
o(i, {
|
92
92
|
field: e.current.socials.telegram,
|
93
93
|
"onUpdate:field": t[8] || (t[8] = (r) => e.current.socials.telegram = r),
|
94
94
|
label: "Telegram",
|
95
95
|
placeholder: "",
|
96
|
-
class: "mn-thin bg-grey pd-medium radius-small"
|
96
|
+
class: "mn-b-thin bg-grey pd-medium radius-small"
|
97
97
|
}, null, 8, ["field"]),
|
98
98
|
o(T, {
|
99
99
|
submit: u,
|
100
100
|
callback: c,
|
101
|
-
class: "mn-thin"
|
101
|
+
class: "mn-b-thin"
|
102
102
|
}, {
|
103
|
-
default:
|
103
|
+
default: _(() => [
|
104
104
|
y("Save")
|
105
105
|
]),
|
106
106
|
_: 1
|
package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),c=require("../../../../components/Tab/Tab.vue2.cjs"),l=require("../sections/Feed.vue.cjs"),u=require("../../../auth/store/auth.cjs"),m={class:"pd-thin"},b={class:"mn-medium flex-v-center flex-nowrap flex"},f=e.createElementVNode("h2",{class:"mn-r-medium"},"Groups",-1),p={__name:"Organizations",setup(_){const t=n.useRoute(),i=n.useRouter();let d=t.query.tab?t.query.tab:"member";const r=e.ref(d);return t.query.tab=r.value,e.watch(r,o=>{i.replace({query:{...t.query,tab:o}})}),(o,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",b,[f,u.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=s=>o.$router.push({name:"Create Organization"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(c.default,{selected:r.value,"onUpdate:selected":a[1]||(a[1]=s=>r.value=s),tabs:[{name:"Member",value:"member"},{name:"Follower",value:"follower"}],class:"mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="member"?(e.openBlock(),e.createBlock(l.default,{key:0,user:u.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="follower"?(e.openBlock(),e.createBlock(l.default,{key:0,user:u.state.user._id,subscriber:e.unref(t).params._id},null,8,["user","subscriber"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=p;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),c=require("../../../../components/Tab/Tab.vue2.cjs"),l=require("../sections/Feed.vue.cjs"),u=require("../../../auth/store/auth.cjs"),m={class:"pd-thin"},b={class:"mn-b-medium flex-v-center flex-nowrap flex"},f=e.createElementVNode("h2",{class:"mn-r-medium"},"Groups",-1),p={__name:"Organizations",setup(_){const t=n.useRoute(),i=n.useRouter();let d=t.query.tab?t.query.tab:"member";const r=e.ref(d);return t.query.tab=r.value,e.watch(r,o=>{i.replace({query:{...t.query,tab:o}})}),(o,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",b,[f,u.state.user._id===e.unref(t).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=s=>o.$router.push({name:"Create Organization"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(c.default,{selected:r.value,"onUpdate:selected":a[1]||(a[1]=s=>r.value=s),tabs:[{name:"Member",value:"member"},{name:"Follower",value:"follower"}],class:"mn-b-medium mn-r-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="member"?(e.openBlock(),e.createBlock(l.default,{key:0,user:u.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="follower"?(e.openBlock(),e.createBlock(l.default,{key:0,user:u.state.user._id,subscriber:e.unref(t).params._id},null,8,["user","subscriber"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=p;
|
package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import { ref as h, watch as w, openBlock as a, createElementBlock as l, createElementVNode as
|
1
|
+
import { ref as h, watch as w, openBlock as a, createElementBlock as l, createElementVNode as _, unref as o, createCommentVNode as u, createVNode as n, Transition as d, withCtx as c, createBlock as b } from "vue";
|
2
2
|
import { useRoute as y, useRouter as g } from "vue-router";
|
3
3
|
import k from "../../../../components/Tab/Tab.vue2.js";
|
4
|
-
import
|
4
|
+
import p from "../sections/Feed.vue.js";
|
5
5
|
import { state as i } from "../../../auth/store/auth.js";
|
6
|
-
const q = { class: "pd-thin" }, x = { class: "mn-medium flex-v-center flex-nowrap flex" }, C = /* @__PURE__ */
|
6
|
+
const q = { class: "pd-thin" }, x = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, C = /* @__PURE__ */ _("h2", { class: "mn-r-medium" }, "Groups", -1), E = {
|
7
7
|
__name: "Organizations",
|
8
8
|
setup($) {
|
9
9
|
const e = y(), f = g();
|
@@ -12,7 +12,7 @@ const q = { class: "pd-thin" }, x = { class: "mn-medium flex-v-center flex-nowra
|
|
12
12
|
return e.query.tab = r.value, w(r, (s) => {
|
13
13
|
f.replace({ query: { ...e.query, tab: s } });
|
14
14
|
}), (s, t) => (a(), l("div", q, [
|
15
|
-
|
15
|
+
_("header", x, [
|
16
16
|
C,
|
17
17
|
i.user._id === o(e).params._id ? (a(), l("button", {
|
18
18
|
key: 0,
|
@@ -29,11 +29,11 @@ const q = { class: "pd-thin" }, x = { class: "mn-medium flex-v-center flex-nowra
|
|
29
29
|
{ name: "Member", value: "member" },
|
30
30
|
{ name: "Follower", value: "follower" }
|
31
31
|
],
|
32
|
-
class: "mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"
|
32
|
+
class: "mn-b-medium mn-r-medium o-hidden h5 radius-big bg-grey"
|
33
33
|
}, null, 8, ["selected"]),
|
34
34
|
n(d, { name: "slide-fade" }, {
|
35
35
|
default: c(() => [
|
36
|
-
r.value === "member" ? (a(), p
|
36
|
+
r.value === "member" ? (a(), b(p, {
|
37
37
|
key: 0,
|
38
38
|
user: i.user._id,
|
39
39
|
owner: o(e).params._id
|
@@ -43,7 +43,7 @@ const q = { class: "pd-thin" }, x = { class: "mn-medium flex-v-center flex-nowra
|
|
43
43
|
}),
|
44
44
|
n(d, { name: "slide-fade" }, {
|
45
45
|
default: c(() => [
|
46
|
-
r.value === "follower" ? (a(), p
|
46
|
+
r.value === "follower" ? (a(), b(p, {
|
47
47
|
key: 0,
|
48
48
|
user: i.user._id,
|
49
49
|
subscriber: o(e).params._id
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router"),d=require("../../../../components/Dropdown/Dropdown.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router"),d=require("../../../../components/Dropdown/Dropdown.vue2.cjs"),m=require("../../../../components/Text/Text.vue.cjs"),g=require("../../../icons/navigation/IconEdit.vue.cjs"),b=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),s=require("../elements/ButtonToggleMembership.vue.cjs"),k=require("../blocks/Socials.vue.cjs"),f=require("../../../reports/components/sections/FormReport.vue.cjs"),h=require("../../store/organizations.cjs"),z=require("../../store/memberships.cjs"),B={class:"t-center flex-center flex-column flex pd-medium radius-big bg-grey"},w={class:"bg-black pd-thin radius-small"},x=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),y=["src"],E={class:"mn-b-thin"},V={class:"mn-b-medium p-big"},N={class:"flex-center flex-wrap gap-thin flex mn-b-semi"},q={class:"pd-thin radius-small t-semi uppercase t-black bg-main p-medium"},S={class:"t-semi mn-b-small"},p={key:5,class:"mn-t-small mn-b-thin"},v={__name:"DetailsTab",props:{organization:Object,user:Object},setup(t){const n=u.useRoute(),r=({membership:i,status:o,target:a},l,c)=>{z.mutations.handleMembershipUpdate(h.state.current,i,o,a,l,c)};return(i,o)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("section",B,[t.user._id!==t.organization.owner?(e.openBlock(),e.createBlock(d.default,{key:0,label:"...",align:"right",class:"cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",w,[e.createVNode(f.default,{user:t.user._id,type:"organization",target:t.organization._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[x]),_:1},8,["user","target"]),t.user._id&&t.user._id!==t.organization.owner?(e.openBlock(),e.createBlock(s.default,{key:0,user:t.user._id,type:"organization",role:"blocked",target:t.organization._id,status:t.organization.isBlocked,text:{create:"Block",remove:"Unblock"},onUpdateMembership:o[0]||(o[0]=a=>r(a,"isBlocked")),class:"t-white mn-t-thin bg-red"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0),t.user._id===t.organization.owner?(e.openBlock(),e.createBlock(g.default,{key:1,onClick:o[1]||(o[1]=a=>i.$router.push({name:"Organization Edit",params:{_id:t.organization._id}})),class:"pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),t.organization.profile.photo?(e.openBlock(),e.createElementBlock("img",{key:2,src:(i.FILE_SERVER_URL||"")+t.organization.profile.photo,class:"radius-big bg-grey flex-center flex mn-b-small i-extra"},null,8,y)):(e.openBlock(),e.createBlock(b.default,{key:3,class:"radius-medium mn-b-small i-extra"})),e.createElementVNode("h1",E,e.toDisplayString(t.organization.profile.name),1),e.createElementVNode("p",V,[e.createVNode(m.default,{text:t.organization.profile.description?t.organization.profile.description:"",maxLen:240},null,8,["text"])]),e.createElementVNode("div",N,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.organization.profile.tags,a=>(e.openBlock(),e.createElementBlock("span",q,e.toDisplayString(a),1))),256))]),e.createElementVNode("p",S," 👨👨👧👧 "+e.toDisplayString(t.organization.numberOfSubscribers)+" followers ",1),t.user._id&&e.unref(n).params._id&&e.unref(n).params._id!==t.user._id&&t.organization.owner!==t.user._id?(e.openBlock(),e.createBlock(s.default,{key:4,user:t.user._id,type:"organization",role:"subscriber",target:t.organization._id,status:t.organization.isSubscriber,text:{create:"Follow",remove:"Unfollow"},onUpdateMembership:o[2]||(o[2]=a=>r(a,"isSubscriber","numberOfSubscribers")),class:"w-min mn-b-medium mn-r-auto mn-l-auto"},null,8,["user","target","status"])):e.createCommentVNode("",!0),Object.values(t.organization.socials).some(a=>a)?(e.openBlock(),e.createElementBlock("h4",p," Find us in socials ")):e.createCommentVNode("",!0),e.createVNode(k.default,{telegram:t.organization.socials.telegram,facebook:t.organization.socials.facebook,instagram:t.organization.socials.instagram,twitter:t.organization.socials.twitter},null,8,["telegram","facebook","instagram","twitter"])])]),_:1}))}};exports.default=v;
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { openBlock as i, createBlock as n, Transition as k, withCtx as m, createElementVNode as r, createVNode as u, createCommentVNode as o, createElementBlock as l, toDisplayString as c, Fragment as w, renderList as x, unref as b } from "vue";
|
2
2
|
import { useRoute as y } from "vue-router";
|
3
|
-
import U from "../../../../components/Dropdown/Dropdown.
|
3
|
+
import U from "../../../../components/Dropdown/Dropdown.vue2.js";
|
4
4
|
import p from "../../../../components/Text/Text.vue.js";
|
5
5
|
import E from "../../../icons/navigation/IconEdit.vue.js";
|
6
6
|
import B from "../../../icons/placeholders/PlaceholderUserpic.vue.js";
|
@@ -9,9 +9,9 @@ import O from "../blocks/Socials.vue.js";
|
|
9
9
|
import R from "../../../reports/components/sections/FormReport.vue.js";
|
10
10
|
import { state as S } from "../../store/organizations.js";
|
11
11
|
import { mutations as $ } from "../../store/memberships.js";
|
12
|
-
const v = { class: "t-center flex-center flex-column flex pd-medium radius-big bg-grey" }, F = { class: "bg-black pd-thin radius-small" }, L = /* @__PURE__ */ r("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), M = ["src"], V = { class: "mn-thin" }, j = { class: "mn-medium p-big" }, C = { class: "flex-center flex-wrap gap-thin flex mn-semi" }, D = { class: "pd-thin radius-small t-semi uppercase t-black bg-main p-medium" }, N = { class: "t-semi mn-small" }, I = {
|
12
|
+
const v = { class: "t-center flex-center flex-column flex pd-medium radius-big bg-grey" }, F = { class: "bg-black pd-thin radius-small" }, L = /* @__PURE__ */ r("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), M = ["src"], V = { class: "mn-b-thin" }, j = { class: "mn-b-medium p-big" }, C = { class: "flex-center flex-wrap gap-thin flex mn-b-semi" }, D = { class: "pd-thin radius-small t-semi uppercase t-black bg-main p-medium" }, N = { class: "t-semi mn-b-small" }, I = {
|
13
13
|
key: 5,
|
14
|
-
class: "mn-t-small mn-thin"
|
14
|
+
class: "mn-t-small mn-b-thin"
|
15
15
|
}, Y = {
|
16
16
|
__name: "DetailsTab",
|
17
17
|
props: {
|
@@ -73,10 +73,10 @@ const v = { class: "t-center flex-center flex-column flex pd-medium radius-big b
|
|
73
73
|
e.organization.profile.photo ? (i(), l("img", {
|
74
74
|
key: 2,
|
75
75
|
src: (s.FILE_SERVER_URL || "") + e.organization.profile.photo,
|
76
|
-
class: "radius-big bg-grey flex-center flex mn-small i-extra"
|
76
|
+
class: "radius-big bg-grey flex-center flex mn-b-small i-extra"
|
77
77
|
}, null, 8, M)) : (i(), n(B, {
|
78
78
|
key: 3,
|
79
|
-
class: "radius-medium mn-small i-extra"
|
79
|
+
class: "radius-medium mn-b-small i-extra"
|
80
80
|
})),
|
81
81
|
r("h1", V, c(e.organization.profile.name), 1),
|
82
82
|
r("p", j, [
|
@@ -98,7 +98,7 @@ const v = { class: "t-center flex-center flex-column flex pd-medium radius-big b
|
|
98
98
|
status: e.organization.isSubscriber,
|
99
99
|
text: { create: "Follow", remove: "Unfollow" },
|
100
100
|
onUpdateMembership: a[2] || (a[2] = (t) => g(t, "isSubscriber", "numberOfSubscribers")),
|
101
|
-
class: "w-min mn-medium mn-r-auto mn-l-auto"
|
101
|
+
class: "w-min mn-b-medium mn-r-auto mn-l-auto"
|
102
102
|
}, null, 8, ["user", "target", "status"])) : o("", !0),
|
103
103
|
Object.values(e.organization.socials).some((t) => t) ? (i(), l("h4", I, " Find us in socials ")) : o("", !0),
|
104
104
|
u(O, {
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),m=require("../../../../components/Field/Field.vue2.cjs");require("vue-i18n");const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");require("../../../../components/Popup/Popup.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),m=require("../../../../components/Field/Field.vue2.cjs");require("vue-i18n");const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");require("../../../../components/Popup/Popup.vue2.cjs");require("../../../../components/Button/Button.vue.cjs");require("./Documents.vue2.cjs");const f=o=>(e.pushScopeId("data-v-f93fcad7"),o=o(),e.popScopeId(),o),v={class:"documents"},h=f(()=>e.createElementVNode("h3",{class:"mn-b-small"},"Список документов",-1)),k={class:"mn-b-big cols-4"},b=["onClick"],y={class:"mn-b-small"},E={class:"t-semi t-transp radius-small"},B={__name:"Documents",setup(o){r.useRouter(),r.useRoute();let l=[{name:"Паспорт",status:"Не добавлен",inputs:[{type:"text",name:"Номер и серия"},{type:"text",name:"Место выдачи"},{type:"text",name:"Дата выдачи"}]},{name:"ИНН",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"СНИЛС",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"Военный билет",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]}];const s=e.ref(!1),a=e.ref(null),p=u=>{a.value=u,s.value=!0},c=()=>{s.value=!1},i=()=>{c()};return e.watchEffect(()=>{}),(u,x)=>{const d=e.resolveComponent("Popup");return e.openBlock(),e.createElementBlock("div",v,[h,e.createElementVNode("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(t,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,onClick:P=>p(n),class:"h-100 pd-medium bg-white radius-small"},[e.createElementVNode("h3",y,e.toDisplayString(t.name),1),e.createElementVNode("p",E,e.toDisplayString(t.status),1)],8,b))),128))]),e.createVNode(d,{title:"Добавить документ",onClosePopup:c,isPopupOpen:s.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l)[a.value].inputs,t=>(e.openBlock(),e.createElementBlock("div",{key:t.name},[e.createVNode(m.default,{field:t.value,"onUpdate:field":n=>t.value=n,label:t.name,_id:t.name,placeholder:t.name,class:"w-100"},null,8,["field","onUpdate:field","label","_id","placeholder"])]))),128)),e.createElementVNode("button",{onClick:i,class:"w-100 mn-b-small button"},"Отправить на верификацию")]),_:1},8,["isPopupOpen"])])}}},g=_.default(B,[["__scopeId","data-v-f93fcad7"]]);exports.default=g;
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
import { ref as r, watchEffect as
|
1
|
+
import { ref as r, watchEffect as y, resolveComponent as P, openBlock as t, createElementBlock as s, createElementVNode as o, Fragment as i, renderList as d, unref as _, toDisplayString as f, createVNode as h, withCtx as k, pushScopeId as w, popScopeId as C } from "vue";
|
2
2
|
import { useRouter as I, useRoute as g } from "vue-router";
|
3
3
|
import D from "../../../../components/Field/Field.vue2.js";
|
4
4
|
import "vue-i18n";
|
5
5
|
import S from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
6
|
-
import "../../../../components/Popup/Popup.
|
6
|
+
import "../../../../components/Popup/Popup.vue2.js";
|
7
7
|
import "../../../../components/Button/Button.vue.js";
|
8
8
|
import "./Documents.vue2.js";
|
9
|
-
const E = (
|
9
|
+
const E = (a) => (w("data-v-f93fcad7"), a = a(), C(), a), B = { class: "documents" }, F = /* @__PURE__ */ E(() => /* @__PURE__ */ o("h3", { class: "mn-b-small" }, "Список документов", -1)), N = { class: "mn-b-big cols-4" }, O = ["onClick"], R = { class: "mn-b-small" }, U = { class: "t-semi t-transp radius-small" }, V = {
|
10
10
|
__name: "Documents",
|
11
|
-
setup(
|
11
|
+
setup(a) {
|
12
12
|
I(), g();
|
13
13
|
let p = [{
|
14
14
|
name: "Паспорт",
|
@@ -49,25 +49,25 @@ const E = (n) => (w("data-v-20739d92"), n = n(), C(), n), B = { class: "document
|
|
49
49
|
c.value = u, l.value = !0;
|
50
50
|
}, m = () => {
|
51
51
|
l.value = !1;
|
52
|
-
},
|
52
|
+
}, b = () => {
|
53
53
|
m();
|
54
54
|
};
|
55
|
-
return
|
55
|
+
return y(() => {
|
56
56
|
}), (u, L) => {
|
57
|
-
const
|
57
|
+
const x = P("Popup");
|
58
58
|
return t(), s("div", B, [
|
59
59
|
F,
|
60
60
|
o("div", N, [
|
61
|
-
(t(!0), s(i, null, d(_(p), (e,
|
62
|
-
key:
|
63
|
-
onClick: ($) => v(
|
61
|
+
(t(!0), s(i, null, d(_(p), (e, n) => (t(), s("div", {
|
62
|
+
key: n,
|
63
|
+
onClick: ($) => v(n),
|
64
64
|
class: "h-100 pd-medium bg-white radius-small"
|
65
65
|
}, [
|
66
66
|
o("h3", R, f(e.name), 1),
|
67
67
|
o("p", U, f(e.status), 1)
|
68
68
|
], 8, O))), 128))
|
69
69
|
]),
|
70
|
-
h(
|
70
|
+
h(x, {
|
71
71
|
title: "Добавить документ",
|
72
72
|
onClosePopup: m,
|
73
73
|
isPopupOpen: l.value
|
@@ -78,7 +78,7 @@ const E = (n) => (w("data-v-20739d92"), n = n(), C(), n), B = { class: "document
|
|
78
78
|
}, [
|
79
79
|
h(D, {
|
80
80
|
field: e.value,
|
81
|
-
"onUpdate:field": (
|
81
|
+
"onUpdate:field": (n) => e.value = n,
|
82
82
|
label: e.name,
|
83
83
|
_id: e.name,
|
84
84
|
placeholder: e.name,
|
@@ -86,8 +86,8 @@ const E = (n) => (w("data-v-20739d92"), n = n(), C(), n), B = { class: "document
|
|
86
86
|
}, null, 8, ["field", "onUpdate:field", "label", "_id", "placeholder"])
|
87
87
|
]))), 128)),
|
88
88
|
o("button", {
|
89
|
-
onClick:
|
90
|
-
class: "w-100 mn-small button"
|
89
|
+
onClick: b,
|
90
|
+
class: "w-100 mn-b-small button"
|
91
91
|
}, "Отправить на верификацию")
|
92
92
|
]),
|
93
93
|
_: 1
|
@@ -95,7 +95,7 @@ const E = (n) => (w("data-v-20739d92"), n = n(), C(), n), B = { class: "document
|
|
95
95
|
]);
|
96
96
|
};
|
97
97
|
}
|
98
|
-
}, M = /* @__PURE__ */ S(V, [["__scopeId", "data-v-
|
98
|
+
}, M = /* @__PURE__ */ S(V, [["__scopeId", "data-v-f93fcad7"]]);
|
99
99
|
export {
|
100
100
|
M as default
|
101
101
|
};
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const m=require("../../../../components/EmptyState/EmptyState.vue.cjs"),p=require("../blocks/CardOrganization.vue.cjs"),b=require("../../../icons/skeletons/SkeletonOrganization.vue.cjs"),c=require("../../store/organizations.cjs"),f={class:"pos-relative"},y={__name:"Feed",props:{category:{type:String,default:null},selectedDate:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},member:{type:[String,Number],default:null},subscriber:{type:[String,Number],default:null},sortOrder:{type:String,default:"desc"},participant:{type:String,default:null},period:{type:String,default:null},status:{type:String,default:null}},setup(i){const t=i,r=e.ref([]),n=e.ref(!1),l=e.ref(!0),s=e.ref(0),u=e.ref(20),d=async()=>{if(n.value){s.value+=u.value;const a=await c.actions.read({skip:s.value,limit:u.value,category:t.category,sortOrder:t.sortOrder,member:t.member,subscriber:t.subscriber,onlyuser:t.onlyuser,user:t.user,date:t.selectedDate,owner:t.owner,organization:t.organization,period:t.period,status:t.status});a.length===0?n.value=!1:n.value=!0,r.value=[...r.value,...a]}};return e.onMounted(async()=>{l.value=!0,console.log(t.selectedDate);const a=await c.actions.read({skip:s.value,limit:u.value,category:t.category,member:t.member,subscriber:t.subscriber,onlyuser:t.onlyuser,sortOrder:t.sortOrder,user:t.user,owner:t.owner,date:t.selectedDate,organization:t.organization,period:t.period,status:t.status});a.length===0?n.value=!1:n.value=!0,r.value=a,l.value=!1}),(a,v)=>(e.openBlock(),e.createElementBlock("section",f,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[l.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,o=>(e.openBlock(),e.createBlock(b.default,{key:o}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!l.value&&r.value.length<1?(e.openBlock(),e.createBlock(m.default,{key:0,title:"No Organizations Found",description:"Currently, there are no organizations available. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"cols-1"},{default:e.withCtx(()=>[!l.value&&r.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value,(o,g)=>(e.openBlock(),e.createBlock(p.default,{onClick:k=>a.$router.push({name:"Organization",params:{_id:o._id}}),key:o._id,organization:o,user:i.user,type:"normal",class:e.normalizeClass(["w-100 radius-big mn-medium",{"br-b br-solid br-black-transp-10":g!==r.value.length-1}])},null,8,["onClick","organization","user","class"]))),128)):e.createCommentVNode("",!0),n.value&&r.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d,class:"w-100 bg-main button"},"Load more")):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=y;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const m=require("../../../../components/EmptyState/EmptyState.vue.cjs"),p=require("../blocks/CardOrganization.vue.cjs"),b=require("../../../icons/skeletons/SkeletonOrganization.vue.cjs"),c=require("../../store/organizations.cjs"),f={class:"pos-relative"},y={__name:"Feed",props:{category:{type:String,default:null},selectedDate:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},member:{type:[String,Number],default:null},subscriber:{type:[String,Number],default:null},sortOrder:{type:String,default:"desc"},participant:{type:String,default:null},period:{type:String,default:null},status:{type:String,default:null}},setup(i){const t=i,r=e.ref([]),n=e.ref(!1),l=e.ref(!0),s=e.ref(0),u=e.ref(20),d=async()=>{if(n.value){s.value+=u.value;const a=await c.actions.read({skip:s.value,limit:u.value,category:t.category,sortOrder:t.sortOrder,member:t.member,subscriber:t.subscriber,onlyuser:t.onlyuser,user:t.user,date:t.selectedDate,owner:t.owner,organization:t.organization,period:t.period,status:t.status});a.length===0?n.value=!1:n.value=!0,r.value=[...r.value,...a]}};return e.onMounted(async()=>{l.value=!0,console.log(t.selectedDate);const a=await c.actions.read({skip:s.value,limit:u.value,category:t.category,member:t.member,subscriber:t.subscriber,onlyuser:t.onlyuser,sortOrder:t.sortOrder,user:t.user,owner:t.owner,date:t.selectedDate,organization:t.organization,period:t.period,status:t.status});a.length===0?n.value=!1:n.value=!0,r.value=a,l.value=!1}),(a,v)=>(e.openBlock(),e.createElementBlock("section",f,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[l.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,o=>(e.openBlock(),e.createBlock(b.default,{key:o}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!l.value&&r.value.length<1?(e.openBlock(),e.createBlock(m.default,{key:0,title:"No Organizations Found",description:"Currently, there are no organizations available. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"cols-1"},{default:e.withCtx(()=>[!l.value&&r.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value,(o,g)=>(e.openBlock(),e.createBlock(p.default,{onClick:k=>a.$router.push({name:"Organization",params:{_id:o._id}}),key:o._id,organization:o,user:i.user,type:"normal",class:e.normalizeClass(["w-100 radius-big mn-b-medium",{"br-b br-solid br-black-transp-10":g!==r.value.length-1}])},null,8,["onClick","organization","user","class"]))),128)):e.createCommentVNode("",!0),n.value&&r.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d,class:"w-100 bg-main button"},"Load more")):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=y;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ref as o, onMounted as z, openBlock as r, createElementBlock as i, createVNode as m, TransitionGroup as
|
1
|
+
import { ref as o, onMounted as z, openBlock as r, createElementBlock as i, createVNode as m, TransitionGroup as f, withCtx as g, Fragment as y, renderList as v, createBlock as p, createCommentVNode as d, Transition as S, normalizeClass as w } from "vue";
|
2
2
|
import "../../../../components/Loader/Loader.vue.js";
|
3
3
|
import O from "../../../../components/EmptyState/EmptyState.vue.js";
|
4
4
|
import C from "../blocks/CardOrganization.vue.js";
|
@@ -52,8 +52,8 @@ const D = { class: "pos-relative" }, E = {
|
|
52
52
|
default: null
|
53
53
|
}
|
54
54
|
},
|
55
|
-
setup(
|
56
|
-
const e =
|
55
|
+
setup(b) {
|
56
|
+
const e = b, t = o([]), n = o(!1), l = o(!0), c = o(0), u = o(20), h = async () => {
|
57
57
|
if (n.value) {
|
58
58
|
c.value += u.value;
|
59
59
|
const a = await k.read({
|
@@ -93,7 +93,7 @@ const D = { class: "pos-relative" }, E = {
|
|
93
93
|
});
|
94
94
|
a.length === 0 ? n.value = !1 : n.value = !0, t.value = a, l.value = !1;
|
95
95
|
}), (a, L) => (r(), i("section", D, [
|
96
|
-
m(
|
96
|
+
m(f, {
|
97
97
|
tag: "ul",
|
98
98
|
name: "fade",
|
99
99
|
class: "o-hidden bg-grey radius-big"
|
@@ -109,12 +109,12 @@ const D = { class: "pos-relative" }, E = {
|
|
109
109
|
key: 0,
|
110
110
|
title: "No Organizations Found",
|
111
111
|
description: "Currently, there are no organizations available. Please check back later.",
|
112
|
-
class: "pd-medium mn-thin bg-grey radius-big"
|
112
|
+
class: "pd-medium mn-b-thin bg-grey radius-big"
|
113
113
|
})) : d("", !0)
|
114
114
|
]),
|
115
115
|
_: 1
|
116
116
|
}),
|
117
|
-
m(
|
117
|
+
m(f, {
|
118
118
|
tag: "ul",
|
119
119
|
name: "fade",
|
120
120
|
class: "cols-1"
|
@@ -124,9 +124,9 @@ const D = { class: "pos-relative" }, E = {
|
|
124
124
|
onClick: ($) => a.$router.push({ name: "Organization", params: { _id: s._id } }),
|
125
125
|
key: s._id,
|
126
126
|
organization: s,
|
127
|
-
user:
|
127
|
+
user: b.user,
|
128
128
|
type: "normal",
|
129
|
-
class: w(["w-100 radius-big mn-medium", {
|
129
|
+
class: w(["w-100 radius-big mn-b-medium", {
|
130
130
|
"br-b br-solid br-black-transp-10": _ !== t.value.length - 1
|
131
131
|
}])
|
132
132
|
}, null, 8, ["onClick", "organization", "user", "class"]))), 128)) : d("", !0),
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const c=require("../blocks/EmptyState.vue.cjs"),m=require("../blocks/CardDepartment.vue.cjs"),d=require("../../store/departments.cjs"),p=require("../../../auth/store/auth.cjs"),g={__name:"FeedDepartments",props:{organization:Object,units:Array,memberships:Array},async setup(a){let l,u;const o=a;e.ref("departments"),[l,u]=e.withAsyncContext(()=>d.actions.read(o.organization._id)),await l,u();const i=e.computed(()=>{const n=d.state.departments,r=n.flatMap(t=>t.subdepartments.map(s=>s._id));return n.filter(t=>!r.includes(t._id))});return(n,r)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[i.value.length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>n.$router.push(`/organization/${o.organization._id}/departments/create`)},null,8,["callback"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(t,s)=>(e.openBlock(),e.createBlock(m.default,{key:s,department:t,organization:a.organization,class:"radius-big bg-grey mn-thin"},null,8,["department","organization"]))),128)),i.value.length>0&&p.state.user._id===a.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:r[0]||(r[0]=t=>n.$router.push(`/organization/${o.organization._id}/departments/create`)),class:"mn-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}};exports.default=g;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const c=require("../blocks/EmptyState.vue.cjs"),m=require("../blocks/CardDepartment.vue.cjs"),d=require("../../store/departments.cjs"),p=require("../../../auth/store/auth.cjs"),g={__name:"FeedDepartments",props:{organization:Object,units:Array,memberships:Array},async setup(a){let l,u;const o=a;e.ref("departments"),[l,u]=e.withAsyncContext(()=>d.actions.read(o.organization._id)),await l,u();const i=e.computed(()=>{const n=d.state.departments,r=n.flatMap(t=>t.subdepartments.map(s=>s._id));return n.filter(t=>!r.includes(t._id))});return(n,r)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[i.value.length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>n.$router.push(`/organization/${o.organization._id}/departments/create`)},null,8,["callback"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(t,s)=>(e.openBlock(),e.createBlock(m.default,{key:s,department:t,organization:a.organization,class:"radius-big bg-grey mn-b-thin"},null,8,["department","organization"]))),128)),i.value.length>0&&p.state.user._id===a.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:r[0]||(r[0]=t=>n.$router.push(`/organization/${o.organization._id}/departments/create`)),class:"mn-b-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}};exports.default=g;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ref as g, withAsyncContext as
|
1
|
+
import { ref as g, withAsyncContext as b, computed as f, openBlock as n, createBlock as d, Transition as y, withCtx as _, createElementVNode as u, createCommentVNode as p, createElementBlock as c, Fragment as h, renderList as z } from "vue";
|
2
2
|
import "../../../../components/Tab/Tab.vue.js";
|
3
3
|
import k from "../blocks/EmptyState.vue.js";
|
4
4
|
import v from "../blocks/CardDepartment.vue.js";
|
@@ -14,8 +14,8 @@ const L = {
|
|
14
14
|
async setup(a) {
|
15
15
|
let m, l;
|
16
16
|
const o = a;
|
17
|
-
g("departments"), [m, l] =
|
18
|
-
const i =
|
17
|
+
g("departments"), [m, l] = b(() => $.read(o.organization._id)), await m, l();
|
18
|
+
const i = f(() => {
|
19
19
|
const e = A.departments, r = e.flatMap(
|
20
20
|
(t) => t.subdepartments.map((s) => s._id)
|
21
21
|
);
|
@@ -38,12 +38,12 @@ const L = {
|
|
38
38
|
key: s,
|
39
39
|
department: t,
|
40
40
|
organization: a.organization,
|
41
|
-
class: "radius-big bg-grey mn-thin"
|
41
|
+
class: "radius-big bg-grey mn-b-thin"
|
42
42
|
}, null, 8, ["department", "organization"]))), 128)),
|
43
43
|
i.value.length > 0 && w.user._id === a.organization.owner ? (n(), c("button", {
|
44
44
|
key: 0,
|
45
45
|
onClick: r[0] || (r[0] = (t) => e.$router.push(`/organization/${o.organization._id}/departments/create`)),
|
46
|
-
class: "mn-thin button w-100"
|
46
|
+
class: "mn-b-thin button w-100"
|
47
47
|
}, " Add spot ")) : p("", !0)
|
48
48
|
])
|
49
49
|
])
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),_=require("../../../../components/Field/Field.vue2.cjs"),v=require("../../../../components/Select/Select.vue2.cjs"),f=require("../../../../components/Button/Button.vue2.cjs");require("../../../middlewares/client/inputs.validation.cjs");const c=require("../../store/invites.cjs"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),_=require("../../../../components/Field/Field.vue2.cjs"),v=require("../../../../components/Select/Select.vue2.cjs"),f=require("../../../../components/Button/Button.vue2.cjs");require("../../../middlewares/client/inputs.validation.cjs");const c=require("../../store/invites.cjs"),b={class:"mn-b-medium radius-medium pd-semi bg-white"},h=e.createElementVNode("h3",{class:"mn-b-medium"},"Добавить участников",-1),k=e.createElementVNode("p",{class:"mn-b-small t-transp p-medium"},"Укажите email или телефон, чтобы отправить ссылку с приглашением:",-1),E={class:"w-100 flex-nowrap flex"},V={key:0,class:"mn-r-medium flex-v-center flex"},N=["onClick"],g=e.createElementVNode("p",{class:"t-blue mn-r-small"},"+ Добавить приглашение",-1),w=[g],B=e.createElementVNode("span",null,"Отправить приглашения ",-1),x={__name:"MembersAdd",props:{organization:Object},emits:["send-invite"],setup(s,{emit:q}){const i=s,r=e.ref(null),t=e.ref([{contact:"",role:""}]);function d(){t.value.push({contact:"",role:""})}function m(n){t.value.splice(n,1)}async function u(n){await c.actions.create(i.organization._id,t.value)}function p(){}return(n,y)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("section",b,[h,k,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(l,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"br-1px br-solid br-grey flex radius-small mn-b-thin"},[e.createElementVNode("div",E,[e.createVNode(_.default,{field:l.contact,"onUpdate:field":a=>l.contact=a,placeholder:"Email или телефон",class:"w-100 bg-white",validation:r.value},null,8,["field","onUpdate:field","validation"]),o>0?(e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("button",{onClick:a=>m(o),class:"button-small button"},"×",8,N)])):e.createCommentVNode("",!0)]),e.createVNode(v.default,{options:[{name:"Директор",value:"director"},{name:"Менеджер",value:"manager"},{name:"Сотрудник",value:"member"}],prop:l,content:"role",placeholder:"Роль",size:"small",class:"w-80"},null,8,["prop"])]))),128)),e.createElementVNode("div",{onClick:d,class:"mn-b-small flex-v-center flex-nowrap flex"},w),e.createVNode(f.default,{submit:n.a=()=>u(c.state.invites),callback:p,class:"mn-t-medium"},{default:e.withCtx(()=>[B]),_:1},8,["submit"])])]))}};exports.default=x;
|