@ozdao/prometheus-framework 0.2.80 → 0.2.82

Sign up to get free protection for your applications and to get access to all the features.
Files changed (303) hide show
  1. package/dist/auth.server.js +1 -1
  2. package/dist/auth.server.mjs +1 -1
  3. package/dist/community.server.js +3 -3
  4. package/dist/community.server.mjs +3 -3
  5. package/dist/credentials.schema-CDZCKfEI.mjs +106 -0
  6. package/dist/credentials.schema-CfhPcsuI.js +105 -0
  7. package/dist/events.server.js +4 -15
  8. package/dist/events.server.mjs +3 -14
  9. package/dist/files.server.js +1 -1
  10. package/dist/files.server.mjs +1 -1
  11. package/dist/gallery.server.js +1 -1
  12. package/dist/gallery.server.mjs +1 -1
  13. package/dist/index-B6a1mPgp.mjs +217 -0
  14. package/dist/index-BCCiEK_u.js +216 -0
  15. package/dist/main-8N2Jmsuk.js +91 -0
  16. package/dist/main-CkeuHuCY.mjs +13619 -0
  17. package/dist/main.css +1 -1
  18. package/dist/metadata.schema-Cu_mPkjE.js +77 -0
  19. package/dist/metadata.schema-cbFgazeK.mjs +78 -0
  20. package/dist/middlewares.server.js +1 -1
  21. package/dist/middlewares.server.mjs +1 -1
  22. package/dist/node_modules/@googlemaps/js-api-loader/dist/index.cjs +1 -0
  23. package/dist/node_modules/@googlemaps/js-api-loader/dist/index.js +238 -0
  24. package/dist/organizations.server.js +297 -134
  25. package/dist/organizations.server.mjs +295 -132
  26. package/dist/products.server.js +2 -2
  27. package/dist/products.server.mjs +2 -2
  28. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  29. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +33 -24
  30. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/components/Block/Block.vue.js +23 -20
  32. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  33. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +32 -155
  34. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +55 -1
  36. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  37. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +1 -55
  38. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +71 -60
  40. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +325 -340
  42. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +2 -2
  44. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  45. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +53 -44
  46. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +1 -72
  48. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  49. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +73 -1
  50. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/components/Select/Select.vue.js +1 -97
  52. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  53. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +103 -1
  54. package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +18 -19
  56. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
  58. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  59. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
  60. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +28 -28
  62. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/auth/store/auth.js +26 -26
  64. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +78 -103
  66. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  68. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  70. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  72. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +14 -14
  74. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +4 -4
  76. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  78. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  80. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  82. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  84. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +3 -3
  85. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +132 -141
  86. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +29 -27
  88. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js +4 -4
  90. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  92. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  94. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +2 -2
  96. package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.js +32 -25
  98. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +6 -3
  100. package/dist/prometheus-framework/src/modules/globals/services/globals.store.cjs +1 -0
  101. package/dist/prometheus-framework/src/modules/globals/services/globals.store.js +70 -0
  102. package/dist/prometheus-framework/src/modules/icons/entities/IconGallery.vue.cjs +1 -0
  103. package/dist/prometheus-framework/src/modules/icons/entities/IconGallery.vue.js +28 -0
  104. package/dist/prometheus-framework/src/modules/icons/entities/IconLeftovers.vue.cjs +1 -0
  105. package/dist/prometheus-framework/src/modules/icons/entities/IconLeftovers.vue.js +30 -0
  106. package/dist/prometheus-framework/src/modules/icons/entities/IconOrders.vue.cjs +1 -0
  107. package/dist/prometheus-framework/src/modules/icons/entities/IconOrders.vue.js +35 -0
  108. package/dist/prometheus-framework/src/modules/icons/entities/IconProducts.vue.cjs +1 -0
  109. package/dist/prometheus-framework/src/modules/icons/entities/IconProducts.vue.js +28 -0
  110. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +63 -86
  112. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  114. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +1 -13
  116. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +13 -1
  118. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +174 -114
  120. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +39 -39
  122. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -0
  123. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +141 -0
  124. package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.js +3 -3
  126. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -0
  127. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +77 -0
  128. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +46 -35
  130. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  132. package/dist/prometheus-framework/src/modules/orders/store/customers.store.cjs +1 -0
  133. package/dist/prometheus-framework/src/modules/orders/store/customers.store.js +5 -0
  134. package/dist/prometheus-framework/src/modules/orders/store/models/customer.cjs +1 -0
  135. package/dist/prometheus-framework/src/modules/orders/store/models/customer.js +30 -0
  136. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/orders/store/orders.js +24 -25
  138. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +16 -16
  140. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  142. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +39 -50
  144. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +6 -6
  146. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +161 -138
  148. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +199 -79
  150. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +83 -126
  152. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  154. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +1 -1
  156. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  158. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +59 -70
  160. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  162. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +34 -36
  164. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +38 -18
  166. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +34 -35
  168. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  170. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +41 -21
  172. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  174. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  176. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  178. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  180. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  181. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +2 -2
  182. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  183. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  184. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +24 -26
  186. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -0
  187. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +78 -0
  188. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  189. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  190. package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
  191. package/dist/prometheus-framework/src/modules/users/store/users.js +13 -14
  192. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +4 -4
  194. package/dist/prometheus-framework.cjs.js +1 -1
  195. package/dist/prometheus-framework.es.js +1 -1
  196. package/dist/queryProcessor-BJdKh0Ow.mjs +162 -0
  197. package/dist/queryProcessor-DRMo_GWK.js +161 -0
  198. package/dist/reports.server.js +1 -1
  199. package/dist/reports.server.mjs +1 -1
  200. package/dist/style.css +1 -1
  201. package/dist/users.server.js +69 -38
  202. package/dist/users.server.mjs +67 -36
  203. package/dist/wallet.server.js +2 -2
  204. package/dist/wallet.server.mjs +2 -2
  205. package/dist/web-CtVocufd.js +1 -0
  206. package/dist/web-DNq1tHCE.mjs +54 -0
  207. package/package.json +1 -1
  208. package/src/components/Address/Address.vue +13 -2
  209. package/src/components/Block/Block.vue +3 -2
  210. package/src/components/Button/Button.vue +9 -12
  211. package/src/components/Feed/Feed.vue +28 -6
  212. package/src/components/FieldPhone/FieldPhone.vue +592 -558
  213. package/src/components/LocationMarker/LocationMarker.vue +26 -22
  214. package/src/components/Popup/Popup.vue +22 -23
  215. package/src/components/Select/Select.vue +43 -32
  216. package/src/components/Slider/Slider.vue +3 -4
  217. package/src/modules/auth/components/pages/Invite.vue +7 -7
  218. package/src/modules/auth/store/auth.js +1 -1
  219. package/src/modules/backoffice/components/pages/Dashboard.vue +44 -29
  220. package/src/modules/community/components/sections/HotPosts.vue +1 -1
  221. package/src/modules/events/components/blocks/CardEvent.vue +4 -3
  222. package/src/modules/events/components/pages/Event.vue +4 -3
  223. package/src/modules/events/components/pages/Events.vue +23 -6
  224. package/src/modules/events/components/sections/HeroEvent.vue +1 -1
  225. package/src/modules/globals/components/sections/SectionPageTitle.vue +19 -7
  226. package/src/modules/globals/controllers/utils/queryProcessor.js +21 -7
  227. package/src/modules/globals/localization/vue-i18n.js +3 -0
  228. package/src/modules/globals/models/credentials.schema.js +7 -0
  229. package/src/modules/globals/models/metadata.schema.js +17 -0
  230. package/src/modules/globals/models/profile.schema.js +23 -0
  231. package/src/modules/globals/models/socials.schema.js +22 -0
  232. package/src/modules/globals/router/routerGuards.js +1 -0
  233. package/src/modules/globals/services/globals.cashe.js +26 -0
  234. package/src/modules/globals/services/globals.crud.js +115 -0
  235. package/src/modules/globals/services/globals.logger.js +41 -0
  236. package/src/modules/globals/services/globals.store.js +114 -0
  237. package/src/modules/icons/entities/IconGallery.vue +14 -0
  238. package/src/modules/icons/entities/IconLeftovers.vue +14 -0
  239. package/src/modules/icons/entities/IconOrders.vue +15 -0
  240. package/src/modules/icons/entities/IconProducts.vue +14 -0
  241. package/src/modules/landing/components/sections/HeroSection.vue +1 -1
  242. package/src/modules/landing/components/sections/MobileApp.vue +4 -4
  243. package/src/modules/landing/router/landing.js +1 -1
  244. package/src/modules/marketplace/components/sections/Filters.vue +3 -3
  245. package/src/modules/middlewares/server/accessors/AccessController.js +33 -0
  246. package/src/modules/middlewares/server/accessors/ReadDepartments.js +101 -0
  247. package/src/modules/middlewares/server/verifyAccesses.js +33 -0
  248. package/src/modules/middlewares/server/verifyInvites.js +4 -4
  249. package/src/modules/orders/components/pages/OrderCreate.vue +2 -2
  250. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +105 -68
  251. package/src/modules/orders/components/pages/Orders.vue +2 -2
  252. package/src/modules/orders/components/sections/FormAddCustomer.vue +152 -0
  253. package/src/modules/orders/components/sections/FormCustomerDetails.vue +67 -0
  254. package/src/modules/orders/components/sections/FormDelivery.vue +17 -3
  255. package/src/modules/orders/controllers/applications.controller.js +2 -0
  256. package/src/modules/orders/controllers/orders.controller.js +77 -52
  257. package/src/modules/orders/models/customer.model.js +54 -18
  258. package/src/modules/orders/models/order.model.js +1 -1
  259. package/src/modules/orders/orders.client.js +51 -51
  260. package/src/modules/orders/orders.server.js +32 -12
  261. package/src/modules/orders/router/orders.router.js +36 -41
  262. package/src/modules/orders/routes/orders.routes.js +3 -21
  263. package/src/modules/orders/store/customers.store.js +5 -0
  264. package/src/modules/orders/store/models/customer.js +29 -0
  265. package/src/modules/orders/store/orders.js +14 -20
  266. package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
  267. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  268. package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +1 -12
  269. package/src/modules/organizations/components/pages/Department.vue +1 -1
  270. package/src/modules/organizations/components/pages/DepartmentEdit.vue +72 -48
  271. package/src/modules/organizations/components/pages/Members.vue +178 -64
  272. package/src/modules/organizations/components/pages/Organization.vue +1 -41
  273. package/src/modules/organizations/components/sections/MembersAdd.vue +44 -52
  274. package/src/modules/organizations/controllers/departments.controller.js +2 -4
  275. package/src/modules/organizations/controllers/invites.controller.js +24 -23
  276. package/src/modules/organizations/controllers/organizations.controller.js +1 -1
  277. package/src/modules/organizations/models/department.model.js +52 -2
  278. package/src/modules/organizations/models/invite.model.js +29 -32
  279. package/src/modules/organizations/models/membership.model.js +2 -0
  280. package/src/modules/organizations/models/organization.model.js +2 -1
  281. package/src/modules/organizations/organizations.client.js +0 -2
  282. package/src/modules/organizations/routes/departments.routes.js +18 -7
  283. package/src/modules/organizations/routes/invites.routes.js +2 -2
  284. package/src/modules/organizations/store/departments.js +22 -1
  285. package/src/modules/organizations/store/invites.js +74 -90
  286. package/src/modules/products/components/blocks/CardProduct.vue +24 -0
  287. package/src/modules/products/components/pages/Products.vue +1 -1
  288. package/src/modules/reports/components/sections/FormReport.vue +40 -40
  289. package/src/modules/spots/components/pages/Spot.vue +1 -1
  290. package/src/modules/spots/components/pages/SpotEdit.vue +1 -1
  291. package/src/modules/users/components/blocks/CardUser.vue +85 -0
  292. package/src/modules/users/controllers/users.controller.js +36 -13
  293. package/src/modules/users/middlewares/visitor.logger.js +66 -0
  294. package/src/modules/users/models/request.model.js +18 -0
  295. package/src/modules/users/models/user.model.js +26 -55
  296. package/src/modules/users/models/visitor.model.js +14 -0
  297. package/src/modules/users/store/users.js +2 -11
  298. package/src/modules/wallet/controllers/routes/payments.routes.js +2 -0
  299. package/src/components/FieldPhone/FieldPhone(script-setup).vue +0 -1646
  300. package/src/components/FieldPhone/FieldPhone2.vue +0 -671
  301. package/src/modules/orders/components/sections/FormClientDetails.vue +0 -61
  302. package/src/modules/organizations/components/blocks/User.vue +0 -69
  303. /package/src/modules/backoffice/components/admin/{User.vue → UserEdit.vue} +0 -0
