@ozdao/prometheus-framework 0.2.103 → 0.2.104

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. package/dist/main-CXObXjv-.js +92 -0
  2. package/dist/main-DPsHxX0l.mjs +13633 -0
  3. package/dist/organizations.server.js +14 -3
  4. package/dist/organizations.server.mjs +14 -3
  5. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  6. package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
  7. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  8. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +33 -33
  9. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  10. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +1 -73
  11. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  12. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +73 -1
  13. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  14. package/dist/prometheus-framework/src/components/Select/Select.vue.js +1 -103
  15. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  16. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +103 -1
  17. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  18. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
  19. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  20. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
  21. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  23. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  24. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  25. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  26. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  27. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  29. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
  30. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -66
  31. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
  32. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
  33. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  35. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  37. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  38. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  39. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  41. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  43. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  44. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  45. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  47. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  49. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  50. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +1 -13
  51. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  52. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +13 -1
  53. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  55. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  56. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
  57. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  59. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  61. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  63. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  65. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +21 -21
  67. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  69. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  71. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  73. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  75. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  77. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  79. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  81. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  83. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  85. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  87. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  89. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  91. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  93. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
  95. package/dist/prometheus-framework.cjs.js +1 -1
  96. package/dist/prometheus-framework.es.js +1 -1
  97. package/dist/style.css +1 -1
  98. package/dist/web-BNKN7kk3.mjs +54 -0
  99. package/dist/web-Douq6xn6.js +1 -0
  100. package/package.json +1 -1
  101. package/src/components/Feed/Feed.vue +2 -0
  102. package/src/modules/organizations/components/pages/Members.vue +1 -1
  103. package/src/modules/organizations/controllers/memberships.controller.js +22 -10
@@ -1,5 +1,7 @@
1
1
  const ObjectId = require('mongoose').Types.ObjectId;
2
2
 
3
+ const queryProcessorGlobals = require('@pf/src/modules/globals/controllers/utils/queryProcessor');
4
+
3
5
  const controllerFactory = (db) => {
4
6
  const Membership = db.membership;
5
7
 
@@ -15,16 +17,16 @@ const controllerFactory = (db) => {
15
17
  search = search.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
16
18
 
17
19
  const parts = search.split('.');
18
-
19
- if (parts.length === 2) {
20
- // Создаем паттерн, который допускает замену одного символа в каждой части
21
- regexPattern = parts.map(part => part.substr(0, part.length - 1) + '.{1}').join('\\.');
22
- } else {
23
- // Если нет точки, применяем аналогичный подход к всей строке
24
- regexPattern = search.substr(0, search.length - 1) + '.{1}';
25
- }
26
- }
27
-
20
+
21
+ if (parts.length === 2) {
22
+ // Создаем паттерн для точного соответствия каждой части
23
+ regexPattern = parts.join('\\.');
24
+ } else {
25
+ // Если нет точки, применяем точное соответствие ко всей строке
26
+ regexPattern = search;
27
+ }
28
+ }
29
+
28
30
  const memberships = await Membership.aggregate([
29
31
  {
30
32
  $lookup: {
@@ -52,6 +54,16 @@ const controllerFactory = (db) => {
52
54
  {
53
55
  $unwind: '$user',
54
56
  },
57
+
58
+ // Pagination
59
+ ...queryProcessorGlobals.getSortingOptions(
60
+ req.query.sortParam,
61
+ req.query.sortOrder,
62
+ ),
63
+ ...queryProcessorGlobals.getPaginationOptions(
64
+ req.query.skip,
65
+ req.query.limit
66
+ )
55
67
  ]);
56
68
 
57
69
  if (!memberships || memberships.length === 0) {