@ozdao/prometheus-framework 0.2.81 → 0.2.83

Sign up to get free protection for your applications and to get access to all the features.
Files changed (388) 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-B-KD_ozQ.js +9 -0
  6. package/dist/credentials.schema-C9dmNy7o.mjs +10 -0
  7. package/dist/credentials.schema-CDZCKfEI.mjs +106 -0
  8. package/dist/credentials.schema-CfhPcsuI.js +105 -0
  9. package/dist/events.server.js +4 -15
  10. package/dist/events.server.mjs +3 -14
  11. package/dist/files.server.js +1 -1
  12. package/dist/files.server.mjs +1 -1
  13. package/dist/gallery.server.js +1 -1
  14. package/dist/gallery.server.mjs +1 -1
  15. package/dist/index-B6a1mPgp.mjs +217 -0
  16. package/dist/index-BCCiEK_u.js +216 -0
  17. package/dist/main-8N2Jmsuk.js +91 -0
  18. package/dist/main-CkeuHuCY.mjs +13619 -0
  19. package/dist/main.css +1 -1
  20. package/dist/metadata.schema-Cu_mPkjE.js +77 -0
  21. package/dist/metadata.schema-cbFgazeK.mjs +78 -0
  22. package/dist/middlewares.server.js +1 -1
  23. package/dist/middlewares.server.mjs +1 -1
  24. package/dist/node_modules/@googlemaps/js-api-loader/dist/index.cjs +1 -0
  25. package/dist/node_modules/@googlemaps/js-api-loader/dist/index.js +238 -0
  26. package/dist/orders.server.js +592 -0
  27. package/dist/orders.server.mjs +593 -0
  28. package/dist/organizations.server.js +295 -131
  29. package/dist/organizations.server.mjs +295 -131
  30. package/dist/products.server.js +2 -2
  31. package/dist/products.server.mjs +2 -2
  32. package/dist/profile.schema-24ZpZQJe.mjs +25 -0
  33. package/dist/profile.schema-CkOhhf37.js +24 -0
  34. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  35. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +33 -24
  36. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/components/Block/Block.vue.js +23 -20
  38. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -225
  40. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  41. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +102 -1
  42. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +71 -60
  44. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/components/Field/Field.vue.js +1 -84
  46. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  47. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +84 -1
  48. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  50. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +325 -340
  52. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +2 -2
  54. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  55. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +53 -44
  56. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  57. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +41 -40
  58. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  59. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +37 -31
  60. package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +18 -19
  62. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -36
  64. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  65. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +36 -1
  66. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
  68. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  69. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
  70. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
  72. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  74. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
  76. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +30 -30
  78. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
  80. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
  82. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
  84. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/auth/store/auth.js +26 -26
  86. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +78 -103
  88. package/dist/prometheus-framework/src/modules/chats/components/blocks/ChatMessage.vue.cjs +1 -0
  89. package/dist/prometheus-framework/src/modules/chats/components/blocks/ChatMessage.vue.js +28 -0
  90. package/dist/prometheus-framework/src/modules/chats/components/pages/ChatPage.vue.cjs +1 -0
  91. package/dist/prometheus-framework/src/modules/chats/components/pages/ChatPage.vue.js +26 -0
  92. package/dist/prometheus-framework/src/modules/chats/components/pages/ChatPage.vue2.cjs +1 -0
  93. package/dist/prometheus-framework/src/modules/chats/components/pages/ChatPage.vue2.js +1 -0
  94. package/dist/prometheus-framework/src/modules/chats/components/sections/ChatWindow.vue.cjs +1 -0
  95. package/dist/prometheus-framework/src/modules/chats/components/sections/ChatWindow.vue.js +77 -0
  96. package/dist/prometheus-framework/src/modules/chats/components/sections/ChatWindow.vue2.cjs +1 -0
  97. package/dist/prometheus-framework/src/modules/chats/components/sections/ChatWindow.vue2.js +1 -0
  98. package/dist/prometheus-framework/src/modules/chats/store/chat.store.cjs +1 -0
  99. package/dist/prometheus-framework/src/modules/chats/store/chat.store.js +40 -0
  100. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
  102. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
  104. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +15 -15
  106. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  108. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
  109. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -66
  110. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
  111. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
  112. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  114. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +4 -4
  116. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  118. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  120. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
  122. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
  124. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +29 -27
  126. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  128. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
  130. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  132. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +2 -2
  134. package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.js +33 -26
  136. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +6 -3
  138. package/dist/prometheus-framework/src/modules/globals/services/globals.store.cjs +1 -0
  139. package/dist/prometheus-framework/src/modules/globals/services/globals.store.js +70 -0
  140. package/dist/prometheus-framework/src/modules/icons/entities/IconGallery.vue.cjs +1 -0
  141. package/dist/prometheus-framework/src/modules/icons/entities/IconGallery.vue.js +28 -0
  142. package/dist/prometheus-framework/src/modules/icons/entities/IconLeftovers.vue.cjs +1 -0
  143. package/dist/prometheus-framework/src/modules/icons/entities/IconLeftovers.vue.js +30 -0
  144. package/dist/prometheus-framework/src/modules/icons/entities/IconOrders.vue.cjs +1 -0
  145. package/dist/prometheus-framework/src/modules/icons/entities/IconOrders.vue.js +35 -0
  146. package/dist/prometheus-framework/src/modules/icons/entities/IconProducts.vue.cjs +1 -0
  147. package/dist/prometheus-framework/src/modules/icons/entities/IconProducts.vue.js +28 -0
  148. package/dist/prometheus-framework/src/modules/icons/navigation/IconCheckmark.vue.cjs +1 -0
  149. package/dist/prometheus-framework/src/modules/icons/navigation/IconCheckmark.vue.js +29 -0
  150. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderChat.vue.cjs +1 -0
  151. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderChat.vue.js +30 -0
  152. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +63 -86
  154. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  156. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +121 -1
  158. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue2.cjs +1 -0
  159. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue2.js +1 -0
  160. package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.cjs +3 -0
  161. package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.js +92 -0
  162. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -0
  163. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +202 -0
  164. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue2.cjs +1 -0
  165. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue2.js +1 -0
  166. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -0
  167. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +127 -0
  168. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue2.cjs +1 -0
  169. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue2.js +1 -0
  170. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +174 -114
  172. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +41 -41
  174. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs +1 -0
  175. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js +89 -0
  176. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue2.cjs +1 -0
  177. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue2.js +1 -0
  178. package/dist/prometheus-framework/src/modules/orders/components/sections/AskToLogin.vue.cjs +1 -0
  179. package/dist/prometheus-framework/src/modules/orders/components/sections/AskToLogin.vue.js +24 -0
  180. package/dist/prometheus-framework/src/modules/orders/components/sections/EmptyState.vue.cjs +1 -0
  181. package/dist/prometheus-framework/src/modules/orders/components/sections/EmptyState.vue.js +13 -0
  182. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -0
  183. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +141 -0
  184. package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.js +1 -1
  186. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -0
  187. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +77 -0
  188. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  189. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +46 -35
  190. package/dist/prometheus-framework/src/modules/orders/components/sections/Succes.vue.cjs +1 -0
  191. package/dist/prometheus-framework/src/modules/orders/components/sections/Succes.vue.js +25 -0
  192. package/dist/prometheus-framework/src/modules/orders/orders.client.cjs +1 -0
  193. package/dist/prometheus-framework/src/modules/orders/orders.client.js +56 -0
  194. package/dist/prometheus-framework/src/modules/orders/router/orders.router.cjs +1 -0
  195. package/dist/prometheus-framework/src/modules/orders/router/orders.router.js +58 -0
  196. package/dist/prometheus-framework/src/modules/orders/store/customers.store.cjs +1 -0
  197. package/dist/prometheus-framework/src/modules/orders/store/customers.store.js +5 -0
  198. package/dist/prometheus-framework/src/modules/orders/store/models/customer.cjs +1 -0
  199. package/dist/prometheus-framework/src/modules/orders/store/models/customer.js +30 -0
  200. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  201. package/dist/prometheus-framework/src/modules/orders/store/orders.js +24 -25
  202. package/dist/prometheus-framework/src/modules/orders/store/shopcart.cjs +1 -1
  203. package/dist/prometheus-framework/src/modules/orders/store/shopcart.js +5 -1
  204. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  205. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +16 -16
  206. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  207. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  208. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  209. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +38 -49
  210. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  211. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  212. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  213. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +6 -6
  214. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  215. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +161 -138
  216. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  217. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +198 -78
  218. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  219. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +82 -125
  220. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  221. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  222. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  223. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  224. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  225. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  226. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  227. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +59 -70
  228. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  229. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  230. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
  231. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +34 -36
  232. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  233. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +38 -18
  234. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  235. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +34 -35
  236. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  237. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  238. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  239. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +41 -21
  240. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  241. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  242. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  243. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  244. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  245. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  246. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  247. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  248. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  249. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  250. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  251. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  252. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  253. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
  254. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  255. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +3 -3
  256. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  257. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  258. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  259. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
  260. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  261. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  262. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  263. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +24 -26
  264. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -0
  265. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +78 -0
  266. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  267. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  268. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  269. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  270. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  271. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  272. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  273. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  274. package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
  275. package/dist/prometheus-framework/src/modules/users/store/users.js +13 -14
  276. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  277. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
  278. package/dist/prometheus-framework.cjs.js +1 -1
  279. package/dist/prometheus-framework.es.js +1 -1
  280. package/dist/queryProcessor-BJdKh0Ow.mjs +162 -0
  281. package/dist/queryProcessor-DRMo_GWK.js +161 -0
  282. package/dist/reports.server.js +1 -1
  283. package/dist/reports.server.mjs +1 -1
  284. package/dist/style.css +1 -1
  285. package/dist/users.server.js +58 -47
  286. package/dist/users.server.mjs +58 -47
  287. package/dist/wallet.server.js +2 -2
  288. package/dist/wallet.server.mjs +2 -2
  289. package/dist/web-CtVocufd.js +1 -0
  290. package/dist/web-DNq1tHCE.mjs +54 -0
  291. package/package.json +1 -1
  292. package/src/components/Address/Address.vue +13 -2
  293. package/src/components/Block/Block.vue +3 -2
  294. package/src/components/Button/Button.vue +9 -12
  295. package/src/components/Feed/Feed.vue +28 -6
  296. package/src/components/FieldPhone/FieldPhone.vue +592 -558
  297. package/src/components/LocationMarker/LocationMarker.vue +26 -22
  298. package/src/components/Popup/Popup.vue +22 -23
  299. package/src/components/Select/Select.vue +43 -32
  300. package/src/components/Slider/Slider.vue +3 -4
  301. package/src/modules/auth/components/pages/Invite.vue +7 -7
  302. package/src/modules/auth/store/auth.js +1 -1
  303. package/src/modules/backoffice/components/pages/Dashboard.vue +44 -29
  304. package/src/modules/chats/components/blocks/ChatMessage.vue +1 -1
  305. package/src/modules/community/components/sections/HotPosts.vue +1 -1
  306. package/src/modules/events/components/blocks/CardEvent.vue +4 -3
  307. package/src/modules/events/components/pages/Events.vue +23 -6
  308. package/src/modules/globals/components/sections/SectionPageTitle.vue +19 -7
  309. package/src/modules/globals/controllers/utils/queryProcessor.js +21 -7
  310. package/src/modules/globals/localization/vue-i18n.js +3 -0
  311. package/src/modules/globals/models/credentials.schema.js +7 -0
  312. package/src/modules/globals/models/metadata.schema.js +17 -0
  313. package/src/modules/globals/models/profile.schema.js +23 -0
  314. package/src/modules/globals/models/socials.schema.js +22 -0
  315. package/src/modules/globals/router/routerGuards.js +1 -0
  316. package/src/modules/globals/services/globals.cashe.js +26 -0
  317. package/src/modules/globals/services/globals.crud.js +115 -0
  318. package/src/modules/globals/services/globals.logger.js +41 -0
  319. package/src/modules/globals/services/globals.store.js +114 -0
  320. package/src/modules/icons/entities/IconGallery.vue +14 -0
  321. package/src/modules/icons/entities/IconLeftovers.vue +14 -0
  322. package/src/modules/icons/entities/IconOrders.vue +15 -0
  323. package/src/modules/icons/entities/IconProducts.vue +14 -0
  324. package/src/modules/landing/components/sections/HeroSection.vue +1 -1
  325. package/src/modules/landing/components/sections/MobileApp.vue +4 -4
  326. package/src/modules/landing/router/landing.js +1 -1
  327. package/src/modules/marketplace/components/sections/Filters.vue +3 -3
  328. package/src/modules/middlewares/server/accessors/AccessController.js +33 -0
  329. package/src/modules/middlewares/server/accessors/ReadDepartments.js +101 -0
  330. package/src/modules/middlewares/server/verifyAccesses.js +33 -0
  331. package/src/modules/middlewares/server/verifyInvites.js +4 -4
  332. package/src/modules/orders/components/pages/OrderCreate.vue +2 -2
  333. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +105 -68
  334. package/src/modules/orders/components/pages/Orders.vue +2 -2
  335. package/src/modules/orders/components/sections/FormAddCustomer.vue +152 -0
  336. package/src/modules/orders/components/sections/FormCustomerDetails.vue +67 -0
  337. package/src/modules/orders/components/sections/FormDelivery.vue +17 -3
  338. package/src/modules/orders/controllers/applications.controller.js +2 -0
  339. package/src/modules/orders/controllers/orders.controller.js +77 -52
  340. package/src/modules/orders/models/application.model.js +25 -25
  341. package/src/modules/orders/models/customer.model.js +54 -18
  342. package/src/modules/orders/models/order.model.js +1 -1
  343. package/src/modules/orders/models/testimonial.model.js +22 -23
  344. package/src/modules/orders/orders.client.js +51 -51
  345. package/src/modules/orders/orders.server.js +36 -12
  346. package/src/modules/orders/router/orders.router.js +36 -41
  347. package/src/modules/orders/routes/orders.routes.js +3 -21
  348. package/src/modules/orders/store/customers.store.js +5 -0
  349. package/src/modules/orders/store/models/customer.js +29 -0
  350. package/src/modules/orders/store/orders.js +14 -20
  351. package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
  352. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  353. package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +1 -12
  354. package/src/modules/organizations/components/pages/Department.vue +1 -1
  355. package/src/modules/organizations/components/pages/DepartmentEdit.vue +72 -48
  356. package/src/modules/organizations/components/pages/Members.vue +178 -64
  357. package/src/modules/organizations/components/pages/Organization.vue +1 -41
  358. package/src/modules/organizations/components/sections/MembersAdd.vue +44 -52
  359. package/src/modules/organizations/controllers/departments.controller.js +2 -4
  360. package/src/modules/organizations/controllers/invites.controller.js +24 -23
  361. package/src/modules/organizations/controllers/organizations.controller.js +1 -1
  362. package/src/modules/organizations/models/department.model.js +52 -2
  363. package/src/modules/organizations/models/invite.model.js +29 -32
  364. package/src/modules/organizations/models/membership.model.js +2 -0
  365. package/src/modules/organizations/models/organization.model.js +2 -1
  366. package/src/modules/organizations/organizations.client.js +0 -2
  367. package/src/modules/organizations/routes/departments.routes.js +18 -7
  368. package/src/modules/organizations/routes/invites.routes.js +2 -2
  369. package/src/modules/organizations/store/departments.js +22 -1
  370. package/src/modules/organizations/store/invites.js +74 -90
  371. package/src/modules/products/components/blocks/CardProduct.vue +24 -0
  372. package/src/modules/products/components/pages/Products.vue +1 -1
  373. package/src/modules/reports/components/sections/FormReport.vue +40 -40
  374. package/src/modules/spots/components/pages/Spot.vue +1 -1
  375. package/src/modules/spots/components/pages/SpotEdit.vue +1 -1
  376. package/src/modules/users/components/blocks/CardUser.vue +85 -0
  377. package/src/modules/users/controllers/users.controller.js +36 -13
  378. package/src/modules/users/middlewares/visitor.logger.js +66 -0
  379. package/src/modules/users/models/request.model.js +18 -0
  380. package/src/modules/users/models/user.model.js +26 -55
  381. package/src/modules/users/models/visitor.model.js +14 -0
  382. package/src/modules/users/store/users.js +2 -11
  383. package/src/modules/wallet/controllers/routes/payments.routes.js +2 -0
  384. package/src/components/FieldPhone/FieldPhone(script-setup).vue +0 -1646
  385. package/src/components/FieldPhone/FieldPhone2.vue +0 -671
  386. package/src/modules/orders/components/sections/FormClientDetails.vue +0 -61
  387. package/src/modules/organizations/components/blocks/User.vue +0 -69
  388. /package/src/modules/backoffice/components/admin/{User.vue → UserEdit.vue} +0 -0
