@ozdao/prometheus-framework 0.2.81 → 0.2.82

Sign up to get free protection for your applications and to get access to all the features.
Files changed (327) 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.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -225
  34. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  35. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +102 -1
  36. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +71 -60
  38. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/components/Field/Field.vue.js +1 -84
  40. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  41. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +84 -1
  42. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  44. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +325 -340
  46. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +2 -2
  48. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  49. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +53 -44
  50. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  51. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +41 -40
  52. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  53. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +37 -31
  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/Tab/Tab.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -36
  58. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  59. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +36 -1
  60. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
  62. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  63. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
  64. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
  66. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  68. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
  70. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +30 -30
  72. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
  74. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
  76. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
  78. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/auth/store/auth.js +26 -26
  80. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +78 -103
  82. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
  84. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  86. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +15 -15
  88. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  90. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +4 -4
  92. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  94. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  96. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  98. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
  100. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +29 -27
  102. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  104. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
  106. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  108. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  109. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +2 -2
  110. package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.js +33 -26
  112. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +6 -3
  114. package/dist/prometheus-framework/src/modules/globals/services/globals.store.cjs +1 -0
  115. package/dist/prometheus-framework/src/modules/globals/services/globals.store.js +70 -0
  116. package/dist/prometheus-framework/src/modules/icons/entities/IconGallery.vue.cjs +1 -0
  117. package/dist/prometheus-framework/src/modules/icons/entities/IconGallery.vue.js +28 -0
  118. package/dist/prometheus-framework/src/modules/icons/entities/IconLeftovers.vue.cjs +1 -0
  119. package/dist/prometheus-framework/src/modules/icons/entities/IconLeftovers.vue.js +30 -0
  120. package/dist/prometheus-framework/src/modules/icons/entities/IconOrders.vue.cjs +1 -0
  121. package/dist/prometheus-framework/src/modules/icons/entities/IconOrders.vue.js +35 -0
  122. package/dist/prometheus-framework/src/modules/icons/entities/IconProducts.vue.cjs +1 -0
  123. package/dist/prometheus-framework/src/modules/icons/entities/IconProducts.vue.js +28 -0
  124. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +63 -86
  126. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  128. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +174 -114
  130. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +40 -40
  132. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -0
  133. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +141 -0
  134. package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.js +1 -1
  136. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -0
  137. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +77 -0
  138. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +46 -35
  140. package/dist/prometheus-framework/src/modules/orders/store/customers.store.cjs +1 -0
  141. package/dist/prometheus-framework/src/modules/orders/store/customers.store.js +5 -0
  142. package/dist/prometheus-framework/src/modules/orders/store/models/customer.cjs +1 -0
  143. package/dist/prometheus-framework/src/modules/orders/store/models/customer.js +30 -0
  144. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/orders/store/orders.js +24 -25
  146. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +16 -16
  148. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  150. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +38 -49
  152. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  154. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +6 -6
  156. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +161 -138
  158. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +198 -78
  160. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +82 -125
  162. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  164. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  166. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  168. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +59 -70
  170. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  172. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +34 -36
  174. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +38 -18
  176. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +34 -35
  178. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  180. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  181. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +41 -21
  182. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  183. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  184. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  186. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  187. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  188. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  189. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  190. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  191. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  192. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  194. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  195. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
  196. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  197. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +3 -3
  198. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  199. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  200. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  201. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
  202. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  203. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  204. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  205. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +24 -26
  206. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -0
  207. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +78 -0
  208. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  209. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  210. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  211. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  212. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  213. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  214. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  215. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  216. package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
  217. package/dist/prometheus-framework/src/modules/users/store/users.js +13 -14
  218. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  219. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
  220. package/dist/prometheus-framework.cjs.js +1 -1
  221. package/dist/prometheus-framework.es.js +1 -1
  222. package/dist/queryProcessor-BJdKh0Ow.mjs +162 -0
  223. package/dist/queryProcessor-DRMo_GWK.js +161 -0
  224. package/dist/reports.server.js +1 -1
  225. package/dist/reports.server.mjs +1 -1
  226. package/dist/style.css +1 -1
  227. package/dist/users.server.js +69 -38
  228. package/dist/users.server.mjs +67 -36
  229. package/dist/wallet.server.js +2 -2
  230. package/dist/wallet.server.mjs +2 -2
  231. package/dist/web-CtVocufd.js +1 -0
  232. package/dist/web-DNq1tHCE.mjs +54 -0
  233. package/package.json +1 -1
  234. package/src/components/Address/Address.vue +13 -2
  235. package/src/components/Block/Block.vue +3 -2
  236. package/src/components/Button/Button.vue +9 -12
  237. package/src/components/Feed/Feed.vue +28 -6
  238. package/src/components/FieldPhone/FieldPhone.vue +592 -558
  239. package/src/components/LocationMarker/LocationMarker.vue +26 -22
  240. package/src/components/Popup/Popup.vue +22 -23
  241. package/src/components/Select/Select.vue +43 -32
  242. package/src/components/Slider/Slider.vue +3 -4
  243. package/src/modules/auth/components/pages/Invite.vue +7 -7
  244. package/src/modules/auth/store/auth.js +1 -1
  245. package/src/modules/backoffice/components/pages/Dashboard.vue +44 -29
  246. package/src/modules/community/components/sections/HotPosts.vue +1 -1
  247. package/src/modules/events/components/blocks/CardEvent.vue +4 -3
  248. package/src/modules/events/components/pages/Events.vue +23 -6
  249. package/src/modules/globals/components/sections/SectionPageTitle.vue +19 -7
  250. package/src/modules/globals/controllers/utils/queryProcessor.js +21 -7
  251. package/src/modules/globals/localization/vue-i18n.js +3 -0
  252. package/src/modules/globals/models/credentials.schema.js +7 -0
  253. package/src/modules/globals/models/metadata.schema.js +17 -0
  254. package/src/modules/globals/models/profile.schema.js +23 -0
  255. package/src/modules/globals/models/socials.schema.js +22 -0
  256. package/src/modules/globals/router/routerGuards.js +1 -0
  257. package/src/modules/globals/services/globals.cashe.js +26 -0
  258. package/src/modules/globals/services/globals.crud.js +115 -0
  259. package/src/modules/globals/services/globals.logger.js +41 -0
  260. package/src/modules/globals/services/globals.store.js +114 -0
  261. package/src/modules/icons/entities/IconGallery.vue +14 -0
  262. package/src/modules/icons/entities/IconLeftovers.vue +14 -0
  263. package/src/modules/icons/entities/IconOrders.vue +15 -0
  264. package/src/modules/icons/entities/IconProducts.vue +14 -0
  265. package/src/modules/landing/components/sections/HeroSection.vue +1 -1
  266. package/src/modules/landing/components/sections/MobileApp.vue +4 -4
  267. package/src/modules/landing/router/landing.js +1 -1
  268. package/src/modules/marketplace/components/sections/Filters.vue +3 -3
  269. package/src/modules/middlewares/server/accessors/AccessController.js +33 -0
  270. package/src/modules/middlewares/server/accessors/ReadDepartments.js +101 -0
  271. package/src/modules/middlewares/server/verifyAccesses.js +33 -0
  272. package/src/modules/middlewares/server/verifyInvites.js +4 -4
  273. package/src/modules/orders/components/pages/OrderCreate.vue +2 -2
  274. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +105 -68
  275. package/src/modules/orders/components/pages/Orders.vue +2 -2
  276. package/src/modules/orders/components/sections/FormAddCustomer.vue +152 -0
  277. package/src/modules/orders/components/sections/FormCustomerDetails.vue +67 -0
  278. package/src/modules/orders/components/sections/FormDelivery.vue +17 -3
  279. package/src/modules/orders/controllers/applications.controller.js +2 -0
  280. package/src/modules/orders/controllers/orders.controller.js +77 -52
  281. package/src/modules/orders/models/customer.model.js +54 -18
  282. package/src/modules/orders/models/order.model.js +1 -1
  283. package/src/modules/orders/orders.client.js +51 -51
  284. package/src/modules/orders/orders.server.js +32 -12
  285. package/src/modules/orders/router/orders.router.js +36 -41
  286. package/src/modules/orders/routes/orders.routes.js +3 -21
  287. package/src/modules/orders/store/customers.store.js +5 -0
  288. package/src/modules/orders/store/models/customer.js +29 -0
  289. package/src/modules/orders/store/orders.js +14 -20
  290. package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
  291. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  292. package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +1 -12
  293. package/src/modules/organizations/components/pages/Department.vue +1 -1
  294. package/src/modules/organizations/components/pages/DepartmentEdit.vue +72 -48
  295. package/src/modules/organizations/components/pages/Members.vue +178 -64
  296. package/src/modules/organizations/components/pages/Organization.vue +1 -41
  297. package/src/modules/organizations/components/sections/MembersAdd.vue +44 -52
  298. package/src/modules/organizations/controllers/departments.controller.js +2 -4
  299. package/src/modules/organizations/controllers/invites.controller.js +24 -23
  300. package/src/modules/organizations/controllers/organizations.controller.js +1 -1
  301. package/src/modules/organizations/models/department.model.js +52 -2
  302. package/src/modules/organizations/models/invite.model.js +29 -32
  303. package/src/modules/organizations/models/membership.model.js +2 -0
  304. package/src/modules/organizations/models/organization.model.js +2 -1
  305. package/src/modules/organizations/organizations.client.js +0 -2
  306. package/src/modules/organizations/routes/departments.routes.js +18 -7
  307. package/src/modules/organizations/routes/invites.routes.js +2 -2
  308. package/src/modules/organizations/store/departments.js +22 -1
  309. package/src/modules/organizations/store/invites.js +74 -90
  310. package/src/modules/products/components/blocks/CardProduct.vue +24 -0
  311. package/src/modules/products/components/pages/Products.vue +1 -1
  312. package/src/modules/reports/components/sections/FormReport.vue +40 -40
  313. package/src/modules/spots/components/pages/Spot.vue +1 -1
  314. package/src/modules/spots/components/pages/SpotEdit.vue +1 -1
  315. package/src/modules/users/components/blocks/CardUser.vue +85 -0
  316. package/src/modules/users/controllers/users.controller.js +36 -13
  317. package/src/modules/users/middlewares/visitor.logger.js +66 -0
  318. package/src/modules/users/models/request.model.js +18 -0
  319. package/src/modules/users/models/user.model.js +26 -55
  320. package/src/modules/users/models/visitor.model.js +14 -0
  321. package/src/modules/users/store/users.js +2 -11
  322. package/src/modules/wallet/controllers/routes/payments.routes.js +2 -0
  323. package/src/components/FieldPhone/FieldPhone(script-setup).vue +0 -1646
  324. package/src/components/FieldPhone/FieldPhone2.vue +0 -671
  325. package/src/modules/orders/components/sections/FormClientDetails.vue +0 -61
  326. package/src/modules/organizations/components/blocks/User.vue +0 -69
  327. /package/src/modules/backoffice/components/admin/{User.vue → UserEdit.vue} +0 -0
