@ozdao/prometheus-framework 0.2.48 → 0.2.50
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +27 -25
- package/dist/auth.server.mjs +27 -25
- package/dist/community.server.js +1 -1
- package/dist/community.server.mjs +1 -1
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/files.server.js +1 -1
- package/dist/files.server.mjs +1 -1
- package/dist/gallery.server.js +1 -1
- package/dist/gallery.server.mjs +1 -1
- package/dist/index-3981e903.mjs +217 -0
- package/dist/index-4eecfdb9.js +216 -0
- package/dist/main-203b36b6.mjs +13628 -0
- package/dist/main-_b1_i8mt.mjs +13606 -0
- package/dist/main-a7ae4ce5.js +91 -0
- package/dist/main-uiQFxEks.js +91 -0
- package/dist/middlewares.server.js +1 -1
- package/dist/middlewares.server.mjs +1 -1
- package/dist/node_modules/vue-select/dist/vue-select.es.cjs +1 -3
- package/dist/node_modules/vue-select/dist/vue-select.es.js +49 -645
- package/dist/organizations.server.js +13 -27
- package/dist/organizations.server.mjs +13 -27
- package/dist/products.server.js +95 -15
- package/dist/products.server.mjs +95 -15
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -225
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +225 -2
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +61 -2
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +2 -61
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +2 -76
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +76 -2
- 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/SelectMulti/SelectMulti.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue.js +6 -6
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +2 -44
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +44 -2
- 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 +44 -32
- 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/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +45 -44
- package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/invites.js +5 -5
- 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 +3 -3
- 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 +3 -3
- 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/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/globals/store/globals.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/store/globals.js +22 -21
- 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 +11 -2
- 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 +2 -11
- 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 +17 -17
- 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 +49 -42
- 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 +47 -15
- 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 +38 -37
- 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 +249 -61
- 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 +78 -45
- 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 +161 -86
- 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/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +52 -54
- 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 +20 -26
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +40 -46
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +34 -30
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +30 -28
- 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 +18 -18
- 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 +1 -1
- 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/Product.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +33 -28
- 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 +123 -113
- 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 +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +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/reports.server.js +1 -1
- package/dist/reports.server.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/web-7p76PGnO.mjs +55 -0
- package/dist/web-c63f0ecc.js +1 -0
- package/dist/web-d8173758.mjs +55 -0
- package/dist/web-dn8vgptQ.js +1 -0
- package/package.json +1 -1
- package/src/components/SelectMulti/SelectMulti.vue +1 -1
- package/src/modules/auth/components/pages/Invite.vue +17 -6
- package/src/modules/auth/controllers/auth.controller.js +24 -16
- package/src/modules/auth/controllers/invites.controller.js +17 -8
- package/src/modules/auth/store/auth.js +8 -1
- package/src/modules/auth/store/invites.js +1 -0
- package/src/modules/globals/store/globals.js +5 -1
- package/src/modules/landing/components/blocks/MapBlock.vue +37 -0
- package/src/modules/landing/components/pages/404.vue +3 -0
- package/src/modules/landing/components/pages/Governance.vue +155 -0
- package/src/modules/landing/components/pages/Home.vue +52 -0
- package/src/modules/landing/components/pages/Hotel.vue +54 -0
- package/src/modules/landing/components/pages/Page.vue +184 -0
- package/src/modules/landing/components/sections/AboutSection.vue +69 -0
- package/src/modules/landing/components/sections/Examples.vue +90 -0
- package/src/modules/landing/components/sections/FeatureSection.vue +80 -0
- package/src/modules/landing/components/sections/GiftSection.vue +63 -0
- package/src/modules/landing/components/sections/HeroSection.vue +74 -0
- package/src/modules/landing/components/sections/HowItWorksSection.vue +88 -0
- package/src/modules/landing/components/sections/HowToBuyWDR.vue +131 -0
- package/src/modules/landing/components/sections/InstagramSection.vue +181 -0
- package/src/modules/landing/components/sections/MapSection.vue +91 -0
- package/src/modules/landing/components/sections/SectionsSection.vue +69 -0
- package/src/modules/landing/components/sections/SliderFeatures.vue +131 -0
- package/src/modules/landing/components/sections/WhatIsWDRSection.vue +116 -0
- package/src/modules/landing/router/landing.js +34 -0
- package/src/modules/middlewares/server/verifySignUp.js +4 -0
- package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
- package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +52 -44
- package/src/modules/organizations/components/blocks/User.vue +42 -10
- package/src/modules/organizations/components/pages/Department.vue +7 -6
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +110 -134
- package/src/modules/organizations/components/pages/Members.vue +85 -26
- package/src/modules/organizations/components/pages/Organization.vue +60 -4
- package/src/modules/organizations/components/sections/MembersAdd.vue +27 -34
- package/src/modules/organizations/components/sections/Organizations.vue +0 -1
- package/src/modules/organizations/controllers/memberships.controller.js +6 -2
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/models/department.model.js +0 -19
- package/src/modules/organizations/models/membership.model.js +4 -0
- package/src/modules/organizations/organizations.client.js +1 -6
- package/src/modules/organizations/store/departments.js +48 -44
- package/src/modules/organizations/store/memberships.js +11 -3
- package/src/modules/products/components/blocks/CardPosition.vue +2 -2
- package/src/modules/products/components/pages/Product.vue +6 -1
- package/src/modules/products/components/pages/ProductEdit.vue +48 -28
- package/src/modules/products/controllers/products.controller.js +87 -24
- package/src/modules/products/models/product.model.js +16 -1
- package/src/modules/products/store/products.js +1 -1
- package/src/modules/users/components/pages/ProfileOrganizations.vue +41 -7
- package/src/modules/organizations/components/sections/FeedDepartments.vue +0 -64
- package/src/modules/organizations/components/sections/MembersList.vue +0 -85
- package/src/modules/organizations/store/invites.js +0 -93
package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js
CHANGED
@@ -1,52 +1,127 @@
|
|
1
|
-
import { ref as
|
2
|
-
import { useRouter as
|
1
|
+
import { ref as z, onMounted as M, watch as N, resolveComponent as q, openBlock as a, createElementBlock as p, createVNode as t, withCtx as s, unref as o, createElementVNode as b, toDisplayString as B, Fragment as y, renderList as h, createBlock as m, Transition as g, createCommentVNode as l, createTextVNode as k } from "vue";
|
2
|
+
import { useRouter as D, useRoute as P } 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 "../../../mobile/components/Menu/Menu.vue.js";
|
10
|
-
import "../../../mobile/components/Menu/MenuItem.vue.js";
|
11
|
-
import
|
12
|
-
import
|
13
|
-
import
|
14
|
-
import
|
15
|
-
import
|
16
|
-
import
|
17
|
-
import
|
18
|
-
import
|
19
|
-
import {
|
6
|
+
import S from "../../../../components/Tab/Tab.vue2.js";
|
7
|
+
import C from "../../../../components/Block/Block.vue.js";
|
8
|
+
import x from "../../../../components/Feed/Feed.vue.js";
|
9
|
+
import V from "../../../mobile/components/Menu/Menu.vue.js";
|
10
|
+
import A from "../../../mobile/components/Menu/MenuItem.vue.js";
|
11
|
+
import "../blocks/DepartmentSub.vue2.js";
|
12
|
+
import E from "../blocks/User.vue.js";
|
13
|
+
import F from "../blocks/CardDepartment.vue.js";
|
14
|
+
import L from "../../../events/components/sections/Feed.vue.js";
|
15
|
+
import R from "../../../community/components/sections/Feed.vue.js";
|
16
|
+
import T from "../../../spots/components/blocks/CardSpot.vue.js";
|
17
|
+
import U from "../sections/DetailsTab.vue.js";
|
18
|
+
import G from "../../../products/components/pages/Products.vue.js";
|
19
|
+
import { state as u } from "../../../auth/store/auth.js";
|
20
|
+
import { actions as I, state as i } from "../../store/organizations.js";
|
21
|
+
import { actions as j } from "../../store/memberships.js";
|
22
|
+
import { actions as H } from "../../store/departments.js";
|
23
|
+
import { actions as J } from "../../../spots/store/spots.js";
|
20
24
|
import "./Organization.vue2.js";
|
21
|
-
const
|
25
|
+
const K = {
|
22
26
|
key: 0,
|
23
27
|
class: "pd-thin for-transition w-100"
|
24
|
-
},
|
28
|
+
}, Q = { class: "cols-2 pd-medium bg-grey radius-bg" }, W = { class: "pos-relative" }, X = { key: 0 }, we = {
|
25
29
|
__name: "Organization",
|
26
|
-
setup(
|
27
|
-
const
|
28
|
-
let
|
29
|
-
const
|
30
|
-
|
31
|
-
|
30
|
+
setup(Y) {
|
31
|
+
const $ = D(), e = P();
|
32
|
+
let O = e.query.tab ? e.query.tab : "products";
|
33
|
+
const w = z(null);
|
34
|
+
M(async () => {
|
35
|
+
w.value = await I.read({
|
32
36
|
_id: e.params._id,
|
33
|
-
user:
|
34
|
-
}), await
|
37
|
+
user: u.user._id
|
38
|
+
}), await j.read(e.params._id);
|
35
39
|
});
|
36
|
-
const
|
37
|
-
return e.query.tab =
|
38
|
-
|
39
|
-
}), (
|
40
|
-
const
|
41
|
-
return
|
42
|
-
t(
|
40
|
+
const n = z(O);
|
41
|
+
return e.query.tab = n.value, N(n, (c) => {
|
42
|
+
$.replace({ query: { ...e.query, tab: c } });
|
43
|
+
}), (c, d) => {
|
44
|
+
const v = q("router-link");
|
45
|
+
return w.value ? (a(), p("div", K, [
|
46
|
+
t(U, {
|
43
47
|
organization: i.current,
|
44
|
-
user:
|
48
|
+
user: u.user,
|
45
49
|
class: "mn-b-semi"
|
46
50
|
}, null, 8, ["organization", "user"]),
|
47
|
-
t(
|
48
|
-
|
49
|
-
|
51
|
+
t(V, { class: "mn-b-regular bg-grey" }, {
|
52
|
+
default: s(() => [
|
53
|
+
t(A, {
|
54
|
+
onClick: d[0] || (d[0] = (r) => o($).push({
|
55
|
+
name: "Organization Members",
|
56
|
+
params: {
|
57
|
+
_id: o(e).params._id
|
58
|
+
}
|
59
|
+
})),
|
60
|
+
class: "cursor-pointer",
|
61
|
+
theme: "black"
|
62
|
+
}, {
|
63
|
+
default: s(() => [
|
64
|
+
b("span", null, B(i.current.numberOfMembers) + " members ", 1)
|
65
|
+
]),
|
66
|
+
_: 1
|
67
|
+
})
|
68
|
+
]),
|
69
|
+
_: 1
|
70
|
+
}),
|
71
|
+
b("div", Q, [
|
72
|
+
t(C, {
|
73
|
+
title: "Departments",
|
74
|
+
actions: [{
|
75
|
+
label: "+",
|
76
|
+
function: () => c.$router.push(`/organizations/${o(e).params._id}/departments/create`)
|
77
|
+
}]
|
78
|
+
}, {
|
79
|
+
default: s(() => [
|
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: (r) => 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: s(({
|
98
|
+
items: r
|
99
|
+
}) => [
|
100
|
+
(a(!0), p(y, null, h(r, (_, f) => (a(), m(F, {
|
101
|
+
key: f,
|
102
|
+
department: _,
|
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
|
+
b("div", null, [
|
113
|
+
(a(!0), p(y, null, h(i.current.memberships, (r, _) => (a(), m(E, {
|
114
|
+
key: _,
|
115
|
+
user: r,
|
116
|
+
position: r.position,
|
117
|
+
onClick: (f) => c.$router.push(`/app/profile/${r.user._id}`),
|
118
|
+
class: "bg-grey radius-small flex-nowrap flex pd-medium"
|
119
|
+
}, null, 8, ["user", "position", "onClick"]))), 128))
|
120
|
+
])
|
121
|
+
]),
|
122
|
+
t(S, {
|
123
|
+
selected: n.value,
|
124
|
+
"onUpdate:selected": d[1] || (d[1] = (r) => n.value = r),
|
50
125
|
tabs: [
|
51
126
|
{ name: "Community", value: "community" },
|
52
127
|
{ name: "Menu", value: "products" },
|
@@ -55,92 +130,92 @@ const G = {
|
|
55
130
|
],
|
56
131
|
class: "mn-b-small o-hidden h5 radius-big bg-grey"
|
57
132
|
}, null, 8, ["selected"]),
|
58
|
-
|
59
|
-
t(
|
60
|
-
default:
|
61
|
-
|
133
|
+
b("div", W, [
|
134
|
+
t(g, { name: "slide-fade" }, {
|
135
|
+
default: s(() => [
|
136
|
+
n.value === "community" ? (a(), m(R, {
|
62
137
|
key: 0,
|
63
|
-
user:
|
64
|
-
owner:
|
65
|
-
}, null, 8, ["user", "owner"])) :
|
138
|
+
user: u.user._id,
|
139
|
+
owner: o(e).params._id
|
140
|
+
}, null, 8, ["user", "owner"])) : l("", !0)
|
66
141
|
]),
|
67
142
|
_: 1
|
68
143
|
}),
|
69
|
-
t(
|
70
|
-
default:
|
71
|
-
|
144
|
+
t(g, { name: "slide-fade" }, {
|
145
|
+
default: s(() => [
|
146
|
+
n.value === "events" ? (a(), m(L, {
|
72
147
|
key: 0,
|
73
|
-
user:
|
74
|
-
owner:
|
148
|
+
user: u.user._id,
|
149
|
+
owner: o(e).params._id,
|
75
150
|
sortOrder: "desc",
|
76
151
|
sortParam: "date.start"
|
77
|
-
}, null, 8, ["user", "owner", "sortParam"])) :
|
152
|
+
}, null, 8, ["user", "owner", "sortParam"])) : l("", !0)
|
78
153
|
]),
|
79
154
|
_: 1
|
80
155
|
}),
|
81
|
-
|
156
|
+
n.value === "products" && u.user._id === i.current.owner ? (a(), m(C, {
|
82
157
|
key: 0,
|
83
158
|
class: "flex-nowrap gap-thin mn-b-small flex"
|
84
159
|
}, {
|
85
|
-
default:
|
86
|
-
t(
|
160
|
+
default: s(() => [
|
161
|
+
t(v, {
|
87
162
|
class: "bg-black t-white uppercase t-semi pd-thin radius-extra",
|
88
163
|
to: {
|
89
164
|
name: "ProductAdd",
|
90
165
|
params: {
|
91
|
-
_id:
|
166
|
+
_id: o(e).params._id
|
92
167
|
}
|
93
168
|
}
|
94
169
|
}, {
|
95
|
-
default:
|
96
|
-
|
170
|
+
default: s(() => [
|
171
|
+
k(" Add Product ")
|
97
172
|
]),
|
98
173
|
_: 1
|
99
174
|
}, 8, ["to"]),
|
100
|
-
t(
|
175
|
+
t(v, {
|
101
176
|
class: "uppercase t-semi pd-thin radius-extra",
|
102
177
|
to: {
|
103
178
|
name: "Leftovers",
|
104
179
|
params: {
|
105
|
-
_id:
|
180
|
+
_id: o(e).params._id
|
106
181
|
}
|
107
182
|
}
|
108
183
|
}, {
|
109
|
-
default:
|
110
|
-
|
184
|
+
default: s(() => [
|
185
|
+
k(" Change Invetory ")
|
111
186
|
]),
|
112
187
|
_: 1
|
113
188
|
}, 8, ["to"]),
|
114
|
-
t(
|
189
|
+
t(v, {
|
115
190
|
class: "d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",
|
116
191
|
to: {
|
117
192
|
name: "Backoffice",
|
118
193
|
params: {
|
119
|
-
_id:
|
194
|
+
_id: o(e).params._id
|
120
195
|
}
|
121
196
|
}
|
122
197
|
}, {
|
123
|
-
default:
|
124
|
-
|
198
|
+
default: s(() => [
|
199
|
+
k(" Go to Backoffice ")
|
125
200
|
]),
|
126
201
|
_: 1
|
127
202
|
}, 8, ["to"])
|
128
203
|
]),
|
129
204
|
_: 1
|
130
|
-
})) :
|
131
|
-
t(
|
132
|
-
default:
|
133
|
-
|
205
|
+
})) : l("", !0),
|
206
|
+
t(g, { name: "slide-fade" }, {
|
207
|
+
default: s(() => [
|
208
|
+
n.value === "products" ? (a(), m(G, {
|
134
209
|
key: 0,
|
135
210
|
organization: i.current
|
136
|
-
}, null, 8, ["organization"])) :
|
211
|
+
}, null, 8, ["organization"])) : l("", !0)
|
137
212
|
]),
|
138
213
|
_: 1
|
139
214
|
}),
|
140
|
-
t(
|
141
|
-
default:
|
142
|
-
|
143
|
-
t(
|
215
|
+
t(g, { name: "slide-fade" }, {
|
216
|
+
default: s(() => [
|
217
|
+
n.value === "spots" ? (a(), p("div", X, [
|
218
|
+
t(x, {
|
144
219
|
states: {
|
145
220
|
empty: {
|
146
221
|
title: "No Spots Found",
|
@@ -148,42 +223,42 @@ const G = {
|
|
148
223
|
}
|
149
224
|
},
|
150
225
|
store: {
|
151
|
-
read: (
|
226
|
+
read: (r) => J.read(o(e).params._id),
|
152
227
|
state: i
|
153
228
|
},
|
154
229
|
options: {
|
155
|
-
user:
|
230
|
+
user: u.user._id,
|
156
231
|
sort: "numberOfMemberships",
|
157
232
|
contain: ["blogposts"],
|
158
233
|
limit: 10
|
159
234
|
}
|
160
235
|
}, {
|
161
|
-
default:
|
162
|
-
items:
|
236
|
+
default: s(({
|
237
|
+
items: r
|
163
238
|
}) => [
|
164
|
-
(a(!0), p(
|
165
|
-
key:
|
166
|
-
spot:
|
239
|
+
(a(!0), p(y, null, h(r, (_, f) => (a(), m(T, {
|
240
|
+
key: f,
|
241
|
+
spot: _,
|
167
242
|
organization: i.current,
|
168
243
|
class: "radius-big bg-grey mn-b-thin"
|
169
244
|
}, null, 8, ["spot", "organization"]))), 128))
|
170
245
|
]),
|
171
246
|
_: 1
|
172
247
|
}, 8, ["states", "store", "options"]),
|
173
|
-
|
248
|
+
u.user._id === i.current.owner ? (a(), p("button", {
|
174
249
|
key: 0,
|
175
|
-
onClick:
|
250
|
+
onClick: d[2] || (d[2] = (r) => c.$router.push(`/spots/${i.current._id}/spots/create`)),
|
176
251
|
class: "mn-b-thin button w-100"
|
177
|
-
}, " Add spot ")) :
|
178
|
-
])) :
|
252
|
+
}, " Add spot ")) : l("", !0)
|
253
|
+
])) : l("", !0)
|
179
254
|
]),
|
180
255
|
_: 1
|
181
256
|
})
|
182
257
|
])
|
183
|
-
])) :
|
258
|
+
])) : l("", !0);
|
184
259
|
};
|
185
260
|
}
|
186
261
|
};
|
187
262
|
export {
|
188
|
-
|
263
|
+
we as default
|
189
264
|
};
|
@@ -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.vue.cjs");const l=require("../../../../components/Field/Field.vue2.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.vue2.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.vue.js";
|
8
|
+
import i from "../../../../components/Field/Field.vue2.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.vue2.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.vue2.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.vue2.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.vue2.cjs");require("vue-i18n");const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");require("../../../../components/Popup/Popup.vue.cjs");require("../../../../components/Button/Button.vue.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.vue2.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.vue.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/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.vue2.cjs"),b=require("../../../../components/Select/Select.vue2.cjs"),v=require("../../../../components/Button/Button.vue2.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,80 +1,78 @@
|
|
1
|
-
import { ref as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
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.vue2.js";
|
3
|
+
import x from "../../../../components/Select/Select.vue2.js";
|
4
|
+
import y from "../../../../components/Button/Button.vue2.js";
|
5
5
|
import "../../../middlewares/client/inputs.validation.js";
|
6
|
-
import { state as
|
7
|
-
const
|
6
|
+
import { state as C, actions as U } from "../../../auth/store/invites.js";
|
7
|
+
const V = { class: "mn-b-medium radius-medium pd-semi bg-grey" }, z = /* @__PURE__ */ e("h3", { class: "mn-b-medium" }, "Add members", -1), E = /* @__PURE__ */ e("p", { class: "mn-b-small t-transp p-medium" }, "Укажите email или телефон, чтобы отправить ссылку с приглашением:", -1), M = {
|
8
8
|
key: 0,
|
9
9
|
class: "mn-r-medium flex-v-center flex"
|
10
|
-
},
|
10
|
+
}, N = ["onClick"], S = /* @__PURE__ */ e("p", { class: "t-blue mn-r-small" }, "+ Добавить приглашение", -1), A = [
|
11
11
|
S
|
12
|
-
],
|
12
|
+
], B = /* @__PURE__ */ e("span", null, "Invite to organization", -1), q = {
|
13
13
|
__name: "MembersAdd",
|
14
14
|
props: {
|
15
15
|
organization: Object
|
16
16
|
},
|
17
17
|
emits: ["send-invite"],
|
18
|
-
setup(
|
19
|
-
const d =
|
18
|
+
setup(m, { emit: F }) {
|
19
|
+
const d = m, u = r(null), t = r([{ contact: "", role: "" }]);
|
20
20
|
function p() {
|
21
21
|
t.value.push({ contact: "", role: "" });
|
22
22
|
}
|
23
|
-
function _(
|
24
|
-
t.value.splice(
|
23
|
+
function _(l) {
|
24
|
+
t.value.splice(l, 1);
|
25
25
|
}
|
26
|
-
async function
|
27
|
-
await
|
26
|
+
async function b(l) {
|
27
|
+
await U.create(d.organization._id, t.value);
|
28
28
|
}
|
29
|
-
function
|
29
|
+
function f() {
|
30
30
|
}
|
31
|
-
return (
|
32
|
-
e("section",
|
31
|
+
return (l, I) => (a(), s("div", null, [
|
32
|
+
e("section", V, [
|
33
|
+
z,
|
33
34
|
E,
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
class: "br-1px br-solid br-grey flex radius-small mn-b-thin"
|
35
|
+
(a(!0), s(v, null, h(t.value, (n, i) => (a(), s("div", {
|
36
|
+
key: i,
|
37
|
+
class: "br-1px br-solid br-grey flex gap-thin radius-small mn-b-thin"
|
38
38
|
}, [
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
class: "button-small button"
|
51
|
-
}, "×", 8, F)
|
52
|
-
])) : w("", !0)
|
53
|
-
]),
|
54
|
-
i(k, {
|
39
|
+
c(k, {
|
40
|
+
field: n.contact,
|
41
|
+
"onUpdate:field": (o) => n.contact = o,
|
42
|
+
placeholder: "Enter email or phone",
|
43
|
+
class: "pd-small radius-small w-100 bg-white",
|
44
|
+
validation: u.value
|
45
|
+
}, null, 8, ["field", "onUpdate:field", "validation"]),
|
46
|
+
c(x, {
|
47
|
+
select: n.role,
|
48
|
+
"onUpdate:select": (o) => n.role = o,
|
49
|
+
label: "Role",
|
55
50
|
options: [
|
56
|
-
|
57
|
-
|
58
|
-
|
51
|
+
"owner",
|
52
|
+
"manager",
|
53
|
+
"member"
|
59
54
|
],
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
55
|
+
placeholder: "Select",
|
56
|
+
class: "pos-relative w-100 bg-white radius-small pd-small"
|
57
|
+
}, null, 8, ["select", "onUpdate:select"]),
|
58
|
+
i > 0 ? (a(), s("div", M, [
|
59
|
+
e("button", {
|
60
|
+
onClick: (o) => _(i),
|
61
|
+
class: "button-small button"
|
62
|
+
}, "×", 8, N)
|
63
|
+
])) : g("", !0)
|
66
64
|
]))), 128)),
|
67
65
|
e("div", {
|
68
66
|
onClick: p,
|
69
67
|
class: "mn-b-small flex-v-center flex-nowrap flex"
|
70
|
-
},
|
71
|
-
|
72
|
-
submit:
|
73
|
-
callback:
|
74
|
-
class: "
|
68
|
+
}, A),
|
69
|
+
c(y, {
|
70
|
+
submit: l.a = () => b(C.invites),
|
71
|
+
callback: f,
|
72
|
+
class: "w-100 bg-main"
|
75
73
|
}, {
|
76
|
-
default:
|
77
|
-
|
74
|
+
default: w(() => [
|
75
|
+
B
|
78
76
|
]),
|
79
77
|
_: 1
|
80
78
|
}, 8, ["submit"])
|
@@ -83,5 +81,5 @@ const z = { class: "mn-b-medium radius-medium pd-semi bg-white" }, E = /* @__PUR
|
|
83
81
|
}
|
84
82
|
};
|
85
83
|
export {
|
86
|
-
|
84
|
+
q as default
|
87
85
|
};
|