@ozdao/prometheus-framework 0.2.203 → 0.2.204
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/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +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/modules/auth/views/components/layouts/Auth.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +9 -8
- 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 +9 -8
- 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 +9 -8
- 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 +9 -8
- 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 +7 -6
- 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 +7 -6
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
- 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/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 +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +2 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
- 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/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +27 -27
- 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 +28 -28
- 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/NavigationBar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +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/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/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 +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +2 -2
- 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/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
- 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/DepartmentEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +5 -6
- 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/OrganizationEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +89 -95
- 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 +90 -96
- 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 +2 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +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/blocks/CardPage.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +2 -2
- 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/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 +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +73 -26
- 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 +82 -35
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.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 +8 -3
- 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 +8 -3
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/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/layouts/Spots.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.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 +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
- package/dist/prometheus-framework.cjs.js +14 -14
- package/dist/prometheus-framework.es.js +2830 -2823
- package/dist/style.css +68 -0
- 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 +99 -19
- 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/globals/views/components/partials/Header.vue.js
CHANGED
@@ -1,17 +1,18 @@
|
|
1
|
-
import { onMounted, openBlock, createElementBlock,
|
1
|
+
import { onMounted, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, createBlock, resolveDynamicComponent, unref, createCommentVNode, createTextVNode, toDisplayString, renderSlot, createVNode, withCtx } from "vue";
|
2
2
|
import { useRouter, useRoute } from "vue-router";
|
3
3
|
import { useI18n } from "vue-i18n";
|
4
4
|
import { state, actions as actions$1 } from "../../store/globals.js";
|
5
5
|
import { actions, getters } from "../../../../orders/store/shopcart.js";
|
6
6
|
import { state as state$1 } from "../../../../auth/views/store/auth.js";
|
7
7
|
/* empty css */
|
8
|
-
import _sfc_main$2 from "../../../../../components/Button/Button.
|
8
|
+
import _sfc_main$2 from "../../../../../components/Button/Button.vue.js";
|
9
9
|
import Select from "../../../../../components/Select/Select.vue2.js";
|
10
10
|
import _sfc_main$1 from "../../../../../components/Checkbox/Checkbox.vue.js";
|
11
11
|
import _sfc_main$3 from "../../../../icons/entities/IconShopcart.vue.js";
|
12
12
|
import _sfc_main$4 from "../../../../icons/entities/IconProfile.vue.js";
|
13
13
|
/* empty css */
|
14
|
-
const _hoisted_1 = {
|
14
|
+
const _hoisted_1 = { class: "flex-nowrap flex-v-center flex-justify-start flex gap-micro w-min-20 w-max-20r" };
|
15
|
+
const _hoisted_2 = {
|
15
16
|
class: "i-small",
|
16
17
|
fill: "inherit",
|
17
18
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -19,13 +20,15 @@ const _hoisted_1 = {
|
|
19
20
|
height: "67",
|
20
21
|
viewBox: "0 0 50 67"
|
21
22
|
};
|
22
|
-
const
|
23
|
+
const _hoisted_3 = /* @__PURE__ */ createElementVNode("path", {
|
23
24
|
d: "M25 0C11.207 0 0 11.207 0 25C0 38.793 20.832 66.668 25 66.668C29.168 66.668 50 38.793 50 25C50 11.207 38.793 0 25 0ZM25 33.332C20.418 33.332 16.668 29.582 16.668 25C16.668 20.418 20.418 16.668 25 16.668C29.582 16.668 33.332 20.418 33.332 25C33.332 29.582 29.582 33.332 25 33.332Z",
|
24
25
|
fill: "inherit"
|
25
26
|
}, null, -1);
|
26
|
-
const
|
27
|
-
|
27
|
+
const _hoisted_4 = [
|
28
|
+
_hoisted_3
|
28
29
|
];
|
30
|
+
const _hoisted_5 = { class: "flex-nowrap flex" };
|
31
|
+
const _hoisted_6 = { class: "flex-justify-end flex-v-center flex-nowrap flex gap-micro w-min-20 w-max-20r" };
|
29
32
|
const _sfc_main = {
|
30
33
|
__name: "Header",
|
31
34
|
props: {
|
@@ -35,10 +38,13 @@ const _sfc_main = {
|
|
35
38
|
},
|
36
39
|
logotype: {
|
37
40
|
type: Object
|
41
|
+
},
|
42
|
+
location: {
|
43
|
+
type: Boolean,
|
44
|
+
default: true
|
38
45
|
}
|
39
46
|
},
|
40
47
|
setup(__props) {
|
41
|
-
const props = __props;
|
42
48
|
const router = useRouter();
|
43
49
|
useRoute();
|
44
50
|
useI18n();
|
@@ -50,105 +56,106 @@ const _sfc_main = {
|
|
50
56
|
});
|
51
57
|
return (_ctx, _cache) => {
|
52
58
|
var _a;
|
53
|
-
return openBlock(), createElementBlock(
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
createElementVNode("button", {
|
61
|
-
"aria-label": "menu",
|
62
|
-
onClick: _cache[0] || (_cache[0] = () => state.isOpenSidebar = !state.isOpenSidebar),
|
63
|
-
class: normalizeClass(["mobile-only menu-btn", {
|
64
|
-
"menu-btn_active": state.isOpenSidebar
|
65
|
-
}])
|
66
|
-
}, [
|
67
|
-
createElementVNode("span", {
|
68
|
-
class: normalizeClass(["no-events", {
|
69
|
-
"bg-black": __props.theme === "light",
|
70
|
-
"bg-white": __props.theme === "dark"
|
59
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
60
|
+
createElementVNode("div", _hoisted_1, [
|
61
|
+
createElementVNode("button", {
|
62
|
+
"aria-label": "menu",
|
63
|
+
onClick: _cache[0] || (_cache[0] = () => state.isOpenSidebar = !state.isOpenSidebar),
|
64
|
+
class: normalizeClass(["mobile-only menu-btn", {
|
65
|
+
"menu-btn_active": state.isOpenSidebar
|
71
66
|
}])
|
72
67
|
}, [
|
73
68
|
createElementVNode("span", {
|
74
|
-
class: normalizeClass(["
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
},
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
}]),
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
69
|
+
class: normalizeClass(["no-events", {
|
70
|
+
"bg-black": __props.theme === "light",
|
71
|
+
"bg-white": __props.theme === "dark"
|
72
|
+
}])
|
73
|
+
}, [
|
74
|
+
createElementVNode("span", {
|
75
|
+
class: normalizeClass(["menu-btn__before", { "bg-black": __props.theme === "light", "bg-white": __props.theme === "dark" }])
|
76
|
+
}, null, 2),
|
77
|
+
createElementVNode("span", {
|
78
|
+
class: normalizeClass(["menu-btn__after", { "bg-black": __props.theme === "light", "bg-white": __props.theme === "dark" }])
|
79
|
+
}, null, 2)
|
80
|
+
], 2)
|
81
|
+
], 2),
|
82
|
+
__props.logotype.component ? (openBlock(), createBlock(resolveDynamicComponent(__props.logotype.component), {
|
83
|
+
key: 0,
|
84
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(router).push({ path: "/" })),
|
85
|
+
theme: __props.theme,
|
86
|
+
class: normalizeClass(__props.logotype.class)
|
87
|
+
}, null, 8, ["theme", "class"])) : createCommentVNode("", true),
|
88
|
+
__props.location ? (openBlock(), createElementBlock("button", {
|
89
|
+
key: 1,
|
90
|
+
"aria-label": "button_location",
|
91
|
+
class: normalizeClass(["cursor-pointer bg-transp pd-l-micro pd-r-micro radius-extra uppercase t-semi br-solid br-2px transition-linear", {
|
92
|
+
"fill-black br-black t-black hover-bg-black hover-t-white hover-fill-white": __props.theme === "light",
|
93
|
+
"fill-white br-white t-white hover-bg-white hover-t-black hover-fill-black": __props.theme === "dark"
|
94
|
+
}]),
|
95
|
+
onClick: _cache[2] || (_cache[2] = ($event) => openLocationPopup())
|
96
|
+
}, [
|
97
|
+
(openBlock(), createElementBlock("svg", _hoisted_2, _hoisted_4)),
|
98
|
+
createTextVNode(" " + toDisplayString(((_a = state.position) == null ? void 0 : _a.country) ? state.position.country : "World"), 1)
|
99
|
+
], 2)) : createCommentVNode("", true)
|
100
|
+
]),
|
101
|
+
createElementVNode("div", _hoisted_5, [
|
102
|
+
renderSlot(_ctx.$slots, "default"),
|
103
|
+
createVNode(_sfc_main$1, {
|
104
|
+
name: "darkmode",
|
105
|
+
label: "Darkmode",
|
106
|
+
radio: state.theme.darkmode,
|
107
|
+
"onUpdate:radio": _cache[3] || (_cache[3] = (event) => actions$1.toggleTheme()),
|
108
|
+
class: normalizeClass(["mn-l-thin desktop-only t-semi pd-micro br-2px br-solid radius-extra", {
|
109
|
+
"br-light t-black": __props.theme === "light",
|
110
|
+
"br-dark t-white": __props.theme === "dark"
|
111
|
+
}]),
|
112
|
+
theme: __props.theme
|
113
|
+
}, null, 8, ["radio", "theme", "class"])
|
114
|
+
]),
|
115
|
+
createElementVNode("div", _hoisted_6, [
|
116
|
+
createVNode(_sfc_main$2, {
|
117
|
+
"aria-label": "shopcart",
|
118
|
+
submit: (a) => actions.toggleShopcart(),
|
119
|
+
counter: getters.cartTotalAmount,
|
120
|
+
showSucces: false,
|
121
|
+
showLoader: false,
|
122
|
+
class: "pd-zero mn-r-micro"
|
123
|
+
}, {
|
124
|
+
default: withCtx(() => [
|
125
|
+
createVNode(_sfc_main$3, {
|
126
|
+
class: "i-semi",
|
127
|
+
fill: __props.theme === "light" ? "rgb(var(--black))" : "rgb(var(--white))"
|
128
|
+
}, null, 8, ["fill"])
|
129
|
+
]),
|
130
|
+
_: 1
|
131
|
+
}, 8, ["submit", "counter"]),
|
132
|
+
createVNode(_sfc_main$2, {
|
133
|
+
"aria-label": "profile",
|
134
|
+
class: "pd-zero bg-transp",
|
135
|
+
submit: state$1.access.status === false ? (a) => unref(router).push({ name: "Sign In" }) : (a) => unref(router).push({ name: "User Profile", params: { _id: state$1.user._id } }),
|
136
|
+
showSucces: false,
|
137
|
+
showLoader: false
|
138
|
+
}, {
|
139
|
+
default: withCtx(() => [
|
140
|
+
createVNode(_sfc_main$4, {
|
141
|
+
class: "i-semi",
|
142
|
+
fill: __props.theme === "light" ? "rgb(var(--black))" : "rgb(var(--white))"
|
143
|
+
}, null, 8, ["fill"])
|
144
|
+
]),
|
145
|
+
_: 1
|
146
|
+
}, 8, ["submit"]),
|
147
|
+
createVNode(Select, {
|
148
|
+
select: _ctx.$i18n.locale,
|
149
|
+
"onUpdate:select": _cache[4] || (_cache[4] = ($event) => _ctx.$i18n.locale = $event),
|
150
|
+
options: [{ name: "🌎 En", value: "en" }, { name: "🇷🇺 Ru", value: "ru" }],
|
151
|
+
property: "value",
|
152
|
+
class: normalizeClass(["pos-relative uppercase pd-micro t-semi radius-thin", {
|
153
|
+
"bg-light t-black": __props.theme === "light",
|
154
|
+
"bg-dark t-white": __props.theme === "dark"
|
155
|
+
}])
|
156
|
+
}, null, 8, ["select", "class"])
|
157
|
+
])
|
158
|
+
], 64);
|
152
159
|
};
|
153
160
|
}
|
154
161
|
};
|
package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Header.vue.js","sources":["../../../../../../../../src/modules/globals/views/components/partials/Header.vue"],"sourcesContent":["<script setup=\"props\">\n\timport { computed, onMounted, toRefs, ref, inject } from 'vue'\n\n\timport { useRouter,useRoute } from 'vue-router'\n\timport { useI18n } from 'vue-i18n'\n\t\n\timport * as globals from '@pf/src/modules/globals/views/store/globals'\n\timport * as shopcart from '@pf/src/modules/orders/store/shopcart'\n\timport * as auth from '@pf/src/modules/auth/views/store/auth'\n\t\n\t// Globasls Component\n\timport Navigation from '@pf/src/modules/globals/views/components/partials/Navigation.vue'\n\t// Prometheus Component\n\timport Button from '@pf/src/components/Button/Button.vue'\n\timport Select from '@pf/src/components/Select/Select.vue'\n\timport Checkbox from '@pf/src/components/Checkbox/Checkbox.vue'\n\t// Icons module\n\timport IconShopcart from '@pf/src/modules/icons/entities/IconShopcart.vue'\n\timport IconProfile from '@pf/src/modules/icons/entities/IconProfile.vue'\n\t// Props\n\tconst props = defineProps({\n theme: {\n \ttype: String,\n\t default: \"light\"\n },\n logotype: {\n\t type: Object\n\t }\n });\n\t// Accessing state\n\tconst router = useRouter()\n\tconst route = useRoute()\n\t// Localization\n\tconst { t } = useI18n()\n\t// const search = computed(() => store.products.state.search)\n\n\tfunction openLocationPopup() {\n\t globals.state.isOpenLocationPopup = true;\n\t}\n\t/////////////////////////////\n\t// MOUNTED\n\t/////////////////////////////\n\tonMounted(() => {\n shopcart.actions.setShopcart()\n });\n</script>\n\n<template>\n\t
|
1
|
+
{"version":3,"file":"Header.vue.js","sources":["../../../../../../../../src/modules/globals/views/components/partials/Header.vue"],"sourcesContent":["<script setup=\"props\">\n\timport { computed, onMounted, toRefs, ref, inject } from 'vue'\n\n\timport { useRouter,useRoute } from 'vue-router'\n\timport { useI18n } from 'vue-i18n'\n\t\n\timport * as globals from '@pf/src/modules/globals/views/store/globals'\n\timport * as shopcart from '@pf/src/modules/orders/store/shopcart'\n\timport * as auth from '@pf/src/modules/auth/views/store/auth'\n\t\n\t// Globasls Component\n\timport Navigation from '@pf/src/modules/globals/views/components/partials/Navigation.vue'\n\t// Prometheus Component\n\timport Button from '@pf/src/components/Button/Button.vue'\n\timport Select from '@pf/src/components/Select/Select.vue'\n\timport Checkbox from '@pf/src/components/Checkbox/Checkbox.vue'\n\t// Icons module\n\timport IconShopcart from '@pf/src/modules/icons/entities/IconShopcart.vue'\n\timport IconProfile from '@pf/src/modules/icons/entities/IconProfile.vue'\n\t// Props\n\tconst props = defineProps({\n theme: {\n \ttype: String,\n\t default: \"light\"\n },\n logotype: {\n\t type: Object\n\t },\n\t location: {\n\t type: Boolean,\n\t\t default: true\n\t },\n });\n\t// Accessing state\n\tconst router = useRouter()\n\tconst route = useRoute()\n\t// Localization\n\tconst { t } = useI18n()\n\t// const search = computed(() => store.products.state.search)\n\n\tfunction openLocationPopup() {\n\t globals.state.isOpenLocationPopup = true;\n\t}\n\t/////////////////////////////\n\t// MOUNTED\n\t/////////////////////////////\n\tonMounted(() => {\n shopcart.actions.setShopcart()\n });\n</script>\n\n<template>\n\t\n\t<div class=\"flex-nowrap flex-v-center flex-justify-start flex gap-micro w-min-20 w-max-20r\">\n\t\t<!-- MENU -->\n\t\t<button \n\t\t\taria-label=\"menu\"\n\t\t\t@click=\"() => globals.state.isOpenSidebar = !globals.state.isOpenSidebar\" \n\t\t\tclass=\"mobile-only menu-btn\"\n\t\t\t:class=\"{\n\t\t\t\t'menu-btn_active': globals.state.isOpenSidebar\n\t\t\t}\"\n\t\t>\n\t <span\n\t \tclass=\"no-events\"\n\t\t :class=\"{\n\t\t 'bg-black': theme === 'light',\n\t\t 'bg-white': theme === 'dark'\n\t\t }\"\n\t\t >\n\t\t <span class=\"menu-btn__before\" :class=\"{ 'bg-black': theme === 'light', 'bg-white': theme === 'dark' }\"></span>\n\t\t <span class=\"menu-btn__after\" :class=\"{ 'bg-black': theme === 'light', 'bg-white': theme === 'dark' }\"></span>\n\t\t </span>\n\t </button>\n\n\t\t<!-- LOGO -->\n\t\t<component\n\t\t\tv-if=\"logotype.component\"\n\t\t :is=\"logotype.component\"\n\t\t @click=\"router.push({ path: '/' })\" \n\t\t :theme=\"theme\"\n\t\t :class=\"logotype.class\"\n\t\t/>\n\n\t\t<button\n\t\t\tv-if=\"location\"\n\t\t\taria-label=\"button_location\"\n \tclass=\"\n \t\tcursor-pointer\n \t\tbg-transp \n \t\tpd-l-micro pd-r-micro\n \t\tradius-extra \n \t\tuppercase \n \t\tt-semi\n \t\tbr-solid \n \t\tbr-2px \n \t\ttransition-linear\n \t\n \t\"\n \t:class=\"{\n \t\t'fill-black br-black t-black hover-bg-black hover-t-white hover-fill-white': theme === 'light',\n \t\t'fill-white br-white t-white hover-bg-white hover-t-black hover-fill-black': theme === 'dark' \n \t}\"\n \t@click=\"openLocationPopup()\"\n >\n \t<svg class=\"i-small\" :fill=\"'inherit'\" xmlns=\"http://www.w3.org/2000/svg\" width=\"50\" height=\"67\" viewBox=\"0 0 50 67\" fill=\"none\">\n\t\t\t <path d=\"M25 0C11.207 0 0 11.207 0 25C0 38.793 20.832 66.668 25 66.668C29.168 66.668 50 38.793 50 25C50 11.207 38.793 0 25 0ZM25 33.332C20.418 33.332 16.668 29.582 16.668 25C16.668 20.418 20.418 16.668 25 16.668C29.582 16.668 33.332 20.418 33.332 25C33.332 29.582 29.582 33.332 25 33.332Z\" :fill=\"'inherit'\"/>\n\t\t\t</svg>\n \t {{globals.state.position?.country ? globals.state.position.country : 'World'}}\n </button>\n </div>\n\n <div class=\"flex-nowrap flex\">\t\n\t\t<!-- NAGIVATION -->\n\t\t<slot></slot>\n\t\t<Checkbox \n name=\"darkmode\"\n :label=\"'Darkmode'\"\n :radio=\"globals.state.theme.darkmode\"\n @update:radio=\"event => globals.actions.toggleTheme()\"\n class=\"mn-l-thin desktop-only t-semi pd-micro br-2px br-solid radius-extra\"\n :theme=\"theme\"\n :class=\"{\n \t\t'br-light t-black': theme === 'light',\n \t\t'br-dark t-white': theme === 'dark' \n \t}\"\n />\n </div>\n\n\t<div class=\"flex-justify-end flex-v-center flex-nowrap flex gap-micro w-min-20 w-max-20r\">\n\t\t<Button\n\t\t\taria-label=\"shopcart\"\n\t\t\t:submit=\"a => shopcart.actions.toggleShopcart()\" \n\t\t\t:counter=\"shopcart.getters.cartTotalAmount\" \n\t\t\t:showSucces=\"false\"\n\t\t\t:showLoader=\"false\"\n\t\t\tclass=\"pd-zero mn-r-micro\"\n\t\t\t> \n\t\t\t<IconShopcart \n\t\t\t\tclass=\"i-semi\"\n\t\t\t\t:fill=\"theme === 'light' ? 'rgb(var(--black))' : 'rgb(var(--white))'\" \n\t\t\t/>\n\t\t\t<!-- <div class=\"w-max p-small pos-absolute pos-t-100 pos-r-0\">Product Added to Shopcart</div> -->\n\t\t</Button>\n\t\t\n\t\t<Button \n\t\t\taria-label=\"profile\"\n\t\t\tclass=\"pd-zero bg-transp\"\n\t\t\t:submit=\"\n\t\t\t\tauth.state.access.status === false \n\t\t\t\t? \n\t\t\t\ta => router.push({name: 'Sign In'}) \n\t\t\t\t: \n\t\t\t\ta => router.push({ name: 'User Profile', params: { _id: auth.state.user._id }})\n\t\t\t\"\n\t\t\t:showSucces=\"false\"\n\t\t\t:showLoader=\"false\"\n\t\t>\n\t\t\t<IconProfile \n\t\t\t\tclass=\"i-semi\"\n\t\t\t\t:fill=\"theme === 'light' ? 'rgb(var(--black))' : 'rgb(var(--white))'\" \n\t\t\t/>\n\t\t</Button>\n\n\n\t\t<Select \n\t\t\tv-model:select=\"$i18n.locale\"\n\t\t :options=\"[{name: '🌎 En', value: 'en'}, {name: '🇷🇺 Ru', value: 'ru'}]\"\n\t\t :property=\"'value'\"\n class=\"pos-relative uppercase pd-micro t-semi radius-thin\"\n :class=\"{\n \t\t'bg-light t-black': theme === 'light',\n \t\t'bg-dark t-white': theme === 'dark' \n \t}\"\n />\n </div>\n</template>\n\n<style lang=\"scss\">\n.location-button { \n\t&:hover {\n\t\tbox-shadow: inset 0 0 0 2px rgb(var(--main));\n\t}\n}\n\n.menu-btn {\n display: block;\n width: 2rem;\n height: 2rem;\n border-radius: 50%;\n position: relative;\n}\n.menu-btn span,\n.menu-btn__before,\n.menu-btn__after {\n position: absolute;\n top: 50%;\n margin-top: -1px;\n left: 50%;\n margin-left: -10px;\n width: 20px;\n height: 2px;\n}\n.menu-btn__before,\n.menu-btn__after {\n display: block;\n transition: 0.2s;\n}\n.menu-btn__before {\n transform: translateY(-5px);\n}\n.menu-btn__after {\n transform: translateY(5px);\n}\n.menu-btn_active .menu-btn__before {\n transform: rotate(-35deg);\n width: 10px;\n transform-origin: left bottom;\n}\n.menu-btn_active .menu-btn__after {\n transform: rotate(35deg);\n width: 10px;\n transform-origin: left top;\n}\n\n.menu-btn_active span:before {\n transform: rotate(-35deg);\n width: 10px;\n transform-origin: left bottom;\n}\n.menu-btn_active span:after {\n transform: rotate(35deg);\n width: 10px;\n transform-origin: left top;\n}\n\n.menu-block {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.menu-nav {\n background-color: #fff;\n height: 50px;\n \n}\n.menu-nav__link {\n display: inline-block;\n text-decoration: none;\n color: #fff;\n margin-right: 20px;\n}\n.menu-nav__link {\n transition: 0.5s;\n transform-origin: right center;\n transform: translateX(50%);\n opacity: 0;\n}\n.menu-nav__link_active {\n transform: translateX(0%);\n opacity: 1;\n}\n\n</style>"],"names":["globals.state","shopcart.actions"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCC,UAAM,SAAS,UAAW;AACZ,aAAU;AAEV,YAAS;AAGvB,aAAS,oBAAoB;AAC3BA,YAAc,sBAAsB;AAAA,IACrC;AAID,cAAU,MAAM;AACbC,cAAiB,YAAa;AAAA,IAClC,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -5,7 +5,7 @@ const vueRouter = require("vue-router");
|
|
5
5
|
const vueI18n = require("vue-i18n");
|
6
6
|
const IconShopcart = require("../../../../icons/entities/IconShopcart.vue.cjs");
|
7
7
|
const IconProfile = require("../../../../icons/entities/IconProfile.vue.cjs");
|
8
|
-
const Button = require("../../../../../components/Button/Button.
|
8
|
+
const Button = require("../../../../../components/Button/Button.vue.cjs");
|
9
9
|
require("../../store/globals.cjs");
|
10
10
|
const shopcart = require("../../../../orders/store/shopcart.cjs");
|
11
11
|
const auth = require("../../../../auth/views/store/auth.cjs");
|
package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js
CHANGED
@@ -3,7 +3,7 @@ import { useRouter, useRoute } from "vue-router";
|
|
3
3
|
import { useI18n } from "vue-i18n";
|
4
4
|
import _sfc_main$2 from "../../../../icons/entities/IconShopcart.vue.js";
|
5
5
|
import _sfc_main$3 from "../../../../icons/entities/IconProfile.vue.js";
|
6
|
-
import _sfc_main$1 from "../../../../../components/Button/Button.
|
6
|
+
import _sfc_main$1 from "../../../../../components/Button/Button.vue.js";
|
7
7
|
import "../../store/globals.js";
|
8
8
|
import { actions, getters } from "../../../../orders/store/shopcart.js";
|
9
9
|
import { state } from "../../../../auth/views/store/auth.js";
|
package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.cjs
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const vue = require("vue");
|
4
|
+
const Menu = require("../../../../../components/Menu/Menu.vue2.cjs");
|
5
|
+
const MenuItem = require("../../../../../components/Menu/MenuItem.vue.cjs");
|
6
|
+
const clickOutside = require("../../../../../components/FieldPhone/click-outside.cjs");
|
7
|
+
const vueRouter = require("vue-router");
|
8
|
+
const auth = require("../../../../auth/views/store/auth.cjs");
|
9
|
+
const globals = require("../../store/globals.cjs");
|
10
|
+
const Checkbox = require("../../../../../components/Checkbox/Checkbox.vue.cjs");
|
11
|
+
;/* empty css */
|
12
|
+
const _hoisted_1 = {
|
13
|
+
id: "sidebar",
|
14
|
+
class: "o-hidden"
|
15
|
+
};
|
16
|
+
const _hoisted_2 = { class: "pd-medium pos-sticky pos-t-0 h-100vh flex-column flex flex-justify-content" };
|
17
|
+
const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("span", null, " Backoffice ", -1);
|
18
|
+
const _sfc_main = {
|
19
|
+
__name: "Sidebar",
|
20
|
+
props: ["stateSidebar"],
|
21
|
+
emits: ["closeSidebar"],
|
22
|
+
setup(__props, { emit: __emit }) {
|
23
|
+
const router = vueRouter.useRouter();
|
24
|
+
const route = vueRouter.useRoute();
|
25
|
+
vue.ref(false);
|
26
|
+
const props = __props;
|
27
|
+
const emits = __emit;
|
28
|
+
vue.watch(() => route.path, () => {
|
29
|
+
if (props.stateSidebar === true) emits("closeSidebar");
|
30
|
+
});
|
31
|
+
let vClickOutside = clickOutside.default;
|
32
|
+
function clickedOutside(event) {
|
33
|
+
const isMenuButton = event.target.classList.contains("menu-btn");
|
34
|
+
console.log(event.target.classList.contains("menu-btn"));
|
35
|
+
if (isMenuButton) {
|
36
|
+
return null;
|
37
|
+
} else if (props.stateSidebar === true) {
|
38
|
+
emits("closeSidebar");
|
39
|
+
}
|
40
|
+
}
|
41
|
+
return (_ctx, _cache) => {
|
42
|
+
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
43
|
+
vue.createElementVNode("div", _hoisted_2, [
|
44
|
+
vue.createElementVNode("div", null, [
|
45
|
+
vue.renderSlot(_ctx.$slots, "default")
|
46
|
+
]),
|
47
|
+
vue.createVNode(Checkbox.default, {
|
48
|
+
label: "Darkmode",
|
49
|
+
radio: globals.state.theme.darkmode,
|
50
|
+
"onUpdate:radio": _cache[0] || (_cache[0] = (event) => globals.actions.toggleTheme()),
|
51
|
+
name: "prices",
|
52
|
+
class: "t-semi pd-small p-big mn-b-small br-2px br-solid radius-extra br-black-transp-5"
|
53
|
+
}, null, 8, ["radio"]),
|
54
|
+
auth.state.access.roles && (auth.state.access.roles.includes("ROLE_MODERATOR") || auth.state.access.roles.includes("ROLE_ADMIN")) ? (vue.openBlock(), vue.createBlock(Menu.default, {
|
55
|
+
key: 0,
|
56
|
+
class: "mn-b-regular bg-black t-white"
|
57
|
+
}, {
|
58
|
+
default: vue.withCtx(() => [
|
59
|
+
vue.createVNode(MenuItem.default, {
|
60
|
+
onClick: _cache[1] || (_cache[1] = ($event) => vue.unref(router).push({
|
61
|
+
name: "Backoffice Admin",
|
62
|
+
params: {
|
63
|
+
_id: vue.unref(route).params._id
|
64
|
+
}
|
65
|
+
})),
|
66
|
+
class: "cursor-pointer",
|
67
|
+
theme: "white"
|
68
|
+
}, {
|
69
|
+
default: vue.withCtx(() => [
|
70
|
+
_hoisted_3
|
71
|
+
]),
|
72
|
+
_: 1
|
73
|
+
})
|
74
|
+
]),
|
75
|
+
_: 1
|
76
|
+
})) : vue.createCommentVNode("", true)
|
77
|
+
])
|
78
|
+
])), [
|
79
|
+
[vue.unref(vClickOutside), clickedOutside]
|
80
|
+
]);
|
81
|
+
};
|
82
|
+
}
|
83
|
+
};
|
84
|
+
exports.default = _sfc_main;
|
85
|
+
//# sourceMappingURL=Sidebar.vue.cjs.map
|
package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.cjs.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Sidebar.vue.cjs","sources":["../../../../../../../../src/modules/globals/views/components/partials/Sidebar.vue"],"sourcesContent":["<template>\n\n <div \n id=\"sidebar\" class=\"o-hidden\" v-click-outside=\"clickedOutside\"\n >\n <div \n class=\"pd-medium pos-sticky pos-t-0 h-100vh flex-column flex flex-justify-content\"\n >\n <div>\n <slot></slot>\n </div>\n\n <Checkbox \n :label=\"'Darkmode'\"\n :radio=\"globals.state.theme.darkmode\"\n @update:radio=\"event => globals.actions.toggleTheme()\"\n name=\"prices\"\n class=\" t-semi pd-small p-big mn-b-small br-2px br-solid radius-extra br-black-transp-5\"\n />\n\n <Menu \n v-if=\"(auth.state.access.roles) && (auth.state.access.roles.includes('ROLE_MODERATOR') || auth.state.access.roles.includes('ROLE_ADMIN'))\"\n class=\"mn-b-regular bg-black t-white\"\n >\n <MenuItem \n @click=\"router.push({\n name: 'Backoffice Admin', \n params: {\n _id: route.params._id\n }\n })\" \n class=\"cursor-pointer\"\n theme=\"white\"\n >\n <span>\n Backoffice\n </span>\n </MenuItem> \n </Menu>\n\n \n </div>\n </div>\n\n</template>\n\n<script setup>\nimport { ref, watch } from 'vue';\n\n// Mobile Module\nimport Menu from '@pf/src/components/Menu/Menu.vue'\nimport MenuItem from '@pf/src/components/Menu/MenuItem.vue'\n\nimport clickOutside from '@pf/src/components/FieldPhone/click-outside';\n\nimport { useRoute, useRouter} from 'vue-router'\n\nimport * as auth from '@pf/src/modules/auth/views/store/auth'\nimport * as globals from '@pf/src/modules/globals/views/store/globals'\n\nimport Checkbox from '@pf/src/components/Checkbox/Checkbox.vue'\n\nconst router = useRouter()\nconst route = useRoute()\n\nconst isOpen = ref(false);\n\nconst props = defineProps(['stateSidebar'])\nconst emits = defineEmits(['closeSidebar'])\n\nwatch(() => route.path, () => {\n if (props.stateSidebar === true) emits('closeSidebar');\n});\n\nlet vClickOutside = clickOutside\n\nfunction clickedOutside(event) {\n // Проверяем, не является ли элемент, по которому кликнули, кнопкой меню\n const isMenuButton = event.target.classList.contains('menu-btn');\n\n console.log(event.target.classList.contains('menu-btn'))\n \n if (isMenuButton) { \n return null;\n } else if (props.stateSidebar === true) {\n emits('closeSidebar');\n }\n}\n\n</script>\n\n<style lang=\"scss\" >\n #sidebar {\n ul {\n li {\n margin-bottom: 1rem;\n }\n }\n }\n</style>"],"names":["useRouter","useRoute","ref","watch","clickOutside"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA8DA,UAAM,SAAUA,UAAAA,UAAW;AAC3B,UAAM,QAAUC,UAAAA,SAAU;AAEXC,QAAG,IAAC,KAAK;AAExB,UAAM,QAAQ;AACd,UAAM,QAAQ;AAEdC,QAAAA,MAAM,MAAM,MAAM,MAAM,MAAM;AAC5B,UAAI,MAAM,iBAAiB,KAAM,OAAM,cAAc;AAAA,IACvD,CAAC;AAED,QAAI,gBAAgBC,aAAY;AAEhC,aAAS,eAAe,OAAO;AAE7B,YAAM,eAAe,MAAM,OAAO,UAAU,SAAS,UAAU;AAE/D,cAAQ,IAAI,MAAM,OAAO,UAAU,SAAS,UAAU,CAAC;AAEvD,UAAI,cAAc;AAChB,eAAO;AAAA,MACX,WAAc,MAAM,iBAAiB,MAAM;AACvC,cAAM,cAAc;AAAA,MACrB;AAAA,IACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.js
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
import { ref, watch, withDirectives, openBlock, createElementBlock, createElementVNode, renderSlot, createVNode, createBlock, withCtx, unref, createCommentVNode } from "vue";
|
2
|
+
import _sfc_main$2 from "../../../../../components/Menu/Menu.vue2.js";
|
3
|
+
import _sfc_main$3 from "../../../../../components/Menu/MenuItem.vue.js";
|
4
|
+
import clickOutside from "../../../../../components/FieldPhone/click-outside.js";
|
5
|
+
import { useRouter, useRoute } from "vue-router";
|
6
|
+
import { state as state$1 } from "../../../../auth/views/store/auth.js";
|
7
|
+
import { state, actions } from "../../store/globals.js";
|
8
|
+
import _sfc_main$1 from "../../../../../components/Checkbox/Checkbox.vue.js";
|
9
|
+
/* empty css */
|
10
|
+
const _hoisted_1 = {
|
11
|
+
id: "sidebar",
|
12
|
+
class: "o-hidden"
|
13
|
+
};
|
14
|
+
const _hoisted_2 = { class: "pd-medium pos-sticky pos-t-0 h-100vh flex-column flex flex-justify-content" };
|
15
|
+
const _hoisted_3 = /* @__PURE__ */ createElementVNode("span", null, " Backoffice ", -1);
|
16
|
+
const _sfc_main = {
|
17
|
+
__name: "Sidebar",
|
18
|
+
props: ["stateSidebar"],
|
19
|
+
emits: ["closeSidebar"],
|
20
|
+
setup(__props, { emit: __emit }) {
|
21
|
+
const router = useRouter();
|
22
|
+
const route = useRoute();
|
23
|
+
ref(false);
|
24
|
+
const props = __props;
|
25
|
+
const emits = __emit;
|
26
|
+
watch(() => route.path, () => {
|
27
|
+
if (props.stateSidebar === true) emits("closeSidebar");
|
28
|
+
});
|
29
|
+
let vClickOutside = clickOutside;
|
30
|
+
function clickedOutside(event) {
|
31
|
+
const isMenuButton = event.target.classList.contains("menu-btn");
|
32
|
+
console.log(event.target.classList.contains("menu-btn"));
|
33
|
+
if (isMenuButton) {
|
34
|
+
return null;
|
35
|
+
} else if (props.stateSidebar === true) {
|
36
|
+
emits("closeSidebar");
|
37
|
+
}
|
38
|
+
}
|
39
|
+
return (_ctx, _cache) => {
|
40
|
+
return withDirectives((openBlock(), createElementBlock("div", _hoisted_1, [
|
41
|
+
createElementVNode("div", _hoisted_2, [
|
42
|
+
createElementVNode("div", null, [
|
43
|
+
renderSlot(_ctx.$slots, "default")
|
44
|
+
]),
|
45
|
+
createVNode(_sfc_main$1, {
|
46
|
+
label: "Darkmode",
|
47
|
+
radio: state.theme.darkmode,
|
48
|
+
"onUpdate:radio": _cache[0] || (_cache[0] = (event) => actions.toggleTheme()),
|
49
|
+
name: "prices",
|
50
|
+
class: "t-semi pd-small p-big mn-b-small br-2px br-solid radius-extra br-black-transp-5"
|
51
|
+
}, null, 8, ["radio"]),
|
52
|
+
state$1.access.roles && (state$1.access.roles.includes("ROLE_MODERATOR") || state$1.access.roles.includes("ROLE_ADMIN")) ? (openBlock(), createBlock(_sfc_main$2, {
|
53
|
+
key: 0,
|
54
|
+
class: "mn-b-regular bg-black t-white"
|
55
|
+
}, {
|
56
|
+
default: withCtx(() => [
|
57
|
+
createVNode(_sfc_main$3, {
|
58
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(router).push({
|
59
|
+
name: "Backoffice Admin",
|
60
|
+
params: {
|
61
|
+
_id: unref(route).params._id
|
62
|
+
}
|
63
|
+
})),
|
64
|
+
class: "cursor-pointer",
|
65
|
+
theme: "white"
|
66
|
+
}, {
|
67
|
+
default: withCtx(() => [
|
68
|
+
_hoisted_3
|
69
|
+
]),
|
70
|
+
_: 1
|
71
|
+
})
|
72
|
+
]),
|
73
|
+
_: 1
|
74
|
+
})) : createCommentVNode("", true)
|
75
|
+
])
|
76
|
+
])), [
|
77
|
+
[unref(vClickOutside), clickedOutside]
|
78
|
+
]);
|
79
|
+
};
|
80
|
+
}
|
81
|
+
};
|
82
|
+
export {
|
83
|
+
_sfc_main as default
|
84
|
+
};
|
85
|
+
//# sourceMappingURL=Sidebar.vue.js.map
|
package/dist/prometheus-framework/src/modules/globals/views/components/partials/Sidebar.vue.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Sidebar.vue.js","sources":["../../../../../../../../src/modules/globals/views/components/partials/Sidebar.vue"],"sourcesContent":["<template>\n\n <div \n id=\"sidebar\" class=\"o-hidden\" v-click-outside=\"clickedOutside\"\n >\n <div \n class=\"pd-medium pos-sticky pos-t-0 h-100vh flex-column flex flex-justify-content\"\n >\n <div>\n <slot></slot>\n </div>\n\n <Checkbox \n :label=\"'Darkmode'\"\n :radio=\"globals.state.theme.darkmode\"\n @update:radio=\"event => globals.actions.toggleTheme()\"\n name=\"prices\"\n class=\" t-semi pd-small p-big mn-b-small br-2px br-solid radius-extra br-black-transp-5\"\n />\n\n <Menu \n v-if=\"(auth.state.access.roles) && (auth.state.access.roles.includes('ROLE_MODERATOR') || auth.state.access.roles.includes('ROLE_ADMIN'))\"\n class=\"mn-b-regular bg-black t-white\"\n >\n <MenuItem \n @click=\"router.push({\n name: 'Backoffice Admin', \n params: {\n _id: route.params._id\n }\n })\" \n class=\"cursor-pointer\"\n theme=\"white\"\n >\n <span>\n Backoffice\n </span>\n </MenuItem> \n </Menu>\n\n \n </div>\n </div>\n\n</template>\n\n<script setup>\nimport { ref, watch } from 'vue';\n\n// Mobile Module\nimport Menu from '@pf/src/components/Menu/Menu.vue'\nimport MenuItem from '@pf/src/components/Menu/MenuItem.vue'\n\nimport clickOutside from '@pf/src/components/FieldPhone/click-outside';\n\nimport { useRoute, useRouter} from 'vue-router'\n\nimport * as auth from '@pf/src/modules/auth/views/store/auth'\nimport * as globals from '@pf/src/modules/globals/views/store/globals'\n\nimport Checkbox from '@pf/src/components/Checkbox/Checkbox.vue'\n\nconst router = useRouter()\nconst route = useRoute()\n\nconst isOpen = ref(false);\n\nconst props = defineProps(['stateSidebar'])\nconst emits = defineEmits(['closeSidebar'])\n\nwatch(() => route.path, () => {\n if (props.stateSidebar === true) emits('closeSidebar');\n});\n\nlet vClickOutside = clickOutside\n\nfunction clickedOutside(event) {\n // Проверяем, не является ли элемент, по которому кликнули, кнопкой меню\n const isMenuButton = event.target.classList.contains('menu-btn');\n\n console.log(event.target.classList.contains('menu-btn'))\n \n if (isMenuButton) { \n return null;\n } else if (props.stateSidebar === true) {\n emits('closeSidebar');\n }\n}\n\n</script>\n\n<style lang=\"scss\" >\n #sidebar {\n ul {\n li {\n margin-bottom: 1rem;\n }\n }\n }\n</style>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AA8DA,UAAM,SAAU,UAAW;AAC3B,UAAM,QAAU,SAAU;AAEX,QAAI,KAAK;AAExB,UAAM,QAAQ;AACd,UAAM,QAAQ;AAEd,UAAM,MAAM,MAAM,MAAM,MAAM;AAC5B,UAAI,MAAM,iBAAiB,KAAM,OAAM,cAAc;AAAA,IACvD,CAAC;AAED,QAAI,gBAAgB;AAEpB,aAAS,eAAe,OAAO;AAE7B,YAAM,eAAe,MAAM,OAAO,UAAU,SAAS,UAAU;AAE/D,cAAQ,IAAI,MAAM,OAAO,UAAU,SAAS,UAAU,CAAC;AAEvD,UAAI,cAAc;AAChB,eAAO;AAAA,MACX,WAAc,MAAM,iBAAiB,MAAM;AACvC,cAAM,cAAc;AAAA,MACrB;AAAA,IACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -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 Tab = require("../../../../../components/Tab/Tab.
|
4
|
+
const Tab = require("../../../../../components/Tab/Tab.vue.cjs");
|
5
5
|
const _hoisted_1 = { class: "pd-medium flex-v-center flex-nowrap flex" };
|
6
6
|
const _hoisted_2 = { class: "mn-r-auto" };
|
7
7
|
const _hoisted_3 = ["onClick"];
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, Fragment, renderList, createBlock, normalizeClass, withCtx, createTextVNode, createCommentVNode } from "vue";
|
2
|
-
import _sfc_main$1 from "../../../../../components/Tab/Tab.
|
2
|
+
import _sfc_main$1 from "../../../../../components/Tab/Tab.vue.js";
|
3
3
|
const _hoisted_1 = { class: "pd-medium flex-v-center flex-nowrap flex" };
|
4
4
|
const _hoisted_2 = { class: "mn-r-auto" };
|
5
5
|
const _hoisted_3 = ["onClick"];
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
|
-
;/* empty css
|
5
|
-
;/* empty css */
|
4
|
+
;/* empty css */
|
6
5
|
;/* empty css */
|
6
|
+
;/* empty css */
|
7
7
|
const Menu = require("../../../../components/Menu/Menu.vue2.cjs");
|
8
8
|
const MenuItem = require("../../../../components/Menu/MenuItem.vue.cjs");
|
9
9
|
const vueRouter = require("vue-router");
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ref, openBlock, createElementBlock, createVNode, withCtx, unref, createStaticVNode, createElementVNode } from "vue";
|
2
|
-
/* empty css
|
3
|
-
/* empty css */
|
2
|
+
/* empty css */
|
4
3
|
/* empty css */
|
4
|
+
/* empty css */
|
5
5
|
import _sfc_main$1 from "../../../../components/Menu/Menu.vue2.js";
|
6
6
|
import _sfc_main$2 from "../../../../components/Menu/MenuItem.vue.js";
|
7
7
|
import { useRoute, useRouter } from "vue-router";
|
package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.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 vueRouter = require("vue-router");
|
5
|
-
;/* empty css
|
5
|
+
;/* empty css */
|
6
6
|
const Popup = require("../../../../components/Popup/Popup.vue2.cjs");
|
7
7
|
const IconTime = require("../../../icons/entities/IconTime.vue.cjs");
|
8
8
|
const CardOrderItem = require("../blocks/CardOrderItem.vue.cjs");
|
package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ref, onMounted, computed, openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString, Fragment, renderList, normalizeClass, createCommentVNode, createVNode, unref, withCtx, createBlock, pushScopeId, popScopeId } from "vue";
|
2
2
|
import { useRouter, useRoute } from "vue-router";
|
3
|
-
/* empty css
|
3
|
+
/* empty css */
|
4
4
|
import _sfc_main$1 from "../../../../components/Popup/Popup.vue2.js";
|
5
5
|
import IconTime from "../../../icons/entities/IconTime.vue.js";
|
6
6
|
import _sfc_main$2 from "../blocks/CardOrderItem.vue.js";
|
package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
4
|
const vueRouter = require("vue-router");
|
5
|
-
;/* empty css
|
6
|
-
const Button = require("../../../../components/Button/Button.
|
7
|
-
const Tab = require("../../../../components/Tab/Tab.
|
5
|
+
;/* empty css */
|
6
|
+
const Button = require("../../../../components/Button/Button.vue.cjs");
|
7
|
+
const Tab = require("../../../../components/Tab/Tab.vue.cjs");
|
8
8
|
const Popup = require("../../../../components/Popup/Popup.vue2.cjs");
|
9
9
|
const Block = require("../../../../components/Block/Block.vue.cjs");
|
10
10
|
const Feed = require("../../../../components/Feed/Feed.vue.cjs");
|
package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { computed, ref, onMounted, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, createTextVNode, unref, Fragment, renderList, createBlock, createCommentVNode, normalizeClass, toDisplayString } from "vue";
|
2
2
|
import { useRoute, useRouter } from "vue-router";
|
3
|
-
/* empty css
|
4
|
-
import _sfc_main$2 from "../../../../components/Button/Button.
|
5
|
-
import _sfc_main$3 from "../../../../components/Tab/Tab.
|
3
|
+
/* empty css */
|
4
|
+
import _sfc_main$2 from "../../../../components/Button/Button.vue.js";
|
5
|
+
import _sfc_main$3 from "../../../../components/Tab/Tab.vue.js";
|
6
6
|
import _sfc_main$4 from "../../../../components/Popup/Popup.vue2.js";
|
7
7
|
import _sfc_main$1 from "../../../../components/Block/Block.vue.js";
|
8
8
|
import _sfc_main$5 from "../../../../components/Feed/Feed.vue.js";
|