@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
@@ -1,4 +1,4 @@
|
|
1
|
-
import { openBlock as t, createElementBlock as n, createElementVNode as i, createBlock as c, toDisplayString as o, createCommentVNode as
|
1
|
+
import { openBlock as t, createElementBlock as n, createElementVNode as i, createBlock as c, toDisplayString as o, createCommentVNode as s, createVNode as d, Fragment as h, renderList as g, withModifiers as f } from "vue";
|
2
2
|
import { useRouter as w } from "vue-router";
|
3
3
|
import b from "../../../orders/components/blocks/CardOrderItem.vue.js";
|
4
4
|
import z from "../../../../components/Chips/Chips.vue.js";
|
@@ -7,16 +7,16 @@ import y from "../../../icons/entities/IconPrice.vue.js";
|
|
7
7
|
import x from "../../../icons/entities/IconShopcart.vue.js";
|
8
8
|
import v from "../../../icons/entities/IconTime.vue.js";
|
9
9
|
import k from "../elements/ButtonToggleMembership.vue.js";
|
10
|
-
const B = { class: "flex pos-relative" }, M = ["src"],
|
10
|
+
const B = { class: "flex pos-relative" }, M = ["src"], C = { class: "pos-relative w-100 flex-h-center flex flex-column flex-child-1 flex-child mn-l-thin w-100" }, O = { class: "h4 t-truncate" }, P = {
|
11
11
|
key: 1,
|
12
12
|
class: "flex-center gap-thin pd-r-thin pd-l-thin flex-nowrap flex mn-t-thin bg-white radius-extra w-max"
|
13
|
-
},
|
13
|
+
}, S = { class: "mn-t-thin mn-b-thin" }, $ = {
|
14
14
|
key: 0,
|
15
15
|
class: "mn-b-small mn-t-small w-100 flex-nowrap flex flex-v-center pd-small bg-white radius-medium"
|
16
|
-
},
|
16
|
+
}, F = { class: "mn-r-thin" }, E = {
|
17
17
|
key: 0,
|
18
18
|
class: "t-transp mn-r-thin"
|
19
|
-
},
|
19
|
+
}, R = { class: "mn-r-thin" }, V = { class: "mn-r-thin" }, I = { class: "mn-r-thin" }, N = {
|
20
20
|
key: 1,
|
21
21
|
class: "w-100 o-scroll"
|
22
22
|
}, U = { class: "w-max flex-nowrap flex gap-thin" }, L = /* @__PURE__ */ i("button", { class: "pd-thin w-15r radius-medium bg-main button" }, " View menu ", -1), X = {
|
@@ -49,30 +49,30 @@ const B = { class: "flex pos-relative" }, M = ["src"], S = { class: "pos-relativ
|
|
49
49
|
},
|
50
50
|
emits: ["updateMembership"],
|
51
51
|
setup(e, { emit: T }) {
|
52
|
-
return w(), (
|
52
|
+
return w(), (r, l) => {
|
53
53
|
var m, u;
|
54
54
|
return t(), n("div", {
|
55
55
|
class: "o-hidden pos-relative cursor-pointer bg-grey pd-small",
|
56
|
-
onClick: l[1] || (l[1] = (a) =>
|
56
|
+
onClick: l[1] || (l[1] = (a) => r.$router.push({ name: "Organization", params: { _id: e.organization._id } }))
|
57
57
|
}, [
|
58
58
|
i("div", B, [
|
59
59
|
e.organization.profile.photo && e.organization.profile.photo.length > 0 ? (t(), n("img", {
|
60
60
|
key: 0,
|
61
|
-
src: (
|
61
|
+
src: (r.FILE_SERVER_URL || "") + e.organization.profile.photo,
|
62
62
|
class: "h-4r w-4r radius-extra bg-white"
|
63
63
|
}, null, 8, M)) : (t(), c(p, {
|
64
64
|
key: 1,
|
65
65
|
class: "h-4r w-4r"
|
66
66
|
})),
|
67
|
-
i("div",
|
68
|
-
i("p",
|
67
|
+
i("div", C, [
|
68
|
+
i("p", O, o(e.organization.profile.name), 1),
|
69
69
|
e.showTags && ((m = e.organization.profile.tags) == null ? void 0 : m.length) > 0 ? (t(), c(z, {
|
70
70
|
key: 0,
|
71
71
|
chips: e.organization.profile.tags.slice(0, 3),
|
72
72
|
class: "pos-relative p-small"
|
73
|
-
}, null, 8, ["chips"])) :
|
74
|
-
e.showFollowers ? (t(), n("div",
|
75
|
-
i("p",
|
73
|
+
}, null, 8, ["chips"])) : s("", !0),
|
74
|
+
e.showFollowers ? (t(), n("div", P, [
|
75
|
+
i("p", S, o(e.organization.numberOfSubscribers) + " followers", 1),
|
76
76
|
(u = e.user) != null && u._id && e.organization.owner !== e.user._id ? (t(), c(k, {
|
77
77
|
key: 0,
|
78
78
|
user: e.user._id,
|
@@ -81,26 +81,26 @@ const B = { class: "flex pos-relative" }, M = ["src"], S = { class: "pos-relativ
|
|
81
81
|
target: e.organization._id,
|
82
82
|
status: e.organization.isSubscriber,
|
83
83
|
text: { create: "+", remove: "-" },
|
84
|
-
onUpdateMembership: l[0] || (l[0] = (a) =>
|
84
|
+
onUpdateMembership: l[0] || (l[0] = (a) => r.handleMembershipUpdate(a, "isSubscriber", "numberOfSubscribers")),
|
85
85
|
class: "i-semi"
|
86
|
-
}, null, 8, ["user", "target", "status"])) :
|
87
|
-
])) :
|
86
|
+
}, null, 8, ["user", "target", "status"])) : s("", !0)
|
87
|
+
])) : s("", !0)
|
88
88
|
])
|
89
89
|
]),
|
90
|
-
e.showProducts ? (t(), n("div",
|
90
|
+
e.showProducts ? (t(), n("div", $, [
|
91
91
|
d(v, { class: "i-medium mn-r-micro" }),
|
92
|
-
i("span",
|
93
|
-
e.organization.distance ? (t(), n("span", E, "|")) :
|
94
|
-
i("span",
|
92
|
+
i("span", F, o(e.organization.distance ? Math.ceil((5 + 5 + 3 * e.organization.distance) / 5) * 5 + "-" + Math.ceil((15 + 5 + 3 * e.organization.distance) / 5) * 5 + " MIN" : "Unavailable"), 1),
|
93
|
+
e.organization.distance ? (t(), n("span", E, "|")) : s("", !0),
|
94
|
+
i("span", R, o(e.organization.distance ? e.organization.distance.toFixed(1) + " KM" : ""), 1),
|
95
95
|
d(y, { class: "i-medium mn-r-micro" }),
|
96
|
-
i("span",
|
96
|
+
i("span", V, o(r.returnCurrency()) + "500 ", 1),
|
97
97
|
d(x, { class: "i-medium mn-r-micro" }),
|
98
|
-
i("span",
|
99
|
-
])) :
|
98
|
+
i("span", I, o(e.organization.products.length) + " products", 1)
|
99
|
+
])) : s("", !0),
|
100
100
|
e.showProducts && e.organization.products.length > 0 ? (t(), n("div", N, [
|
101
101
|
i("div", U, [
|
102
102
|
(t(!0), n(h, null, g(e.organization.products.slice(0, 10), (a) => (t(), c(b, {
|
103
|
-
onClick: f((j) =>
|
103
|
+
onClick: f((j) => r.$router.push({ name: "Product Organization", params: { _id: e.organization._id, product: a._id } }), ["stop"]),
|
104
104
|
key: a._id,
|
105
105
|
editable: !1,
|
106
106
|
product: a,
|
@@ -108,7 +108,7 @@ const B = { class: "flex pos-relative" }, M = ["src"], S = { class: "pos-relativ
|
|
108
108
|
}, null, 8, ["onClick", "product"]))), 128)),
|
109
109
|
L
|
110
110
|
])
|
111
|
-
])) :
|
111
|
+
])) : s("", !0)
|
112
112
|
]);
|
113
113
|
};
|
114
114
|
}
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),f=require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue.cjs");const v=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),h=require("../../../../components/Feed/Feed.vue.cjs"),k=require("./User.vue.cjs"),g=require("../../store/memberships.cjs");require("../../../middlewares/client/inputs.validation.cjs");require("./DepartmentMemberModify.vue2.cjs");const y=o=>(e.pushScopeId("data-v-7a0830c1"),o=o(),e.popScopeId(),o),_={class:"br-grey radius-small mn-small"},V=y(()=>e.createElementVNode("h3",{class:"mn-b-semi"},"Add to deparment",-1)),B={class:"bg-grey mn-b-thin h-min-10r h-max-10r o-scroll pd-medium radius-big"},N=["disabled"],q={__name:"DepartmentMemberModify",props:{isPopupOpen:Boolean,member:Number,members:Array,users:Array},emits:["callback","remove"],setup(o,{emit:m}){const l=o,i=m,s=e.ref(null),n=e.ref(null);l.member!==null&&(s.value=l.members[l.member]),e.ref(null);async function d(){l.member!==null?(l.members[l.member]=s,l.members[l.member].role=n.value,i("callback")):(l.members.push({...s.value,role:n.value}),i("callback"))}async function c(){l.members.splice(l.member,1),i("callback")}return(u,a)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",_,[V,e.createElementVNode("div",B,[e.createVNode(h.default,{states:{empty:{title:"No Members Found",description:"Currently, there are no members available."}},store:{read:r=>g.actions.read(r),state:null},options:{target:u.$route.params._id}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(t,p)=>(e.openBlock(),e.createBlock(k.default,{key:p,photo:t.user.profile.photo,name:t.user.profile.name||t.user.phone||t.user.email||t.user._id,user:t,position:t.position,onClick:a[0]||(a[0]=S=>u.$router.push(`/app/profile/${u.user._id}`)),class:"mn-b-thin"},null,8,["photo","name","user","position"]))),128))]),_:1},8,["states","store","options"])]),l.member===null?(e.openBlock(),e.createBlock(b.default,{key:0,modelValue:s.value,"onUpdate:modelValue":a[1]||(a[1]=r=>s.value=r),options:o.users,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","options"])):e.createCommentVNode("",!0),e.createVNode(f.default,{field:n.value,"onUpdate:field":a[2]||(a[2]=r=>n.value=r),label:"Должность",placeholder:"Название должности",class:"bg-white",validation:u.organizationName},null,8,["field","validation"])]),e.createElementVNode("button",{disabled:!s.value||!n.value,onClick:d,class:"w-100 button bg-blue t-white"},e.toDisplayString(l.member!==null?"Редактировать участника":"Добавить участника"),9,N),l.member!==null?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:c,class:"w-100 button bg-red t-white"}," Удалить участника ")):e.createCommentVNode("",!0)]))}},M=v.default(q,[["__scopeId","data-v-7a0830c1"]]);exports.default=M;
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import { ref as
|
2
|
-
import
|
3
|
-
import
|
1
|
+
import { ref as p, openBlock as m, createElementBlock as d, createElementVNode as i, createVNode as b, withCtx as k, Fragment as _, renderList as w, createBlock as c, createCommentVNode as f, toDisplayString as C, pushScopeId as I, popScopeId as M } from "vue";
|
2
|
+
import N from "../../../../components/SelectMulti/SelectMulti.vue.js";
|
3
|
+
import S from "../../../../components/Field/Field.vue.js";
|
4
4
|
import "../../../../components/Select/Select.vue.js";
|
5
|
-
import
|
5
|
+
import V from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
6
|
+
import $ from "../../../../components/Feed/Feed.vue.js";
|
7
|
+
import B from "./User.vue.js";
|
8
|
+
import { actions as D } from "../../store/memberships.js";
|
6
9
|
import "../../../middlewares/client/inputs.validation.js";
|
7
10
|
import "./DepartmentMemberModify.vue2.js";
|
8
|
-
const
|
9
|
-
key: 1,
|
10
|
-
class: "pd-small br-grey br-1px br-solid"
|
11
|
-
}, w = ["disabled"], M = {
|
11
|
+
const F = (t) => (I("data-v-7a0830c1"), t = t(), M(), t), A = { class: "br-grey radius-small mn-small" }, U = /* @__PURE__ */ F(() => /* @__PURE__ */ i("h3", { class: "mn-b-semi" }, "Add to deparment", -1)), z = { class: "bg-grey mn-b-thin h-min-10r h-max-10r o-scroll pd-medium radius-big" }, E = ["disabled"], x = {
|
12
12
|
__name: "DepartmentMemberModify",
|
13
13
|
props: {
|
14
14
|
isPopupOpen: Boolean,
|
@@ -17,53 +17,82 @@ const V = { class: "br-grey radius-small mn-small" }, N = {
|
|
17
17
|
users: Array
|
18
18
|
},
|
19
19
|
emits: ["callback", "remove"],
|
20
|
-
setup(
|
21
|
-
const
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
l.member !== null && (e.value = l.members[l.member]), n(null);
|
26
|
-
async function b() {
|
27
|
-
l.member !== null ? (l.members[l.member] = e.value, a("callback")) : (l.members.push(e.value), a("callback"));
|
20
|
+
setup(t, { emit: v }) {
|
21
|
+
const e = t, u = v, l = p(null), a = p(null);
|
22
|
+
e.member !== null && (l.value = e.members[e.member]), p(null);
|
23
|
+
async function h() {
|
24
|
+
e.member !== null ? (e.members[e.member] = l, e.members[e.member].role = a.value, u("callback")) : (e.members.push({ ...l.value, role: a.value }), u("callback"));
|
28
25
|
}
|
29
|
-
async function
|
30
|
-
|
26
|
+
async function y() {
|
27
|
+
e.members.splice(e.member, 1), u("callback");
|
31
28
|
}
|
32
|
-
return (
|
33
|
-
|
34
|
-
|
35
|
-
|
29
|
+
return (n, s) => (m(), d("div", null, [
|
30
|
+
i("div", A, [
|
31
|
+
U,
|
32
|
+
i("div", z, [
|
33
|
+
b($, {
|
34
|
+
states: {
|
35
|
+
empty: {
|
36
|
+
title: "No Members Found",
|
37
|
+
description: "Currently, there are no members available."
|
38
|
+
}
|
39
|
+
},
|
40
|
+
store: {
|
41
|
+
read: (o) => D.read(o),
|
42
|
+
state: null
|
43
|
+
},
|
44
|
+
options: {
|
45
|
+
target: n.$route.params._id
|
46
|
+
}
|
47
|
+
}, {
|
48
|
+
default: k(({
|
49
|
+
items: o
|
50
|
+
}) => [
|
51
|
+
(m(!0), d(_, null, w(o, (r, g) => (m(), c(B, {
|
52
|
+
key: g,
|
53
|
+
photo: r.user.profile.photo,
|
54
|
+
name: r.user.profile.name || r.user.phone || r.user.email || r.user._id,
|
55
|
+
user: r,
|
56
|
+
position: r.position,
|
57
|
+
onClick: s[0] || (s[0] = (L) => n.$router.push(`/app/profile/${n.user._id}`)),
|
58
|
+
class: "mn-b-thin"
|
59
|
+
}, null, 8, ["photo", "name", "user", "position"]))), 128))
|
60
|
+
]),
|
61
|
+
_: 1
|
62
|
+
}, 8, ["states", "store", "options"])
|
63
|
+
]),
|
64
|
+
e.member === null ? (m(), c(N, {
|
36
65
|
key: 0,
|
37
|
-
modelValue:
|
38
|
-
"onUpdate:modelValue":
|
39
|
-
options:
|
66
|
+
modelValue: l.value,
|
67
|
+
"onUpdate:modelValue": s[1] || (s[1] = (o) => l.value = o),
|
68
|
+
options: t.users,
|
40
69
|
multiple: !1,
|
41
70
|
taggable: !1,
|
42
71
|
placeholder: "Type to search or add type of organization",
|
43
72
|
class: "mn-b-semi bg-grey pd-medium radius-small"
|
44
|
-
}, null, 8, ["modelValue", "options"])) : (
|
45
|
-
|
46
|
-
field:
|
47
|
-
"onUpdate:field":
|
73
|
+
}, null, 8, ["modelValue", "options"])) : f("", !0),
|
74
|
+
b(S, {
|
75
|
+
field: a.value,
|
76
|
+
"onUpdate:field": s[2] || (s[2] = (o) => a.value = o),
|
48
77
|
label: "Должность",
|
49
78
|
placeholder: "Название должности",
|
50
79
|
class: "bg-white",
|
51
|
-
validation:
|
80
|
+
validation: n.organizationName
|
52
81
|
}, null, 8, ["field", "validation"])
|
53
82
|
]),
|
54
|
-
|
55
|
-
disabled: !
|
56
|
-
onClick:
|
83
|
+
i("button", {
|
84
|
+
disabled: !l.value || !a.value,
|
85
|
+
onClick: h,
|
57
86
|
class: "w-100 button bg-blue t-white"
|
58
|
-
},
|
59
|
-
|
87
|
+
}, C(e.member !== null ? "Редактировать участника" : "Добавить участника"), 9, E),
|
88
|
+
e.member !== null ? (m(), d("button", {
|
60
89
|
key: 0,
|
61
|
-
onClick:
|
90
|
+
onClick: y,
|
62
91
|
class: "w-100 button bg-red t-white"
|
63
|
-
}, " Удалить участника ")) :
|
92
|
+
}, " Удалить участника ")) : f("", !0)
|
64
93
|
]));
|
65
94
|
}
|
66
|
-
},
|
95
|
+
}, R = /* @__PURE__ */ V(x, [["__scopeId", "data-v-7a0830c1"]]);
|
67
96
|
export {
|
68
|
-
|
97
|
+
R as default
|
69
98
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs");require("./User.vue2.cjs");const u=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),s={class:"flex-v-center flex-nowrap flex"},l=["src"],a={__name:"User",props:{user:{type:Object,required:!0},photo:{type:String,default:null},name:{type:String,default:"Anonymous"}},setup(t){return(o,r)=>(e.openBlock(),e.createElementBlock("div",s,[t.photo?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.photo,class:"radius-medium object-fit-cover mn-r-thin i-thin",onClick:r[0]||(r[0]=e.withModifiers(n=>o.$router.push({name:t.user.type==="user"?"User Profile":"Organization",params:{_id:t.user._id}}),["stop"]))},null,8,l)):e.createCommentVNode("",!0),t.photo?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(i.default,{key:1,class:"radius-medium mn-r-thin i-thin",onClick:r[1]||(r[1]=e.withModifiers(n=>o.$router.push({name:"User Profile",params:{_id:t.user._id}}),["stop"]))})),e.createElementVNode("p",null,e.toDisplayString(t.name),1)]))}},d=u.default(a,[["__scopeId","data-v-84de60e5"]]);exports.default=d;
|
@@ -1,61 +1,51 @@
|
|
1
|
-
import { openBlock as
|
2
|
-
import
|
1
|
+
import { openBlock as o, createElementBlock as i, withModifiers as n, createCommentVNode as s, createBlock as l, createElementVNode as m, toDisplayString as u } from "vue";
|
2
|
+
import d from "../../../icons/placeholders/PlaceholderUserpic.vue.js";
|
3
3
|
import "./User.vue2.js";
|
4
|
-
import
|
5
|
-
const
|
6
|
-
key: 2,
|
7
|
-
class: "mn-l-medium flex-v-center flex"
|
8
|
-
}, M = {
|
4
|
+
import c from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
5
|
+
const p = { class: "flex-v-center flex-nowrap flex" }, f = ["src"], h = {
|
9
6
|
__name: "User",
|
10
7
|
props: {
|
11
8
|
user: {
|
12
9
|
type: Object,
|
13
10
|
required: !0
|
11
|
+
},
|
12
|
+
photo: {
|
13
|
+
type: String,
|
14
|
+
default: null
|
15
|
+
},
|
16
|
+
name: {
|
17
|
+
type: String,
|
18
|
+
default: "Anonymous"
|
14
19
|
}
|
15
20
|
// Define other props here
|
16
21
|
},
|
17
22
|
setup(e) {
|
18
|
-
return (
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
})) : a("", !0),
|
43
|
-
r("div", S, [
|
44
|
-
r("span", $, o((m = e.user.profile) == null ? void 0 : m.email) + " " + o((d = e.user.profile) == null ? void 0 : d.phone), 1),
|
45
|
-
r("span", g, o(e.user.role), 1),
|
46
|
-
C,
|
47
|
-
r("span", V, "Member since (date) " + o(e.user.createdAt), 1)
|
48
|
-
]),
|
49
|
-
e.user.position !== "Основатель" ? (i(), n("div", B, [
|
50
|
-
r("button", {
|
51
|
-
onClick: s[2] || (s[2] = (c) => t.removeMember(e.user)),
|
52
|
-
class: "button-small button"
|
53
|
-
}, "×")
|
54
|
-
])) : a("", !0)
|
55
|
-
]);
|
56
|
-
};
|
23
|
+
return (r, t) => (o(), i("div", p, [
|
24
|
+
e.photo ? (o(), i("img", {
|
25
|
+
key: 0,
|
26
|
+
src: (r.FILE_SERVER_URL || "") + e.photo,
|
27
|
+
class: "radius-medium object-fit-cover mn-r-thin i-thin",
|
28
|
+
onClick: t[0] || (t[0] = n((a) => r.$router.push({
|
29
|
+
name: e.user.type === "user" ? "User Profile" : "Organization",
|
30
|
+
params: {
|
31
|
+
_id: e.user._id
|
32
|
+
}
|
33
|
+
}), ["stop"]))
|
34
|
+
}, null, 8, f)) : s("", !0),
|
35
|
+
e.photo ? s("", !0) : (o(), l(d, {
|
36
|
+
key: 1,
|
37
|
+
class: "radius-medium mn-r-thin i-thin",
|
38
|
+
onClick: t[1] || (t[1] = n((a) => r.$router.push({
|
39
|
+
name: "User Profile",
|
40
|
+
params: {
|
41
|
+
_id: e.user._id
|
42
|
+
}
|
43
|
+
}), ["stop"]))
|
44
|
+
})),
|
45
|
+
m("p", null, u(e.name), 1)
|
46
|
+
]));
|
57
47
|
}
|
58
|
-
},
|
48
|
+
}, g = /* @__PURE__ */ c(h, [["__scopeId", "data-v-84de60e5"]]);
|
59
49
|
export {
|
60
|
-
|
50
|
+
g as default
|
61
51
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("vue"),m=require("../../../../components/Button/Button.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("vue"),m=require("../../../../components/Button/Button.vue.cjs");require("../../../auth/store/auth.cjs");const i=require("../../store/memberships.cjs"),g={__name:"ButtonToggleMembership",props:{user:{type:String,required:!0},type:{type:String,required:!0},role:{type:String,required:!1},target:{type:String,required:!0},text:{type:Object,default:{create:"join",remove:"leave"}},status:{type:Boolean,required:!0}},emits:["updateMembership"],setup(o,{emit:n}){const u=n,e=o,c=async()=>{e.status?await l():await p()};async function p(){try{const t={user:e.user,type:e.type,role:e.role,target:e.target},s=await i.actions.create(t);u("updateMembership",{membership:s,target:e.target,status:!0})}catch(t){throw console.log(t),t}}async function l(t){const s={user:e.user,type:e.type,role:e.role,target:e.target};try{const a=await i.actions.delete(s);u("updateMembership",{membership:a,target:e.target,status:!1})}catch(a){throw console.log(a),a}}return(t,s)=>(r.openBlock(),r.createBlock(m.default,{submit:c,showSucces:!1,class:"bg-main button-small button"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(o.status?e.text.remove:e.text.create),1)]),_:1}))}};exports.default=g;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { openBlock as m, createBlock as l, withCtx as g, createTextVNode as h, toDisplayString as y } from "vue";
|
2
|
-
import b from "../../../../components/Button/Button.
|
2
|
+
import b from "../../../../components/Button/Button.vue.js";
|
3
3
|
import "../../../auth/store/auth.js";
|
4
4
|
import { actions as i } from "../../store/memberships.js";
|
5
5
|
const M = {
|
package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router");require("../../../../components/Spoiler/Spoiler.vue.cjs");const
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router");require("../../../../components/Spoiler/Spoiler.vue.cjs");const u=require("../blocks/DepartmentSub.vue.cjs"),p=require("../blocks/User.vue.cjs"),t=require("../../store/departments.cjs"),_={class:"for-transition w-100"},h={key:0,id:"dash",class:"pd-medium bg-grey"},k={class:"mn-b-medium radius-medium pd-semi bg-white"},b={class:"flex-nowrap flex mn-b-small"},g={class:"w-100"},E=["innerHTML"],B={class:"mn-b-medium radius-medium pd-semi bg-white"},N=e.createElementVNode("h3",{class:"mn-b-regular"},"Команда",-1),V={key:0},f={class:"mn-b-medium radius-medium pd-semi bg-white"},y=e.createElementVNode("h3",{class:"mn-b-regular"},"Подотделы",-1),v={key:0},C={__name:"Department",async setup(w){let s,a;c.useRouter();const n=c.useRoute();return[s,a]=e.withAsyncContext(()=>t.actions.readOne(n.params.department)),await s,a(),(l,q)=>{const i=e.resolveComponent("IconEdit"),d=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",_,[t.state.department?(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("section",k,[e.createElementVNode("div",b,[e.createElementVNode("h2",g,e.toDisplayString(t.state.department.profile.name),1),e.createVNode(d,{to:{name:"Department Edit",params:{_id:e.unref(n).params._id,department:e.unref(n).params.department}},class:"cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"},{default:e.withCtx(()=>[e.createVNode(i,{class:"i-regular",classes:"fill-white"})]),_:1},8,["to"])]),e.createElementVNode("p",{class:"t-transp p-big",innerHTML:t.state.department.description},null,8,E)]),e.createElementVNode("section",B,[N,e.createElementVNode("ul",null,[t.state.department.members.length<1?(e.openBlock(),e.createElementBlock("li",V,"В отделе еще нет участников")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.department.members,(r,o)=>(e.openBlock(),e.createBlock(p.default,{class:"br-b br-solid br-grey",key:o,user:r,position:r.position,onClick:m=>l.$router.push(`/app/profile/${r.user._id}`)},null,8,["user","position","onClick"]))),128))])]),e.createElementVNode("section",f,[y,e.createElementVNode("ul",null,[t.state.department.subdepartments.length<1?(e.openBlock(),e.createElementBlock("li",v,"В отделе еще нет подотделов")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.department.subdepartments,(r,o)=>(e.openBlock(),e.createBlock(u.default,{onClick:m=>l.$router.push(`/app/organization/departments/${r._id}`),key:o,class:"br-b br-solid br-grey",department:r},null,8,["onClick","department"]))),128))])])])):e.createCommentVNode("",!0)])}}};exports.default=C;
|
package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js
CHANGED
@@ -1,73 +1,80 @@
|
|
1
|
-
import { withAsyncContext as
|
2
|
-
import { useRouter as
|
1
|
+
import { withAsyncContext as y, resolveComponent as p, openBlock as t, createElementBlock as n, createElementVNode as e, toDisplayString as w, createVNode as c, unref as u, withCtx as C, createCommentVNode as a, Fragment as _, renderList as h, createBlock as b } from "vue";
|
2
|
+
import { useRouter as v, useRoute as $ } from "vue-router";
|
3
3
|
import "../../../../components/Spoiler/Spoiler.vue.js";
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import { actions as
|
7
|
-
const
|
4
|
+
import x from "../blocks/DepartmentSub.vue.js";
|
5
|
+
import E from "../blocks/User.vue.js";
|
6
|
+
import { actions as D, state as s } from "../../store/departments.js";
|
7
|
+
const B = { class: "for-transition w-100" }, L = {
|
8
8
|
key: 0,
|
9
9
|
id: "dash",
|
10
10
|
class: "pd-medium bg-grey"
|
11
|
-
},
|
12
|
-
d: "M515.693 9.52082C510.095 3.91669 502.49 0.765625 494.563 0.765625C486.635 0.765625 479.036 3.91669 473.432 9.52082L48.7255 434.307C44.8244 438.214 42.0848 443.125 40.8088 448.496L0.939444 615.069C-1.47202 625.168 1.528 635.788 8.86652 643.132C16.2103 650.47 26.8305 653.47 36.9292 651.059L203.516 611.261H203.511C208.88 609.985 213.792 607.246 217.699 603.35L642.485 178.496C648.089 172.892 651.241 165.293 651.241 157.366C651.241 149.439 648.089 141.835 642.485 136.235L515.693 9.52082ZM113.76 453.708L388.307 179.161L472.828 263.682L198.281 538.229L113.76 453.708ZM87.1041 511.5L140.416 564.812L70.3014 581.614L87.1041 511.5ZM515.091 221.793L430.195 136.897L494.184 72.9075L579.08 157.429L515.091 221.793Z",
|
13
|
-
fill: "rgb(var(--black))"
|
14
|
-
}, null, -1), D = [
|
15
|
-
Z
|
16
|
-
], H = ["innerHTML"], z = { class: "mn-b-medium radius-medium pd-semi bg-white" }, E = /* @__PURE__ */ e("h3", { class: "mn-b-regular" }, "Команда", -1), N = { key: 0 }, R = { class: "mn-b-medium radius-medium pd-semi bg-white" }, S = /* @__PURE__ */ e("h3", { class: "mn-b-regular" }, "Подотделы", -1), T = { key: 0 }, G = {
|
11
|
+
}, N = { class: "mn-b-medium radius-medium pd-semi bg-white" }, V = { class: "flex-nowrap flex mn-b-small" }, H = { class: "w-100" }, I = ["innerHTML"], M = { class: "mn-b-medium radius-medium pd-semi bg-white" }, R = /* @__PURE__ */ e("h3", { class: "mn-b-regular" }, "Команда", -1), S = { key: 0 }, T = { class: "mn-b-medium radius-medium pd-semi bg-white" }, z = /* @__PURE__ */ e("h3", { class: "mn-b-regular" }, "Подотделы", -1), A = { key: 0 }, P = {
|
17
12
|
__name: "Department",
|
18
|
-
async setup(
|
19
|
-
let m,
|
20
|
-
|
21
|
-
const o =
|
22
|
-
return [m,
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
(
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
13
|
+
async setup(F) {
|
14
|
+
let m, l;
|
15
|
+
v();
|
16
|
+
const o = $();
|
17
|
+
return [m, l] = y(() => D.readOne(o.params.department)), await m, l(), (d, O) => {
|
18
|
+
const g = p("IconEdit"), f = p("router-link");
|
19
|
+
return t(), n("div", B, [
|
20
|
+
s.department ? (t(), n("div", L, [
|
21
|
+
e("section", N, [
|
22
|
+
e("div", V, [
|
23
|
+
e("h2", H, w(s.department.profile.name), 1),
|
24
|
+
c(f, {
|
25
|
+
to: {
|
26
|
+
name: "Department Edit",
|
27
|
+
params: {
|
28
|
+
_id: u(o).params._id,
|
29
|
+
department: u(o).params.department
|
30
|
+
}
|
31
|
+
},
|
32
|
+
class: "cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"
|
33
|
+
}, {
|
34
|
+
default: C(() => [
|
35
|
+
c(g, {
|
36
|
+
class: "i-regular",
|
37
|
+
classes: "fill-white"
|
38
|
+
})
|
39
|
+
]),
|
40
|
+
_: 1
|
41
|
+
}, 8, ["to"])
|
42
|
+
]),
|
43
|
+
e("p", {
|
44
|
+
class: "t-transp p-big",
|
45
|
+
innerHTML: s.department.description
|
46
|
+
}, null, 8, I)
|
36
47
|
]),
|
37
|
-
e("
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
key: a,
|
62
|
-
class: "br-b br-solid br-grey",
|
63
|
-
department: s
|
64
|
-
}, null, 8, ["onClick", "department"]))), 128))
|
48
|
+
e("section", M, [
|
49
|
+
R,
|
50
|
+
e("ul", null, [
|
51
|
+
s.department.members.length < 1 ? (t(), n("li", S, "В отделе еще нет участников")) : a("", !0),
|
52
|
+
(t(!0), n(_, null, h(s.department.members, (r, i) => (t(), b(E, {
|
53
|
+
class: "br-b br-solid br-grey",
|
54
|
+
key: i,
|
55
|
+
user: r,
|
56
|
+
position: r.position,
|
57
|
+
onClick: (k) => d.$router.push(`/app/profile/${r.user._id}`)
|
58
|
+
}, null, 8, ["user", "position", "onClick"]))), 128))
|
59
|
+
])
|
60
|
+
]),
|
61
|
+
e("section", T, [
|
62
|
+
z,
|
63
|
+
e("ul", null, [
|
64
|
+
s.department.subdepartments.length < 1 ? (t(), n("li", A, "В отделе еще нет подотделов")) : a("", !0),
|
65
|
+
(t(!0), n(_, null, h(s.department.subdepartments, (r, i) => (t(), b(x, {
|
66
|
+
onClick: (k) => d.$router.push(`/app/organization/departments/${r._id}`),
|
67
|
+
key: i,
|
68
|
+
class: "br-b br-solid br-grey",
|
69
|
+
department: r
|
70
|
+
}, null, 8, ["onClick", "department"]))), 128))
|
71
|
+
])
|
65
72
|
])
|
66
|
-
])
|
67
|
-
])
|
68
|
-
|
73
|
+
])) : a("", !0)
|
74
|
+
]);
|
75
|
+
};
|
69
76
|
}
|
70
77
|
};
|
71
78
|
export {
|
72
|
-
|
79
|
+
P as default
|
73
80
|
};
|