@@ -5,9 +5,6 @@
5
5
  <button class="cursor-pointer flex-center flex pos-absolute pos-t-regular pos-r-regular i-semi bg-second pd-nano radius-extra" @click="setUserLocation">
6
6
 
7
7
  <transition name="ScaleOut" mode="out-in">
8
-
9
-
10
-
11
8
  <svg v-if="!locationLoading" class="i-regular" width="98" height="98" viewBox="0 0 98 98" fill="none" xmlns="http://www.w3.org/2000/svg">
12
9
  <path d="M50.0004 31.4995C39.7996 31.4995 31.5 39.7991 31.5 49.9999C31.5 60.2007 39.7996 68.5003 50.0004 68.5003C60.2012 68.5003 68.5008 60.2007 68.5008 49.9999C68.5008 39.7991 60.2012 31.4995 50.0004 31.4995ZM50.0004 63.7944C42.3941 63.7944 36.2059 57.6062 36.2059 49.9999C36.2059 42.3936 42.3941 36.2054 50.0004 36.2054C57.6067 36.2054 63.7949 42.3936 63.7949 49.9999C63.7949 57.6062 57.6067 63.7944 50.0004 63.7944Z" fill="rgb(var(--white))"/>
13
10
  <path d="M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z" fill="rgb(var(--white))"/>
