@ozdao/prometheus-framework 0.2.203 → 0.2.205
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +24 -15
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +24 -15
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +51 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +37 -22
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js.map +1 -0
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +8 -6
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +8 -6
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +6 -5
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +6 -5
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +6 -5
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +6 -5
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +4 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +4 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js.map +1 -1
- 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/backoffice/components/partials/Sidebar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.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/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +4 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.js +4 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +29 -29
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +109 -102
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +110 -103
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.cjs +85 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.cjs.map +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.js +85 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.js.map +1 -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/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js.map +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +4 -5
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +4 -5
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +90 -96
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +91 -97
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +2 -2
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +72 -25
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +81 -34
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js.map +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 +1 -1
- 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.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +7 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +7 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +2 -2
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +2 -2
- 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/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
- package/dist/prometheus-framework.cjs.js +14 -14
- package/dist/prometheus-framework.es.js +2830 -2823
- package/dist/style.css +89 -21
- package/package.json +1 -1
- package/src/components/Feed/Feed.vue +23 -10
- package/src/components/Tab/Tab.vue +10 -7
- package/src/modules/auth/views/components/pages/ResetPassword.vue +5 -4
- package/src/modules/auth/views/components/pages/SignIn.vue +5 -3
- package/src/modules/auth/views/components/pages/SignUp.vue +3 -2
- package/src/modules/globals/globals.client.js +5 -2
- package/src/modules/globals/views/components/layouts/Client.vue +100 -21
- package/src/modules/globals/views/components/partials/Header.vue +18 -29
- package/src/modules/globals/views/components/partials/Sidebar.vue +0 -2
- package/src/modules/marketplace/components/layouts/Marketplace.vue +16 -9
- package/src/modules/orders/components/partials/ShopCart.vue +3 -3
- package/src/modules/organizations/components/pages/Organization.vue +9 -6
- package/src/modules/organizations/components/sections/DetailsTab.vue +132 -133
- package/src/modules/products/components/pages/Products.vue +89 -10
- package/src/modules/products/components/sections/FilterProducts.vue +1 -1
- package/src/modules/products/components/sections/SectionProduct.vue +4 -0
package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
import { openBlock,
|
1
|
+
import { openBlock, createElementBlock, createBlock, withCtx, createElementVNode, createVNode, createCommentVNode, toDisplayString, unref, renderSlot } from "vue";
|
2
2
|
import { useRoute } from "vue-router";
|
3
3
|
import _sfc_main$1 from "../../../../components/Dropdown/Dropdown.vue.js";
|
4
4
|
import _sfc_main$7 from "../../../../components/Text/Text.vue.js";
|
5
|
-
import _sfc_main$8 from "../../../../components/Chips/Chips.
|
5
|
+
import _sfc_main$8 from "../../../../components/Chips/Chips.vue2.js";
|
6
6
|
import _sfc_main$6 from "../../../icons/entities/IconFollowing.vue.js";
|
7
7
|
import _sfc_main$5 from "../../../icons/navigation/IconEdit.vue.js";
|
8
8
|
import _sfc_main$2 from "../../../icons/navigation/IconEllipsis.vue.js";
|
@@ -36,106 +36,100 @@ const _sfc_main = {
|
|
36
36
|
mutations.handleMembershipUpdate(state.current, membership, status, target, statusName, statusNumber);
|
37
37
|
};
|
38
38
|
return (_ctx, _cache) => {
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
39
|
+
var _a, _b;
|
40
|
+
return openBlock(), createElementBlock("section", _hoisted_1, [
|
41
|
+
__props.user._id !== __props.organization.owner ? (openBlock(), createBlock(_sfc_main$1, {
|
42
|
+
key: 0,
|
43
|
+
label: { component: _sfc_main$2, class: "i-regular t-transp" },
|
44
|
+
align: "right",
|
45
|
+
class: "cursor-pointer pos-absolute pos-r-regular pos-t-regular pd-thin radius-extra"
|
46
|
+
}, {
|
47
|
+
default: withCtx(() => [
|
48
|
+
createElementVNode("section", _hoisted_2, [
|
49
|
+
createVNode(_sfc_main$3, {
|
50
|
+
user: __props.user._id,
|
51
|
+
type: "organization",
|
52
|
+
target: __props.organization._id,
|
53
|
+
text: "Report",
|
54
|
+
class: "w-100"
|
49
55
|
}, {
|
50
56
|
default: withCtx(() => [
|
51
|
-
|
52
|
-
createVNode(_sfc_main$3, {
|
53
|
-
user: __props.user._id,
|
54
|
-
type: "organization",
|
55
|
-
target: __props.organization._id,
|
56
|
-
text: "Report",
|
57
|
-
class: "w-100"
|
58
|
-
}, {
|
59
|
-
default: withCtx(() => [
|
60
|
-
_hoisted_3
|
61
|
-
]),
|
62
|
-
_: 1
|
63
|
-
}, 8, ["user", "target"]),
|
64
|
-
__props.user._id && __props.user._id !== __props.organization.owner ? (openBlock(), createBlock(_sfc_main$4, {
|
65
|
-
key: 0,
|
66
|
-
user: __props.user._id,
|
67
|
-
type: "organization",
|
68
|
-
role: "blocked",
|
69
|
-
target: __props.organization._id,
|
70
|
-
status: __props.organization.isBlocked,
|
71
|
-
text: { create: "Block", remove: "Unblock" },
|
72
|
-
onUpdateMembership: _cache[0] || (_cache[0] = (event) => handleMembershipUpdate(event, "isBlocked")),
|
73
|
-
class: "t-white w-100 mn-t-thin bg-red"
|
74
|
-
}, null, 8, ["user", "target", "status"])) : createCommentVNode("", true)
|
75
|
-
])
|
57
|
+
_hoisted_3
|
76
58
|
]),
|
77
59
|
_: 1
|
78
|
-
}, 8, ["
|
79
|
-
__props.user._id
|
80
|
-
key:
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
}
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
key: 2,
|
91
|
-
loading: "lazy",
|
92
|
-
src: (_ctx.FILE_SERVER_URL || "") + __props.organization.profile.photo,
|
93
|
-
class: "radius-big bg-light flex-center flex mn-b-small w-8r"
|
94
|
-
}, null, 8, _hoisted_4)) : (openBlock(), createBlock(PlaceholderOrganizationPic, {
|
95
|
-
key: 3,
|
96
|
-
class: "radius-medium mn-b-small i-extra"
|
97
|
-
})),
|
98
|
-
createElementVNode("h1", _hoisted_5, toDisplayString(__props.organization.profile.name), 1),
|
99
|
-
createElementVNode("div", _hoisted_6, [
|
100
|
-
createVNode(_sfc_main$6, { class: "i-medium mn-r-micro t-transp" }),
|
101
|
-
createElementVNode("p", _hoisted_7, toDisplayString(__props.organization.numberOfSubscribers) + " followers", 1),
|
102
|
-
__props.user._id && unref(route).params._id && unref(route).params._id !== __props.user._id && __props.organization.owner !== __props.user._id ? (openBlock(), createBlock(_sfc_main$4, {
|
103
|
-
key: 0,
|
104
|
-
user: __props.user._id,
|
105
|
-
type: "organization",
|
106
|
-
role: "subscriber",
|
107
|
-
target: __props.organization._id,
|
108
|
-
status: __props.organization.isSubscriber,
|
109
|
-
text: { create: "+", remove: "-" },
|
110
|
-
onUpdateMembership: _cache[2] || (_cache[2] = (event) => handleMembershipUpdate(event, "isSubscriber", "numberOfSubscribers")),
|
111
|
-
class: "mn-l-thin p-medium t-medium radius-extra i-semi"
|
112
|
-
}, null, 8, ["user", "target", "status"])) : createCommentVNode("", true)
|
113
|
-
]),
|
114
|
-
createElementVNode("p", _hoisted_8, [
|
115
|
-
createVNode(_sfc_main$7, {
|
116
|
-
text: __props.organization.profile.description || "",
|
117
|
-
showToggleText: true,
|
118
|
-
maxLen: 320
|
119
|
-
}, null, 8, ["text"])
|
120
|
-
]),
|
121
|
-
((_b = (_a = __props.organization.profile) == null ? void 0 : _a.tags) == null ? void 0 : _b.length) > 0 ? (openBlock(), createBlock(_sfc_main$8, {
|
122
|
-
key: 4,
|
123
|
-
chips: __props.organization.profile.tags,
|
124
|
-
class: "p-medium"
|
125
|
-
}, null, 8, ["chips"])) : createCommentVNode("", true),
|
126
|
-
Object.values(__props.organization.socials).some((value) => value) ? (openBlock(), createElementBlock("h4", _hoisted_9, " Find us in socials ")) : createCommentVNode("", true),
|
127
|
-
createVNode(_sfc_main$9, {
|
128
|
-
telegram: __props.organization.socials.telegram,
|
129
|
-
facebook: __props.organization.socials.facebook,
|
130
|
-
instagram: __props.organization.socials.instagram,
|
131
|
-
twitter: __props.organization.socials.twitter,
|
132
|
-
youtube: __props.organization.socials.youtube
|
133
|
-
}, null, 8, ["telegram", "facebook", "instagram", "twitter", "youtube"])
|
60
|
+
}, 8, ["user", "target"]),
|
61
|
+
__props.user._id && __props.user._id !== __props.organization.owner ? (openBlock(), createBlock(_sfc_main$4, {
|
62
|
+
key: 0,
|
63
|
+
user: __props.user._id,
|
64
|
+
type: "organization",
|
65
|
+
role: "blocked",
|
66
|
+
target: __props.organization._id,
|
67
|
+
status: __props.organization.isBlocked,
|
68
|
+
text: { create: "Block", remove: "Unblock" },
|
69
|
+
onUpdateMembership: _cache[0] || (_cache[0] = (event) => handleMembershipUpdate(event, "isBlocked")),
|
70
|
+
class: "t-white w-100 mn-t-thin bg-red"
|
71
|
+
}, null, 8, ["user", "target", "status"])) : createCommentVNode("", true)
|
134
72
|
])
|
135
|
-
]
|
136
|
-
|
137
|
-
|
138
|
-
|
73
|
+
]),
|
74
|
+
_: 1
|
75
|
+
}, 8, ["label"])) : createCommentVNode("", true),
|
76
|
+
__props.user._id === __props.organization.owner ? (openBlock(), createBlock(_sfc_main$5, {
|
77
|
+
key: 1,
|
78
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$router.push({
|
79
|
+
name: "Organization Edit",
|
80
|
+
params: {
|
81
|
+
_id: __props.organization._id
|
82
|
+
}
|
83
|
+
})),
|
84
|
+
class: "pos-absolute cursor-pointer pos-t-big pos-r-big i-regular t-transp"
|
85
|
+
})) : createCommentVNode("", true),
|
86
|
+
__props.organization.profile.photo ? (openBlock(), createElementBlock("img", {
|
87
|
+
key: 2,
|
88
|
+
loading: "lazy",
|
89
|
+
src: (_ctx.FILE_SERVER_URL || "") + __props.organization.profile.photo,
|
90
|
+
class: "radius-big bg-light flex-center flex mn-b-small w-8r"
|
91
|
+
}, null, 8, _hoisted_4)) : (openBlock(), createBlock(PlaceholderOrganizationPic, {
|
92
|
+
key: 3,
|
93
|
+
class: "radius-medium mn-b-small i-extra"
|
94
|
+
})),
|
95
|
+
createElementVNode("h1", _hoisted_5, toDisplayString(__props.organization.profile.name), 1),
|
96
|
+
createElementVNode("div", _hoisted_6, [
|
97
|
+
createVNode(_sfc_main$6, { class: "i-medium mn-r-micro t-transp" }),
|
98
|
+
createElementVNode("p", _hoisted_7, toDisplayString(__props.organization.numberOfSubscribers) + " followers", 1),
|
99
|
+
__props.user._id && unref(route).params._id && unref(route).params._id !== __props.user._id && __props.organization.owner !== __props.user._id ? (openBlock(), createBlock(_sfc_main$4, {
|
100
|
+
key: 0,
|
101
|
+
user: __props.user._id,
|
102
|
+
type: "organization",
|
103
|
+
role: "subscriber",
|
104
|
+
target: __props.organization._id,
|
105
|
+
status: __props.organization.isSubscriber,
|
106
|
+
text: { create: "+", remove: "-" },
|
107
|
+
onUpdateMembership: _cache[2] || (_cache[2] = (event) => handleMembershipUpdate(event, "isSubscriber", "numberOfSubscribers")),
|
108
|
+
class: "mn-l-thin p-medium t-medium radius-extra i-semi"
|
109
|
+
}, null, 8, ["user", "target", "status"])) : createCommentVNode("", true)
|
110
|
+
]),
|
111
|
+
createElementVNode("p", _hoisted_8, [
|
112
|
+
createVNode(_sfc_main$7, {
|
113
|
+
text: __props.organization.profile.description || "",
|
114
|
+
showToggleText: true,
|
115
|
+
maxLen: 320
|
116
|
+
}, null, 8, ["text"])
|
117
|
+
]),
|
118
|
+
((_b = (_a = __props.organization.profile) == null ? void 0 : _a.tags) == null ? void 0 : _b.length) > 0 ? (openBlock(), createBlock(_sfc_main$8, {
|
119
|
+
key: 4,
|
120
|
+
chips: __props.organization.profile.tags,
|
121
|
+
class: "p-medium"
|
122
|
+
}, null, 8, ["chips"])) : createCommentVNode("", true),
|
123
|
+
Object.values(__props.organization.socials).some((value) => value) ? (openBlock(), createElementBlock("h4", _hoisted_9, " Find us in socials ")) : createCommentVNode("", true),
|
124
|
+
createVNode(_sfc_main$9, {
|
125
|
+
telegram: __props.organization.socials.telegram,
|
126
|
+
facebook: __props.organization.socials.facebook,
|
127
|
+
instagram: __props.organization.socials.instagram,
|
128
|
+
twitter: __props.organization.socials.twitter,
|
129
|
+
youtube: __props.organization.socials.youtube
|
130
|
+
}, null, 8, ["telegram", "facebook", "instagram", "twitter", "youtube"]),
|
131
|
+
renderSlot(_ctx.$slots, "default")
|
132
|
+
]);
|
139
133
|
};
|
140
134
|
}
|
141
135
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DetailsTab.vue.js","sources":["../../../../../../../src/modules/organizations/components/sections/DetailsTab.vue"],"sourcesContent":["<template>\n\t<
|
1
|
+
{"version":3,"file":"DetailsTab.vue.js","sources":["../../../../../../../src/modules/organizations/components/sections/DetailsTab.vue"],"sourcesContent":["<template>\n\t<section class=\"flex-center flex flex-column t-center pd-medium radius-big bg-light\">\n\n\t\t<Dropdown \n\t\t\tv-if=\"user._id !== organization.owner\"\n\t\t\t:label=\"{ component: IconEllipsis, class: 'i-regular t-transp' }\"\n\t\t\t:align=\"'right'\"\n\t\t\tclass=\"cursor-pointer pos-absolute pos-r-regular pos-t-regular pd-thin radius-extra \"\n\t\t>\n\t\t\t<section \n\t\t\t\tclass=\"bg-black pd-thin radius-small\"\n\t\t\t>\n\t\t\t\t<FormReport \n\t\t\t\t\t:user=\"user._id\"\n\t\t\t\t\t:type=\"'organization'\" \n\t\t\t\t\t:target=\"organization._id\" \n\t\t\t\t\t:text=\"'Report'\" \n\t\t\t\t\tclass=\"w-100\"\n\t\t\t\t>\n\t\t\t\t\t<button \n\t\t\t\t\t\tclass=\"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button\"\n\t\t\t\t\t>\n\t\t\t\t\t\tReport\n\t\t\t\t\t</button>\n\t\t\t\t</FormReport>\n\n\t\t\t\t<ButtonToggleMembership\n\t\t\t\t\tv-if=\"user._id && user._id !== organization.owner\"\n\t\t :user=\"user._id\"\n\t\t :type=\"'organization'\" \n\t \t:role=\"'blocked'\" \n\t\t :target=\"organization._id\" \n\t\t :status=\"organization.isBlocked\" \n\t\t :text=\"{create: 'Block', remove: 'Unblock'}\"\n\t\t @updateMembership=\"event => handleMembershipUpdate(event, 'isBlocked')\"\n\t\t class=\"t-white w-100 mn-t-thin bg-red\" \n\t \t/>\n\t\t\t</section>\n </Dropdown>\n\n\t\t<IconEdit\n\t\t\tv-if=\"user._id === organization.owner\"\n\t\t\t@click=\"$router.push({\n\t\t\t\tname: 'Organization Edit', \n\t\t\t\tparams: {\n\t\t\t\t\t_id: organization._id\n\t\t\t\t}\n\t\t\t})\" \n\t\t\tclass=\"pos-absolute cursor-pointer pos-t-big pos-r-big i-regular t-transp\"\n\t\t/>\n\n\t\t<img loading=\"lazy\" \n\t\t\tv-if=\"organization.profile.photo\" \n\t\t\t:src=\"(FILE_SERVER_URL || '') + organization.profile.photo\" \n\t\t\tclass=\"radius-big bg-light flex-center flex mn-b-small w-8r\" \n\t\t/>\n\n\t\t<PlaceholderOrganizationPic\n\t\t\tv-else\n\t\t\tclass=\"radius-medium mn-b-small i-extra\"\n\t\t/>\n\n <h1\n \tclass=\"mn-b-thin\"\n >\n \t\t{{ organization.profile.name }}\n \t</h1>\n\n \t<div class=\"flex-center pd-r-thin pd-l-thin flex-nowrap flex mn-t-thin bg-white radius-extra w-max\">\n \t\t<IconFollowing class=\"i-medium mn-r-micro t-transp\"/>\n\n <p class=\"mn-t-thin p-medium t-medium uppercase mn-b-thin\">{{organization.numberOfSubscribers}} followers</p>\n\n <ButtonToggleMembership\n v-if=\"\n\t \tuser._id \n\t \t&& route.params._id \n\t \t&& route.params._id !== user._id\n\t \t&& organization.owner !== user._id\n\t \"\n :user=\"user._id\"\n :type=\"'organization'\" \n :role=\"'subscriber'\" \n :target=\"organization._id\" \n :status=\"organization.isSubscriber\" \n :text=\"{create: '+', remove: '-'}\"\n @updateMembership=\"event => handleMembershipUpdate(event, 'isSubscriber', 'numberOfSubscribers')\"\n class=\" mn-l-thin p-medium t-medium radius-extra i-semi\" \n />\n </div>\n\n <p class=\"w-max-50r mn-t-regular mn-b-medium p-big\">\n \t\t<Text :text=\"organization.profile.description || ''\" :showToggleText=\"true\" :maxLen=\"320\" />\n \t</p> \n\n \t<Chips \n \tv-if=\"organization.profile?.tags?.length > 0\" \n \t:chips=\"organization.profile.tags\"\n \tclass=\"p-medium\"\n \t/>\n\n\n <h4 \n \tv-if=\"Object.values(organization.socials).some(value => value)\" \n \tclass=\"mn-t-small mn-b-thin\"\n >\n \t\tFind us in socials\n \t</h4>\n \t\n \t<Socials \n \t\t:telegram=\"organization.socials.telegram\"\n \t\t:facebook=\"organization.socials.facebook\"\n \t\t:instagram=\"organization.socials.instagram\"\n \t\t:twitter=\"organization.socials.twitter\"\n \t\t:youtube=\"organization.socials.youtube\"\n \t/>\n \t<slot></slot>\n\t</section>\n\n<!-- <h3 class=\"mn-b-small\">Rating</h3>\n\t<Rating \n\t\t:rating=\"organization.rating.median\" \n\t\t:amount=\"organization.rating.amount\"\n\t\tclass=\"pd-medium mn-b-thin radius-big bg-light\"\n\t/>\n\n\t<h3 class=\"mn-b-small\">Contacts</h3>\n <Contacts\n :website=\"organization.contacts.website\"\n :phone=\"organization.contacts.phone\"\n :email=\"organization.contacts.email\"\n :address=\"organization.contacts.address\"\n class=\"w-100 pd-medium radius-big bg-light\"\n /> -->\n\n\n</template>\n\n<script setup>\n\timport { ref, computed } from 'vue'\n\timport { useRoute, useRouter } from 'vue-router'\n\t// Import components\n\timport Dropdown from \"@pf/src/components/Dropdown/Dropdown.vue\";\n\timport Text \t\tfrom '@pf/src/components/Text/Text.vue'\n\timport Chips from '@pf/src/components/Chips/Chips.vue'\n\t// Icons\n\timport IconFollowing from '@pf/src/modules/icons/entities/IconFollowing.vue'\n\timport IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'\n\timport IconEllipsis from '@pf/src/modules/icons/navigation/IconEllipsis.vue'\n\timport PlaceholderOrganizationPic from '@pf/src/modules/icons/placeholders/PlaceholderOrganizationPic.vue'\n\t// Org Module\n\timport ButtonToggleMembership from '@pf/src/modules/organizations/components/elements/ButtonToggleMembership.vue'\n\timport Contacts from '@pf/src/modules/organizations/components/blocks/Contacts.vue'\n\timport Rating from '@pf/src/modules/organizations/components/blocks/Rating.vue'\n\timport Socials from '@pf/src/modules/organizations/components/blocks/Socials.vue'\n\t// Report Module\n\timport FormReport from '@pf/src/modules/reports/components/sections/FormReport.vue' \n\t// Store \n\timport * as organizations \tfrom '@pf/src/modules/organizations/store/organizations'\n\timport * as memberships \tfrom '@pf/src/modules/organizations/store/memberships'\n\t// ///////////////////////////////////////\n \t// Components Props\n \t// ///////////////////////////////////////\n\tconst props = defineProps({\n\t\torganization: Object,\n\t\tuser: Object\n\t})\n\t// Store\n\tconst route = useRoute()\n\t\n\t// Methods\n\tconst handleMembershipUpdate = ({ membership, status, target }, statusName, statusNumber) => {\n\t memberships.mutations.handleMembershipUpdate(organizations.state.current, membership, status, target, statusName, statusNumber)\n\t};\n</script>\n\n<style lang=\"scss\">\n\n</style>"],"names":["memberships.mutations","organizations.state"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwKC,UAAM,QAAQ,SAAU;AAGxB,UAAM,yBAAyB,CAAC,EAAE,YAAY,QAAQ,OAAQ,GAAE,YAAY,iBAAiB;AAC3FA,gBAAsB,uBAAuBC,MAAoB,SAAS,YAAY,QAAQ,QAAQ,YAAY,YAAY;AAAA,IACjI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs
CHANGED
@@ -4,7 +4,7 @@ const vue = require("vue");
|
|
4
4
|
const vueRouter = require("vue-router");
|
5
5
|
const Field = require("../../../../components/Field/Field.vue2.cjs");
|
6
6
|
require("vue-i18n");
|
7
|
-
;/* empty css
|
7
|
+
;/* empty css */
|
8
8
|
;/* empty css */
|
9
9
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");
|
10
10
|
;/* empty css */
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js
CHANGED
@@ -2,7 +2,7 @@ import { ref, watchEffect, resolveComponent, openBlock, createElementBlock, crea
|
|
2
2
|
import { useRouter, useRoute } from "vue-router";
|
3
3
|
import Field from "../../../../components/Field/Field.vue2.js";
|
4
4
|
import "vue-i18n";
|
5
|
-
/* empty css
|
5
|
+
/* empty css */
|
6
6
|
/* empty css */
|
7
7
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
8
8
|
/* empty css */
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
4
|
const Field = require("../../../../components/Field/Field.vue2.cjs");
|
5
|
-
;/* empty css
|
5
|
+
;/* empty css */
|
6
6
|
const Button = require("../../../../components/Button/Button.vue2.cjs");
|
7
7
|
const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
8
8
|
const BlockSearch = require("../../../globals/views/components/blocks/BlockSearch.vue.cjs");
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ref, resolveDirective, openBlock, createElementBlock, createElementVNode, toDisplayString, withDirectives, createVNode, isRef, unref, withCtx, Fragment, renderList, createBlock, createCommentVNode } from "vue";
|
2
2
|
import Field from "../../../../components/Field/Field.vue2.js";
|
3
|
-
/* empty css
|
3
|
+
/* empty css */
|
4
4
|
import _sfc_main$6 from "../../../../components/Button/Button.vue2.js";
|
5
5
|
import _sfc_main$2 from "../../../../components/Feed/Feed.vue.js";
|
6
6
|
import _sfc_main$1 from "../../../globals/views/components/blocks/BlockSearch.vue.js";
|
@@ -5,15 +5,15 @@ const vueRouter = require("vue-router");
|
|
5
5
|
require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");
|
6
6
|
;/* empty css */
|
7
7
|
;/* empty css */
|
8
|
-
;/* empty css
|
8
|
+
;/* empty css */
|
9
9
|
;/* empty css */
|
10
10
|
;/* empty css */
|
11
11
|
;/* empty css */
|
12
|
-
;/* empty css
|
12
|
+
;/* empty css */
|
13
13
|
const auth = require("../../../auth/views/store/auth.cjs");
|
14
14
|
require("../../store/memberships.cjs");
|
15
15
|
require("vue-i18n");
|
16
|
-
;/* empty css
|
16
|
+
;/* empty css */
|
17
17
|
require("../../../reports/store/reports.cjs");
|
18
18
|
const organizations = require("../../store/organizations.cjs");
|
19
19
|
const CardOrganization = require("../blocks/CardOrganization.vue.cjs");
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js
CHANGED
@@ -3,15 +3,15 @@ import { useRouter, useRoute } from "vue-router";
|
|
3
3
|
import "../../../../../../node_modules/js-cookie/dist/js.cookie.js";
|
4
4
|
/* empty css */
|
5
5
|
/* empty css */
|
6
|
-
/* empty css
|
6
|
+
/* empty css */
|
7
7
|
/* empty css */
|
8
8
|
/* empty css */
|
9
9
|
/* empty css */
|
10
|
-
/* empty css
|
10
|
+
/* empty css */
|
11
11
|
import { state } from "../../../auth/views/store/auth.js";
|
12
12
|
import "../../store/memberships.js";
|
13
13
|
import "vue-i18n";
|
14
|
-
/* empty css
|
14
|
+
/* empty css */
|
15
15
|
import "../../../reports/store/reports.js";
|
16
16
|
import { actions } from "../../store/organizations.js";
|
17
17
|
import _sfc_main$2 from "../blocks/CardOrganization.vue.js";
|
package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs
CHANGED
@@ -3,7 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
3
3
|
const vue = require("vue");
|
4
4
|
const vueRouter = require("vue-router");
|
5
5
|
const Block = require("../../../../../components/Block/Block.vue.cjs");
|
6
|
-
const Popup = require("../../../../../components/Popup/Popup.
|
6
|
+
const Popup = require("../../../../../components/Popup/Popup.vue.cjs");
|
7
7
|
const Button = require("../../../../../components/Button/Button.vue2.cjs");
|
8
8
|
const Constructor = require("../../../../constructor/components/sections/Constructor.vue.cjs");
|
9
9
|
const CardPage = require("../blocks/CardPage.vue.cjs");
|
package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { computed, ref, onMounted, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createVNode, createElementVNode, createTextVNode, createCommentVNode } from "vue";
|
2
2
|
import { useRoute, useRouter } from "vue-router";
|
3
3
|
import _sfc_main$1 from "../../../../../components/Block/Block.vue.js";
|
4
|
-
import _sfc_main$3 from "../../../../../components/Popup/Popup.
|
4
|
+
import _sfc_main$3 from "../../../../../components/Popup/Popup.vue.js";
|
5
5
|
import _sfc_main$5 from "../../../../../components/Button/Button.vue2.js";
|
6
6
|
import _sfc_main$4 from "../../../../constructor/components/sections/Constructor.vue.js";
|
7
7
|
import _sfc_main$2 from "../blocks/CardPage.vue.js";
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
4
|
const Field = require("../../../../components/Field/Field.vue2.cjs");
|
5
|
-
const Select = require("../../../../components/Select/Select.
|
5
|
+
const Select = require("../../../../components/Select/Select.vue.cjs");
|
6
6
|
;/* empty css */
|
7
7
|
const IconAdd = require("../../../icons/navigation/IconAdd.vue.cjs");
|
8
8
|
const IconDelete = require("../../../icons/navigation/IconDelete.vue.cjs");
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ref, computed, watch, openBlock, createElementBlock, createElementVNode, toDisplayString, createBlock, withCtx, createVNode, createCommentVNode, unref } from "vue";
|
2
2
|
import Field from "../../../../components/Field/Field.vue2.js";
|
3
|
-
import Select from "../../../../components/Select/Select.
|
3
|
+
import Select from "../../../../components/Select/Select.vue.js";
|
4
4
|
/* empty css */
|
5
5
|
import _sfc_main$1 from "../../../icons/navigation/IconAdd.vue.js";
|
6
6
|
import _sfc_main$2 from "../../../icons/navigation/IconDelete.vue.js";
|
package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
|
-
const Popup = require("../../../../components/Popup/Popup.
|
4
|
+
const Popup = require("../../../../components/Popup/Popup.vue.cjs");
|
5
5
|
const PhotoViewer = require("../../../../components/PhotoViewer/PhotoViewer.vue.cjs");
|
6
6
|
;/* empty css */
|
7
7
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");
|
package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref, openBlock, createElementBlock, createElementVNode, Fragment, renderList, createVNode, withCtx } from "vue";
|
2
|
-
import _sfc_main$1 from "../../../../components/Popup/Popup.
|
2
|
+
import _sfc_main$1 from "../../../../components/Popup/Popup.vue.js";
|
3
3
|
import _sfc_main$2 from "../../../../components/PhotoViewer/PhotoViewer.vue.js";
|
4
4
|
/* empty css */
|
5
5
|
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs
CHANGED
@@ -4,7 +4,7 @@ const vue = require("vue");
|
|
4
4
|
const vueRouter = require("vue-router");
|
5
5
|
const IconDelete = require("../../../icons/navigation/IconDelete.vue.cjs");
|
6
6
|
const Button = require("../../../../components/Button/Button.vue2.cjs");
|
7
|
-
const Select = require("../../../../components/Select/Select.
|
7
|
+
const Select = require("../../../../components/Select/Select.vue.cjs");
|
8
8
|
const Field = require("../../../../components/Field/Field.vue2.cjs");
|
9
9
|
const Block = require("../../../../components/Block/Block.vue.cjs");
|
10
10
|
const categories = require("../../store/categories.cjs");
|
@@ -2,7 +2,7 @@ import { computed, openBlock, createElementBlock, Fragment, createVNode, withCtx
|
|
2
2
|
import { useRoute, useRouter } from "vue-router";
|
3
3
|
import _sfc_main$3 from "../../../icons/navigation/IconDelete.vue.js";
|
4
4
|
import _sfc_main$2 from "../../../../components/Button/Button.vue2.js";
|
5
|
-
import Select from "../../../../components/Select/Select.
|
5
|
+
import Select from "../../../../components/Select/Select.vue.js";
|
6
6
|
import Field from "../../../../components/Field/Field.vue2.js";
|
7
7
|
import _sfc_main$1 from "../../../../components/Block/Block.vue.js";
|
8
8
|
import { actions, state } from "../../store/categories.js";
|
package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs
CHANGED
@@ -4,8 +4,8 @@ const vue = require("vue");
|
|
4
4
|
const Block = require("../../../../components/Block/Block.vue.cjs");
|
5
5
|
const Field = require("../../../../components/Field/Field.vue2.cjs");
|
6
6
|
const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
7
|
-
const Select = require("../../../../components/Select/Select.
|
8
|
-
const Popup = require("../../../../components/Popup/Popup.
|
7
|
+
const Select = require("../../../../components/Select/Select.vue.cjs");
|
8
|
+
const Popup = require("../../../../components/Popup/Popup.vue.cjs");
|
9
9
|
;/* empty css */
|
10
10
|
const CardPosition = require("../blocks/CardPosition.vue.cjs");
|
11
11
|
const CardOrderItem = require("../../../orders/components/blocks/CardOrderItem.vue.cjs");
|
@@ -2,8 +2,8 @@ import { ref, computed, onMounted, openBlock, createElementBlock, createElementV
|
|
2
2
|
import _sfc_main$4 from "../../../../components/Block/Block.vue.js";
|
3
3
|
import Field from "../../../../components/Field/Field.vue2.js";
|
4
4
|
import _sfc_main$2 from "../../../../components/Feed/Feed.vue.js";
|
5
|
-
import Select from "../../../../components/Select/Select.
|
6
|
-
import _sfc_main$1 from "../../../../components/Popup/Popup.
|
5
|
+
import Select from "../../../../components/Select/Select.vue.js";
|
6
|
+
import _sfc_main$1 from "../../../../components/Popup/Popup.vue.js";
|
7
7
|
/* empty css */
|
8
8
|
import _sfc_main$5 from "../blocks/CardPosition.vue.js";
|
9
9
|
import _sfc_main$3 from "../../../orders/components/blocks/CardOrderItem.vue.js";
|
@@ -9,7 +9,7 @@ const Block = require("../../../../components/Block/Block.vue.cjs");
|
|
9
9
|
const Field = require("../../../../components/Field/Field.vue2.cjs");
|
10
10
|
const Checkbox = require("../../../../components/Checkbox/Checkbox.vue.cjs");
|
11
11
|
const Button = require("../../../../components/Button/Button.vue2.cjs");
|
12
|
-
const Popup = require("../../../../components/Popup/Popup.
|
12
|
+
const Popup = require("../../../../components/Popup/Popup.vue.cjs");
|
13
13
|
const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
14
14
|
const EditImages = require("../../../../components/EditImages/EditImages.vue.cjs");
|
15
15
|
const IconDelete = require("../../../icons/navigation/IconDelete.vue.cjs");
|
@@ -7,7 +7,7 @@ import _sfc_main$1 from "../../../../components/Block/Block.vue.js";
|
|
7
7
|
import Field from "../../../../components/Field/Field.vue2.js";
|
8
8
|
import _sfc_main$9 from "../../../../components/Checkbox/Checkbox.vue.js";
|
9
9
|
import _sfc_main$2 from "../../../../components/Button/Button.vue2.js";
|
10
|
-
import _sfc_main$6 from "../../../../components/Popup/Popup.
|
10
|
+
import _sfc_main$6 from "../../../../components/Popup/Popup.vue.js";
|
11
11
|
import _sfc_main$7 from "../../../../components/Feed/Feed.vue.js";
|
12
12
|
import _sfc_main$3 from "../../../../components/EditImages/EditImages.vue.js";
|
13
13
|
import _sfc_main$a from "../../../icons/navigation/IconDelete.vue.js";
|
@@ -4,37 +4,81 @@ const vue = require("vue");
|
|
4
4
|
const vueRouter = require("vue-router");
|
5
5
|
const Tab = require("../../../../components/Tab/Tab.vue2.cjs");
|
6
6
|
const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
7
|
-
|
8
|
-
|
7
|
+
;/* empty css */
|
8
|
+
require("vue-i18n");
|
9
|
+
const categories = require("../../store/categories.cjs");
|
10
|
+
const marketplace = require("../../../marketplace/store/marketplace.cjs");
|
11
|
+
;/* empty css */
|
12
|
+
;/* empty css */
|
13
|
+
const BlockFilter = require("../../../globals/views/components/blocks/BlockFilter.vue.cjs");
|
9
14
|
const CardProduct = require("../blocks/CardProduct.vue.cjs");
|
10
15
|
const auth = require("../../../auth/views/store/auth.cjs");
|
11
16
|
const products = require("../../store/products.cjs");
|
12
|
-
const _hoisted_1 = {
|
13
|
-
const _hoisted_2 = {
|
17
|
+
const _hoisted_1 = {
|
14
18
|
key: 0,
|
15
19
|
class: "mn-b-medium flex-v-center flex-nowrap flex"
|
16
20
|
};
|
17
|
-
const
|
18
|
-
const
|
21
|
+
const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("h2", { class: "mn-r-medium" }, "Products", -1);
|
22
|
+
const _hoisted_3 = { class: "cols-2-1_3 bg-light pd-thin radius-big gap-thin" };
|
23
|
+
const _hoisted_4 = { class: "rows-1" };
|
19
24
|
const _sfc_main = {
|
20
25
|
__name: "Products",
|
21
26
|
setup(__props) {
|
22
27
|
const route = vueRouter.useRoute();
|
23
28
|
const router = vueRouter.useRouter();
|
24
29
|
const tabProducts = vue.ref(route.query.tabProducts ? route.query.tabProducts : "all");
|
25
|
-
route.query.tabProducts = tabProducts.value;
|
30
|
+
if (route.name !== "Organization") route.query.tabProducts = tabProducts.value;
|
31
|
+
if (route.query) {
|
32
|
+
const query = route.query;
|
33
|
+
marketplace.state.filter.selected.categories = query.categories ? query.categories.split(",") : [];
|
34
|
+
marketplace.state.filter.selected.prices = query.prices ? query.prices.split(",") : [];
|
35
|
+
marketplace.state.filter.selected.delivery = query.delivery ? query.delivery.split(",") : [];
|
36
|
+
}
|
26
37
|
vue.watch(tabProducts, (newValue) => {
|
27
|
-
router.replace({ query: { ...route.query, tabProducts: newValue } });
|
38
|
+
if (route.name !== "Organization") router.replace({ query: { ...route.query, tabProducts: newValue } });
|
39
|
+
});
|
40
|
+
vue.onMounted(async () => {
|
41
|
+
let categoriesFilter = await categories.actions.fetchCategories();
|
42
|
+
categoriesFilter = categoriesFilter.map((category) => ({
|
43
|
+
value: category.url,
|
44
|
+
label: category.name
|
45
|
+
}));
|
46
|
+
const index = marketplace.state.filter.options.findIndex((option) => option.value === "categories");
|
47
|
+
const categoryOption = {
|
48
|
+
title: "Categories",
|
49
|
+
value: "categories",
|
50
|
+
options: categoriesFilter
|
51
|
+
};
|
52
|
+
if (index !== -1) {
|
53
|
+
marketplace.state.filter.options[index] = categoryOption;
|
54
|
+
} else {
|
55
|
+
marketplace.state.filter.options.unshift(categoryOption);
|
56
|
+
}
|
28
57
|
});
|
29
|
-
|
58
|
+
vue.watch(() => marketplace.state.sort, (newSortValue, oldSortValue) => {
|
30
59
|
let query = { ...route.query };
|
31
|
-
query.
|
32
|
-
|
33
|
-
|
60
|
+
query.sortParam = newSortValue.param;
|
61
|
+
query.sortOrder = newSortValue.order;
|
62
|
+
router.replace({ query });
|
63
|
+
}, { deep: true });
|
64
|
+
vue.watch(() => marketplace.state.filter.selected, (newFilterValue, oldFilterValue) => {
|
65
|
+
const query = { ...route.query };
|
66
|
+
Object.keys(oldFilterValue).forEach((key) => {
|
67
|
+
if (query[key]) {
|
68
|
+
delete query[key];
|
69
|
+
}
|
70
|
+
});
|
71
|
+
const newQueryValues = Object.fromEntries(
|
72
|
+
Object.entries(newFilterValue).filter(([key, value]) => Array.isArray(value) && value.length > 0).map(([key, value]) => [key, value.join(",")])
|
73
|
+
);
|
74
|
+
delete query.options;
|
75
|
+
Object.assign(query, newQueryValues);
|
76
|
+
router.replace({ query });
|
77
|
+
}, { deep: true });
|
34
78
|
return (_ctx, _cache) => {
|
35
|
-
return vue.openBlock(), vue.createElementBlock("div",
|
36
|
-
vue.unref(route).name !== "Organization" ? (vue.openBlock(), vue.createElementBlock("header",
|
37
|
-
|
79
|
+
return vue.openBlock(), vue.createElementBlock("div", null, [
|
80
|
+
vue.unref(route).name !== "Organization" ? (vue.openBlock(), vue.createElementBlock("header", _hoisted_1, [
|
81
|
+
_hoisted_2,
|
38
82
|
vue.createElementVNode("button", {
|
39
83
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$router.push({
|
40
84
|
name: "ProductAdd"
|
@@ -54,15 +98,18 @@ const _sfc_main = {
|
|
54
98
|
],
|
55
99
|
class: "mn-b-small o-hidden h5 radius-big bg-light"
|
56
100
|
}, null, 8, ["selected"])) : vue.createCommentVNode("", true),
|
57
|
-
vue.createElementVNode("div",
|
58
|
-
vue.createVNode(
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
101
|
+
vue.createElementVNode("div", _hoisted_3, [
|
102
|
+
vue.createVNode(BlockFilter.default, {
|
103
|
+
filter: marketplace.state.filter,
|
104
|
+
"onUpdate:filter": _cache[2] || (_cache[2] = ($event) => marketplace.state.filter = $event),
|
105
|
+
options: marketplace.state.filter.options,
|
106
|
+
class: "h-100 w-100 desktop-only"
|
107
|
+
}, null, 8, ["filter", "options"]),
|
108
|
+
vue.createElementVNode("div", _hoisted_4, [
|
65
109
|
vue.createVNode(Feed.default, {
|
110
|
+
filter: marketplace.state.filter,
|
111
|
+
"onUpdate:filter": _cache[3] || (_cache[3] = ($event) => marketplace.state.filter = $event),
|
112
|
+
search: true,
|
66
113
|
states: {
|
67
114
|
empty: {
|
68
115
|
title: "No Products Found",
|
@@ -79,7 +126,7 @@ const _sfc_main = {
|
|
79
126
|
categories: vue.unref(route).query.categories,
|
80
127
|
prices: vue.unref(route).query.prices,
|
81
128
|
delivery: vue.unref(route).query.delivery,
|
82
|
-
search:
|
129
|
+
// search: route.query.search,
|
83
130
|
...tabProducts.value !== "all" && { status: tabProducts.value }
|
84
131
|
// user: user
|
85
132
|
},
|
@@ -105,7 +152,7 @@ const _sfc_main = {
|
|
105
152
|
}), 128))
|
106
153
|
]),
|
107
154
|
_: 1
|
108
|
-
}, 8, ["store", "options"])
|
155
|
+
}, 8, ["filter", "store", "options"])
|
109
156
|
])
|
110
157
|
])
|
111
158
|
]);
|