@@ -3,27 +3,15 @@ const controllerFactory = require("../controllers/orders.controller");
3
3
  // Middlewares
4
4
  const middlewareFactory = require('@pf/src/modules/middlewares/server');
5
5
  // Routes
6
- module.exports = function(app, db) {
6
+ module.exports = function(app, db, origins, publicPath) {
7
7
  const controller = controllerFactory(db);
8
-
9
- const { authJwt } = middlewareFactory(db);
10
-
11
- app.use(function(req, res, next) {
12
- res.header(
13
- "Access-Control-Allow-Headers",
14
- "Access-Control-Allow-Origin: *",
15
- "x-access-token, Origin, Content-Type, Accept"
16
- );
17
- next();
18
- });
8
+ const middleware = middlewareFactory(db);
19
9
 
20
- // Send order
21
10
  app.post(
22
11
  "/api/orders/create",
23
12
  controller.create
24
13
  );
25
14
 
26
- // Get orders
27
15
  app.get(
28
16
  "/api/orders/read",
29
17
  controller.read
@@ -32,7 +20,7 @@ module.exports = function(app, db) {
32
20
  app.post(
33
21
  "/api/orders/update",
34
22
  [
35
- authJwt.verifyToken
23
+ middleware.authJwt.verifyToken
36
24
  ],
37
25
  controller.update
38
26
  );
@@ -41,11 +29,5 @@ module.exports = function(app, db) {
41
29
  "/api/orders/delete",
42
30
  controller.deleteOrder
43
31
  );
44
-
45
- // Change Payment status
46
- // app.post(
47
- // "/api/orders/payment/:_id",
48
- // controller.changePaymentStatus
49
- // );
50
32
  };
51
33
 
@@ -0,0 +1,5 @@
1
+ import Store from '@pf/src/modules/globals/services/globals.store.js'
2
+
3
+ const customers = new Store('/api/customers')
4
+
5
+ export default customers
@@ -0,0 +1,29 @@
1
+ const customerInitState = {
2
+ _id: null,
3
+ identity: {
4
+ type: 'Visitor',
5
+ target: null,
6
+ },
7
+ owner: {
8
+ type: 'Organization',
9
+ target: null,
10
+ },
11
+ creator: {
12
+ type: 'User',
13
+ target: null,
14
+ },
15
+ user: null,
16
+ profile: {
17
+ name: null
18
+ },
19
+ messenger: {
20
+ type: null
21
+ },
22
+ socials: {
23
+ instagram: null,
24
+ telegram: null,
25
+ whatsapp: null
26
+ }
27
+ };
28
+
29
+ export default customerInitState
@@ -7,43 +7,36 @@ const $axios = axios.create({baseURL: process.env.API_URL, withCredentials: true
7
7
  // Globals
8
8
  import { setError } from '@pf/src/modules/globals/store/globals'
9
9
 
10
+ import customerInitState from "@pf/src/modules/orders/store/models/customer"
11
+
10
12
  const state = reactive({
11
13
  all: [],
12
14
  current: {
13
15
  _id: null,
14
-
15
16
  positions: [],
16
17
  status: null,
17
18
  comment: '',
18
19
 
19
20
  owner: {
20
- type: 'organization',
21
+ type: 'Organization',
21
22
  target: null,
22
23
  },
23
24
 
24
25
  creator: {
25
- type: 'customer',
26
+ type: 'Customer',
26
27
  target: null,
27
28
  },
28
29
 
29
- customer: {
30
- name: null,
31
- phone: null,
32
- messenger: {
33
- type: null,
34
- value: null
35
- },
36
- },
37
-
30
+ customer: { ...customerInitState },
38
31
 
39
32
  payment: {
40
- type: '',
41
- status: '',
33
+ type: 'Cash',
34
+ status: 'Unpaid',
42
35
  },
43
36
 
44
37
  delivery: {
45
38
  type: null,
46
- address: '',
39
+ address: null,
47
40
  status: '',
48
41
  }
49
42
  }
@@ -122,11 +115,11 @@ const actions = {
122
115
  },
123
116
  }
124
117
 
125
- // const getters = {
126
- // getTotal(positions) {
127
- //
128
- // }
129
- // }
118
+ const mutations = {
119
+ resetCustomer(stateObject) {
120
+ Object.assign(stateObject, customerInitState);
121
+ }
122
+ }
130
123
 
131
124
  const getters = {
132
125
  getTotal(positions) {
@@ -151,5 +144,6 @@ watch(state, (newState, oldState) => {
151
144
  export {
152
145
  state,
153
146
  actions,
147
+ mutations,
154
148
  getters
155
149
  }
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="radius-big o-hidden cols-2-1_3">
2
+ <div class="radius-semi o-hidden cols-2-1_3">
3
3
 
4
4
  <div class="pd-medium w-100">
5
5
 
@@ -30,7 +30,7 @@
30
30
  />
31
31
 
32
32
  <ul>
33
- <li v-if="department.members.length < 1" отделе еще нет участников</li>
33
+ <li v-if="department.members.length < 1">No members in department</li>
34
34
  <User
35
35
  class="br-b br-solid br-grey"
36
36
  v-for="(member, index) in department.members"
@@ -51,7 +51,7 @@ import IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'
51
51
 
52
52
  import Spoiler from '@pf/src/components/Spoiler/Spoiler.vue';
53
53
  import DepartmentSub from '@pf/src/modules/organizations/components/blocks/DepartmentSub.vue';
54
- import User from '@pf/src/modules/organizations/components/blocks/User.vue';
54
+ import User from '@pf/src/modules/users/components/blocks/CardUser.vue';
55
55
 
56
56
  const props = defineProps({
57
57
  department: Object,
@@ -84,7 +84,7 @@
84
84
  <span class="mn-r-thin"> {{organization.products.length}} products</span>
85
85
  </div>
86
86
 
87
- <div v-if="showProducts && organization.products.length > 0" class="w-100 o-scroll">
87
+ <div v-if="showProducts && organization.products.length > 0" class="w-100 o-scroll radius-medium">
88
88
  <div class="w-max flex-nowrap flex gap-thin">
89
89
  <CardOrderItem
90
90
  @click.stop="$router.push({name: 'Product Organization', params: {_id: organization._id, product: product._id}})"
@@ -2,7 +2,6 @@
2
2
  <div>
3
3
 
4
4
  <div class="br-grey radius-small mn-small">
5
- <h3 class="mn-b-semi">Add to deparment</h3>
6
5
 
7
6
  <div class="bg-grey mn-b-thin h-min-10r h-max-10r o-scroll pd-medium radius-big">
8
7
  <Feed
@@ -36,16 +35,6 @@
36
35
  </Feed>
37
36
  </div>
38
37
 
39
- <SelectMulti
40
- v-if="props.member === null"
41
- v-model="userInput"
42
- :options="users"
43
- :multiple="false"
44
- :taggable="false"
45
- placeholder="Type to search or add type of organization"
46
- class="mn-b-semi bg-grey pd-medium radius-small"
47
- />
48
-
49
38
  <!-- <div v-else class="pd-small br-grey br-1px br-solid">
50
39
  {{ memberForm.user.name ? memberForm.user.name : 'Безымянный' }}, {{memberForm.user.id}}
51
40
  </div> -->
@@ -76,7 +65,7 @@ import Field from "@pf/src/components/Field/Field.vue";
76
65
  import Select from "@pf/src/components/Select/Select.vue";
77
66
 
78
67
  import Feed from '@pf/src/components/Feed/Feed.vue'
79
- import User from '@pf/src/modules/organizations/components/blocks/User.vue';
68
+ import User from '@pf/src/modules/users/components/blocks/CardUser.vue';
80
69
 
81
70
  import * as memberships from '@pf/src/modules/organizations/store/memberships'
82
71
 
@@ -62,7 +62,7 @@ import { useRoute, useRouter } from 'vue-router';
62
62
 
63
63
  import Spoiler from '@pf/src/components/Spoiler/Spoiler.vue';
64
64
  import DepartmentSub from '@pf/src/modules/organizations/components/blocks/DepartmentSub.vue';
65
- import User from '@pf/src/modules/organizations/components/blocks/User.vue';
65
+ import User from '@pf/src/modules/users/components/blocks/CardUser.vue';
66
66
  import * as departments from '@pf/src/modules/organizations/store/departments';
67
67
 
68
68
  const router = useRouter();
@@ -66,7 +66,7 @@
66
66
  </Block>
67
67
 
68
68
  <Popup
69
- title="Добавить участника"
69
+ title="Add member"
70
70
  @close-popup="closeMemberPopup"
71
71
  :isPopupOpen="isOpenAddMemberPopup"
72
72
  class="bg-white w-max-30r radius-big pd-big"
@@ -88,12 +88,13 @@
88
88
  <p class="p-medium mn-b-small">Please settings for your department:</p>
89
89
  <div class="cols-1 gap-thin">
90
90
  <h4>Products</h4>
91
+
91
92
  <Checkbox
92
93
  label="Hidden department"
93
- name="Delivery"
94
- value="pickup"
94
+ name="hidden"
95
95
  class="w-100 mn-r-small bg-white radius-small pd-small"
96
- :radio="departments.state.department.delivery"
96
+ @update:radio="updated => departments.state.department.hidden = !departments.state.department.hidden"
97
+ :radio="departments.state.department.hidden"
97
98
  />
98
99
  </div>
99
100
  </div>
@@ -105,49 +106,72 @@
105
106
 
106
107
  <div class="cols-1 gap-thin">
107
108
  <h4>Products</h4>
108
- <Checkbox
109
- label="See products"
110
- name="Delivery"
111
- value="pickup"
112
- class="w-100 mn-r-small bg-white radius-small pd-small"
113
- :radio="departments.state.department.delivery"
114
- />
115
- <Checkbox
116
- label="Edit products"
117
- name="Delivery"
118
- value="courier"
119
- class="w-100 mn-r-small bg-white radius-small pd-small"
120
- :radio="departments.state.department.delivery"
121
- />
122
- <Checkbox
123
- label="Delete orders"
124
- name="Delivery"
125
- value="post"
126
- class="w-100 bg-white radius-small pd-small"
127
- :radio="departments.state.department.delivery"
128
- />
109
+ <Checkbox
110
+ label="Read products"
111
+ name="readProducts"
112
+ class="w-100 mn-r-small bg-white radius-small pd-small"
113
+ :radio="departments.state.department.accesses.products.read"
114
+ @update:radio="updated => (departments.state.department.accesses.products.read = !departments.state.department.accesses.products.read)"
115
+ />
116
+ <Checkbox
117
+ label="Edit products"
118
+ name="editProducts"
119
+ class="w-100 mn-r-small bg-white radius-small pd-small"
120
+ :radio="departments.state.department.accesses.products.edit"
121
+ @update:radio="updated => (departments.state.department.accesses.products.edit = !departments.state.department.accesses.products.edit)"
122
+ />
123
+ <Checkbox
124
+ label="Delete products"
125
+ name="deleteProducts"
126
+ class="w-100 bg-white radius-small pd-small"
127
+ :radio="departments.state.department.accesses.products.delete"
128
+ @update:radio="updated => (departments.state.department.accesses.products.delete = !departments.state.department.accesses.products.delete)"
129
+ />
130
+
129
131
  <h4>Orders</h4>
130
- <Checkbox
131
- label="See orders"
132
- name="Delivery"
133
- value="pickup"
134
- class="w-100 mn-r-small bg-white radius-small pd-small"
135
- :radio="departments.state.department.delivery"
136
- />
137
- <Checkbox
138
- label="Confirm orders"
139
- name="Delivery"
140
- value="courier"
141
- class="w-100 mn-r-small bg-white radius-small pd-small"
142
- :radio="departments.state.department.delivery"
143
- />
144
- <Checkbox
145
- label="Delete orders"
146
- name="Delivery"
147
- value="post"
148
- class="w-100 bg-white radius-small pd-small"
149
- :radio="departments.state.department.delivery"
150
- />
132
+ <Checkbox
133
+ label="Read orders"
134
+ name="readOrders"
135
+ class="w-100 mn-r-small bg-white radius-small pd-small"
136
+ :radio="departments.state.department.accesses.orders.read"
137
+ @update:radio="updated => (departments.state.department.accesses.orders.read = !departments.state.department.accesses.orders.read)"
138
+ />
139
+ <Checkbox
140
+ label="Confirm orders"
141
+ name="confirmOrders"
142
+ class="w-100 mn-r-small bg-white radius-small pd-small"
143
+ :radio="departments.state.department.accesses.orders.confirm"
144
+ @update:radio="updated => (departments.state.department.accesses.orders.confirm = !departments.state.department.accesses.orders.confirm)"
145
+ />
146
+ <Checkbox
147
+ label="Delete orders"
148
+ name="deleteOrders"
149
+ class="w-100 bg-white radius-small pd-small"
150
+ :radio="departments.state.department.accesses.orders.delete"
151
+ @update:radio="updated => (departments.state.department.accesses.orders.delete = !departments.state.department.accesses.orders.delete)"
152
+ />
153
+
154
+ <h4>Departments</h4>
155
+ <Checkbox
156
+ label="Read departments"
157
+ name="readDepartments" class="w-100 mn-r-small bg-white radius-small pd-small"
158
+ :radio="departments.state.department.accesses.departments.read"
159
+ @update:radio="updated => (departments.state.department.accesses.departments.read = !departments.state.department.accesses.departments.read)"
160
+ />
161
+ <Checkbox
162
+ label="Edit departments"
163
+ name="editDepartments"
164
+ class="w-100 mn-r-small bg-white radius-small pd-small"
165
+ :radio="departments.state.department.accesses.departments.edit"
166
+ @update:radio="updated => (departments.state.department.accesses.departments.edit = !departments.state.department.accesses.departments.edit)"
167
+ />
168
+ <Checkbox
169
+ label="Delete departments"
170
+ name="deleteDepartments"
171
+ class="w-100 bg-white radius-small pd-small"
172
+ :radio="departments.state.department.accesses.departments.delete"
173
+ @update:radio="updated => (departments.state.department.accesses.departments.delete = !departments.state.department.accesses.departments.delete)"
174
+ />
151
175
  </div>
152
176
  </div>
153
177
 
@@ -215,7 +239,7 @@ import EditArray from "@pf/src/modules/organizations/components/blocks/EditArray
215
239
  import DepartmentSub from "@pf/src/modules/organizations/components/blocks/DepartmentSub.vue";
216
240
  import DepartmentMemberModify from "@pf/src/modules/organizations/components/blocks/DepartmentMemberModify.vue";
217
241
  import DepartmentSubDepartmentModify from "@pf/src/modules/organizations/components/blocks/DepartmentMemberModify.vue";
218
- import User from '@pf/src/modules/organizations/components/blocks/User.vue';
242
+ import User from '@pf/src/modules/users/components/blocks/CardUser.vue';
219
243
 
220
244
  import * as departments from "@pf/src/modules/organizations/store/departments";
221
245
  import * as memberships from "@pf/src/modules/organizations/store/memberships";
@@ -229,7 +253,7 @@ async function fetchData() {
229
253
  }
230
254
  const users = ref(memberships.state.memberships);
231
255
 
232
- await departments.actions.read(route.params._id);
256
+ // await departments.actions.read({organization: route.params._id});
233
257
  if (route.params.department) await departments.actions.readOne(route.params.department);
234
258
  }
235
259