@@ -22,6 +19,7 @@
22
19
 
23
20
  <script setup>
24
21
  import { ref, onMounted, watchEffect } from 'vue';
22
+ import { Loader as GMLoader } from "@googlemaps/js-api-loader";
25
23
 
26
24
  import Loader from '@pf/src/components/Loader/Loader.vue'
27
25
 
@@ -46,28 +44,36 @@ const locationLoading = ref(false);
46
44
  let map, marker;
47
45
 
48
46
  onMounted(() => {
49
- console.log(props.location)
50
-
51
- map = new google.maps.Map(mapContainer.value, {
52
- center: props.location,
53
- zoom: 15,
54
- mapTypeControl: false,
55
- fullscreenControl: false,
56
- disableDefaultUI: true
47
+ const loader = new GMLoader({
48
+ apiKey: props.apiKey,
49
+ version: "weekly",
50
+ libraries: ["places"]
57
51
  });
58
52
 
59
- marker = new google.maps.Marker({
60
- position: props.location,
61
- map,
62
- draggable: true,
63
- });
53
+ loader.load().then(() => {
54
+ map = new google.maps.Map(mapContainer.value, {
55
+ center: props.location,
56
+ zoom: 15,
57
+ mapTypeControl: false,
58
+ fullscreenControl: false,
59
+ disableDefaultUI: true
60
+ });
64
61
 
65
- marker.addListener("dragend", (e) => {
66
- const newLocation = { lat: e.latLng.lat(), lng: e.latLng.lng() };
62
+ marker = new google.maps.Marker({
63
+ position: props.location,
64
+ map,
65
+ draggable: true,
66
+ });
67
67
 
68
- emit('update:location', newLocation);
68
+ marker.addListener("dragend", (e) => {
69
+ const newLocation = { lat: e.latLng.lat(), lng: e.latLng.lng() };
69
70
 
70
- getAddressFromLocation(newLocation);
71
+ emit('update:location', newLocation);
72
+
73
+ getAddressFromLocation(newLocation);
74
+ });
75
+ }).catch(e => {
76
+ console.error(e);
71
77
  });
72
78
  });
73
79
 
@@ -139,8 +145,6 @@ async function setUserLocation() {
139
145
  console.error('Geolocation is not supported by this browser.');
140
146
  locationLoading.value = false
141
147
  }
142
-
143
-
144
148
  }
145
149
  </script>
146
150
 
@@ -1,28 +1,26 @@
1
1
  <template>
2
-
3
- <teleport to="body" v-if="isPopupOpen">
4
- <transition name="TransitionTranslateY" appear>
5
-
6
- <div v-if="isPopupOpen" key="popup-content" class="pd-small popup-wrapper">
7
-
8
- <transition name="TransitionTranslateY" mode="out-in">
9
- <section v-if="isPopupOpen" class="pos-relative z-index-4" v-bind="$attrs">
10
- <IconCross @click="closePopup()" class="cursor-pointer pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-regular z-index-5"/>
11
-
12
- <slot></slot>
13
- </section>
14
- </transition>
15
-
16
- <div
17
- @click="closePopup()"
18
- :class="{'active':isPopupOpen === true}"
19
- class="color-overlay z-index-3">
20
- </div>
21
-
22
- </div>
23
2
 
3
+ <transition name="TransitionTranslateY" appear>
4
+ <teleport to="body" v-if="isPopupOpen">
5
+ <div v-if="isPopupOpen" key="popup-content" class="pd-small popup-wrapper">
6
+
7
+ <transition name="TransitionTranslateY" mode="out-in">
8
+ <section class="pos-relative z-index-4" v-bind="$attrs" :class="$attrs.class">
9
+ <h4 class="mn-b-small">{{title}}</h4>
10
+ <IconCross @click="closePopup()" class="cursor-pointer pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-regular z-index-5"/>
11
+ <slot></slot>
12
+ </section>
13
+ </transition>
14
+
15
+ <div
16
+ @click="closePopup()"
17
+ :class="{'active':isPopupOpen === true}"
18
+ class="color-overlay z-index-3">
19
+ </div>
20
+
21
+ </div>
22
+ </teleport>
24
23
  </transition>
25
- </teleport>
26
24
 
27
25
  </template>
28
26
 
@@ -39,7 +37,8 @@ const props = defineProps({
39
37
  type: Boolean,
40
38
  default: false
41
39
  },
42
- style: String
40
+ style: String,
41
+ title: String,
43
42
  });
44
43
  const emits = defineEmits(['close-popup'])
45
44
 
@@ -15,7 +15,7 @@
15
15
  <li class="w-100">
16
16
  <!-- Selected Value -->
17
17
  <span>
18
- {{ selectedOption?.name ? selectedOption?.name : selectedOption || placeholder }}
18
+ {{ optionsSelected?.name ? optionsSelected?.name : optionsSelected || placeholder }}
19
19
  </span>
20
20
  </li>
21
21
 
@@ -47,73 +47,84 @@
47
47
  <script setup>
48
48
  import { ref, computed, watch } from 'vue'
49
49
 
50
- const emit = defineEmits(['update:select', 'focus', 'blur'])
51
-
52
50
  import clickOutside from '../FieldPhone/click-outside';
53
51
 
54
52
  let vClickOutside = clickOutside
55
53
 
54
+ const emit = defineEmits([
55
+ 'update:select',
56
+ 'focus',
57
+ 'blur'
58
+ ])
56
59
 
57
60
  const props = defineProps({
58
61
  label: String,
62
+ placeholder: { type: String, default: 'Please select an item' },
59
63
  select: [String, Object],
60
64
  property: String,
61
- placeholder: { type: String, default: 'Please select an item' },
62
65
  options: { type: Array, default: () => [] },
63
66
  validation: Boolean,
64
67
  })
65
68
 
66
- const selectedOption = ref(props.property ? findObjectByValue(props.select, props.property, props.options) : props.select)
67
69
  const showMenu = ref(false)
68
70
 
69
- function clickedOutside () {
70
- showMenu.value = false
71
- }
72
-
73
-
74
- function findObjectByValue(value, property,objects) {
75
- for (const object of objects) {
76
- if (object[property] === value || object === value) {
77
- return object;
78
- }
71
+ const optionsSelected = ref(
72
+ props.property
73
+ ? findObjectByValue(props.select, props.property, props.options)
74
+ : props.select
75
+ )
79
76
 
80
- }
81
- return null;
82
- }
77
+ const optionsListed = computed(() => {
78
+ return props.select
79
+ ? props.options.filter(option => option !== props.select)
80
+ : props.options
81
+ })
83
82
 
84
83
  watch(() => props.select, (newSelect) => {
85
- selectedOption.value = props.property ? findObjectByValue(props.select, props.property, props.options) : props.select;
84
+ optionsSelected.value =
85
+ props.property
86
+ ? findObjectByValue(props.select, props.property, props.options)
87
+ : props.select;
86
88
  });
87
89
 
88
- const optionsListed = computed(() => {
89
- return props.select ? props.options.filter(option => option !== props.select) : props.options
90
- })
91
-
92
90
  const toggleMenu = () => {
93
91
  showMenu.value = !showMenu.value
94
92
 
95
93
  emit(showMenu.value ? 'focus' : 'blur')
96
94
  }
97
95
 
96
+ function clickedOutside () {
97
+ showMenu.value = false
98
+ }
99
+
98
100
  const selectOption = option => {
99
- selectedOption.value = option
101
+ optionsSelected.value = option
100
102
 
101
103
  toggleMenu()
102
104
 
103
105
  if (props.property) {
104
- emit('update:select', selectedOption.value[props.property])
106
+ emit('update:select', optionsSelected.value[props.property])
105
107
  } else {
106
- emit('update:select', selectedOption.value)
108
+ emit('update:select', optionsSelected.value)
109
+ }
110
+ }
111
+
112
+ function findObjectByValue (value, property, objects) {
113
+ for (const object of objects) {
114
+ if (object[property] === value || object === value) {
115
+ return object;
116
+ }
107
117
  }
118
+ return null;
108
119
  }
109
120
  </script>
110
121
 
111
122
  <style lang="scss" scoped>
112
- li {
113
- list-style-type: none;
114
- }
123
+ li {
124
+ list-style-type: none;
125
+ }
115
126
 
116
- ul li {
117
- line-height: 2;
118
- }
127
+ ul li {
128
+ line-height: 2;
129
+ }
119
130
  </style>
@@ -32,7 +32,8 @@ import Loader from '@pf/src/components/Loader/Loader.vue'
32
32
  const props = defineProps({
33
33
  store: Object,
34
34
  options: Object,
35
- text: Object
35
+ text: Object,
36
+ user: Object
36
37
  });
37
38
 
38
39
  const router = useRouter()
@@ -63,9 +64,7 @@ const onSelect = (embla) => selectedIndex.value = emblaApi.value.selectedScrollS
63
64
  // const onInit = (embla) => scrollSnaps.value = emblaApi.value.scrollSnapList();
64
65
 
65
66
  onMounted(async() => {
66
- entitiesState.value = await props.store.read({
67
- ...props.options
68
- });
67
+ entitiesState.value = await props.store.read(props.options);
69
68
 
70
69
  isLoading.value = false;
71
70
 
@@ -1,25 +1,25 @@
1
1
  <template>
2
2
  <section class="t-left pd-medium">
3
3
  <!-- Header -->
4
- <h3 class="mn-b-small">Вы были пригилашены в организацию</h3>
5
- <p class="mn-b-semi t-transp">Пожалуйста, укажите пароль, на этом регистрация будет закочена.</p>
6
-
4
+ <h3 class="mn-b-small">You have been invited to the organization</h3>
5
+ <p class="mn-b-semi t-transp">Please provide a password to complete the registration.</p>
6
+
7
7
  <!-- Form -->
8
8
  <div class="mn-b-semi radius-small o-hidden">
9
9
  <Field
10
10
  v-model:field="auth.state.user.password"
11
11
  type="password"
12
12
  :validation="passswordValidation"
13
- label="Пароль"
13
+ label="Password"
14
14
  placeholder="******"
15
- class="bg-white radius-small mn-b-small"
15
+ class="mn-b-thin bg-grey pd-medium radius-small"
16
16
  />
17
17
  <Field
18
18
  v-model:field="auth.state.user.passwordRepeat"
19
19
  type="password"
20
- label="Повторите пароль"
20
+ label="Repeat Password"
21
21
  placeholder="******"
22
- class="bg-white radius-small mn-b-semi"
22
+ class="bg-grey pd-medium radius-small"
23
23
 
24
24
  />
25
25
  </div>
@@ -217,7 +217,7 @@
217
217
 
218
218
  // Cookies
219
219
  const optionsDefault = {
220
- development: { secure: false, expires: 7 },
220
+ development: { secure: false, expires: 7, sameSite: 'Lax' },
221
221
  production: { expires: 7, path: '/', domain: process.env.API_URL, sameSite: 'none', secure: true }
222
222
  };
223
223
 
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="">
3
- <h1>Welcome to Backoffice</h1>
3
+ <h1 class="pd-medium radius-medium bg-grey mn-b-small">Welcome to Backoffice</h1>
4
4
 
5
5
  <Menu
6
6
  class="bg-grey mn-b-semi"
@@ -12,117 +12,124 @@
12
12
  _id: route.params._id
13
13
  }
14
14
  })"
15
- class="cursor-pointer">
15
+ class="cursor-pointer"
16
+ >
17
+ <IconGroups class="i-semi" :icon="true" :fill="'rgb(var(--white))'"/>
16
18
  <span>
17
19
  Members
18
20
  </span>
19
21
  </MenuItem>
20
22
 
21
- <MenuItem
23
+ <!-- <MenuItem
22
24
  @click="router.push({
23
- name: 'Backoffice Events',
25
+ name: 'Backoffice Community',
24
26
  params: {
25
27
  _id: route.params._id
26
28
  }
27
29
  })"