@@ -3,6 +3,8 @@ const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
3
3
  require("uuid");
4
4
  const require$$0 = require("mongoose");
5
5
  const addMembersQuantity$1 = require("./addMembersQuantity-B8UgqlUM.js");
6
+ const profile_schema = require("./profile.schema-CkOhhf37.js");
7
+ const credentials_schema = require("./credentials.schema-B-KD_ozQ.js");
6
8
  const ObjectId = require$$0.Types.ObjectId;
7
9
  const addUserStatusFields = addMembersQuantity$1.addUserStatusFields_1;
8
10
  const addMembersQuantity = addMembersQuantity$1.addMembersQuantity_1;
@@ -12,13 +14,32 @@ const controllerFactory$1 = (db) => {
12
14
  let query = [];
13
15
  let skip = parseInt(req.query.skip) || 0;
14
16
  let limit = parseInt(req.query.limit) || 10;
17
+ console.log(req.query);
15
18
  const matchConditions = [
16
19
  ...req.query._id ? [{ _id: new ObjectId(req.query._id) }] : []
17
20
  ];
18
- query.push({ $match: { $and: matchConditions } });
19
- console.log(req);
20
- console.log(query);
21
- console.log(req.body);
21
+ let search = req.query.search;
22
+ if (search) {
23
+ let regexPattern = "";
24
+ const escapedSearch = search.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
25
+ if (escapedSearch.includes("@")) {
26
+ regexPattern = escapedSearch;
27
+ } else if (escapedSearch.match(/^\+?\d{0,14}$/)) {
28
+ regexPattern = escapedSearch;
29
+ } else {
30
+ regexPattern = `.*${escapedSearch}.*`;
31
+ }
32
+ matchConditions.push({
33
+ $or: [
34
+ { "profile.name": { $regex: regexPattern, $options: "i" } },
35
+ { "email": { $regex: regexPattern, $options: "i" } },
36
+ { "phone": { $regex: regexPattern, $options: "i" } },
37
+ { "username": { $regex: regexPattern, $options: "i" } }
38
+ ]
39
+ });
40
+ }
41
+ if (matchConditions.length > 0)
42
+ query.push({ $match: { $and: matchConditions } });
22
43
  query.push({
23
44
  $lookup: {
24
45
  from: "orders",
@@ -44,23 +65,19 @@ const controllerFactory$1 = (db) => {
44
65
  }
45
66
  });
46
67
  query.push(addMembersQuantity());
47
- query.push(addUserStatusFields(req.query.user));
68
+ if (req.query.user)
69
+ query.push(addUserStatusFields(req.query.user));
48
70
  query.push({
49
71
  $skip: skip
50
72
  });
51
73
  query.push({
52
74
  $limit: limit
53
75
  });
54
- console.log(req);
55
- console.log(query);
56
- console.log(req.body);
57
76
  try {
58
77
  const users = await User.aggregate(query);
59
- if (!users || users.length === 0) {
60
- console.log("no users");
78
+ if (!users) {
61
79
  return res.status(404).send({ message: "Users not found." });
62
80
  }
63
- console.log(users);
64
81
  res.status(200).send(users);
65
82
  } catch (err) {
66
83
  console.log(err);
@@ -129,36 +146,8 @@ var users_routes = function(app, db, origins) {
129
146
  app.put("/api/users/:_id", controller.update);
130
147
  app.delete("/api/users/:_id", controller.remove);
131
148
  };
132
- var user_model = (db) => {
133
- const UserSchema = new db.mongoose.Schema({
134
- username: String,
135
- phone: String,
136
- email: String,
137
- apple_id: String,
138
- password: String,
139
- status: {
140
- type: String,
141
- enum: ["active", "banned", "removed", "inactive"],
142
- default: "active",
143
- required: true
144
- },
145
- profile: {
146
- photo: {
147
- type: String,
148
- default: ""
149
- },
150
- name: {
151
- type: String,
152
- default: ""
153
- },
154
- description: {
155
- type: String,
156
- default: ""
157
- },
158
- birthday: {
159
- type: Date
160
- }
161
- },
149
+ var socials_schema = function applySocialsSchema(schema, db) {
150
+ schema.add({
162
151
  socials: {
163
152
  telegram: {
164
153
  type: String,
@@ -176,19 +165,41 @@ var user_model = (db) => {
176
165
  type: String,
177
166
  default: ""
178
167
  }
168
+ }
169
+ });
170
+ };
171
+ const applyProfileSchema = profile_schema.profile_schema;
172
+ const applySocialsSchema2 = socials_schema;
173
+ const applyCredentialsSchema = credentials_schema.credentials_schema;
174
+ var user_model = (db) => {
175
+ const UserSchema = new db.mongoose.Schema({
176
+ username: {
177
+ type: String,
178
+ unique: true
179
179
  },
180
- roles: [
181
- {
182
- type: db.mongoose.Schema.Types.ObjectId,
183
- ref: "Role"
184
- }
185
- ]
180
+ password: {
181
+ type: String,
182
+ required: true
183
+ },
184
+ status: {
185
+ type: String,
186
+ enum: ["active", "banned", "removed", "inactive"],
187
+ default: "active",
188
+ required: true
189
+ },
190
+ roles: [{
191
+ type: db.mongoose.Schema.Types.ObjectId,
192
+ ref: "Role"
193
+ }]
186
194
  }, {
187
195
  // Creation Date
188
196
  timestamps: {
189
197
  currentTime: () => Date.now()
190
198
  }
191
199
  });
200
+ applyProfileSchema(UserSchema);
201
+ applySocialsSchema2(UserSchema);
202
+ applyCredentialsSchema(UserSchema);
192
203
  const User = db.mongoose.model("User", UserSchema);
193
204
  return User;
194
205
  };
@@ -2,6 +2,8 @@ import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.mjs";
2
2
  import "uuid";
3
3
  import require$$0 from "mongoose";
4
4
  import { a as addUserStatusFields_1, b as addMembersQuantity_1 } from "./addMembersQuantity-BXp_LeQd.mjs";
5
+ import { p as profile_schema } from "./profile.schema-24ZpZQJe.mjs";
6
+ import { c as credentials_schema } from "./credentials.schema-C9dmNy7o.mjs";
5
7
  const ObjectId = require$$0.Types.ObjectId;
6
8
  const addUserStatusFields = addUserStatusFields_1;
7
9
  const addMembersQuantity = addMembersQuantity_1;
@@ -11,13 +13,32 @@ const controllerFactory$1 = (db) => {
11
13
  let query = [];
12
14
  let skip = parseInt(req.query.skip) || 0;
13
15
  let limit = parseInt(req.query.limit) || 10;
16
+ console.log(req.query);
14
17
  const matchConditions = [
15
18
  ...req.query._id ? [{ _id: new ObjectId(req.query._id) }] : []
16
19
  ];
17
- query.push({ $match: { $and: matchConditions } });
18
- console.log(req);
19
- console.log(query);
20
- console.log(req.body);
20
+ let search = req.query.search;
21
+ if (search) {
22
+ let regexPattern = "";
23
+ const escapedSearch = search.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
24
+ if (escapedSearch.includes("@")) {
25
+ regexPattern = escapedSearch;
26
+ } else if (escapedSearch.match(/^\+?\d{0,14}$/)) {
27
+ regexPattern = escapedSearch;
28
+ } else {
29
+ regexPattern = `.*${escapedSearch}.*`;
30
+ }
31
+ matchConditions.push({
32
+ $or: [
33
+ { "profile.name": { $regex: regexPattern, $options: "i" } },
34
+ { "email": { $regex: regexPattern, $options: "i" } },
35
+ { "phone": { $regex: regexPattern, $options: "i" } },
36
+ { "username": { $regex: regexPattern, $options: "i" } }
37
+ ]
38
+ });
39
+ }
40
+ if (matchConditions.length > 0)
41
+ query.push({ $match: { $and: matchConditions } });
21
42
  query.push({
22
43
  $lookup: {
23
44
  from: "orders",
@@ -43,23 +64,19 @@ const controllerFactory$1 = (db) => {
43
64
  }
44
65
  });
45
66
  query.push(addMembersQuantity());
46
- query.push(addUserStatusFields(req.query.user));
67
+ if (req.query.user)
68
+ query.push(addUserStatusFields(req.query.user));
47
69
  query.push({
48
70
  $skip: skip
49
71
  });
50
72
  query.push({
51
73
  $limit: limit
52
74
  });
53
- console.log(req);
54
- console.log(query);
55
- console.log(req.body);
56
75
  try {
57
76
  const users = await User.aggregate(query);
58
- if (!users || users.length === 0) {
59
- console.log("no users");
77
+ if (!users) {
60
78
  return res.status(404).send({ message: "Users not found." });
61
79
  }
62
- console.log(users);
63
80
  res.status(200).send(users);
64
81
  } catch (err) {
65
82
  console.log(err);
@@ -128,36 +145,8 @@ var users_routes = function(app, db, origins) {
128
145
  app.put("/api/users/:_id", controller.update);
129
146
  app.delete("/api/users/:_id", controller.remove);
130
147
  };
131
- var user_model = (db) => {
132
- const UserSchema = new db.mongoose.Schema({
133
- username: String,
134
- phone: String,
135
- email: String,
136
- apple_id: String,
137
- password: String,
138
- status: {
139
- type: String,
140
- enum: ["active", "banned", "removed", "inactive"],
141
- default: "active",
142
- required: true
143
- },
144
- profile: {
145
- photo: {
146
- type: String,
147
- default: ""
148
- },
149
- name: {
150
- type: String,
151
- default: ""
152
- },
153
- description: {
154
- type: String,
155
- default: ""
156
- },
157
- birthday: {
158
- type: Date
159
- }
160
- },
148
+ var socials_schema = function applySocialsSchema(schema, db) {
149
+ schema.add({
161
150
  socials: {
162
151
  telegram: {
163
152
  type: String,
@@ -175,19 +164,41 @@ var user_model = (db) => {
175
164
  type: String,
176
165
  default: ""
177
166
  }
167
+ }
168
+ });
169
+ };
170
+ const applyProfileSchema = profile_schema;
171
+ const applySocialsSchema2 = socials_schema;
172
+ const applyCredentialsSchema = credentials_schema;
173
+ var user_model = (db) => {
174
+ const UserSchema = new db.mongoose.Schema({
175
+ username: {
176
+ type: String,
177
+ unique: true
178
178
  },
179
- roles: [
180
- {
181
- type: db.mongoose.Schema.Types.ObjectId,
182
- ref: "Role"
183
- }
184
- ]
179
+ password: {
180
+ type: String,
181
+ required: true
182
+ },
183
+ status: {
184
+ type: String,
185
+ enum: ["active", "banned", "removed", "inactive"],
186
+ default: "active",
187
+ required: true
188
+ },
189
+ roles: [{
190
+ type: db.mongoose.Schema.Types.ObjectId,
191
+ ref: "Role"
192
+ }]
185
193
  }, {
186
194
  // Creation Date
187
195
  timestamps: {
188
196
  currentTime: () => Date.now()
189
197
  }
190
198
  });
199
+ applyProfileSchema(UserSchema);
200
+ applySocialsSchema2(UserSchema);
201
+ applyCredentialsSchema(UserSchema);
191
202
  const User = db.mongoose.model("User", UserSchema);
192
203
  return User;
193
204
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
3
- const index = require("./index-CL9l0HRS.js");
3
+ const index = require("./index-BCCiEK_u.js");
4
4
  require("axios");
5
5
  require("bcryptjs");
6
6
  require("crypto");
@@ -9,7 +9,7 @@ const tickets_controller = require("./tickets.controller-WaQ4qMpv.js");
9
9
  const require$$1 = require("stripe");
10
10
  const require$$0 = require("mongoose");
11
11
  const require$$1$1 = require("bignumber.js");
12
- require("./queryProcessor-BUDoM96e.js");
12
+ require("./queryProcessor-DRMo_GWK.js");
13
13
  var wallet_model = (db) => {
14
14
  const WalletSchema = new db.mongoose.Schema(
15
15
  {
@@ -1,5 +1,5 @@
1
1
  import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.mjs";
2
- import { s as server } from "./index-CGIn4v5E.mjs";
2
+ import { s as server } from "./index-B6a1mPgp.mjs";
3
3
  import "axios";
4
4
  import "bcryptjs";
5
5
  import "crypto";
@@ -8,7 +8,7 @@ import { t as tickets_controller } from "./tickets.controller-ByZ33N6_.mjs";
8
8
  import require$$1 from "stripe";
9
9
  import require$$0 from "mongoose";
10
10
  import require$$1$1 from "bignumber.js";
11
- import "./queryProcessor-Cl6sU582.mjs";
11
+ import "./queryProcessor-BJdKh0Ow.mjs";
12
12
  var wallet_model = (db) => {
13
13
  const WalletSchema = new db.mongoose.Schema(
14
14
  {
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./main-8N2Jmsuk.js");class p extends c.WebPlugin{constructor(){super(...arguments),this.group="CapacitorStorage"}async configure({group:e}){typeof e=="string"&&(this.group=e)}async get(e){return{value:this.impl.getItem(this.applyPrefix(e.key))}}async set(e){this.impl.setItem(this.applyPrefix(e.key),e.value)}async remove(e){this.impl.removeItem(this.applyPrefix(e.key))}async keys(){return{keys:this.rawKeys().map(t=>t.substring(this.prefix.length))}}async clear(){for(const e of this.rawKeys())this.impl.removeItem(e)}async migrate(){var e;const t=[],s=[],n="_cap_",o=Object.keys(this.impl).filter(i=>i.indexOf(n)===0);for(const i of o){const r=i.substring(n.length),a=(e=this.impl.getItem(i))!==null&&e!==void 0?e:"",{value:l}=await this.get({key:r});typeof l=="string"?s.push(r):(await this.set({key:r,value:a}),t.push(r))}return{migrated:t,existing:s}}async removeOld(){const e="_cap_",t=Object.keys(this.impl).filter(s=>s.indexOf(e)===0);for(const s of t)this.impl.removeItem(s)}get impl(){return window.localStorage}get prefix(){return this.group==="NativeStorage"?"":`${this.group}.`}rawKeys(){return Object.keys(this.impl).filter(e=>e.indexOf(this.prefix)===0)}applyPrefix(e){return this.prefix+e}}exports.PreferencesWeb=p;
@@ -0,0 +1,54 @@
1
+ import { W as p } from "./main-CkeuHuCY.mjs";
2
+ class f extends p {
3
+ constructor() {
4
+ super(...arguments), this.group = "CapacitorStorage";
5
+ }
6
+ async configure({ group: e }) {
7
+ typeof e == "string" && (this.group = e);
8
+ }
9
+ async get(e) {
10
+ return { value: this.impl.getItem(this.applyPrefix(e.key)) };
11
+ }
12
+ async set(e) {
13
+ this.impl.setItem(this.applyPrefix(e.key), e.value);
14
+ }
15
+ async remove(e) {
16
+ this.impl.removeItem(this.applyPrefix(e.key));
17
+ }
18
+ async keys() {
19
+ return { keys: this.rawKeys().map((t) => t.substring(this.prefix.length)) };
20
+ }
21
+ async clear() {
22
+ for (const e of this.rawKeys())
23
+ this.impl.removeItem(e);
24
+ }
25
+ async migrate() {
26
+ var e;
27
+ const t = [], s = [], n = "_cap_", o = Object.keys(this.impl).filter((i) => i.indexOf(n) === 0);
28
+ for (const i of o) {
29
+ const r = i.substring(n.length), a = (e = this.impl.getItem(i)) !== null && e !== void 0 ? e : "", { value: l } = await this.get({ key: r });
30
+ typeof l == "string" ? s.push(r) : (await this.set({ key: r, value: a }), t.push(r));
31
+ }
32
+ return { migrated: t, existing: s };
33
+ }
34
+ async removeOld() {
35
+ const e = "_cap_", t = Object.keys(this.impl).filter((s) => s.indexOf(e) === 0);
36
+ for (const s of t)
37
+ this.impl.removeItem(s);
38
+ }
39
+ get impl() {
40
+ return window.localStorage;
41
+ }
42
+ get prefix() {
43
+ return this.group === "NativeStorage" ? "" : `${this.group}.`;
44
+ }
45
+ rawKeys() {
46
+ return Object.keys(this.impl).filter((e) => e.indexOf(this.prefix) === 0);
47
+ }
48
+ applyPrefix(e) {
49
+ return this.prefix + e;
50
+ }
51
+ }
52
+ export {
53
+ f as PreferencesWeb
54
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ozdao/prometheus-framework",
3
- "version": "0.2.81",
3
+ "version": "0.2.83",
4
4
  "description": "Web3 Framework focused on user experience and ease of development.",
5
5
  "author": "OZ DAO <hello@ozdao.dev>",
6
6
  "license": "GPL-3.0-or-later",
@@ -39,6 +39,7 @@
39
39
 
40
40
  <script setup>
41
41
  import { ref, onMounted, watchEffect } from 'vue';
42
+ import { Loader } from "@googlemaps/js-api-loader";
42
43
 
43
44
  const props = defineProps({
44
45
  apiKey: {
@@ -66,8 +67,18 @@ const addressInput = ref(null);
66
67
  let autocomplete;
67
68
 
68
69
  const initAutocomplete = () => {
69
- autocomplete = new google.maps.places.Autocomplete(addressInput.value);
70
- autocomplete.addListener('place_changed', onPlaceChanged);
70
+ const loader = new Loader({
71
+ apiKey: props.apiKey,
72
+ version: "weekly",
73
+ libraries: ["places"]
74
+ });
75
+
76
+ loader.load().then(() => {
77
+ autocomplete = new google.maps.places.Autocomplete(addressInput.value);
78
+ autocomplete.addListener('place_changed', onPlaceChanged);
79
+ }).catch(e => {
80
+ console.error(e);
81
+ });
71
82
  };
72
83
 
73
84
  const onInput = () => {
@@ -2,13 +2,14 @@
2
2
  <div
3
3
  class="bg-grey pd-medium radius-medium"
4
4
  >
5
- <div class="mn-b-small flex-v-center flex-nowrap flex">
5
+ <div v-if="title || actions" class="mn-b-small flex-v-center flex-nowrap flex">
6
6
  <p v-if="title" class="mn-r-thin t-medium p-big">{{title}}</p>
7
7
 
8
8
  <button
9
9
  v-for="action in actions"
10
10
  @click="action.function"
11
- class="i-small pd-thin button-delete button"
11
+ class="pd-thin button-delete button"
12
+ :class="action.class || 'bg-main radius-small t-center i-medium'"
12
13
  >
13
14
  {{action.label}}
14
15
  </button>
@@ -1,6 +1,6 @@
1
1
  <script setup>
2
2
  import { ref } from 'vue'
3
-
3
+
4
4
  const props = defineProps({
5
5
  submit: {
6
6
  type: Function,
@@ -42,6 +42,8 @@
42
42
  },
43
43
  })
44
44
 
45
+ const emits = defineEmits(['error'])
46
+
45
47
  const button = ref(null);
46
48
  const error = ref(null);
47
49
  const loading = ref(false);
@@ -55,11 +57,11 @@
55
57
  // Функция для сброса состояния кнопки.
56
58
  const resetButton = () => {
57
59
  if (button.value) {
58
- button.value.classList.replace('bg-second', 'bg-main');
59
- button.value.style.pointerEvents = 'auto';
60
- loading.value = false;
61
- finished.value = false;
62
- error.value = null;
60
+ button.value.classList.replace('bg-second', 'bg-main');
61
+ button.value.style.pointerEvents = 'auto';
62
+ loading.value = false;
63
+ finished.value = false;
64
+ error.value = null;
63
65
  }
64
66
  };
65
67
 
@@ -68,7 +70,6 @@
68
70
 
69
71
  button.value.classList.replace('bg-main', 'bg-second');
70
72
 
71
-
72
73
  loading.value = false;
73
74
 
74
75
  // Используем функцию сброса состояния кнопки здесь.
@@ -83,6 +84,7 @@
83
84
  if (props.callback) setTimeout(() => props.callback(), props.callbackDelay);
84
85
 
85
86
  } catch (err) {
87
+ emits('error',err)
86
88
  // Если возникла ошибка, мы изменяем стили и устанавливаем сообщение об ошибке.
87
89
  button.value.classList.replace('bg-main', 'bg-fourth-nano');
88
90
  error.value = props.error;
@@ -108,11 +110,6 @@
108
110
  <!-- Loading Circle Animation -->
109
111
  <span v-else-if="loading && !error && showLoader" class="loading">
110
112
  <svg class="i-regular" width="135" height="140" viewBox="0 0 135 140" xmlns="http://www.w3.org/2000/svg" fill="#fff">
111
- <rect y="10" width="15" height="120" rx="6"> <animate attributeName="height" begin="0.5s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" repeatCount="indefinite" /> <animate attributeName="y" begin="0.5s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" repeatCount="indefinite"/> </rect>
112
- <rect x="30" y="10" width="15" height="120" rx="6"> <animate attributeName="height" begin="0.25s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" repeatCount="indefinite" /> <animate attributeName="y" begin="0.25s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" repeatCount="indefinite"/> </rect>
113
- <rect x="60" width="15" height="140" rx="6"> <animate attributeName="height" begin="0s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" repeatCount="indefinite" /> <animate attributeName="y" begin="0s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" repeatCount="indefinite"/> </rect>
114
- <rect x="90" y="10" width="15" height="120" rx="6"> <animate attributeName="height" begin="0.25s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" repeatCount="indefinite" /> <animate attributeName="y" begin="0.25s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" repeatCount="indefinite"/> </rect>
115
- <rect x="120" y="10" width="15" height="120" rx="6"> <animate attributeName="height" begin="0.5s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" repeatCount="indefinite" /> <animate attributeName="y" begin="0.5s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" repeatCount="indefinite"/> </rect>
116
113
  </svg>
117
114
  </span>
118
115
  <span v-else-if="finished && showSucces" class="t-semi loading t-black">{{text.success}}</span>
@@ -12,10 +12,12 @@
12
12
  tag="ul"
13
13
  name="scaleTransition"
14
14
  class="o-hidden bg-grey radius-big"
15
+ :class="$attrs.class"
15
16
  >
16
17
  <SkeletonEvent
17
18
  v-if="isLoading"
18
- v-for="i in currentLimit" :key="i"
19
+ v-for="i in currentLimit"
20
+ :key="'skeleton-' + i"
19
21
  />
20
22
  </TransitionGroup>
21
23
 
@@ -26,6 +28,8 @@
26
28
  v-if="!isLoading && itemsList.length < 1"
27
29
  :title="states.empty.title"
28
30
  :description="states.empty.description"
31
+ :action="states.empty.action"
32
+ :callback="states.empty.callback"
29
33
  class="pd-medium mn-b-thin bg-grey radius-big"
30
34
  />
31
35
  </transition>
@@ -38,11 +42,17 @@
38
42
  <slot
39
43
  v-if="!isLoading && itemsList.length > 0"
40
44
  :items="itemsList"
41
- :user="user"
42
45
  >
43
-
44
46
  </slot>
45
47
 
48
+ <!-- <slot
49
+ v-if="!isLoading && itemsList.length > 0"
50
+ :items="itemsList"
51
+ :user="user"
52
+ :key="itemsList"
53
+ >
54
+ </slot> -->
55
+
46
56
  <button
47
57
  v-if="showLoadMore && hasMoreItems && itemsList.length > 0"
48
58
  @click="loadMoreItems"
@@ -50,6 +60,8 @@
50
60
  >
51
61
  Load More
52
62
  </button>
63
+
64
+ <div key="sentinel" ref="sentinel" class="sentinel"></div>
53
65
  </TransitionGroup>
54
66
 
55
67
  </template>
@@ -73,7 +85,7 @@ const props = defineProps({
73
85
  default: true
74
86
  },
75
87
  search: {
76
- type: Boolean,
88
+ type: [Boolean, Object],
77
89
  default: false
78
90
  },
79
91
  states: {
@@ -115,7 +127,9 @@ const props = defineProps({
115
127
  const itemsList = ref([]);
116
128
  const hasMoreItems = ref(false);
117
129
 
130
+
118
131
  let isLoading = ref(true);
132
+ let sentinel = ref(null)
119
133
 
120
134
  let currentSkip = ref(props.options.skip ? props.options.skip : 0);
121
135
  let currentLimit = ref(props.options.limit ? props.options.limit : 10);
@@ -182,8 +196,6 @@ watch(() => props.external, (newVal, oldVal) => {
182
196
  }
183
197
  }, { deep: true });
184
198
 
185
-
186
-
187
199
  watch(() => props.options, (newVal, oldVal) => {
188
200
  if (
189
201
  newVal.organization !== oldVal.organization ||
@@ -202,5 +214,15 @@ watch(() => props.options, (newVal, oldVal) => {
202
214
 
203
215
  onMounted(async () => {
204
216
  await fetchItems()
217
+
218
+ if (typeof window !== 'undefined' && !props.showLoadMore) {
219
+ const observer = new IntersectionObserver(entries => {
220
+ if (entries.some(entry => entry.isIntersecting)) {
221
+ loadMoreItems()
222
+ }
223
+ })
224
+
225
+ observer.observe(sentinel.value)
226
+ }
205
227
  });
206
228
  </script>