@ozdao/prometheus-framework 0.2.221 → 0.2.223
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +4 -4
- package/dist/auth.server.mjs +4 -4
- package/dist/builder.js +72 -60
- package/dist/builder.mjs +72 -60
- package/dist/community.server.js +9 -4
- package/dist/community.server.mjs +9 -4
- package/dist/events.server.js +14 -24
- package/dist/events.server.mjs +14 -24
- package/dist/files.server.js +1 -1
- package/dist/files.server.mjs +1 -1
- package/dist/gallery.server.js +42 -76
- package/dist/gallery.server.mjs +41 -75
- package/dist/index-CsS7qx1d.js +243 -0
- package/dist/index-UIHE6Rk3.mjs +244 -0
- package/dist/main.css +1 -1
- package/dist/node_modules/@capacitor/core/dist/index.cjs +529 -0
- package/dist/node_modules/@capacitor/core/dist/index.cjs.map +1 -0
- package/dist/node_modules/@capacitor/core/dist/index.js +530 -0
- package/dist/node_modules/@capacitor/core/dist/index.js.map +1 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.cjs +51 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.cjs.map +1 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.js +55 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/definitions.js.map +1 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.cjs +25 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.cjs.map +1 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.js +13 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.js.map +1 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.cjs +67 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.cjs.map +1 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.js +67 -0
- package/dist/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.js.map +1 -0
- package/dist/node_modules/@unhead/shared/dist/index.cjs +7 -0
- package/dist/node_modules/@unhead/shared/dist/index.cjs.map +1 -0
- package/dist/node_modules/@unhead/shared/dist/index.js +7 -0
- package/dist/node_modules/@unhead/shared/dist/index.js.map +1 -0
- package/dist/node_modules/@unhead/ssr/dist/index.cjs +87 -0
- package/dist/node_modules/@unhead/ssr/dist/index.cjs.map +1 -0
- package/dist/node_modules/@unhead/ssr/dist/index.js +87 -0
- package/dist/node_modules/@unhead/ssr/dist/index.js.map +1 -0
- package/dist/orders.server.js +2 -2
- package/dist/orders.server.mjs +2 -2
- package/dist/organizations.server.js +174 -95
- package/dist/organizations.server.mjs +174 -95
- package/dist/pages.server.js +1 -1
- package/dist/pages.server.mjs +1 -1
- package/dist/products.server.js +119 -266
- package/dist/products.server.mjs +119 -266
- package/dist/prometheus-framework/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.cjs +814 -0
- package/dist/prometheus-framework/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.cjs.map +1 -0
- package/dist/prometheus-framework/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js +814 -0
- package/dist/prometheus-framework/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js.map +1 -0
- package/dist/prometheus-framework/node_modules/@vue/shared/dist/shared.esm-bundler.cjs +210 -0
- package/dist/prometheus-framework/node_modules/@vue/shared/dist/shared.esm-bundler.cjs.map +1 -0
- package/dist/prometheus-framework/node_modules/@vue/shared/dist/shared.esm-bundler.js +210 -0
- package/dist/prometheus-framework/node_modules/@vue/shared/dist/shared.esm-bundler.js.map +1 -0
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -2
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -2
- package/dist/prometheus-framework/src/components/Button/Button.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +26 -41
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +27 -42
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +6 -8
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +6 -8
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +2 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +2 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +2 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +2 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.cjs +5 -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 +5 -0
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/ownership.validation.cjs +44 -0
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/ownership.validation.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/ownership.validation.js +44 -0
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/ownership.validation.js.map +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/store/auth.cjs +37 -35
- 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 +33 -31
- package/dist/prometheus-framework/src/modules/auth/views/store/auth.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/store/twofa.cjs +3 -5
- package/dist/prometheus-framework/src/modules/auth/views/store/twofa.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/store/twofa.js +2 -4
- package/dist/prometheus-framework/src/modules/auth/views/store/twofa.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.cjs +8 -5
- package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.js +8 -5
- package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +4 -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 +4 -2
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +13 -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 +14 -10
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +53 -40
- 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 +58 -45
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +16 -15
- 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 +16 -15
- 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 +4 -4
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs +47 -43
- package/dist/prometheus-framework/src/modules/community/router/blogposts.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/router/blogposts.js +47 -43
- package/dist/prometheus-framework/src/modules/community/router/blogposts.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +13 -20
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +9 -16
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +5 -9
- package/dist/prometheus-framework/src/modules/community/store/reactions.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -5
- package/dist/prometheus-framework/src/modules/community/store/reactions.js.map +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 +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/elements/ButtonCheck.vue.cjs +29 -54
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +30 -55
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +163 -134
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +165 -136
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +124 -135
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +133 -144
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.cjs +96 -0
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.js +96 -0
- package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.js.map +1 -0
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs +39 -25
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js +40 -26
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js.map +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.cjs +4 -3
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.js +4 -3
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.cjs +16 -5
- package/dist/prometheus-framework/src/modules/events/router/events.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.js +16 -5
- package/dist/prometheus-framework/src/modules/events/router/events.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.cjs +5 -6
- package/dist/prometheus-framework/src/modules/events/store/events.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.js +1 -2
- package/dist/prometheus-framework/src/modules/events/store/events.js.map +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +20 -11
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +20 -11
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.cjs +5 -2
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.js +5 -2
- package/dist/prometheus-framework/src/modules/gallery/router/gallery.backoffice.router.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +2 -0
- 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/globals.store.cjs +4 -3
- package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.js +4 -3
- package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/Card.vue.cjs +64 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/Card.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/Card.vue.js +64 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/Card.vue.js.map +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -19
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +1 -19
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/LocationSelection.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/LocationSelection.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.cjs +3 -2
- 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 +3 -2
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/utils/axios-instance.cjs +17 -0
- package/dist/prometheus-framework/src/modules/globals/views/utils/axios-instance.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/utils/axios-instance.js +17 -0
- package/dist/prometheus-framework/src/modules/globals/views/utils/axios-instance.js.map +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/utils/vue-app-renderer.cjs +57 -0
- package/dist/prometheus-framework/src/modules/globals/views/utils/vue-app-renderer.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/utils/vue-app-renderer.js +57 -0
- package/dist/prometheus-framework/src/modules/globals/views/utils/vue-app-renderer.js.map +1 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionGuide.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/SectionGuide.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +6 -7
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -2
- package/dist/prometheus-framework/src/modules/orders/store/orders.js.map +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 +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/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +60 -23
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +60 -23
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +2 -1
- 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 +3 -2
- 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/organizations/components/sections/Documents.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- 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 +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +2 -0
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +2 -0
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +11 -9
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +6 -4
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +5 -11
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -7
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.js.map +1 -1
- package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +807 -801
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +807 -801
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.cjs +5 -10
- package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.js +5 -10
- package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.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 +12 -7
- 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 +12 -7
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +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/Product.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/categories.cjs +7 -8
- package/dist/prometheus-framework/src/modules/products/store/categories.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -2
- package/dist/prometheus-framework/src/modules/products/store/categories.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +6 -7
- package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -2
- package/dist/prometheus-framework/src/modules/products/store/leftovers.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +10 -21
- package/dist/prometheus-framework/src/modules/products/store/products.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.js +1 -12
- package/dist/prometheus-framework/src/modules/products/store/products.js.map +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.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/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Spot.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +6 -9
- package/dist/prometheus-framework/src/modules/spots/store/spots.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -4
- package/dist/prometheus-framework/src/modules/spots/store/spots.js.map +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +4 -4
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/router/users.cjs +2 -2
- package/dist/prometheus-framework/src/modules/users/router/users.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/users/router/users.js +2 -2
- package/dist/prometheus-framework/src/modules/users/router/users.js.map +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.cjs +5 -6
- package/dist/prometheus-framework/src/modules/users/store/users.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.js +1 -2
- package/dist/prometheus-framework/src/modules/users/store/users.js.map +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.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 +17 -17
- package/dist/prometheus-framework.es.js +1790 -1790
- package/dist/queryProcessor-CU4A6Y4N.mjs +197 -0
- package/dist/queryProcessor-CcsJEUBr.js +196 -0
- package/dist/spots.server.js +1 -1
- package/dist/spots.server.mjs +1 -1
- package/dist/verifyAccesses-BsrJOct8.mjs +90 -0
- package/dist/verifyAccesses-BvLnOtBN.js +89 -0
- package/dist/wallet.server.js +2 -2
- package/dist/wallet.server.mjs +2 -2
- package/package.json +1 -1
- package/src/builder/modes/ssr.dev.js +2 -2
- package/src/builder/modes/ssr.prod.js +4 -4
- package/src/builder/ssr/ssr-render-html.js +11 -13
- package/src/builder/templates/page.html +37 -0
- package/src/builder/templates/page.js +4 -0
- package/src/builder/webpack/webpack.config.client.js +9 -6
- package/src/builder/webpack/webpack.config.ssr.js +1 -1
- package/src/components/Button/Button.vue +0 -1
- package/src/components/Feed/Feed.vue +34 -55
- package/src/components/FieldTags/BlockTags.vue +0 -1
- package/src/components/UploadImage/UploadImage.vue +2 -1
- package/src/modules/auth/controllers/middlewares/authJwt.js +1 -1
- package/src/modules/auth/controllers/middlewares/verifySignUp.js +11 -11
- package/src/modules/auth/controllers/routes/auth.routes.js +2 -2
- package/src/modules/auth/controllers/services/auth.service.js +1 -0
- package/src/modules/auth/views/components/pages/SignIn.vue +1 -0
- package/src/modules/auth/views/middlewares/auth.validation.js +17 -1
- package/src/modules/auth/views/middlewares/ownership.validation.js +60 -0
- package/src/modules/auth/views/store/auth.js +43 -39
- package/src/modules/auth/views/store/twofa.js +2 -5
- package/src/modules/auth/views/validations/inputs.validation.js +12 -6
- package/src/modules/community/components/blocks/CardBlogpost.vue +3 -1
- package/src/modules/community/components/layouts/Community.vue +7 -9
- package/src/modules/community/components/pages/BlogPost.vue +122 -123
- package/src/modules/community/components/pages/CreateBlogPost.vue +1 -1
- package/src/modules/community/components/sections/Comments.vue +5 -5
- package/src/modules/community/controllers/blog.controller.js +1 -1
- package/src/modules/community/models/blogpost.model.js +1 -1
- package/src/modules/community/router/blogposts.js +40 -33
- package/src/modules/community/routes/blog.routes.js +4 -0
- package/src/modules/community/store/blogposts.js +11 -19
- package/src/modules/community/store/reactions.js +1 -7
- package/src/modules/events/components/elements/ButtonCheck.vue +36 -66
- package/src/modules/events/components/pages/EditEvent.vue +76 -59
- package/src/modules/events/components/pages/Event.vue +2 -15
- package/src/modules/events/components/pages/Events.vue +2 -1
- package/src/modules/events/components/pages/EventsBackoffice.vue +122 -0
- package/src/modules/events/components/sections/HeroEvent.vue +15 -17
- package/src/modules/events/components/sections/SectionPreviousEvents.vue +4 -13
- package/src/modules/events/router/events.js +11 -4
- package/src/modules/events/store/events.js +2 -4
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +24 -13
- package/src/modules/gallery/controllers/gallery.controller.js +30 -31
- package/src/modules/gallery/router/gallery.backoffice.router.js +5 -1
- package/src/modules/gallery/routes/gallery.routes.js +22 -4
- package/src/modules/globals/controllers/utils/queryProcessor.js +24 -4
- package/src/modules/globals/globals.client.js +2 -0
- package/src/modules/globals/views/classes/globals.store.js +4 -3
- package/src/modules/globals/views/components/blocks/Card.vue +56 -0
- package/src/modules/globals/views/components/blocks/CardHeader.vue +1 -3
- package/src/modules/globals/views/components/layouts/App.vue +1 -0
- package/src/modules/globals/views/components/layouts/Client.vue +0 -30
- package/src/modules/globals/views/store/globals.js +4 -2
- package/src/modules/globals/views/utils/axios-instance.js +18 -0
- package/src/modules/globals/views/utils/vue-app-renderer.js +87 -0
- package/src/modules/integrations/stripe/controllers/services/stripe.service.js +15 -30
- package/src/modules/landing/components/pages/Governance.vue +4 -2
- package/src/modules/landing/components/sections/SectionHeroToken.vue +12 -10
- package/src/modules/landing/components/sections/SectionsSection.vue +5 -8
- package/src/modules/landing/router/landing.js +2 -1
- package/src/modules/orders/store/orders.js +1 -3
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +36 -0
- package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +3 -1
- package/src/modules/organizations/controllers/organizations.controller.js +28 -35
- package/src/modules/organizations/middlewares/verifyAccesses.js +117 -0
- package/src/modules/organizations/models/department.model.js +3 -86
- package/src/modules/organizations/models/organization.model.js +6 -4
- package/src/modules/organizations/models/schemas/accesses.schema.js +142 -0
- package/src/modules/organizations/router/organizations.js +2 -0
- package/src/modules/organizations/store/departments.js +6 -6
- package/src/modules/organizations/store/organizations.js +2 -16
- package/src/modules/pages/views/router/pages.backoffice.router.js +5 -7
- package/src/modules/products/components/blocks/CardProduct.vue +2 -0
- package/src/modules/products/components/pages/Product.vue +1 -1
- package/src/modules/products/components/sections/MenuSection.vue +2 -2
- package/src/modules/products/controllers/products.controller.js +201 -367
- package/src/modules/products/routes/products.routes.js +0 -5
- package/src/modules/products/store/categories.js +1 -2
- package/src/modules/products/store/leftovers.js +1 -2
- package/src/modules/products/store/products.js +1 -13
- package/src/modules/reports/components/sections/FormReport.vue +20 -20
- package/src/modules/spots/store/spots.js +1 -6
- package/src/modules/users/components/pages/Profile.vue +1 -1
- package/src/modules/users/router/users.js +2 -2
- package/src/modules/users/store/users.js +1 -3
- package/src/styles/base/all.scss +0 -2
- package/src/styles/config.scss +6 -0
- package/src/modules/auth/controllers/middlewares/verifyAccesses.js +0 -114
- package/src/modules/users/components/pages/ProfileEvents.vue +0 -69
package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js
CHANGED
@@ -5,13 +5,13 @@ import "vue-i18n";
|
|
5
5
|
/* empty css */
|
6
6
|
import _sfc_main$3 from "../../../../components/UploadImage/UploadImage.vue.js";
|
7
7
|
/* empty css */
|
8
|
-
import Field from "../../../../components/Field/Field.
|
8
|
+
import Field from "../../../../components/Field/Field.vue.js";
|
9
9
|
/* empty css */
|
10
10
|
import _sfc_main$8 from "../../../../components/Checkbox/Checkbox.vue.js";
|
11
11
|
import "../../../../../../node_modules/@googlemaps/js-api-loader/dist/index.js";
|
12
|
-
/* empty css
|
13
|
-
/* empty css
|
14
|
-
/* empty css
|
12
|
+
/* empty css */
|
13
|
+
/* empty css */
|
14
|
+
/* empty css */
|
15
15
|
import _sfc_main$1 from "../../../../components/Button/Button.vue.js";
|
16
16
|
import _sfc_main$6 from "../../../../components/Popup/Popup.vue.js";
|
17
17
|
import _sfc_main$2 from "../../../../components/Block/Block.vue.js";
|
@@ -45,10 +45,11 @@ const _hoisted_13 = { class: "bg-light pd-medium o-hidden radius-big" };
|
|
45
45
|
const _hoisted_14 = /* @__PURE__ */ createElementVNode("h3", { class: "mn-b-semi" }, "Acessess", -1);
|
46
46
|
const _hoisted_15 = /* @__PURE__ */ createElementVNode("p", { class: "p-medium mn-b-small" }, "Please select organization accesses for user in department:", -1);
|
47
47
|
const _hoisted_16 = { class: "cols-1 gap-thin" };
|
48
|
-
const _hoisted_17 = /* @__PURE__ */ createElementVNode("h4", null, "
|
49
|
-
const _hoisted_18 = /* @__PURE__ */ createElementVNode("h4", null, "
|
50
|
-
const _hoisted_19 = /* @__PURE__ */ createElementVNode("h4", null, "
|
51
|
-
const _hoisted_20 = /* @__PURE__ */ createElementVNode("h4", null, "
|
48
|
+
const _hoisted_17 = /* @__PURE__ */ createElementVNode("h4", null, "Events", -1);
|
49
|
+
const _hoisted_18 = /* @__PURE__ */ createElementVNode("h4", null, "Gallery", -1);
|
50
|
+
const _hoisted_19 = /* @__PURE__ */ createElementVNode("h4", null, "Products", -1);
|
51
|
+
const _hoisted_20 = /* @__PURE__ */ createElementVNode("h4", null, "Orders", -1);
|
52
|
+
const _hoisted_21 = /* @__PURE__ */ createElementVNode("h4", null, "Departments", -1);
|
52
53
|
const _sfc_main = {
|
53
54
|
__name: "DepartmentEdit",
|
54
55
|
setup(__props) {
|
@@ -262,92 +263,128 @@ const _sfc_main = {
|
|
262
263
|
_hoisted_15,
|
263
264
|
createElementVNode("div", _hoisted_16, [
|
264
265
|
_hoisted_17,
|
266
|
+
createVNode(_sfc_main$8, {
|
267
|
+
label: "Read events",
|
268
|
+
name: "readProducts",
|
269
|
+
class: "w-100 mn-r-small bg-white radius-small pd-small",
|
270
|
+
radio: state.department.accesses.events.read,
|
271
|
+
"onUpdate:radio": _cache[4] || (_cache[4] = (updated) => state.department.accesses.events.read = !state.department.accesses.events.read)
|
272
|
+
}, null, 8, ["radio"]),
|
273
|
+
createVNode(_sfc_main$8, {
|
274
|
+
label: "Create events",
|
275
|
+
name: "editProducts",
|
276
|
+
class: "w-100 mn-r-small bg-white radius-small pd-small",
|
277
|
+
radio: state.department.accesses.events.create,
|
278
|
+
"onUpdate:radio": _cache[5] || (_cache[5] = (updated) => state.department.accesses.events.create = !state.department.accesses.events.create)
|
279
|
+
}, null, 8, ["radio"]),
|
280
|
+
createVNode(_sfc_main$8, {
|
281
|
+
label: "Edit events",
|
282
|
+
name: "editProducts",
|
283
|
+
class: "w-100 mn-r-small bg-white radius-small pd-small",
|
284
|
+
radio: state.department.accesses.events.edit,
|
285
|
+
"onUpdate:radio": _cache[6] || (_cache[6] = (updated) => state.department.accesses.events.edit = !state.department.accesses.events.edit)
|
286
|
+
}, null, 8, ["radio"]),
|
287
|
+
createVNode(_sfc_main$8, {
|
288
|
+
label: "Delete events",
|
289
|
+
name: "deleteProducts",
|
290
|
+
class: "w-100 bg-white radius-small pd-small",
|
291
|
+
radio: state.department.accesses.events.delete,
|
292
|
+
"onUpdate:radio": _cache[7] || (_cache[7] = (updated) => state.department.accesses.events.delete = !state.department.accesses.events.delete)
|
293
|
+
}, null, 8, ["radio"]),
|
294
|
+
_hoisted_18,
|
265
295
|
createVNode(_sfc_main$8, {
|
266
296
|
label: "Read gallery",
|
267
297
|
name: "readProducts",
|
268
298
|
class: "w-100 mn-r-small bg-white radius-small pd-small",
|
269
299
|
radio: state.department.accesses.gallery.read,
|
270
|
-
"onUpdate:radio": _cache[
|
300
|
+
"onUpdate:radio": _cache[8] || (_cache[8] = (updated) => state.department.accesses.gallery.read = !state.department.accesses.gallery.read)
|
301
|
+
}, null, 8, ["radio"]),
|
302
|
+
createVNode(_sfc_main$8, {
|
303
|
+
label: "Create photos",
|
304
|
+
name: "editProducts",
|
305
|
+
class: "w-100 mn-r-small bg-white radius-small pd-small",
|
306
|
+
radio: state.department.accesses.gallery.create,
|
307
|
+
"onUpdate:radio": _cache[9] || (_cache[9] = (updated) => state.department.accesses.gallery.create = !state.department.accesses.gallery.create)
|
271
308
|
}, null, 8, ["radio"]),
|
272
309
|
createVNode(_sfc_main$8, {
|
273
310
|
label: "Edit gallery",
|
274
311
|
name: "editProducts",
|
275
312
|
class: "w-100 mn-r-small bg-white radius-small pd-small",
|
276
313
|
radio: state.department.accesses.gallery.edit,
|
277
|
-
"onUpdate:radio": _cache[
|
314
|
+
"onUpdate:radio": _cache[10] || (_cache[10] = (updated) => state.department.accesses.gallery.edit = !state.department.accesses.gallery.edit)
|
278
315
|
}, null, 8, ["radio"]),
|
279
316
|
createVNode(_sfc_main$8, {
|
280
317
|
label: "Delete gallery",
|
281
318
|
name: "deleteProducts",
|
282
319
|
class: "w-100 bg-white radius-small pd-small",
|
283
320
|
radio: state.department.accesses.gallery.delete,
|
284
|
-
"onUpdate:radio": _cache[
|
321
|
+
"onUpdate:radio": _cache[11] || (_cache[11] = (updated) => state.department.accesses.gallery.delete = !state.department.accesses.gallery.delete)
|
285
322
|
}, null, 8, ["radio"]),
|
286
|
-
|
323
|
+
_hoisted_19,
|
287
324
|
createVNode(_sfc_main$8, {
|
288
325
|
label: "Read products",
|
289
326
|
name: "readProducts",
|
290
327
|
class: "w-100 mn-r-small bg-white radius-small pd-small",
|
291
328
|
radio: state.department.accesses.products.read,
|
292
|
-
"onUpdate:radio": _cache[
|
329
|
+
"onUpdate:radio": _cache[12] || (_cache[12] = (updated) => state.department.accesses.products.read = !state.department.accesses.products.read)
|
293
330
|
}, null, 8, ["radio"]),
|
294
331
|
createVNode(_sfc_main$8, {
|
295
332
|
label: "Edit products",
|
296
333
|
name: "editProducts",
|
297
334
|
class: "w-100 mn-r-small bg-white radius-small pd-small",
|
298
335
|
radio: state.department.accesses.products.edit,
|
299
|
-
"onUpdate:radio": _cache[
|
336
|
+
"onUpdate:radio": _cache[13] || (_cache[13] = (updated) => state.department.accesses.products.edit = !state.department.accesses.products.edit)
|
300
337
|
}, null, 8, ["radio"]),
|
301
338
|
createVNode(_sfc_main$8, {
|
302
339
|
label: "Delete products",
|
303
340
|
name: "deleteProducts",
|
304
341
|
class: "w-100 bg-white radius-small pd-small",
|
305
342
|
radio: state.department.accesses.products.delete,
|
306
|
-
"onUpdate:radio": _cache[
|
343
|
+
"onUpdate:radio": _cache[14] || (_cache[14] = (updated) => state.department.accesses.products.delete = !state.department.accesses.products.delete)
|
307
344
|
}, null, 8, ["radio"]),
|
308
|
-
|
345
|
+
_hoisted_20,
|
309
346
|
createVNode(_sfc_main$8, {
|
310
347
|
label: "Read orders",
|
311
348
|
name: "readOrders",
|
312
349
|
class: "w-100 mn-r-small bg-white radius-small pd-small",
|
313
350
|
radio: state.department.accesses.orders.read,
|
314
|
-
"onUpdate:radio": _cache[
|
351
|
+
"onUpdate:radio": _cache[15] || (_cache[15] = (updated) => state.department.accesses.orders.read = !state.department.accesses.orders.read)
|
315
352
|
}, null, 8, ["radio"]),
|
316
353
|
createVNode(_sfc_main$8, {
|
317
354
|
label: "Confirm orders",
|
318
355
|
name: "confirmOrders",
|
319
356
|
class: "w-100 mn-r-small bg-white radius-small pd-small",
|
320
357
|
radio: state.department.accesses.orders.confirm,
|
321
|
-
"onUpdate:radio": _cache[
|
358
|
+
"onUpdate:radio": _cache[16] || (_cache[16] = (updated) => state.department.accesses.orders.confirm = !state.department.accesses.orders.confirm)
|
322
359
|
}, null, 8, ["radio"]),
|
323
360
|
createVNode(_sfc_main$8, {
|
324
361
|
label: "Delete orders",
|
325
362
|
name: "deleteOrders",
|
326
363
|
class: "w-100 bg-white radius-small pd-small",
|
327
364
|
radio: state.department.accesses.orders.delete,
|
328
|
-
"onUpdate:radio": _cache[
|
365
|
+
"onUpdate:radio": _cache[17] || (_cache[17] = (updated) => state.department.accesses.orders.delete = !state.department.accesses.orders.delete)
|
329
366
|
}, null, 8, ["radio"]),
|
330
|
-
|
367
|
+
_hoisted_21,
|
331
368
|
createVNode(_sfc_main$8, {
|
332
369
|
label: "Read departments",
|
333
370
|
name: "readDepartments",
|
334
371
|
class: "w-100 mn-r-small bg-white radius-small pd-small",
|
335
372
|
radio: state.department.accesses.departments.read,
|
336
|
-
"onUpdate:radio": _cache[
|
373
|
+
"onUpdate:radio": _cache[18] || (_cache[18] = (updated) => state.department.accesses.departments.read = !state.department.accesses.departments.read)
|
337
374
|
}, null, 8, ["radio"]),
|
338
375
|
createVNode(_sfc_main$8, {
|
339
376
|
label: "Edit departments",
|
340
377
|
name: "editDepartments",
|
341
378
|
class: "w-100 mn-r-small bg-white radius-small pd-small",
|
342
379
|
radio: state.department.accesses.departments.edit,
|
343
|
-
"onUpdate:radio": _cache[
|
380
|
+
"onUpdate:radio": _cache[19] || (_cache[19] = (updated) => state.department.accesses.departments.edit = !state.department.accesses.departments.edit)
|
344
381
|
}, null, 8, ["radio"]),
|
345
382
|
createVNode(_sfc_main$8, {
|
346
383
|
label: "Delete departments",
|
347
384
|
name: "deleteDepartments",
|
348
385
|
class: "w-100 bg-white radius-small pd-small",
|
349
386
|
radio: state.department.accesses.departments.delete,
|
350
|
-
"onUpdate:radio": _cache[
|
387
|
+
"onUpdate:radio": _cache[20] || (_cache[20] = (updated) => state.department.accesses.departments.delete = !state.department.accesses.departments.delete)
|
351
388
|
}, null, 8, ["radio"])
|
352
389
|
])
|
353
390
|
])
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DepartmentEdit.vue.js","sources":["../../../../../../../src/modules/organizations/components/pages/DepartmentEdit.vue"],"sourcesContent":["<template>\n <div class=\"for-transition pd-thin w-100\">\n\n <header class=\"mn-b-thin flex-nowrap flex bg-light pd-medium radius-big\">\n <h1 v-if=\"route.params.department\" class=\"mn-r-auto\">Edit Department</h1>\n <h1 v-else class=\"mn-r-auto\">Create Department</h1>\n\n <section class=\"flex-nowrap flex gap-thin pd-thin\">\n <Button v-if=\"route.params.department\" :submit=\"onDelete\" :callback=\"redirectToDash\" class=\"bg-red\">Delete</Button>\n <Button :submit=\"onSubmit\" :callback=\"redirectTo\" class=\"bg-main\">Save</Button>\n </section>\n\n </header>\n \n <Block\n title=\"Profile\"\n v-if=\"departments.state.department.profile\"\n class=\"mn-b-thin\"\n >\n <div\n class=\"cols-2-fit-content\"\n >\n <UploadImage \n v-model:photo=\"departments.state.department.profile.photo\"\n :uploadPath=\"'organizations/' + departments.state.department.name + '/avatars'\"\n class=\"w-8r aspect-1x1 o-hidden mn-r-small radius-extra\" \n />\n <div class=\"w-100 flex-child-grow-1 flex-child \">\n <Field \n v-model:field=\"departments.state.department.profile.name\" \n label=\"Name\" \n placeholder=\"Department Name\" \n class=\"mn-b-small bg-white radius-small pd-medium\"\n :validation=\"organizationName\" \n />\n <Field \n v-model:field=\"departments.state.department.profile.description\" \n label=\"Description\" \n placeholder=\"Department description (max 120 symbols)\" \n class=\"bg-white radius-small pd-medium\"\n :validation=\"organizationName\" \n /> \n </div>\n </div>\n </Block>\n\n <Block\n title=\"Team\"\n placeholder=\"No members added yet\"\n :actions=\"[{\n label: '+',\n function: () => openMemberPopup()\n }]\"\n class=\"cols-1 gap-thin mn-b-thin\"\n > \n <CardUser \n class=\"h-4r bg-white pd-thin radius-medium w-100\" \n v-for=\"(member, index) in departments.state.department.members\" \n :key=\"index\" \n :user=\"member.user\" \n :photo=\"member.user.profile.photo\"\n :name=\"member.user.profile.name || member.user.phone || member.user.email || member.user._id\"\n :position=\"member.position\" \n :action=\"{\n label: {\n is: IconDelete,\n props: { class: 'i-medium', fill: 'rgb(var(--white)' }\n },\n method: () => removeMember(member)\n }\"\n />\n </Block>\n\n <Popup \n title=\"Add member\" \n @close-popup=\"closeMemberPopup\" \n :isPopupOpen=\"isOpenAddMemberPopup\"\n class=\"bg-white w-max-30r radius-big pd-big\"\n >\n <Feed\n :search=\"{\n placeholder: 'Search customer...',\n class: 'bg-light mn-b-thin'\n }\"\n :states=\"{\n empty: {\n title: 'No Products Found',\n description: 'Currently, there are no such products available.'\n }\n }\"\n :store=\"{\n read: (options) => memberships.actions.read(options),\n state: null\n }\"\n :options=\"{\n target: route.params._id\n }\"\n v-slot=\"{ \n items \n }\"\n class=\"bg-light pd-medium w-min-20r w-max-40r radius-big h-max-20r o-scroll\"\n >\n <CardUser\n v-for=\"(user, index) in items\" \n :key=\"user._id\"\n :user=\"user.user\"\n :photo=\"user.user.profile?.photo\"\n :name=\"user.user.profile?.name || user.user.phone || user.user.email\"\n @click=\"() => { \n globals.actions.add(departments.state.department.members, { _id: user.user._id, user: user.user, position: 'Member'})\n closeMemberPopup();\n }\"\n class=\"h-4r bg-white pd-thin radius-medium w-100 mn-b-thin\"\n />\n </Feed>\n </Popup>\n \n\n <div class=\"cols-2 gap-thin\">\n \n <div class=\"bg-light pd-medium o-hidden radius-big\">\n <h3 class=\"mn-b-semi\">Department Settings</h3>\n \n <p class=\"p-medium mn-b-small\">Please settings for your department:</p>\n <div class=\"cols-1 gap-thin\">\n <Checkbox \n label=\"Hidden department\"\n name=\"hidden\"\n class=\"w-100 mn-r-small bg-white radius-small pd-small\"\n @update:radio=\"updated => departments.state.department.hidden = !departments.state.department.hidden\"\n :radio=\"departments.state.department.hidden\"\n />\n </div>\n </div>\n\n <div class=\"bg-light pd-medium o-hidden radius-big\">\n <h3 class=\"mn-b-semi\">Acessess</h3>\n \n <p class=\"p-medium mn-b-small\">Please select organization accesses for user in department:</p>\n \n <div class=\"cols-1 gap-thin\">\n <h4>Gallery</h4>\n <Checkbox\n label=\"Read gallery\"\n name=\"readProducts\"\n class=\"w-100 mn-r-small bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.gallery.read\"\n @update:radio=\"updated => (departments.state.department.accesses.gallery.read = !departments.state.department.accesses.gallery.read)\"\n />\n <Checkbox\n label=\"Edit gallery\"\n name=\"editProducts\"\n class=\"w-100 mn-r-small bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.gallery.edit\"\n @update:radio=\"updated => (departments.state.department.accesses.gallery.edit = !departments.state.department.accesses.gallery.edit)\"\n />\n <Checkbox\n label=\"Delete gallery\"\n name=\"deleteProducts\"\n class=\"w-100 bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.gallery.delete\"\n @update:radio=\"updated => (departments.state.department.accesses.gallery.delete = !departments.state.department.accesses.gallery.delete)\"\n />\n <h4>Products</h4>\n <Checkbox\n label=\"Read products\"\n name=\"readProducts\"\n class=\"w-100 mn-r-small bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.products.read\"\n @update:radio=\"updated => (departments.state.department.accesses.products.read = !departments.state.department.accesses.products.read)\"\n />\n <Checkbox\n label=\"Edit products\"\n name=\"editProducts\"\n class=\"w-100 mn-r-small bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.products.edit\"\n @update:radio=\"updated => (departments.state.department.accesses.products.edit = !departments.state.department.accesses.products.edit)\"\n />\n <Checkbox\n label=\"Delete products\"\n name=\"deleteProducts\"\n class=\"w-100 bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.products.delete\"\n @update:radio=\"updated => (departments.state.department.accesses.products.delete = !departments.state.department.accesses.products.delete)\"\n />\n\n <h4>Orders</h4>\n <Checkbox\n label=\"Read orders\"\n name=\"readOrders\"\n class=\"w-100 mn-r-small bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.orders.read\"\n @update:radio=\"updated => (departments.state.department.accesses.orders.read = !departments.state.department.accesses.orders.read)\"\n />\n <Checkbox\n label=\"Confirm orders\"\n name=\"confirmOrders\"\n class=\"w-100 mn-r-small bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.orders.confirm\"\n @update:radio=\"updated => (departments.state.department.accesses.orders.confirm = !departments.state.department.accesses.orders.confirm)\"\n />\n <Checkbox\n label=\"Delete orders\"\n name=\"deleteOrders\"\n class=\"w-100 bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.orders.delete\"\n @update:radio=\"updated => (departments.state.department.accesses.orders.delete = !departments.state.department.accesses.orders.delete)\"\n />\n\n <h4>Departments</h4>\n <Checkbox\n label=\"Read departments\"\n name=\"readDepartments\" class=\"w-100 mn-r-small bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.departments.read\"\n @update:radio=\"updated => (departments.state.department.accesses.departments.read = !departments.state.department.accesses.departments.read)\"\n />\n <Checkbox\n label=\"Edit departments\"\n name=\"editDepartments\"\n class=\"w-100 mn-r-small bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.departments.edit\"\n @update:radio=\"updated => (departments.state.department.accesses.departments.edit = !departments.state.department.accesses.departments.edit)\"\n />\n <Checkbox\n label=\"Delete departments\"\n name=\"deleteDepartments\"\n class=\"w-100 bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.departments.delete\"\n @update:radio=\"updated => (departments.state.department.accesses.departments.delete = !departments.state.department.accesses.departments.delete)\"\n />\n </div>\n </div>\n\n\n </div>\n\n \n \n\n\n<!-- <div id=\"dash\" class=\"pd-medium bg-white\">\n\n <Popup title=\"Добавить подотдел\" @close-popup=\"closeDepartmentPopup\" :isPopupOpen=\"isOpenDepartmentPopup\">\n <DepartmentSubDepartmentModify \n :departments=\"departments.state.department.subdepartments\" \n :department=\"selectedDepartment\" \n :maindepartment=\"departments.state.department\"\n :alldepartments=\"departments.state.departments\"\n @callback=\"closeDepartmentPopup\"\n />\n </Popup>\n \n <div class=\"mn-b-regular flex-v-center flex-nowrap flex\">\n <h3 class=\"mn-r-small\">Подотделы </h3>\n <div>\n <a class=\"t-main h5\" @click=\"openDepartmentPopup()\">+</a>\n </div>\n </div>\n\n <ul class=\"mn-b-small\">\n <li v-if=\"departments.state.department.subdepartments.length < 1\">В отделе еще нет подотделов</li>\n <DepartmentSub \n v-for=\"(subdepartment, index) in departments.state.department.subdepartments\" \n :key=\"index\" class=\"bg-light o-hidden radius-small mn-b-thin\" \n :department=\"subdepartment\" \n @click=\"openDepartmentPopup(index)\"\n />\n </ul> \n\n \n </div> -->\n </div>\n</template>\n\n<script setup>\nimport { ref } from \"vue\";\nimport { useRoute, useRouter } from \"vue-router\";\nimport Cookies from \"js-cookie\";\nimport Breadcrumbs from '@pf/src/components/Breadcrumbs/Breadcrumbs.vue'\nimport UploadImage from '@pf/src/components/UploadImage/UploadImage.vue';\n\nimport Tab from \"@pf/src/components/Tab/Tab.vue\";\nimport Field from \"@pf/src/components/Field/Field.vue\";\nimport Select from \"@pf/src/components/Select/Select.vue\";\nimport Checkbox from \"@pf/src/components/Checkbox/Checkbox.vue\";\nimport Address from \"@pf/src/components/Address/Address.vue\";\nimport LocationMarker from \"@pf/src/components/LocationMarker/LocationMarker.vue\";\nimport Button from \"@pf/src/components/Button/Button.vue\";\nimport Popup from \"@pf/src/components/Popup/Popup.vue\";\nimport Block from '@pf/src/components/Block/Block.vue';\nimport Feed from '@pf/src/components/Feed/Feed.vue'\n\nimport IconDelete from '@pf/src/modules/icons/navigation/IconDelete.vue'\n\nimport EditArray from \"@pf/src/modules/organizations/components/blocks/EditArray.vue\";\nimport DepartmentSub from \"@pf/src/modules/organizations/components/blocks/DepartmentSub.vue\";\n\nimport CardUser from '@pf/src/modules/users/components/blocks/CardUser.vue'\n\nimport * as globals from \"@pf/src/modules/globals/views/store/globals\";\nimport * as departments from \"@pf/src/modules/organizations/store/departments\";\nimport * as memberships from \"@pf/src/modules/organizations/store/memberships\";\n\nconst router = useRouter();\nconst route = useRoute();\n\nasync function fetchData() {\n const users = ref(memberships.state.memberships);\n // await departments.actions.read({organization: route.params._id});\n if (route.params.department) await departments.actions.readOne(route.params.department);\n}\n\nfetchData();\n\n// const members = ref(departments.state.department.members);\n\nconst isOpenAddMemberPopup = ref(false);\nconst selectedMember = ref(null);\n\nfunction openMemberPopup(member) {\n isOpenAddMemberPopup.value = true;\n if (typeof member === \"number\") selectedMember.value = member;\n}\n\nfunction closeMemberPopup() {\n isOpenAddMemberPopup.value = false;\n selectedMember.value = null;\n}\n\nconst isOpenDepartmentPopup = ref(false);\nconst selectedDepartment = ref(null);\n\nfunction openDepartmentPopup(department) {\n isOpenDepartmentPopup.value = true;\n if (typeof department === \"number\") selectedDepartment.value = department;\n}\n\nfunction closeDepartmentPopup() {\n isOpenDepartmentPopup.value = false;\n selectedDepartment.value = null;\n}\n\nasync function onSubmit() {\n if (route.params.department) {\n await departments.actions.update(\n route.params._id,\n departments.state.department\n );\n }\n if (!route.params.department) {\n await departments.actions.create(\n route.params._id,\n departments.state.department\n );\n }\n}\n\nfunction redirectTo() {\n router.push({ name: \"Organization Members\", params: { _id: route.params._id } });\n}\n\nasync function onDelete() {\n if (confirm(\"Are you sure you want to delete this department?\")) {\n await departments.actions.delete(\n route.params._id,\n departments.state.department\n );\n }\n \n}\n\nfunction removeMember(member) {\n if (confirm(\"Are you sure you want to remove this member?\")) {\n globals.actions.delete(departments.state.department.members, { _id: member.user._id}) \n }\n}\n\nfunction redirectDash() {\n router.replace({ name: \"Organization\" });\n}\n</script>\n\n<style scoped>\n</style>"],"names":["memberships.state","departments.actions","departments.state","globals.actions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+SA,UAAM,SAAS,UAAS;AACxB,UAAM,QAAQ,SAAQ;AAEtB,mBAAe,YAAY;AACX,UAAIA,QAAkB,WAAW;AAE/C,UAAI,MAAM,OAAO,WAAY,OAAMC,UAAoB,QAAQ,MAAM,OAAO,UAAU;AAAA,IACxF;AAEA;AAIA,UAAM,uBAAuB,IAAI,KAAK;AACtC,UAAM,iBAAiB,IAAI,IAAI;AAE/B,aAAS,gBAAgB,QAAQ;AAC/B,2BAAqB,QAAQ;AAAA,IAE/B;AAEA,aAAS,mBAAmB;AAC1B,2BAAqB,QAAQ;AAC7B,qBAAe,QAAQ;AAAA,IACzB;AAE8B,QAAI,KAAK;AACZ,QAAI,IAAI;AAYnC,mBAAe,WAAW;AACxB,UAAI,MAAM,OAAO,YAAY;AAC3B,cAAMA,UAAoB;AAAA,UACxB,MAAM,OAAO;AAAA,UACbC,MAAkB;AAAA,QACxB;AAAA,MACG;AACD,UAAI,CAAC,MAAM,OAAO,YAAY;AAC5B,cAAMD,UAAoB;AAAA,UACxB,MAAM,OAAO;AAAA,UACbC,MAAkB;AAAA,QACxB;AAAA,MACG;AAAA,IACH;AAEA,aAAS,aAAa;AACpB,aAAO,KAAK,EAAE,MAAM,wBAAwB,QAAQ,EAAE,KAAK,MAAM,OAAO,IAAG,EAAI,CAAA;AAAA,IACjF;AAEA,mBAAe,WAAW;AACxB,UAAI,QAAQ,kDAAkD,GAAG;AAC/D,cAAMD,UAAoB;AAAA,UACxB,MAAM,OAAO;AAAA,UACbC,MAAkB;AAAA,QACxB;AAAA,MACG;AAAA,IAEH;AAEA,aAAS,aAAa,QAAQ;AAC3B,UAAI,QAAQ,8CAA8C,GAAG;AAC5DC,kBAAgB,OAAOD,MAAkB,WAAW,SAAS,EAAE,KAAK,OAAO,KAAK,IAAG,CAAC;AAAA,MACrF;AAAA,IACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
1
|
+
{"version":3,"file":"DepartmentEdit.vue.js","sources":["../../../../../../../src/modules/organizations/components/pages/DepartmentEdit.vue"],"sourcesContent":["<template>\n <div class=\"for-transition pd-thin w-100\">\n\n <header class=\"mn-b-thin flex-nowrap flex bg-light pd-medium radius-big\">\n <h1 v-if=\"route.params.department\" class=\"mn-r-auto\">Edit Department</h1>\n <h1 v-else class=\"mn-r-auto\">Create Department</h1>\n\n <section class=\"flex-nowrap flex gap-thin pd-thin\">\n <Button v-if=\"route.params.department\" :submit=\"onDelete\" :callback=\"redirectToDash\" class=\"bg-red\">Delete</Button>\n <Button :submit=\"onSubmit\" :callback=\"redirectTo\" class=\"bg-main\">Save</Button>\n </section>\n\n </header>\n \n <Block\n title=\"Profile\"\n v-if=\"departments.state.department.profile\"\n class=\"mn-b-thin\"\n >\n <div\n class=\"cols-2-fit-content\"\n >\n <UploadImage \n v-model:photo=\"departments.state.department.profile.photo\"\n :uploadPath=\"'organizations/' + departments.state.department.name + '/avatars'\"\n class=\"w-8r aspect-1x1 o-hidden mn-r-small radius-extra\" \n />\n <div class=\"w-100 flex-child-grow-1 flex-child \">\n <Field \n v-model:field=\"departments.state.department.profile.name\" \n label=\"Name\" \n placeholder=\"Department Name\" \n class=\"mn-b-small bg-white radius-small pd-medium\"\n :validation=\"organizationName\" \n />\n <Field \n v-model:field=\"departments.state.department.profile.description\" \n label=\"Description\" \n placeholder=\"Department description (max 120 symbols)\" \n class=\"bg-white radius-small pd-medium\"\n :validation=\"organizationName\" \n /> \n </div>\n </div>\n </Block>\n\n <Block\n title=\"Team\"\n placeholder=\"No members added yet\"\n :actions=\"[{\n label: '+',\n function: () => openMemberPopup()\n }]\"\n class=\"cols-1 gap-thin mn-b-thin\"\n > \n <CardUser \n class=\"h-4r bg-white pd-thin radius-medium w-100\" \n v-for=\"(member, index) in departments.state.department.members\" \n :key=\"index\" \n :user=\"member.user\" \n :photo=\"member.user.profile.photo\"\n :name=\"member.user.profile.name || member.user.phone || member.user.email || member.user._id\"\n :position=\"member.position\" \n :action=\"{\n label: {\n is: IconDelete,\n props: { class: 'i-medium', fill: 'rgb(var(--white)' }\n },\n method: () => removeMember(member)\n }\"\n />\n </Block>\n\n <Popup \n title=\"Add member\" \n @close-popup=\"closeMemberPopup\" \n :isPopupOpen=\"isOpenAddMemberPopup\"\n class=\"bg-white w-max-30r radius-big pd-big\"\n >\n <Feed\n :search=\"{\n placeholder: 'Search customer...',\n class: 'bg-light mn-b-thin'\n }\"\n :states=\"{\n empty: {\n title: 'No Products Found',\n description: 'Currently, there are no such products available.'\n }\n }\"\n :store=\"{\n read: (options) => memberships.actions.read(options),\n state: null\n }\"\n :options=\"{\n target: route.params._id\n }\"\n v-slot=\"{ \n items \n }\"\n class=\"bg-light pd-medium w-min-20r w-max-40r radius-big h-max-20r o-scroll\"\n >\n <CardUser\n v-for=\"(user, index) in items\" \n :key=\"user._id\"\n :user=\"user.user\"\n :photo=\"user.user.profile?.photo\"\n :name=\"user.user.profile?.name || user.user.phone || user.user.email\"\n @click=\"() => { \n globals.actions.add(departments.state.department.members, { _id: user.user._id, user: user.user, position: 'Member'})\n closeMemberPopup();\n }\"\n class=\"h-4r bg-white pd-thin radius-medium w-100 mn-b-thin\"\n />\n </Feed>\n </Popup>\n \n\n <div class=\"cols-2 gap-thin\">\n \n <div class=\"bg-light pd-medium o-hidden radius-big\">\n <h3 class=\"mn-b-semi\">Department Settings</h3>\n \n <p class=\"p-medium mn-b-small\">Please settings for your department:</p>\n <div class=\"cols-1 gap-thin\">\n <Checkbox \n label=\"Hidden department\"\n name=\"hidden\"\n class=\"w-100 mn-r-small bg-white radius-small pd-small\"\n @update:radio=\"updated => departments.state.department.hidden = !departments.state.department.hidden\"\n :radio=\"departments.state.department.hidden\"\n />\n </div>\n </div>\n\n <div class=\"bg-light pd-medium o-hidden radius-big\">\n <h3 class=\"mn-b-semi\">Acessess</h3>\n \n <p class=\"p-medium mn-b-small\">Please select organization accesses for user in department:</p>\n \n <div class=\"cols-1 gap-thin\">\n <h4>Events</h4>\n <Checkbox\n label=\"Read events\"\n name=\"readProducts\"\n class=\"w-100 mn-r-small bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.events.read\"\n @update:radio=\"updated => (departments.state.department.accesses.events.read = !departments.state.department.accesses.events.read)\"\n />\n <Checkbox\n label=\"Create events\"\n name=\"editProducts\"\n class=\"w-100 mn-r-small bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.events.create\"\n @update:radio=\"updated => (departments.state.department.accesses.events.create = !departments.state.department.accesses.events.create)\"\n />\n <Checkbox\n label=\"Edit events\"\n name=\"editProducts\"\n class=\"w-100 mn-r-small bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.events.edit\"\n @update:radio=\"updated => (departments.state.department.accesses.events.edit = !departments.state.department.accesses.events.edit)\"\n />\n <Checkbox\n label=\"Delete events\"\n name=\"deleteProducts\"\n class=\"w-100 bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.events.delete\"\n @update:radio=\"updated => (departments.state.department.accesses.events.delete = !departments.state.department.accesses.events.delete)\"\n />\n <h4>Gallery</h4>\n <Checkbox\n label=\"Read gallery\"\n name=\"readProducts\"\n class=\"w-100 mn-r-small bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.gallery.read\"\n @update:radio=\"updated => (departments.state.department.accesses.gallery.read = !departments.state.department.accesses.gallery.read)\"\n />\n <Checkbox\n label=\"Create photos\"\n name=\"editProducts\"\n class=\"w-100 mn-r-small bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.gallery.create\"\n @update:radio=\"updated => (departments.state.department.accesses.gallery.create = !departments.state.department.accesses.gallery.create)\"\n />\n <Checkbox\n label=\"Edit gallery\"\n name=\"editProducts\"\n class=\"w-100 mn-r-small bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.gallery.edit\"\n @update:radio=\"updated => (departments.state.department.accesses.gallery.edit = !departments.state.department.accesses.gallery.edit)\"\n />\n <Checkbox\n label=\"Delete gallery\"\n name=\"deleteProducts\"\n class=\"w-100 bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.gallery.delete\"\n @update:radio=\"updated => (departments.state.department.accesses.gallery.delete = !departments.state.department.accesses.gallery.delete)\"\n />\n <h4>Products</h4>\n <Checkbox\n label=\"Read products\"\n name=\"readProducts\"\n class=\"w-100 mn-r-small bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.products.read\"\n @update:radio=\"updated => (departments.state.department.accesses.products.read = !departments.state.department.accesses.products.read)\"\n />\n <Checkbox\n label=\"Edit products\"\n name=\"editProducts\"\n class=\"w-100 mn-r-small bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.products.edit\"\n @update:radio=\"updated => (departments.state.department.accesses.products.edit = !departments.state.department.accesses.products.edit)\"\n />\n <Checkbox\n label=\"Delete products\"\n name=\"deleteProducts\"\n class=\"w-100 bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.products.delete\"\n @update:radio=\"updated => (departments.state.department.accesses.products.delete = !departments.state.department.accesses.products.delete)\"\n />\n\n <h4>Orders</h4>\n <Checkbox\n label=\"Read orders\"\n name=\"readOrders\"\n class=\"w-100 mn-r-small bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.orders.read\"\n @update:radio=\"updated => (departments.state.department.accesses.orders.read = !departments.state.department.accesses.orders.read)\"\n />\n <Checkbox\n label=\"Confirm orders\"\n name=\"confirmOrders\"\n class=\"w-100 mn-r-small bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.orders.confirm\"\n @update:radio=\"updated => (departments.state.department.accesses.orders.confirm = !departments.state.department.accesses.orders.confirm)\"\n />\n <Checkbox\n label=\"Delete orders\"\n name=\"deleteOrders\"\n class=\"w-100 bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.orders.delete\"\n @update:radio=\"updated => (departments.state.department.accesses.orders.delete = !departments.state.department.accesses.orders.delete)\"\n />\n\n <h4>Departments</h4>\n <Checkbox\n label=\"Read departments\"\n name=\"readDepartments\" class=\"w-100 mn-r-small bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.departments.read\"\n @update:radio=\"updated => (departments.state.department.accesses.departments.read = !departments.state.department.accesses.departments.read)\"\n />\n <Checkbox\n label=\"Edit departments\"\n name=\"editDepartments\"\n class=\"w-100 mn-r-small bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.departments.edit\"\n @update:radio=\"updated => (departments.state.department.accesses.departments.edit = !departments.state.department.accesses.departments.edit)\"\n />\n <Checkbox\n label=\"Delete departments\"\n name=\"deleteDepartments\"\n class=\"w-100 bg-white radius-small pd-small\"\n :radio=\"departments.state.department.accesses.departments.delete\"\n @update:radio=\"updated => (departments.state.department.accesses.departments.delete = !departments.state.department.accesses.departments.delete)\"\n />\n </div>\n </div>\n\n\n </div>\n\n \n \n\n\n<!-- <div id=\"dash\" class=\"pd-medium bg-white\">\n\n <Popup title=\"Добавить подотдел\" @close-popup=\"closeDepartmentPopup\" :isPopupOpen=\"isOpenDepartmentPopup\">\n <DepartmentSubDepartmentModify \n :departments=\"departments.state.department.subdepartments\" \n :department=\"selectedDepartment\" \n :maindepartment=\"departments.state.department\"\n :alldepartments=\"departments.state.departments\"\n @callback=\"closeDepartmentPopup\"\n />\n </Popup>\n \n <div class=\"mn-b-regular flex-v-center flex-nowrap flex\">\n <h3 class=\"mn-r-small\">Подотделы </h3>\n <div>\n <a class=\"t-main h5\" @click=\"openDepartmentPopup()\">+</a>\n </div>\n </div>\n\n <ul class=\"mn-b-small\">\n <li v-if=\"departments.state.department.subdepartments.length < 1\">В отделе еще нет подотделов</li>\n <DepartmentSub \n v-for=\"(subdepartment, index) in departments.state.department.subdepartments\" \n :key=\"index\" class=\"bg-light o-hidden radius-small mn-b-thin\" \n :department=\"subdepartment\" \n @click=\"openDepartmentPopup(index)\"\n />\n </ul> \n\n \n </div> -->\n </div>\n</template>\n\n<script setup>\nimport { ref } from \"vue\";\nimport { useRoute, useRouter } from \"vue-router\";\nimport Cookies from \"js-cookie\";\nimport Breadcrumbs from '@pf/src/components/Breadcrumbs/Breadcrumbs.vue'\nimport UploadImage from '@pf/src/components/UploadImage/UploadImage.vue';\n\nimport Tab from \"@pf/src/components/Tab/Tab.vue\";\nimport Field from \"@pf/src/components/Field/Field.vue\";\nimport Select from \"@pf/src/components/Select/Select.vue\";\nimport Checkbox from \"@pf/src/components/Checkbox/Checkbox.vue\";\nimport Address from \"@pf/src/components/Address/Address.vue\";\nimport LocationMarker from \"@pf/src/components/LocationMarker/LocationMarker.vue\";\nimport Button from \"@pf/src/components/Button/Button.vue\";\nimport Popup from \"@pf/src/components/Popup/Popup.vue\";\nimport Block from '@pf/src/components/Block/Block.vue';\nimport Feed from '@pf/src/components/Feed/Feed.vue'\n\nimport IconDelete from '@pf/src/modules/icons/navigation/IconDelete.vue'\n\nimport EditArray from \"@pf/src/modules/organizations/components/blocks/EditArray.vue\";\nimport DepartmentSub from \"@pf/src/modules/organizations/components/blocks/DepartmentSub.vue\";\n\nimport CardUser from '@pf/src/modules/users/components/blocks/CardUser.vue'\n\nimport * as globals from \"@pf/src/modules/globals/views/store/globals\";\nimport * as departments from \"@pf/src/modules/organizations/store/departments\";\nimport * as memberships from \"@pf/src/modules/organizations/store/memberships\";\n\nconst router = useRouter();\nconst route = useRoute();\n\nasync function fetchData() {\n const users = ref(memberships.state.memberships);\n // await departments.actions.read({organization: route.params._id});\n if (route.params.department) await departments.actions.readOne(route.params.department);\n}\n\nfetchData();\n\n// const members = ref(departments.state.department.members);\n\nconst isOpenAddMemberPopup = ref(false);\nconst selectedMember = ref(null);\n\nfunction openMemberPopup(member) {\n isOpenAddMemberPopup.value = true;\n if (typeof member === \"number\") selectedMember.value = member;\n}\n\nfunction closeMemberPopup() {\n isOpenAddMemberPopup.value = false;\n selectedMember.value = null;\n}\n\nconst isOpenDepartmentPopup = ref(false);\nconst selectedDepartment = ref(null);\n\nfunction openDepartmentPopup(department) {\n isOpenDepartmentPopup.value = true;\n if (typeof department === \"number\") selectedDepartment.value = department;\n}\n\nfunction closeDepartmentPopup() {\n isOpenDepartmentPopup.value = false;\n selectedDepartment.value = null;\n}\n\nasync function onSubmit() {\n if (route.params.department) {\n await departments.actions.update(\n route.params._id,\n departments.state.department\n );\n }\n if (!route.params.department) {\n await departments.actions.create(\n route.params._id,\n departments.state.department\n );\n }\n}\n\nfunction redirectTo() {\n router.push({ name: \"Organization Members\", params: { _id: route.params._id } });\n}\n\nasync function onDelete() {\n if (confirm(\"Are you sure you want to delete this department?\")) {\n await departments.actions.delete(\n route.params._id,\n departments.state.department\n );\n }\n \n}\n\nfunction removeMember(member) {\n if (confirm(\"Are you sure you want to remove this member?\")) {\n globals.actions.delete(departments.state.department.members, { _id: member.user._id}) \n }\n}\n\nfunction redirectDash() {\n router.replace({ name: \"Organization\" });\n}\n</script>\n\n<style scoped>\n</style>"],"names":["memberships.state","departments.actions","departments.state","globals.actions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmVA,UAAM,SAAS,UAAS;AACxB,UAAM,QAAQ,SAAQ;AAEtB,mBAAe,YAAY;AACX,UAAIA,QAAkB,WAAW;AAE/C,UAAI,MAAM,OAAO,WAAY,OAAMC,UAAoB,QAAQ,MAAM,OAAO,UAAU;AAAA,IACxF;AAEA;AAIA,UAAM,uBAAuB,IAAI,KAAK;AACtC,UAAM,iBAAiB,IAAI,IAAI;AAE/B,aAAS,gBAAgB,QAAQ;AAC/B,2BAAqB,QAAQ;AAAA,IAE/B;AAEA,aAAS,mBAAmB;AAC1B,2BAAqB,QAAQ;AAC7B,qBAAe,QAAQ;AAAA,IACzB;AAE8B,QAAI,KAAK;AACZ,QAAI,IAAI;AAYnC,mBAAe,WAAW;AACxB,UAAI,MAAM,OAAO,YAAY;AAC3B,cAAMA,UAAoB;AAAA,UACxB,MAAM,OAAO;AAAA,UACbC,MAAkB;AAAA,QACxB;AAAA,MACG;AACD,UAAI,CAAC,MAAM,OAAO,YAAY;AAC5B,cAAMD,UAAoB;AAAA,UACxB,MAAM,OAAO;AAAA,UACbC,MAAkB;AAAA,QACxB;AAAA,MACG;AAAA,IACH;AAEA,aAAS,aAAa;AACpB,aAAO,KAAK,EAAE,MAAM,wBAAwB,QAAQ,EAAE,KAAK,MAAM,OAAO,IAAG,EAAI,CAAA;AAAA,IACjF;AAEA,mBAAe,WAAW;AACxB,UAAI,QAAQ,kDAAkD,GAAG;AAC/D,cAAMD,UAAoB;AAAA,UACxB,MAAM,OAAO;AAAA,UACbC,MAAkB;AAAA,QACxB;AAAA,MACG;AAAA,IAEH;AAEA,aAAS,aAAa,QAAQ;AAC3B,UAAI,QAAQ,8CAA8C,GAAG;AAC5DC,kBAAgB,OAAOD,MAAkB,WAAW,SAAS,EAAE,KAAK,OAAO,KAAK,IAAG,CAAC;AAAA,MACrF;AAAA,IACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -36,6 +36,7 @@ const _sfc_main = {
|
|
36
36
|
return (_ctx, _cache) => {
|
37
37
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
38
38
|
_hoisted_2,
|
39
|
+
vue.createTextVNode(" " + vue.toDisplayString(auth.state.accesses) + " ", 1),
|
39
40
|
vue.createVNode(Menu.default, { class: "bg-light mn-b-semi" }, {
|
40
41
|
default: vue.withCtx(() => [
|
41
42
|
_ctx.hasAccess(vue.unref(route).params._id, "members", "read", auth.state.accesses) ? (vue.openBlock(), vue.createBlock(MenuItem.default, {
|
@@ -141,7 +142,7 @@ const _sfc_main = {
|
|
141
142
|
_ctx.hasAccess(vue.unref(route).params._id, "events", "read", auth.state.accesses) ? (vue.openBlock(), vue.createBlock(MenuItem.default, {
|
142
143
|
key: 5,
|
143
144
|
onClick: _cache[5] || (_cache[5] = ($event) => vue.unref(router).push({
|
144
|
-
name: "Backoffice
|
145
|
+
name: "Events Backoffice",
|
145
146
|
params: {
|
146
147
|
_id: vue.unref(route).params._id
|
147
148
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"OrganizationBackoffice.vue.cjs","sources":["../../../../../../../src/modules/organizations/components/pages/OrganizationBackoffice.vue"],"sourcesContent":["<template>\n\t<div class=\"\">\n\t\t<h1 class=\"pd-medium radius-medium bg-light mn-b-small\">Welcome to Backoffice</h1>\n\t\t\n\t\t<Menu \n\t\t\tclass=\"bg-light mn-b-semi\"\n\t\t>\n\t\t\t<MenuItem \n\t\t\t\tv-if=\"hasAccess(route.params._id, 'members', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Organization Members', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\"\n\t\t >\n\t\t \t<IconGroups class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tMembers\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <!-- <MenuItem \n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Community', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t <span>\n\t\t \tCommunity\n\t\t </span>\n\t\t </MenuItem> -->\n\n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'products', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Products', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconProducts class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tProducts\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'leftovers', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Leftovers', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconLeftovers class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tLeftovers\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'orders', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Orders', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconOrders class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tOrders\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'gallery', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Gallery', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconGallery class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tGallery\n\t\t </span>\n\t\t </MenuItem>\n\t\t \n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'events', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice
|
1
|
+
{"version":3,"file":"OrganizationBackoffice.vue.cjs","sources":["../../../../../../../src/modules/organizations/components/pages/OrganizationBackoffice.vue"],"sourcesContent":["<template>\n\t<div class=\"\">\n\t\t<h1 class=\"pd-medium radius-medium bg-light mn-b-small\">Welcome to Backoffice</h1>\n\t\t\n\t\t{{auth.state.accesses}}\n\n\t\t<Menu \n\t\t\tclass=\"bg-light mn-b-semi\"\n\t\t>\n\t\t\t<MenuItem \n\t\t\t\tv-if=\"hasAccess(route.params._id, 'members', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Organization Members', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\"\n\t\t >\n\t\t \t<IconGroups class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tMembers\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <!-- <MenuItem \n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Community', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t <span>\n\t\t \tCommunity\n\t\t </span>\n\t\t </MenuItem> -->\n\n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'products', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Products', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconProducts class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tProducts\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'leftovers', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Leftovers', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconLeftovers class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tLeftovers\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'orders', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Orders', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconOrders class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tOrders\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'gallery', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Gallery', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconGallery class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tGallery\n\t\t </span>\n\t\t </MenuItem>\n\t\t \n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'events', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Events Backoffice', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconEvents class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tEvents\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <!-- <MenuItem \n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Payments', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t <span>\n\t\t \tPayments\n\t\t </span>\n\t\t </MenuItem> -->\n\t\t</Menu>\n\n\t\t<!-- <Menu \n\t\t\tclass=\"bg-light\"\n\t\t>\n\t\t\t<MenuItem \n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Organizations', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t <span>\n\t\t \tOrganizations\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <MenuItem \n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Reports', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t <span>\n\t\t \tReports\n\t\t </span>\n\t\t </MenuItem>\n\t\t</Menu> -->\n\t</div>\n</template>\n\n<script setup=\"props\">\n/////////////////////////////\n// COMPONENT DEPENDENCIES\n/////////////////////////////\nimport { ref, onMounted } from 'vue';\n\n// Mobile Module\nimport Menu from '@pf/src/components/Menu/Menu.vue'\nimport MenuItem from '@pf/src/components/Menu/MenuItem.vue'\nimport SelectMulti from '@pf/src/components/SelectMulti/SelectMulti.vue'\n\nimport IconProducts from '@pf/src/modules/icons/entities/IconProducts.vue'\nimport IconEvents from '@pf/src/modules/icons/entities/IconEvents.vue'\nimport IconGroups from '@pf/src/modules/icons/entities/IconGroups.vue'\nimport IconCommunity from '@pf/src/modules/icons/entities/IconCommunity.vue'\nimport IconGallery from '@pf/src/modules/icons/entities/IconGallery.vue'\nimport IconOrders from '@pf/src/modules/icons/entities/IconOrders.vue'\nimport IconLeftovers from '@pf/src/modules/icons/entities/IconLeftovers.vue'\n/////////////////////////////\n// HELPERS\n/////////////////////////////\nimport { useRoute, useRouter } from 'vue-router'\n\nimport * as auth from '@pf/src/modules/auth/views/store/auth'\n\nimport * as organizations from '@pf/src/modules/organizations/store/organizations'\n\nconst route = useRoute()\nconst router = useRouter()\n/////////////////////////////\n// CREATED\n/////////////////////////////\nconst props = defineProps({\n favorites: Array,\n});\n\nconst selectedOrganization = ref(null);\nconst publics = ref([]);\n/////////////////////////////\n// MOUNTED\n/////////////////////////////\nonMounted(async () =>{\n})\n</script>\n\n<style lang=\"scss\">\n</style>"],"names":["useRoute","useRouter","ref","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0LA,UAAM,QAAQA,UAAAA,SAAU;AACxB,UAAM,SAASC,UAAAA,UAAW;AAQGC,QAAG,IAAC,IAAI;AACrBA,QAAG,IAAC,EAAE;AAItBC,QAAAA,UAAU,YAAW;AAAA,IACrB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ref, onMounted, openBlock, createElementBlock, createVNode, withCtx, unref, createBlock, createCommentVNode, createElementVNode } from "vue";
|
1
|
+
import { ref, onMounted, openBlock, createElementBlock, createTextVNode, toDisplayString, createVNode, withCtx, unref, createBlock, createCommentVNode, createElementVNode } from "vue";
|
2
2
|
import _sfc_main$1 from "../../../../components/Menu/Menu.vue.js";
|
3
3
|
import _sfc_main$2 from "../../../../components/Menu/MenuItem.vue.js";
|
4
4
|
/* empty css */
|
@@ -34,6 +34,7 @@ const _sfc_main = {
|
|
34
34
|
return (_ctx, _cache) => {
|
35
35
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
36
36
|
_hoisted_2,
|
37
|
+
createTextVNode(" " + toDisplayString(state.accesses) + " ", 1),
|
37
38
|
createVNode(_sfc_main$1, { class: "bg-light mn-b-semi" }, {
|
38
39
|
default: withCtx(() => [
|
39
40
|
_ctx.hasAccess(unref(route).params._id, "members", "read", state.accesses) ? (openBlock(), createBlock(_sfc_main$2, {
|
@@ -139,7 +140,7 @@ const _sfc_main = {
|
|
139
140
|
_ctx.hasAccess(unref(route).params._id, "events", "read", state.accesses) ? (openBlock(), createBlock(_sfc_main$2, {
|
140
141
|
key: 5,
|
141
142
|
onClick: _cache[5] || (_cache[5] = ($event) => unref(router).push({
|
142
|
-
name: "Backoffice
|
143
|
+
name: "Events Backoffice",
|
143
144
|
params: {
|
144
145
|
_id: unref(route).params._id
|
145
146
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"OrganizationBackoffice.vue.js","sources":["../../../../../../../src/modules/organizations/components/pages/OrganizationBackoffice.vue"],"sourcesContent":["<template>\n\t<div class=\"\">\n\t\t<h1 class=\"pd-medium radius-medium bg-light mn-b-small\">Welcome to Backoffice</h1>\n\t\t\n\t\t<Menu \n\t\t\tclass=\"bg-light mn-b-semi\"\n\t\t>\n\t\t\t<MenuItem \n\t\t\t\tv-if=\"hasAccess(route.params._id, 'members', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Organization Members', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\"\n\t\t >\n\t\t \t<IconGroups class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tMembers\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <!-- <MenuItem \n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Community', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t <span>\n\t\t \tCommunity\n\t\t </span>\n\t\t </MenuItem> -->\n\n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'products', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Products', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconProducts class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tProducts\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'leftovers', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Leftovers', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconLeftovers class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tLeftovers\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'orders', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Orders', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconOrders class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tOrders\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'gallery', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Gallery', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconGallery class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tGallery\n\t\t </span>\n\t\t </MenuItem>\n\t\t \n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'events', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice
|
1
|
+
{"version":3,"file":"OrganizationBackoffice.vue.js","sources":["../../../../../../../src/modules/organizations/components/pages/OrganizationBackoffice.vue"],"sourcesContent":["<template>\n\t<div class=\"\">\n\t\t<h1 class=\"pd-medium radius-medium bg-light mn-b-small\">Welcome to Backoffice</h1>\n\t\t\n\t\t{{auth.state.accesses}}\n\n\t\t<Menu \n\t\t\tclass=\"bg-light mn-b-semi\"\n\t\t>\n\t\t\t<MenuItem \n\t\t\t\tv-if=\"hasAccess(route.params._id, 'members', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Organization Members', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\"\n\t\t >\n\t\t \t<IconGroups class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tMembers\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <!-- <MenuItem \n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Community', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t <span>\n\t\t \tCommunity\n\t\t </span>\n\t\t </MenuItem> -->\n\n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'products', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Products', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconProducts class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tProducts\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'leftovers', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Leftovers', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconLeftovers class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tLeftovers\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'orders', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Orders', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconOrders class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tOrders\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'gallery', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Gallery', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconGallery class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tGallery\n\t\t </span>\n\t\t </MenuItem>\n\t\t \n\t\t <MenuItem \n\t\t \tv-if=\"hasAccess(route.params._id, 'events', 'read', auth.state.accesses)\"\n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Events Backoffice', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t \t<IconEvents class=\"i-semi\" :icon=\"true\" :fill=\"'rgb(var(--white))'\"/> \n\t\t <span>\n\t\t \tEvents\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <!-- <MenuItem \n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Payments', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t <span>\n\t\t \tPayments\n\t\t </span>\n\t\t </MenuItem> -->\n\t\t</Menu>\n\n\t\t<!-- <Menu \n\t\t\tclass=\"bg-light\"\n\t\t>\n\t\t\t<MenuItem \n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Organizations', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t <span>\n\t\t \tOrganizations\n\t\t </span>\n\t\t </MenuItem>\n\n\t\t <MenuItem \n\t\t \t@click=\"router.push({\n\t\t \t\tname: 'Backoffice Reports', \n\t\t \t\tparams: {\n\t\t \t\t\t_id: route.params._id\n\t\t \t\t}\n\t\t \t})\" \n\t\t \tclass=\"cursor-pointer\">\n\t\t <span>\n\t\t \tReports\n\t\t </span>\n\t\t </MenuItem>\n\t\t</Menu> -->\n\t</div>\n</template>\n\n<script setup=\"props\">\n/////////////////////////////\n// COMPONENT DEPENDENCIES\n/////////////////////////////\nimport { ref, onMounted } from 'vue';\n\n// Mobile Module\nimport Menu from '@pf/src/components/Menu/Menu.vue'\nimport MenuItem from '@pf/src/components/Menu/MenuItem.vue'\nimport SelectMulti from '@pf/src/components/SelectMulti/SelectMulti.vue'\n\nimport IconProducts from '@pf/src/modules/icons/entities/IconProducts.vue'\nimport IconEvents from '@pf/src/modules/icons/entities/IconEvents.vue'\nimport IconGroups from '@pf/src/modules/icons/entities/IconGroups.vue'\nimport IconCommunity from '@pf/src/modules/icons/entities/IconCommunity.vue'\nimport IconGallery from '@pf/src/modules/icons/entities/IconGallery.vue'\nimport IconOrders from '@pf/src/modules/icons/entities/IconOrders.vue'\nimport IconLeftovers from '@pf/src/modules/icons/entities/IconLeftovers.vue'\n/////////////////////////////\n// HELPERS\n/////////////////////////////\nimport { useRoute, useRouter } from 'vue-router'\n\nimport * as auth from '@pf/src/modules/auth/views/store/auth'\n\nimport * as organizations from '@pf/src/modules/organizations/store/organizations'\n\nconst route = useRoute()\nconst router = useRouter()\n/////////////////////////////\n// CREATED\n/////////////////////////////\nconst props = defineProps({\n favorites: Array,\n});\n\nconst selectedOrganization = ref(null);\nconst publics = ref([]);\n/////////////////////////////\n// MOUNTED\n/////////////////////////////\nonMounted(async () =>{\n})\n</script>\n\n<style lang=\"scss\">\n</style>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA0LA,UAAM,QAAQ,SAAU;AACxB,UAAM,SAAS,UAAW;AAQG,QAAI,IAAI;AACrB,QAAI,EAAE;AAItB,cAAU,YAAW;AAAA,IACrB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -6,7 +6,7 @@ require("vue-i18n");
|
|
6
6
|
;/* empty css */
|
7
7
|
const BlockTags = require("../../../../components/FieldTags/BlockTags.vue.cjs");
|
8
8
|
;/* empty css */
|
9
|
-
const Field = require("../../../../components/Field/Field.
|
9
|
+
const Field = require("../../../../components/Field/Field.vue.cjs");
|
10
10
|
;/* empty css */
|
11
11
|
const SelectMulti = require("../../../../components/SelectMulti/SelectMulti.vue.cjs");
|
12
12
|
const UploadImage = require("../../../../components/UploadImage/UploadImage.vue.cjs");
|
package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js
CHANGED
@@ -4,7 +4,7 @@ import "vue-i18n";
|
|
4
4
|
/* empty css */
|
5
5
|
import _sfc_main$2 from "../../../../components/FieldTags/BlockTags.vue.js";
|
6
6
|
/* empty css */
|
7
|
-
import Field from "../../../../components/Field/Field.
|
7
|
+
import Field from "../../../../components/Field/Field.vue.js";
|
8
8
|
/* empty css */
|
9
9
|
import SelectMulti from "../../../../components/SelectMulti/SelectMulti.vue.js";
|
10
10
|
import _sfc_main$1 from "../../../../components/UploadImage/UploadImage.vue.js";
|
@@ -2,9 +2,9 @@
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
4
|
const vueRouter = require("vue-router");
|
5
|
-
const Dropdown = require("../../../../components/Dropdown/Dropdown.
|
5
|
+
const Dropdown = require("../../../../components/Dropdown/Dropdown.vue2.cjs");
|
6
6
|
const Text = require("../../../../components/Text/Text.vue.cjs");
|
7
|
-
const Chips = require("../../../../components/Chips/Chips.
|
7
|
+
const Chips = require("../../../../components/Chips/Chips.vue2.cjs");
|
8
8
|
const IconFollowing = require("../../../icons/entities/IconFollowing.vue.cjs");
|
9
9
|
const IconEdit = require("../../../icons/navigation/IconEdit.vue.cjs");
|
10
10
|
const IconEllipsis = require("../../../icons/navigation/IconEllipsis.vue.cjs");
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { openBlock, createElementBlock, createBlock, withCtx, createElementVNode, createVNode, createCommentVNode, toDisplayString, unref, renderSlot } from "vue";
|
2
2
|
import { useRoute } from "vue-router";
|
3
|
-
import _sfc_main$1 from "../../../../components/Dropdown/Dropdown.
|
3
|
+
import _sfc_main$1 from "../../../../components/Dropdown/Dropdown.vue2.js";
|
4
4
|
import _sfc_main$7 from "../../../../components/Text/Text.vue.js";
|
5
|
-
import _sfc_main$8 from "../../../../components/Chips/Chips.
|
5
|
+
import _sfc_main$8 from "../../../../components/Chips/Chips.vue2.js";
|
6
6
|
import _sfc_main$6 from "../../../icons/entities/IconFollowing.vue.js";
|
7
7
|
import _sfc_main$5 from "../../../icons/navigation/IconEdit.vue.js";
|
8
8
|
import _sfc_main$2 from "../../../icons/navigation/IconEllipsis.vue.js";
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
4
|
const vueRouter = require("vue-router");
|
5
|
-
const Field = require("../../../../components/Field/Field.
|
5
|
+
const Field = require("../../../../components/Field/Field.vue.cjs");
|
6
6
|
require("vue-i18n");
|
7
7
|
;/* empty css */
|
8
|
-
;/* empty css
|
8
|
+
;/* empty css */
|
9
9
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");
|
10
10
|
;/* empty css */
|
11
11
|
;/* empty css */
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { ref, watchEffect, resolveComponent, openBlock, createElementBlock, createElementVNode, Fragment, renderList, unref, toDisplayString, createVNode, withCtx, pushScopeId, popScopeId } from "vue";
|
2
2
|
import { useRouter, useRoute } from "vue-router";
|
3
|
-
import Field from "../../../../components/Field/Field.
|
3
|
+
import Field from "../../../../components/Field/Field.vue.js";
|
4
4
|
import "vue-i18n";
|
5
5
|
/* empty css */
|
6
|
-
/* empty css
|
6
|
+
/* empty css */
|
7
7
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
8
8
|
/* empty css */
|
9
9
|
/* empty css */
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
|
-
;/* empty css
|
4
|
+
;/* empty css */
|
5
5
|
const EmptyState = require("../../../../components/EmptyState/EmptyState.vue.cjs");
|
6
6
|
const CardOrganization = require("../blocks/CardOrganization.vue.cjs");
|
7
7
|
const SkeletonOrganization = require("../../../icons/skeletons/SkeletonOrganization.vue.cjs");
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref, onMounted, openBlock, createElementBlock, createVNode, TransitionGroup, withCtx, Fragment, renderList, createBlock, createCommentVNode, Transition } from "vue";
|
2
|
-
/* empty css
|
2
|
+
/* empty css */
|
3
3
|
import _sfc_main$1 from "../../../../components/EmptyState/EmptyState.vue.js";
|
4
4
|
import _sfc_main$2 from "../blocks/CardOrganization.vue.js";
|
5
5
|
import SkeletonOrganization from "../../../icons/skeletons/SkeletonOrganization.vue.js";
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
|
-
const Field = require("../../../../components/Field/Field.
|
4
|
+
const Field = require("../../../../components/Field/Field.vue.cjs");
|
5
5
|
;/* empty css */
|
6
6
|
const Button = require("../../../../components/Button/Button.vue.cjs");
|
7
7
|
const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref, resolveDirective, openBlock, createElementBlock, createElementVNode, toDisplayString, withDirectives, createVNode, isRef, unref, withCtx, Fragment, renderList, createBlock, createCommentVNode } from "vue";
|
2
|
-
import Field from "../../../../components/Field/Field.
|
2
|
+
import Field from "../../../../components/Field/Field.vue.js";
|
3
3
|
/* empty css */
|
4
4
|
import _sfc_main$6 from "../../../../components/Button/Button.vue.js";
|
5
5
|
import _sfc_main$2 from "../../../../components/Feed/Feed.vue.js";
|
@@ -4,9 +4,9 @@ const vue = require("vue");
|
|
4
4
|
const vueRouter = require("vue-router");
|
5
5
|
require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");
|
6
6
|
;/* empty css */
|
7
|
-
;/* empty css
|
8
|
-
;/* empty css */
|
7
|
+
;/* empty css */
|
9
8
|
;/* empty css */
|
9
|
+
;/* empty css */
|
10
10
|
;/* empty css */
|
11
11
|
const CardOrganization = require("../blocks/CardOrganization.vue.cjs");
|
12
12
|
const EmptyState = require("../blocks/EmptyState.vue.cjs");
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js
CHANGED
@@ -2,9 +2,9 @@ import { ref, withAsyncContext, watch, openBlock, createElementBlock, createElem
|
|
2
2
|
import { useRouter, useRoute } from "vue-router";
|
3
3
|
import "../../../../../../node_modules/js-cookie/dist/js.cookie.js";
|
4
4
|
/* empty css */
|
5
|
-
/* empty css
|
6
|
-
/* empty css */
|
5
|
+
/* empty css */
|
7
6
|
/* empty css */
|
7
|
+
/* empty css */
|
8
8
|
/* empty css */
|
9
9
|
import _sfc_main$2 from "../blocks/CardOrganization.vue.js";
|
10
10
|
import _sfc_main$1 from "../blocks/EmptyState.vue.js";
|
@@ -4,6 +4,7 @@ const Empty = require("../../globals/views/components/layouts/Empty.vue.cjs");
|
|
4
4
|
const members_router = require("./members.router.cjs");
|
5
5
|
const departments_router = require("./departments.router.cjs");
|
6
6
|
const products_router = require("../../products/router/products.router.cjs");
|
7
|
+
const events = require("../../events/router/events.cjs");
|
7
8
|
const categories_router = require("../../products/router/categories.router.cjs");
|
8
9
|
const leftovers_router = require("../../products/router/leftovers.router.cjs");
|
9
10
|
const payments_router = require("../../wallet/views/router/payments.router.cjs");
|
@@ -62,6 +63,7 @@ const organizations = [{
|
|
62
63
|
...members_router.default,
|
63
64
|
...departments_router.default,
|
64
65
|
...products_router.default,
|
66
|
+
...events.default,
|
65
67
|
...categories_router.default,
|
66
68
|
...leftovers_router.default,
|
67
69
|
...payments_router.default,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"organizations.cjs","sources":["../../../../../../src/modules/organizations/router/organizations.js"],"sourcesContent":["import layoutEmpty from '@pf/src/modules/globals/views/components/layouts/Empty.vue';\n\nimport membersRoutes from './members.router.js';\nimport departmentRoutes from './departments.router.js'\n\nimport productRoutes from '@pf/src/modules/products/router/products.router.js'\nimport categoriesRoutes from '@pf/src/modules/products/router/categories.router.js'\nimport leftoversRoutes from '@pf/src/modules/products/router/leftovers.router.js'\n\nimport paymentsRoutes from '@pf/src/modules/wallet/views/router/payments.router.js'\nimport ordersBackofficeRoutes from '@pf/src/modules/orders/router/orders.backoffice.router.js'\nimport galleryBackofficeRoutes from '@pf/src/modules/gallery/router/gallery.backoffice.router.js'\n\nimport backofficeRoutes from '@pf/src/modules/organizations/router/backoffice.router.js'\n\nimport * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';\n\nconst organizations = [{\n path: 'organizations',\n component: layoutEmpty,\n meta: {\n title: {\n en: 'Organizations',\n ru: 'Организации'\n },\n breadcrumbs: {\n hidden: true\n },\n },\n children: [{\n path: 'create',\n name: 'Create Organization',\n meta: {\n title: {\n en: 'Create Organization',\n ru: 'Создать Организацию'\n }\n },\n beforeEnter: [validationAuth.requiresAuth],\n component: () => import('@pf/src/modules/organizations/components/pages/OrganizationEdit.vue')\n },{\n path: ':_id',\n name: 'OrganizationRoot',\n meta: {\n title: {\n en: 'Group',\n ru: 'Группа'\n },\n },\n component: layoutEmpty,\n children: [\n {\n path: '',\n name: 'Organization',\n meta: {\n title: {\n en: 'Group',\n ru: 'Группа'\n },\n breadcrumbs: {\n hidden: true\n },\n },\n component: () => import('@pf/src/modules/organizations/components/pages/Organization.vue'),\n },\n ...membersRoutes,\n ...departmentRoutes,\n ...productRoutes,\n ...categoriesRoutes,\n ...leftoversRoutes,\n ...paymentsRoutes,\n ...ordersBackofficeRoutes,\n ...galleryBackofficeRoutes,\n ...backofficeRoutes \n ],\n },{\n path: ':_id/edit',\n name: 'Organization Edit',\n meta: {\n title: {\n en: 'Edit Organization',\n ru: 'Редактировать Организацию'\n }\n },\n beforeEnter: [validationAuth.requiresAuth],\n component: () => import('@pf/src/modules/organizations/components/pages/OrganizationEdit.vue'),\n }]\n}];\n\nexport default organizations;\n"],"names":["layoutEmpty","validationAuth.requiresAuth","membersRoutes","departmentRoutes","productRoutes","categoriesRoutes","leftoversRoutes","paymentsRoutes","ordersBackofficeRoutes","galleryBackofficeRoutes","backofficeRoutes"],"mappings":"
|
1
|
+
{"version":3,"file":"organizations.cjs","sources":["../../../../../../src/modules/organizations/router/organizations.js"],"sourcesContent":["import layoutEmpty from '@pf/src/modules/globals/views/components/layouts/Empty.vue';\n\nimport membersRoutes from './members.router.js';\nimport departmentRoutes from './departments.router.js'\n\nimport productRoutes from '@pf/src/modules/products/router/products.router.js'\nimport eventsRoutes from '@pf/src/modules/events/router/events';\nimport categoriesRoutes from '@pf/src/modules/products/router/categories.router.js'\nimport leftoversRoutes from '@pf/src/modules/products/router/leftovers.router.js'\n\nimport paymentsRoutes from '@pf/src/modules/wallet/views/router/payments.router.js'\nimport ordersBackofficeRoutes from '@pf/src/modules/orders/router/orders.backoffice.router.js'\nimport galleryBackofficeRoutes from '@pf/src/modules/gallery/router/gallery.backoffice.router.js'\n\nimport backofficeRoutes from '@pf/src/modules/organizations/router/backoffice.router.js'\n\nimport * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';\n\nconst organizations = [{\n path: 'organizations',\n component: layoutEmpty,\n meta: {\n title: {\n en: 'Organizations',\n ru: 'Организации'\n },\n breadcrumbs: {\n hidden: true\n },\n },\n children: [{\n path: 'create',\n name: 'Create Organization',\n meta: {\n title: {\n en: 'Create Organization',\n ru: 'Создать Организацию'\n }\n },\n beforeEnter: [validationAuth.requiresAuth],\n component: () => import('@pf/src/modules/organizations/components/pages/OrganizationEdit.vue')\n },{\n path: ':_id',\n name: 'OrganizationRoot',\n meta: {\n title: {\n en: 'Group',\n ru: 'Группа'\n },\n },\n component: layoutEmpty,\n children: [\n {\n path: '',\n name: 'Organization',\n meta: {\n title: {\n en: 'Group',\n ru: 'Группа'\n },\n breadcrumbs: {\n hidden: true\n },\n },\n component: () => import('@pf/src/modules/organizations/components/pages/Organization.vue'),\n },\n ...membersRoutes,\n ...departmentRoutes,\n ...productRoutes,\n ...eventsRoutes,\n ...categoriesRoutes,\n ...leftoversRoutes,\n ...paymentsRoutes,\n ...ordersBackofficeRoutes,\n ...galleryBackofficeRoutes,\n ...backofficeRoutes \n ],\n },{\n path: ':_id/edit',\n name: 'Organization Edit',\n meta: {\n title: {\n en: 'Edit Organization',\n ru: 'Редактировать Организацию'\n }\n },\n beforeEnter: [validationAuth.requiresAuth],\n component: () => import('@pf/src/modules/organizations/components/pages/OrganizationEdit.vue'),\n }]\n}];\n\nexport default organizations;\n"],"names":["layoutEmpty","validationAuth.requiresAuth","membersRoutes","departmentRoutes","productRoutes","eventsRoutes","categoriesRoutes","leftoversRoutes","paymentsRoutes","ordersBackofficeRoutes","galleryBackofficeRoutes","backofficeRoutes"],"mappings":";;;;;;;;;;;;;;AAkBK,MAAC,gBAAgB,CAAC;AAAA,EACrB,MAAM;AAAA,EACN,WAAWA,MAAW;AAAA,EACtB,MAAM;AAAA,IACJ,OAAO;AAAA,MACL,IAAI;AAAA,MACJ,IAAI;AAAA,IACL;AAAA,IACD,aAAa;AAAA,MACX,QAAQ;AAAA,IACT;AAAA,EACF;AAAA,EACD,UAAU,CAAC;AAAA,IACT,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,aAAa,CAACC,gBAAAA,YAA2B;AAAA,IACzC,WAAW,MAAM,QAAA,QAAA,EAAA,KAAA,MAAA,QAAO,8CAAqE,CAAC;AAAA,EAClG,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,WAAWD,MAAW;AAAA,IACtB,UAAU;AAAA,MACR;AAAA,QACE,MAAM;AAAA,QACN,MAAM;AAAA,QACN,MAAM;AAAA,UACJ,OAAO;AAAA,YACL,IAAI;AAAA,YACJ,IAAI;AAAA,UACL;AAAA,UACD,aAAa;AAAA,YACX,QAAQ;AAAA,UACT;AAAA,QACF;AAAA,QACD,WAAW,MAAM,QAAA,QAAA,EAAA,KAAA,MAAA,QAAO,0CAAiE,CAAC;AAAA,MAC3F;AAAA,MACD,GAAGE,eAAa;AAAA,MAChB,GAAGC,mBAAgB;AAAA,MACnB,GAAGC,gBAAa;AAAA,MAChB,GAAGC,OAAY;AAAA,MACf,GAAGC,kBAAgB;AAAA,MACnB,GAAGC,iBAAe;AAAA,MAClB,GAAGC,gBAAc;AAAA,MACjB,GAAGC,yBAAsB;AAAA,MACzB,GAAGC,0BAAuB;AAAA,MAC1B,GAAGC,kBAAgB;AAAA,IACpB;AAAA,EACL,GAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,aAAa,CAACV,gBAAAA,YAA2B;AAAA,IACzC,WAAW,MAAM,QAAA,QAAA,EAAA,KAAA,MAAA,QAAO,8CAAqE,CAAC;AAAA,EAClG,CAAG;AACH,CAAC;;"}
|