28
30
  class="cursor-pointer">
29
31
  <span>
30
- Events
32
+ Community
31
33
  </span>
32
- </MenuItem>
34
+ </MenuItem> -->
33
35
 
34
36
  <MenuItem
35
37
  @click="router.push({
36
- name: 'Backoffice Community',
38
+ name: 'Products',
37
39
  params: {
38
40
  _id: route.params._id
39
41
  }
40
42
  })"
41
43
  class="cursor-pointer">
44
+ <IconProducts class="i-semi" :icon="true" :fill="'rgb(var(--white))'"/>
42
45
  <span>
43
- Community
46
+ Products
44
47
  </span>
45
48
  </MenuItem>
46
49
 
47
50
  <MenuItem
48
51
  @click="router.push({
49
- name: 'Products',
52
+ name: 'Leftovers',
50
53
  params: {
51
54
  _id: route.params._id
52
55
  }
53
56
  })"
54
57
  class="cursor-pointer">
58
+ <IconLeftovers class="i-semi" :icon="true" :fill="'rgb(var(--white))'"/>
55
59
  <span>
56
- Products
60
+ Leftovers
57
61
  </span>
58
62
  </MenuItem>
59
63
 
60
64
  <MenuItem
61
65
  @click="router.push({
62
- name: 'Leftovers',
66
+ name: 'Backoffice Orders',
63
67
  params: {
64
68
  _id: route.params._id
65
69
  }
