@ozdao/prometheus-framework 0.2.130 → 0.2.133
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +0 -1
- package/dist/auth.server.mjs +0 -1
- package/dist/community.server.js +172 -31
- package/dist/community.server.mjs +172 -31
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/files.server.js +38 -4
- package/dist/files.server.mjs +38 -4
- package/dist/gallery.server.js +1 -1
- package/dist/gallery.server.mjs +1 -1
- package/dist/main-CI9l9xMs.js +92 -0
- package/dist/main-DPg58GOU.mjs +14509 -0
- package/dist/main.css +1 -1
- package/dist/orders.server.js +1 -1
- package/dist/orders.server.mjs +1 -1
- package/dist/organizations.server.js +4 -3
- package/dist/organizations.server.mjs +4 -3
- package/dist/products.server.js +2 -1
- package/dist/products.server.mjs +2 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +89 -0
- package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.js +22 -23
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +13 -13
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +95 -0
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +12 -13
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +26 -0
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +32 -33
- package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.js +75 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +14 -15
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +57 -0
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +93 -87
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -0
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +32 -29
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +22 -23
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +39 -39
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.js +5 -5
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +127 -0
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +46 -47
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.js +13 -0
- package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.js +22 -23
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +77 -0
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -0
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +14 -15
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +9 -10
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +37 -34
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +18 -18
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +11 -11
- package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/community.client.js +12 -14
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +54 -71
- package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.js +57 -29
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +86 -76
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +58 -28
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +71 -80
- package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.js +104 -0
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +99 -54
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +27 -28
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +45 -34
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +31 -29
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +32 -27
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +67 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +119 -112
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +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/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +22 -22
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +27 -27
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.js +33 -22
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +3 -9
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +9 -9
- 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 +39 -38
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +112 -85
- 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 +36 -35
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +17 -17
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +18 -18
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +12 -12
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +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 +3 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +32 -37
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +29 -29
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +53 -35
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.js +30 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.js +42 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.js +26 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.js +42 -0
- package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.js +26 -0
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +154 -77
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +14 -14
- package/dist/queryProcessor-DQSFR9YA.mjs +179 -0
- package/dist/queryProcessor-iewDZq_f.js +178 -0
- package/dist/style.css +1 -1
- package/dist/wallet.server.js +80 -27
- package/dist/wallet.server.mjs +80 -27
- package/dist/web-DZUec7pP.js +1 -0
- package/dist/web-krQQeSb6.mjs +54 -0
- package/package.json +1 -1
- package/src/components/Address/Address.vue +1 -1
- package/src/components/Chips/Chips.vue +1 -1
- package/src/components/Completion/Completion.vue +1 -4
- package/src/components/DatePicker/Calendar.vue +1 -1
- package/src/components/Draggable/Draggable.vue +113 -0
- package/src/components/Dropdown/Dropdown.vue +1 -1
- package/src/components/Feed/Feed.vue +18 -12
- package/src/components/FieldBig/FieldBig.vue +11 -1
- package/src/components/FieldPhone/FieldPhone.vue +1 -1
- package/src/components/FieldTags/FieldTags.vue +2 -1
- package/src/components/FieldTags/tag-input.vue +1 -1
- package/src/components/LocationMarker/LocationMarker.vue +1 -1
- package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
- package/src/components/Shader/Shader.vue +2 -2
- package/src/components/Slider/Slider.vue +1 -5
- package/src/components/Spoiler/Spoiler.vue +1 -1
- package/src/components/Text/Text.vue +1 -4
- package/src/components/Tooltip/Tooltip.vue +1 -1
- package/src/components/Upload/Upload.vue +5 -3
- package/src/modules/auth/controllers/auth.controller.js +0 -2
- package/src/modules/auth/store/auth.js +2 -2
- package/src/modules/community/DOCUMENTATION.MD +4 -0
- package/src/modules/community/community.client.js +0 -2
- package/src/modules/community/components/blocks/CardBlogpost.vue +6 -2
- package/src/modules/community/components/blocks/FooterBlogpost.vue +21 -5
- package/src/modules/community/components/layouts/Community.vue +15 -11
- package/src/modules/community/components/pages/Blog.vue +25 -32
- package/src/modules/community/components/pages/CreateBlogPost.vue +8 -15
- package/src/modules/community/components/sections/Comment.vue +123 -0
- package/src/modules/community/components/sections/Comments.vue +90 -19
- package/src/modules/community/components/sections/HotPosts.vue +3 -6
- package/src/modules/community/controllers/blog.controller.js +1 -1
- package/src/modules/community/controllers/comments.controller.aggr.js +280 -0
- package/src/modules/community/controllers/comments.controller.js +187 -38
- package/src/modules/community/controllers/comments.controller.populate.js +180 -0
- package/src/modules/community/models/comment.model.js +15 -0
- package/src/modules/community/store/blogposts.js +20 -2
- package/src/modules/constructor/components/elements/Audio.vue +28 -40
- package/src/modules/constructor/components/elements/ImageUpload.vue +12 -7
- package/src/modules/constructor/components/elements/Video.vue +10 -18
- package/src/modules/constructor/components/sections/Constructor.vue +54 -47
- package/src/modules/files/controllers/files.controller.js +2 -0
- package/src/modules/files/middlewares/server/middlewareBusboy.js +32 -4
- package/src/modules/files/routes/files.routes.js +8 -0
- package/src/modules/globals/components/blocks/BlockFilter.vue +17 -7
- package/src/modules/globals/components/partials/Header.vue +12 -7
- package/src/modules/globals/controllers/utils/queryProcessor.js +1 -0
- package/src/modules/icons/logos/Logotype.vue +8 -6
- package/src/modules/icons/logos/LogotypeNunito.vue +12 -0
- package/src/modules/marketplace/components/layouts/Marketplace.vue +29 -27
- package/src/modules/marketplace/store/marketplace.js +2 -8
- package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
- package/src/modules/organizations/components/pages/Members.vue +1 -1
- package/src/modules/organizations/components/pages/Organization.vue +33 -5
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +7 -4
- package/src/modules/organizations/components/sections/DetailsTab.vue +10 -10
- package/src/modules/organizations/components/sections/Publics.vue +2 -2
- package/src/modules/organizations/controllers/memberships.controller.js +2 -3
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/store/memberships.js +4 -1
- package/src/modules/products/components/blocks/CardProduct.vue +1 -1
- package/src/modules/products/components/sections/HeroRecommendation.vue +11 -8
- package/src/modules/products/models/product.model.js +2 -1
- package/src/modules/spots/components/layouts/Spots.vue +0 -3
- package/src/modules/spots/components/pages/Map.vue +13 -3
- package/src/modules/users/components/blocks/CardUser.vue +2 -2
- package/src/modules/users/components/pages/ProfileBlogposts.vue +45 -28
- package/src/modules/wallet/components/blocks/CardBalanceReplenished.vue +40 -0
- package/src/modules/wallet/components/blocks/CardDeposite.vue +55 -0
- package/src/modules/wallet/components/blocks/CashDeposite.vue +28 -0
- package/src/modules/wallet/components/blocks/CryptoDeposite.vue +55 -0
- package/src/modules/wallet/controllers/factories/rewards.factory.aggr.js +181 -0
- package/src/modules/wallet/controllers/factories/rewards.factory.js +87 -113
- package/src/modules/wallet/controllers/factories/rewards.factory.population.js +213 -0
- package/src/modules/wallet/localization/Wallet.json +22 -0
- package/src/modules/wallet/views/components/pages/Wallet.vue +153 -53
- package/src/styles/base/all.scss +16 -26
- package/src/styles/config.scss +70 -34
- package/src/styles/typography.scss +5 -5
- package/src/modules/community/components/sections/Feed.vue +0 -148
- package/src/modules/middlewares/server/accessors/AccessController.js +0 -33
- package/src/modules/middlewares/server/accessors/ReadDepartments.js +0 -101
package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("vue-router");;/* empty css */const w=require("../../../../components/Button/Button.vue2.cjs");;/* empty css */const B=require("../../../../components/Chips/Chips.vue.cjs");;/* empty css */const _=require("../../../../components/Popup/Popup.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("vue-router");;/* empty css */const w=require("../../../../components/Button/Button.vue2.cjs");;/* empty css */const B=require("../../../../components/Chips/Chips.vue.cjs");;/* empty css */const _=require("../../../../components/Popup/Popup.vue2.cjs"),E=require("../../../../components/Feed/Feed.vue.cjs"),U=require("../../../../components/PhotoViewer/PhotoViewer.vue.cjs"),k=require("../../../auth/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const o=require("../../store/gallery.cjs"),A=require("../../../globals/components/blocks/CardHeader.vue.cjs"),I=require("../../../globals/components/sections/SectionPageTitle.vue.cjs"),O=require("../../../../components/EditImages/EditImages.vue.cjs"),T=require("../../../../components/FieldTags/BlockTags.vue.cjs"),R={class:"cols-1 gap-thin pd-thin"},S={class:"pos-relative"},D=["src","onClick"],F={class:"pos-absolute pos-t-0 pos-r-0 pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-r-small mn-t-small w-min bg-second radius-extra"},j={class:"pd-small"},L=["src"],G={class:"flex-nowrap flex gap-thin"},M={__name:"BackofficeGallery",setup(z){const h=C.useRoute(),i=e.ref("all");let c=e.ref({param:"createdAt",order:"desc",options:[{label:"Date",value:"createdAt"},{label:"Popularity",value:"views"},{label:"Creator",value:"creator"}]}),p=e.ref({start:null,end:null});const f=e.ref(!1);function x(a){f.value=!0,u.value=a}function y(){f.value=!1,u.value=null}const m=e.ref(!1);function V(a){m.value=!0,u.value=a}function v(){m.value=!1,u.value=null,n.value=[],r.value={tags:null,image:null}}const u=e.ref(null);e.ref("all");const r=e.ref({tags:null,image:null}),n=e.ref([]),N=a=>{n.value=a},d=e.ref([]),q=async a=>{await o.default.delete(a._id),o.default.removeItem(a,d.value)},g=async(a,s)=>{a.status=s,await o.default.update(a),o.default.updateItem(a,d.value)},b=async a=>{if(n.length<1){alert("Upload at least 1 image");return}let s=await o.default.create({images:n.value,tags:r.value.tags,status:a,owner:{type:"Organization",target:h.params._id},creator:{type:"User",target:k.state.user._id}});for(let t of s)o.default.addItem(t,d.value)};return(a,s)=>(e.openBlock(),e.createElementBlock("div",R,[e.createVNode(I.default,{title:"Gallery","onUpdate:tabs_current":s[0]||(s[0]=t=>i.value=t),tabs_current:i.value,tabs:[{name:"All",value:"all"},{name:"Featured",value:"featured"},{name:"Published",value:"published"},{name:"Draft",value:"draft"},{name:"Archived",value:"archived"}],actions:[{method:()=>V(null),label:"Add Photo"}],class:"mn-b-small bg-light bg-light radius-big"},null,8,["tabs_current","actions"]),e.createVNode(E.default,{items:d.value,"onUpdate:items":s[1]||(s[1]=t=>d.value=t),sort:e.unref(c),"onUpdate:sort":s[2]||(s[2]=t=>e.isRef(c)?c.value=t:c=t),date:e.unref(p),"onUpdate:date":s[3]||(s[3]=t=>e.isRef(p)?p.value=t:p=t),states:{empty:{title:"No Photos Found",description:"Currently, there are no photos in gallery."}},store:{read:t=>e.unref(o.default).read(t)},options:{limit:15,owner:e.unref(h).params._id,...i.value!=="all"&&{status:i.value}},class:"cols-3 gap-thin"},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,l=>{var P;return e.openBlock(),e.createElementBlock("div",{key:l._id,class:"bg-light radius-small flex-column pos-relative flex-wrap"},[e.createVNode(A.default,{entity:l,entityType:"photo",user:k.state.user._id,owner:l.creator,creator:l.creator,date:l.createdAt,actions:[{method:()=>q(l),label:"Delete"},{method:()=>g(l,"archived"),label:"Archive"},l.status==="draft"?{method:()=>g(l,"published"),label:"Publish"}:{method:()=>g(l,"draft"),label:"Draft"}],class:"pd-small mn-b-small"},null,8,["entity","user","owner","creator","date","actions"]),e.createElementVNode("div",S,[e.createElementVNode("img",{src:(a.FILE_SERVER_URL||"")+l.cover,class:"w-100 h-20r object-fit-contain bg-black",onClick:H=>x(l)},null,8,D),e.createElementVNode("div",F,e.toDisplayString(l.status),1)]),e.createElementVNode("div",j,[((P=l.tags)==null?void 0:P.length)>0?(e.openBlock(),e.createBlock(B.default,{key:0,chips:l.tags},null,8,["chips"])):e.createCommentVNode("",!0)])])}),128))]),_:1},8,["items","sort","date","store","options"]),e.createVNode(_.default,{onClosePopup:y,isPopupOpen:f.value,class:"bg-black o-hidden w-100 h-100 radius-big"},{default:e.withCtx(()=>[e.createVNode(U.default,{photoUrl:u.value.image},null,8,["photoUrl"])]),_:1},8,["isPopupOpen"]),e.createVNode(_.default,{title:"Add Photo",onClosePopup:v,isPopupOpen:m.value,class:"bg-white w-max-30r radius-big pd-big"},{default:e.withCtx(()=>[r.value.cover?(e.openBlock(),e.createElementBlock("img",{key:0,src:r.value.cover,class:"radius-small w-100 mn-b-small h-20r object-fit-cover"},null,8,L)):e.createCommentVNode("",!0),e.createVNode(O.default,{images:n.value,uploadPath:"/photos","onUpdate:images":N,class:"mn-b-semi bg-light radius-medium"},null,8,["images"]),e.createVNode(T.default,{onTagsChanged:s[4]||(s[4]=t=>r.value.tags=t),tags:r.value.tags,tagsSuggested:[{text:"people"},{text:"events"},{text:"place"},{text:"food"},{text:"drinks"},{text:"special"}],class:"mn-b-semi"},null,8,["tags"]),e.createElementVNode("div",G,[e.createVNode(w.default,{submit:()=>b("draft"),callback:v,class:"t-nowrap bg-second w-100"},{default:e.withCtx(()=>[e.createTextVNode(" To drafts ")]),_:1},8,["submit"]),e.createVNode(w.default,{submit:()=>b("published"),callback:v,class:"bg-main w-100"},{default:e.withCtx(()=>[e.createTextVNode(" Publish ")]),_:1},8,["submit"])])]),_:1},8,["isPopupOpen"])]))}};exports.default=M;
|
package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
import { ref as s, openBlock as d, createElementBlock as h, createVNode as o, unref as b, isRef as C, withCtx as c, Fragment as F, renderList as S, createElementVNode as m, toDisplayString as T, createBlock as L, createCommentVNode as A, createTextVNode as
|
1
|
+
import { ref as s, openBlock as d, createElementBlock as h, createVNode as o, unref as b, isRef as C, withCtx as c, Fragment as F, renderList as S, createElementVNode as m, toDisplayString as T, createBlock as L, createCommentVNode as A, createTextVNode as $ } from "vue";
|
2
2
|
import { useRoute as j } from "vue-router";
|
3
3
|
/* empty css */
|
4
|
-
import
|
4
|
+
import I from "../../../../components/Button/Button.vue2.js";
|
5
5
|
/* empty css */
|
6
6
|
import G from "../../../../components/Chips/Chips.vue.js";
|
7
7
|
/* empty css */
|
8
|
-
import
|
8
|
+
import O from "../../../../components/Popup/Popup.vue2.js";
|
9
9
|
import z from "../../../../components/Feed/Feed.vue.js";
|
10
10
|
import q from "../../../../components/PhotoViewer/PhotoViewer.vue.js";
|
11
|
-
import { state as
|
11
|
+
import { state as D } from "../../../auth/store/auth.js";
|
12
12
|
import "../../../organizations/store/organizations.js";
|
13
13
|
import r from "../../store/gallery.js";
|
14
14
|
import H from "../../../globals/components/blocks/CardHeader.vue.js";
|
@@ -18,8 +18,8 @@ import M from "../../../../components/FieldTags/BlockTags.vue.js";
|
|
18
18
|
const Q = { class: "cols-1 gap-thin pd-thin" }, W = { class: "pos-relative" }, X = ["src", "onClick"], Y = { class: "pos-absolute pos-t-0 pos-r-0 pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-r-small mn-t-small w-min bg-second radius-extra" }, Z = { class: "pd-small" }, ee = ["src"], te = { class: "flex-nowrap flex gap-thin" }, we = {
|
19
19
|
__name: "BackofficeGallery",
|
20
20
|
setup(ae) {
|
21
|
-
const x = j(),
|
22
|
-
let
|
21
|
+
const x = j(), f = s("all");
|
22
|
+
let v = s({
|
23
23
|
param: "createdAt",
|
24
24
|
order: "desc",
|
25
25
|
options: [{
|
@@ -37,14 +37,14 @@ const Q = { class: "cols-1 gap-thin pd-thin" }, W = { class: "pos-relative" }, X
|
|
37
37
|
end: null
|
38
38
|
});
|
39
39
|
const _ = s(!1);
|
40
|
-
function
|
40
|
+
function E(t) {
|
41
41
|
_.value = !0, i.value = t;
|
42
42
|
}
|
43
|
-
function
|
43
|
+
function N() {
|
44
44
|
_.value = !1, i.value = null;
|
45
45
|
}
|
46
46
|
const P = s(!1);
|
47
|
-
function
|
47
|
+
function R(t) {
|
48
48
|
P.value = !0, i.value = t;
|
49
49
|
}
|
50
50
|
function w() {
|
@@ -55,7 +55,7 @@ const Q = { class: "cols-1 gap-thin pd-thin" }, W = { class: "pos-relative" }, X
|
|
55
55
|
const n = s({
|
56
56
|
tags: null,
|
57
57
|
image: null
|
58
|
-
}), u = s([]),
|
58
|
+
}), u = s([]), V = (t) => {
|
59
59
|
u.value = t;
|
60
60
|
}, p = s([]), B = async (t) => {
|
61
61
|
await r.delete(t._id), r.removeItem(t, p.value);
|
@@ -76,7 +76,7 @@ const Q = { class: "cols-1 gap-thin pd-thin" }, W = { class: "pos-relative" }, X
|
|
76
76
|
},
|
77
77
|
creator: {
|
78
78
|
type: "User",
|
79
|
-
target:
|
79
|
+
target: D.user._id
|
80
80
|
}
|
81
81
|
});
|
82
82
|
for (let e of l)
|
@@ -85,8 +85,8 @@ const Q = { class: "cols-1 gap-thin pd-thin" }, W = { class: "pos-relative" }, X
|
|
85
85
|
return (t, l) => (d(), h("div", Q, [
|
86
86
|
o(J, {
|
87
87
|
title: "Gallery",
|
88
|
-
"onUpdate:tabs_current": l[0] || (l[0] = (e) =>
|
89
|
-
tabs_current:
|
88
|
+
"onUpdate:tabs_current": l[0] || (l[0] = (e) => f.value = e),
|
89
|
+
tabs_current: f.value,
|
90
90
|
tabs: [
|
91
91
|
{ name: "All", value: "all" },
|
92
92
|
{ name: "Featured", value: "featured" },
|
@@ -95,15 +95,15 @@ const Q = { class: "cols-1 gap-thin pd-thin" }, W = { class: "pos-relative" }, X
|
|
95
95
|
{ name: "Archived", value: "archived" }
|
96
96
|
],
|
97
97
|
actions: [
|
98
|
-
{ method: () =>
|
98
|
+
{ method: () => R(null), label: "Add Photo" }
|
99
99
|
],
|
100
100
|
class: "mn-b-small bg-light bg-light radius-big"
|
101
101
|
}, null, 8, ["tabs_current", "actions"]),
|
102
102
|
o(z, {
|
103
103
|
items: p.value,
|
104
104
|
"onUpdate:items": l[1] || (l[1] = (e) => p.value = e),
|
105
|
-
sort: b(
|
106
|
-
"onUpdate:sort": l[2] || (l[2] = (e) => C(
|
105
|
+
sort: b(v),
|
106
|
+
"onUpdate:sort": l[2] || (l[2] = (e) => C(v) ? v.value = e : v = e),
|
107
107
|
date: b(g),
|
108
108
|
"onUpdate:date": l[3] || (l[3] = (e) => C(g) ? g.value = e : g = e),
|
109
109
|
states: {
|
@@ -118,7 +118,7 @@ const Q = { class: "cols-1 gap-thin pd-thin" }, W = { class: "pos-relative" }, X
|
|
118
118
|
options: {
|
119
119
|
limit: 15,
|
120
120
|
owner: b(x).params._id,
|
121
|
-
...
|
121
|
+
...f.value !== "all" && { status: f.value }
|
122
122
|
},
|
123
123
|
class: "cols-3 gap-thin"
|
124
124
|
}, {
|
@@ -134,7 +134,7 @@ const Q = { class: "cols-1 gap-thin pd-thin" }, W = { class: "pos-relative" }, X
|
|
134
134
|
o(H, {
|
135
135
|
entity: a,
|
136
136
|
entityType: "photo",
|
137
|
-
user:
|
137
|
+
user: D.user._id,
|
138
138
|
owner: a.creator,
|
139
139
|
creator: a.creator,
|
140
140
|
date: a.createdAt,
|
@@ -149,7 +149,7 @@ const Q = { class: "cols-1 gap-thin pd-thin" }, W = { class: "pos-relative" }, X
|
|
149
149
|
m("img", {
|
150
150
|
src: (t.FILE_SERVER_URL || "") + a.cover,
|
151
151
|
class: "w-100 h-20r object-fit-contain bg-black",
|
152
|
-
onClick: (le) =>
|
152
|
+
onClick: (le) => E(a)
|
153
153
|
}, null, 8, X),
|
154
154
|
m("div", Y, T(a.status), 1)
|
155
155
|
]),
|
@@ -164,8 +164,8 @@ const Q = { class: "cols-1 gap-thin pd-thin" }, W = { class: "pos-relative" }, X
|
|
164
164
|
]),
|
165
165
|
_: 1
|
166
166
|
}, 8, ["items", "sort", "date", "store", "options"]),
|
167
|
-
o(
|
168
|
-
onClosePopup:
|
167
|
+
o(O, {
|
168
|
+
onClosePopup: N,
|
169
169
|
isPopupOpen: _.value,
|
170
170
|
class: "bg-black o-hidden w-100 h-100 radius-big"
|
171
171
|
}, {
|
@@ -176,7 +176,7 @@ const Q = { class: "cols-1 gap-thin pd-thin" }, W = { class: "pos-relative" }, X
|
|
176
176
|
]),
|
177
177
|
_: 1
|
178
178
|
}, 8, ["isPopupOpen"]),
|
179
|
-
o(
|
179
|
+
o(O, {
|
180
180
|
title: "Add Photo",
|
181
181
|
onClosePopup: w,
|
182
182
|
isPopupOpen: P.value,
|
@@ -191,7 +191,7 @@ const Q = { class: "cols-1 gap-thin pd-thin" }, W = { class: "pos-relative" }, X
|
|
191
191
|
o(K, {
|
192
192
|
images: u.value,
|
193
193
|
uploadPath: "/photos",
|
194
|
-
"onUpdate:images":
|
194
|
+
"onUpdate:images": V,
|
195
195
|
class: "mn-b-semi bg-light radius-medium"
|
196
196
|
}, null, 8, ["images"]),
|
197
197
|
o(M, {
|
@@ -208,23 +208,23 @@ const Q = { class: "cols-1 gap-thin pd-thin" }, W = { class: "pos-relative" }, X
|
|
208
208
|
class: "mn-b-semi"
|
209
209
|
}, null, 8, ["tags"]),
|
210
210
|
m("div", te, [
|
211
|
-
o(
|
211
|
+
o(I, {
|
212
212
|
submit: () => k("draft"),
|
213
213
|
callback: w,
|
214
214
|
class: "t-nowrap bg-second w-100"
|
215
215
|
}, {
|
216
216
|
default: c(() => [
|
217
|
-
|
217
|
+
$(" To drafts ")
|
218
218
|
]),
|
219
219
|
_: 1
|
220
220
|
}, 8, ["submit"]),
|
221
|
-
o(
|
221
|
+
o(I, {
|
222
222
|
submit: () => k("published"),
|
223
223
|
callback: w,
|
224
224
|
class: "bg-main w-100"
|
225
225
|
}, {
|
226
226
|
default: c(() => [
|
227
|
-
|
227
|
+
$(" Publish ")
|
228
228
|
]),
|
229
229
|
_: 1
|
230
230
|
}, 8, ["submit"])
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../../components/Checkbox/Checkbox.vue.cjs"),c=require("../../../../components/Spoiler/Spoiler.vue2.cjs"),u=require("../../../icons/navigation/IconChevronBottom.vue.cjs"),d={class:"w-100 o-scroll"},m={class:"cursor-pointer w-100 flex-v-center flex-nowrap flex"},p={class:"w-100"},b={__name:"BlockFilter",props:e.mergeModels({title:{type:String,default:"Sorting Options"},options:{type:Array}},{filter:{},filterModifiers:{}}),emits:["update:filter"],setup(o){const r=e.useModel(o,"filter");return(g,s)=>(e.openBlock(),e.createElementBlock("div",d,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.options,t=>(e.openBlock(),e.createBlock(c.default,{class:"o-hidden bg-white pd-medium radius-big mn-b-small",status:!0},{header:e.withCtx(({isOpen:l})=>[e.createElementVNode("div",m,[e.createElementVNode("h4",p,e.toDisplayString(t.title),1),e.createVNode(u.default,{class:e.normalizeClass([{"rotate-180":l},"radius-big pd-micro bg-light i-semi"]),fill:"rgb(var(--black))"},null,8,["class"])])]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,(l,a)=>(e.openBlock(),e.createBlock(i.default,{key:a,label:l.label,value:l.value,class:"w-100 mn-t-small mn-b-small br-1px br-solid br-light radius-small pd-small",radio:r.value.selected[t.value],"onUpdate:radio":n=>r.value.selected[t.value]=n},null,8,["label","value","radio","onUpdate:radio"]))),128))]),_:2},1024))),256)),e.createElementVNode("button",{onClick:s[0]||(s[0]=()=>r.value.selected={}),class:"bg-main w-100 button"},"Reset Filters")]))}};exports.default=b;
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import { mergeModels as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
|
1
|
+
import { mergeModels as b, useModel as f, openBlock as e, createElementBlock as s, Fragment as n, renderList as d, createBlock as c, withCtx as m, createElementVNode as a, toDisplayString as g, createVNode as v, normalizeClass as _ } from "vue";
|
2
|
+
import h from "../../../../components/Checkbox/Checkbox.vue.js";
|
3
|
+
import w from "../../../../components/Spoiler/Spoiler.vue2.js";
|
4
|
+
import k from "../../../icons/navigation/IconChevronBottom.vue.js";
|
5
|
+
const x = { class: "w-100 o-scroll" }, y = { class: "cursor-pointer w-100 flex-v-center flex-nowrap flex" }, B = { class: "w-100" }, N = {
|
5
6
|
__name: "BlockFilter",
|
6
|
-
props: /* @__PURE__ */
|
7
|
+
props: /* @__PURE__ */ b({
|
7
8
|
title: {
|
8
9
|
type: String,
|
9
10
|
default: "Sorting Options"
|
@@ -16,31 +17,41 @@ const h = { class: "w-100 o-hidden" }, b = { class: "cursor-pointer mn-r-auto t-
|
|
16
17
|
filterModifiers: {}
|
17
18
|
}),
|
18
19
|
emits: ["update:filter"],
|
19
|
-
setup(
|
20
|
-
const r =
|
21
|
-
return (
|
22
|
-
(e(!0),
|
23
|
-
class: "
|
20
|
+
setup(o) {
|
21
|
+
const r = f(o, "filter");
|
22
|
+
return (C, i) => (e(), s("div", x, [
|
23
|
+
(e(!0), s(n, null, d(o.options, (t) => (e(), c(w, {
|
24
|
+
class: "o-hidden bg-white pd-medium radius-big mn-b-small",
|
24
25
|
status: !0
|
25
26
|
}, {
|
26
|
-
header:
|
27
|
-
|
27
|
+
header: m(({ isOpen: l }) => [
|
28
|
+
a("div", y, [
|
29
|
+
a("h4", B, g(t.title), 1),
|
30
|
+
v(k, {
|
31
|
+
class: _([{ "rotate-180": l }, "radius-big pd-micro bg-light i-semi"]),
|
32
|
+
fill: "rgb(var(--black))"
|
33
|
+
}, null, 8, ["class"])
|
34
|
+
])
|
28
35
|
]),
|
29
|
-
content:
|
30
|
-
(e(!0),
|
31
|
-
key:
|
32
|
-
label:
|
33
|
-
value:
|
34
|
-
class: "w-100 mn-t-small mn-b-small
|
35
|
-
radio: r.value[t.value],
|
36
|
-
"onUpdate:radio": (
|
36
|
+
content: m(() => [
|
37
|
+
(e(!0), s(n, null, d(t.options, (l, u) => (e(), c(h, {
|
38
|
+
key: u,
|
39
|
+
label: l.label,
|
40
|
+
value: l.value,
|
41
|
+
class: "w-100 mn-t-small mn-b-small br-1px br-solid br-light radius-small pd-small",
|
42
|
+
radio: r.value.selected[t.value],
|
43
|
+
"onUpdate:radio": (p) => r.value.selected[t.value] = p
|
37
44
|
}, null, 8, ["label", "value", "radio", "onUpdate:radio"]))), 128))
|
38
45
|
]),
|
39
46
|
_: 2
|
40
|
-
}, 1024))), 256))
|
47
|
+
}, 1024))), 256)),
|
48
|
+
a("button", {
|
49
|
+
onClick: i[0] || (i[0] = () => r.value.selected = {}),
|
50
|
+
class: "bg-main w-100 button"
|
51
|
+
}, "Reset Filters")
|
41
52
|
]));
|
42
53
|
}
|
43
54
|
};
|
44
55
|
export {
|
45
|
-
|
56
|
+
N as default
|
46
57
|
};
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { resolveComponent as
|
2
|
-
import { useRouter as
|
3
|
-
import
|
1
|
+
import { resolveComponent as S, openBlock as t, createElementBlock as s, createElementVNode as c, withModifiers as y, createCommentVNode as o, createBlock as b, toDisplayString as d, withCtx as w, createTextVNode as U, Fragment as k, renderList as F, normalizeStyle as D, normalizeClass as L } from "vue";
|
2
|
+
import { useRouter as T } from "vue-router";
|
3
|
+
import V from "../../../icons/placeholders/PlaceholderUserpic.vue.js";
|
4
4
|
import A from "../../../reports/components/sections/FormReport.vue.js";
|
5
5
|
import B from "../../../../components/Tooltip/Tooltip.vue.js";
|
6
6
|
import N from "../../../../components/Dropdown/Dropdown.vue.js";
|
@@ -47,14 +47,14 @@ const j = {
|
|
47
47
|
"actions"
|
48
48
|
],
|
49
49
|
setup(e) {
|
50
|
-
|
51
|
-
function
|
50
|
+
T();
|
51
|
+
function I(i) {
|
52
52
|
const n = /* @__PURE__ */ new Date(), x = new Date(i), f = Math.abs(n - x), g = Math.floor(f / 1e3), l = Math.floor(g / 60), u = Math.floor(l / 60), m = Math.floor(u / 24), h = Math.floor(m / 7);
|
53
53
|
return h > 0 ? `${h} week${h > 1 ? "s" : ""} ago` : m > 0 ? `${m} day${m > 1 ? "s" : ""} ago` : u > 0 ? `${u} hour${u > 1 ? "s" : ""} ago` : l > 0 ? `${l} minute${l > 1 ? "s" : ""} ago` : "Just now";
|
54
54
|
}
|
55
55
|
return (i, n) => {
|
56
|
-
var f, g, l, u, m, h, $,
|
57
|
-
const x =
|
56
|
+
var f, g, l, u, m, h, $, v, p, C, z, E, R, M, P;
|
57
|
+
const x = S("router-link");
|
58
58
|
return e.owner ? (t(), s("header", j, [
|
59
59
|
c("div", H, [
|
60
60
|
c("div", J, [
|
@@ -69,7 +69,7 @@ const j = {
|
|
69
69
|
}
|
70
70
|
}), ["stop"]))
|
71
71
|
}, null, 8, q)) : o("", !0),
|
72
|
-
!((m = (u = e.owner.target) == null ? void 0 : u.profile) != null && m.photo) && e.type !== "short" ? (t(), b(
|
72
|
+
!((m = (u = e.owner.target) == null ? void 0 : u.profile) != null && m.photo) && e.type !== "short" ? (t(), b(V, {
|
73
73
|
key: 1,
|
74
74
|
class: "radius-medium mn-r-thin i-thin",
|
75
75
|
onClick: n[1] || (n[1] = y((r) => i.$router.push({
|
@@ -87,8 +87,8 @@ const j = {
|
|
87
87
|
_id: e.owner.target._id
|
88
88
|
}
|
89
89
|
}), ["stop"]))
|
90
|
-
}, d((($ = (h = e.owner.target) == null ? void 0 : h.profile) == null ? void 0 : $.name) || ((
|
91
|
-
!e.creator.hidden && ((C = (
|
90
|
+
}, d((($ = (h = e.owner.target) == null ? void 0 : h.profile) == null ? void 0 : $.name) || ((v = e.creator.target) == null ? void 0 : v.username) || "Anonymous"), 1),
|
91
|
+
!e.creator.hidden && ((C = (p = e.owner.target) == null ? void 0 : p.profile) == null ? void 0 : C.name) !== ((E = (z = e.creator.target) == null ? void 0 : z.profile) == null ? void 0 : E.name) ? (t(), s("span", {
|
92
92
|
key: 0,
|
93
93
|
onClick: n[3] || (n[3] = y((r) => {
|
94
94
|
var a;
|
@@ -107,7 +107,7 @@ const j = {
|
|
107
107
|
text: i.formatDate(e.date)
|
108
108
|
}, {
|
109
109
|
default: w(() => [
|
110
|
-
U(d(
|
110
|
+
U(d(I(e.date)), 1)
|
111
111
|
]),
|
112
112
|
_: 1
|
113
113
|
}, 8, ["text"])) : o("", !0)
|
@@ -117,20 +117,20 @@ const j = {
|
|
117
117
|
c("div", X, [
|
118
118
|
e.members ? (t(), s("div", Y, [
|
119
119
|
c("span", Z, d(e.members), 1),
|
120
|
-
(t(!0), s(k, null,
|
120
|
+
(t(!0), s(k, null, F(e.membersPhotos.slice(0, 2), (r, a) => (t(), s(k, null, [
|
121
121
|
r ? (t(), s("img", {
|
122
122
|
key: a,
|
123
123
|
src: (i.FILE_SERVER_URL || "") + r,
|
124
|
-
style:
|
124
|
+
style: D({
|
125
125
|
position: "absolute",
|
126
126
|
top: "0px",
|
127
127
|
right: a * 20 + 20 + "%",
|
128
128
|
zIndex: 1 - a
|
129
129
|
}),
|
130
130
|
class: "br-solid br-2px br-white i-thin bg-light radius-big"
|
131
|
-
}, null, 12, _)) : (t(), b(
|
131
|
+
}, null, 12, _)) : (t(), b(V, {
|
132
132
|
key: 1,
|
133
|
-
style:
|
133
|
+
style: D({
|
134
134
|
position: "absolute",
|
135
135
|
top: "0px",
|
136
136
|
right: a * 20 + 20 + "%",
|
@@ -162,7 +162,7 @@ const j = {
|
|
162
162
|
]),
|
163
163
|
_: 1
|
164
164
|
}, 8, ["user", "type", "target"])) : o("", !0),
|
165
|
-
e.actions && e.actions.length > 0 ? (t(!0), s(k, { key: 1 },
|
165
|
+
e.actions && e.actions.length > 0 ? (t(!0), s(k, { key: 1 }, F(e.actions, (r) => (t(), s(k, null, [
|
166
166
|
r.to ? (t(), b(x, {
|
167
167
|
key: r.to,
|
168
168
|
to: r.to,
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=e.reactive({shops:[],popular:[],pagination:{page:1,perPage:18},search:{active:!1,current:"",result:[]},filter:{active:!1,
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=e.reactive({shops:[],popular:[],pagination:{page:1,perPage:18},search:{active:!1,current:"",result:[]},filter:{active:!1,class:"mobile-only",selected:{},options:[{title:"Delivery",value:"delivery",options:[{label:"Pickup",value:"pickup"},{label:"Courier",value:"courier"},{label:"Post",value:"post"}]},{title:"Prices",value:"prices",options:[{label:"Under 300฿",value:"<300"},{label:"300฿ to 600฿",value:"300-600"},{label:"600฿ to 1200฿",value:"600-1200"},{label:"$1200 and above",value:">1200"}]}]},sort:{param:"distance",order:"asc",options:[{label:"Distance",value:"distance"},{label:"Popularity",value:"views"},{label:"Products",value:"products"}]}});e.watch(a,(l,t)=>{});exports.state=a;
|
@@ -13,15 +13,9 @@ const l = e({
|
|
13
13
|
},
|
14
14
|
filter: {
|
15
15
|
active: !1,
|
16
|
-
|
17
|
-
|
18
|
-
delivery: [],
|
19
|
-
extra: [],
|
16
|
+
class: "mobile-only",
|
17
|
+
selected: {},
|
20
18
|
options: [{
|
21
|
-
title: "Categories",
|
22
|
-
value: "categories",
|
23
|
-
options: []
|
24
|
-
}, {
|
25
19
|
title: "Delivery",
|
26
20
|
value: "delivery",
|
27
21
|
options: [
|
@@ -55,7 +49,7 @@ const l = e({
|
|
55
49
|
}]
|
56
50
|
}
|
57
51
|
});
|
58
|
-
a(l, (t,
|
52
|
+
a(l, (t, o) => {
|
59
53
|
});
|
60
54
|
export {
|
61
55
|
l as state
|
package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("vue-router"),O=require("../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs");;/* empty css */;/* empty css */const P=require("../../../../components/Popup/Popup.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("vue-router"),O=require("../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs");;/* empty css */;/* empty css */const P=require("../../../../components/Popup/Popup.vue2.cjs"),I=require("../../../icons/entities/IconTime.vue.cjs"),B=require("../blocks/CardOrderItem.vue.cjs"),z=require("../../../organizations/components/blocks/CardOrganization.vue.cjs"),M=require("../../../chats/components/pages/ChatPage.vue.cjs"),F=require("../blocks/StatusHistory.vue.cjs"),L=require("../../../globals/store/globals.cjs"),d=require("../../store/orders.cjs"),R=require("../../../products/store/products.cjs"),T=require("../../../organizations/store/organizations.cjs");;/* empty css */const A=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),l=b=>(e.pushScopeId("data-v-75357432"),b=b(),e.popScopeId(),b),H={key:0,class:"pd-thin"},U={key:0,class:"mn-b-thin pos-relative w-100 bg-main radius-big pd-medium"},W={class:"mn-b-small flex-nowrap flex"},j={class:"t-medium p-medium"},G={class:"p-small t-transp"},J={class:"flex-nowrap flex gap-thin pos-relative"},K={class:"bg-light mn-b-thin pd-thin radius-extra flex-nowrap flex"},Q={class:"w-max flex-v-center gap-thin flex-nowrap flex pd-thin radius-small bg-white-transp-20"},X={class:"t-medium mn-r-auto"},Y=l(()=>e.createElementVNode("span",{class:"p-small t-transp"},"Estimated Arrival",-1)),Z=l(()=>e.createElementVNode("br",null,null,-1)),$=l(()=>e.createElementVNode("p",{class:"t-medium p-medium mn-b-thin"}," Positions ",-1)),ee={class:"bg-light pd-small radius-small flex gap-thin flex-column mn-b-semi"},te={key:1,class:"gap-thin cols-2"},se={class:"w-100"},ae={class:"mn-b-thin bg-light w-100 o-hidden radius-medium"},le={class:"pd-small flex-nowrap flex"},re={class:"mn-r-auto"},ne=l(()=>e.createElementVNode("span",{class:"d-block t-medium p-medium"},"Order is",-1)),oe=l(()=>e.createElementVNode("span",{class:"t-lh-075 h2 d-block mn-b-small"},"created",-1)),ie={class:"pd-t-nano pd-b-nano pd-r-thin pd-l-thin radius-extra bg-black t-white w-max"},ce={class:"pd-small cols-2 br-t br-black-transp-10 br-solid"},de=l(()=>e.createElementVNode("p",{class:"w-100 t-medium p-medium"}," Phone ",-1)),ue={class:"w-100 t-right"},me={class:"pd-small cols-2 br-t br-black-transp-10 br-solid"},pe=l(()=>e.createElementVNode("p",{class:"t-medium p-medium"}," Address ",-1)),he={class:"w-100 t-right"},_e={class:"pd-small cols-2 br-t br-black-transp-10 br-solid"},be=l(()=>e.createElementVNode("p",{class:"mn-b-small t-medium p-medium"}," Delivery ",-1)),ve={class:"w-100 t-right mn-b-small"},ge={key:2,class:"t-transp"},fe={class:"bg-light radius-big pd-medium mn-r-bold pd-r-big br-right-dark w-100"},Ne=l(()=>e.createElementVNode("h3",{class:"mn-b-small"},"Order Summary",-1)),Ve={class:"flex gap-thin flex-column mn-b-semi"},Ee={class:"mn-b-medium radius-small br-solid br-1px br-black-transp-10 w-100"},ke={class:"pd-small br-solid br-b br-black-transp-10 flex"},ye=l(()=>e.createElementVNode("p",{class:"mn-r-auto t-transp"},"In total",-1)),we={class:"pd-small br-solid br-b br-black-transp-10 flex"},Se=l(()=>e.createElementVNode("p",{class:"mn-r-auto t-transp"},"Delivery",-1)),xe={class:"pd-small flex-bottom flex"},Ce=l(()=>e.createElementVNode("p",{class:"mn-r-auto t-transp"},"In total to pay",-1)),Be={class:"p-big t-semi"},De=l(()=>e.createElementVNode("h3",{class:"mn-b-small"},"Chat With Us",-1)),qe={__name:"OrderBackoffice",setup(b){C.useRouter();const h=C.useRoute(),s=e.ref(null),v=e.ref(null),n=e.ref(null),o=["created","confirmed","packing","in delivery","delivered"],V=["Created","Confirmed","Packing","In Delivery","Delivered"],g=t=>o.slice(t).includes(s.value.status),f=e.ref(!1),E=e.ref(null),N=e.ref([]);function D(t){f.value=!0,typeof t=="number"&&(E.value=t)}function k(){f.value=!1,E.value=null}e.onMounted(async()=>{var a,r;s.value=await d.actions.read({_id:h.params.order}),s.value=s.value[0],v.value=await R.actions.read({organization:s.value.owner.target._id,limit:1e3}),console.log(v.value);const t=v.value.reduce((u,m)=>(u[m._id]=m,u),{});console.log(t),N.value=s.value.positions.map(({_id:u,quantity:m})=>{const p=t[u];return{name:p.name,images:p.images,price:p.price,_id:p._id,quantity:m}}),n.value=await T.actions.read({_id:(a=s.value)==null?void 0:a.owner.target._id,location:(r=L.state.position)==null?void 0:r.location})});let y=e.computed(()=>{var t;return Number((t=s.value)==null?void 0:t.positions.reduce((a,r)=>a+r.price*r.quantity,0))});e.computed(()=>{var t;return Number((t=s.value)==null?void 0:t.positions.reduce((a,r)=>a+r.quantity,0))});function _(t){const a=o.indexOf(t);return a!==-1&&a+1<o.length?o[a+1]:null}function w(t){const a=o.indexOf(t);return t?V[a]:""}async function q(){const t=_(d.state.current.status);t?(d.state.current.status=t,await d.actions.update(d.state.current)):console.error("Next status is void. Must handle somehow."),k()}return(t,a)=>{var r,u,m,p,S,x;return s.value&&n.value?(e.openBlock(),e.createElementBlock("div",H,[s.value?(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("div",W,[e.createElementVNode("p",j,[e.createTextVNode(" Order No: "),e.createElementVNode("span",G,"#"+e.toDisplayString(s.value._id),1)])]),e.createElementVNode("div",J,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(o,(i,c)=>e.createElementVNode("div",{key:c,class:"w-20"},[e.createElementVNode("div",{class:e.normalizeClass(["bg-light br-anim br-glow radius-extra h-1r w-100",{"br-glow-anim":g(c)},{"t-transp":!g(c)},{blink:s.value.status===o[c]&&_(s.value.status)}])},null,2),e.createElementVNode("div",{class:e.normalizeClass([{"t-transp":!g(c)},"mn-t-thin p-small t-medium uppercase"])},e.toDisplayString(V[c]),3)])),64))])])):e.createCommentVNode("",!0),e.createElementVNode("div",K,[e.createElementVNode("div",Q,[e.createVNode(I.default,{class:"i-semi t-transp",fill:"rgb(var(--black)"}),e.createElementVNode("p",X,[Y,Z,e.createTextVNode(e.toDisplayString(t.formatDate(s.value.deadline)),1)])]),_(s.value.status)&&e.unref(h).name==="Order Edit"?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:D,class:"mn-l-auto bg-black t-white button"}," Mark as "+e.toDisplayString(w(_(s.value.status))),1)):e.createCommentVNode("",!0)]),e.createVNode(P.default,{title:"Change status",onClosePopup:k,isPopupOpen:f.value,class:"bg-white w-min-30r w-max-30r radius-big pd-big"},{default:e.withCtx(()=>[e.createVNode(e.unref(O.default),{modelValue:s.value.deadline,"onUpdate:modelValue":a[0]||(a[0]=i=>s.value.deadline=i),"hide-navigation":["calendar"],flow:["time"],class:"z-index-3 bg-light radius-small pd-small mn-b-thin mn-b-semi"},null,8,["modelValue"]),$,e.createElementVNode("ul",ee,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(i,c)=>(e.openBlock(),e.createBlock(B.default,{key:i._id,editable:!1,product:i},null,8,["product"]))),128))]),e.createElementVNode("button",{onClick:q,class:"w-100 bg-black-small t-white button"},e.toDisplayString("Confirm Changing to "+w(_(s.value.status))),1)]),_:1},8,["isPopupOpen"]),s.value?(e.openBlock(),e.createElementBlock("div",te,[e.createElementVNode("div",se,[n.value[0]?(e.openBlock(),e.createBlock(z.default,{key:0,organization:n.value[0],showRating:!0,showFollowers:!1,showProducts:!1,class:"bg-light mn-b-thin w-100 o-hidden radius-big pd-small"},null,8,["organization"])):e.createCommentVNode("",!0),e.createElementVNode("div",ae,[e.createElementVNode("div",le,[e.createElementVNode("div",re,[ne,oe,e.createElementVNode("p",ie,e.toDisplayString(t.formatDate(s.value.createdAt)),1)])]),e.createElementVNode("div",ce,[de,e.createElementVNode("p",ue,e.toDisplayString(((r=s.value.customer.target)==null?void 0:r.number)||"Not specified"),1)]),e.createElementVNode("div",me,[pe,e.createElementVNode("p",he,e.toDisplayString(s.value.delivery.address?s.value.delivery.address.slice(0,64):"Not specified"),1)]),e.createElementVNode("div",_e,[be,e.createElementVNode("p",ve,e.toDisplayString(s.value.delivery.type?s.value.delivery.type:"Not specified"),1)])]),d.state.current.status_history?(e.openBlock(),e.createBlock(F.default,{key:1,statuses:o,statusHistory:d.state.current.status_history,statusCurrent:d.state.current.status,edit:e.unref(h).name==="Order Edit"},null,8,["statusHistory","statusCurrent","edit"])):e.createCommentVNode("",!0),t.payment&&t.payment.Status==="CONFIRMED"?(e.openBlock(),e.createElementBlock("span",ge,"Paid")):e.createCommentVNode("",!0)]),e.createElementVNode("div",fe,[Ne,e.createElementVNode("ul",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(i,c)=>(e.openBlock(),e.createBlock(B.default,{key:i._id,editable:!1,product:i},null,8,["product"]))),128))]),e.createElementVNode("div",Ee,[e.createElementVNode("div",ke,[ye,e.createElementVNode("p",null,e.toDisplayString(e.unref(y))+" "+e.toDisplayString(t.returnCurrency()),1)]),e.createElementVNode("div",we,[Se,e.createElementVNode("p",null,e.toDisplayString(t.returnCurrency())+" "+e.toDisplayString(Math.trunc(100+20*((u=n.value[0])==null?void 0:u.distance)-7,5*(((m=n.value[0])==null?void 0:m.distance)/10))),1)]),e.createElementVNode("div",xe,[Ce,e.createElementVNode("p",Be,e.toDisplayString(t.returnCurrency())+" "+e.toDisplayString(Math.trunc(100+20*((p=n.value[0])==null?void 0:p.distance)-7,5*(((S=n.value[0])==null?void 0:S.distance)/10))+e.unref(y)),1)])]),De,e.createVNode(M.default,{username:e.unref(h).name==="Order Status"?((x=s.value.user)==null?void 0:x.name)||"User":"Weeder Support",chatID:e.unref(h).params.order,class:"radius-semi bg-white o-hidden"},null,8,["username","chatID"])])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}}},Oe=A.default(qe,[["__scopeId","data-v-75357432"]]);exports.default=Oe;
|
package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js
CHANGED
@@ -3,7 +3,7 @@ import { useRouter as K, useRoute as Q } from "vue-router";
|
|
3
3
|
import X from "../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js";
|
4
4
|
/* empty css */
|
5
5
|
/* empty css */
|
6
|
-
import Y from "../../../../components/Popup/Popup.
|
6
|
+
import Y from "../../../../components/Popup/Popup.vue2.js";
|
7
7
|
import Z from "../../../icons/entities/IconTime.vue.js";
|
8
8
|
import L from "../blocks/CardOrderItem.vue.js";
|
9
9
|
import tt from "../../../organizations/components/blocks/CardOrganization.vue.js";
|
package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("vue-router");;/* empty css */const P=require("../../../../components/Button/Button.vue2.cjs"),q=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Popup/Popup.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("vue-router");;/* empty css */const P=require("../../../../components/Button/Button.vue2.cjs"),q=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Popup/Popup.vue2.cjs"),u=require("../../../../components/Block/Block.vue.cjs"),b=require("../../../../components/Feed/Feed.vue.cjs"),_=require("../blocks/CardOrderItem.vue.cjs");;/* empty css */;/* empty css */const C=require("../../../users/components/blocks/CardUser.vue.cjs"),V=require("../sections/FormAddCustomer.vue.cjs"),O=require("../sections/FormDelivery.vue.cjs"),E=require("../sections/FormPayment.vue.cjs"),l=require("../../../globals/store/globals.cjs"),F=require("../../../auth/store/auth.cjs"),t=require("../../store/orders.cjs"),S=require("../../../products/store/products.cjs"),D=require("../../store/customers.store.cjs");;/* empty css */const R={class:"h-100 flex flex-column pd-thin"},T={class:"flex-v-center flex-nowrap flex"},A=e.createElementVNode("h2",{class:"mn-r-auto"},"Create Order",-1),I=e.createElementVNode("h3",{class:"mn-b-small"},"Add to order",-1),z={class:"bg-light h-max-100 mn-b-thin o-scroll pd-medium radius-big"},L={key:0,class:"w-100"},M={class:"h3 flex"},U=e.createElementVNode("span",{class:"mn-r-auto t-transp"},"In total",-1),j={__name:"OrderCreateBackoffice",setup(G){const a=h.useRoute(),g=h.useRouter();t.mutations.resetOrder(t.state.current);let v=e.computed(()=>Number(t.state.current.positions.reduce((d,n)=>d+n.price*n.quantity,0)));const s=e.ref("positions"),c=e.ref(!1);function y(){c.value=!0}function m(){c.value=!1}const i=e.ref(!1);function B(){i.value=!0}function p(){i.value=!1}e.ref(null);function w(){t.state.current.creator={type:"User",target:F.state.user._id},t.state.current.owner={type:"Organization",target:a.params._id},t.state.current.customer={type:"Customer",target:t.state.current.customer._id||null},t.actions.create(t.state.current)}function x(){g.push({name:"Backoffice Orders",params:{_id:a.params._id}})}return e.onMounted(()=>{}),(d,n)=>(e.openBlock(),e.createElementBlock("div",R,[e.createVNode(u.default,{class:"mn-b-thin"},{default:e.withCtx(()=>[e.createElementVNode("header",T,[A,e.createVNode(P.default,{submit:w,callback:x,class:"pd-small radius-big bg-main t-black uppercase t-medium"},{default:e.withCtx(()=>[e.createTextVNode(" Add Order ")]),_:1})])]),_:1}),e.createVNode(q.default,{selected:s.value,"onUpdate:selected":n[0]||(n[0]=r=>s.value=r),tabs:[{name:"Positions",value:"positions"},{name:"Customer",value:"customer"},{name:"Delivery",value:"delivery"},{name:"Payment",value:"payment"}],class:"t-medium radius-medium bg-light mn-b-small"},null,8,["selected"]),e.createVNode(k.default,{onClosePopup:m,isPopupOpen:c.value,class:"bg-white w-min-30r w-max-30r h-max-100 flex flex-column radius-big pd-medium pos-relative"},{default:e.withCtx(()=>[I,e.createElementVNode("div",z,[e.createVNode(b.default,{search:{placeholder:"Search products...",class:"bg-white mn-b-thin"},states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:r=>S.actions.read(r),state:null},options:{organization:e.unref(a).params._id},class:""},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(o,N)=>(e.openBlock(),e.createBlock(_.default,{key:o._id,editable:!1,product:o,onClick:()=>{let f={...o};f.quantity=1,l.actions.add(t.state.current.positions,f),m()},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["product","onClick"]))),128))]),_:1},8,["store","options"])])]),_:1},8,["isPopupOpen"]),s.value==="positions"?(e.openBlock(),e.createBlock(u.default,{key:0,title:"Positions",actions:[{label:"+",function:()=>y()}],class:"mn-b-small"},{default:e.withCtx(()=>[t.state.current.positions.length===0?(e.openBlock(),e.createElementBlock("span",L," No positions added yet ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.positions,(r,o)=>(e.openBlock(),e.createBlock(_.default,{key:r._id,editable:!0,product:r,onIncrease:()=>{l.actions.increment(t.state.current.positions,r)},onDecrease:()=>{l.actions.decrement(t.state.current.positions,r)},onRemove:()=>{l.actions.delete(t.state.current.positions,r)},class:"mn-b-thin pd-thin radius-medium bg-white"},null,8,["product","onIncrease","onDecrease","onRemove"]))),128))]),_:1},8,["actions"])):e.createCommentVNode("",!0),s.value==="customer"?(e.openBlock(),e.createBlock(u.default,{key:1,title:"Customer",class:"mn-b-semi",actions:[{label:"+",function:()=>B()}]},{default:e.withCtx(()=>[t.state.current.customer._id?(e.openBlock(),e.createBlock(C.default,{key:0,user:t.state.current.customer,photo:t.state.current.customer.profile.photo,name:t.state.current.customer.profile.name||t.state.current.customer.phone||t.state.current.customer.email,onClick:n[1]||(n[1]=()=>{t.mutations.resetCustomer(t.state.current.customer)}),class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["user","photo","name"])):(e.openBlock(),e.createBlock(b.default,{key:1,search:{placeholder:"Search customer...",class:"bg-white mn-b-thin"},states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:r=>e.unref(D.default).read(r),state:null},options:{owner:e.unref(a).params._id},class:"bg-light h-max-20r o-scroll"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(o,N)=>(e.openBlock(),e.createBlock(C.default,{key:o._id,user:o,photo:o.profile.photo,name:o.profile.name||o.phone||o.email,onClick:()=>{t.state.current.customer=o},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["user","photo","name","onClick"]))),128))]),_:1},8,["store","options"]))]),_:1},8,["actions"])):e.createCommentVNode("",!0),s.value==="delivery"?(e.openBlock(),e.createBlock(O.default,{key:2,order:t.state.current},null,8,["order"])):e.createCommentVNode("",!0),s.value==="payment"?(e.openBlock(),e.createBlock(E.default,{key:3,order:t.state.current},null,8,["order"])):e.createCommentVNode("",!0),e.createVNode(k.default,{title:"Add customer",onClosePopup:p,isPopupOpen:i.value,class:e.normalizeClass("bg-white w-min-30r w-max-30r radius-big pd-medium")},{default:e.withCtx(()=>[e.createVNode(V.default,{onCallbackCustomer:p})]),_:1},8,["isPopupOpen"]),e.createVNode(u.default,{class:"mn-b-semi"},{default:e.withCtx(()=>[e.createElementVNode("div",M,[U,e.createElementVNode("span",null,e.toDisplayString(e.unref(v))+" "+e.toDisplayString(d.returnCurrency()),1)])]),_:1})]))}};exports.default=j;
|
package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js
CHANGED
@@ -3,7 +3,7 @@ import { useRoute as L, useRouter as M } from "vue-router";
|
|
3
3
|
/* empty css */
|
4
4
|
import j from "../../../../components/Button/Button.vue2.js";
|
5
5
|
import G from "../../../../components/Tab/Tab.vue2.js";
|
6
|
-
import O from "../../../../components/Popup/Popup.
|
6
|
+
import O from "../../../../components/Popup/Popup.vue2.js";
|
7
7
|
import _ from "../../../../components/Block/Block.vue.js";
|
8
8
|
import $ from "../../../../components/Feed/Feed.vue.js";
|
9
9
|
import N from "../blocks/CardOrderItem.vue.js";
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import { ref as
|
1
|
+
import { ref as o, openBlock as m, createBlock as i, withCtx as u, createVNode as s, createElementVNode as d, unref as n, isRef as f } from "vue";
|
2
2
|
import p from "../../../../components/Block/Block.vue.js";
|
3
|
-
import
|
3
|
+
import r from "../../../../components/Field/Field.vue2.js";
|
4
4
|
import c from "../../../../components/FieldPhone/FieldPhone.vue.js";
|
5
|
-
import
|
6
|
-
const
|
5
|
+
import g from "../../../../components/Select/Select.vue2.js";
|
6
|
+
const h = { class: "gap-thin flex-justify-between flex-nowrap flex" }, V = {
|
7
7
|
__name: "FormCustomerDetails",
|
8
8
|
props: {
|
9
9
|
customer: Object,
|
@@ -13,13 +13,13 @@ const g = { class: "gap-thin flex-justify-between flex-nowrap flex" }, V = {
|
|
13
13
|
}
|
14
14
|
},
|
15
15
|
setup(t) {
|
16
|
-
let a =
|
16
|
+
let a = o("instagram");
|
17
17
|
return (w, e) => (m(), i(p, {
|
18
18
|
title: t.title,
|
19
19
|
class: "mn-b-thin"
|
20
20
|
}, {
|
21
21
|
default: u(() => [
|
22
|
-
s(
|
22
|
+
s(r, {
|
23
23
|
field: t.customer.profile.name,
|
24
24
|
"onUpdate:field": e[0] || (e[0] = (l) => t.customer.profile.name = l),
|
25
25
|
label: "Name",
|
@@ -46,8 +46,8 @@ const g = { class: "gap-thin flex-justify-between flex-nowrap flex" }, V = {
|
|
46
46
|
mode: "national",
|
47
47
|
class: "w-100 bg-white pd-small mn-b-thin radius-small"
|
48
48
|
}, null, 8, ["modelValue"]),
|
49
|
-
d("div",
|
50
|
-
s(
|
49
|
+
d("div", h, [
|
50
|
+
s(g, {
|
51
51
|
select: n(a),
|
52
52
|
options: [
|
53
53
|
{ name: "Instagram", value: "instagram" },
|
@@ -59,7 +59,7 @@ const g = { class: "gap-thin flex-justify-between flex-nowrap flex" }, V = {
|
|
59
59
|
size: "small",
|
60
60
|
class: "bg-white pd-small radius-small"
|
61
61
|
}, null, 8, ["select"]),
|
62
|
-
s(
|
62
|
+
s(r, {
|
63
63
|
field: t.customer.socials[n(a)],
|
64
64
|
"onUpdate:field": e[4] || (e[4] = (l) => t.customer.socials[n(a)] = l),
|
65
65
|
label: "@",
|