@ozdao/prometheus-framework 0.2.308 → 0.2.310
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/products.server.js +196 -198
- package/dist/products.server.mjs +196 -198
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +2 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +3 -2
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js.map +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +93 -0
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +94 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs +0 -93
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js +1 -94
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js.map +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +2 -2
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +2 -2
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +13 -12
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +13 -12
- package/dist/prometheus-framework/src/components/Field/Field.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +13 -12
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +13 -12
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/auth.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/auth.client.js +1 -0
- package/dist/prometheus-framework/src/modules/auth/auth.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.cjs +58 -78
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.js +78 -98
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Profile.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +90 -85
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.js +94 -89
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ProfileEdit.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.js +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs +19 -1
- package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/router/users.js +19 -1
- package/dist/prometheus-framework/src/modules/auth/views/router/users.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/store/auth.cjs +6 -2
- package/dist/prometheus-framework/src/modules/auth/views/store/auth.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/store/auth.js +6 -2
- package/dist/prometheus-framework/src/modules/auth/views/store/auth.js.map +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +3 -5
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +4 -6
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +9 -9
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js.map +1 -1
- 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.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js.map +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs +2 -1
- package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/router/blogposts.js +2 -1
- package/dist/prometheus-framework/src/modules/community/router/blogposts.js.map +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 +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +4 -2
- package/dist/prometheus-framework/src/modules/globals/globals.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.js +2 -0
- package/dist/prometheus-framework/src/modules/globals/globals.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/classes/store.cjs +57 -0
- package/dist/prometheus-framework/src/modules/globals/views/classes/store.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/classes/store.js +57 -0
- package/dist/prometheus-framework/src/modules/globals/views/classes/store.js.map +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/BottomNavigationBar.vue.cjs +75 -114
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/BottomNavigationBar.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/BottomNavigationBar.vue.js +76 -115
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/BottomNavigationBar.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +7 -7
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.cjs +4 -0
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.js +4 -0
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.js.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconCatalog.vue.cjs +36 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconCatalog.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconCatalog.vue.js +36 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconCatalog.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.cjs +36 -24
- package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.js +36 -24
- package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconGroups.vue.cjs +21 -12
- package/dist/prometheus-framework/src/modules/icons/entities/IconGroups.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconGroups.vue.js +21 -12
- package/dist/prometheus-framework/src/modules/icons/entities/IconGroups.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconHome.vue.cjs +36 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconHome.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconHome.vue.js +36 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconHome.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonBlogpost.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonBlogpost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonBlogpost.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEvent.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEvent.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEventShort.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEventShort.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEventShort.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEventShort.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonOrganization.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonOrganization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonOrganization.vue.js.map +1 -1
- 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 +1 -1
- 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/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +2 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +15 -16
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js.map +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +1117 -1117
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +1117 -1117
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.js.map +1 -1
- 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 +11 -10
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +11 -10
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +78 -43
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +83 -48
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +79 -29
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +90 -40
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js.map +1 -1
- 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/ProductEdit.vue.cjs +120 -81
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +133 -94
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +39 -21
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +51 -33
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/CategoriesTree.vue.cjs +96 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/CategoriesTree.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/CategoriesTree.vue.js +96 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/CategoriesTree.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +20 -6
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +20 -6
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/router/categories.router.cjs +17 -5
- package/dist/prometheus-framework/src/modules/products/router/categories.router.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/router/categories.router.js +17 -5
- package/dist/prometheus-framework/src/modules/products/router/categories.router.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/router/products.router.cjs +1 -12
- package/dist/prometheus-framework/src/modules/products/router/products.router.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/router/products.router.js +1 -12
- package/dist/prometheus-framework/src/modules/products/router/products.router.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/categories.cjs +52 -71
- package/dist/prometheus-framework/src/modules/products/store/categories.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/categories.js +52 -71
- package/dist/prometheus-framework/src/modules/products/store/categories.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +6 -8
- package/dist/prometheus-framework/src/modules/products/store/products.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.js +6 -8
- package/dist/prometheus-framework/src/modules/products/store/products.js.map +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
- package/dist/prometheus-framework.cjs.js +21 -21
- package/dist/prometheus-framework.es.js +910 -910
- package/package.json +1 -1
- package/src/components/Block/Block.vue +1 -1
- package/src/components/Completion/Completion.vue +1 -0
- package/src/components/EditImages/EditImages.vue +1 -1
- package/src/components/Feed/Feed.vue +1 -1
- package/src/components/Field/Field.vue +1 -1
- package/src/modules/auth/auth.client.js +2 -0
- package/src/modules/auth/views/components/pages/Profile.vue +57 -35
- package/src/modules/auth/views/components/pages/ProfileEdit.vue +91 -77
- package/src/modules/auth/views/middlewares/auth.validation.js +1 -0
- package/src/modules/auth/views/router/users.js +21 -2
- package/src/modules/auth/views/store/auth.js +6 -2
- package/src/modules/backoffice/components/pages/Dashboard.vue +1 -3
- package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
- package/src/modules/community/components/blocks/FooterBlogpost.vue +3 -3
- package/src/modules/community/components/layouts/Community.vue +8 -8
- package/src/modules/community/components/pages/Blog.vue +1 -1
- package/src/modules/community/components/pages/BlogPost.vue +3 -3
- package/src/modules/community/components/pages/Community.vue +1 -1
- package/src/modules/community/components/sections/Comments.vue +2 -2
- package/src/modules/community/router/blogposts.js +4 -3
- package/src/modules/globals/globals.client.js +3 -0
- package/src/modules/globals/views/classes/store.js +63 -0
- package/src/modules/globals/views/components/partials/BottomNavigationBar.vue +87 -59
- package/src/modules/globals/views/components/partials/NavigationBar.vue +3 -3
- package/src/modules/globals/views/store/globals.js +5 -0
- package/src/modules/icons/entities/IconCatalog.vue +18 -0
- package/src/modules/icons/entities/IconCommunity.vue +15 -5
- package/src/modules/icons/entities/IconGroups.vue +7 -2
- package/src/modules/icons/entities/IconHome.vue +18 -0
- package/src/modules/icons/skeletons/SkeletonBlogpost.vue +1 -1
- package/src/modules/icons/skeletons/SkeletonEvent.vue +1 -1
- package/src/modules/icons/skeletons/SkeletonEventShort.vue +1 -1
- package/src/modules/icons/skeletons/SkeletonOrganization.vue +1 -1
- package/src/modules/organizations/components/pages/Organization.vue +1 -1
- package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +1 -2
- package/src/modules/products/components/blocks/CardCategory.vue +14 -3
- package/src/modules/products/components/blocks/CardProduct.vue +12 -11
- package/src/modules/products/components/pages/Categories.vue +120 -28
- package/src/modules/products/components/pages/CategoryEdit.vue +206 -151
- package/src/modules/products/components/pages/ProductEdit.vue +107 -69
- package/src/modules/products/components/pages/Products.vue +35 -20
- package/src/modules/products/components/sections/CategoriesTree.vue +102 -0
- package/src/modules/products/components/sections/EditProductInfo.vue +53 -40
- package/src/modules/products/controllers/categories.controller.js +177 -97
- package/src/modules/products/controllers/products.controller.js +4 -2
- package/src/modules/products/models/category.model.js +15 -66
- package/src/modules/products/models/product.model.js +15 -12
- package/src/modules/products/products.client.js +0 -1
- package/src/modules/products/router/categories.router.js +17 -5
- package/src/modules/products/router/products.router.js +0 -12
- package/src/modules/products/routes/categories.routes.js +5 -34
- package/src/modules/products/store/categories.js +69 -83
- package/src/modules/products/store/products.js +6 -8
- package/src/styles/base/shadow_transitions_hover_refactor.scss +2 -0
- package/src/styles/typography.scss +2 -2
- package/src/modules/auth/views/router/account.js +0 -41
package/dist/products.server.mjs
CHANGED
@@ -8,7 +8,13 @@ import { q as queryProcessor } from "./queryProcessor-CyQch65j.mjs";
|
|
8
8
|
const applyOwnershipSchema$1 = ownership_schema;
|
9
9
|
var product_model = (db) => {
|
10
10
|
const ProductSchema = new db.mongoose.Schema({
|
11
|
-
status: {
|
11
|
+
status: {
|
12
|
+
type: String
|
13
|
+
},
|
14
|
+
listing: {
|
15
|
+
type: String,
|
16
|
+
enum: ["sale", "rent"]
|
17
|
+
},
|
12
18
|
name: { type: String },
|
13
19
|
category: { type: Array },
|
14
20
|
description: { type: String },
|
@@ -23,7 +29,13 @@ var product_model = (db) => {
|
|
23
29
|
value: { type: String }
|
24
30
|
}],
|
25
31
|
// ЗАДАЧА: Нужно отрефачить price, перенести его в default variant
|
26
|
-
price: {
|
32
|
+
price: {
|
33
|
+
type: Number
|
34
|
+
},
|
35
|
+
price_currency: {
|
36
|
+
type: String,
|
37
|
+
default: "$"
|
38
|
+
},
|
27
39
|
prices: { type: Array },
|
28
40
|
//
|
29
41
|
variants: [{
|
@@ -70,16 +82,7 @@ var product_model = (db) => {
|
|
70
82
|
min: [0, "Quantity-based discount cannot be less than 0"],
|
71
83
|
max: [100, "Quantity-based discount cannot be more than 100"]
|
72
84
|
}
|
73
|
-
}]
|
74
|
-
// Refactor
|
75
|
-
owner: {
|
76
|
-
type: db.mongoose.Schema.Types.ObjectId,
|
77
|
-
ref: "User"
|
78
|
-
},
|
79
|
-
organization: {
|
80
|
-
type: db.mongoose.Schema.Types.ObjectId,
|
81
|
-
ref: "Organization"
|
82
|
-
}
|
85
|
+
}]
|
83
86
|
}, {
|
84
87
|
timestamps: {
|
85
88
|
currentTime: () => Date.now()
|
@@ -92,76 +95,26 @@ var product_model = (db) => {
|
|
92
95
|
return Product;
|
93
96
|
};
|
94
97
|
var category_model = (db) => {
|
95
|
-
const
|
96
|
-
name: {
|
97
|
-
type: String,
|
98
|
-
required: true,
|
99
|
-
trim: true
|
100
|
-
},
|
98
|
+
const CategorySchema = new db.mongoose.Schema({
|
99
|
+
name: { type: String, required: true, trim: true },
|
101
100
|
status: {
|
102
101
|
type: String,
|
103
102
|
enum: ["draft", "internal", "published", "removed"],
|
104
103
|
default: "draft",
|
105
104
|
required: true
|
106
105
|
},
|
107
|
-
order: {
|
108
|
-
|
109
|
-
|
110
|
-
},
|
111
|
-
|
112
|
-
type: String,
|
113
|
-
required: true,
|
114
|
-
trim: true
|
115
|
-
},
|
116
|
-
subcategories: {
|
117
|
-
type: Array
|
118
|
-
},
|
119
|
-
localization: {
|
120
|
-
type: Array
|
121
|
-
},
|
122
|
-
filters: {
|
123
|
-
type: Array
|
124
|
-
}
|
125
|
-
// owner: {
|
126
|
-
// type: {
|
127
|
-
// type: String,
|
128
|
-
// required: true
|
129
|
-
// },
|
130
|
-
// target: {
|
131
|
-
// type: mongoose.Schema.Types.ObjectId,
|
132
|
-
// ref: function (value) {
|
133
|
-
// if (this.owner.type === 'user') return 'User';
|
134
|
-
// if (this.owner.type === 'organization') return 'Organization';
|
135
|
-
// },
|
136
|
-
// required: true,
|
137
|
-
// },
|
138
|
-
// },
|
139
|
-
// creator: {
|
140
|
-
// hidden: {
|
141
|
-
// type: Boolean,
|
142
|
-
// required: true
|
143
|
-
// },
|
144
|
-
// type: {
|
145
|
-
// type: String,
|
146
|
-
// required: true
|
147
|
-
// },
|
148
|
-
// target: {
|
149
|
-
// type: mongoose.Schema.Types.ObjectId,
|
150
|
-
// ref: function (value) {
|
151
|
-
// if (this.owner.type === 'user') return 'User';
|
152
|
-
// if (this.owner.type === 'organization') return 'Organization';
|
153
|
-
// },
|
154
|
-
// required: true,
|
155
|
-
// },
|
156
|
-
// }
|
106
|
+
order: { type: Number, required: true },
|
107
|
+
url: { type: String, required: true, trim: true },
|
108
|
+
parent: { type: db.mongoose.Schema.Types.ObjectId, ref: "Category" },
|
109
|
+
localization: { type: Array },
|
110
|
+
filters: { type: Array }
|
157
111
|
}, {
|
158
|
-
timestamps: {
|
159
|
-
currentTime: () => Date.now()
|
160
|
-
}
|
112
|
+
timestamps: { currentTime: () => Date.now() }
|
161
113
|
});
|
162
|
-
|
163
|
-
|
164
|
-
|
114
|
+
CategorySchema.index({ parent: 1 });
|
115
|
+
CategorySchema.index({ "owner.target": 1, "creator.target": 1 });
|
116
|
+
const Category = db.mongoose.model("Category", CategorySchema, "categories");
|
117
|
+
return Category;
|
165
118
|
};
|
166
119
|
const applyOwnershipSchema = ownership_schema;
|
167
120
|
var leftover_model = (db) => {
|
@@ -213,7 +166,7 @@ var leftover_model = (db) => {
|
|
213
166
|
const Leftover = db.mongoose.model("Leftover", LeftoverSchema);
|
214
167
|
return Leftover;
|
215
168
|
};
|
216
|
-
const ObjectId = require$$0.Types.ObjectId;
|
169
|
+
const ObjectId$1 = require$$0.Types.ObjectId;
|
217
170
|
const OpenAI = require$$3;
|
218
171
|
const openai = new OpenAI({
|
219
172
|
organization: process.env.OPENAI_ORG_KEY,
|
@@ -236,18 +189,18 @@ const controllerFactory$5 = (db) => {
|
|
236
189
|
const Read = async (req, res) => {
|
237
190
|
try {
|
238
191
|
const query = {};
|
239
|
-
if (req.query.
|
240
|
-
query.
|
192
|
+
if (req.query.owner) {
|
193
|
+
query["owner.target"] = new ObjectId$1(req.query.owner);
|
241
194
|
}
|
242
195
|
if (req.query._id) {
|
243
|
-
query._id = new ObjectId(req.query._id);
|
196
|
+
query._id = new ObjectId$1(req.query._id);
|
244
197
|
}
|
245
198
|
if (req.query.status) {
|
246
199
|
query.status = req.query.status;
|
247
200
|
}
|
248
201
|
const categories = req.query.categories?.split(",") || [];
|
249
202
|
if (categories.length) {
|
250
|
-
query.category = { $in: categories.map((cat) => new ObjectId(cat)) };
|
203
|
+
query.category = { $in: categories.map((cat) => new ObjectId$1(cat)) };
|
251
204
|
}
|
252
205
|
const deliveryOptions = req.query.delivery?.split(",") || [];
|
253
206
|
if (deliveryOptions.length) {
|
@@ -410,8 +363,10 @@ const controllerFactory$5 = (db) => {
|
|
410
363
|
{
|
411
364
|
name: req.body.name,
|
412
365
|
status: req.body.status,
|
366
|
+
listing: req.body.listing,
|
413
367
|
description: req.body.description,
|
414
368
|
price: req.body.price,
|
369
|
+
price_currency: req.body.price_currency,
|
415
370
|
sale: req.body.sale,
|
416
371
|
category: req.body.category,
|
417
372
|
images: req.body.images,
|
@@ -550,104 +505,168 @@ var products_routes = function(app, db, allowedOrigins) {
|
|
550
505
|
controller.getProductRecommendation
|
551
506
|
);
|
552
507
|
};
|
508
|
+
var categories_routes = { exports: {} };
|
509
|
+
const ObjectId = require$$0.Types.ObjectId;
|
553
510
|
const controllerFactory$3 = (db) => {
|
554
511
|
const Category = db.category;
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
512
|
+
return {
|
513
|
+
async read(req, res) {
|
514
|
+
try {
|
515
|
+
let buildTree = function(items) {
|
516
|
+
const itemMap = {};
|
517
|
+
const roots = [];
|
518
|
+
items.forEach((item) => {
|
519
|
+
itemMap[item._id.toString()] = {
|
520
|
+
...item,
|
521
|
+
children: []
|
522
|
+
};
|
523
|
+
});
|
524
|
+
items.forEach((item) => {
|
525
|
+
const itemId = item._id.toString();
|
526
|
+
const parentId = item.parent?._id?.toString();
|
527
|
+
if (parentId && itemMap[parentId]) {
|
528
|
+
itemMap[parentId].children.push(itemMap[itemId]);
|
529
|
+
} else {
|
530
|
+
roots.push(itemMap[itemId]);
|
531
|
+
}
|
532
|
+
});
|
533
|
+
const sortByOrder = (a, b) => {
|
534
|
+
const orderA = a.order ?? Number.MAX_SAFE_INTEGER;
|
535
|
+
const orderB = b.order ?? Number.MAX_SAFE_INTEGER;
|
536
|
+
return orderA - orderB;
|
537
|
+
};
|
538
|
+
const sortChildren = (node) => {
|
539
|
+
if (node.children && node.children.length > 0) {
|
540
|
+
node.children.sort(sortByOrder);
|
541
|
+
node.children.forEach(sortChildren);
|
542
|
+
}
|
543
|
+
};
|
544
|
+
roots.sort(sortByOrder);
|
545
|
+
roots.forEach(sortChildren);
|
546
|
+
return roots;
|
547
|
+
};
|
548
|
+
const {
|
549
|
+
parent,
|
550
|
+
url,
|
551
|
+
search,
|
552
|
+
sort = "order",
|
553
|
+
order = 1,
|
554
|
+
page = 1,
|
555
|
+
limit = 10,
|
556
|
+
excludeChildren = false,
|
557
|
+
rootOnly = false
|
558
|
+
} = req.query;
|
559
|
+
const matchStage = {
|
560
|
+
...req.query.status && { status: req.query.status },
|
561
|
+
...req.query.url && { url: req.query.url },
|
562
|
+
...search && { name: { $regex: search, $options: "i" } },
|
563
|
+
...parent ? { parent: new mongoose.Types.ObjectId(parent) } : {},
|
564
|
+
...rootOnly ? { parent: null } : {}
|
565
|
+
};
|
566
|
+
const pipeline = [
|
567
|
+
{ $match: matchStage },
|
568
|
+
{
|
569
|
+
$graphLookup: {
|
570
|
+
from: "categories",
|
571
|
+
startWith: "$_id",
|
572
|
+
connectFromField: "_id",
|
573
|
+
connectToField: "parent",
|
574
|
+
as: "allDescendants",
|
575
|
+
maxDepth: 10
|
576
|
+
}
|
577
|
+
},
|
578
|
+
{ $sort: { [sort]: order === "asc" ? 1 : -1 } },
|
579
|
+
{ $skip: (page - 1) * limit },
|
580
|
+
{ $limit: Number(limit) }
|
581
|
+
];
|
582
|
+
const flatResults = await Category.aggregate(pipeline);
|
583
|
+
const treeResults = flatResults.map((doc) => {
|
584
|
+
const descendants = doc.allDescendants || [];
|
585
|
+
const allItems = [doc, ...descendants];
|
586
|
+
const tree = buildTree(allItems);
|
587
|
+
return tree.find((node) => node._id.toString() === doc._id.toString());
|
588
|
+
});
|
589
|
+
treeResults.sort((a, b) => {
|
590
|
+
const orderA = a.order ?? Number.MAX_SAFE_INTEGER;
|
591
|
+
const orderB = b.order ?? Number.MAX_SAFE_INTEGER;
|
592
|
+
return orderA - orderB;
|
593
|
+
});
|
594
|
+
res.json(treeResults);
|
595
|
+
} catch (err) {
|
596
|
+
res.status(500).json({ message: err.message });
|
566
597
|
}
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
598
|
+
},
|
599
|
+
async create(req, res) {
|
600
|
+
try {
|
601
|
+
const highestOrder = await Category.findOne().sort("-order");
|
602
|
+
const order = highestOrder ? highestOrder.order + 1 : 1;
|
603
|
+
const category = new Category({ ...req.body, order });
|
604
|
+
if (req.body.parent) {
|
605
|
+
const parent = await Category.findByIdAndUpdate(
|
606
|
+
req.body.parent,
|
607
|
+
{ $push: { children: category._id } },
|
608
|
+
{ new: true }
|
609
|
+
);
|
610
|
+
if (!parent) throw new Error("Parent category not found");
|
611
|
+
category.parent = parent._id;
|
581
612
|
}
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
try {
|
593
|
-
const category = await Category.findOne({ url: req.params.url }).exec();
|
594
|
-
if (!category) {
|
595
|
-
return res.status(404).send({ message: "Category not found." });
|
596
|
-
}
|
597
|
-
res.status(200).send(category);
|
598
|
-
} catch (err) {
|
599
|
-
res.status(500).send({ message: err });
|
600
|
-
}
|
601
|
-
};
|
602
|
-
const addCategory = async (req, res) => {
|
603
|
-
try {
|
604
|
-
const highestOrderDoc = await Category.findOne().sort("-order");
|
605
|
-
req.body.order = highestOrderDoc ? highestOrderDoc.order + 1 : 1;
|
606
|
-
const category = await Category.create(req.body);
|
607
|
-
if (!category) {
|
608
|
-
return res.status(404).send({ message: "Category is not created." });
|
613
|
+
if (req.body.children && req.body.children.length > 0) {
|
614
|
+
await Category.updateMany(
|
615
|
+
{ _id: { $in: req.body.children } },
|
616
|
+
{ $set: { parent: category._id } }
|
617
|
+
);
|
618
|
+
}
|
619
|
+
await category.save();
|
620
|
+
res.status(201).json(category);
|
621
|
+
} catch (err) {
|
622
|
+
res.status(err.message === "Parent category not found" ? 404 : 500).json({ message: err.message });
|
609
623
|
}
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
624
|
+
},
|
625
|
+
async update(req, res) {
|
626
|
+
try {
|
627
|
+
const { categories } = req.body;
|
628
|
+
const bulkOps = categories.map((category) => ({
|
629
|
+
updateOne: {
|
630
|
+
filter: { _id: category._id },
|
631
|
+
update: {
|
632
|
+
$set: {
|
633
|
+
order: category.order,
|
634
|
+
parent: category.parent ? new ObjectId(category.parent) : null
|
635
|
+
}
|
636
|
+
}
|
637
|
+
}
|
638
|
+
}));
|
639
|
+
await Category.bulkWrite(bulkOps);
|
640
|
+
const updatedCategories = await Category.find().sort({ order: "asc" }).lean();
|
641
|
+
res.status(200).json(updatedCategories);
|
642
|
+
} catch (err) {
|
643
|
+
console.error("Category update error:", err);
|
644
|
+
res.status(500).json({ message: "Failed to update categories" });
|
626
645
|
}
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
646
|
+
},
|
647
|
+
async delete(req, res) {
|
648
|
+
try {
|
649
|
+
const category = await Category.findOne({ url: req.body.url });
|
650
|
+
if (!category) throw new Error("Category not found");
|
651
|
+
const deleteSubcategories = async (categoryId) => {
|
652
|
+
const cat = await Category.findById(categoryId);
|
653
|
+
if (cat) {
|
654
|
+
for (const childId of cat.children) {
|
655
|
+
await deleteSubcategories(childId);
|
656
|
+
}
|
657
|
+
await Category.findByIdAndDelete(categoryId);
|
658
|
+
}
|
659
|
+
};
|
660
|
+
if (category.parent) {
|
661
|
+
await Category.findByIdAndUpdate(category.parent, { $pull: { children: category._id } });
|
662
|
+
}
|
663
|
+
await deleteSubcategories(category._id);
|
664
|
+
res.status(200).json({ message: "Category deleted successfully" });
|
665
|
+
} catch (err) {
|
666
|
+
res.status(err.message === "Category not found" ? 404 : 500).json({ message: err.message });
|
637
667
|
}
|
638
|
-
res.status(200).send(category);
|
639
|
-
} catch (err) {
|
640
|
-
res.status(500).send({ message: err });
|
641
668
|
}
|
642
669
|
};
|
643
|
-
return {
|
644
|
-
getCategories,
|
645
|
-
updateCategories,
|
646
|
-
getCategory,
|
647
|
-
addCategory,
|
648
|
-
updateCategory,
|
649
|
-
deleteCategory
|
650
|
-
};
|
651
670
|
};
|
652
671
|
var categories_controller = controllerFactory$3;
|
653
672
|
var verifyCategory;
|
@@ -685,37 +704,16 @@ const middlewareIndexFactory = (db) => {
|
|
685
704
|
var middlewares = middlewareIndexFactory;
|
686
705
|
const controllerFactory$2 = categories_controller;
|
687
706
|
const middlewareFactoryProducts = middlewares;
|
688
|
-
|
707
|
+
categories_routes.exports = function(app, db) {
|
689
708
|
const controller = controllerFactory$2(db);
|
690
709
|
const { verifyCategory: verifyCategory2 } = middlewareFactoryProducts(db);
|
691
|
-
app.get(
|
692
|
-
|
693
|
-
|
694
|
-
);
|
695
|
-
app.post(
|
696
|
-
"/categories",
|
697
|
-
controller.updateCategories
|
698
|
-
);
|
699
|
-
app.get(
|
700
|
-
"/categories/:url",
|
701
|
-
controller.getCategory
|
702
|
-
);
|
703
|
-
app.post(
|
704
|
-
"/categories/add",
|
705
|
-
[
|
706
|
-
verifyCategory2.checkCategoryExistOrNot
|
707
|
-
],
|
708
|
-
controller.addCategory
|
709
|
-
);
|
710
|
-
app.post(
|
711
|
-
"/categories/:url",
|
712
|
-
controller.updateCategory
|
713
|
-
);
|
714
|
-
app.delete(
|
715
|
-
"/categories/:url",
|
716
|
-
controller.deleteCategory
|
717
|
-
);
|
710
|
+
app.get("/api/categories", controller.read);
|
711
|
+
app.post("/api/categories/create", [verifyCategory2.checkCategoryExistOrNot], controller.create);
|
712
|
+
app.post("/api/categories/update", controller.update);
|
713
|
+
app.post("/api/categories/delete", controller.delete);
|
718
714
|
};
|
715
|
+
categories_routes.exports.controllerFactory = controllerFactory$2;
|
716
|
+
var categories_routesExports = categories_routes.exports;
|
719
717
|
const queryProcessorGlobals = queryProcessor;
|
720
718
|
const controllerFactory$1 = (db) => {
|
721
719
|
const Leftover = db.leftover;
|
@@ -863,7 +861,7 @@ const ProductModel = product_model;
|
|
863
861
|
const CategoryModel = category_model;
|
864
862
|
const LeftoverModel = leftover_model;
|
865
863
|
const productsRoutes = products_routes;
|
866
|
-
const categoriesRoutes =
|
864
|
+
const categoriesRoutes = categories_routesExports;
|
867
865
|
const leftoversRoutes = leftovers_routes;
|
868
866
|
const ProductController = products_controller;
|
869
867
|
const CategoryController = categories_controller;
|
@@ -874,7 +872,7 @@ function initializeProduct(app, db, origins, publicPath) {
|
|
874
872
|
db.leftover = LeftoverModel(db);
|
875
873
|
if (app) {
|
876
874
|
productsRoutes(app, db);
|
877
|
-
categoriesRoutes(app, db);
|
875
|
+
categoriesRoutes(app, db, origins, publicPath);
|
878
876
|
leftoversRoutes(app, db);
|
879
877
|
}
|
880
878
|
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
4
|
const Tooltip = require("../Tooltip/Tooltip.vue2.cjs");
|
5
|
-
const _hoisted_1 = { class: "bg-light pd-medium radius-
|
5
|
+
const _hoisted_1 = { class: "bg-light pd-medium radius-medium" };
|
6
6
|
const _hoisted_2 = {
|
7
7
|
key: 0,
|
8
8
|
class: "mn-b-small flex-v-center flex-nowrap flex"
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Block.vue.cjs","sources":["../../../../../src/components/Block/Block.vue"],"sourcesContent":["<template>\n\t<div \n class=\"bg-light pd-medium radius-
|
1
|
+
{"version":3,"file":"Block.vue.cjs","sources":["../../../../../src/components/Block/Block.vue"],"sourcesContent":["<template>\n\t<div \n class=\"bg-light pd-medium radius-medium\"\n >\n \t<div v-if=\"title || actions\" class=\"mn-b-small flex-v-center flex-nowrap flex\">\n \t\t<h4 v-if=\"title\" class=\"mn-r-thin t-medium\">{{title}}</h4>\n \t\t\t\n \t\t<button \n \t\t\tv-for=\"action in actions\" \n \t\t\t@click=\"action.function\" \n \t\t\tclass=\"pd-thin button-delete button\"\n \t\t\t:class=\"action.class || 'bg-main radius-small t-center i-medium'\"\n \t\t>\n \t\t\t{{action.label}}\n \t\t</button>\n\n \t\t<Tooltip v-if=\"tooltip\" :text=\"tooltip\">\n\t <p class=\"bg-main radius-small t-center i-medium\">i</p>\n\t </Tooltip>\n \t</div>\n\n \t<span \n v-if=\"!hasSlotContent($slots.default)\" \n class=\"w-100\"\n >\n {{placeholder}}\n </span> \n\n \t<slot></slot>\n\t</div>\n</template>\n\n<script setup>\nimport { ref, defineProps, useSlots, Comment } from 'vue';\n\n\nimport Tooltip from '@pf/src/components/Tooltip/Tooltip.vue'\n\nconst slots = useSlots()\n\nconst hasSlotContent = (slot, slotProps = {}) => {\n\tif (!slot) return false;\n\n\treturn slot(slotProps).some((vnode) => {\n\t\tif (Array.isArray(vnode.children)) {\n\t\t\treturn !!vnode.children.length;\n\t\t}\n\n\t\treturn vnode.type !== Comment;\n\t});\n};\n\n// defineProps объявление\nconst props = defineProps({\n\ttitle: {\n\t\ttype: String,\n\t\tdefault: null\n\t},\n\ttooltip: {\n\t\ttype: String,\n\t\tdefault: null\n\t},\n\tactions: {\n\t\ttype: Array,\n\t\tdefault: null\n\t},\n\tplaceholder: {\n\t\ttype: String,\n\t\tdefault: 'Nothing here'\n\t},\n options: {\n type: Object,\n default: {\n \ttheme: 'white'\n }\n },\n})\n</script>"],"names":["useSlots","Comment"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCcA,QAAAA,SAAU;AAExB,UAAM,iBAAiB,CAAC,MAAM,YAAY,OAAO;AAChD,UAAI,CAAC,KAAM,QAAO;AAElB,aAAO,KAAK,SAAS,EAAE,KAAK,CAAC,UAAU;AACtC,YAAI,MAAM,QAAQ,MAAM,QAAQ,GAAG;AAClC,iBAAO,CAAC,CAAC,MAAM,SAAS;AAAA,QACxB;AAED,eAAO,MAAM,SAASC;MACxB,CAAE;AAAA,IACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { useSlots, openBlock, createElementBlock, toDisplayString, createCommentVNode, Fragment, renderList, normalizeClass, createBlock, withCtx, createElementVNode, renderSlot, Comment } from "vue";
|
2
2
|
import _sfc_main$1 from "../Tooltip/Tooltip.vue2.js";
|
3
|
-
const _hoisted_1 = { class: "bg-light pd-medium radius-
|
3
|
+
const _hoisted_1 = { class: "bg-light pd-medium radius-medium" };
|
4
4
|
const _hoisted_2 = {
|
5
5
|
key: 0,
|
6
6
|
class: "mn-b-small flex-v-center flex-nowrap flex"
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Block.vue.js","sources":["../../../../../src/components/Block/Block.vue"],"sourcesContent":["<template>\n\t<div \n class=\"bg-light pd-medium radius-
|
1
|
+
{"version":3,"file":"Block.vue.js","sources":["../../../../../src/components/Block/Block.vue"],"sourcesContent":["<template>\n\t<div \n class=\"bg-light pd-medium radius-medium\"\n >\n \t<div v-if=\"title || actions\" class=\"mn-b-small flex-v-center flex-nowrap flex\">\n \t\t<h4 v-if=\"title\" class=\"mn-r-thin t-medium\">{{title}}</h4>\n \t\t\t\n \t\t<button \n \t\t\tv-for=\"action in actions\" \n \t\t\t@click=\"action.function\" \n \t\t\tclass=\"pd-thin button-delete button\"\n \t\t\t:class=\"action.class || 'bg-main radius-small t-center i-medium'\"\n \t\t>\n \t\t\t{{action.label}}\n \t\t</button>\n\n \t\t<Tooltip v-if=\"tooltip\" :text=\"tooltip\">\n\t <p class=\"bg-main radius-small t-center i-medium\">i</p>\n\t </Tooltip>\n \t</div>\n\n \t<span \n v-if=\"!hasSlotContent($slots.default)\" \n class=\"w-100\"\n >\n {{placeholder}}\n </span> \n\n \t<slot></slot>\n\t</div>\n</template>\n\n<script setup>\nimport { ref, defineProps, useSlots, Comment } from 'vue';\n\n\nimport Tooltip from '@pf/src/components/Tooltip/Tooltip.vue'\n\nconst slots = useSlots()\n\nconst hasSlotContent = (slot, slotProps = {}) => {\n\tif (!slot) return false;\n\n\treturn slot(slotProps).some((vnode) => {\n\t\tif (Array.isArray(vnode.children)) {\n\t\t\treturn !!vnode.children.length;\n\t\t}\n\n\t\treturn vnode.type !== Comment;\n\t});\n};\n\n// defineProps объявление\nconst props = defineProps({\n\ttitle: {\n\t\ttype: String,\n\t\tdefault: null\n\t},\n\ttooltip: {\n\t\ttype: String,\n\t\tdefault: null\n\t},\n\tactions: {\n\t\ttype: Array,\n\t\tdefault: null\n\t},\n\tplaceholder: {\n\t\ttype: String,\n\t\tdefault: 'Nothing here'\n\t},\n options: {\n type: Object,\n default: {\n \ttheme: 'white'\n }\n },\n})\n</script>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCc,aAAU;AAExB,UAAM,iBAAiB,CAAC,MAAM,YAAY,OAAO;AAChD,UAAI,CAAC,KAAM,QAAO;AAElB,aAAO,KAAK,SAAS,EAAE,KAAK,CAAC,UAAU;AACtC,YAAI,MAAM,QAAQ,MAAM,QAAQ,GAAG;AAClC,iBAAO,CAAC,CAAC,MAAM,SAAS;AAAA,QACxB;AAED,eAAO,MAAM,SAAS;AAAA,MACxB,CAAE;AAAA,IACF;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
4
|
;/* empty css */
|
5
|
-
const _hoisted_1 = { class: "
|
5
|
+
const _hoisted_1 = { class: "font-main" };
|
6
6
|
const _hoisted_2 = { class: "t-truncate" };
|
7
7
|
const _hoisted_3 = {
|
8
8
|
key: 1,
|
@@ -15,6 +15,7 @@ const _sfc_main = {
|
|
15
15
|
return (_ctx, _cache) => {
|
16
16
|
var _a;
|
17
17
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
18
|
+
vue.renderSlot(_ctx.$slots, "default"),
|
18
19
|
((_a = __props.chips) == null ? void 0 : _a.length) ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(__props.chips, (chip, index) => {
|
19
20
|
return vue.openBlock(), vue.createElementBlock("span", {
|
20
21
|
class: vue.normalizeClass([_ctx.$attrs.class || "p-medium font-main", "mn-r-nano d-inline-block w-max pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-medium bg-main"])
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Chips.vue2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"Chips.vue2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { openBlock, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, toDisplayString
|
1
|
+
import { openBlock, createElementBlock, renderSlot, Fragment, renderList, normalizeClass, createElementVNode, toDisplayString } from "vue";
|
2
2
|
/* empty css */
|
3
|
-
const _hoisted_1 = { class: "
|
3
|
+
const _hoisted_1 = { class: "font-main" };
|
4
4
|
const _hoisted_2 = { class: "t-truncate" };
|
5
5
|
const _hoisted_3 = {
|
6
6
|
key: 1,
|
@@ -13,6 +13,7 @@ const _sfc_main = {
|
|
13
13
|
return (_ctx, _cache) => {
|
14
14
|
var _a;
|
15
15
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
16
|
+
renderSlot(_ctx.$slots, "default"),
|
16
17
|
((_a = __props.chips) == null ? void 0 : _a.length) ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(__props.chips, (chip, index) => {
|
17
18
|
return openBlock(), createElementBlock("span", {
|
18
19
|
class: normalizeClass([_ctx.$attrs.class || "p-medium font-main", "mn-r-nano d-inline-block w-max pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-medium bg-main"])
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Chips.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"Chips.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|