@ozdao/prometheus-framework 0.1.68 → 0.1.70
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/BackofficeGallery-59a591ab.js +1 -0
- package/dist/BackofficeGallery-be6f69a9.mjs +307 -0
- package/dist/BackofficeReports-06166952.js +1 -0
- package/dist/BackofficeReports-50fd799c.mjs +44 -0
- package/dist/BlockTags-00325fa0.mjs +853 -0
- package/dist/BlockTags-58f95c8a.js +1 -0
- package/dist/ButtonToggleMembership-84d0e018.mjs +90 -0
- package/dist/ButtonToggleMembership-b905812f.js +1 -0
- package/dist/CardBlogpost-1b81b54e.mjs +246 -0
- package/dist/CardBlogpost-7107e04a.js +1 -0
- package/dist/CardOrganization-49ab5190.mjs +234 -0
- package/dist/CardOrganization-e6ac27f1.js +1 -0
- package/dist/CardProduct-4c0cb9a1.js +1 -0
- package/dist/CardProduct-ea0e1f84.mjs +192 -0
- package/dist/Chips-817cf959.js +1 -0
- package/dist/Chips-8c836ba6.mjs +213 -0
- package/dist/Community-8c4e011b.js +1 -0
- package/dist/Community-bd6f0cbb.mjs +131 -0
- package/dist/Dashboard-73b50724.js +1 -0
- package/dist/Dashboard-bc81b5f6.mjs +151 -0
- package/dist/Dropdown-60e3dc6c.js +1 -0
- package/dist/Dropdown-d1c81d45.mjs +169 -0
- package/dist/EditOrder-2b746caf.mjs +221 -0
- package/dist/EditOrder-e632f0cc.js +1 -0
- package/dist/Events-999cc8ed.js +1 -0
- package/dist/Events-ad8bbf27.mjs +134 -0
- package/dist/Feed-35e13c22.mjs +156 -0
- package/dist/Feed-53d96b18.mjs +361 -0
- package/dist/Feed-694a2fad.js +1 -0
- package/dist/Feed-ac4bb6ea.js +1 -0
- package/dist/Feed-d1d01771.js +1 -0
- package/dist/Feed-f7c04014.mjs +124 -0
- package/dist/Image-61cfd52d.js +9 -0
- package/dist/Image-e8be4acc.mjs +480 -0
- package/dist/LeftoverAdd-a268a95c.js +1 -0
- package/dist/LeftoverAdd-e4d93760.mjs +229 -0
- package/dist/Leftovers-6976802d.mjs +135 -0
- package/dist/Leftovers-d8f1d152.js +1 -0
- package/dist/Members-aeb2bca1.mjs +109 -0
- package/dist/Members-b9664e83.js +1 -0
- package/dist/Menu-93d34d9f.js +1 -0
- package/dist/Menu-eaf6b44c.mjs +13 -0
- package/dist/MenuItem-4a5881bd.mjs +85 -0
- package/dist/MenuItem-f35cad93.js +1 -0
- package/dist/Orders-8bc8963c.js +1 -0
- package/dist/Orders-eb262d8c.mjs +75 -0
- package/dist/Organizations-9926aa51.mjs +72 -0
- package/dist/Organizations-c653d814.js +1 -0
- package/dist/Payments-98328000.js +1 -0
- package/dist/Payments-a9066cdf.mjs +11 -0
- package/dist/Popup-0d8e1392.mjs +96 -0
- package/dist/Popup-eb11fa82.js +1 -0
- package/dist/Product-15043af7.mjs +651 -0
- package/dist/Product-82c022a4.js +7 -0
- package/dist/ProductEdit-05da9866.mjs +258 -0
- package/dist/ProductEdit-2f075296.js +1 -0
- package/dist/ProductsBackoffice-8462f626.js +1 -0
- package/dist/ProductsBackoffice-8d0f0ee8.mjs +85 -0
- package/dist/ProfileBlogposts-43855cb9.js +1 -0
- package/dist/ProfileBlogposts-f32170a3.mjs +78 -0
- package/dist/ProfileEvents-54be2d43.mjs +69 -0
- package/dist/ProfileEvents-ab69e27e.js +1 -0
- package/dist/ProfileOrganizations-0787cf34.mjs +72 -0
- package/dist/ProfileOrganizations-eb62dde4.js +1 -0
- package/dist/Publics-8e726d20.mjs +45 -0
- package/dist/Publics-ae589bf1.js +1 -0
- package/dist/Select-95f4701a.js +1 -0
- package/dist/Select-dab17282.mjs +80 -0
- package/dist/Select.vue_vue_type_style_index_0_scoped_dfe03dc2_lang-0ea8fbf8.js +1 -0
- package/dist/Select.vue_vue_type_style_index_0_scoped_dfe03dc2_lang-4ed993c7.mjs +1 -0
- package/dist/Socials-43293869.js +1 -0
- package/dist/Socials-8193477c.mjs +189 -0
- package/dist/UploadImage-0e8e4278.mjs +83 -0
- package/dist/UploadImage-8c71bda6.js +1 -0
- package/dist/UploadImageMultiple-c34a6c6f.mjs +58 -0
- package/dist/UploadImageMultiple-d1316df5.js +1 -0
- package/dist/Wallet-727195d9.mjs +21700 -0
- package/dist/Wallet-f4dda407.js +10 -0
- package/dist/auth-04684a60.js +7 -0
- package/dist/auth-7e39361f.mjs +633 -0
- package/dist/auth.client.cjs +1 -1
- package/dist/auth.client.js +5 -5
- package/dist/auth.validation-d614130d.js +1 -0
- package/dist/auth.validation-f4bf1deb.mjs +24 -0
- package/dist/axios-33aeb810.mjs +1435 -0
- package/dist/axios-ceccf20e.js +5 -0
- package/dist/backoffice.client.cjs +1 -1
- package/dist/backoffice.client.js +20 -20
- package/dist/categories-7e17a7eb.js +1 -0
- package/dist/categories-b7f9e8c0.mjs +122 -0
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +209 -202
- package/dist/events.client.cjs +2 -2
- package/dist/events.client.js +24 -27
- package/dist/landing.client.cjs +1 -1
- package/dist/landing.client.js +64 -40
- package/dist/leftovers-86e7d438.mjs +67 -0
- package/dist/leftovers-c9f70579.js +1 -0
- package/dist/legal.client.cjs +1 -1
- package/dist/legal.client.js +6 -7
- package/dist/memberships-559590ad.mjs +68 -0
- package/dist/memberships-58af22e0.js +1 -0
- package/dist/modules/events/components/sections/Feed.vue.d.ts +1 -1
- package/dist/orders-1325c51b.js +1 -0
- package/dist/orders-c7cbe706.mjs +85 -0
- package/dist/organizations-71777b32.js +1 -0
- package/dist/organizations-93f7b610.mjs +122 -0
- package/dist/organizations.client-6ca27fb3.js +3 -0
- package/dist/organizations.client-bd63a7b2.mjs +2997 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +56 -61
- package/dist/products-61d83d74.js +1 -0
- package/dist/products-7f1e5a75.mjs +108 -0
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +72 -2
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -72
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +78 -2
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -78
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +4 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +61 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +2 -61
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +24 -21
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- 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 +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 +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 +2 -2
- 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/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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- 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/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.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 +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/reports-a67b4fb4.js +1 -0
- package/dist/reports-c579b02a.mjs +91 -0
- package/dist/reports.client.cjs +1 -1
- package/dist/reports.client.js +2 -2
- package/dist/states.validation-3b4604bc.mjs +13 -0
- package/dist/states.validation-9b43a097.js +1 -0
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +279 -208
- package/package.json +1 -1
- package/src/components/Search/Search.vue +1 -1
- package/src/components/Status/Status.vue +1 -1
- package/src/modules/backoffice/components/admin/Backcalls.vue +1 -1
- package/src/modules/backoffice/components/admin/Categories.vue +1 -1
- package/src/modules/backoffice/components/admin/CategoryEdit.vue +1 -1
- package/src/modules/backoffice/components/admin/Dashboard.vue +1 -1
- package/src/modules/backoffice/components/admin/FastOrders.vue +1 -1
- package/src/modules/backoffice/components/admin/PageEdit.vue +1 -1
- package/src/modules/backoffice/components/admin/Pages.vue +1 -1
- package/src/modules/backoffice/components/admin/User.vue +1 -1
- package/src/modules/backoffice/components/admin/Users.vue +1 -1
- package/src/modules/events/components/pages/Events.vue +2 -2
- package/src/modules/orders/components/blocks/Positions.vue +1 -1
- package/src/modules/orders/components/pages/ViewOrder.vue +1 -1
- package/src/modules/products/components/sections/ProductInformationSection.vue +2 -5
package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const q=require("../../../../components/Tab/Tab.vue2.cjs");require("../../../mobile/components/Menu/Menu.vue.cjs");require("../../../mobile/components/Menu/MenuItem.vue.cjs");const _=require("../../../events/components/sections/Feed.vue.cjs"),p=require("../../../community/components/sections/Feed.vue.cjs"),f=require("../../../spots/components/sections/Feed.vue.cjs"),v=require("../sections/DetailsTab.vue.cjs"),b=require("../../../products/components/pages/Products.vue.cjs");require("../../../../components/Spoiler/Spoiler.vue.cjs");require("../../../../components/Map/Map.vue.cjs");require("../blocks/DepartmentSub.vue2.cjs");require("../blocks/User.vue2.cjs");require("../blocks/CardDepartment.vue2.cjs");require("../../store/departments.cjs");const n=require("../../../auth/store/auth.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const q=require("../../../../components/Tab/Tab.vue2.cjs");require("../../../mobile/components/Menu/Menu.vue.cjs");require("../../../mobile/components/Menu/MenuItem.vue.cjs");const _=require("../../../events/components/sections/Feed.vue.cjs"),p=require("../../../community/components/sections/Feed.vue.cjs"),f=require("../../../spots/components/sections/Feed.vue.cjs"),v=require("../sections/DetailsTab.vue.cjs"),b=require("../../../products/components/pages/Products.vue.cjs");require("../../../../components/Spoiler/Spoiler.vue.cjs");require("../../../../components/Map/Map.vue.cjs");require("../blocks/DepartmentSub.vue2.cjs");require("../blocks/User.vue2.cjs");require("../blocks/CardDepartment.vue2.cjs");require("../../store/departments.cjs");const n=require("../../../auth/store/auth.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue2.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../middlewares/client/inputs.validation.cjs");require("../../store/invites.cjs");const c=require("../../store/memberships.cjs"),o=require("../../store/organizations.cjs");require("./Organization.vue2.cjs");const g={key:0,class:"pd-thin for-transition w-100"},y=e.createElementVNode("p",null,"34 members",-1),h=[y],k={class:"pos-relative"},N={key:0},V={__name:"Organization",setup(w){const i=d.useRouter(),r=d.useRoute();let m=r.query.tab?r.query.tab:"events";const s=e.ref(null);e.onMounted(async()=>{s.value=await o.actions.read({_id:r.params._id,user:n.state.user._id}),await c.actions.read(r.params._id)});const t=e.ref(m);return r.query.tab=t.value,e.watch(t,u=>{i.replace({query:{...r.query,tab:u}})}),(u,a)=>s.value?(e.openBlock(),e.createElementBlock("div",g,[e.createVNode(v.default,{organization:o.state.current,user:n.state.user,class:"mn-semi"},null,8,["organization","user"]),e.createElementVNode("section",{onClick:a[0]||(a[0]=l=>e.unref(i).push({name:"Organization Members",params:{_id:e.unref(r).params._id}})),class:"mn-semi bg-grey radius-big pd-medium"},h),e.createVNode(q.default,{selected:t.value,"onUpdate:selected":a[1]||(a[1]=l=>t.value=l),tabs:[{name:"Community",value:"community"},{name:"Events",value:"events"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createElementVNode("div",k,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="community"?(e.openBlock(),e.createBlock(p.default,{key:0,user:n.state.user._id,owner:e.unref(r).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="events"?(e.openBlock(),e.createBlock(_.default,{key:0,user:n.state.user._id,owner:e.unref(r).params._id,sortOrder:"asc"},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="products"?(e.openBlock(),e.createBlock(b.default,{key:0,organization:o.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="spots"?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(f.default,{organization:o.state.current,memberships:c.state.memberships},null,8,["organization","memberships"])])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}};exports.default=V;
|
package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js
CHANGED
@@ -19,7 +19,7 @@ import "../blocks/CardDepartment.vue2.js";
|
|
19
19
|
import "../../store/departments.js";
|
20
20
|
import { state as u } from "../../../auth/store/auth.js";
|
21
21
|
import "../../../../components/Field/Field.vue.js";
|
22
|
-
import "../../../../components/Select/Select.
|
22
|
+
import "../../../../components/Select/Select.vue2.js";
|
23
23
|
import "../../../../components/Button/Button.vue.js";
|
24
24
|
import "../../../middlewares/client/inputs.validation.js";
|
25
25
|
import "../../store/invites.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),n=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const p=require("../../../../components/FieldTags/BlockTags.vue.cjs");require("../../../../components/Tab/Tab.vue.cjs");const l=require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),n=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const p=require("../../../../components/FieldTags/BlockTags.vue.cjs");require("../../../../components/Tab/Tab.vue.cjs");const l=require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Select/Select.vue2.cjs");const f=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),g=require("../../../../components/UploadImage/UploadImage.vue.cjs"),h=require("../../../../components/Button/Button.vue2.cjs");require("../../../../components/Popup/Popup.vue2.cjs");const b=require("../../../auth/store/auth.cjs"),e=require("../../store/organizations.cjs");require("../../store/memberships.cjs");const y={class:"for-transition pd-thin"},_=t.createElementVNode("h3",{class:"mn-small"},"Type of group",-1),V=t.createElementVNode("p",{class:"mn-thin"},"Public groups are open to everyone, whereas in exclusive groups only members can post. If you wish to make a group private, select 'hidden'.",-1),N=t.createElementVNode("h3",{class:"mn-small"},"Profile",-1),q={class:"mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},v=t.createElementVNode("h4",null,"Upload photo",-1),w=t.createElementVNode("h3",{class:"mn-small"},"Socials",-1),x=t.createElementVNode("p",{class:"mn-thin"},"Please provide only the username for social media profiles, without full links.",-1),U={__name:"OrganizationEdit",async setup(k){let o,i;const s=n.useRoute(),d=n.useRouter();e.actions.reset(),s.params._id&&([o,i]=t.withAsyncContext(()=>e.actions.read({_id:s.params._id})),await o,i());const u=t.computed(()=>e.state.current);async function c(){s.params._id?await e.actions.update(s.params._id,u.value):await e.actions.create(e.state.current,b.state.user._id)}function m(){d.replace({name:"Organization",params:{_id:e.state.current._id}})}return(E,a)=>(t.openBlock(),t.createElementBlock("div",y,[_,V,t.createVNode(f.default,{modelValue:e.state.current.types,"onUpdate:modelValue":a[0]||(a[0]=r=>e.state.current.types=r),options:["public","exclusive","hidden"],multiple:!1,taggable:!1,placeholder:"Type to search or add type of organization",class:"mn-semi bg-grey pd-medium radius-small"},null,8,["modelValue"]),N,t.createElementVNode("div",q,[t.createVNode(g.default,{photo:e.state.current.profile.photo,"onUpdate:photo":a[1]||(a[1]=r=>e.state.current.profile.photo=r),uploadPath:"organizations/"+e.state.current._id+"/avatars",class:"h-4r w-4r aspect-1x1 o-hidden mn-thin radius-extra"},null,8,["photo","uploadPath"]),v]),t.createVNode(l.default,{field:e.state.current.profile.name,"onUpdate:field":a[2]||(a[2]=r=>e.state.current.profile.name=r),placeholder:"Name of organization",class:"mn-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.profile.description,"onUpdate:field":a[3]||(a[3]=r=>e.state.current.profile.description=r),placeholder:"Brief description of your group",class:"mn-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(p.default,{onTagsChanged:a[4]||(a[4]=r=>e.state.current.profile.tags=r),tags:e.state.current.profile.tags},null,8,["tags"]),w,x,t.createVNode(l.default,{field:e.state.current.socials.instagram,"onUpdate:field":a[5]||(a[5]=r=>e.state.current.socials.instagram=r),label:"Instagram",placeholder:"",class:"mn-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.twitter,"onUpdate:field":a[6]||(a[6]=r=>e.state.current.socials.twitter=r),label:"Twitter",placeholder:"",class:"mn-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.facebook,"onUpdate:field":a[7]||(a[7]=r=>e.state.current.socials.facebook=r),label:"Facebook",placeholder:"",class:"mn-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.telegram,"onUpdate:field":a[8]||(a[8]=r=>e.state.current.socials.telegram=r),label:"Telegram",placeholder:"",class:"mn-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(h.default,{submit:c,callback:m,class:"mn-thin"},{default:t.withCtx(()=>[t.createTextVNode("Save")]),_:1})]))}};exports.default=U;
|
package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js
CHANGED
@@ -6,11 +6,11 @@ import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
|
|
6
6
|
import v from "../../../../components/FieldTags/BlockTags.vue.js";
|
7
7
|
import "../../../../components/Tab/Tab.vue.js";
|
8
8
|
import i from "../../../../components/Field/Field.vue2.js";
|
9
|
-
import "../../../../components/Select/Select.
|
9
|
+
import "../../../../components/Select/Select.vue2.js";
|
10
10
|
import U from "../../../../components/SelectMulti/SelectMulti.vue.js";
|
11
11
|
import k from "../../../../components/UploadImage/UploadImage.vue.js";
|
12
12
|
import T from "../../../../components/Button/Button.vue2.js";
|
13
|
-
import "../../../../components/Popup/Popup.
|
13
|
+
import "../../../../components/Popup/Popup.vue2.js";
|
14
14
|
import { state as z } from "../../../auth/store/auth.js";
|
15
15
|
import { actions as s, state as e } from "../../store/organizations.js";
|
16
16
|
import "../../store/memberships.js";
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),m=require("../../../../components/Field/Field.vue2.cjs");require("vue-i18n");const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");require("../../../../components/Popup/Popup.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),m=require("../../../../components/Field/Field.vue2.cjs");require("vue-i18n");const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");require("../../../../components/Popup/Popup.vue2.cjs");require("../../../../components/Button/Button.vue.cjs");require("./Documents.vue2.cjs");const f=o=>(e.pushScopeId("data-v-20739d92"),o=o(),e.popScopeId(),o),h={class:"documents"},v=f(()=>e.createElementVNode("h3",{class:"mn-small"},"Список документов",-1)),k={class:"mn-big cols-4"},y=["onClick"],E={class:"mn-small"},B={class:"t-semi t-transp radius-small"},b={__name:"Documents",setup(o){r.useRouter(),r.useRoute();let l=[{name:"Паспорт",status:"Не добавлен",inputs:[{type:"text",name:"Номер и серия"},{type:"text",name:"Место выдачи"},{type:"text",name:"Дата выдачи"}]},{name:"ИНН",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"СНИЛС",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"Военный билет",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]}];const s=e.ref(!1),a=e.ref(null),p=u=>{a.value=u,s.value=!0},c=()=>{s.value=!1},i=()=>{c()};return e.watchEffect(()=>{}),(u,q)=>{const d=e.resolveComponent("Popup");return e.openBlock(),e.createElementBlock("div",h,[v,e.createElementVNode("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(t,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,onClick:x=>p(n),class:"h-100 pd-medium bg-white radius-small"},[e.createElementVNode("h3",E,e.toDisplayString(t.name),1),e.createElementVNode("p",B,e.toDisplayString(t.status),1)],8,y))),128))]),e.createVNode(d,{title:"Добавить документ",onClosePopup:c,isPopupOpen:s.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l)[a.value].inputs,t=>(e.openBlock(),e.createElementBlock("div",{key:t.name},[e.createVNode(m.default,{field:t.value,"onUpdate:field":n=>t.value=n,label:t.name,_id:t.name,placeholder:t.name,class:"w-100"},null,8,["field","onUpdate:field","label","_id","placeholder"])]))),128)),e.createElementVNode("button",{onClick:i,class:"w-100 mn-small button"},"Отправить на верификацию")]),_:1},8,["isPopupOpen"])])}}},g=_.default(b,[["__scopeId","data-v-20739d92"]]);exports.default=g;
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js
CHANGED
@@ -3,7 +3,7 @@ import { useRouter as I, useRoute as g } from "vue-router";
|
|
3
3
|
import D from "../../../../components/Field/Field.vue2.js";
|
4
4
|
import "vue-i18n";
|
5
5
|
import S from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
6
|
-
import "../../../../components/Popup/Popup.
|
6
|
+
import "../../../../components/Popup/Popup.vue2.js";
|
7
7
|
import "../../../../components/Button/Button.vue.js";
|
8
8
|
import "./Documents.vue2.js";
|
9
9
|
const E = (n) => (w("data-v-20739d92"), n = n(), C(), n), B = { class: "documents" }, F = /* @__PURE__ */ E(() => /* @__PURE__ */ o("h3", { class: "mn-small" }, "Список документов", -1)), N = { class: "mn-big cols-4" }, O = ["onClick"], R = { class: "mn-small" }, U = { class: "t-semi t-transp radius-small" }, V = {
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),_=require("../../../../components/Field/Field.vue2.cjs"),v=require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),_=require("../../../../components/Field/Field.vue2.cjs"),v=require("../../../../components/Select/Select.vue.cjs"),f=require("../../../../components/Button/Button.vue2.cjs");require("../../../middlewares/client/inputs.validation.cjs");const c=require("../../store/invites.cjs"),h={class:"mn-medium radius-medium pd-semi bg-white"},b=e.createElementVNode("h3",{class:"mn-medium"},"Добавить участников",-1),k=e.createElementVNode("p",{class:"mn-small t-transp p-medium"},"Укажите email или телефон, чтобы отправить ссылку с приглашением:",-1),E={class:"w-100 flex-nowrap flex"},V={key:0,class:"mn-r-medium flex-v-center flex"},N=["onClick"],g=e.createElementVNode("p",{class:"t-blue mn-r-small"},"+ Добавить приглашение",-1),w=[g],B=e.createElementVNode("span",null,"Отправить приглашения ",-1),x={__name:"MembersAdd",props:{organization:Object},emits:["send-invite"],setup(s,{emit:q}){const i=s,r=e.ref(null),t=e.ref([{contact:"",role:""}]);function d(){t.value.push({contact:"",role:""})}function m(n){t.value.splice(n,1)}async function u(n){await c.actions.create(i.organization._id,t.value)}function p(){}return(n,y)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("section",h,[b,k,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(l,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"br-1px br-solid br-grey flex radius-small mn-thin"},[e.createElementVNode("div",E,[e.createVNode(_.default,{field:l.contact,"onUpdate:field":a=>l.contact=a,placeholder:"Email или телефон",class:"w-100 bg-white",validation:r.value},null,8,["field","onUpdate:field","validation"]),o>0?(e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("button",{onClick:a=>m(o),class:"button-small button"},"×",8,N)])):e.createCommentVNode("",!0)]),e.createVNode(v.default,{options:[{name:"Директор",value:"director"},{name:"Менеджер",value:"manager"},{name:"Сотрудник",value:"member"}],prop:l,content:"role",placeholder:"Роль",size:"small",class:"w-80"},null,8,["prop"])]))),128)),e.createElementVNode("div",{onClick:d,class:"mn-small flex-v-center flex-nowrap flex"},w),e.createVNode(f.default,{submit:n.a=()=>u(c.state.invites),callback:p,class:"mn-t-medium"},{default:e.withCtx(()=>[B]),_:1},8,["submit"])])]))}};exports.default=x;
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ref as m, openBlock as l, createElementBlock as o, createElementVNode as e, Fragment as h, renderList as b, createVNode as i, createCommentVNode as w, withCtx as x } from "vue";
|
2
2
|
import g from "../../../../components/Field/Field.vue2.js";
|
3
|
-
import k from "../../../../components/Select/Select.
|
3
|
+
import k from "../../../../components/Select/Select.vue.js";
|
4
4
|
import C from "../../../../components/Button/Button.vue2.js";
|
5
5
|
import "../../../middlewares/client/inputs.validation.js";
|
6
6
|
import { state as y, actions as V } from "../../store/invites.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/src/js.cookie.cjs");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/src/js.cookie.cjs");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue2.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../../components/Dropdown/Dropdown.vue2.cjs");const p=require("../../../auth/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue2.cjs");require("../../../reports/store/reports.cjs");const y=require("../../store/organizations.cjs"),m=require("../blocks/EmptyState.vue.cjs");require("../../../../components/Spoiler/Spoiler.vue.cjs");require("../../../../components/Map/Map.vue.cjs");require("../blocks/DepartmentSub.vue2.cjs");require("../blocks/User.vue2.cjs");require("../blocks/CardDepartment.vue2.cjs");require("../../store/departments.cjs");const b=require("../blocks/CardOrganization.vue.cjs");require("./Unit.vue.cjs");require("./Organizations.vue2.cjs");const g={class:"for-transition bg-white radius-big w-100"},k={class:""},_={key:1,class:"cols-1"},h={__name:"Organizations",props:{owner:{type:String,default:null},user:{type:[String,Number],default:null},onlyuser:{type:[String,Number],default:null}},async setup(c){let t,u;const o=c,a=e.ref(null);a.value=([t,u]=e.withAsyncContext(()=>y.actions.read({owner:o.owner,user:o.user,onlyuser:o.onlyuser})),t=await t,u(),t);const d=s.useRouter(),n=s.useRoute();let q=n.query.tab?n.query.tab:"details";const i=e.ref(q);return n.query.tab=i.value,e.watch(i,r=>{d.replace({query:{...n.query,tab:r}})}),(r,v)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",k,[a.value<1?(e.openBlock(),e.createBlock(m.default,{key:0,title:"You Haven't Joined Any Organization Yet",description:"Weeder is all about community. Join an organization or maybe you want to create your own?",action:"Create organization",callback:r.a=()=>r.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,l=>(e.openBlock(),e.createBlock(b.default,{key:l._id,organization:l,user:p.state.user,onUpdateMembership:r.handleMembershipUpdate,class:e.normalizeClass(["w-100",{"mn-r-small":r.index!==a.value.length-1}])},null,8,["organization","user","onUpdateMembership","class"]))),128))]))])]))}};exports.default=h;
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js
CHANGED
@@ -3,13 +3,13 @@ import { useRouter as v, useRoute as z } from "vue-router";
|
|
3
3
|
import "../../../../../../node_modules/js-cookie/src/js.cookie.js";
|
4
4
|
import "../../../../components/Tab/Tab.vue.js";
|
5
5
|
import "../../../../components/Field/Field.vue.js";
|
6
|
-
import "../../../../components/Select/Select.
|
6
|
+
import "../../../../components/Select/Select.vue2.js";
|
7
7
|
import "../../../../components/Button/Button.vue.js";
|
8
8
|
import "../../../../components/Dropdown/Dropdown.vue2.js";
|
9
9
|
import { state as k } from "../../../auth/store/auth.js";
|
10
10
|
import "../../store/memberships.js";
|
11
11
|
import "vue-i18n";
|
12
|
-
import "../../../../components/Popup/Popup.
|
12
|
+
import "../../../../components/Popup/Popup.vue2.js";
|
13
13
|
import "../../../reports/store/reports.js";
|
14
14
|
import { actions as q } from "../../store/organizations.js";
|
15
15
|
import B from "../blocks/EmptyState.vue.js";
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../../../components/Field/Field.vue2.cjs"),m=require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../../../components/Field/Field.vue2.cjs"),m=require("../../../../components/Select/Select.vue.cjs"),b=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),f=["disabled"],v={__name:"CardPosition",props:{product:Object,products:Array,quantity:Number,type:String,price:Number},emits:["add","remove"],setup(n,{emit:i}){const u=e.ref(null),a=e.ref(null),d=e.ref("pcs"),r=e.ref(null),s=e.computed(()=>u.value&&a.value>0&&r.value>0);function c(){i("add",{product:u.value,price:r.value,quantity:a.value,type:d.value})}return(p,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(b.default,{modelValue:u.value,"onUpdate:modelValue":l[0]||(l[0]=t=>u.value=t),options:n.products,label:"name",multiple:!1,taggable:!1,placeholder:"Select a product",class:"bg-grey pd-medium radius-small"},null,8,["modelValue","options"]),e.createVNode(o.default,{field:r.value,"onUpdate:field":l[1]||(l[1]=t=>r.value=t),type:"number",label:"Price",symbol:p.returnCurrency(),class:"bg-grey pd-medium radius-small"},null,8,["field","symbol"]),e.createVNode(o.default,{field:a.value,"onUpdate:field":l[3]||(l[3]=t=>a.value=t),type:"number",label:"Quantity",class:"bg-grey pd-medium radius-small"},{default:e.withCtx(()=>[e.createVNode(m.default,{select:d.value,"onUpdate:select":l[2]||(l[2]=t=>d.value=t),options:["pcs","g","ml"],class:"bg-white pd-thin radius-thin"},null,8,["select"])]),_:1},8,["field"]),e.createElementVNode("button",{disabled:!e.unref(s),onClick:c,class:"bg-main button"}," Add ",8,f)],64))}};exports.default=v;
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ref as o, computed as b, openBlock as f, createElementBlock as y, Fragment as v, createVNode as d, withCtx as g, createElementVNode as V, unref as P } from "vue";
|
2
2
|
import i from "../../../../components/Field/Field.vue2.js";
|
3
|
-
import C from "../../../../components/Select/Select.
|
3
|
+
import C from "../../../../components/Select/Select.vue.js";
|
4
4
|
import N from "../../../../components/SelectMulti/SelectMulti.vue.js";
|
5
5
|
const S = ["disabled"], w = {
|
6
6
|
__name: "CardPosition",
|
package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Popup/Popup.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Popup/Popup.vue.cjs"),c=require("../../../../components/Magnifier/Magnifier.vue.cjs");require("./ImagesThumbnails.vue2.cjs");const d=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),p={class:"product-images"},m={class:"no-responsive cols-4 thumbnails"},g=["src","onClick"],_={__name:"ImagesThumbnails",props:{images:{type:Array,required:!0}},setup(o){const t=e.ref(!1),r=e.ref(0),i=s=>{r.value=s,t.value=!0},l=()=>{t.value=!1};return(s,h)=>(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("div",m,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.images,(n,a)=>(e.openBlock(),e.createElementBlock("img",{key:a,src:(s.FILE_SERVER_URL||"")+n,onClick:v=>i(a),class:"radius-medium bg-white o-hidden thumbnail"},null,8,g))),128))]),e.createVNode(u.default,{onClosePopup:l,isPopupOpen:t.value,class:"radius-medium o-hidden"},{default:e.withCtx(()=>[e.createVNode(c.default,{imageSrc:s.path+o.images[r.value],class:"magnifier z-index-4"},null,8,["imageSrc"])]),_:1},8,["isPopupOpen"])]))}},f=d.default(_,[["__scopeId","data-v-732c99c3"]]);exports.default=f;
|
package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as r, openBlock as o, createElementBlock as i, createElementVNode as p, Fragment as d, renderList as _, createVNode as c, withCtx as f } from "vue";
|
2
|
-
import g from "../../../../components/Popup/Popup.
|
2
|
+
import g from "../../../../components/Popup/Popup.vue.js";
|
3
3
|
import h from "../../../../components/Magnifier/Magnifier.vue.js";
|
4
4
|
import "./ImagesThumbnails.vue2.js";
|
5
5
|
import v from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");const h=require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");const h=require("../../../../components/Select/Select.vue.cjs");require("../../../../components/SelectMulti/SelectMulti.vue2.cjs");const _=require("../blocks/LeftoverPositions.vue.cjs"),v=require("../blocks/CardPosition.vue.cjs"),l=require("vue-router"),t=require("../../store/leftovers.cjs"),i=require("../../store/products.cjs");require("./LeftoverAdd.vue2.cjs");const y=e.createElementVNode("header",{class:"mn-medium flex-v-center flex-nowrap flex"},[e.createElementVNode("h2",{class:"mn-r-medium"},"Inventory")],-1),N=e.createElementVNode("h5",{class:"mn-small"},"Select Type",-1),V=e.createElementVNode("h5",{class:"mn-small"},"Add Position",-1),k={class:"mn-semi gap-thin flex-nowrap flex"},q={class:"gap-thin flex-v-center flex-nojustify flex"},E={class:"mn-r-auto"},g={__name:"LeftoverAdd",setup(b){const s=l.useRoute(),n=l.useRouter(),c=e.ref(i.state.all),u=e.computed(()=>t.state.current.positions.reduce((r,o)=>r+o.price*(o.quantity||1),0));e.onMounted(async()=>{if(s.params._id)try{await t.actions.fetch(s.params._id)}catch{console.error("error")}else t.state.current={type:"",order:"",positions:[]};try{const r=await i.actions.read({organization:"65141c476cf9860013b49f6d"});c.value=r}catch{console.error("error")}});function d(){s.params._id?t.actions.fetch(s.params._id):t.state.current={type:"",order:"",positions:[]}}function m(r){t.actions.addProductToLeftover(r)}function f(){s.params._id?t.actions.update(t.state.current).then(()=>n.push({name:"Backoffice Leftovers"}),r=>console.error("error")):t.actions.create(t.state.current).then(()=>n.push({name:"Backoffice Leftovers"}),r=>console.error("error"))}function p(){t.actions.delete(s.params._id).then(()=>n.push({name:"Backoffice Leftovers"}),r=>console.error("error"))}return(r,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[y,N,e.createVNode(h.default,{select:t.state.current.type,"onUpdate:select":o[0]||(o[0]=a=>t.state.current.type=a),options:["stock-in","stock-out","write-off"],placeholder:"Select type",class:"mn-semi bg-grey pd-medium radius-small"},null,8,["select"]),V,e.createElementVNode("div",k,[e.createVNode(v.default,{onAdd:m,products:c.value},null,8,["products"])]),e.createElementVNode("h5",{class:"mn-small"},[e.createTextVNode(" Invetory Sheet "),e.createElementVNode("a",{class:"mn-l-thin t-main",onClick:d}," Reset ")]),e.createVNode(_.default,{order:t.state.current,products:c.value,class:"mn-semi"},null,8,["order","products"]),e.createElementVNode("section",q,[e.createElementVNode("h3",E," In total: "+e.toDisplayString(r.formatPrice(e.unref(u))),1),e.createElementVNode("a",{onClick:o[1]||(o[1]=a=>f()),class:"bg-main button"}," Save "),e.unref(s).params._id?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:o[2]||(o[2]=a=>p()),class:"t-white bg-red button"}," Delete ")):e.createCommentVNode("",!0)])],64))}};exports.default=g;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ref as y, computed as k, onMounted as x, openBlock as m, createElementBlock as u, Fragment as g, createVNode as l, createElementVNode as r, createTextVNode as b, toDisplayString as S, unref as d, createCommentVNode as w } from "vue";
|
2
2
|
import "../../../../components/Field/Field.vue.js";
|
3
|
-
import L from "../../../../components/Select/Select.
|
3
|
+
import L from "../../../../components/Select/Select.vue.js";
|
4
4
|
import "../../../../components/SelectMulti/SelectMulti.vue2.js";
|
5
5
|
import P from "../blocks/LeftoverPositions.vue.js";
|
6
6
|
import $ from "../blocks/CardPosition.vue.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router"),g=require("../../../../components/Breadcrumbs/Breadcrumbs.vue2.cjs");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router"),g=require("../../../../components/Breadcrumbs/Breadcrumbs.vue2.cjs");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue2.cjs");const N=require("../../../../components/Checkbox/Checkbox.vue.cjs"),b=require("../../../../components/Button/Button.vue2.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue2.cjs");const E=require("../sections/EditProductInfo.vue.cjs"),i=require("../sections/EditParameters.vue.cjs"),V=require("../sections/EditProductImages.vue.cjs"),t=require("../../store/products.cjs"),d=require("../../store/categories.cjs");require("./ProductEdit.vue2.cjs");const v={class:"for-transition w-100"},q={class:"pd-b-zero pd-t-zero pd-thin"},k={class:"pd-thin"},y={class:"flex-nowrap flex bg-grey pd-medium radius-big"},B={key:0,class:"mn-r-auto"},x={key:1,class:"mn-r-auto"},P={class:"flex-nowrap flex pd-thin"},w={class:"pd-b-zero pd-t-zero pd-thin cols-2 gap-thin"},z={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},I=e.createElementVNode("h3",{class:"mn-semi"},"Profile",-1),C={class:"mn-semi"},A=e.createElementVNode("h5",null,"Categories",-1),L={class:""},M={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},S=e.createElementVNode("h3",{class:"mn-semi"},"Images",-1),R={__name:"ProductEdit",async setup(T){let a,r;const o=c.useRoute(),l=c.useRouter();[a,r]=e.withAsyncContext(()=>d.actions.fetchCategories()),await a,r(),o.params.product&&([a,r]=e.withAsyncContext(()=>t.actions.read({_id:o.params.product})),await a,r());function u(){t.state.current.information.push({name:"",value:""})}function m(s){t.state.current.information.splice(s,1)}function p(){t.state.current.localization.push({locale:"",text:""})}function _(s){t.state.current.localization.splice(s,1)}function h(){o.params.product?t.actions.update(o.params.product,t.state.current):t.actions.create(o.params._id,t.state.current)}function f(){l.push({name:"ProductEdit",params:{_id:o.params._id,product:t.state.current._id}})}return(s,D)=>(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("div",q,[e.createVNode(g.default,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",k,[e.createElementVNode("header",y,[e.unref(o).params.product?(e.openBlock(),e.createElementBlock("h1",B,"Edit Product")):(e.openBlock(),e.createElementBlock("h1",x,"Create Product")),e.createElementVNode("section",P,[e.createVNode(b.default,{submit:h,callback:f},{default:e.withCtx(()=>[e.createTextVNode("Save Product")]),_:1})])])]),e.createElementVNode("div",w,[e.createElementVNode("div",z,[I,e.createVNode(E.default,{product:t.state.current},null,8,["product"]),e.createElementVNode("div",C,[A,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.state.all,(n,$)=>(e.openBlock(),e.createBlock(N.default,{label:n.name,name:"categories",value:n.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:t.state.current.category},null,8,["label","value","radio"]))),256))]),e.createVNode(i.default,{items:t.state.current.information,title:"Parameters",emptyMessage:"No parameters",addButtonLabel:"Add parameter",keyName:"name",valueName:"value",onAddInfo:u,onDeleteInfo:m},null,8,["items"]),e.createVNode(i.default,{items:t.state.current.localization,title:"Localization",emptyMessage:"No localizations",addButtonLabel:"Add localization",keyName:"locale",valueName:"text",onAddInfo:p,onDeleteInfo:_},null,8,["items"])]),e.createElementVNode("div",L,[e.createElementVNode("div",M,[S,e.createVNode(V.default,{product:t.state.current},null,8,["product"])])])])]))}};exports.default=R;
|
@@ -3,11 +3,11 @@ import { useRoute as I, useRouter as P } from "vue-router";
|
|
3
3
|
import $ from "../../../../components/Breadcrumbs/Breadcrumbs.vue2.js";
|
4
4
|
import "../../../../components/Tab/Tab.vue.js";
|
5
5
|
import "../../../../components/Field/Field.vue.js";
|
6
|
-
import "../../../../components/Select/Select.
|
6
|
+
import "../../../../components/Select/Select.vue2.js";
|
7
7
|
import C from "../../../../components/Checkbox/Checkbox.vue.js";
|
8
8
|
import L from "../../../../components/Button/Button.vue2.js";
|
9
9
|
import "vue-i18n";
|
10
|
-
import "../../../../components/Popup/Popup.
|
10
|
+
import "../../../../components/Popup/Popup.vue2.js";
|
11
11
|
import A from "../sections/EditProductInfo.vue.js";
|
12
12
|
import u from "../sections/EditParameters.vue.js";
|
13
13
|
import B from "../sections/EditProductImages.vue.js";
|
package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Button/Button.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Button/Button.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue2.cjs");const o={class:"mn-big flex-column flex"},c={__name:"EditProductInfo",props:{product:Object},setup(r){const t=r;return e.toRefs(t),(u,s)=>(e.openBlock(),e.createElementBlock("div",o))}};exports.default=c;
|
package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { toRefs as t, openBlock as e, createElementBlock as r } from "vue";
|
2
2
|
import "../../../../components/Button/Button.vue.js";
|
3
3
|
import "../../../../components/Field/Field.vue.js";
|
4
|
-
import "../../../../components/Select/Select.
|
4
|
+
import "../../../../components/Select/Select.vue2.js";
|
5
5
|
const c = { class: "mn-big flex-column flex" }, a = {
|
6
6
|
__name: "EditProductInfo",
|
7
7
|
props: {
|
package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Popup/Popup.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Popup/Popup.vue.cjs"),d=require("../../../../components/Button/Button.vue2.cjs"),m=require("../../../../components/Select/Select.vue.cjs"),f=require("../../store/reports.cjs"),g=e.createElementVNode("h3",{class:"mn-small"}," Report Content ",-1),b=e.createElementVNode("p",{class:"p-medium mn-small"}," We strive to maintain a safe and comfortable environment for all users. If you encounter content that you believe violates our guidelines, please report it: ",-1),h=e.createElementVNode("p",{class:"p-medium mn-small"},"Our moderators will review your report within 24 hours and take action if it violates our policies.",-1),v={__name:"FormReport",props:{user:{type:String,required:!1},type:{type:String,required:!1},reason:{type:String,required:!1},target:{type:String,required:!0},text:{type:String,default:"!"},status:{type:String,default:"new"}},setup(l){const t=l,r=e.reactive({user:t.user,type:t.type,reason:t.reason,target:t.target,status:t.status});function i(){r.user===null&&delete r.user,f.actions.create(r)}const s=e.ref(!1);function u(){s.value=!0}function a(){s.value=!1}return(p,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{onClick:o[0]||(o[0]=n=>u())},[e.renderSlot(p.$slots,"default")]),e.createVNode(c.default,{onClosePopup:a,isPopupOpen:s.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[g,b,e.createVNode(m.default,{select:r.reason,"onUpdate:select":o[1]||(o[1]=n=>r.reason=n),options:["harassment","spam","inappropriate","misinformation","copyright","other"],placeholder:"Select reason",class:"mn-small bg-white br-solid br-black-transp br-1px uppercase pd-medium t-semi bg-white t-black radius-medium"},null,8,["select"]),h,e.createVNode(d.default,{submit:i,callback:a,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Report ")]),_:1})]),_:1},8,["isPopupOpen"])],64))}};exports.default=v;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { reactive as d, ref as f, openBlock as g, createElementBlock as b, Fragment as h, createElementVNode as o, renderSlot as y, createVNode as a, withCtx as l, createTextVNode as _ } from "vue";
|
2
|
-
import v from "../../../../components/Popup/Popup.
|
2
|
+
import v from "../../../../components/Popup/Popup.vue.js";
|
3
3
|
import w from "../../../../components/Button/Button.vue2.js";
|
4
|
-
import S from "../../../../components/Select/Select.
|
4
|
+
import S from "../../../../components/Select/Select.vue.js";
|
5
5
|
import { actions as k } from "../../store/reports.js";
|
6
6
|
const P = /* @__PURE__ */ o("h3", { class: "mn-small" }, " Report Content ", -1), R = /* @__PURE__ */ o("p", { class: "p-medium mn-small" }, " We strive to maintain a safe and comfortable environment for all users. If you encounter content that you believe violates our guidelines, please report it: ", -1), x = /* @__PURE__ */ o("p", { class: "p-medium mn-small" }, "Our moderators will review your report within 24 hours and take action if it violates our policies.", -1), V = {
|
7
7
|
__name: "FormReport",
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const c=require("vue"),s=require("./globals-928eb13c.js"),i=require("./axios-ceccf20e.js"),o=i.axios.create({baseURL:process.env.API_URL}),r=c.reactive({all:[],current:{_id:"",status:"",user:"",type:"",reason:"",target:""},form:{isOpen:!1,status:"",user:"",type:"",reason:"",target:""}}),l={async read(){try{const e=await o.get("/reports");return a.setAll(e.data),e.data}catch(e){throw s.setError(e),e}},async create(e){try{return console.log(e),(await o.post("/reports",e)).data}catch(t){throw s.setError(t),t}},async update(e){try{const t=await o.put("/reports/"+e._id,e);return a.updateReportInAll(t.data),t.data}catch(t){throw s.setError(t),t}},async remove(e){try{const t=await o.delete("/reports/"+e._id);return a.removeReportFromAll(e._id),t.data}catch(t){throw s.setError(t),t}}},a={setAll(e){r.all=e},setCurrent(e){r.current=e},updateReportInAll(e){const t=r.all.findIndex(n=>n._id===e._id);t!==-1&&(r.all[t]=e)},removeReportFromAll(e){const t=r.all.findIndex(n=>n._id===e);t!==-1&&r.all.splice(t,1)},toggleForm(){r.form.isOpen=!r.form.isOpen,r.form={status:"",user:"",type:"",reason:"",target:""}}};c.watch(r,(e,t)=>{});const d=Object.freeze(Object.defineProperty({__proto__:null,actions:l,mutations:a,state:r},Symbol.toStringTag,{value:"Module"}));exports.actions=l;exports.reports=d;exports.state=r;
|
@@ -0,0 +1,91 @@
|
|
1
|
+
import { reactive as l, watch as c } from "vue";
|
2
|
+
import { s as a } from "./globals-96ba60e4.mjs";
|
3
|
+
import { a as i } from "./axios-33aeb810.mjs";
|
4
|
+
const s = i.create({ baseURL: process.env.API_URL }), r = l({
|
5
|
+
all: [],
|
6
|
+
current: {
|
7
|
+
_id: "",
|
8
|
+
status: "",
|
9
|
+
user: "",
|
10
|
+
type: "",
|
11
|
+
reason: "",
|
12
|
+
target: ""
|
13
|
+
},
|
14
|
+
form: {
|
15
|
+
isOpen: !1,
|
16
|
+
status: "",
|
17
|
+
user: "",
|
18
|
+
type: "",
|
19
|
+
reason: "",
|
20
|
+
target: ""
|
21
|
+
}
|
22
|
+
}), p = {
|
23
|
+
async read() {
|
24
|
+
try {
|
25
|
+
const t = await s.get("/reports");
|
26
|
+
return o.setAll(t.data), t.data;
|
27
|
+
} catch (t) {
|
28
|
+
throw a(t), t;
|
29
|
+
}
|
30
|
+
},
|
31
|
+
async create(t) {
|
32
|
+
try {
|
33
|
+
return console.log(t), (await s.post("/reports", t)).data;
|
34
|
+
} catch (e) {
|
35
|
+
throw a(e), e;
|
36
|
+
}
|
37
|
+
},
|
38
|
+
async update(t) {
|
39
|
+
try {
|
40
|
+
const e = await s.put("/reports/" + t._id, t);
|
41
|
+
return o.updateReportInAll(e.data), e.data;
|
42
|
+
} catch (e) {
|
43
|
+
throw a(e), e;
|
44
|
+
}
|
45
|
+
},
|
46
|
+
async remove(t) {
|
47
|
+
try {
|
48
|
+
const e = await s.delete("/reports/" + t._id);
|
49
|
+
return o.removeReportFromAll(t._id), e.data;
|
50
|
+
} catch (e) {
|
51
|
+
throw a(e), e;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}, o = {
|
55
|
+
setAll(t) {
|
56
|
+
r.all = t;
|
57
|
+
},
|
58
|
+
setCurrent(t) {
|
59
|
+
r.current = t;
|
60
|
+
},
|
61
|
+
updateReportInAll(t) {
|
62
|
+
const e = r.all.findIndex((n) => n._id === t._id);
|
63
|
+
e !== -1 && (r.all[e] = t);
|
64
|
+
},
|
65
|
+
removeReportFromAll(t) {
|
66
|
+
const e = r.all.findIndex((n) => n._id === t);
|
67
|
+
e !== -1 && r.all.splice(e, 1);
|
68
|
+
},
|
69
|
+
toggleForm() {
|
70
|
+
r.form.isOpen = !r.form.isOpen, r.form = {
|
71
|
+
status: "",
|
72
|
+
user: "",
|
73
|
+
type: "",
|
74
|
+
reason: "",
|
75
|
+
target: ""
|
76
|
+
};
|
77
|
+
}
|
78
|
+
};
|
79
|
+
c(r, (t, e) => {
|
80
|
+
});
|
81
|
+
const f = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
82
|
+
__proto__: null,
|
83
|
+
actions: p,
|
84
|
+
mutations: o,
|
85
|
+
state: r
|
86
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
87
|
+
export {
|
88
|
+
p as a,
|
89
|
+
f as r,
|
90
|
+
r as s
|
91
|
+
};
|
package/dist/reports.client.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./reports-
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./reports-a67b4fb4.js");require("vue");require("./globals-928eb13c.js");require("vue-i18n");require("./axios-ceccf20e.js");exports.reportsStore=e.reports;
|
package/dist/reports.client.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
import { r as e } from "./reports-
|
1
|
+
import { r as e } from "./reports-c579b02a.mjs";
|
2
2
|
import "vue";
|
3
3
|
import "./globals-96ba60e4.mjs";
|
4
4
|
import "vue-i18n";
|
5
|
-
import "./
|
5
|
+
import "./axios-33aeb810.mjs";
|
6
6
|
export {
|
7
7
|
e as reportsStore
|
8
8
|
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { useRouter as t } from "vue-router";
|
2
|
+
import { s as e } from "./auth-7e39361f.mjs";
|
3
|
+
t();
|
4
|
+
function i(r, o, s) {
|
5
|
+
s(), e.user.phone = "", e.user.email = "", e.user.password = "", e.user.passwordRepeat = "";
|
6
|
+
}
|
7
|
+
function m(r, o, s) {
|
8
|
+
console.log(e.user), e.user.phone === "" && e.user.email === "" ? s("/auth/signin") : s();
|
9
|
+
}
|
10
|
+
export {
|
11
|
+
m as c,
|
12
|
+
i as r
|
13
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const u=require("vue-router"),e=require("./auth-04684a60.js");u.useRouter();function o(t,r,s){s(),e.state.user.phone="",e.state.user.email="",e.state.user.password="",e.state.user.passwordRepeat=""}function a(t,r,s){console.log(e.state.user),e.state.user.phone===""&&e.state.user.email===""?s("/auth/signin"):s()}exports.checkUser=a;exports.resetUser=o;
|