@ozdao/prometheus-framework 0.2.92 → 0.2.93
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/events.server.js +14 -6
- package/dist/events.server.mjs +14 -6
- package/dist/main-CX2ISR43.mjs +13629 -0
- package/dist/main-cffh4bbv.js +92 -0
- package/dist/main.css +1 -1
- package/dist/orders.server.js +32 -18
- package/dist/orders.server.mjs +32 -18
- package/dist/organizations.server.js +2 -1
- package/dist/organizations.server.mjs +2 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.js +46 -48
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +94 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +1 -94
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +1 -84
- 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 +25 -20
- package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Map/Map.vue.js +36 -26
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -103
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +3 -3
- 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/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
- 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/constructor/components/elements/Textarea.vue.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +66 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
- package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.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/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
- 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 +3 -3
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
- 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 +46 -46
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.js +39 -65
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +31 -31
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +242 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +62 -62
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +30 -30
- 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 +99 -70
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +10 -10
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.backoffice.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.backoffice.router.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.router.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +33 -34
- package/dist/prometheus-framework/src/modules/orders/store/shopcart.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/shopcart.js +42 -42
- 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 +27 -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 +11 -11
- 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 +46 -43
- 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 +162 -168
- 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 +27 -26
- 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 +7 -7
- 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/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 +3 -3
- 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/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +13 -13
- 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/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +3 -3
- 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 +2 -2
- 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 +16 -17
- 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 +22 -20
- 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 +3 -3
- 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 +59 -38
- 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 +2 -2
- 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 +23 -22
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +17 -14
- 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 +2 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
- 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-CQQEUA9l.js +1 -0
- package/dist/web-D2Em-p-C.mjs +54 -0
- package/package.json +1 -1
- package/src/components/Address/Address.vue +23 -34
- package/src/components/LocationMarker/LocationMarker.vue +6 -1
- package/src/components/LocationSelection/LocationSelection.vue +4 -0
- package/src/components/Map/Map.vue +29 -15
- package/src/modules/constructor/components/elements/VideoPlayer.vue +2 -2
- package/src/modules/events/controllers/events.controller.js +4 -4
- package/src/modules/globals/components/blocks/CardHeader.vue +2 -2
- package/src/modules/integrations/stripe/controllers/services/stripe.service.js +17 -6
- package/src/modules/landing/components/pages/Farming.vue +226 -0
- package/src/modules/landing/components/pages/Governance.vue +3 -5
- package/src/modules/landing/components/pages/Home.vue +0 -3
- package/src/modules/landing/components/pages/Hotel.vue +1 -3
- package/src/modules/landing/components/pages/Page.vue +0 -3
- package/src/modules/landing/components/sections/Examples.vue +4 -56
- package/src/modules/landing/components/sections/SectionFeature.vue +41 -0
- package/src/modules/landing/components/sections/SectionFeaturesImages.vue +122 -0
- package/src/modules/landing/components/sections/SectionFocus.vue +59 -0
- package/src/modules/landing/components/sections/SectionHeroVideo.vue +164 -0
- package/src/modules/landing/router/landing.js +11 -0
- package/src/modules/marketplace/components/sections/Filters.vue +26 -23
- package/src/modules/orders/components/blocks/CardOrderItem.vue +8 -0
- package/src/modules/orders/components/blocks/StatusHistory.vue +25 -53
- package/src/modules/orders/components/pages/Order.vue +2 -6
- package/src/modules/orders/components/pages/OrderBackoffice.vue +393 -0
- package/src/modules/orders/components/pages/OrderCreate.vue +5 -4
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +2 -3
- package/src/modules/orders/components/pages/Orders.vue +60 -11
- package/src/modules/orders/components/sections/FormDelivery.vue +2 -2
- package/src/modules/orders/controllers/orders.controller.js +29 -18
- package/src/modules/orders/models/order.model.js +8 -2
- package/src/modules/orders/router/orders.backoffice.router.js +1 -1
- package/src/modules/orders/router/orders.router.js +2 -2
- package/src/modules/orders/store/orders.js +3 -7
- package/src/modules/orders/store/shopcart.js +1 -1
- package/src/modules/organizations/components/blocks/CardDepartment.vue +2 -0
- package/src/modules/organizations/components/pages/Department.vue +5 -1
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +65 -27
- package/src/modules/organizations/components/pages/Members.vue +2 -1
- package/src/modules/organizations/components/pages/Organization.vue +1 -1
- package/src/modules/organizations/controllers/memberships.controller.js +3 -1
- package/src/modules/organizations/store/memberships.js +1 -1
- package/src/modules/products/components/blocks/CardProduct.vue +2 -3
- package/src/modules/products/components/pages/ProductEdit.vue +10 -13
- package/src/modules/products/components/pages/Products.vue +2 -0
- package/src/modules/products/store/products.js +25 -2
- package/src/modules/spots/components/blocks/CardSpot.vue +2 -2
- package/src/modules/users/components/blocks/CardUser.vue +1 -0
- package/src/modules/landing/components/sections/AboutSection.vue +0 -69
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ref as _, onMounted as N, computed as P, openBlock as
|
1
|
+
import { ref as _, onMounted as N, computed as P, openBlock as a, createElementBlock as n, createVNode as i, withCtx as l, createBlock as d, unref as u, Fragment as b, renderList as h, createCommentVNode as v, createElementVNode as A } from "vue";
|
2
2
|
import { useRoute as O, useRouter as D } from "vue-router";
|
3
3
|
import g from "../../../../components/Feed/Feed.vue.js";
|
4
4
|
import "../../../../components/Tab/Tab.vue.js";
|
@@ -21,7 +21,7 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-big radius-medium bg-white" }
|
|
21
21
|
}, Q = { key: 1 }, fe = {
|
22
22
|
__name: "Members",
|
23
23
|
setup(T) {
|
24
|
-
const
|
24
|
+
const o = O();
|
25
25
|
D();
|
26
26
|
const c = _(null), m = _("members"), f = _(!1);
|
27
27
|
function C() {
|
@@ -31,16 +31,16 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-big radius-medium bg-white" }
|
|
31
31
|
f.value = !1;
|
32
32
|
}
|
33
33
|
N(async () => {
|
34
|
-
c.value = (await L.read({ _id:
|
34
|
+
c.value = (await L.read({ _id: o.params._id, user: y.user._id }))[0];
|
35
35
|
}), P(() => {
|
36
|
-
const
|
36
|
+
const r = q.departments, s = r.flatMap(
|
37
37
|
(t) => t.subdepartments.map((e) => e._id)
|
38
38
|
);
|
39
|
-
return
|
39
|
+
return r.filter(
|
40
40
|
(t) => !s.includes(t._id)
|
41
41
|
);
|
42
42
|
});
|
43
|
-
async function x(
|
43
|
+
async function x(r) {
|
44
44
|
await $.create({
|
45
45
|
owner: {
|
46
46
|
type: "Organization",
|
@@ -50,16 +50,16 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-big radius-medium bg-white" }
|
|
50
50
|
type: "User",
|
51
51
|
target: y.user._id
|
52
52
|
},
|
53
|
-
invites:
|
53
|
+
invites: r
|
54
54
|
});
|
55
55
|
}
|
56
|
-
async function z(
|
57
|
-
confirm("Confirm remove of member") == !0 && (U.memberships.splice(
|
56
|
+
async function z(r, s) {
|
57
|
+
confirm("Confirm remove of member") == !0 && (U.memberships.splice(r, 1), await k.delete(s._id));
|
58
58
|
}
|
59
|
-
async function I(
|
60
|
-
confirm("Confirm remove of member") == !0 && (R.invites.splice(
|
59
|
+
async function I(r, s) {
|
60
|
+
confirm("Confirm remove of member") == !0 && (R.invites.splice(r, 1), await $.delete(s._id));
|
61
61
|
}
|
62
|
-
return (
|
62
|
+
return (r, s) => (a(), n("div", H, [
|
63
63
|
i(S, {
|
64
64
|
title: "Members",
|
65
65
|
"onUpdate:tabs_current": s[0] || (s[0] = (t) => m.value = t),
|
@@ -89,7 +89,7 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-big radius-medium bg-white" }
|
|
89
89
|
]),
|
90
90
|
_: 1
|
91
91
|
}, 8, ["isPopupOpen"]),
|
92
|
-
m.value === "departments" ? (
|
92
|
+
m.value === "departments" ? (a(), d(F, {
|
93
93
|
key: 0,
|
94
94
|
class: "mn-b-semi"
|
95
95
|
}, {
|
@@ -100,7 +100,7 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-big radius-medium bg-white" }
|
|
100
100
|
title: "No Departments Found",
|
101
101
|
description: "Currently, there are no departments available.",
|
102
102
|
action: "Add department",
|
103
|
-
callback: () =>
|
103
|
+
callback: () => r.$router.push(`/organizations/${u(o).params._id}/departments/create`)
|
104
104
|
}
|
105
105
|
},
|
106
106
|
store: {
|
@@ -108,7 +108,7 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-big radius-medium bg-white" }
|
|
108
108
|
state: null
|
109
109
|
},
|
110
110
|
options: {
|
111
|
-
organization: u(
|
111
|
+
organization: u(o).params._id,
|
112
112
|
user: y.user._id,
|
113
113
|
hidden: !1
|
114
114
|
}
|
@@ -116,10 +116,10 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-big radius-medium bg-white" }
|
|
116
116
|
default: l(({
|
117
117
|
items: t
|
118
118
|
}) => [
|
119
|
-
(
|
119
|
+
(a(!0), n(b, null, h(t, (e, p) => (a(), d(E, {
|
120
120
|
key: p,
|
121
121
|
department: e,
|
122
|
-
organization: u(
|
122
|
+
organization: u(o).params._id,
|
123
123
|
class: "radius-big bg-white pos-relative mn-b-thin"
|
124
124
|
}, null, 8, ["department", "organization"]))), 128))
|
125
125
|
]),
|
@@ -129,7 +129,7 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-big radius-medium bg-white" }
|
|
129
129
|
_: 1
|
130
130
|
})) : v("", !0),
|
131
131
|
A("section", J, [
|
132
|
-
m.value === "members" ? (
|
132
|
+
m.value === "members" ? (a(), n("div", K, [
|
133
133
|
i(g, {
|
134
134
|
search: !0,
|
135
135
|
states: {
|
@@ -142,14 +142,15 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-big radius-medium bg-white" }
|
|
142
142
|
read: (t) => k.read(t)
|
143
143
|
},
|
144
144
|
options: {
|
145
|
-
target: u(
|
145
|
+
target: u(o).params._id,
|
146
|
+
role: ["member", "owner"]
|
146
147
|
},
|
147
148
|
class: "gap-thin cols-1"
|
148
149
|
}, {
|
149
150
|
default: l(({
|
150
151
|
items: t
|
151
152
|
}) => [
|
152
|
-
(
|
153
|
+
(a(!0), n(b, null, h(t, (e, p) => (a(), d(w, {
|
153
154
|
key: p,
|
154
155
|
user: e,
|
155
156
|
_id: e.user._id,
|
@@ -158,7 +159,7 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-big radius-medium bg-white" }
|
|
158
159
|
email: e.user.email,
|
159
160
|
name: e.user.profile.name || "No name",
|
160
161
|
role: e.label || e.role,
|
161
|
-
onClick: (W) =>
|
162
|
+
onClick: (W) => r.$router.push(`/profile/${e.user._id}`),
|
162
163
|
action: e.role !== "owner" ? {
|
163
164
|
label: "x",
|
164
165
|
method: () => z(p, e)
|
@@ -169,7 +170,7 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-big radius-medium bg-white" }
|
|
169
170
|
_: 1
|
170
171
|
}, 8, ["store", "options"])
|
171
172
|
])) : v("", !0),
|
172
|
-
m.value === "invites" ? (
|
173
|
+
m.value === "invites" ? (a(), n("div", Q, [
|
173
174
|
i(g, {
|
174
175
|
search: !0,
|
175
176
|
states: {
|
@@ -182,21 +183,21 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-big radius-medium bg-white" }
|
|
182
183
|
read: (t) => $.read(t)
|
183
184
|
},
|
184
185
|
options: {
|
185
|
-
owner: u(
|
186
|
+
owner: u(o).params._id
|
186
187
|
},
|
187
188
|
class: "gap-thin cols-1"
|
188
189
|
}, {
|
189
190
|
default: l(({
|
190
191
|
items: t
|
191
192
|
}) => [
|
192
|
-
(
|
193
|
-
key:
|
193
|
+
(a(!0), n(b, null, h(t, (e) => (a(), d(w, {
|
194
|
+
key: r.index,
|
194
195
|
user: { type: "invite" },
|
195
196
|
name: e.email || e.phone,
|
196
197
|
role: e.status,
|
197
198
|
action: {
|
198
199
|
label: "x",
|
199
|
-
method: () => I(
|
200
|
+
method: () => I(r.index, e)
|
200
201
|
},
|
201
202
|
class: "w-100 bg-grey radius-big flex-nowrap flex pd-medium"
|
202
203
|
}, null, 8, ["name", "role", "action"]))), 128))
|
package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const f=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Block/Block.vue.cjs"),b=require("../../../../components/Feed/Feed.vue.cjs");require("../../../mobile/components/Menu/Menu.vue2.cjs");require("../../../mobile/components/Menu/MenuItem.vue.cjs");require("../blocks/DepartmentSub.vue2.cjs");const v=require("../../../events/components/sections/Feed.vue.cjs"),h=require("../../../community/components/sections/Feed.vue.cjs"),q=require("../../../spots/components/blocks/CardSpot.vue.cjs"),g=require("../sections/DetailsTab.vue.cjs"),w=require("../../../products/components/pages/Products.vue.cjs"),o=require("../../../auth/store/auth.cjs"),a=require("../../store/organizations.cjs"),y=require("../../store/memberships.cjs");require("../../store/departments.cjs");const C=require("../../../spots/store/spots.cjs");require("./Organization.vue2.cjs");const N={key:0,class:"pd-thin for-transition w-100"},V={class:"pos-relative"},B={key:0},x={__name:"Organization",setup(z){const c=d.useRouter(),t=d.useRoute();let m=t.query.tab?t.query.tab:"products";const i=e.ref(null);e.onMounted(async()=>{i.value=await a.actions.read({_id:t.params._id,user:o.state.user._id}),await y.actions.read(t.params._id)});const r=e.ref(m);return t.query.tab=r.value,e.watch(r,l=>{c.replace({query:null})}),(l,n)=>{const u=e.resolveComponent("router-link");return i.value?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(g.default,{organization:a.state.current,user:o.state.user,class:"mn-b-semi"},null,8,["organization","user"]),e.createVNode(f.default,{selected:r.value,"onUpdate:selected":n[0]||(n[0]=s=>r.value=s),tabs:[{name:"Community",value:"community"},{name:"Menu",value:"products"},{name:"Events",value:"events"},{name:"Spots",value:"spots"}],class:"mn-b-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createElementVNode("div",V,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="community"?(e.openBlock(),e.createBlock(h.default,{key:0,user:o.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==="events"?(e.openBlock(),e.createBlock(v.default,{key:0,user:o.state.user._id,owner:e.unref(t).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),r.value==="products"&&o.state.user._id===a.state.current.owner?(e.openBlock(),e.createBlock(k.default,{key:0,class:"flex-nowrap gap-thin mn-b-small flex"},{default:e.withCtx(()=>[e.createVNode(u,{class:"bg-black t-white uppercase t-semi pd-thin radius-extra",to:{name:"ProductAdd",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Add Product ")]),_:1},8,["to"]),e.createVNode(u,{class:"uppercase t-semi pd-thin radius-extra",to:{name:"Leftovers",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Change Invetory ")]),_:1},8,["to"]),e.createVNode(u,{class:"d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",to:{name:"Backoffice",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Go to Backoffice ")]),_:1},8,["to"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="products"?(e.openBlock(),e.createBlock(w.default,{key:0,organization:a.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="spots"?(e.openBlock(),e.createElementBlock("div",B,[e.createVNode(b.default,{states:{empty:{title:"No Spots Found",description:"Currently, there are no spots available."}},store:{read:s=>C.actions.read(e.unref(t).params._id),state:a.state},options:{user:o.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:s})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s,(p,_)=>(e.openBlock(),e.createBlock(q.default,{key:_,spot:p,organization:a.state.current,class:"radius-big bg-grey mn-b-thin"},null,8,["spot","organization"]))),128))]),_:1},8,["store","options"]),o.state.user._id===a.state.current.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[1]||(n[1]=s=>l.$router.push(`/spots/${a.state.current._id}/spots/create`)),class:"mn-b-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}}};exports.default=x;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const f=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Block/Block.vue.cjs"),b=require("../../../../components/Feed/Feed.vue.cjs");require("../../../mobile/components/Menu/Menu.vue2.cjs");require("../../../mobile/components/Menu/MenuItem.vue.cjs");require("../blocks/DepartmentSub.vue2.cjs");const v=require("../../../events/components/sections/Feed.vue.cjs"),h=require("../../../community/components/sections/Feed.vue.cjs"),q=require("../../../spots/components/blocks/CardSpot.vue.cjs"),g=require("../sections/DetailsTab.vue.cjs"),w=require("../../../products/components/pages/Products.vue.cjs"),o=require("../../../auth/store/auth.cjs"),a=require("../../store/organizations.cjs"),y=require("../../store/memberships.cjs");require("../../store/departments.cjs");const C=require("../../../spots/store/spots.cjs");require("./Organization.vue2.cjs");const N={key:0,class:"pd-thin for-transition w-100"},V={class:"pos-relative"},B={key:0},x={__name:"Organization",setup(z){const c=d.useRouter(),t=d.useRoute();let m=t.query.tab?t.query.tab:"products";const i=e.ref(null);e.onMounted(async()=>{i.value=await a.actions.read({_id:t.params._id,user:o.state.user._id}),await y.actions.read(t.params._id)});const r=e.ref(m);return t.query.tab=r.value,e.watch(r,l=>{c.replace({query:null})}),(l,n)=>{const u=e.resolveComponent("router-link");return i.value?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(g.default,{organization:a.state.current,user:o.state.user,class:"mn-b-semi"},null,8,["organization","user"]),e.createVNode(f.default,{selected:r.value,"onUpdate:selected":n[0]||(n[0]=s=>r.value=s),tabs:[{name:"Community",value:"community"},{name:"Menu",value:"products"},{name:"Events",value:"events"},{name:"Spots",value:"spots"}],class:"mn-b-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createElementVNode("div",V,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="community"?(e.openBlock(),e.createBlock(h.default,{key:0,user:o.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==="events"?(e.openBlock(),e.createBlock(v.default,{key:0,user:o.state.user._id,owner:e.unref(t).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),r.value==="products"&&o.state.user._id===a.state.current.owner?(e.openBlock(),e.createBlock(k.default,{key:0,class:"flex-nowrap gap-thin mn-b-small flex"},{default:e.withCtx(()=>[e.createVNode(u,{class:"bg-black t-white uppercase t-semi pd-thin radius-extra",to:{name:"ProductAdd",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Add Product ")]),_:1},8,["to"]),e.createVNode(u,{class:"uppercase t-semi pd-thin radius-extra",to:{name:"Leftovers",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Change Invetory ")]),_:1},8,["to"]),e.createVNode(u,{class:"d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",to:{name:"Backoffice",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Go to Backoffice ")]),_:1},8,["to"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="products"?(e.openBlock(),e.createBlock(w.default,{key:0,organization:a.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="spots"?(e.openBlock(),e.createElementBlock("div",B,[e.createVNode(b.default,{states:{empty:{title:"No Spots Found",description:"Currently, there are no spots available."}},store:{read:s=>C.actions.read(e.unref(t).params._id),state:a.state},options:{user:o.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:s})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s,(p,_)=>(e.openBlock(),e.createBlock(q.default,{key:_,spot:p,organization:a.state.current,class:"radius-big bg-grey mn-b-thin"},null,8,["spot","organization"]))),128))]),_:1},8,["store","options"]),o.state.user._id===a.state.current.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[1]||(n[1]=s=>l.$router.push(`/spots/${a.state.current._id}/spots/create`)),class:"mn-b-thin bg-main button w-100"}," Add spot ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}}};exports.default=x;
|
package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js
CHANGED
@@ -28,19 +28,19 @@ const G = {
|
|
28
28
|
setup(j) {
|
29
29
|
const y = V(), e = q();
|
30
30
|
let k = e.query.tab ? e.query.tab : "products";
|
31
|
-
const
|
31
|
+
const b = g(null);
|
32
32
|
$(async () => {
|
33
|
-
|
33
|
+
b.value = await R.read({
|
34
34
|
_id: e.params._id,
|
35
35
|
user: n.user._id
|
36
36
|
}), await T.read(e.params._id);
|
37
37
|
});
|
38
38
|
const r = g(k);
|
39
|
-
return e.query.tab = r.value, z(r, (
|
39
|
+
return e.query.tab = r.value, z(r, (v) => {
|
40
40
|
y.replace({ query: null });
|
41
|
-
}), (
|
41
|
+
}), (v, l) => {
|
42
42
|
const _ = x("router-link");
|
43
|
-
return
|
43
|
+
return b.value ? (a(), p("div", G, [
|
44
44
|
t(F, {
|
45
45
|
organization: i.current,
|
46
46
|
user: n.user,
|
@@ -174,8 +174,8 @@ const G = {
|
|
174
174
|
}, 8, ["store", "options"]),
|
175
175
|
n.user._id === i.current.owner ? (a(), p("button", {
|
176
176
|
key: 0,
|
177
|
-
onClick: l[1] || (l[1] = (m) =>
|
178
|
-
class: "mn-b-thin button w-100"
|
177
|
+
onClick: l[1] || (l[1] = (m) => v.$router.push(`/spots/${i.current._id}/spots/create`)),
|
178
|
+
class: "mn-b-thin bg-main button w-100"
|
179
179
|
}, " Add spot ")) : s("", !0)
|
180
180
|
])) : s("", !0)
|
181
181
|
]),
|
@@ -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.vue.cjs");const l=require("../../../../components/Field/Field.
|
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.vue.cjs");require("../../../../components/Select/Select.vue2.cjs");const f=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),g=require("../../../../components/UploadImage/UploadImage.vue.cjs"),b=require("../../../../components/Button/Button.vue.cjs");require("../../../../components/Popup/Popup.vue2.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
@@ -5,11 +5,11 @@ 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
7
|
import "../../../../components/Tab/Tab.vue.js";
|
8
|
-
import i from "../../../../components/Field/Field.
|
9
|
-
import "../../../../components/Select/Select.
|
8
|
+
import i from "../../../../components/Field/Field.vue.js";
|
9
|
+
import "../../../../components/Select/Select.vue2.js";
|
10
10
|
import U from "../../../../components/SelectMulti/SelectMulti.vue.js";
|
11
11
|
import k from "../../../../components/UploadImage/UploadImage.vue.js";
|
12
|
-
import T from "../../../../components/Button/Button.
|
12
|
+
import T from "../../../../components/Button/Button.vue.js";
|
13
13
|
import "../../../../components/Popup/Popup.vue2.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/sections/Documents.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),m=require("../../../../components/Field/Field.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),m=require("../../../../components/Field/Field.vue.cjs");require("vue-i18n");const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");require("../../../../components/Popup/Popup.vue2.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Button/Button.vue2.cjs");require("./Documents.vue2.cjs");const f=o=>(e.pushScopeId("data-v-f93fcad7"),o=o(),e.popScopeId(),o),v={class:"documents"},h=f(()=>e.createElementVNode("h3",{class:"mn-b-small"},"Список документов",-1)),k={class:"mn-b-big cols-4"},b=["onClick"],y={class:"mn-b-small"},E={class:"t-semi t-transp radius-small"},B={__name:"Documents",setup(o){r.useRouter(),r.useRoute();let l=[{name:"Паспорт",status:"Не добавлен",inputs:[{type:"text",name:"Номер и серия"},{type:"text",name:"Место выдачи"},{type:"text",name:"Дата выдачи"}]},{name:"ИНН",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"СНИЛС",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"Военный билет",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]}];const s=e.ref(!1),a=e.ref(null),p=u=>{a.value=u,s.value=!0},c=()=>{s.value=!1},i=()=>{c()};return e.watchEffect(()=>{}),(u,q)=>{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:x=>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,11 +1,11 @@
|
|
1
1
|
import { ref as r, watchEffect as y, resolveComponent as P, openBlock as t, createElementBlock as s, createElementVNode as o, Fragment as i, renderList as d, unref as _, toDisplayString as f, createVNode as h, withCtx as k, pushScopeId as w, popScopeId as C } from "vue";
|
2
2
|
import { useRouter as I, useRoute as g } from "vue-router";
|
3
|
-
import D from "../../../../components/Field/Field.
|
3
|
+
import D from "../../../../components/Field/Field.vue.js";
|
4
4
|
import "vue-i18n";
|
5
5
|
import S from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
6
6
|
import "../../../../components/Popup/Popup.vue2.js";
|
7
7
|
import "../../../../components/Loader/Loader.vue.js";
|
8
|
-
import "../../../../components/Button/Button.
|
8
|
+
import "../../../../components/Button/Button.vue2.js";
|
9
9
|
import "./Documents.vue2.js";
|
10
10
|
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 = {
|
11
11
|
__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"),u=require("../../../../components/Field/Field.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue2.cjs");const m=require("../../../../components/Button/Button.vue.cjs"),p=require("../../../icons/navigation/IconDelete.vue.cjs"),f=require("../../../icons/navigation/IconAdd.vue.cjs");require("../../../middlewares/client/inputs.validation.cjs");require("../../store/invites.cjs");const b={class:"mn-b-thin t-transp p-medium"},g={class:"cols-1 mn-b-small radius-medium pd-semi bg-grey"},v=["onClick"],h=e.createElementVNode("span",null,"Invite to organization",-1),k={__name:"MembersAdd",props:{organization:Object,text:String},emits:["send-invite"],setup(a,{emit:s}){const o=e.ref(null),r=s,t=e.ref([{contact:""}]);async function c(){r("send-invite",t.value)}return(_,i)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("p",b,e.toDisplayString(a.text),1),e.createElementVNode("section",g,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(n,l)=>(e.openBlock(),e.createElementBlock("div",{key:l,class:"br-1px br-solid br-grey flex gap-thin radius-small mn-b-thin"},[e.createVNode(u.default,{field:n.contact,"onUpdate:field":d=>n.contact=d,placeholder:"Enter email or phone",class:"w-100 pd-small radius-small bg-white",validation:o.value},{default:e.withCtx(()=>[l<1?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:i[0]||(i[0]=()=>t.value.push({contact:""})),class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-green"},[e.createVNode(f.default,{class:"i-medium",fill:"rgb(var(--white)"})])):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:()=>t.value.splice(l,1),class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},[e.createVNode(p.default,{class:"i-medium",fill:"rgb(var(--white)"})],8,v))]),_:2},1032,["field","onUpdate:field","validation"])]))),128))]),e.createVNode(m.default,{submit:c,class:"w-100 bg-main"},{default:e.withCtx(()=>[h]),_:1})]))}};exports.default=k;
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ref as r, openBlock as e, createElementBlock as t, createElementVNode as a, toDisplayString as _, Fragment as g, renderList as v, createVNode as s, withCtx as c } from "vue";
|
2
|
-
import h from "../../../../components/Field/Field.
|
3
|
-
import "../../../../components/Select/Select.
|
4
|
-
import x from "../../../../components/Button/Button.
|
2
|
+
import h from "../../../../components/Field/Field.vue.js";
|
3
|
+
import "../../../../components/Select/Select.vue2.js";
|
4
|
+
import x from "../../../../components/Button/Button.vue.js";
|
5
5
|
import k from "../../../icons/navigation/IconDelete.vue.js";
|
6
6
|
import y from "../../../icons/navigation/IconAdd.vue.js";
|
7
7
|
import "../../../middlewares/client/inputs.validation.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Select/Select.vue2.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Button/Button.vue2.cjs");require("../../../../components/Dropdown/Dropdown.vue2.cjs");require("../../../../components/Chips/Chips.vue2.cjs");const q=require("../../../auth/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue2.cjs");require("../../../reports/store/reports.cjs");const y=require("../../store/organizations.cjs"),m=require("../blocks/CardOrganization.vue.cjs"),b=require("../blocks/EmptyState.vue.cjs");require("./Unit.vue.cjs");require("./Organizations.vue2.cjs");const g={class:"for-transition bg-white radius-big w-100"},k={class:""},_={key:1,class:"cols-1"},h={__name:"Organizations",props:{owner:{type:String,default:null},user:{type:[String,Number],default:null},onlyuser:{type:[String,Number],default:null}},async setup(c){let t,u;const o=c,a=e.ref(null);a.value=([t,u]=e.withAsyncContext(()=>y.actions.read({owner:o.owner,user:o.user,onlyuser:o.onlyuser})),t=await t,u(),t);const d=s.useRouter(),n=s.useRoute();let p=n.query.tab?n.query.tab:"details";const i=e.ref(p);return n.query.tab=i.value,e.watch(i,r=>{d.replace({query:{...n.query,tab:r}})}),(r,v)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",k,[a.value<1?(e.openBlock(),e.createBlock(b.default,{key:0,title:"You Haven't Joined Any Organization Yet",description:"Weeder is all about community. Join an organization or maybe you want to create your own?",action:"Create organization",callback:r.a=()=>r.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,l=>(e.openBlock(),e.createBlock(m.default,{key:l._id,organization:l,user:q.state.user,onUpdateMembership:r.handleMembershipUpdate,class:e.normalizeClass(["w-100",{"mn-r-small":r.index!==a.value.length-1}])},null,8,["organization","user","onUpdateMembership","class"]))),128))]))])]))}};exports.default=h;
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js
CHANGED
@@ -2,10 +2,10 @@ import { ref as m, withAsyncContext as b, watch as _, openBlock as t, createElem
|
|
2
2
|
import { useRouter as v, useRoute as z } from "vue-router";
|
3
3
|
import "../../../../../../node_modules/js-cookie/dist/js.cookie.js";
|
4
4
|
import "../../../../components/Tab/Tab.vue.js";
|
5
|
-
import "../../../../components/Field/Field.
|
6
|
-
import "../../../../components/Select/Select.
|
5
|
+
import "../../../../components/Field/Field.vue2.js";
|
6
|
+
import "../../../../components/Select/Select.vue2.js";
|
7
7
|
import "../../../../components/Loader/Loader.vue.js";
|
8
|
-
import "../../../../components/Button/Button.
|
8
|
+
import "../../../../components/Button/Button.vue2.js";
|
9
9
|
import "../../../../components/Dropdown/Dropdown.vue2.js";
|
10
10
|
import "../../../../components/Chips/Chips.vue2.js";
|
11
11
|
import { state as k } from "../../../auth/store/auth.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../../../node_modules/axios/lib/axios.cjs"),l=require("vue"),o=require("../../globals/store/globals.cjs"),n=d.default.create({baseURL:process.env.API_URL,withCredentials:!0}),a=l.reactive({memberships:[],error:null}),p={async read(r={}){let e={};r._id&&(e._id=r._id),r.user&&(e.user=r.user),r.target&&(e.target=r.target),r.
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../../../node_modules/axios/lib/axios.cjs"),l=require("vue"),o=require("../../globals/store/globals.cjs"),n=d.default.create({baseURL:process.env.API_URL,withCredentials:!0}),a=l.reactive({memberships:[],error:null}),p={async read(r={}){let e={};r._id&&(e._id=r._id),r.user&&(e.user=r.user),r.target&&(e.target=r.target),r.role&&(e.role=r.role);try{const s=await n.get("/api/memberships",{params:e});return a.error=null,a.memberships=s.data,Promise.resolve(s.data)}catch(s){return o.setError(s),Promise.reject(s)}},async create(r){try{const e=await n.post("/api/memberships/create",r);return a.error=null,Promise.resolve(e.data)}catch(e){return o.setError(e),Promise.reject(e)}},async update(r){try{const e=await n.post("/api/memberships/update",r);return a.error=null,Promise.resolve(e.data)}catch(e){return o.setError(e),Promise.reject(e)}},async delete(r){try{const e=await n.post("/api/memberships/delete",{_id:r});return a.error=null,Promise.resolve(e.data)}catch(e){return o.setError(e),Promise.reject(e)}}},h={handleMembershipUpdate(r,e,s,f,u,c){let t;if(Array.isArray(r)?t=r.find(i=>i._id===e.target):typeof r=="object"&&r._id===e.target&&(t=r),t)if(t[u]=s,s)t.memberships.push(e),t[c]+=1;else{const i=t.memberships.findIndex(m=>m._id===e._id);i!==-1&&(t.memberships.splice(i,1),t[c]-=1)}}};l.watch(a,r=>{});exports.actions=p;exports.mutations=h;exports.state=a;
|
@@ -10,7 +10,7 @@ const c = p.create({
|
|
10
10
|
}), _ = {
|
11
11
|
async read(r = {}) {
|
12
12
|
let e = {};
|
13
|
-
r._id && (e._id = r._id), r.user && (e.user = r.user), r.target && (e.target = r.target), r.
|
13
|
+
r._id && (e._id = r._id), r.user && (e.user = r.user), r.target && (e.target = r.target), r.role && (e.role = r.role);
|
14
14
|
try {
|
15
15
|
const s = await c.get("/api/memberships", { params: e });
|
16
16
|
return a.error = null, a.memberships = s.data, Promise.resolve(s.data);
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("../../../../components/Field/Field.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("../../../../components/Field/Field.vue.cjs"),f=require("../../../../components/Select/Select.vue.cjs"),y=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),g=require("../../../icons/navigation/IconAdd.vue.cjs"),V=require("../../../icons/navigation/IconDelete.vue.cjs"),k={class:"gap-thin"},h={class:"gap-thin mn-b-thin flex-nowrap flex"},q=["disabled"],w={class:"gap-thin flex-nowrap flex"},x={__name:"CardPosition",props:{product:Object,array:Array,products:Array},emits:["add","delete","update"],setup(s,{emit:i}){const t=s,c=i,l=e.ref(null),a=e.ref(1),r=e.ref("pcs"),u=e.ref(0),p=e.computed(()=>l.value&&a.value>0&&u.value>0);e.watch(t.array,()=>{l.value=t.product,a.value=t.product.quantity||1,u.value=t.product.price,r.value=t.product.type}),t.product&&(l.value=t.product,a.value=t.product.quantity||1,u.value=t.product.price,r.value=t.product.type),e.watch([l,a,u,r],()=>{c("update",{...l.value,price:u.value,quantity:a.value||1,type:r.value})});function m(){c("add",{...l.value,price:u.value,quantity:a.value||1,type:r.value})}function v(){c("delete",{...l.value,price:u.value,quantity:a.value||1,type:r.value})}return(b,d)=>(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("div",h,[e.createVNode(y.default,{modelValue:l.value,"onUpdate:modelValue":d[0]||(d[0]=o=>l.value=o),options:s.products,label:"name",multiple:!1,taggable:!1,placeholder:"Select a product",class:"bg-white br-solid br-1px br-black-transp-5 pd-small radius-small"},null,8,["modelValue","options"]),s.product?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,disabled:!p.value,onClick:m,class:"bg-main aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(g.default),{class:"i-semi"})],8,q)),s.product?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:v,class:"bg-red aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(V.default),{class:"i-semi"})])):e.createCommentVNode("",!0)]),e.createElementVNode("div",w,[e.createVNode(n.default,{field:u.value,"onUpdate:field":d[1]||(d[1]=o=>u.value=o),type:"number",label:"Price",symbol:b.returnCurrency(),class:"bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small"},null,8,["field","symbol"]),e.createVNode(n.default,{field:a.value,"onUpdate:field":d[3]||(d[3]=o=>a.value=o),type:"number",label:"Qty",class:"bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small"},{default:e.withCtx(()=>[e.createVNode(f.default,{select:r.value,"onUpdate:select":d[2]||(d[2]=o=>r.value=o),options:["pcs","g","ml"],class:"bg-grey pd-r-thin pd-l-thin pd-t-nano pd-b-nano radius-thin"},null,8,["select"])]),_:1},8,["field"])])]))}};exports.default=x;
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ref as i, computed as V, watch as m, openBlock as n, createElementBlock as c, createElementVNode as v, createVNode as s, unref as b, createCommentVNode as f, withCtx as C } from "vue";
|
2
|
-
import y from "../../../../components/Field/Field.
|
3
|
-
import P from "../../../../components/Select/Select.
|
2
|
+
import y from "../../../../components/Field/Field.vue.js";
|
3
|
+
import P from "../../../../components/Select/Select.vue.js";
|
4
4
|
import q from "../../../../components/SelectMulti/SelectMulti.vue.js";
|
5
5
|
import S from "../../../icons/navigation/IconAdd.vue.js";
|
6
6
|
import U from "../../../icons/navigation/IconDelete.vue.js";
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-i18n"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-i18n"),l=require("../../../icons/navigation/IconEdit.vue.cjs"),i=require("../elements/THC.vue.cjs"),u=require("../elements/Price.vue.cjs"),s=require("../../../icons/placeholders/PlaceholderImage.vue.cjs"),d=["src"],m={class:"pd-medium t-left product-card-content"},g={class:"mn-b-thin t-semi h4"},k={key:1,class:"mn-b-small t-transp p-small"},f={__name:"CardProduct",props:{product:{type:Object},user:{type:[Object,String]},type:{type:Object}},setup(t){return n.useI18n(),(o,h)=>{var c,r;const a=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["radius-big cols-1 o-hidden pos-relative",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black t-white":"bg-white"])},[t.user&&t.user.roles&&(t.user.roles.includes("ROLE_MODERATOR")||t.user.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createBlock(a,{key:0,to:{name:"ProductEdit",params:{_id:o.$route.params.organization,product:t.product._id}},class:"z-index-2 cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"},{default:e.withCtx(()=>[e.createVNode(l.default,{class:"i-regular",classes:"fill-white"})]),_:1},8,["to"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["o-hidden w-100 pos-relative aspect-1x1",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black":"bg-white"])},[t.product.images[0]?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.product.images[0],class:"pos-absolute object-fit-cover h-max-100 w-100"},null,8,d)):(e.openBlock(),e.createBlock(s.default,{key:1,class:"pos-absolute h-100 w-100"})),((c=t.product.information)==null?void 0:c.length)>0&&((r=t.product.information[1])==null?void 0:r.name)==="THC"?(e.openBlock(),e.createBlock(i.default,{key:2,product:t.product},null,8,["product"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",m,[t.product.information.length>0?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["t-semi h6",t.product.information[2]&&t.product.information[2].value==="AAAA"?"t-violet":"t-main"])},e.toDisplayString(t.product.information[0].value),3)):e.createCommentVNode("",!0),e.createElementVNode("p",g,e.toDisplayString(t.product.name),1),t.product.description&&!t.product.localization?(e.openBlock(),e.createElementBlock("p",k,e.toDisplayString(t.product.description.substring(0,99))+"... ",1)):e.createCommentVNode("",!0),e.createVNode(u.default,{product:t.product,size:"small",class:e.normalizeClass(t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-third t-white":"")},null,8,["product","class"])])],2)}}};exports.default=f;
|
@@ -1,13 +1,13 @@
|
|
1
|
-
import { resolveComponent as f, openBlock as e, createElementBlock as o, normalizeClass as i, createBlock as a, withCtx as
|
2
|
-
import { useI18n as
|
3
|
-
import
|
4
|
-
import
|
1
|
+
import { resolveComponent as f, openBlock as e, createElementBlock as o, normalizeClass as i, createBlock as a, withCtx as h, createVNode as d, createCommentVNode as r, createElementVNode as c, toDisplayString as n } from "vue";
|
2
|
+
import { useI18n as g } from "vue-i18n";
|
3
|
+
import b from "../../../icons/navigation/IconEdit.vue.js";
|
4
|
+
import p from "../elements/THC.vue.js";
|
5
5
|
import A from "../elements/Price.vue.js";
|
6
6
|
import k from "../../../icons/placeholders/PlaceholderImage.vue.js";
|
7
|
-
const v = ["src"], y = { class: "pd-medium t-left product-card-content" }, w = { class: "mn-b-thin t-semi h4" },
|
7
|
+
const v = ["src"], y = { class: "pd-medium t-left product-card-content" }, w = { class: "mn-b-thin t-semi h4" }, E = {
|
8
8
|
key: 1,
|
9
9
|
class: "mn-b-small t-transp p-small"
|
10
|
-
},
|
10
|
+
}, L = {
|
11
11
|
__name: "CardProduct",
|
12
12
|
props: {
|
13
13
|
product: {
|
@@ -21,7 +21,7 @@ const v = ["src"], y = { class: "pd-medium t-left product-card-content" }, w = {
|
|
21
21
|
}
|
22
22
|
},
|
23
23
|
setup(t) {
|
24
|
-
return
|
24
|
+
return g(), (l, O) => {
|
25
25
|
var u, s;
|
26
26
|
const m = f("router-link");
|
27
27
|
return e(), o("div", {
|
@@ -30,7 +30,7 @@ const v = ["src"], y = { class: "pd-medium t-left product-card-content" }, w = {
|
|
30
30
|
t.product.information[2] && t.product.information[2].value === "AAAA" ? "bg-black t-white" : "bg-white"
|
31
31
|
])
|
32
32
|
}, [
|
33
|
-
t.user ? (e(), a(m, {
|
33
|
+
t.user && t.user.roles && (t.user.roles.includes("ROLE_MODERATOR") || t.user.roles.includes("ROLE_ADMIN")) ? (e(), a(m, {
|
34
34
|
key: 0,
|
35
35
|
to: {
|
36
36
|
name: "ProductEdit",
|
@@ -41,8 +41,8 @@ const v = ["src"], y = { class: "pd-medium t-left product-card-content" }, w = {
|
|
41
41
|
},
|
42
42
|
class: "z-index-2 cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"
|
43
43
|
}, {
|
44
|
-
default:
|
45
|
-
d(
|
44
|
+
default: h(() => [
|
45
|
+
d(b, {
|
46
46
|
class: "i-regular",
|
47
47
|
classes: "fill-white"
|
48
48
|
})
|
@@ -63,7 +63,7 @@ const v = ["src"], y = { class: "pd-medium t-left product-card-content" }, w = {
|
|
63
63
|
key: 1,
|
64
64
|
class: "pos-absolute h-100 w-100"
|
65
65
|
})),
|
66
|
-
((u = t.product.information) == null ? void 0 : u.length) > 0 && ((s = t.product.information[1]) == null ? void 0 : s.name) === "THC" ? (e(), a(
|
66
|
+
((u = t.product.information) == null ? void 0 : u.length) > 0 && ((s = t.product.information[1]) == null ? void 0 : s.name) === "THC" ? (e(), a(p, {
|
67
67
|
key: 2,
|
68
68
|
product: t.product
|
69
69
|
}, null, 8, ["product"])) : r("", !0)
|
@@ -77,7 +77,7 @@ const v = ["src"], y = { class: "pd-medium t-left product-card-content" }, w = {
|
|
77
77
|
])
|
78
78
|
}, n(t.product.information[0].value), 3)) : r("", !0),
|
79
79
|
c("p", w, n(t.product.name), 1),
|
80
|
-
t.product.description && !t.product.localization ? (e(), o("p",
|
80
|
+
t.product.description && !t.product.localization ? (e(), o("p", E, n(t.product.description.substring(0, 99)) + "... ", 1)) : r("", !0),
|
81
81
|
d(A, {
|
82
82
|
product: t.product,
|
83
83
|
size: "small",
|
@@ -91,5 +91,5 @@ const v = ["src"], y = { class: "pd-medium t-left product-card-content" }, w = {
|
|
91
91
|
}
|
92
92
|
};
|
93
93
|
export {
|
94
|
-
|
94
|
+
L as default
|
95
95
|
};
|
package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.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"),s=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"),s=require("../../../../components/Field/Field.vue.cjs"),d=require("../../store/leftovers.cjs");require("./LeftoverPositions.vue2.cjs");const u={class:"flex-column flex-wrap block"},m={key:0,class:"w-100"},f={class:"mn-r-regular w-100"},p=["onClick"],y={__name:"LeftoverPositions",props:{order:Object},setup(o){r.useRouter(),r.useRoute();const i=o;function a(n){d.actions.deleteItemFromLeftover(i.order.positions[n])}return(n,b)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("ul",u,[o.order.positions.length===0?(e.openBlock(),e.createElementBlock("span",m," No positions added yet ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.order.positions,(t,c)=>(e.openBlock(),e.createElementBlock("li",{key:t._id,class:"w-100 flex-center flex-nowrap flex"},[e.createElementVNode("span",f,e.toDisplayString(t.name),1),e.createVNode(s.default,{field:t.price,"onUpdate:field":l=>t.price=l,type:"number",label:"Price",symbol:n.returnCurrency(),class:"bg-grey pd-medium radius-small"},null,8,["field","onUpdate:field","symbol"]),e.createVNode(s.default,{field:t.quantity,"onUpdate:field":l=>t.quantity=l,type:"number",label:"Quantity",class:"bg-grey pd-medium radius-small",symbol:t.type},null,8,["field","onUpdate:field","symbol"]),e.createElementVNode("a",{class:"button",onClick:l=>a(c)}," Delete ",8,p)]))),128))])]))}};exports.default=y;
|
package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { openBlock as o, createElementBlock as l, createElementVNode as s, createCommentVNode as u, Fragment as f, renderList as p, toDisplayString as y, createVNode as i } from "vue";
|
2
2
|
import { useRouter as b, useRoute as _ } from "vue-router";
|
3
|
-
import a from "../../../../components/Field/Field.
|
3
|
+
import a from "../../../../components/Field/Field.vue.js";
|
4
4
|
import { actions as g } from "../../store/leftovers.js";
|
5
5
|
import "./LeftoverPositions.vue2.js";
|
6
6
|
const k = { class: "flex-column flex-wrap block" }, h = {
|
package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router");require("../../../../components/Field/Field.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router");require("../../../../components/Field/Field.vue2.cjs");const i=require("./CardPosition.vue.cjs"),u=require("../../store/leftovers.cjs");require("./ListPositions.vue2.cjs");const a={class:"flex-column flex-wrap"},d={key:0,class:"w-100"},m={class:"flex-v-center flex radius-medium pd-small bg-white w-100"},p={__name:"ListPositions",props:{order:Object},setup(t){n.useRouter(),n.useRoute();const l=t;function s(r){u.actions.deleteItemFromLeftover(l.order.positions[r])}return(r,f)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("ul",a,[t.order.positions.length===0?(e.openBlock(),e.createElementBlock("span",d," No positions added yet ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.order.positions,(o,c)=>(e.openBlock(),e.createElementBlock("li",{key:o._id,class:"w-100 gap-small flex-stretch flex-center flex-nowrap flex"},[e.createElementVNode("span",m,e.toDisplayString(o.name),1),e.createVNode(i.default,{products:[],product:o,onAdd:_=>s(c)},null,8,["product","onAdd"])]))),128))])]))}};exports.default=p;
|
package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { openBlock as e, createElementBlock as t, createElementVNode as n, createCommentVNode as d, Fragment as a, renderList as m, toDisplayString as p, createVNode as u } from "vue";
|
2
2
|
import { useRouter as f, useRoute as _ } from "vue-router";
|
3
|
-
import "../../../../components/Field/Field.
|
3
|
+
import "../../../../components/Field/Field.vue2.js";
|
4
4
|
import x from "./CardPosition.vue.js";
|
5
5
|
import { actions as h } from "../../store/leftovers.js";
|
6
6
|
import "./ListPositions.vue2.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../../../node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs"),l=require("vue-router"),t=require("../../store/categories.cjs"),d=require("../../../../components/Button/Button.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../../../node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs"),l=require("vue-router"),t=require("../../store/categories.cjs"),d=require("../../../../components/Button/Button.vue.cjs"),m=require("../../../../components/Block/Block.vue.cjs"),g=require("../blocks/CardCategory.vue.cjs"),f={class:"pd-thin"},p=e.createElementVNode("h1",{class:"mn-r-auto"}," Product Categories ",-1),_={__name:"Categories",setup(C){l.useRoute(),l.useRouter(),e.onMounted(async()=>{await t.actions.fetchCategories()});function s(){t.state.all.forEach((r,a)=>{r.order=a}),o()}async function o(){await t.actions.updateCategories(t.state.all)}async function i(r){confirm(`Are you sure you want to delete the category "${r.name}"?`)?await t.actions.deleteCategory(r.url):alert("Category deletion cancelled")}return(r,a)=>{const u=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",f,[e.createVNode(m.default,{class:"radius-big mn-b-thin flex-nowrap flex-v-center flex"},{default:e.withCtx(()=>[p,e.createVNode(u,{to:{name:"CategoryAdd",params:{_id:r.$route.params._id}},class:"mn-r-medium uppercase t-medium pd-small radius-big bg-white nav-link"},{default:e.withCtx(()=>[e.createTextVNode(" Add category ")]),_:1},8,["to"]),e.createVNode(d.default,{onClick:o,class:"pd-small radius-big bg-black t-white uppercase t-medium"},{default:e.withCtx(()=>[e.createTextVNode(" Change Order ")]),_:1})]),_:1}),e.createVNode(e.unref(c.VueDraggableNext),{class:"dragArea list-group w-full",list:t.state.all,"item-key":"order",onEnd:s},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.all,(n,h)=>(e.openBlock(),e.createBlock(g.default,{key:n.id,category:n,onDelete:i,class:"pd-medium bg-grey radius-medium mn-b-thin"},null,8,["category"]))),128))]),_:1},8,["list"])])}}};exports.default=_;
|
@@ -2,7 +2,7 @@ import { onMounted as p, resolveComponent as _, openBlock as i, createElementBlo
|
|
2
2
|
import { VueDraggableNext as k } from "../../../../../../node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js";
|
3
3
|
import { useRoute as w, useRouter as x } from "vue-router";
|
4
4
|
import { actions as n, state as a } from "../../store/categories.js";
|
5
|
-
import $ from "../../../../components/Button/Button.
|
5
|
+
import $ from "../../../../components/Button/Button.vue.js";
|
6
6
|
import v from "../../../../components/Block/Block.vue.js";
|
7
7
|
import A from "../blocks/CardCategory.vue.js";
|
8
8
|
const E = { class: "pd-thin" }, N = /* @__PURE__ */ b("h1", { class: "mn-r-auto" }, " Product Categories ", -1), T = {
|