66
70
  })"
67
71
  class="cursor-pointer">
72
+ <IconOrders class="i-semi" :icon="true" :fill="'rgb(var(--white))'"/>
68
73
  <span>
69
- Leftovers
74
+ Orders
70
75
  </span>
71
76
  </MenuItem>
72
77
 
73
78
  <MenuItem
74
79
  @click="router.push({
75
- name: 'Backoffice Orders',
80
+ name: 'Backoffice Gallery',
76
81
  params: {
77
82
  _id: route.params._id
78
83
  }
79
84
  })"
80
85
  class="cursor-pointer">
86
+ <IconGallery class="i-semi" :icon="true" :fill="'rgb(var(--white))'"/>
81
87
  <span>
82
- Orders
88
+ Gallery
83
89
  </span>
84
90
  </MenuItem>
85
-
91
+
86
92
  <MenuItem
87
93
  @click="router.push({
88
- name: 'Payments',
94
+ name: 'Backoffice Events',
89
95
  params: {
90
96
  _id: route.params._id
91
97
  }
92
98
  })"
93
99
  class="cursor-pointer">
100
+ <IconEvents class="i-semi" :icon="true" :fill="'rgb(var(--white))'"/>
94
101
  <span>
95
- Payments
102
+ Events
96
103
  </span>
