@ozdao/prometheus-framework 0.2.66 → 0.2.67

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. package/dist/community.server.js +3 -3
  2. package/dist/community.server.mjs +2 -2
  3. package/dist/events.server.js +3 -3
  4. package/dist/events.server.mjs +2 -2
  5. package/dist/main-BDrW8oeL.mjs +13755 -0
  6. package/dist/main-CNIKtifM.js +91 -0
  7. package/dist/main.css +1 -1
  8. package/dist/metadata.schema-BLGSCSmy.mjs +55 -0
  9. package/dist/metadata.schema-DWR97jhW.js +54 -0
  10. package/dist/ownership.schema-CGqscZIi.js +159 -0
  11. package/dist/ownership.schema-DtT2IgqC.mjs +160 -0
  12. package/dist/products.server.js +50 -15
  13. package/dist/products.server.mjs +50 -15
  14. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  15. package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
  16. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  17. package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -225
  18. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  19. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +225 -1
  20. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  21. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +55 -1
  22. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +1 -55
  24. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +40 -39
  26. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/components/Field/Field.vue.js +1 -83
  28. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  29. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +84 -1
  30. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  32. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +1 -72
  34. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  35. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +72 -1
  36. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -46
  38. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  39. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +46 -1
  40. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +1 -45
  42. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  43. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +45 -1
  44. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
  46. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  48. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
  50. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +3 -3
  52. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
  54. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
  56. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
  58. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
  60. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
  62. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  64. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  66. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  68. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
  70. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +3 -3
  72. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +10 -9
  74. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  76. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
  78. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  80. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +60 -46
  82. package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/globals/store/globals.js +5 -5
  84. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  86. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +3 -3
  88. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  90. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  92. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  94. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +4 -4
  96. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +3 -3
  98. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  100. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +4 -4
  102. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  104. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +1 -1
  106. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
  108. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  109. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  110. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +5 -5
  112. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +86 -56
  114. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  116. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  118. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  120. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  122. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  124. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  126. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +82 -67
  128. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +15 -15
  130. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +4 -4
  132. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +1 -1
  134. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  136. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
  138. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  140. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +5 -5
  142. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  144. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
  146. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  148. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  150. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  152. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +25 -24
  154. package/dist/prometheus-framework.cjs.js +1 -1
  155. package/dist/prometheus-framework.es.js +1 -1
  156. package/dist/style.css +1 -1
  157. package/dist/web-6-zYDWMA.js +1 -0
  158. package/dist/web-TZtLKurO.mjs +54 -0
  159. package/package.json +1 -1
  160. package/src/modules/products/controllers/leftovers.controller.js +2 -3
  161. package/src/modules/products/models/leftover.model.js +2 -3
  162. package/src/modules/products/store/leftovers.js +1 -1
@@ -0,0 +1,54 @@
1
+ import { W as p } from "./main-BDrW8oeL.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.66",
3
+ "version": "0.2.67",
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",
@@ -25,7 +25,7 @@ const controllerFactory = (db) => {
25
25
 
26
26
  matchConditions.push({
27
27
  $or: [
28
- { "comment": { $regex: regexPattern, $options: 'i' } },
28
+ { "comment ": { $regex: regexPattern, $options: 'i' } },
29
29
  { "positions.name": { $regex: regexPattern, $options: 'i' } }
30
30
  ]
31
31
  });
@@ -72,8 +72,7 @@ const controllerFactory = (db) => {
72
72
 
73
73
  const create = async (req, res) => {
74
74
  try {
75
-
76
- console.log(req.body)
75
+ console.log('order is', req.body.order)
77
76
  const leftover = await Leftover.create({
78
77
  organization: req.body.organization,
79
78
  type: req.body.type,
@@ -13,9 +13,8 @@ module.exports = (db) => {
13
13
  required: true,
14
14
  },
15
15
  order: {
16
- type: db.mongoose.Schema.Types.ObjectId,
17
- ref: 'Order',
18
- },
16
+ type: String
17
+ },
19
18
  comment: {
20
19
  type: String
21
20
  },
@@ -13,7 +13,7 @@ const state = reactive({
13
13
  current: {
14
14
  organization: "",
15
15
  type: "",
16
- order: "",
16
+ order: null,
17
17
  positions: [],
18
18
  },
19
19
  });