@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
@@ -1,61 +0,0 @@
1
- <template>
2
- <Block title="Personal Data" class="mn-b-thin">
3
- <Field
4
- v-model:field="order.customer.name"
5
- label="Name*"
6
- placeholder="Enter your name"
7
- class="bg-white pd-medium radius-small mn-b-thin"
8
- />
9
-
10
- <div class="flex-nowrap flex">
11
-
12
- <Select
13
- :options="[
14
- {name: 'Phone', value: 'phone'},
15
- {name: 'Telegram', value: 'telegram'},
16
- {name: 'WhatsApp', value: 'whatsapp'},
17
- {name: 'Line', value: 'line'},
18
- ]"
19
- @update:select="(option) => order.customer.messenger.type = option.value"
20
- placeholder="Messenger"
21
- size="small"
22
- class="bg-white pd-medium radius-small mn-r-small"
23
- />
24
-
25
- <!-- <Field
26
- v-model:field="order.customer.messenger.value"
27
- placeholder="Enter your contact here"
28
- class="bg-white pd-medium radius-small w-100"
29
- /> -->
30
-
31
- <FieldPhone
32
- v-model="order.customer.phone"
33
- @country="(country) => { order.customer.number = country }"
34
- :inputOptions="{
35
- placeholder: 'Enter contact phone number',
36
- type: 'tel',
37
- }"
38
- :defaultCountry="'TH'"
39
- :validCharactersOnly="true"
40
- :dropdownOptions="{
41
- showDialCodeInSelection: true,
42
- showFlags: true,
43
- showDialCodeInList: true
44
- }"
45
- mode="national"
46
- class="bg-white pd-small radius-small mn-b-thin"
47
- />
48
- </div>
49
- </Block>
50
- </template>
51
-
52
- <script setup>
53
- import Block from '@pf/src/components/Block/Block.vue'
54
- import Field from '@pf/src/components/Field/Field.vue'
55
- import FieldPhone from '@pf/src/components/FieldPhone/FieldPhone2.vue'
56
- import Select from '@pf/src/components/Select/Select.vue'
57
-
58
- defineProps({
59
- order: Object,
60
- });
61
- </script>
@@ -1,69 +0,0 @@
1
- <template>
2
- <div class="flex-v-center flex-nowrap flex">
3
- <img
4
- v-if="photo"
5
- :src="(FILE_SERVER_URL || '') + photo"
6
- class="radius-medium object-fit-cover mn-r-thin i-thin"
7
-
8
- @click.stop="$router.push({
9
- name: user.type === 'user' ? 'User Profile' : 'Organization',
10
- params: {
11
- _id: user._id
12
- }
13
- })"
14
- />
15
- <!-- <pre>{{user}}</pre> -->
16
- <PlaceholderUserpic
17
- v-if="!photo"
18
- class="radius-medium mn-r-thin i-thin"
19
-
20
- @click.stop="$router.push({
21
- name: 'User Profile',
22
- params: {
23
- _id: user._id
24
- }
25
- })"
26
- />
27
-
28
- <p>{{ name }}</p>
29
-
30
- <!-- </div> -->
31
- <!-- <div class="mn-r-auto">
32
- <span class=" mn-r-small">{{user.profile?.email}} {{user.profile?.phone}}</span>
33
- <span class="t-transp">{{user.role}}</span>
34
- <br>
35
- <span class="mn-r-auto t-transp">Member since (date) {{user.createdAt}}</span>
36
- </div>
37
-
38
- <div v-if="user.position !== 'Основатель'" class="mn-l-medium flex-v-center flex">
39
- <button @click="removeMember(user)" class="button-small button">×</button>
40
- </div> -->
41
-
42
- </div>
43
- </template>
44
-
45
- <script setup>
46
-
47
-
48
- import PlaceholderUserpic from '@pf/src/modules/icons/placeholders/PlaceholderUserpic.vue'
49
-
50
- const props = defineProps({
51
- user: {
52
- type: Object,
53
- required: true
54
- },
55
- photo: {
56
- type: String,
57
- default: null
58
- },
59
- name: {
60
- type: String,
61
- default: 'Anonymous'
62
- }
63
- // Define other props here
64
- });
65
- </script>
66
-
67
- <style scoped>
68
- /* Add styles for the user card component here */
69
- </style>