97
104
  </MenuItem>
98
- </Menu>
99
105
 
100
- <Menu
101
- class="bg-grey"
102
- >
103
- <MenuItem
106
+ <!-- <MenuItem
104
107
  @click="router.push({
105
- name: 'Backoffice Organizations',
108
+ name: 'Payments',
106
109
  params: {
107
110
  _id: route.params._id
108
111
  }
109
112
  })"
110
113
  class="cursor-pointer">
111
114
  <span>
112
- Organizations
115
+ Payments
113
116
  </span>
114
- </MenuItem>
117
+ </MenuItem> -->
118
+ </Menu>
115
119
 
116
- <MenuItem
120
+ <!-- <Menu
121
+ class="bg-grey"
122
+ >
123
+ <MenuItem
117
124
  @click="router.push({
118
- name: 'Backoffice Gallery',
125
+ name: 'Backoffice Organizations',
119
126
  params: {
120
127
  _id: route.params._id
121
128
  }
122
129
  })"
123
130
  class="cursor-pointer">
124
131
  <span>
125
- Gallery
132
+ Organizations
126
133
  </span>
127
134
  </MenuItem>
128
135
 
@@ -138,7 +145,7 @@
138
145
  Reports
139
146
  </span>
140
147
  </MenuItem>
141
- </Menu>
148
+ </Menu> -->
142
149
  </div>
