@ozdao/prometheus-framework 0.2.51 → 0.2.53
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main-0a2437f4.js +91 -0
- package/dist/main-482dc398.mjs +13626 -0
- package/dist/main-4fnApBsF.js +91 -0
- package/dist/main-b2JI9sFg.js +91 -0
- package/dist/main-c56d4c09.js +91 -0
- package/dist/main-cdd0be68.mjs +13628 -0
- package/dist/main-kjbLXQEa.mjs +13606 -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 +81 -56
- package/dist/products.server.mjs +81 -56
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +18 -20
- 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.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +28 -26
- 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/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/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/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 +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +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/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/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 +131 -126
- 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 +1 -1
- 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/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/router/products.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/products.router.js +22 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.js +45 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue2.js +4 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +79 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +193 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue2.js +4 -0
- 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 +43 -43
- 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 +65 -55
- 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/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +35 -33
- package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.js +2 -2
- package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/categories.js +39 -27
- 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/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 +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-0066fd51.mjs +55 -0
- package/dist/web-6b9fa713.js +1 -0
- 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/dist/web-ngl7bNhF.js +1 -0
- package/dist/web-t91TrxXa.mjs +55 -0
- package/package.json +1 -1
- package/src/components/Button/Button.vue +4 -6
- package/src/components/Feed/Feed.vue +2 -1
- package/src/components/Field/Field.vue +3 -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/marketplace/components/sections/Filters.vue +7 -1
- 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/organizations/router/products.router.js +24 -4
- package/src/modules/products/components/blocks/CardCategory.vue +53 -0
- package/src/modules/products/components/pages/Categories.vue +90 -0
- package/src/modules/products/components/pages/CategoryEdit.vue +214 -0
- package/src/modules/products/components/pages/EditLeftover.vue +6 -4
- package/src/modules/products/components/pages/ProductEdit.vue +9 -1
- package/src/modules/products/components/pages/Products.vue +58 -38
- package/src/modules/products/components/sections/FilterProducts.vue +9 -6
- package/src/modules/products/controllers/categories.controller.js +30 -13
- package/src/modules/products/controllers/leftovers.controller.js +12 -5
- package/src/modules/products/controllers/products.controller.js +18 -0
- package/src/modules/products/models/category.model.js +42 -32
- package/src/modules/products/products.client.js +4 -2
- package/src/modules/products/store/categories.js +17 -3
- package/src/modules/products/store/products.js +4 -0
- package/src/modules/backoffice/components/admin/Categories.vue +0 -53
- package/src/modules/backoffice/components/admin/CategoryEdit.vue +0 -98
- package/src/modules/products/components/blocks/CategoryCard.vue +0 -42
- package/src/modules/products/router/products.router.js +0 -48
- /package/src/modules/{products → organizations}/components/pages/OrganizationCreate.vue +0 -0
- /package/src/modules/{products → organizations}/components/pages/OrganizationDetails.vue +0 -0
- /package/src/modules/{products → organizations}/components/pages/OrganizationDocuments.vue +0 -0
- /package/src/modules/{products → organizations}/components/pages/OrganizationPeople.vue +0 -0
package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js
CHANGED
@@ -1,112 +1,60 @@
|
|
1
|
-
import { openBlock as
|
2
|
-
import
|
3
|
-
import "../../../../components/
|
4
|
-
import
|
5
|
-
import
|
1
|
+
import { resolveComponent as p, openBlock as r, createElementBlock as o, createElementVNode as n, createVNode as l, withCtx as c, createCommentVNode as u, Fragment as _, renderList as f, createBlock as g } from "vue";
|
2
|
+
import h from "../../../icons/navigation/IconEdit.vue.js";
|
3
|
+
import "../../../../components/Spoiler/Spoiler.vue.js";
|
4
|
+
import "./DepartmentSub.vue2.js";
|
5
|
+
import b from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
6
6
|
import k from "./User.vue.js";
|
7
7
|
import "./CardDepartment.vue2.js";
|
8
|
-
const
|
9
|
-
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",
|
10
|
-
fill: "rgb(var(--black))"
|
11
|
-
}, null, -1)), M = [
|
12
|
-
y
|
13
|
-
], z = ["innerHTML"], A = { class: "pd-small flex-v-center flex-nowrap flex" }, B = /* @__PURE__ */ r(() => /* @__PURE__ */ t("h5", { class: "w-100" }, "Contacts ", -1)), Z = { class: "mn-r-small" }, S = /* @__PURE__ */ r(() => /* @__PURE__ */ t("svg", {
|
14
|
-
width: "14",
|
15
|
-
height: "9",
|
16
|
-
viewBox: "0 0 14 9",
|
17
|
-
fill: "none",
|
18
|
-
xmlns: "http://www.w3.org/2000/svg"
|
19
|
-
}, [
|
20
|
-
/* @__PURE__ */ t("path", {
|
21
|
-
"fill-rule": "evenodd",
|
22
|
-
"clip-rule": "evenodd",
|
23
|
-
d: "M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",
|
24
|
-
fill: "#8A8A8A"
|
25
|
-
})
|
26
|
-
], -1)), D = { key: 0 }, H = { class: "pd-small flex-v-center flex-nowrap flex" }, I = /* @__PURE__ */ r(() => /* @__PURE__ */ t("h5", { class: "w-100" }, "Working Hours ", -1)), N = { class: "mn-r-small" }, V = /* @__PURE__ */ r(() => /* @__PURE__ */ t("svg", {
|
27
|
-
width: "14",
|
28
|
-
height: "9",
|
29
|
-
viewBox: "0 0 14 9",
|
30
|
-
fill: "none",
|
31
|
-
xmlns: "http://www.w3.org/2000/svg"
|
32
|
-
}, [
|
33
|
-
/* @__PURE__ */ t("path", {
|
34
|
-
"fill-rule": "evenodd",
|
35
|
-
"clip-rule": "evenodd",
|
36
|
-
d: "M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",
|
37
|
-
fill: "#8A8A8A"
|
38
|
-
})
|
39
|
-
], -1)), j = { key: 0 }, E = {
|
8
|
+
const C = { class: "radius-big o-hidden cols-2-1_3" }, $ = { class: "pd-medium w-100" }, v = ["innerHTML"], w = { key: 0 }, z = {
|
40
9
|
__name: "CardDepartment",
|
41
10
|
props: {
|
42
11
|
department: Object,
|
43
12
|
organization: Object
|
44
13
|
},
|
45
14
|
setup(e) {
|
46
|
-
const
|
47
|
-
return (
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
t("div", H, [
|
88
|
-
I,
|
89
|
-
t("p", N, c(e.department.subdepartments ? e.department.subdepartments.length : 0) + " отделов", 1),
|
90
|
-
V
|
91
|
-
])
|
92
|
-
]),
|
93
|
-
content: a(() => [
|
94
|
-
t("ul", null, [
|
95
|
-
e.department.subdepartments.length < 1 ? (s(), o("li", j, "В отделе еще нет подотделов")) : h("", !0),
|
96
|
-
(s(!0), o(u, null, g(e.department.subdepartments, (n, d) => (s(), L(C, {
|
97
|
-
onClick: (v) => l.$router.push(`/organization/departments/${n._id}`),
|
98
|
-
key: d,
|
99
|
-
class: "br-b br-solid br-grey",
|
100
|
-
department: n
|
101
|
-
}, null, 8, ["onClick", "department"]))), 128))
|
102
|
-
])
|
103
|
-
]),
|
104
|
-
_: 1
|
105
|
-
})
|
106
|
-
])
|
107
|
-
]));
|
15
|
+
const s = e;
|
16
|
+
return (i, a) => {
|
17
|
+
const m = p("router-link");
|
18
|
+
return r(), o("div", C, [
|
19
|
+
n("div", $, [
|
20
|
+
l(m, {
|
21
|
+
to: {
|
22
|
+
name: "Department Edit",
|
23
|
+
params: {
|
24
|
+
_id: s.organization,
|
25
|
+
department: e.department._id
|
26
|
+
}
|
27
|
+
},
|
28
|
+
class: "cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"
|
29
|
+
}, {
|
30
|
+
default: c(() => [
|
31
|
+
l(h, {
|
32
|
+
class: "i-regular",
|
33
|
+
classes: "fill-white"
|
34
|
+
})
|
35
|
+
]),
|
36
|
+
_: 1
|
37
|
+
}, 8, ["to"]),
|
38
|
+
n("h3", {
|
39
|
+
onClick: a[0] || (a[0] = (t) => i.$router.push(`/organizations/${s.organization}/departments/${e.department._id}`)),
|
40
|
+
class: "mn-b-small w-100",
|
41
|
+
innerHTML: e.department.profile.name
|
42
|
+
}, null, 8, v),
|
43
|
+
n("ul", null, [
|
44
|
+
e.department.members.length < 1 ? (r(), o("li", w, "В отделе еще нет участников")) : u("", !0),
|
45
|
+
(r(!0), o(_, null, f(e.department.members, (t, d) => (r(), g(k, {
|
46
|
+
class: "br-b br-solid br-grey",
|
47
|
+
key: d,
|
48
|
+
user: t.user,
|
49
|
+
position: t.position,
|
50
|
+
onClick: (x) => i.$router.push(`/app/profile/${t.user._id}`)
|
51
|
+
}, null, 8, ["user", "position", "onClick"]))), 128))
|
52
|
+
])
|
53
|
+
])
|
54
|
+
]);
|
55
|
+
};
|
108
56
|
}
|
109
|
-
},
|
57
|
+
}, j = /* @__PURE__ */ b(z, [["__scopeId", "data-v-745afcf2"]]);
|
110
58
|
export {
|
111
|
-
|
59
|
+
j as default
|
112
60
|
};
|
@@ -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.vue2.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.vue2.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
|
};
|
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;
|