@ozdao/prometheus-framework 0.2.189 → 0.2.190

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  2. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
  3. package/dist/prometheus-framework/src/components/LocationSelection/LocationSelection.vue.cjs +1 -0
  4. package/dist/prometheus-framework/src/components/LocationSelection/LocationSelection.vue.js +96 -0
  5. package/dist/prometheus-framework/src/components/Sidebar/Sidebar.vue.cjs +1 -0
  6. package/dist/prometheus-framework/src/components/Sidebar/Sidebar.vue.js +74 -0
  7. package/dist/prometheus-framework/src/components/Status/Status.vue.cjs +1 -0
  8. package/dist/prometheus-framework/src/components/Status/Status.vue.js +29 -0
  9. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  10. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
  11. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  12. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  13. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  14. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  15. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  16. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  17. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  18. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  19. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  20. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  21. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  23. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  24. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  25. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  26. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  27. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
  29. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  30. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  31. package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +1 -1
  32. package/dist/prometheus-framework/src/modules/globals/globals.client.js +21 -18
  33. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +1 -1
  35. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +68 -42
  37. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -0
  38. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +197 -0
  39. package/dist/prometheus-framework/src/modules/globals/views/components/pages/401.vue.cjs +1 -0
  40. package/dist/prometheus-framework/src/modules/globals/views/components/pages/401.vue.js +10 -0
  41. package/dist/prometheus-framework/src/modules/globals/views/components/pages/404.vue.cjs +1 -0
  42. package/dist/prometheus-framework/src/modules/globals/views/components/pages/404.vue.js +10 -0
  43. package/dist/prometheus-framework/src/modules/globals/views/components/partials/BottomNavigation.vue.cjs +1 -0
  44. package/dist/prometheus-framework/src/modules/globals/views/components/partials/BottomNavigation.vue.js +157 -0
  45. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Navigation.vue.cjs +1 -0
  46. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Navigation.vue.js +95 -0
  47. package/dist/prometheus-framework/src/modules/globals/views/components/sections/Walkthrough.vue.cjs +1 -0
  48. package/dist/prometheus-framework/src/modules/globals/views/components/sections/Walkthrough.vue.js +126 -0
  49. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  50. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  51. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  52. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
  53. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  55. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  56. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  57. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +2 -2
  59. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  61. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  63. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +4 -4
  65. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  67. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  69. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -2
  71. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  73. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  75. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +4 -4
  77. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
  79. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  81. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  83. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  85. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  87. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  89. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  91. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  93. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  95. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
  97. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
  99. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +4 -4
  101. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  103. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
  105. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +4 -4
  107. package/dist/style.css +1 -1
  108. package/package.json +1 -1
  109. package/src/components/LocationSelection/LocationSelection.vue +5 -6
  110. package/src/modules/globals/globals.client.js +9 -4
  111. package/src/modules/globals/views/components/layouts/App.vue +21 -0
  112. package/src/modules/globals/views/components/layouts/Client.vue +25 -47
  113. package/src/modules/globals/views/components/partials/BottomNavigation.vue +0 -2
  114. package/src/modules/globals/views/components/partials/Header.vue +14 -10
  115. package/src/modules/globals/views/components/partials/Navigation.vue +4 -4
  116. package/src/modules/globals/views/components/sections/Walkthrough.vue +1 -1
@@ -21,38 +21,18 @@
21
21
  </section>
22
22
  </transition>
23
23
 
24
- <transition name="moveFromTop" mode="out-in" appear>
25
- <Header
26
- v-if="!MOBILE_APP"
27
- ref="header"
28
- class="transition-ease-in-out pos-relative br-b br-solid br-grey-transp-10 pos-t-0"
29
- :theme="headerTheme"
30
- :class="{
31
- 'pos-l-70': store.globals.state.isOpenSidebar,
32
- 'pos-l-0': !store.globals.state.isOpenSidebar,
33
- }"
34
- />
35
- </transition>
36
-
37
- <transition name="moveFromTop" mode="out-in" appear>
38
- <NavigationBar
39
- v-if="MOBILE_APP"
40
- :style="MOBILE_APP === 'ios' ?'padding-top: 6rem;':''"
41
- />
42
- </transition>
43
-
44
24
  <transition name="moveFromTop" mode="out-in" appear>
45
25
  <Sidebar
46
- v-if="show && store.globals.state.isOpenSidebar"
47
- :stateSidebar="store.globals.state.isOpenSidebar"
26
+ v-if="show && globals.state.isOpenSidebar"
27
+ :stateSidebar="globals.state.isOpenSidebar"
48
28
  @closeSidebar="() => {
49
- store.globals.state.isOpenSidebar = !store.globals.state.isOpenSidebar
29
+ globals.state.isOpenSidebar = !globals.state.isOpenSidebar
50
30
  }"