143
150
  </template>
144
151
 
@@ -152,6 +159,14 @@ import { ref, onMounted } from 'vue';
152
159
  import Menu from '@pf/src/modules/mobile/components/Menu/Menu.vue'
153
160
  import MenuItem from '@pf/src/modules/mobile/components/Menu/MenuItem.vue'
154
161
  import SelectMulti from '@pf/src/components/SelectMulti/SelectMulti.vue'
162
+
163
+ import IconProducts from '@pf/src/modules/icons/entities/IconProducts.vue'
164
+ import IconEvents from '@pf/src/modules/icons/entities/IconEvents.vue'
165
+ import IconGroups from '@pf/src/modules/icons/entities/IconGroups.vue'
166
+ import IconCommunity from '@pf/src/modules/icons/entities/IconCommunity.vue'
167
+ import IconGallery from '@pf/src/modules/icons/entities/IconGallery.vue'
168
+ import IconOrders from '@pf/src/modules/icons/entities/IconOrders.vue'
169
+ import IconLeftovers from '@pf/src/modules/icons/entities/IconLeftovers.vue'
155
170
  /////////////////////////////
156
171
  // HELPERS
157
172
  /////////////////////////////
@@ -39,7 +39,7 @@
39
39
  <CardBlogpost
40
40
  :key="item._id"
41
41
  :blogpost="item"
42
- :user="user"
42
+ :user="auth.state.user._id"
43
43
  :hideDescription="true"
44
44
  class="bg-white flex flex-column h-35r"
45
45
  />
@@ -68,14 +68,15 @@
68
68
  >
69
69
 
70
70
  <span
71
- v-if="type !== 'short'"
71
+
72
72
  class="t-semi"
73
73
  >
74
- {{ formattedDate }} |
74
+ {{ formattedDate }}
75
75
  </span>
76
76
  <span
77
+ v-if="type !== 'short'"
77
78
  class="t-semi ">
