@ozdao/prometheus-framework 0.2.59 → 0.2.61
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +12 -223
- package/dist/auth.server.mjs +12 -223
- package/dist/community.server.js +3 -2
- package/dist/community.server.mjs +2 -1
- package/dist/events.server.js +117 -25
- package/dist/events.server.mjs +116 -24
- package/dist/files.server.js +7 -7
- package/dist/files.server.mjs +7 -7
- package/dist/gallery.server.js +2 -2
- package/dist/gallery.server.mjs +2 -2
- package/dist/main-DsseFd2d.mjs +13753 -0
- package/dist/main-U466Gwzt.js +91 -0
- package/dist/main.css +1 -1
- package/dist/metadata.schema-CS6_9GLU.js +174 -0
- package/dist/metadata.schema-CjpDDEnW.mjs +210 -0
- package/dist/metadata.schema-D88c1Ebp.mjs +175 -0
- package/dist/metadata.schema-doiYQfuO.js +209 -0
- package/dist/organizations.server.js +212 -16
- package/dist/organizations.server.mjs +212 -16
- package/dist/ownership.schema-DN0SlQL6.js +36 -0
- package/dist/ownership.schema-oyx6eNkZ.mjs +37 -0
- package/dist/products.server.js +8 -5
- package/dist/products.server.mjs +8 -5
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +19 -14
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +26 -26
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +1 -373
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +1 -72
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +72 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +1 -97
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +97 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +46 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +1 -46
- package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/auth.client.js +12 -14
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/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/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/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 +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -66
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
- 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 +199 -185
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +168 -0
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +43 -43
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/router/events.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.js +11 -2
- 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/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +59 -56
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +1 -13
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +13 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +167 -124
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +56 -45
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +19 -24
- 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 +3 -3
- 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 +3 -3
- 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 +25 -25
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- 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 +2 -2
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +40 -38
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +19 -19
- package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.js +5 -5
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +36 -27
- 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 +16 -16
- 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/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +21 -21
- 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/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +36 -50
- 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/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +2 -2
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/web-D7bW32Ul.mjs +54 -0
- package/dist/web-DpE9HxA3.js +1 -0
- package/package.json +1 -1
- package/src/components/Chips/Chips.vue +2 -2
- package/src/components/Feed/Feed.vue +2 -1
- package/src/modules/auth/auth.client.js +0 -2
- package/src/modules/auth/auth.server.js +1 -7
- package/src/modules/auth/components/pages/Invite.vue +1 -1
- package/src/modules/events/components/pages/EditEvent.vue +19 -0
- package/src/modules/events/components/pages/EditEventTickets.vue +194 -0
- package/src/modules/events/controllers/tickets.controller.js +103 -28
- package/src/modules/events/models/ticket.model.js +22 -4
- package/src/modules/events/router/events.js +5 -0
- package/src/modules/events/routes/tickets.routes.js +2 -2
- package/src/modules/events/store/tickets.js +1 -0
- package/src/modules/globals/components/blocks/CardHeader.vue +6 -6
- package/src/modules/organizations/components/pages/Members.vue +1 -1
- package/src/modules/organizations/components/pages/Organization.vue +4 -4
- package/src/modules/organizations/components/sections/MembersAdd.vue +1 -1
- package/src/modules/organizations/controllers/departments.controller.js +14 -1
- package/src/modules/organizations/models/department.model.js +5 -1
- package/src/modules/organizations/organizations.client.js +2 -0
- package/src/modules/organizations/organizations.server.js +6 -2
- package/src/modules/organizations/routes/departments.routes.js +1 -1
- package/src/modules/organizations/store/departments.js +3 -2
- package/src/modules/products/components/blocks/CardLeftover.vue +19 -7
- package/src/modules/products/components/pages/EditLeftover.vue +1 -1
- package/src/modules/products/components/pages/Leftovers.vue +14 -3
- package/src/modules/products/components/pages/Products.vue +8 -8
- package/src/modules/products/models/leftover.model.js +9 -5
- package/src/modules/users/models/client.model.js +60 -0
- /package/src/modules/{auth → organizations}/controllers/invites.controller.js +0 -0
- /package/src/modules/{auth → organizations}/models/invite.model.js +0 -0
- /package/src/modules/{auth → organizations}/routes/invites.routes.js +0 -0
- /package/src/modules/{auth → organizations}/store/invites.js +0 -0
package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-router"),c=require("../../../../components/Tab/Tab.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-router"),c=require("../../../../components/Tab/Tab.vue.cjs"),u=require("../sections/Feed.vue.cjs"),n=require("../../../auth/store/auth.cjs"),m={class:"pd-thin"},b={class:"mn-b-medium flex-v-center flex-nowrap flex"},f=e.createElementVNode("h2",{class:"mn-r-medium"},"Groups",-1),_={__name:"Organizations",setup(p){const t=l.useRoute(),d=l.useRouter();let i=t.query.tab?t.query.tab:"owner";const r=e.ref(i);return t.query.tab=r.value,e.watch(r,o=>{d.replace({query:{...t.query,tab:o}})}),(o,a)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",b,[f,e.createElementVNode("button",{onClick:a[0]||(a[0]=s=>o.$router.push({name:"Create Organization"})),class:"bg-second radius-100 i-big hover-scale-1 cursor-pointer t-whitebg-second"}," + ")]),e.createVNode(c.default,{selected:r.value,"onUpdate:selected":a[1]||(a[1]=s=>r.value=s),tabs:[{name:"Owner",value:"owner"},{name:"Member",value:"member"},{name:"Follower",value:"follower"}],class:"mn-b-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="owner"?(e.openBlock(),e.createBlock(u.default,{key:0,user:n.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="member"?(e.openBlock(),e.createBlock(u.default,{key:0,user:n.state.user._id,member:e.unref(t).params._id},null,8,["user","member"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="follower"?(e.openBlock(),e.createBlock(u.default,{key:0,user:n.state.user._id,subscriber:e.unref(t).params._id},null,8,["user","subscriber"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=_;
|
package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ref as v, watch as w, openBlock as a, createElementBlock as h, createElementVNode as b, createVNode as s, Transition as n, withCtx as u, createBlock as l, unref as m, createCommentVNode as i } from "vue";
|
2
2
|
import { useRoute as g, useRouter as y } from "vue-router";
|
3
|
-
import k from "../../../../components/Tab/Tab.
|
3
|
+
import k from "../../../../components/Tab/Tab.vue.js";
|
4
4
|
import d from "../sections/Feed.vue.js";
|
5
5
|
import { state as c } from "../../../auth/store/auth.js";
|
6
6
|
const q = { class: "pd-thin" }, x = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, C = /* @__PURE__ */ b("h2", { class: "mn-r-medium" }, "Groups", -1), E = {
|
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.vue.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.vue.cjs");require("vue-i18n");const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");require("../../../../components/Popup/Popup.vue.cjs");require("../../../../components/Button/Button.vue2.cjs");require("./Documents.vue2.cjs");const f=o=>(e.pushScopeId("data-v-f93fcad7"),o=o(),e.popScopeId(),o),v={class:"documents"},h=f(()=>e.createElementVNode("h3",{class:"mn-b-small"},"Список документов",-1)),k={class:"mn-b-big cols-4"},b=["onClick"],y={class:"mn-b-small"},E={class:"t-semi t-transp radius-small"},B={__name:"Documents",setup(o){r.useRouter(),r.useRoute();let l=[{name:"Паспорт",status:"Не добавлен",inputs:[{type:"text",name:"Номер и серия"},{type:"text",name:"Место выдачи"},{type:"text",name:"Дата выдачи"}]},{name:"ИНН",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"СНИЛС",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"Военный билет",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]}];const s=e.ref(!1),a=e.ref(null),p=u=>{a.value=u,s.value=!0},c=()=>{s.value=!1},i=()=>{c()};return e.watchEffect(()=>{}),(u,x)=>{const d=e.resolveComponent("Popup");return e.openBlock(),e.createElementBlock("div",v,[h,e.createElementVNode("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(t,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,onClick:P=>p(n),class:"h-100 pd-medium bg-white radius-small"},[e.createElementVNode("h3",y,e.toDisplayString(t.name),1),e.createElementVNode("p",E,e.toDisplayString(t.status),1)],8,b))),128))]),e.createVNode(d,{title:"Добавить документ",onClosePopup:c,isPopupOpen:s.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l)[a.value].inputs,t=>(e.openBlock(),e.createElementBlock("div",{key:t.name},[e.createVNode(m.default,{field:t.value,"onUpdate:field":n=>t.value=n,label:t.name,_id:t.name,placeholder:t.name,class:"w-100"},null,8,["field","onUpdate:field","label","_id","placeholder"])]))),128)),e.createElementVNode("button",{onClick:i,class:"w-100 mn-b-small button"},"Отправить на верификацию")]),_:1},8,["isPopupOpen"])])}}},g=_.default(B,[["__scopeId","data-v-f93fcad7"]]);exports.default=g;
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js
CHANGED
@@ -3,7 +3,7 @@ import { useRouter as I, useRoute as g } from "vue-router";
|
|
3
3
|
import D from "../../../../components/Field/Field.vue.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.vue.js";
|
7
7
|
import "../../../../components/Button/Button.vue2.js";
|
8
8
|
import "./Documents.vue2.js";
|
9
9
|
const E = (a) => (w("data-v-f93fcad7"), a = a(), C(), a), B = { class: "documents" }, F = /* @__PURE__ */ E(() => /* @__PURE__ */ o("h3", { class: "mn-b-small" }, "Список документов", -1)), N = { class: "mn-b-big cols-4" }, O = ["onClick"], R = { class: "mn-b-small" }, U = { class: "t-semi t-transp radius-small" }, V = {
|
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.vue.cjs"),b=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"),b=require("../../../../components/Select/Select.vue2.cjs"),v=require("../../../../components/Button/Button.vue.cjs");require("../../../middlewares/client/inputs.validation.cjs");const s=require("../../store/invites.cjs"),f={class:"mn-b-medium radius-medium pd-semi bg-grey"},h=e.createElementVNode("h3",{class:"mn-b-medium"},"Add members",-1),g=e.createElementVNode("p",{class:"mn-b-small t-transp p-medium"},"Укажите email или телефон, чтобы отправить ссылку с приглашением:",-1),k={key:0,class:"mn-r-medium flex-v-center flex"},E=["onClick"],V=e.createElementVNode("p",{class:"t-blue mn-r-small"},"+ Добавить приглашение",-1),N=[V],w=e.createElementVNode("span",null,"Invite to organization",-1),B={__name:"MembersAdd",props:{organization:Object},emits:["send-invite"],setup(c,{emit:q}){const i=c,r=e.ref(null),t=e.ref([{contact:"",role:""}]);function d(){t.value.push({contact:"",role:""})}function m(l){t.value.splice(l,1)}async function u(l){await s.actions.create(i.organization._id,t.value)}function p(){}return(l,x)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("section",f,[h,g,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(n,a)=>(e.openBlock(),e.createElementBlock("div",{key:a,class:"br-1px br-solid br-grey flex gap-thin radius-small mn-b-thin"},[e.createVNode(_.default,{field:n.contact,"onUpdate:field":o=>n.contact=o,placeholder:"Enter email or phone",class:"pd-small radius-small w-100 bg-white",validation:r.value},null,8,["field","onUpdate:field","validation"]),e.createVNode(b.default,{select:n.role,"onUpdate:select":o=>n.role=o,label:"Role",options:["owner","manager","member"],placeholder:"Select",class:"pos-relative w-100 bg-white radius-small pd-small"},null,8,["select","onUpdate:select"]),a>0?(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("button",{onClick:o=>m(a),class:"button-small button"},"×",8,E)])):e.createCommentVNode("",!0)]))),128)),e.createElementVNode("div",{onClick:d,class:"mn-b-small flex-v-center flex-nowrap flex"},N),e.createVNode(v.default,{submit:l.a=()=>u(s.state.invites),callback:p,class:"w-100 bg-main"},{default:e.withCtx(()=>[w]),_:1},8,["submit"])])]))}};exports.default=B;
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { ref as r, openBlock as a, createElementBlock as s, createElementVNode as e, Fragment as v, renderList as h, createVNode as c, createCommentVNode as g, withCtx as w } from "vue";
|
2
2
|
import k from "../../../../components/Field/Field.vue.js";
|
3
|
-
import x from "../../../../components/Select/Select.
|
3
|
+
import x from "../../../../components/Select/Select.vue2.js";
|
4
4
|
import y from "../../../../components/Button/Button.vue.js";
|
5
5
|
import "../../../middlewares/client/inputs.validation.js";
|
6
|
-
import { state as C, actions as U } from "
|
6
|
+
import { state as C, actions as U } from "../../store/invites.js";
|
7
7
|
const V = { class: "mn-b-medium radius-medium pd-semi bg-grey" }, z = /* @__PURE__ */ e("h3", { class: "mn-b-medium" }, "Add members", -1), E = /* @__PURE__ */ e("p", { class: "mn-b-small t-transp p-medium" }, "Укажите email или телефон, чтобы отправить ссылку с приглашением:", -1), M = {
|
8
8
|
key: 0,
|
9
9
|
class: "mn-r-medium flex-v-center flex"
|
@@ -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/dist/js.cookie.cjs");require("../../../../components/Tab/Tab.
|
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/dist/js.cookie.cjs");require("../../../../components/Tab/Tab.vue2.cjs");require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Select/Select.vue.cjs");require("../../../../components/Button/Button.vue2.cjs");require("../../../../components/Dropdown/Dropdown.vue2.cjs");require("../../../../components/Chips/Chips.vue2.cjs");const q=require("../../../auth/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue.cjs");require("../../../reports/store/reports.cjs");const y=require("../../store/organizations.cjs"),m=require("../blocks/CardOrganization.vue.cjs"),b=require("../blocks/EmptyState.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 p=n.query.tab?n.query.tab:"details";const i=e.ref(p);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(b.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(m.default,{key:l._id,organization:l,user:q.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
@@ -1,16 +1,16 @@
|
|
1
1
|
import { ref as m, withAsyncContext as b, watch as _, openBlock as t, createElementBlock as i, createElementVNode as f, createBlock as p, Fragment as g, renderList as h, normalizeClass as w } from "vue";
|
2
2
|
import { useRouter as v, useRoute as z } from "vue-router";
|
3
3
|
import "../../../../../../node_modules/js-cookie/dist/js.cookie.js";
|
4
|
-
import "../../../../components/Tab/Tab.
|
4
|
+
import "../../../../components/Tab/Tab.vue2.js";
|
5
5
|
import "../../../../components/Field/Field.vue2.js";
|
6
|
-
import "../../../../components/Select/Select.
|
6
|
+
import "../../../../components/Select/Select.vue.js";
|
7
7
|
import "../../../../components/Button/Button.vue2.js";
|
8
8
|
import "../../../../components/Dropdown/Dropdown.vue2.js";
|
9
9
|
import "../../../../components/Chips/Chips.vue2.js";
|
10
10
|
import { state as k } from "../../../auth/store/auth.js";
|
11
11
|
import "../../store/memberships.js";
|
12
12
|
import "vue-i18n";
|
13
|
-
import "../../../../components/Popup/Popup.
|
13
|
+
import "../../../../components/Popup/Popup.vue.js";
|
14
14
|
import "../../../reports/store/reports.js";
|
15
15
|
import { actions as q } from "../../store/organizations.js";
|
16
16
|
import $ from "../blocks/CardOrganization.vue.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/pages/Organization.vue.cjs"),t=require("./components/pages/Department.vue.cjs"),r=require("./components/pages/OrganizationEdit.vue.cjs"),
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/pages/Organization.vue.cjs"),t=require("./components/pages/Department.vue.cjs"),r=require("./components/pages/OrganizationEdit.vue.cjs"),i=require("./components/pages/Organizations.vue.cjs"),a=require("./components/pages/DepartmentEdit.vue.cjs"),n=require("./components/blocks/CardOrganization.vue.cjs"),o=require("./components/blocks/EditArray.vue.cjs"),u=require("./components/blocks/User.vue.cjs"),s=require("./components/blocks/Unit.vue.cjs"),d=require("./components/blocks/DepartmentSub.vue.cjs"),c=require("./components/blocks/DepartmentMemberModify.vue.cjs"),l=require("./components/blocks/CardDepartment.vue.cjs"),m=require("./components/blocks/Rating.vue.cjs"),q=require("./components/blocks/EmptyState.vue.cjs"),f=require("./components/blocks/Contacts.vue.cjs"),g=require("./components/blocks/Socials.vue.cjs"),p=require("./components/sections/MembersAdd.vue.cjs"),b=require("./components/sections/DetailsTab.vue.cjs"),z=require("./components/sections/Organizations.vue.cjs"),D=require("./components/sections/Publics.vue.cjs"),S=require("./components/sections/Documents.vue.cjs"),O=require("./components/elements/ButtonToggleMembership.vue.cjs"),M=require("./store/departments.cjs"),y=require("./store/memberships.cjs"),E=require("./store/organizations.cjs"),C=require("./store/invites.cjs"),T=require("./router/organizations.cjs");exports.Organization=e.default;exports.Department=t.default;exports.OrganizationEdit=r.default;exports.Organizations=i.default;exports.DepartmentEdit=a.default;exports.CardOrganization=n.default;exports.EditArray=o.default;exports.User=u.default;exports.Unit=s.default;exports.DepartmentSub=d.default;exports.DepartmentMemberModify=c.default;exports.CardDepartment=l.default;exports.Rating=m.default;exports.EmptyState=q.default;exports.Contacts=f.default;exports.Socials=g.default;exports.MembersAdd=p.default;exports.DetailsTab=b.default;exports.OrganizationsSection=z.default;exports.Publics=D.default;exports.Documents=S.default;exports.ButtonToggleMembership=O.default;exports.departmentsStore=M;exports.membershipsStore=y;exports.organizationStore=E;exports.invitesStore=C;exports.organizationsRouter=T.default;
|
@@ -1,54 +1,56 @@
|
|
1
|
-
import { default as
|
2
|
-
import { default as
|
1
|
+
import { default as s } from "./components/pages/Organization.vue.js";
|
2
|
+
import { default as p } from "./components/pages/Department.vue.js";
|
3
3
|
import { default as d } from "./components/pages/OrganizationEdit.vue.js";
|
4
|
-
import { default as
|
5
|
-
import { default as
|
6
|
-
import { default as
|
7
|
-
import { default as
|
8
|
-
import { default as
|
9
|
-
import { default as
|
10
|
-
import { default as
|
11
|
-
import { default as
|
4
|
+
import { default as u } from "./components/pages/Organizations.vue.js";
|
5
|
+
import { default as x } from "./components/pages/DepartmentEdit.vue.js";
|
6
|
+
import { default as b } from "./components/blocks/CardOrganization.vue.js";
|
7
|
+
import { default as S } from "./components/blocks/EditArray.vue.js";
|
8
|
+
import { default as c } from "./components/blocks/User.vue.js";
|
9
|
+
import { default as E } from "./components/blocks/Unit.vue.js";
|
10
|
+
import { default as h } from "./components/blocks/DepartmentSub.vue.js";
|
11
|
+
import { default as C } from "./components/blocks/DepartmentMemberModify.vue.js";
|
12
12
|
import { default as A } from "./components/blocks/CardDepartment.vue.js";
|
13
13
|
import { default as T } from "./components/blocks/Rating.vue.js";
|
14
14
|
import { default as B } from "./components/blocks/EmptyState.vue.js";
|
15
15
|
import { default as j } from "./components/blocks/Contacts.vue.js";
|
16
16
|
import { default as q } from "./components/blocks/Socials.vue.js";
|
17
|
-
import { default as
|
18
|
-
import { default as
|
19
|
-
import { default as
|
20
|
-
import { default as
|
21
|
-
import { default as
|
22
|
-
import { default as
|
17
|
+
import { default as F } from "./components/sections/MembersAdd.vue.js";
|
18
|
+
import { default as H } from "./components/sections/DetailsTab.vue.js";
|
19
|
+
import { default as J } from "./components/sections/Organizations.vue.js";
|
20
|
+
import { default as L } from "./components/sections/Publics.vue.js";
|
21
|
+
import { default as Q } from "./components/sections/Documents.vue.js";
|
22
|
+
import { default as W } from "./components/elements/ButtonToggleMembership.vue.js";
|
23
23
|
import * as t from "./store/departments.js";
|
24
|
-
import * as
|
25
|
-
import * as
|
26
|
-
import
|
24
|
+
import * as r from "./store/memberships.js";
|
25
|
+
import * as e from "./store/organizations.js";
|
26
|
+
import * as a from "./store/invites.js";
|
27
|
+
import { default as Y } from "./router/organizations.js";
|
27
28
|
export {
|
28
|
-
|
29
|
+
W as ButtonToggleMembership,
|
29
30
|
A as CardDepartment,
|
30
|
-
|
31
|
+
b as CardOrganization,
|
31
32
|
j as Contacts,
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
33
|
+
p as Department,
|
34
|
+
x as DepartmentEdit,
|
35
|
+
C as DepartmentMemberModify,
|
36
|
+
h as DepartmentSub,
|
37
|
+
H as DetailsTab,
|
38
|
+
Q as Documents,
|
39
|
+
S as EditArray,
|
39
40
|
B as EmptyState,
|
40
|
-
|
41
|
-
|
41
|
+
F as MembersAdd,
|
42
|
+
s as Organization,
|
42
43
|
d as OrganizationEdit,
|
43
|
-
|
44
|
-
|
45
|
-
|
44
|
+
u as Organizations,
|
45
|
+
J as OrganizationsSection,
|
46
|
+
L as Publics,
|
46
47
|
T as Rating,
|
47
48
|
q as Socials,
|
48
|
-
|
49
|
-
|
49
|
+
E as Unit,
|
50
|
+
c as User,
|
50
51
|
t as departmentsStore,
|
51
|
-
a as
|
52
|
-
r as
|
53
|
-
|
52
|
+
a as invitesStore,
|
53
|
+
r as membershipsStore,
|
54
|
+
e as organizationStore,
|
55
|
+
Y as organizationsRouter
|
54
56
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../../../../node_modules/axios/lib/axios.cjs");require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs");const o=require("vue"),s=require("../../globals/store/globals.cjs"),n=l.default.create({baseURL:process.env.API_URL,withCredentials:!0});n.defaults.withCredentials=!0;const a=o.reactive({departments:[],department:{organization:"",profile:{photo:"",name:"",description:"",categories:[]},address:"",location:{lat:null,lng:null},worktime:[],delivery:[],payment:[],members:[],subdepartments:[]},error:null}),c={async readOne(r){try{const e=await n.get(`/api/departments/get/${r}`);return a.department=e.data,a.error=null,e.data}catch(e){return s.setError(e),null}},async read(r){try{const e=await n.get(
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../../../../node_modules/axios/lib/axios.cjs");require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs");const o=require("vue"),s=require("../../globals/store/globals.cjs"),n=l.default.create({baseURL:process.env.API_URL,withCredentials:!0});n.defaults.withCredentials=!0;const a=o.reactive({departments:[],department:{organization:"",profile:{photo:"",name:"",description:"",categories:[]},address:"",location:{lat:null,lng:null},worktime:[],delivery:[],payment:[],members:[],subdepartments:[]},error:null}),c={async readOne(r){try{const e=await n.get(`/api/departments/get/${r}`);return a.department=e.data,a.error=null,e.data}catch(e){return s.setError(e),null}},async read(r){try{const e=await n.get("/api/departments/read",{params:r});return console.log("Response:",e),a.departments=e.data,a.error=null,e.data}catch(e){return s.setError(e),null}},async create(r,e){try{const t=await n.post(`/api/departments/${r}/create`,e);return a.error=null,a.department=t.data,t.data}catch(t){return s.setError(t),null}},async update(r,e){try{const t=await n.post(`/api/departments/${r}/update`,e);return a.error=null,t}catch(t){return s.setError(t),null}},async delete(r,e){try{return await n.delete(`/api/departments/${r}/delete`,{data:{_id:e}}),a.error=null,!0}catch(t){return s.setError(t),!1}}};o.watch(a,(r,e)=>{});exports.actions=c;exports.state=a;
|
@@ -27,47 +27,47 @@ const a = l({
|
|
27
27
|
},
|
28
28
|
error: null
|
29
29
|
}), m = {
|
30
|
-
async readOne(
|
30
|
+
async readOne(r) {
|
31
31
|
try {
|
32
|
-
const e = await n.get(`/api/departments/get/${
|
32
|
+
const e = await n.get(`/api/departments/get/${r}`);
|
33
33
|
return a.department = e.data, a.error = null, e.data;
|
34
34
|
} catch (e) {
|
35
35
|
return o(e), null;
|
36
36
|
}
|
37
37
|
},
|
38
|
-
async read(
|
38
|
+
async read(r) {
|
39
39
|
try {
|
40
|
-
const e = await n.get(
|
40
|
+
const e = await n.get("/api/departments/read", { params: r });
|
41
41
|
return console.log("Response:", e), a.departments = e.data, a.error = null, e.data;
|
42
42
|
} catch (e) {
|
43
43
|
return o(e), null;
|
44
44
|
}
|
45
45
|
},
|
46
|
-
async create(
|
46
|
+
async create(r, e) {
|
47
47
|
try {
|
48
|
-
const
|
49
|
-
return a.error = null, a.department =
|
50
|
-
} catch (
|
51
|
-
return o(
|
48
|
+
const t = await n.post(`/api/departments/${r}/create`, e);
|
49
|
+
return a.error = null, a.department = t.data, t.data;
|
50
|
+
} catch (t) {
|
51
|
+
return o(t), null;
|
52
52
|
}
|
53
53
|
},
|
54
|
-
async update(
|
54
|
+
async update(r, e) {
|
55
55
|
try {
|
56
|
-
const
|
57
|
-
return a.error = null,
|
58
|
-
} catch (
|
59
|
-
return o(
|
56
|
+
const t = await n.post(`/api/departments/${r}/update`, e);
|
57
|
+
return a.error = null, t;
|
58
|
+
} catch (t) {
|
59
|
+
return o(t), null;
|
60
60
|
}
|
61
61
|
},
|
62
|
-
async delete(
|
62
|
+
async delete(r, e) {
|
63
63
|
try {
|
64
|
-
return await n.delete(`/api/departments/${
|
65
|
-
} catch (
|
66
|
-
return o(
|
64
|
+
return await n.delete(`/api/departments/${r}/delete`, { data: { _id: e } }), a.error = null, !0;
|
65
|
+
} catch (t) {
|
66
|
+
return o(t), !1;
|
67
67
|
}
|
68
68
|
}
|
69
69
|
};
|
70
|
-
p(a, (
|
70
|
+
p(a, (r, e) => {
|
71
71
|
});
|
72
72
|
export {
|
73
73
|
m as actions,
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../../node_modules/axios/lib/axios.cjs");require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs");const c=require("vue"),i=require("../../globals/store/globals.cjs"),s=require("../../auth/store/auth.cjs"),r=o.default.create({baseURL:process.env.API_URL,withCredentials:!0});r.defaults.withCredentials=!0;const a=c.reactive({invites:[],invite:null,error:null}),l={async read(t){await r.get(`/api/invites/${t}`).then(e=>{a.invites=e.data,a.error=null}).catch(e=>{i.setError(e)})},async readOne(t){await r.get(`/api/invites/get/${t}`).then(e=>{a.invite=e.data,s.state.user.phone=e.data.invitedPhone,s.state.user.email=e.data.invitedEmail}).catch(e=>{i.setError(e)})},async create(t,e){await r.post(`/api/invites/${t}/create`,e).then(()=>{a.error=null}).catch(n=>{i.setError(n)})},async update(t,e){await r.put(`/api/invites/${t}/update`,e).then(()=>{a.error=null}).catch(n=>{i.setError(n)})},async delete(t){await r.delete(`/api/invites/${t}/delete`).then(()=>{a.error=null}).catch(e=>{i.setError(e)})}};c.watch(a,(t,e)=>{});exports.actions=l;exports.state=a;
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../../node_modules/axios/lib/axios.cjs");require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs");const c=require("vue"),i=require("../../globals/store/globals.cjs"),s=require("../../auth/store/auth.cjs"),r=o.default.create({baseURL:process.env.API_URL,withCredentials:!0});r.defaults.withCredentials=!0;const a=c.reactive({invites:[],invite:null,error:null}),l={async read(t){await r.get(`/api/invites/${t}`).then(e=>{a.invites=e.data,a.error=null}).catch(e=>{i.setError(e)})},async readOne(t){await r.get(`/api/invites/get/${t}`).then(e=>{a.invite=e.data,s.state.user.phone=e.data.invitedPhone,s.state.user.email=e.data.invitedEmail}).catch(e=>{i.setError(e)})},async create(t,e){console.log(e),await r.post(`/api/invites/${t}/create`,e).then(()=>{a.error=null}).catch(n=>{i.setError(n)})},async update(t,e){await r.put(`/api/invites/${t}/update`,e).then(()=>{a.error=null}).catch(n=>{i.setError(n)})},async delete(t){await r.delete(`/api/invites/${t}/delete`).then(()=>{a.error=null}).catch(e=>{i.setError(e)})}};c.watch(a,(t,e)=>{});exports.actions=l;exports.state=a;
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import
|
1
|
+
import o from "../../../../node_modules/axios/lib/axios.js";
|
2
2
|
import "../../../../../node_modules/js-cookie/dist/js.cookie.js";
|
3
|
-
import { reactive as
|
3
|
+
import { reactive as c, watch as l } from "vue";
|
4
4
|
import { setError as r } from "../../globals/store/globals.js";
|
5
5
|
import { state as s } from "../../auth/store/auth.js";
|
6
|
-
const i =
|
6
|
+
const i = o.create({ baseURL: process.env.API_URL, withCredentials: !0 });
|
7
7
|
i.defaults.withCredentials = !0;
|
8
|
-
const a =
|
8
|
+
const a = c({
|
9
9
|
invites: [],
|
10
10
|
invite: null,
|
11
11
|
error: null
|
@@ -25,7 +25,7 @@ const a = o({
|
|
25
25
|
});
|
26
26
|
},
|
27
27
|
async create(e, t) {
|
28
|
-
await i.post(`/api/invites/${e}/create`, t).then(() => {
|
28
|
+
console.log(t), await i.post(`/api/invites/${e}/create`, t).then(() => {
|
29
29
|
a.error = null;
|
30
30
|
}).catch((n) => {
|
31
31
|
r(n);
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs
CHANGED
@@ -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"),s=require("vue-router"),i=require("../../../globals/components/blocks/CardHeader.vue.cjs"),c=require("../../../icons/navigation/IconEdit.vue.cjs"),d=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");require("./CardLeftover.vue2.cjs");const u={class:"flex-column pos-relative flex-wrap"},f={class:"w-100 mn-b-thin flex"},v={class:"p-big"},m={class:"w-100 bg-white radius-small pd-small spoiler"},p={key:0},g={class:"mn-t-small w-100 mn-b-thin flex"},E={class:"w-50 flex"},N={class:"t-right w-50 flex"},V={class:"w-100"},h={class:"t-transp"},y={__name:"CardLeftover",props:{leftover:Object},setup(t){s.useRouter();const a=e.ref(!1);function n(r,o){return o[r%100>4&&r%100<20?2:[2,0,1,1,1,2][r%10<5?r%10:5]]}return(r,o)=>(e.openBlock(),e.createElementBlock("div",u,[e.createVNode(i.default,{entity:t.leftover,entityType:"leftover",user:r.user,owner:t.leftover.creator,creator:t.leftover.creator,date:t.leftover.createdAt},null,8,["entity","user","owner","creator","date"]),e.createElementVNode("div",f,[e.createElementVNode("p",v,e.toDisplayString(t.leftover.type),1),e.createVNode(c.default,{onClick:o[0]||(o[0]=l=>r.$router.push({name:"LeftoverEdit",params:{_id:t.leftover.organization,leftover:t.leftover._id}})),class:"pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})]),e.createElementVNode("div",m,[e.createElementVNode("div",{onClick:o[1]||(o[1]=l=>a.value=!a.value),class:"flex"},[e.createElementVNode("span",null,"Всего товаров "+e.toDisplayString(t.leftover.positions.length),1)]),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[a.value?(e.openBlock(),e.createElementBlock("div",p,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.leftover.positions,l=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",E,[e.createElementVNode("span",null,e.toDisplayString(l.name),1)]),e.createElementVNode("div",N,[e.createElementVNode("span",V,[e.createTextVNode(e.toDisplayString(l.quantity)+" ",1),e.createElementVNode("span",h,e.toDisplayString(n(l.quantity,["единица"," единицы"," единиц"])),1)])])]))),256))])):e.createCommentVNode("",!0)]),_:1})])]))}},_=d.default(y,[["__scopeId","data-v-3ab265b0"]]);exports.default=_;
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js
CHANGED
@@ -1,24 +1,33 @@
|
|
1
|
-
import { ref as f, openBlock as
|
2
|
-
import { useRouter as
|
3
|
-
import g from "../../../
|
4
|
-
import
|
1
|
+
import { ref as f, openBlock as a, createElementBlock as n, createVNode as c, createElementVNode as e, toDisplayString as l, Transition as u, withCtx as v, Fragment as m, renderList as p, createTextVNode as _, createCommentVNode as h } from "vue";
|
2
|
+
import { useRouter as w } from "vue-router";
|
3
|
+
import g from "../../../globals/components/blocks/CardHeader.vue.js";
|
4
|
+
import x from "../../../icons/navigation/IconEdit.vue.js";
|
5
|
+
import y from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
5
6
|
import "./CardLeftover.vue2.js";
|
6
|
-
const
|
7
|
+
const C = { class: "flex-column pos-relative flex-wrap" }, b = { class: "w-100 mn-b-thin flex" }, k = { class: "p-big" }, N = { class: "w-100 bg-white radius-small pd-small spoiler" }, $ = { key: 0 }, L = { class: "mn-t-small w-100 mn-b-thin flex" }, V = { class: "w-50 flex" }, E = { class: "t-right w-50 flex" }, T = { class: "w-100" }, q = { class: "t-transp" }, B = {
|
7
8
|
__name: "CardLeftover",
|
8
9
|
props: {
|
9
10
|
leftover: Object
|
10
11
|
},
|
11
12
|
setup(t) {
|
12
|
-
|
13
|
+
w();
|
13
14
|
const i = f(!1);
|
14
|
-
function d(
|
15
|
-
return
|
15
|
+
function d(o, r) {
|
16
|
+
return r[o % 100 > 4 && o % 100 < 20 ? 2 : [2, 0, 1, 1, 1, 2][o % 10 < 5 ? o % 10 : 5]];
|
16
17
|
}
|
17
|
-
return (
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
18
|
+
return (o, r) => (a(), n("div", C, [
|
19
|
+
c(g, {
|
20
|
+
entity: t.leftover,
|
21
|
+
entityType: "leftover",
|
22
|
+
user: o.user,
|
23
|
+
owner: t.leftover.creator,
|
24
|
+
creator: t.leftover.creator,
|
25
|
+
date: t.leftover.createdAt
|
26
|
+
}, null, 8, ["entity", "user", "owner", "creator", "date"]),
|
27
|
+
e("div", b, [
|
28
|
+
e("p", k, l(t.leftover.type), 1),
|
29
|
+
c(x, {
|
30
|
+
onClick: r[0] || (r[0] = (s) => o.$router.push({
|
22
31
|
name: "LeftoverEdit",
|
23
32
|
params: {
|
24
33
|
_id: t.leftover.organization,
|
@@ -30,22 +39,22 @@ const k = { class: "flex-column pos-relative flex-wrap block" }, C = { class: "w
|
|
30
39
|
]),
|
31
40
|
e("div", N, [
|
32
41
|
e("div", {
|
33
|
-
onClick:
|
34
|
-
class: "
|
42
|
+
onClick: r[1] || (r[1] = (s) => i.value = !i.value),
|
43
|
+
class: "flex"
|
35
44
|
}, [
|
36
|
-
e("span", null, "Всего товаров " +
|
45
|
+
e("span", null, "Всего товаров " + l(t.leftover.positions.length), 1)
|
37
46
|
]),
|
38
|
-
c(
|
39
|
-
default:
|
40
|
-
i.value ? (
|
41
|
-
(
|
47
|
+
c(u, { name: "fade" }, {
|
48
|
+
default: v(() => [
|
49
|
+
i.value ? (a(), n("div", $, [
|
50
|
+
(a(!0), n(m, null, p(t.leftover.positions, (s) => (a(), n("div", L, [
|
42
51
|
e("div", V, [
|
43
|
-
e("span", null,
|
52
|
+
e("span", null, l(s.name), 1)
|
44
53
|
]),
|
45
|
-
e("div",
|
46
|
-
e("span",
|
47
|
-
_(
|
48
|
-
e("span", q,
|
54
|
+
e("div", E, [
|
55
|
+
e("span", T, [
|
56
|
+
_(l(s.quantity) + " ", 1),
|
57
|
+
e("span", q, l(d(s.quantity, ["единица", " единицы", " единиц"])), 1)
|
49
58
|
])
|
50
59
|
])
|
51
60
|
]))), 256))
|
@@ -56,7 +65,7 @@ const k = { class: "flex-column pos-relative flex-wrap block" }, C = { class: "w
|
|
56
65
|
])
|
57
66
|
]));
|
58
67
|
}
|
59
|
-
},
|
68
|
+
}, I = /* @__PURE__ */ y(B, [["__scopeId", "data-v-3ab265b0"]]);
|
60
69
|
export {
|
61
|
-
|
70
|
+
I as default
|
62
71
|
};
|
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"),i=require("../../../../components/Field/Field.vue.cjs"),y=require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../../components/Field/Field.vue.cjs"),y=require("../../../../components/Select/Select.vue2.cjs"),b=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),g=require("../../../icons/navigation/IconAdd.vue.cjs"),V=require("../../../icons/navigation/IconDelete.vue.cjs"),q={class:"gap-thin flex-nowrap flex"},k=["disabled"],N={__name:"CardPosition",props:{product:Object,array:Array,products:Array},emits:["add","delete","update"],setup(c,{emit:n}){const t=c,s=n,l=e.ref(null),a=e.ref(1),d=e.ref("pcs"),u=e.ref(0),p=e.computed(()=>l.value&&a.value>0&&u.value>0);e.watch(t.array,()=>{l.value=t.product,a.value=t.product.quantity||1,u.value=t.product.price,d.value=t.product.type}),t.product&&(l.value=t.product,a.value=t.product.quantity||1,u.value=t.product.price,d.value=t.product.type),e.watch([l,a,u,d],()=>{s("update",{...l.value,price:u.value,quantity:a.value||1,type:d.value})});function m(){s("add",{...l.value,price:u.value,quantity:a.value||1,type:d.value})}function v(){s("delete",{...l.value,price:u.value,quantity:a.value||1,type:d.value})}return(f,r)=>(e.openBlock(),e.createElementBlock("div",q,[e.createVNode(b.default,{modelValue:l.value,"onUpdate:modelValue":r[0]||(r[0]=o=>l.value=o),options:c.products,label:"name",multiple:!1,taggable:!1,placeholder:"Select a product",class:"bg-white pd-small radius-small"},null,8,["modelValue","options"]),e.createVNode(i.default,{field:u.value,"onUpdate:field":r[1]||(r[1]=o=>u.value=o),type:"number",label:"Price",symbol:f.returnCurrency(),class:"bg-white pd-small radius-small"},null,8,["field","symbol"]),e.createVNode(i.default,{field:a.value,"onUpdate:field":r[3]||(r[3]=o=>a.value=o),type:"number",label:"Qty",class:"bg-white pd-small radius-small"},{default:e.withCtx(()=>[e.createVNode(y.default,{select:d.value,"onUpdate:select":r[2]||(r[2]=o=>d.value=o),options:["pcs","g","ml"],class:"bg-grey pd-thin radius-thin"},null,8,["select"])]),_:1},8,["field"]),c.product?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,disabled:!p.value,onClick:m,class:"bg-main aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(g.default),{class:"i-semi"})],8,k)),c.product?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:v,class:"bg-red aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(V.default),{class:"i-semi"})])):e.createCommentVNode("",!0)]))}};exports.default=N;
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ref as i, computed as C, watch as m, openBlock as c, createElementBlock as n, createVNode as d, withCtx as P, unref as v, createCommentVNode as f } from "vue";
|
2
2
|
import y from "../../../../components/Field/Field.vue.js";
|
3
|
-
import V from "../../../../components/Select/Select.
|
3
|
+
import V from "../../../../components/Select/Select.vue2.js";
|
4
4
|
import q from "../../../../components/SelectMulti/SelectMulti.vue.js";
|
5
5
|
import h from "../../../icons/navigation/IconAdd.vue.js";
|
6
6
|
import S from "../../../icons/navigation/IconDelete.vue.js";
|
@@ -17,39 +17,39 @@ const U = { class: "gap-thin flex-nowrap flex" }, Q = ["disabled"], F = {
|
|
17
17
|
"update"
|
18
18
|
],
|
19
19
|
setup(s, { emit: b }) {
|
20
|
-
const e = s, p = b,
|
21
|
-
() =>
|
20
|
+
const e = s, p = b, l = i(null), t = i(1), u = i("pcs"), a = i(0), g = C(
|
21
|
+
() => l.value && t.value > 0 && a.value > 0
|
22
22
|
);
|
23
23
|
m(e.array, () => {
|
24
|
-
|
25
|
-
}), e.product && (
|
24
|
+
l.value = e.product, t.value = e.product.quantity || 1, a.value = e.product.price, u.value = e.product.type;
|
25
|
+
}), e.product && (l.value = e.product, t.value = e.product.quantity || 1, a.value = e.product.price, u.value = e.product.type), m([l, t, a, u], () => {
|
26
26
|
p("update", {
|
27
|
-
...
|
27
|
+
...l.value,
|
28
28
|
price: a.value,
|
29
|
-
quantity:
|
29
|
+
quantity: t.value || 1,
|
30
30
|
type: u.value
|
31
31
|
});
|
32
32
|
});
|
33
33
|
function k() {
|
34
34
|
p("add", {
|
35
|
-
...
|
35
|
+
...l.value,
|
36
36
|
price: a.value,
|
37
|
-
quantity:
|
37
|
+
quantity: t.value || 1,
|
38
38
|
type: u.value
|
39
39
|
});
|
40
40
|
}
|
41
41
|
function w() {
|
42
42
|
p("delete", {
|
43
|
-
...
|
43
|
+
...l.value,
|
44
44
|
price: a.value,
|
45
|
-
quantity:
|
45
|
+
quantity: t.value || 1,
|
46
46
|
type: u.value
|
47
47
|
});
|
48
48
|
}
|
49
49
|
return (x, o) => (c(), n("div", U, [
|
50
50
|
d(q, {
|
51
|
-
modelValue:
|
52
|
-
"onUpdate:modelValue": o[0] || (o[0] = (r) =>
|
51
|
+
modelValue: l.value,
|
52
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => l.value = r),
|
53
53
|
options: s.products,
|
54
54
|
label: "name",
|
55
55
|
multiple: !1,
|
@@ -66,10 +66,10 @@ const U = { class: "gap-thin flex-nowrap flex" }, Q = ["disabled"], F = {
|
|
66
66
|
class: "bg-white pd-small radius-small"
|
67
67
|
}, null, 8, ["field", "symbol"]),
|
68
68
|
d(y, {
|
69
|
-
field:
|
70
|
-
"onUpdate:field": o[3] || (o[3] = (r) =>
|
69
|
+
field: t.value,
|
70
|
+
"onUpdate:field": o[3] || (o[3] = (r) => t.value = r),
|
71
71
|
type: "number",
|
72
|
-
label: "
|
72
|
+
label: "Qty",
|
73
73
|
class: "bg-white pd-small radius-small"
|
74
74
|
}, {
|
75
75
|
default: P(() => [
|
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.vue2.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 gap-thin"},_=["src","onClick"],g={__name:"ImagesThumbnails",props:{images:{type:Array,required:!0}},setup(o){const t=e.ref(!1),n=e.ref(0),a=s=>{n.value=s,t.value=!0},i=()=>{t.value=!1};return(s,v)=>(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("div",m,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.images,(l,r)=>(e.openBlock(),e.createElementBlock("img",{key:r,src:(s.FILE_SERVER_URL||"")+l,onClick:h=>a(r),class:"radius-medium bg-white o-hidden thumbnail"},null,8,_))),128))]),e.createVNode(u.default,{onClosePopup:i,isPopupOpen:t.value,class:"radius-medium o-hidden"},{default:e.withCtx(()=>[e.createVNode(c.default,{imageSrc:(s.FILE_SERVER_URL||"")+o.images[n.value],class:"magnifier z-index-4"},null,8,["imageSrc"])]),_:1},8,["isPopupOpen"])]))}},f=d.default(g,[["__scopeId","data-v-5058c750"]]);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 g } from "vue";
|
2
|
-
import f from "../../../../components/Popup/Popup.
|
2
|
+
import f from "../../../../components/Popup/Popup.vue2.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";
|