51
31
 
52
32
  class="transition-ease-in-out pos-absolute w-70 z-index-0 bg-light"
53
33
  :class="{
54
- 'pos-l-70-negative': !store.globals.state.isOpenSidebar,
55
- 'pos-l-0': store.globals.state.isOpenSidebar
34
+ 'pos-l-70-negative': !globals.state.isOpenSidebar,
35
+ 'pos-l-0': globals.state.isOpenSidebar
56
36
  }"
57
37
  >
58
38
  <Navigation class="h3 pd-big cols-1" />
@@ -61,7 +41,7 @@
61
41
 
62
42
  <Popup
63
43
  @close-popup="closeLocationPopup"
64
- :isPopupOpen="store.globals.state.isOpenLocationPopup"
44
+ :isPopupOpen="globals.state.isOpenLocationPopup"
65
45
  class="bg-white pd-semi w-m-33r radius-big"
66
46
  >
67
47
  <LocationSelection />
@@ -72,22 +52,22 @@
72
52
  id="screen"
73
53
  ref="screen"
74
54
  @scroll="handleScroll"
75
- @click="store.globals.state.isOpenSidebar
55
+ @click="globals.state.isOpenSidebar
76
56
  ?
77
- a => store.globals.state.isOpenSidebar = false
57
+ a => globals.state.isOpenSidebar = false
78
58
  :
79
59
  a => {console.log('not succes')}"
80
60
  class="transition-ease-in-out h-min-100 w-100 bg-white pos-relative o-scroll"
81
61
  :class="{
82
- 'pos-l-70': store.globals.state.isOpenSidebar,
83
- 'pos-l-0': !store.globals.state.isOpenSidebar
62
+ 'pos-l-70': globals.state.isOpenSidebar,
63
+ 'pos-l-0': !globals.state.isOpenSidebar
84
64
  }"
85
65
  >
86
66
  <ShopCart />
87
67
 
88
68
  <Status
89
- v-if="store.globals.state.error.show"
90
- :data="store.globals.state.error"
69
+ v-if="globals.state.error.show"
70
+ :data="globals.state.error"
91
71
  class="z-index-7"
92
72
  />
93
73
 
@@ -125,7 +105,7 @@
125
105
  // Router
126
106
  import { useRoute, useRouter } from 'vue-router'
127
107
  // Store
128
- import { useStore } from '@/store';
108
+ import * as globals from '@pf/src/modules/globals/views/store/globals'
129
109
  // Partials
130
110
  import Loader from '@pf/src/components/Loader/Loader.vue'
131
111
  import Status from '@pf/src/components/Status/Status.vue'
@@ -134,10 +114,8 @@
134
114
  import Breadcrumbs from '@pf/src/components/Breadcrumbs/Breadcrumbs.vue'
135
115
  import LocationSelection from '@pf/src/components/LocationSelection/LocationSelection.vue'
136
116
 
137
- import Header from '@pf/src/modules/globals/views/components/partials/Header.vue'
138
117
  import Navigation from '@pf/src/modules/globals/views/components/partials/Navigation.vue'
139
118
  import Footer from '@pf/src/modules/globals/views/components/partials/Footer.vue'
140
- import NavigationBar from '@pf/src/modules/globals/views/components/partials/NavigationBar.vue';
141
119
  import BottomNavigation from '@pf/src/modules/globals/views/components/partials/BottomNavigation.vue';
142
120
 
143
121
  import ShopCart from '@pf/src/modules/orders/components/partials/ShopCart.vue'
@@ -171,7 +149,6 @@
171
149
  /////////////////////////////
172
150
  const route = useRoute()
173
151
  const router = useRouter()
174
- const store = useStore();
175
152
  // State
176
153
  let show = ref(false)
177
154
  // Preloader
@@ -179,6 +156,16 @@
179
156
  const screen = ref(null)
180
157
  // Ref Code
181
158
  const referalCode = ref(route.query.referalCode);
159
+
160
+ /////////////////////////////
161
+ // Methods
162
+ /////////////////////////////
163
+ function closeLocationPopup() {
164
+ globals.state.isOpenLocationPopup = false;
165
+ }
166
+ function scrollTop(){
167
+ document.getElementById('app').scrollIntoView();
168
+ }
182
169
  // Scrolling header
183
170
  const scrollOffset = ref(0)
184
171
  let isScrolled = false
@@ -191,15 +178,6 @@
191
178
  return route.meta.header_theme || 'light'
192
179
  }
193
180
  })