78
- {{ formattedTimeRange }}
79
+ | {{ formattedTimeRange }}
79
80
  </span>
80
81
  </div>
81
82
 
@@ -19,7 +19,7 @@
19
19
  </transition>
20
20
 
21
21
 
22
- <TransitionGroup tag="ul" name="fade" class="container">
22
+ <!-- <TransitionGroup tag="ul" name="fade" class="container"> -->
23
23
  <HeroEvent
24
24
  v-if="!isLoading && event && event.special"
25
25
  :content="{
@@ -66,6 +66,7 @@
66
66
  class="mn-b-thin t-white gap-big w-100 h-max o-hidden radius-big pd-big pos-relative bg-black"
67
67
  >
68
68
  <h2 class="mn-b-big w-100 t-center">Event Details</h2>
69
+
69
70
  <div
70
71
  class="gap-big mn-b-thin"
71
72
  :class="{
@@ -77,7 +78,7 @@
77
78
  <SectionSpecialGuests
78
79
  v-if="event.specialData.guests.length > 0"
79
80
  :content="{
80
- title: 'Special Guests',
81
+ title: 'Residents',
81
82
  guests: event.specialData.guests
82
83
  }"
83
84
  />
@@ -159,7 +160,7 @@
159
160
  :owner="auth.state.user._id"
160
161
  />
161
162
 
162
- </TransitionGroup>
163
+ <!-- </TransitionGroup> -->
163
164
 
164
165
  </section>
165
166
  </template>
@@ -1,16 +1,33 @@
1
1
  <template>
2
- <section>
3
- <!-- <List
2
+ <section class="pd-thin">
3
+ <List
4
4
  :user="auth.state.user._id"
5
5
  class="bg-grey mn-b-thin radius-big"
6
6
  :phase="'week'"
7
- /> -->
7
+ />
8
+ <header
9
+ class="mn-b-medium flex-v-center flex-nowrap flex"
10
+ >
11
+ <h2
12
+ class="mn-r-medium"
13
+ >
14
+ Events
15
+ </h2>
16
+
17
+ <button
18
+ @click="router.push({name: 'Create Event'})"
19
+ class="radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"
20
+ >
21
+ +
22
+ </button>
23
+ </header>
24
+
8
25
 
9
26
  <Feed
10
- :category="route.params.category"
11
27
  :user="auth.state.user._id"
12
- :period="route.query.period"
13
- :selectedDate="events.state.filter.date"
28
+ :owner="route.params._id"
29
+ :sortOrder="'desc'"
30
+ :sortParam="'date.start'"
14
31
  />
15
32
  </section>
16
33
  </template>
@@ -59,7 +59,7 @@
59
59
  {{content?.ticketText }}
60
60
  </span>
61
61
 
62
- <span v-if="options?.price" class="bg-white t-black pd-t-nano pd-b-nano pd-r-micro pd-l-micro radius-extra">
62
+ <span v-if="options?.price" class="mn-l-micro bg-white t-black pd-t-nano pd-b-nano pd-r-micro pd-l-micro radius-extra">
63
63
  {{options?.price}} {{returnCurrency()}}
64
64
  </span>
65
65
  </p>
@@ -3,15 +3,27 @@
3
3
  <header class="br-b br-solid br-black-transp-10 pd-medium flex-v-center flex-nowrap flex">
4
4
  <h1 class="mn-r-auto">{{ title }}</h1>
5
5
 
6
- <router-link
6
+ <template
7
+ v-for="action in actions"
7
8
  v-if="actions && actions.length > 0"
8
- v-for="action in actions"
9
- :key="action.to"
10
- :to="action.to"
11
- :class="action.class || 'radius-extra pd-thin uppercase t-medium hover-scale-1 transition-ease cursor-pointer t-white bg-second flex-center flex'"
12
9
  >
13
- {{ action.label }}
14
- </router-link>
10
+ <router-link
11
+ v-if="action.to"
12
+ :key="action.to"
13
+ :to="action.to"
14
+ :class="action.class || 'radius-extra pd-thin uppercase t-medium hover-scale-1 transition-ease cursor-pointer t-white bg-second flex-center flex'"
15
+ >
16
+ {{ action.label }}
17
+ </router-link>
18
+
19
+ <button
20
+ v-if="action.method"
21
+ @click="action.method"
22
+ :class="action.class || 'radius-extra pd-thin uppercase t-medium hover-scale-1 transition-ease cursor-pointer t-white bg-second flex-center flex'"
23
+ >
24
+ {{ action.label }}
25
+ </button>
26
+ </template>
15
27
  </header>
16
28
 
17
29
  <Tab