@ozdao/prometheus-framework 0.1.81 → 0.1.83
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs +4 -4
- package/dist/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js +3 -3
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +2981 -2804
- package/dist/prometheus-framework/node_modules/date-fns/esm/getQuarter/index.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/esm/getQuarter/index.js +10 -0
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getNumberType.cjs +2 -2
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +26 -26
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/isObject.cjs +1 -0
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/isObject.js +7 -0
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/metadata.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/metadata.js +28 -29
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/normalizeArguments.cjs +2 -2
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/normalizeArguments.js +55 -65
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +23 -23
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.js +31 -31
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +22 -22
- package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.js +18 -18
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +24 -24
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +32 -32
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +31 -30
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +20 -20
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +32 -32
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +21 -21
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +8 -8
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +12 -12
- package/dist/prometheus-framework/src/components/Text/Text.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Text/Text.vue.js +11 -11
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +27 -27
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +18 -18
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +17 -17
- 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 +41 -40
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +17 -18
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +24 -24
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +19 -19
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +22 -22
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +3 -3
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +25 -25
- 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 +56 -56
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +44 -43
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +15 -15
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +10 -10
- 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 +51 -53
- 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 +59 -61
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +22 -22
- 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 +23 -23
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +23 -23
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +18 -18
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +24 -24
- package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.js +20 -20
- package/dist/prometheus-framework.cjs.js +27 -27
- package/dist/prometheus-framework.es.js +1949 -1937
- package/dist/style.css +1 -1
- package/package.json +2 -4
- package/src/modules/auth/components/pages/SignIn.vue +1 -0
- package/src/modules/auth/store/auth.js +2 -7
@@ -1,8 +1,8 @@
|
|
1
|
-
import { openBlock as
|
2
|
-
import
|
1
|
+
import { openBlock as m, createBlock as l, withCtx as g, createTextVNode as h, toDisplayString as y } from "vue";
|
2
|
+
import b from "../../../../components/Button/Button.vue2.js";
|
3
3
|
import "../../../auth/store/auth.js";
|
4
4
|
import { actions as i } from "../../store/memberships.js";
|
5
|
-
const
|
5
|
+
const M = {
|
6
6
|
__name: "ButtonToggleMembership",
|
7
7
|
props: {
|
8
8
|
user: {
|
@@ -34,11 +34,11 @@ const x = {
|
|
34
34
|
}
|
35
35
|
},
|
36
36
|
emits: ["updateMembership"],
|
37
|
-
setup(a, { emit:
|
38
|
-
const e = a, p = async () => {
|
39
|
-
e.status ? await u() : await
|
37
|
+
setup(a, { emit: c }) {
|
38
|
+
const o = c, e = a, p = async () => {
|
39
|
+
e.status ? await u() : await n();
|
40
40
|
};
|
41
|
-
async function
|
41
|
+
async function n() {
|
42
42
|
try {
|
43
43
|
const t = {
|
44
44
|
user: e.user,
|
@@ -73,18 +73,18 @@ const x = {
|
|
73
73
|
throw console.log(s), s;
|
74
74
|
}
|
75
75
|
}
|
76
|
-
return (t, r) => (
|
76
|
+
return (t, r) => (m(), l(b, {
|
77
77
|
submit: p,
|
78
78
|
showSucces: !1,
|
79
79
|
class: "button-small button"
|
80
80
|
}, {
|
81
|
-
default:
|
82
|
-
|
81
|
+
default: g(() => [
|
82
|
+
h(y(a.status ? e.text.remove : e.text.create), 1)
|
83
83
|
]),
|
84
84
|
_: 1
|
85
85
|
}));
|
86
86
|
}
|
87
87
|
};
|
88
88
|
export {
|
89
|
-
|
89
|
+
M as default
|
90
90
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const c=require("../blocks/EmptyState.vue.cjs"),m=require("../blocks/CardDepartment.vue.cjs"),d=require("../../store/departments.cjs"),p=require("../../../auth/store/auth.cjs"),g={__name:"FeedDepartments",props:{organization:Object,units:Array,memberships:Array},async setup(a){let u
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const c=require("../blocks/EmptyState.vue.cjs"),m=require("../blocks/CardDepartment.vue.cjs"),d=require("../../store/departments.cjs"),p=require("../../../auth/store/auth.cjs"),g={__name:"FeedDepartments",props:{organization:Object,units:Array,memberships:Array},async setup(a){let l,u;const o=a;e.ref("departments"),[l,u]=e.withAsyncContext(()=>d.actions.read(o.organization._id)),await l,u();const i=e.computed(()=>{const n=d.state.departments,r=n.flatMap(t=>t.subdepartments.map(s=>s._id));return n.filter(t=>!r.includes(t._id))});return(n,r)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[i.value.length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>n.$router.push(`/organization/${o.organization._id}/departments/create`)},null,8,["callback"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(t,s)=>(e.openBlock(),e.createBlock(m.default,{key:s,department:t,organization:a.organization,class:"radius-big bg-grey mn-thin"},null,8,["department","organization"]))),128)),i.value.length>0&&p.state.user._id===a.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:r[0]||(r[0]=t=>n.$router.push(`/organization/${o.organization._id}/departments/create`)),class:"mn-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}};exports.default=g;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { ref as
|
1
|
+
import { ref as g, withAsyncContext as f, computed as b, openBlock as n, createBlock as d, Transition as y, withCtx as _, createElementVNode as u, createCommentVNode as p, createElementBlock as c, Fragment as h, renderList as z } from "vue";
|
2
2
|
import "../../../../components/Tab/Tab.vue.js";
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import { actions as
|
6
|
-
import { state as
|
7
|
-
const
|
3
|
+
import k from "../blocks/EmptyState.vue.js";
|
4
|
+
import v from "../blocks/CardDepartment.vue.js";
|
5
|
+
import { actions as $, state as A } from "../../store/departments.js";
|
6
|
+
import { state as w } from "../../../auth/store/auth.js";
|
7
|
+
const L = {
|
8
8
|
__name: "FeedDepartments",
|
9
9
|
props: {
|
10
10
|
organization: Object,
|
@@ -12,39 +12,39 @@ const N = {
|
|
12
12
|
memberships: Array
|
13
13
|
},
|
14
14
|
async setup(a) {
|
15
|
-
let
|
15
|
+
let m, l;
|
16
16
|
const o = a;
|
17
|
-
|
18
|
-
const i =
|
19
|
-
const e =
|
17
|
+
g("departments"), [m, l] = f(() => $.read(o.organization._id)), await m, l();
|
18
|
+
const i = b(() => {
|
19
|
+
const e = A.departments, r = e.flatMap(
|
20
20
|
(t) => t.subdepartments.map((s) => s._id)
|
21
21
|
);
|
22
22
|
return e.filter(
|
23
23
|
(t) => !r.includes(t._id)
|
24
24
|
);
|
25
25
|
});
|
26
|
-
return (e, r) => (n(), d(
|
27
|
-
default:
|
26
|
+
return (e, r) => (n(), d(y, { name: "slide-fade" }, {
|
27
|
+
default: _(() => [
|
28
28
|
u("div", null, [
|
29
|
-
|
29
|
+
i.value.length < 1 ? (n(), d(k, {
|
30
30
|
key: 0,
|
31
31
|
title: "You don't have any spots yet.",
|
32
32
|
description: "Add spots to your hub.",
|
33
33
|
action: "Add spot",
|
34
34
|
callback: () => e.$router.push(`/organization/${o.organization._id}/departments/create`)
|
35
|
-
}, null, 8, ["callback"])) :
|
35
|
+
}, null, 8, ["callback"])) : p("", !0),
|
36
36
|
u("div", null, [
|
37
|
-
(n(!0),
|
37
|
+
(n(!0), c(h, null, z(i.value, (t, s) => (n(), d(v, {
|
38
38
|
key: s,
|
39
39
|
department: t,
|
40
40
|
organization: a.organization,
|
41
41
|
class: "radius-big bg-grey mn-thin"
|
42
42
|
}, null, 8, ["department", "organization"]))), 128)),
|
43
|
-
|
43
|
+
i.value.length > 0 && w.user._id === a.organization.owner ? (n(), c("button", {
|
44
44
|
key: 0,
|
45
45
|
onClick: r[0] || (r[0] = (t) => e.$router.push(`/organization/${o.organization._id}/departments/create`)),
|
46
46
|
class: "mn-thin button w-100"
|
47
|
-
}, " Add spot ")) :
|
47
|
+
}, " Add spot ")) : p("", !0)
|
48
48
|
])
|
49
49
|
])
|
50
50
|
]),
|
@@ -53,5 +53,5 @@ const N = {
|
|
53
53
|
}
|
54
54
|
};
|
55
55
|
export {
|
56
|
-
|
56
|
+
L as default
|
57
57
|
};
|
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"),
|
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.vue2.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/MembersList.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"),p=require("../../../../components/Tab/Tab.vue2.cjs"),v={class:"mn-big radius-medium bg-white"},b={key:0,class:"pd-semi"},_={class:"br-grey br-1px br-solid radius-small flex-nowrap flex-v-center flex pd-medium"},k={class:"w-100 mn-r-small"},h={class:"t-transp"},B={key:0,class:"mn-l-medium flex-v-center flex"},f=["onClick"],g={key:1,class:"pd-semi"},E={key:0},y={class:"br-grey br-1px br-solid radius-small mn-thin flex-nowrap flex-v-center flex pd-medium"},x={class:"w-100 mn-r-small"},N={class:"t-transp"},V={class:"mn-l-medium flex-v-center flex"},C=["onClick"],S={__name:"MembersList",props:{organization:Object,memberships:Array,invites:Array},emits:[["removeMember","removeInvite"]],setup(n,{emit:a}){const i=n,c=a,o=e.ref("members");function m(l,s){i.memberships.splice(l,1),c("removeMember",s)}function d(l,s){i.invites.splice(l,1),c("removeInvite",s)}return(l,s)=>(e.openBlock(),e.createElementBlock("section",v,[e.createVNode(p.default,{selected:o.value,"onUpdate:selected":s[0]||(s[0]=t=>o.value=t),class:"br-grey br-b br-solid radius-small",tabs:[{name:"Участники",value:"members"},{name:"Приглашения",value:"invites"}]},null,8,["selected"]),o.value==="members"?(e.openBlock(),e.createElementBlock("div",b,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.memberships,(t,r)=>(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("span",k,e.toDisplayString(t.user.email)+" "+e.toDisplayString(t.user.phone),1),e.createElementVNode("span",h,e.toDisplayString(t.position),1),t.position!=="Основатель"?(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("button",{onClick:u=>m(r,t),class:"button-small button"},"×",8,f)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),o.value==="invites"?(e.openBlock(),e.createElementBlock("div",g,[n.invites.length<1?(e.openBlock(),e.createElementBlock("span",E,"В организации нет приглашений")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.invites,(t,r)=>(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("span",x,e.toDisplayString(t.invitedEmail)+" "+e.toDisplayString(t.invitedPhone),1),e.createElementVNode("span",N,e.toDisplayString(t.status),1),e.createElementVNode("div",V,[e.createElementVNode("button",{onClick:u=>d(r,t),class:"button-small button"},"×",8,C)])]))),256))])):e.createCommentVNode("",!0)]))}};exports.default=S;
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
import { ref as
|
2
|
-
import
|
3
|
-
const
|
1
|
+
import { ref as x, openBlock as s, createElementBlock as t, createVNode as k, Fragment as v, renderList as p, createElementVNode as n, toDisplayString as o, createCommentVNode as m } from "vue";
|
2
|
+
import y from "../../../../components/Tab/Tab.vue2.js";
|
3
|
+
const g = { class: "mn-big radius-medium bg-white" }, w = {
|
4
4
|
key: 0,
|
5
5
|
class: "pd-semi"
|
6
|
-
},
|
6
|
+
}, C = { class: "br-grey br-1px br-solid radius-small flex-nowrap flex-v-center flex pd-medium" }, M = { class: "w-100 mn-r-small" }, E = { class: "t-transp" }, I = {
|
7
7
|
key: 0,
|
8
8
|
class: "mn-l-medium flex-v-center flex"
|
9
|
-
},
|
9
|
+
}, N = ["onClick"], V = {
|
10
10
|
key: 1,
|
11
11
|
class: "pd-semi"
|
12
|
-
},
|
12
|
+
}, $ = { key: 0 }, A = { class: "br-grey br-1px br-solid radius-small mn-thin flex-nowrap flex-v-center flex pd-medium" }, B = { class: "w-100 mn-r-small" }, L = { class: "t-transp" }, j = { class: "mn-l-medium flex-v-center flex" }, z = ["onClick"], O = {
|
13
13
|
__name: "MembersList",
|
14
14
|
props: {
|
15
15
|
organization: Object,
|
@@ -17,16 +17,16 @@ const y = { class: "mn-big radius-medium bg-white" }, g = {
|
|
17
17
|
invites: Array
|
18
18
|
},
|
19
19
|
emits: [["removeMember", "removeInvite"]],
|
20
|
-
setup(l, { emit:
|
21
|
-
const
|
22
|
-
function b(a, i) {
|
23
|
-
u.memberships.splice(a, 1), d("removeMember", i);
|
24
|
-
}
|
20
|
+
setup(l, { emit: b }) {
|
21
|
+
const d = l, u = b, r = x("members");
|
25
22
|
function _(a, i) {
|
26
|
-
|
23
|
+
d.memberships.splice(a, 1), u("removeMember", i);
|
24
|
+
}
|
25
|
+
function h(a, i) {
|
26
|
+
d.invites.splice(a, 1), u("removeInvite", i);
|
27
27
|
}
|
28
|
-
return (a, i) => (s(), t("section",
|
29
|
-
|
28
|
+
return (a, i) => (s(), t("section", g, [
|
29
|
+
k(y, {
|
30
30
|
selected: r.value,
|
31
31
|
"onUpdate:selected": i[0] || (i[0] = (e) => r.value = e),
|
32
32
|
class: "br-grey br-b br-solid radius-small",
|
@@ -35,28 +35,28 @@ const y = { class: "mn-big radius-medium bg-white" }, g = {
|
|
35
35
|
{ name: "Приглашения", value: "invites" }
|
36
36
|
]
|
37
37
|
}, null, 8, ["selected"]),
|
38
|
-
r.value === "members" ? (s(), t("div",
|
39
|
-
(s(!0), t(v, null, p(l.memberships, (e, c) => (s(), t("div",
|
40
|
-
n("span",
|
41
|
-
n("span",
|
42
|
-
e.position !== "Основатель" ? (s(), t("div",
|
38
|
+
r.value === "members" ? (s(), t("div", w, [
|
39
|
+
(s(!0), t(v, null, p(l.memberships, (e, c) => (s(), t("div", C, [
|
40
|
+
n("span", M, o(e.user.email) + " " + o(e.user.phone), 1),
|
41
|
+
n("span", E, o(e.position), 1),
|
42
|
+
e.position !== "Основатель" ? (s(), t("div", I, [
|
43
43
|
n("button", {
|
44
|
-
onClick: (
|
44
|
+
onClick: (f) => _(c, e),
|
45
45
|
class: "button-small button"
|
46
|
-
}, "×", 8,
|
46
|
+
}, "×", 8, N)
|
47
47
|
])) : m("", !0)
|
48
48
|
]))), 256))
|
49
49
|
])) : m("", !0),
|
50
|
-
r.value === "invites" ? (s(), t("div",
|
51
|
-
l.invites.length < 1 ? (s(), t("span",
|
52
|
-
(s(!0), t(v, null, p(l.invites, (e, c) => (s(), t("div",
|
53
|
-
n("span",
|
54
|
-
n("span",
|
55
|
-
n("div",
|
50
|
+
r.value === "invites" ? (s(), t("div", V, [
|
51
|
+
l.invites.length < 1 ? (s(), t("span", $, "В организации нет приглашений")) : m("", !0),
|
52
|
+
(s(!0), t(v, null, p(l.invites, (e, c) => (s(), t("div", A, [
|
53
|
+
n("span", B, o(e.invitedEmail) + " " + o(e.invitedPhone), 1),
|
54
|
+
n("span", L, o(e.status), 1),
|
55
|
+
n("div", j, [
|
56
56
|
n("button", {
|
57
|
-
onClick: (
|
57
|
+
onClick: (f) => h(c, e),
|
58
58
|
class: "button-small button"
|
59
|
-
}, "×", 8,
|
59
|
+
}, "×", 8, z)
|
60
60
|
])
|
61
61
|
]))), 256))
|
62
62
|
])) : m("", !0)
|
@@ -64,5 +64,5 @@ const y = { class: "mn-big radius-medium bg-white" }, g = {
|
|
64
64
|
}
|
65
65
|
};
|
66
66
|
export {
|
67
|
-
|
67
|
+
O as default
|
68
68
|
};
|
package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.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/Spoiler/Spoiler.vue2.cjs"),c=require("../../../../components/Checkbox/Checkbox.vue.cjs"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../../../components/Spoiler/Spoiler.vue2.cjs"),c=require("../../../../components/Checkbox/Checkbox.vue.cjs"),v=require("vue-i18n"),u=require("../../store/categories.cjs");require("./FilterProducts.vue2.cjs");const x={class:"pd-medium bg-grey radius-big"},y={class:"mn-small"},k=e.createElementVNode("hr",{class:"mn-small"},null,-1),C={class:"mn-r-auto t-medium p-big"},w=e.createElementVNode("hr",{class:"mn-small"},null,-1),E={class:"mn-r-auto t-medium p-big"},F=e.createElementVNode("hr",{class:"mn-small"},null,-1),B=e.createElementVNode("p",{class:"mn-r-auto t-medium p-big"},"Delivery",-1),N=e.createElementVNode("hr",{class:"mn-semi"},null,-1),V={__name:"FilterProducts",props:{selectedFilters:Object,prices:{type:Array,default:()=>[{label:"Under $5",value:{min:0,max:5}},{label:"$5 to $10",value:{min:5,max:10}},{label:"$10 to $20",value:{min:10,max:20}},{label:"$20 and above",value:{min:20,max:1/0}}]},deliveryOptions:{type:Array,default:()=>[{label:"Pickup",value:{min:0,max:25}},{label:"Courier",value:{min:25,max:50}},{label:"Post",value:{min:50,max:100}}]}},emits:["updateFilters","resetFilters"],async setup(m,{emit:f}){let d,h;[d,h]=e.withAsyncContext(()=>u.actions.fetchCategories()),await d,h();let n=e.ref({categories:[],prices:[],delivery:[],extra:[]});const g=f,i=(r,l)=>{g("updateFilters",{filterType:r,value:l})},_=()=>{g("resetFilters")},b={locale:"en",messages:{en:{categoriesTitle:"Category",categories:[],filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{categoriesTitle:"Категория",categories:[],filters:{title:"Фильтры",price:{title:"Цена",from:"От",to:"До"},filters:[],reset:"Сбросить фильтры"}}}};u.state.all.forEach(r=>{r.localization.forEach(l=>{b.messages[l.locale].categories.push(l.text)})});const{t:s}=v.useI18n(b);return(r,l)=>(e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("h3",y,e.toDisplayString(e.unref(s)("filters.title")),1),k,e.createVNode(o.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-small",status:!0},{header:e.withCtx(()=>[e.createElementVNode("p",C,e.toDisplayString(e.unref(s)("categoriesTitle")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.state.all,(t,a)=>(e.openBlock(),e.createBlock(c.default,{key:a,label:t.name,value:t.url,class:"w-100 mn-t-small mn-small bg-white radius-small pd-small",radio:e.unref(n).categories,onChange:p=>i("categories",t.url)},null,8,["label","value","radio","onChange"]))),128))]),_:1}),w,e.createVNode(o.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-small",status:!1},{header:e.withCtx(()=>[e.createElementVNode("p",E,e.toDisplayString(e.unref(s)("filters.price.title")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.prices,(t,a)=>(e.openBlock(),e.createBlock(c.default,{key:a,label:t.label,value:t.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:e.unref(n).prices,onChange:p=>i("prices",t.value)},null,8,["label","value","radio","onChange"]))),128))]),_:1}),F,e.createVNode(o.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-small",status:!1},{header:e.withCtx(()=>[B]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.deliveryOptions,(t,a)=>(e.openBlock(),e.createBlock(c.default,{key:a,label:t.label,value:t.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:e.unref(n).delivery,onChange:p=>i("delivery",t.value)},null,8,["label","value","radio","onChange"]))),128))]),_:1}),N,e.createElementVNode("button",{onClick:_,class:"bg-main w-100 button"},e.toDisplayString(e.unref(s)("filters.reset")),1)]))}};exports.default=V;
|
package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import { withAsyncContext as
|
1
|
+
import { withAsyncContext as P, ref as T, openBlock as t, createElementBlock as m, createElementVNode as l, toDisplayString as c, unref as s, createVNode as b, withCtx as a, Fragment as h, renderList as p, createBlock as g } from "vue";
|
2
2
|
import _ from "../../../../components/Spoiler/Spoiler.vue2.js";
|
3
3
|
import f from "../../../../components/Checkbox/Checkbox.vue.js";
|
4
|
-
import { useI18n as
|
5
|
-
import { actions as
|
4
|
+
import { useI18n as A } from "vue-i18n";
|
5
|
+
import { actions as B, state as $ } from "../../store/categories.js";
|
6
6
|
import "./FilterProducts.vue2.js";
|
7
|
-
const
|
7
|
+
const D = { class: "pd-medium bg-grey radius-big" }, I = { class: "mn-small" }, N = /* @__PURE__ */ l("hr", { class: "mn-small" }, null, -1), V = { class: "mn-r-auto t-medium p-big" }, j = /* @__PURE__ */ l("hr", { class: "mn-small" }, null, -1), L = { class: "mn-r-auto t-medium p-big" }, O = /* @__PURE__ */ l("hr", { class: "mn-small" }, null, -1), R = /* @__PURE__ */ l("p", { class: "mn-r-auto t-medium p-big" }, "Delivery", -1), S = /* @__PURE__ */ l("hr", { class: "mn-semi" }, null, -1), K = {
|
8
8
|
__name: "FilterProducts",
|
9
9
|
props: {
|
10
10
|
selectedFilters: Object,
|
@@ -27,19 +27,19 @@ const B = { class: "pd-medium bg-grey radius-big" }, D = { class: "mn-small" },
|
|
27
27
|
}
|
28
28
|
},
|
29
29
|
emits: ["updateFilters", "resetFilters"],
|
30
|
-
async setup(v, { emit:
|
31
|
-
let
|
32
|
-
[
|
33
|
-
let u =
|
30
|
+
async setup(v, { emit: k }) {
|
31
|
+
let x, y;
|
32
|
+
[x, y] = P(() => B.fetchCategories()), await x, y();
|
33
|
+
let u = T({
|
34
34
|
categories: [],
|
35
35
|
prices: [],
|
36
36
|
delivery: [],
|
37
37
|
extra: []
|
38
38
|
});
|
39
|
-
const d = (o, r) => {
|
40
|
-
|
41
|
-
},
|
42
|
-
|
39
|
+
const C = k, d = (o, r) => {
|
40
|
+
C("updateFilters", { filterType: o, value: r });
|
41
|
+
}, E = () => {
|
42
|
+
C("resetFilters");
|
43
43
|
}, F = {
|
44
44
|
locale: "en",
|
45
45
|
messages: {
|
@@ -78,16 +78,16 @@ const B = { class: "pd-medium bg-grey radius-big" }, D = { class: "mn-small" },
|
|
78
78
|
F.messages[r.locale].categories.push(r.text);
|
79
79
|
});
|
80
80
|
});
|
81
|
-
const { t: n } =
|
82
|
-
return (o, r) => (t(), m("div",
|
83
|
-
l("h3",
|
84
|
-
|
81
|
+
const { t: n } = A(F);
|
82
|
+
return (o, r) => (t(), m("div", D, [
|
83
|
+
l("h3", I, c(s(n)("filters.title")), 1),
|
84
|
+
N,
|
85
85
|
b(_, {
|
86
86
|
class: "radius-small o-hidden br-1px br-solid br-grey mn-small",
|
87
87
|
status: !0
|
88
88
|
}, {
|
89
89
|
header: a(() => [
|
90
|
-
l("p",
|
90
|
+
l("p", V, c(s(n)("categoriesTitle")), 1)
|
91
91
|
]),
|
92
92
|
content: a(() => [
|
93
93
|
(t(!0), m(h, null, p($.all, (e, i) => (t(), g(f, {
|
@@ -101,13 +101,13 @@ const B = { class: "pd-medium bg-grey radius-big" }, D = { class: "mn-small" },
|
|
101
101
|
]),
|
102
102
|
_: 1
|
103
103
|
}),
|
104
|
-
|
104
|
+
j,
|
105
105
|
b(_, {
|
106
106
|
class: "radius-small o-hidden br-1px br-solid br-grey mn-small",
|
107
107
|
status: !1
|
108
108
|
}, {
|
109
109
|
header: a(() => [
|
110
|
-
l("p",
|
110
|
+
l("p", L, c(s(n)("filters.price.title")), 1)
|
111
111
|
]),
|
112
112
|
content: a(() => [
|
113
113
|
(t(!0), m(h, null, p(v.prices, (e, i) => (t(), g(f, {
|
@@ -121,13 +121,13 @@ const B = { class: "pd-medium bg-grey radius-big" }, D = { class: "mn-small" },
|
|
121
121
|
]),
|
122
122
|
_: 1
|
123
123
|
}),
|
124
|
-
|
124
|
+
O,
|
125
125
|
b(_, {
|
126
126
|
class: "radius-small o-hidden br-1px br-solid br-grey mn-small",
|
127
127
|
status: !1
|
128
128
|
}, {
|
129
129
|
header: a(() => [
|
130
|
-
|
130
|
+
R
|
131
131
|
]),
|
132
132
|
content: a(() => [
|
133
133
|
(t(!0), m(h, null, p(v.deliveryOptions, (e, i) => (t(), g(f, {
|
@@ -141,14 +141,14 @@ const B = { class: "pd-medium bg-grey radius-big" }, D = { class: "mn-small" },
|
|
141
141
|
]),
|
142
142
|
_: 1
|
143
143
|
}),
|
144
|
-
|
144
|
+
S,
|
145
145
|
l("button", {
|
146
|
-
onClick:
|
146
|
+
onClick: E,
|
147
147
|
class: "bg-main w-100 button"
|
148
148
|
}, c(s(n)("filters.reset")), 1)
|
149
149
|
]));
|
150
150
|
}
|
151
151
|
};
|
152
152
|
export {
|
153
|
-
|
153
|
+
K as default
|
154
154
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const d=require("../../../organizations/components/blocks/EmptyState.vue.cjs"),p=require("../blocks/CardSpot.vue.cjs"),c=require("../../store/spots.cjs"),m=require("../../../auth/store/auth.cjs"),g={__name:"Feed",props:{organization:Object,units:Array,memberships:Array},async setup(r){let u
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const d=require("../../../organizations/components/blocks/EmptyState.vue.cjs"),p=require("../blocks/CardSpot.vue.cjs"),c=require("../../store/spots.cjs"),m=require("../../../auth/store/auth.cjs"),g={__name:"Feed",props:{organization:Object,units:Array,memberships:Array},async setup(r){let l,u;const s=r;e.ref("spots"),[l,u]=e.withAsyncContext(()=>c.actions.read(s.organization._id)),await l,u();const a=e.computed(()=>{const o=c.state.spots,n=o.flatMap(t=>t.subspots.map(i=>i._id));return o.filter(t=>!n.includes(t._id))});return(o,n)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[a.value.length<1?(e.openBlock(),e.createBlock(d.default,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>o.$router.push(`/spots/${s.organization._id}/spots/create`)},null,8,["callback"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(t,i)=>(e.openBlock(),e.createBlock(p.default,{key:i,spot:t,organization:r.organization,class:"radius-big bg-grey mn-thin"},null,8,["spot","organization"]))),128)),a.value.length>0&&m.state.user._id===r.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[0]||(n[0]=t=>o.$router.push(`/spots/${s.organization._id}/spots/create`)),class:"mn-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}};exports.default=g;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { ref as g, withAsyncContext as
|
1
|
+
import { ref as g, withAsyncContext as f, computed as b, openBlock as o, createBlock as l, Transition as y, withCtx as _, createElementVNode as d, createCommentVNode as c, createElementBlock as m, Fragment as h, renderList as k } from "vue";
|
2
2
|
import "../../../../components/Tab/Tab.vue.js";
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import { actions as
|
6
|
-
import { state as
|
7
|
-
const
|
3
|
+
import v from "../../../organizations/components/blocks/EmptyState.vue.js";
|
4
|
+
import z from "../blocks/CardSpot.vue.js";
|
5
|
+
import { actions as $, state as A } from "../../store/spots.js";
|
6
|
+
import { state as w } from "../../../auth/store/auth.js";
|
7
|
+
const N = {
|
8
8
|
__name: "Feed",
|
9
9
|
props: {
|
10
10
|
organization: Object,
|
@@ -12,39 +12,39 @@ const S = {
|
|
12
12
|
memberships: Array
|
13
13
|
},
|
14
14
|
async setup(r) {
|
15
|
-
let
|
15
|
+
let p, u;
|
16
16
|
const s = r;
|
17
|
-
g("spots"), [
|
18
|
-
const a =
|
19
|
-
const e =
|
17
|
+
g("spots"), [p, u] = f(() => $.read(s.organization._id)), await p, u();
|
18
|
+
const a = b(() => {
|
19
|
+
const e = A.spots, n = e.flatMap(
|
20
20
|
(t) => t.subspots.map((i) => i._id)
|
21
21
|
);
|
22
22
|
return e.filter(
|
23
23
|
(t) => !n.includes(t._id)
|
24
24
|
);
|
25
25
|
});
|
26
|
-
return (e, n) => (o(),
|
27
|
-
default:
|
28
|
-
|
29
|
-
|
26
|
+
return (e, n) => (o(), l(y, { name: "slide-fade" }, {
|
27
|
+
default: _(() => [
|
28
|
+
d("div", null, [
|
29
|
+
a.value.length < 1 ? (o(), l(v, {
|
30
30
|
key: 0,
|
31
31
|
title: "You don't have any spots yet.",
|
32
32
|
description: "Add spots to your hub.",
|
33
33
|
action: "Add spot",
|
34
34
|
callback: () => e.$router.push(`/spots/${s.organization._id}/spots/create`)
|
35
|
-
}, null, 8, ["callback"])) :
|
36
|
-
|
37
|
-
(o(!0),
|
35
|
+
}, null, 8, ["callback"])) : c("", !0),
|
36
|
+
d("div", null, [
|
37
|
+
(o(!0), m(h, null, k(a.value, (t, i) => (o(), l(z, {
|
38
38
|
key: i,
|
39
39
|
spot: t,
|
40
40
|
organization: r.organization,
|
41
41
|
class: "radius-big bg-grey mn-thin"
|
42
42
|
}, null, 8, ["spot", "organization"]))), 128)),
|
43
|
-
|
43
|
+
a.value.length > 0 && w.user._id === r.organization.owner ? (o(), m("button", {
|
44
44
|
key: 0,
|
45
45
|
onClick: n[0] || (n[0] = (t) => e.$router.push(`/spots/${s.organization._id}/spots/create`)),
|
46
46
|
class: "mn-thin button w-100"
|
47
|
-
}, " Add spot ")) :
|
47
|
+
}, " Add spot ")) : c("", !0)
|
48
48
|
])
|
49
49
|
])
|
50
50
|
]),
|
@@ -53,5 +53,5 @@ const S = {
|
|
53
53
|
}
|
54
54
|
};
|
55
55
|
export {
|
56
|
-
|
56
|
+
N as default
|
57
57
|
};
|