194
- /////////////////////////////
195
- // Methods
196
- /////////////////////////////
197
- function closeLocationPopup() {
198
- store.globals.state.isOpenLocationPopup = false;
199
- }
200
- function scrollTop(){
201
- document.getElementById('app').scrollIntoView();
202
- }
203
181
  const handleScroll = () => {
204
182
  scrollOffset.value = event.target.scrollTop
205
183
 
@@ -259,9 +237,9 @@
259
237
  const savedPosition = localStorage.getItem('position');
260
238
 
261
239
  if (savedPosition) {
262
- store.globals.state.position = JSON.parse(savedPosition);
240
+ globals.state.position = JSON.parse(savedPosition);
263
241
  } else {
264
- store.globals.state.isOpenLocationPopup = true;
242
+ globals.state.isOpenLocationPopup = true;
265
243
  }
266
244
 
267
245
  if (referalCode.value) {
@@ -63,12 +63,10 @@
63
63
  /////////////////////////////
64
64
  import { ref,computed } from 'vue';
65
65
  import { useRouter, useRoute } from 'vue-router';
66
- import { useStore } from '@/store';
67
66
 
68
67
  /////////////////////////////
69
68
  // CREATED
70
69
  /////////////////////////////
71
- const store = useStore();
72
70
  const router = useRouter();
73
71
  const route = useRoute();
74
72
  const navRef = ref(null);
@@ -12,7 +12,6 @@
12
12
  import Select from '@pf/src/components/Select/Select.vue'
13
13
  import Checkbox from '@pf/src/components/Checkbox/Checkbox.vue'
14
14
  // Icons module
15
- import Logotype from '@pf/src/modules/icons/logos/Logotype.vue'
16
15
  import IconShopcart from '@pf/src/modules/icons/entities/IconShopcart.vue'
17
16
  import IconProfile from '@pf/src/modules/icons/entities/IconProfile.vue'
18
17
 
@@ -21,7 +20,10 @@
21
20
  theme: {
22
21
  type: String,
23
22
  default: "light"
24
- }
23
+ },
24
+ logotype: {
25
+ type: Object
26
+ }
25
27
  });
26
28
  // Accessing state
27
29
  const router = useRouter()
@@ -82,14 +84,16 @@
82
84
  </button>
83
85
 
84
86
  <!-- LOGO -->
85
- <Logotype
86
- @click="router.push({ path: '/' })"
87
- :theme="theme"
88
- class="
89
- h-2r
90
- w-auto
91
- cursor-pointer
92
- "
87
+ <component
88
+ v-if="props.logotype"
89
+ :is="props.logotype"
90
+ @click="router.push({ path: '/' })"
91
+ :theme="theme"
92
+ class="
93
+ h-2r
94
+ w-auto
95
+ cursor-pointer
96
+ "
93
97
  />
94
98
 
95
99
  <button
@@ -2,7 +2,7 @@
2
2
  <ul class="t-semi gap-small flex-nowrap flex-center flex">
3
3
  <li>
4
4
  <router-link
5
- :to="getMarketplaceLink(null,store.globals.state.position?.country,store.globals.state.position?.state,store.globals.state.position?.city)"
5
+ :to="getMarketplaceLink(null,globals.state.position?.country,globals.state.position?.state,globals.state.position?.city)"
6
6
  class="font-second"
7
7
  >
8
8
  {{ t('HEADER.MENU.MARKETPLACE') }}
@@ -11,7 +11,7 @@
11
11
  <li>
12
12
  <router-link
13
13
  class="font-second"
14
- :to="getSpotsLink(store.globals.state.position?.country,store.globals.state.position?.state,store.globals.state.position?.city)"
14
+ :to="getSpotsLink(globals.state.position?.country,globals.state.position?.state,globals.state.position?.city)"
15
15
  >
16
16
  {{ t('HEADER.MENU.DISPENSARIES') }}
17
17
  </router-link>
@@ -61,7 +61,8 @@
61
61
  import { computed, } from 'vue';
62
62
  import { useRoute,useRouter } from 'vue-router'
63
63
  import { useI18n } from 'vue-i18n'
64
- import { useStore } from '@/store';
64
+
65
+ import * as globals from '@pf/src/modules/globals/views/store/globals'
65
66
 
66
67
  /////////////////////////////
67
68
  // HELPERS
@@ -71,7 +72,6 @@ import { useStore } from '@/store';
71
72
  // CREATED
72
73
  /////////////////////////////
73
74
  const route = useRoute()
74
- const store = useStore()
75
75
  // Compoted Vars
76
76
  const text = {
77
77
  messages: {
@@ -16,7 +16,7 @@
16
16
  class="flex-center flex-column flex pd-big embla__slide"
17
17
  >
18
18
  <img
19
- src="/logo/logo_square.svg"
19
+ :src="'/logo/logo_square.svg'"
20
20
  class="i-extra radius-medium mn-b-small"
21
21
  >
22
22
  <h2 class="t-center mn-b-small">Welcome to The&nbsp;Commune</h2>