@ozdao/prometheus-framework 0.2.51 → 0.2.52
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main-482dc398.mjs +13626 -0
- package/dist/main-b2JI9sFg.js +91 -0
- package/dist/main-c56d4c09.js +91 -0
- package/dist/main-x-9D8zvb.mjs +13604 -0
- package/dist/main.css +1 -1
- package/dist/organizations.server.js +2 -2
- package/dist/organizations.server.mjs +2 -2
- package/dist/products.server.js +20 -7
- package/dist/products.server.mjs +20 -7
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +223 -2
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +2 -225
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +19 -19
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +76 -2
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +2 -76
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +2 -2
- package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Map/Map.vue.js +35 -2
- package/dist/prometheus-framework/src/components/Map/Map.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Map/Map.vue2.js +2 -35
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +44 -2
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +2 -44
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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/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/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +1 -1
- 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 +2 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +37 -0
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconShopcart.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconShopcart.vue.js +21 -14
- package/dist/prometheus-framework/src/modules/icons/navigation/IconSearch.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconSearch.vue.js +24 -0
- 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 +3 -3
- 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 +2 -11
- 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 +11 -2
- 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 +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +49 -101
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +25 -25
- 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 +68 -39
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.js +38 -48
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +69 -62
- 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 +134 -129
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +117 -146
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +13 -13
- 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/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +44 -44
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
- 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 +64 -51
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +22 -23
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.js +23 -23
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
- 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 +3 -3
- 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 +3 -3
- 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 +1 -1
- 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-6dcbb74b.mjs +55 -0
- package/dist/web-caJAdsxy.js +1 -0
- package/dist/web-ee302c1d.js +1 -0
- package/dist/web-i08OVMw9.mjs +55 -0
- package/package.json +1 -1
- package/src/components/Button/Button.vue +3 -3
- package/src/components/Feed/Feed.vue +2 -1
- package/src/components/LocationMarker/LocationMarker.vue +1 -0
- package/src/modules/applications/applications.client.js +0 -1
- package/src/modules/globals/components/blocks/BlockSearch.vue +42 -0
- package/src/modules/icons/entities/IconProfile.vue +10 -1
- package/src/modules/icons/entities/IconShopcart.vue +12 -2
- package/src/modules/marketplace/components/layouts/Marketplace.vue +7 -14
- package/src/modules/mobile/components/NavigationBar/NavigationBar.vue +27 -7
- package/src/modules/orders/components/partials/ShopCart.vue +4 -1
- package/src/modules/organizations/components/blocks/CardDepartment.vue +34 -66
- package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +50 -13
- package/src/modules/organizations/components/blocks/User.vue +18 -9
- package/src/modules/organizations/components/pages/Department.vue +19 -3
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +14 -10
- package/src/modules/organizations/components/pages/Organization.vue +38 -71
- package/src/modules/organizations/components/sections/Feed.vue +1 -1
- package/src/modules/organizations/controllers/memberships.controller.js +2 -2
- package/src/modules/organizations/controllers/organizations.controller.js +0 -1
- package/src/modules/products/components/pages/EditLeftover.vue +6 -4
- package/src/modules/products/components/pages/Products.vue +58 -38
- package/src/modules/products/components/sections/FilterProducts.vue +5 -5
- package/src/modules/products/controllers/leftovers.controller.js +12 -5
- package/src/modules/products/controllers/products.controller.js +18 -0
- package/src/modules/products/store/products.js +4 -0
package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js
CHANGED
@@ -1,126 +1,97 @@
|
|
1
|
-
import { ref as
|
2
|
-
import { useRouter as
|
1
|
+
import { ref as h, onMounted as N, watch as O, resolveComponent as B, openBlock as r, createElementBlock as d, createVNode as t, unref as s, withCtx as a, Fragment as k, renderList as w, createBlock as l, createElementVNode as M, Transition as c, createCommentVNode as m, createTextVNode as g } from "vue";
|
2
|
+
import { useRouter as V, useRoute as q } from "vue-router";
|
3
3
|
import "vue-i18n";
|
4
4
|
import "../../../globals/localization/vue-i18n.js";
|
5
5
|
import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import
|
10
|
-
import
|
6
|
+
import P from "../../../../components/Tab/Tab.vue.js";
|
7
|
+
import $ from "../../../../components/Block/Block.vue.js";
|
8
|
+
import z from "../../../../components/Feed/Feed.vue.js";
|
9
|
+
import "../../../mobile/components/Menu/Menu.vue.js";
|
10
|
+
import "../../../mobile/components/Menu/MenuItem.vue.js";
|
11
11
|
import "../blocks/DepartmentSub.vue2.js";
|
12
|
-
import
|
13
|
-
import
|
14
|
-
import
|
15
|
-
import
|
16
|
-
import
|
17
|
-
import
|
18
|
-
import
|
19
|
-
import { state as
|
20
|
-
import { actions as
|
21
|
-
import { actions as
|
22
|
-
import { actions as
|
23
|
-
import { actions as
|
12
|
+
import "../blocks/User.vue2.js";
|
13
|
+
import A from "../blocks/CardDepartment.vue.js";
|
14
|
+
import D from "../../../events/components/sections/Feed.vue.js";
|
15
|
+
import E from "../../../community/components/sections/Feed.vue.js";
|
16
|
+
import F from "../../../spots/components/blocks/CardSpot.vue.js";
|
17
|
+
import S from "../sections/DetailsTab.vue.js";
|
18
|
+
import L from "../../../products/components/pages/Products.vue.js";
|
19
|
+
import { state as i } from "../../../auth/store/auth.js";
|
20
|
+
import { actions as R, state as u } from "../../store/organizations.js";
|
21
|
+
import { actions as T } from "../../store/memberships.js";
|
22
|
+
import { actions as G } from "../../store/departments.js";
|
23
|
+
import { actions as I } from "../../../spots/store/spots.js";
|
24
24
|
import "./Organization.vue2.js";
|
25
|
-
const
|
25
|
+
const U = {
|
26
26
|
key: 0,
|
27
27
|
class: "pd-thin for-transition w-100"
|
28
|
-
},
|
28
|
+
}, j = { class: "pos-relative" }, H = { key: 0 }, ge = {
|
29
29
|
__name: "Organization",
|
30
|
-
setup(
|
31
|
-
const
|
32
|
-
let
|
33
|
-
const
|
34
|
-
|
35
|
-
|
30
|
+
setup(J) {
|
31
|
+
const C = V(), e = q();
|
32
|
+
let x = e.query.tab ? e.query.tab : "products";
|
33
|
+
const y = h(null);
|
34
|
+
N(async () => {
|
35
|
+
y.value = await R.read({
|
36
36
|
_id: e.params._id,
|
37
|
-
user:
|
38
|
-
}), await
|
37
|
+
user: i.user._id
|
38
|
+
}), await T.read(e.params._id);
|
39
39
|
});
|
40
|
-
const
|
41
|
-
return e.query.tab =
|
42
|
-
|
43
|
-
}), (_,
|
44
|
-
const
|
45
|
-
return
|
46
|
-
t(
|
47
|
-
organization:
|
48
|
-
user:
|
40
|
+
const o = h(x);
|
41
|
+
return e.query.tab = o.value, O(o, (_) => {
|
42
|
+
C.replace({ query: null });
|
43
|
+
}), (_, p) => {
|
44
|
+
const f = B("router-link");
|
45
|
+
return y.value ? (r(), d("div", U, [
|
46
|
+
t(S, {
|
47
|
+
organization: u.current,
|
48
|
+
user: i.user,
|
49
49
|
class: "mn-b-semi"
|
50
50
|
}, null, 8, ["organization", "user"]),
|
51
|
-
t(
|
51
|
+
t($, {
|
52
|
+
title: `${u.current.numberOfMembers} members`,
|
53
|
+
actions: [{
|
54
|
+
label: ">",
|
55
|
+
function: () => _.$router.push(`/organizations/${s(e).params._id}/departments/create`)
|
56
|
+
}],
|
57
|
+
class: "mn-b-semi"
|
58
|
+
}, {
|
52
59
|
default: a(() => [
|
53
|
-
t(
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
60
|
+
t(z, {
|
61
|
+
states: {
|
62
|
+
empty: {
|
63
|
+
title: "No Departments Found",
|
64
|
+
description: "Currently, there are no departments available."
|
58
65
|
}
|
59
|
-
}
|
60
|
-
|
61
|
-
|
66
|
+
},
|
67
|
+
store: {
|
68
|
+
read: (n) => G.read(s(e).params._id),
|
69
|
+
state: null
|
70
|
+
},
|
71
|
+
options: {
|
72
|
+
user: i.user._id,
|
73
|
+
sort: "numberOfMemberships",
|
74
|
+
limit: 10
|
75
|
+
}
|
62
76
|
}, {
|
63
|
-
default: a((
|
64
|
-
|
77
|
+
default: a(({
|
78
|
+
items: n
|
79
|
+
}) => [
|
80
|
+
(r(!0), d(k, null, w(n, (b, v) => (r(), l(A, {
|
81
|
+
key: v,
|
82
|
+
department: b,
|
83
|
+
organization: s(e).params._id,
|
84
|
+
class: "radius-big bg-white pos-relative mn-b-thin"
|
85
|
+
}, null, 8, ["department", "organization"]))), 128))
|
65
86
|
]),
|
66
87
|
_: 1
|
67
|
-
})
|
88
|
+
}, 8, ["states", "store", "options"])
|
68
89
|
]),
|
69
90
|
_: 1
|
70
|
-
}),
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
actions: [{
|
75
|
-
label: "+",
|
76
|
-
function: () => _.$router.push(`/organizations/${o(e).params._id}/departments/create`)
|
77
|
-
}]
|
78
|
-
}, {
|
79
|
-
default: a(() => [
|
80
|
-
t(x, {
|
81
|
-
states: {
|
82
|
-
empty: {
|
83
|
-
title: "No Departments Found",
|
84
|
-
description: "Currently, there are no departments available."
|
85
|
-
}
|
86
|
-
},
|
87
|
-
store: {
|
88
|
-
read: (s) => H.read(o(e).params._id),
|
89
|
-
state: null
|
90
|
-
},
|
91
|
-
options: {
|
92
|
-
user: u.user._id,
|
93
|
-
sort: "numberOfMemberships",
|
94
|
-
limit: 10
|
95
|
-
}
|
96
|
-
}, {
|
97
|
-
default: a(({
|
98
|
-
items: s
|
99
|
-
}) => [
|
100
|
-
(r(!0), p(y, null, h(s, (c, v) => (r(), m(F, {
|
101
|
-
key: v,
|
102
|
-
department: c,
|
103
|
-
organization: o(e).params._id,
|
104
|
-
class: "radius-big bg-white pos-relative mn-b-thin"
|
105
|
-
}, null, 8, ["department", "organization"]))), 128))
|
106
|
-
]),
|
107
|
-
_: 1
|
108
|
-
}, 8, ["states", "store", "options"])
|
109
|
-
]),
|
110
|
-
_: 1
|
111
|
-
}, 8, ["actions"]),
|
112
|
-
f("div", null, [
|
113
|
-
(r(!0), p(y, null, h(i.current.memberships, (s, c) => (r(), m(E, {
|
114
|
-
key: c,
|
115
|
-
user: s,
|
116
|
-
position: s.position,
|
117
|
-
class: "bg-grey radius-small flex-nowrap flex pd-medium"
|
118
|
-
}, null, 8, ["user", "position"]))), 128))
|
119
|
-
])
|
120
|
-
]),
|
121
|
-
t(S, {
|
122
|
-
selected: n.value,
|
123
|
-
"onUpdate:selected": d[1] || (d[1] = (s) => n.value = s),
|
91
|
+
}, 8, ["title", "actions"]),
|
92
|
+
t(P, {
|
93
|
+
selected: o.value,
|
94
|
+
"onUpdate:selected": p[0] || (p[0] = (n) => o.value = n),
|
124
95
|
tabs: [
|
125
96
|
{ name: "Community", value: "community" },
|
126
97
|
{ name: "Menu", value: "products" },
|
@@ -129,92 +100,92 @@ const K = {
|
|
129
100
|
],
|
130
101
|
class: "mn-b-small o-hidden h5 radius-big bg-grey"
|
131
102
|
}, null, 8, ["selected"]),
|
132
|
-
|
133
|
-
t(
|
103
|
+
M("div", j, [
|
104
|
+
t(c, { name: "slide-fade" }, {
|
134
105
|
default: a(() => [
|
135
|
-
|
106
|
+
o.value === "community" ? (r(), l(E, {
|
136
107
|
key: 0,
|
137
|
-
user:
|
138
|
-
owner:
|
139
|
-
}, null, 8, ["user", "owner"])) :
|
108
|
+
user: i.user._id,
|
109
|
+
owner: s(e).params._id
|
110
|
+
}, null, 8, ["user", "owner"])) : m("", !0)
|
140
111
|
]),
|
141
112
|
_: 1
|
142
113
|
}),
|
143
|
-
t(
|
114
|
+
t(c, { name: "slide-fade" }, {
|
144
115
|
default: a(() => [
|
145
|
-
|
116
|
+
o.value === "events" ? (r(), l(D, {
|
146
117
|
key: 0,
|
147
|
-
user:
|
148
|
-
owner:
|
118
|
+
user: i.user._id,
|
119
|
+
owner: s(e).params._id,
|
149
120
|
sortOrder: "desc",
|
150
121
|
sortParam: "date.start"
|
151
|
-
}, null, 8, ["user", "owner", "sortParam"])) :
|
122
|
+
}, null, 8, ["user", "owner", "sortParam"])) : m("", !0)
|
152
123
|
]),
|
153
124
|
_: 1
|
154
125
|
}),
|
155
|
-
|
126
|
+
o.value === "products" && i.user._id === u.current.owner ? (r(), l($, {
|
156
127
|
key: 0,
|
157
128
|
class: "flex-nowrap gap-thin mn-b-small flex"
|
158
129
|
}, {
|
159
130
|
default: a(() => [
|
160
|
-
t(
|
131
|
+
t(f, {
|
161
132
|
class: "bg-black t-white uppercase t-semi pd-thin radius-extra",
|
162
133
|
to: {
|
163
134
|
name: "ProductAdd",
|
164
135
|
params: {
|
165
|
-
_id:
|
136
|
+
_id: s(e).params._id
|
166
137
|
}
|
167
138
|
}
|
168
139
|
}, {
|
169
140
|
default: a(() => [
|
170
|
-
|
141
|
+
g(" Add Product ")
|
171
142
|
]),
|
172
143
|
_: 1
|
173
144
|
}, 8, ["to"]),
|
174
|
-
t(
|
145
|
+
t(f, {
|
175
146
|
class: "uppercase t-semi pd-thin radius-extra",
|
176
147
|
to: {
|
177
148
|
name: "Leftovers",
|
178
149
|
params: {
|
179
|
-
_id:
|
150
|
+
_id: s(e).params._id
|
180
151
|
}
|
181
152
|
}
|
182
153
|
}, {
|
183
154
|
default: a(() => [
|
184
|
-
|
155
|
+
g(" Change Invetory ")
|
185
156
|
]),
|
186
157
|
_: 1
|
187
158
|
}, 8, ["to"]),
|
188
|
-
t(
|
159
|
+
t(f, {
|
189
160
|
class: "d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",
|
190
161
|
to: {
|
191
162
|
name: "Backoffice",
|
192
163
|
params: {
|
193
|
-
_id:
|
164
|
+
_id: s(e).params._id
|
194
165
|
}
|
195
166
|
}
|
196
167
|
}, {
|
197
168
|
default: a(() => [
|
198
|
-
|
169
|
+
g(" Go to Backoffice ")
|
199
170
|
]),
|
200
171
|
_: 1
|
201
172
|
}, 8, ["to"])
|
202
173
|
]),
|
203
174
|
_: 1
|
204
|
-
})) :
|
205
|
-
t(
|
175
|
+
})) : m("", !0),
|
176
|
+
t(c, { name: "slide-fade" }, {
|
206
177
|
default: a(() => [
|
207
|
-
|
178
|
+
o.value === "products" ? (r(), l(L, {
|
208
179
|
key: 0,
|
209
|
-
organization:
|
210
|
-
}, null, 8, ["organization"])) :
|
180
|
+
organization: u.current
|
181
|
+
}, null, 8, ["organization"])) : m("", !0)
|
211
182
|
]),
|
212
183
|
_: 1
|
213
184
|
}),
|
214
|
-
t(
|
185
|
+
t(c, { name: "slide-fade" }, {
|
215
186
|
default: a(() => [
|
216
|
-
|
217
|
-
t(
|
187
|
+
o.value === "spots" ? (r(), d("div", H, [
|
188
|
+
t(z, {
|
218
189
|
states: {
|
219
190
|
empty: {
|
220
191
|
title: "No Spots Found",
|
@@ -222,42 +193,42 @@ const K = {
|
|
222
193
|
}
|
223
194
|
},
|
224
195
|
store: {
|
225
|
-
read: (
|
226
|
-
state:
|
196
|
+
read: (n) => I.read(s(e).params._id),
|
197
|
+
state: u
|
227
198
|
},
|
228
199
|
options: {
|
229
|
-
user:
|
200
|
+
user: i.user._id,
|
230
201
|
sort: "numberOfMemberships",
|
231
202
|
contain: ["blogposts"],
|
232
203
|
limit: 10
|
233
204
|
}
|
234
205
|
}, {
|
235
206
|
default: a(({
|
236
|
-
items:
|
207
|
+
items: n
|
237
208
|
}) => [
|
238
|
-
(r(!0),
|
209
|
+
(r(!0), d(k, null, w(n, (b, v) => (r(), l(F, {
|
239
210
|
key: v,
|
240
|
-
spot:
|
241
|
-
organization:
|
211
|
+
spot: b,
|
212
|
+
organization: u.current,
|
242
213
|
class: "radius-big bg-grey mn-b-thin"
|
243
214
|
}, null, 8, ["spot", "organization"]))), 128))
|
244
215
|
]),
|
245
216
|
_: 1
|
246
217
|
}, 8, ["states", "store", "options"]),
|
247
|
-
|
218
|
+
i.user._id === u.current.owner ? (r(), d("button", {
|
248
219
|
key: 0,
|
249
|
-
onClick:
|
220
|
+
onClick: p[1] || (p[1] = (n) => _.$router.push(`/spots/${u.current._id}/spots/create`)),
|
250
221
|
class: "mn-b-thin button w-100"
|
251
|
-
}, " Add spot ")) :
|
252
|
-
])) :
|
222
|
+
}, " Add spot ")) : m("", !0)
|
223
|
+
])) : m("", !0)
|
253
224
|
]),
|
254
225
|
_: 1
|
255
226
|
})
|
256
227
|
])
|
257
|
-
])) :
|
228
|
+
])) : m("", !0);
|
258
229
|
};
|
259
230
|
}
|
260
231
|
};
|
261
232
|
export {
|
262
|
-
|
233
|
+
ge as default
|
263
234
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),n=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const p=require("../../../../components/FieldTags/BlockTags.vue.cjs");require("../../../../components/Tab/Tab.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),n=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const p=require("../../../../components/FieldTags/BlockTags.vue.cjs");require("../../../../components/Tab/Tab.vue2.cjs");const l=require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue.cjs");const f=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),g=require("../../../../components/UploadImage/UploadImage.vue.cjs"),b=require("../../../../components/Button/Button.vue.cjs");require("../../../../components/Popup/Popup.vue.cjs");const h=require("../../../auth/store/auth.cjs"),e=require("../../store/organizations.cjs");require("../../store/memberships.cjs");const y={class:"for-transition pd-thin"},V=t.createElementVNode("h3",{class:"mn-b-small"},"Type of group",-1),N=t.createElementVNode("p",{class:"mn-b-thin"},"Public groups are open to everyone, whereas in exclusive groups only members can post. If you wish to make a group private, select 'hidden'.",-1),_=t.createElementVNode("h3",{class:"mn-b-small"},"Profile",-1),q={class:"mn-b-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},v=t.createElementVNode("h4",null,"Upload photo",-1),w=t.createElementVNode("h3",{class:"mn-b-small"},"Socials",-1),x=t.createElementVNode("p",{class:"mn-b-thin"},"Please provide only the username for social media profiles, without full links.",-1),U={__name:"OrganizationEdit",async setup(T){let o,i;const s=n.useRoute(),d=n.useRouter();e.actions.reset(),s.params._id&&([o,i]=t.withAsyncContext(()=>e.actions.read({_id:s.params._id})),await o,i());const u=t.computed(()=>e.state.current);async function c(){s.params._id?await e.actions.update(s.params._id,u.value):await e.actions.create(e.state.current,h.state.user._id)}function m(){d.replace({name:"Organization",params:{_id:e.state.current._id}})}return(k,a)=>(t.openBlock(),t.createElementBlock("div",y,[V,N,t.createVNode(f.default,{modelValue:e.state.current.types,"onUpdate:modelValue":a[0]||(a[0]=r=>e.state.current.types=r),options:["public","exclusive","hidden"],multiple:!1,taggable:!1,placeholder:"Type to search or add type of organization",class:"mn-b-semi bg-grey pd-medium radius-small"},null,8,["modelValue"]),_,t.createElementVNode("div",q,[t.createVNode(g.default,{photo:e.state.current.profile.photo,"onUpdate:photo":a[1]||(a[1]=r=>e.state.current.profile.photo=r),uploadPath:"organizations/"+e.state.current._id+"/avatars",class:"h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"},null,8,["photo","uploadPath"]),v]),t.createVNode(l.default,{field:e.state.current.profile.name,"onUpdate:field":a[2]||(a[2]=r=>e.state.current.profile.name=r),placeholder:"Name of organization",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.profile.description,"onUpdate:field":a[3]||(a[3]=r=>e.state.current.profile.description=r),placeholder:"Brief description of your group",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(p.default,{onTagsChanged:a[4]||(a[4]=r=>e.state.current.profile.tags=r),tags:e.state.current.profile.tags},null,8,["tags"]),w,x,t.createVNode(l.default,{field:e.state.current.socials.instagram,"onUpdate:field":a[5]||(a[5]=r=>e.state.current.socials.instagram=r),label:"Instagram",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.twitter,"onUpdate:field":a[6]||(a[6]=r=>e.state.current.socials.twitter=r),label:"Twitter",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.facebook,"onUpdate:field":a[7]||(a[7]=r=>e.state.current.socials.facebook=r),label:"Facebook",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.telegram,"onUpdate:field":a[8]||(a[8]=r=>e.state.current.socials.telegram=r),label:"Telegram",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(l.default,{field:e.state.current.socials.youtube,"onUpdate:field":a[9]||(a[9]=r=>e.state.current.socials.youtube=r),label:"Telegram",placeholder:"",class:"mn-b-thin bg-grey pd-medium radius-small"},null,8,["field"]),t.createVNode(b.default,{submit:c,callback:m,class:"bg-main w-100 mn-b-thin"},{default:t.withCtx(()=>[t.createTextVNode("Save")]),_:1})]))}};exports.default=U;
|
package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js
CHANGED
@@ -4,12 +4,12 @@ import "vue-i18n";
|
|
4
4
|
import "../../../globals/localization/vue-i18n.js";
|
5
5
|
import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
|
6
6
|
import v from "../../../../components/FieldTags/BlockTags.vue.js";
|
7
|
-
import "../../../../components/Tab/Tab.
|
8
|
-
import i from "../../../../components/Field/Field.
|
7
|
+
import "../../../../components/Tab/Tab.vue2.js";
|
8
|
+
import i from "../../../../components/Field/Field.vue.js";
|
9
9
|
import "../../../../components/Select/Select.vue.js";
|
10
10
|
import U from "../../../../components/SelectMulti/SelectMulti.vue.js";
|
11
11
|
import k from "../../../../components/UploadImage/UploadImage.vue.js";
|
12
|
-
import T from "../../../../components/Button/Button.
|
12
|
+
import T from "../../../../components/Button/Button.vue.js";
|
13
13
|
import "../../../../components/Popup/Popup.vue.js";
|
14
14
|
import { state as z } from "../../../auth/store/auth.js";
|
15
15
|
import { actions as s, state as e } from "../../store/organizations.js";
|
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.
|
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
@@ -1,10 +1,10 @@
|
|
1
1
|
import { ref as r, watchEffect as y, resolveComponent as P, openBlock as t, createElementBlock as s, createElementVNode as o, Fragment as i, renderList as d, unref as _, toDisplayString as f, createVNode as h, withCtx as k, pushScopeId as w, popScopeId as C } from "vue";
|
2
2
|
import { useRouter as I, useRoute as g } from "vue-router";
|
3
|
-
import D from "../../../../components/Field/Field.
|
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
6
|
import "../../../../components/Popup/Popup.vue.js";
|
7
|
-
import "../../../../components/Button/Button.
|
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 = {
|
10
10
|
__name: "Documents",
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const g=require("../../../../components/EmptyState/EmptyState.vue.cjs"),m=require("../blocks/CardOrganization.vue.cjs"),p=require("../../../icons/skeletons/SkeletonOrganization.vue.cjs"),c=require("../../store/organizations.cjs"),f={class:"pos-relative"},y={__name:"Feed",props:{category:{type:String,default:null},selectedDate:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},member:{type:[String,Number],default:null},subscriber:{type:[String,Number],default:null},sortOrder:{type:String,default:"desc"},participant:{type:String,default:null},period:{type:String,default:null},status:{type:String,default:null}},setup(s){const t=s,r=e.ref([]),n=e.ref(!1),o=e.ref(!0),i=e.ref(0),u=e.ref(20),d=async()=>{if(n.value){i.value+=u.value;const a=await c.actions.read({skip:i.value,limit:u.value,category:t.category,sortOrder:t.sortOrder,member:t.member,subscriber:t.subscriber,onlyuser:t.onlyuser,user:t.user,date:t.selectedDate,owner:t.owner,organization:t.organization,period:t.period,status:t.status});a.length===0?n.value=!1:n.value=!0,r.value=[...r.value,...a]}};return e.onMounted(async()=>{o.value=!0
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Loader/Loader.vue.cjs");const g=require("../../../../components/EmptyState/EmptyState.vue.cjs"),m=require("../blocks/CardOrganization.vue.cjs"),p=require("../../../icons/skeletons/SkeletonOrganization.vue.cjs"),c=require("../../store/organizations.cjs"),f={class:"pos-relative"},y={__name:"Feed",props:{category:{type:String,default:null},selectedDate:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},member:{type:[String,Number],default:null},subscriber:{type:[String,Number],default:null},sortOrder:{type:String,default:"desc"},participant:{type:String,default:null},period:{type:String,default:null},status:{type:String,default:null}},setup(s){const t=s,r=e.ref([]),n=e.ref(!1),o=e.ref(!0),i=e.ref(0),u=e.ref(20),d=async()=>{if(n.value){i.value+=u.value;const a=await c.actions.read({skip:i.value,limit:u.value,category:t.category,sortOrder:t.sortOrder,member:t.member,subscriber:t.subscriber,onlyuser:t.onlyuser,user:t.user,date:t.selectedDate,owner:t.owner,organization:t.organization,period:t.period,status:t.status});a.length===0?n.value=!1:n.value=!0,r.value=[...r.value,...a]}};return e.onMounted(async()=>{o.value=!0;const a=await c.actions.read({skip:i.value,limit:u.value,category:t.category,member:t.member,subscriber:t.subscriber,onlyuser:t.onlyuser,sortOrder:t.sortOrder,user:t.user,owner:t.owner,date:t.selectedDate,organization:t.organization,period:t.period,status:t.status});a.length===0?n.value=!1:n.value=!0,r.value=a,o.value=!1}),(a,b)=>(e.openBlock(),e.createElementBlock("section",f,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[o.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,l=>(e.openBlock(),e.createBlock(p.default,{key:l}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!o.value&&r.value.length<1?(e.openBlock(),e.createBlock(g.default,{key:0,title:"No Organizations Found",description:"Currently, there are no organizations available. Please check back later.",class:"pd-medium mn-b-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"cols-1"},{default:e.withCtx(()=>[!o.value&&r.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value,(l,v)=>(e.openBlock(),e.createBlock(m.default,{onClick:k=>a.$router.push({name:"Organization",params:{_id:l._id}}),key:l._id,organization:l,user:s.user,type:"normal",class:"w-100 radius-big mn-b-medium"},null,8,["onClick","organization","user"]))),128)):e.createCommentVNode("",!0),n.value&&r.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d,class:"w-100 bg-main button"},"Load more")):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=y;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ref as
|
1
|
+
import { ref as i, onMounted as h, openBlock as a, createElementBlock as o, createVNode as m, TransitionGroup as y, withCtx as g, Fragment as b, renderList as v, createBlock as p, createCommentVNode as d, Transition as z } from "vue";
|
2
2
|
import "../../../../components/Loader/Loader.vue.js";
|
3
3
|
import S from "../../../../components/EmptyState/EmptyState.vue.js";
|
4
4
|
import w from "../blocks/CardOrganization.vue.js";
|
@@ -53,12 +53,12 @@ const C = { class: "pos-relative" }, V = {
|
|
53
53
|
}
|
54
54
|
},
|
55
55
|
setup(f) {
|
56
|
-
const e = f, t =
|
56
|
+
const e = f, t = i([]), n = i(!1), l = i(!0), c = i(0), s = i(20), _ = async () => {
|
57
57
|
if (n.value) {
|
58
|
-
c.value +=
|
58
|
+
c.value += s.value;
|
59
59
|
const r = await k.read({
|
60
60
|
skip: c.value,
|
61
|
-
limit:
|
61
|
+
limit: s.value,
|
62
62
|
category: e.category,
|
63
63
|
sortOrder: e.sortOrder,
|
64
64
|
member: e.member,
|
@@ -75,10 +75,10 @@ const C = { class: "pos-relative" }, V = {
|
|
75
75
|
}
|
76
76
|
};
|
77
77
|
return h(async () => {
|
78
|
-
l.value = !0
|
78
|
+
l.value = !0;
|
79
79
|
const r = await k.read({
|
80
80
|
skip: c.value,
|
81
|
-
limit:
|
81
|
+
limit: s.value,
|
82
82
|
category: e.category,
|
83
83
|
member: e.member,
|
84
84
|
subscriber: e.subscriber,
|
@@ -92,14 +92,14 @@ const C = { class: "pos-relative" }, V = {
|
|
92
92
|
status: e.status
|
93
93
|
});
|
94
94
|
r.length === 0 ? n.value = !1 : n.value = !0, t.value = r, l.value = !1;
|
95
|
-
}), (r, N) => (a(),
|
95
|
+
}), (r, N) => (a(), o("section", C, [
|
96
96
|
m(y, {
|
97
97
|
tag: "ul",
|
98
98
|
name: "fade",
|
99
99
|
class: "o-hidden bg-grey radius-big"
|
100
100
|
}, {
|
101
101
|
default: g(() => [
|
102
|
-
l.value ? (a(!0),
|
102
|
+
l.value ? (a(!0), o(b, { key: 0 }, v(s.value, (u) => (a(), p(O, { key: u }))), 128)) : d("", !0)
|
103
103
|
]),
|
104
104
|
_: 1
|
105
105
|
}),
|
@@ -120,15 +120,15 @@ const C = { class: "pos-relative" }, V = {
|
|
120
120
|
class: "cols-1"
|
121
121
|
}, {
|
122
122
|
default: g(() => [
|
123
|
-
!l.value && t.value.length > 0 ? (a(!0),
|
124
|
-
onClick: (
|
125
|
-
key:
|
126
|
-
organization:
|
123
|
+
!l.value && t.value.length > 0 ? (a(!0), o(b, { key: 0 }, v(t.value, (u, L) => (a(), p(w, {
|
124
|
+
onClick: ($) => r.$router.push({ name: "Organization", params: { _id: u._id } }),
|
125
|
+
key: u._id,
|
126
|
+
organization: u,
|
127
127
|
user: f.user,
|
128
128
|
type: "normal",
|
129
129
|
class: "w-100 radius-big mn-b-medium"
|
130
130
|
}, null, 8, ["onClick", "organization", "user"]))), 128)) : d("", !0),
|
131
|
-
n.value && t.value.length > 0 ? (a(),
|
131
|
+
n.value && t.value.length > 0 ? (a(), o("button", {
|
132
132
|
key: 1,
|
133
133
|
onClick: _,
|
134
134
|
class: "w-100 bg-main button"
|
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.
|
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("../../../auth/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,7 +1,7 @@
|
|
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
|
-
import k from "../../../../components/Field/Field.
|
2
|
+
import k from "../../../../components/Field/Field.vue.js";
|
3
3
|
import x from "../../../../components/Select/Select.vue2.js";
|
4
|
-
import y from "../../../../components/Button/Button.
|
4
|
+
import y from "../../../../components/Button/Button.vue.js";
|
5
5
|
import "../../../middlewares/client/inputs.validation.js";
|
6
6
|
import { state as C, actions as U } from "../../../auth/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 = {
|
@@ -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;
|